/* STAAI Core cross-browser layout safeguards, build 2026-10-13.\n   Loaded LAST to avoid stale or conflicting layout declarations.\n   All art, content, and interactions are preserved. */\n\n/* Set explicit widths with a conventional max-width limit.\n   Do not rely on width:min(var(--wrap),calc(...)) for page centering. */\nhtml { overflow-x: clip; }\nbody { min-width: 0; }\n.site-header .header-grid,\n.book-sales-banner .book-sales-banner-inner,\n.hero .hero-layout,\n.hero .hero-foot,\n.journey-nav .journey-inner,\n.perspective-section > .container,\n.architecture-section > .wrap,\n.lab-section > .container {\n  width: calc(100% - 80px);\n  max-width: 1280px;\n  margin-left: auto;\n  margin-right: auto;\n}\n/* Keep actual grid children shrinkable in Gecko as well as Blink. */\n.header-grid > *, .hero-layout > *,\n.book-sales-banner-inner > *, .architecture-ui > *,\n.book-section-grid > *, .sim-inner > * { min-width: 0; }\n.hero-layout { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }\n.hero-art { position: relative; min-width: 0; }\n.art-stage { transform-style: preserve-3d; }\n.book-object, .book-side, .book-edge { transform-style: preserve-3d; }\n.front-cover { backface-visibility: hidden; -webkit-backface-visibility: hidden; }\n\n/* Retina/Firefox: filters on a transform-style:preserve-3d element\n   flatten 3D by specification. Move the shadow onto the image instead. */\n@supports (-moz-appearance: none) {\n  .book-object, #book .book-3d { filter: none; }\n  .front-cover { box-shadow: 20px 28px 22px rgba(0,0,0,.56); }\n  #book .book-3d img { box-shadow: 18px 26px 30px rgba(0,0,0,.42); }\n  .floating-label { backface-visibility: hidden; -webkit-backface-visibility: hidden; }\n}\n\n@media (max-width: 1120px) {\n  .site-header .header-grid, .book-sales-banner .book-sales-banner-inner,\n  .hero .hero-layout, .hero .hero-foot,\n  .journey-nav .journey-inner, .perspective-section > .container,\n  .architecture-section > .wrap, .lab-section > .container {\n    width: calc(100% - 56px);\n  }\n}\n@media (max-width: 700px) {\n  .site-header .header-grid, .book-sales-banner .book-sales-banner-inner,\n  .hero .hero-layout, .hero .hero-foot,\n  .journey-nav .journey-inner, .perspective-section > .container,\n  .architecture-section > .wrap, .lab-section > .container {\n    width: calc(100% - 36px);\n  }\n  .hero-layout { grid-template-columns: minmax(0,1fr); }\n  .hero-art { width: 100%; }\n}\n