/* The Machine Gallery's shared surfaces (Milestone 1, 8 November 2026): the six-section header, the Explore
   DAP menu, the Library at /papers/, the reading pages and the simpler page layout of AA-1 and /data/.
   Ported from the approved reference (The Machine Gallery.html): carbon and graphite, a translucent panel,
   underlines for secondary navigation, rounded surfaces for panels and one primary action only.
   Loaded after tokens.css and site.css on those pages, and beside gallery.css on /.
   scripts/gallery.mjs writes the artwork addresses into the __ART_<section>__ placeholders. */
:root {
  --m-hair: #383d41;
  --m-muted: #a3a7ad;
  --m-ease: cubic-bezier(.65, 0, .35, 1);
  --m-sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --m-display: "Raleway", "Archivo", system-ui, sans-serif;
  --m-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --m-gl: max(24px, env(safe-area-inset-left, 0px));
  --m-gr: max(24px, env(safe-area-inset-right, 0px));
  --m-rounded: 24px;
  --m-quiet: rgba(182, 198, 208, .19);
  --m-surface-text: #d3d9dd;
  --m-red: #e35241;
}
@media (max-width: 860px) {
  :root { --m-gl: max(16px, env(safe-area-inset-left, 0px)); --m-gr: max(16px, env(safe-area-inset-right, 0px)); }
}

/* Artwork behind the Menu, the Directory and the Library feature. */
[data-photo="solutions"] { --section-photo: url("/assets/gallery/solutions.820f103173.webp"); }
[data-photo="services"] { --section-photo: url("/assets/gallery/services.6e5a58f206.webp"); }
[data-photo="data"] { --section-photo: url("/assets/gallery/data.c36b5b5e1d.webp"); }
[data-photo="research"] { --section-photo: url("/assets/gallery/research.c4b54daf59.webp"); }
[data-photo="about"] { --section-photo: url("/assets/gallery/about.f7a494d779.webp"); }
[data-photo="contact"] { --section-photo: url("/assets/gallery/contact.28d454bd96.webp"); }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 60; padding: 12px 16px; background: #f8f9fa; color: #111517; font-weight: 600; }
.skip-link:focus { top: 16px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- shared rows and actions (reference destinations.css) ---------- */
.section-index-link { box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; min-height: 62px; width: 100%; padding: 10px 15px; border: 1px solid transparent; border-radius: 14px; color: #d6dce0; font: inherit; background: none; cursor: pointer; }
.section-index-link strong { font: 500 16px/1.2 var(--m-sans); }
.section-index-link small { margin-top: 4px; font-size: 12px; color: #b7c2c9; }
.route-label { display: block; min-width: 0; }
.route-label strong { display: block; font-weight: 500; }
.route-label small { display: block; line-height: 1.35; }
.route-arrow { flex: 0 0 auto; color: #d4dce1; }
.section-index-link .route-arrow { opacity: .42; }
.section-index-link:hover { background: #c5d3df0d; }
.section-index-link[aria-current], .section-index-link[aria-pressed="true"] { background: linear-gradient(125deg, #c0d0dd1b, #c0d0dd09); border-color: var(--m-quiet); color: #fafbfc; }
.section-index-link[aria-current] .route-arrow, .section-index-link[aria-pressed="true"] .route-arrow { color: var(--m-red); opacity: 1; }
.route-cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 19px; box-sizing: border-box; min-height: 43px; padding: 9px 15px; border-radius: 14px; border: 1px solid #aab9c25a; background: #d1e0e51b; color: #f7f9fb; font-size: 14px; text-decoration: none; }
.route-cta .route-arrow { color: var(--m-red); }
.route-cta:hover { background: #d1e0e52d; }
.route-cta small { color: #c6d0d5; font-size: 11px; margin-top: 3px; font-weight: 400; }
.destination-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.destination-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 8px; min-height: 32px; border-bottom: 1px solid var(--m-quiet); border-radius: 8px; color: #f2f4f5; font-size: 14px; text-decoration: none; }
.destination-row:hover, .destination-row:focus-visible { background: #c1d2dc16; }
.destination-row small { font-size: 12px; color: #bec9d0; margin-top: 3px; }
@media (max-width: 540px) { .destination-grid { grid-template-columns: 1fr; } }

/* ---------- the six-section header (handoff section 5.2) ---------- */
.six-header { position: sticky; top: 0; z-index: 30; background: #111719f5; border-bottom: 1px solid var(--m-quiet); color: #f8f9fa; }
.six-bar { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); max-width: 1320px; margin: 0 auto; padding: 14px var(--m-gr) 14px var(--m-gl); min-height: 40px; }
.six-brand { flex: 0 0 auto; margin-right: auto; display: block; }
.six-brand img { display: block; height: 30px; width: auto; }
.six-brand .brand-mark { display: none; }
.six-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.six-link, .six-menu-btn { position: relative; padding: 7px 0; line-height: 1.25; font: 400 15px/1.25 var(--m-sans); color: #c6cdd1; text-decoration: none; background: none; border: 0; cursor: pointer; }
.six-link::after, .six-menu-btn::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: #e8edef; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--m-ease); }
.six-link:hover, .six-menu-btn:hover, .six-link[aria-current] { color: #fff; }
.six-link:hover::after, .six-link:focus-visible::after, .six-link[aria-current]::after, .six-menu-btn:hover::after, .six-menu-btn:focus-visible::after { transform: scaleX(1); }
.six-link[aria-current]::after { background: var(--m-red); }
.six-menu-btn { font-weight: 500; color: #f8f9fa; }
.six-header :focus-visible, .explore-menu :focus-visible, .explore-fallback :focus-visible { outline: 2px solid #f8f9fa; outline-offset: 4px; }
/* below 1024 the six links live in the Menu */
@media (max-width: 1023px) { .six-nav { display: none; } }
@media (max-width: 520px) { .six-brand .brand-full { display: none; } .six-brand .brand-mark { display: block; height: 26px; } }
/* the fallback for no JavaScript; machine-noscript.css shows it */
.explore-fallback { display: none; }
.explore-fallback summary { cursor: pointer; font: 500 15px/1.25 var(--m-sans); color: #f8f9fa; padding: 7px 0; list-style: none; }
.explore-fallback summary::-webkit-details-marker { display: none; }
.explore-fallback[open] nav { position: absolute; left: 0; right: 0; top: 100%; z-index: 40; max-height: calc(100vh - 80px); overflow: auto; background: #141a1e; border-bottom: 1px solid var(--m-quiet); padding: 16px var(--m-gr) 24px var(--m-gl); }
.explore-fallback ul { list-style: none; margin: 0; padding: 0; }
.explore-fallback nav > ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px 28px; }
.explore-fallback .fallback-section { display: block; font: 300 24px/1.2 var(--m-display); color: #f8f9fa; margin-bottom: 6px; }
.explore-fallback li li a { display: block; padding: 5px 0; font-size: 14px; color: #d3d9dd; }
.explore-fallback p { display: flex; gap: 22px; margin: 18px 0 0; font-size: 14px; }
.explore-fallback a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* a browser without <dialog> (explore.js marks it): the list, the six links, and no stray dialog box */
.no-dialog .six-menu-btn, .no-dialog .explore-menu { display: none !important; }
.no-dialog .explore-fallback { display: block; }
@media (max-width: 1023px) { .no-dialog .six-nav { display: flex; flex-wrap: wrap; } .no-dialog .six-bar { flex-wrap: wrap; } }

/* the page's own local navigation, under the header (section 5.3) */
.six-local { border-top: 1px solid var(--m-quiet); }
.six-local-row { display: flex; flex-wrap: wrap; gap: 6px 22px; max-width: 1320px; margin: 0 auto; padding: 9px var(--m-gr) 10px var(--m-gl); font-size: 14px; }
.six-local a { color: #d3d9dd; padding: 4px 0; text-decoration: none; border-bottom: 1px solid transparent; }
.six-local a:hover, .six-local a:focus-visible { color: #fff; border-bottom-color: #e8edef; }
.six-local a[aria-current] { color: #fff; border-bottom-color: var(--m-red); }

/* ---------- the Explore DAP menu (reference destinations.css, refinement.css) ---------- */
.explore-menu { position: fixed; inset: 0; margin: auto; width: min(890px, calc(100% - 48px)); height: max-content; max-height: calc(100dvh - 52px); box-sizing: border-box; padding: 0; border-radius: 29px; border: 1px solid #bdced655; background: linear-gradient(145deg, #273139f7, #141a1ef5 68%); color: #f8f9fa; box-shadow: 0 30px 95px #050709af; overscroll-behavior: contain; font-family: var(--m-sans); }
.explore-menu.open { animation: menu-rise .32s var(--m-ease) both; }
.explore-menu::backdrop { background: #080c10ab; backdrop-filter: blur(11px); }
@keyframes menu-rise { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.explore-menu a { color: inherit; text-decoration: none; }
.menu-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 27px 17px; border-bottom: 1px solid var(--m-quiet); }
.menu-top h2 { font: 300 36px/1.02 var(--m-display); letter-spacing: -.024em; margin: 0; }
.explore-menu .menu-close { position: static; min-height: 36px; padding: 6px 0; border: 0; background: none; font: inherit; font-size: 14px; color: #e4e9ec; cursor: pointer; }
.explore-menu .menu-close span { margin-left: 5px; }
.explore-menu .menu-close:hover { text-decoration: underline; text-underline-offset: 4px; }
.menu-layout { display: grid; grid-template-columns: 209px minmax(0, 1fr); gap: 23px; padding: 17px 24px 20px; }
.menu-sections { display: grid; gap: 5px; align-content: start; }
.menu-layout .section-index-link { min-height: 49px; padding: 8px 12px; border: 0; border-radius: 0; border-bottom: 1px solid var(--m-quiet); background: none; }
.menu-layout .section-index-link small { margin-top: 3px; }
.menu-layout .section-index-link:hover { background: #c5d3df0c; }
.menu-layout .section-index-link[aria-pressed="true"] { background: #c5d3df12; border-left: 2px solid var(--m-red); }
.menu-preview { display: flex; flex-direction: column; min-width: 0; }
.menu-preview[hidden] { display: none; }
.menu-preview-lead { display: flex; align-items: end; min-height: 134px; border: 1px solid var(--m-quiet); border-radius: 18px; padding: 17px 19px; box-sizing: border-box; overflow: hidden; background-color: #141a1e; background-image: linear-gradient(90deg, #11181df7, #11181d58), linear-gradient(0deg, #11181de8, transparent 82%), var(--section-photo); background-position: center, center, center 52%; background-size: cover; }
.menu-preview-lead h3 { font: 300 clamp(28px, 4vw, 42px)/1 var(--m-display); letter-spacing: -.02em; margin: 0; }
.menu-preview-lead h3 a span { font-size: .6em; vertical-align: middle; opacity: .7; }
.menu-preview-lead h3 a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.menu-preview-lead p { font-size: 14px; line-height: 1.35; color: #dce4e9; margin: 7px 0 0; max-width: 35ch; }
.menu-picks { margin-top: 6px; max-height: 40vh; overflow: auto; }
.menu-actions { display: flex; align-items: center; gap: 12px 22px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; }
.menu-gallery { display: inline-flex; align-items: center; gap: 10px; padding: 9px 0; color: #e2e7ea; white-space: nowrap; font-size: 14px; }
.menu-gallery:hover { text-decoration: underline; text-underline-offset: 4px; }
.menu-footer { display: flex; gap: 22px; flex-wrap: wrap; border-top: 1px solid var(--m-quiet); padding: 11px 27px 13px; font-size: 13px; color: #ced8dd; }
.menu-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 540px) {
  .explore-menu { width: calc(100% - 22px); max-height: calc(100dvh - 24px); border-radius: 22px; }
  .menu-top { padding: 15px 14px 12px; }
  .menu-top h2 { font-size: 29px; }
  .menu-layout { grid-template-columns: 1fr; gap: 12px; padding: 12px; }
  .menu-sections { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .menu-layout .section-index-link { justify-content: center; min-height: 40px; padding: 4px; text-align: center; }
  .menu-layout .section-index-link strong { font-size: 13px; }
  .menu-layout .section-index-link small, .menu-layout .section-index-link .route-arrow { display: none; }
  .menu-preview-lead { min-height: 102px; padding: 12px 14px; }
  .menu-preview-lead p { font-size: 13px; }
  .menu-picks { max-height: 36vh; }
  .menu-actions { gap: 8px 18px; }
  .menu-actions .route-cta, .menu-actions .menu-gallery { font-size: 12px; min-height: 37px; }
  .menu-actions .route-cta { padding: 7px 10px; }
  .menu-footer { padding: 8px 14px 10px; }
}
@media (prefers-reduced-motion: reduce) { .explore-menu.open { animation: none; } }
html.menu-open { overflow: hidden; }

/* ---------- Milestone 1 pages: one dark world ---------- */
body.m1 { background: #111517; color: #f2f4f5; }
.m1-main { display: block; }
.m1-main :focus-visible { outline: 2px solid #f8f9fa; outline-offset: 4px; }
.m1-shell { box-sizing: border-box; max-width: 1200px; margin: 0 auto; padding: clamp(28px, 5vw, 65px) var(--m-gr) 64px var(--m-gl); }
.m1-shell a { color: inherit; }

/* ---------- the Library at /papers/ (reference library.css) ---------- */
.library-intro { position: relative; margin-bottom: 26px; }
.library-intro .meta { margin: 0 0 12px; color: #d1dae0; font-size: 13px; letter-spacing: .06em; }
.library-intro h1, .paper-heading h1, .simple-hero h1 { font: 300 clamp(42px, 6vw, 78px)/1.02 var(--m-display); letter-spacing: -.042em; margin: 0; }
.library-intro > p:not(.meta), .paper-deck, .simple-purpose { font-size: clamp(17px, 1.8vw, 21px); color: #d2d9de; margin: 12px 0 0; max-width: 55ch; line-height: 1.45; }
.library-feature { position: relative; isolation: isolate; overflow: hidden; min-height: 222px; border: 1px solid var(--m-quiet); border-radius: 24px; background: #1c2429; }
.library-feature-copy { padding: clamp(22px, 4vw, 39px); max-width: 59%; }
.library-feature h2 { font: 300 clamp(29px, 4vw, 49px)/1.04 var(--m-display); letter-spacing: -.025em; margin: 0; }
.library-feature h2 + p { margin: 9px 0 16px; color: #dce2e5; }
.library-feature-image { position: absolute; inset: 0 0 0 auto; width: 48%; z-index: -1; background: linear-gradient(90deg, #1c2429, transparent 60%), linear-gradient(0deg, #1c2429b8, transparent 47%), var(--section-photo) center 48%/cover; }
.library-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.library-inline-link, .paper-end a, .paper-related, .simple-links a, .library-group-links a { font-size: 14px; color: #dbe2e6; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
.library-inline-link:hover, .paper-end a:hover, .paper-related:hover, .simple-links a:hover, .library-group-links a:hover, .library-item-links a:hover { text-decoration-color: currentColor; }
.library-list-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 36px 0 12px; }
.library-list-heading h2, .library-group > h2, .simple-section > h2 { font: 300 clamp(26px, 3.3vw, 36px)/1.1 var(--m-display); margin: 0; }
.library-search { width: min(100%, 320px); }
.library-search input { width: 100%; box-sizing: border-box; border-radius: 12px; border: 1px solid #aab9c247; padding: 11px 14px; font: inherit; font-size: 14px; background: #1c2328; color: #f3f5f6; color-scheme: dark; }
.library-search input::placeholder { color: #b3c0c7; }
.library-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--m-quiet); }
.library-item { display: flex; align-items: center; justify-content: space-between; gap: 8px 22px; flex-wrap: wrap; padding: 14px 7px; border-bottom: 1px solid var(--m-quiet); }
.library-item[hidden] { display: none; }
.library-item-text { flex: 1 1 360px; min-width: 0; }
.library-item h3 { margin: 0; font: 500 17px/1.3 var(--m-sans); }
.library-item h3 a { text-decoration: none; }
.library-item h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.library-item p { margin: 3px 0 0; color: #c9d2d7; font-size: 15px; line-height: 1.4; }
.library-item-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; font-size: 14px; }
.library-item-links a { color: #e1e6e9; white-space: nowrap; text-decoration: underline; text-decoration-color: #aab9c255; text-underline-offset: 4px; }
.library-none { padding: 20px 0; color: #c7d1d7; }
.library-count { margin: 10px 0 0; font-size: 13px; color: #c2cdd4; }
.library-group { margin-top: 56px; scroll-margin-top: 120px; }
.library-group > p { color: #d3d9dd; max-width: 62ch; margin: 10px 0 0; line-height: 1.5; }
.library-group-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 16px 0 0; }
.library-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.library-card { border: 1px solid var(--m-quiet); border-radius: 18px; background: #182025; padding: 20px 22px; color: #e1e6e9; }
.library-card h3 { margin: 4px 0 8px; font: 300 26px/1.15 var(--m-display); }
.library-card p { margin: 0 0 8px; line-height: 1.5; color: #d3d9dd; }
.library-card .meta { font-size: 12px; letter-spacing: .05em; color: #c2cdd4; margin: 0; }
.library-card ul { margin: 10px 0 0; padding-left: 18px; color: #d3d9dd; line-height: 1.6; }
a.library-card { text-decoration: none; display: block; }
a.library-card:hover { background: #1e282e; }
.library-sheets { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 22px; border-top: 1px solid var(--m-quiet); }
.library-sheets li { border-bottom: 1px solid var(--m-quiet); }
.library-sheets a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 4px; font-size: 14px; color: #e1e6e9; text-decoration: none; }
.library-sheets a:hover { background: #bed0da15; }
.library-sheets small { color: #b8c6ce; white-space: nowrap; }
@media (max-width: 760px) {
  .library-feature-copy { max-width: none; }
  .library-feature-image { width: 67%; opacity: .55; }
  .library-cards { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .library-list-heading { flex-direction: column; align-items: start; gap: 10px; }
  .library-item p { font-size: 14px; }
}

/* ---------- the reading pages ---------- */
.paper-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; padding-bottom: 26px; border-bottom: 1px solid var(--m-quiet); }
.paper-heading h1 { font-size: clamp(40px, 5.5vw, 72px); }
.paper-kicker { margin: 0 0 14px; color: #d1dae0; font: 400 13px/1.4 var(--m-mono); letter-spacing: .04em; }
.paper-byline { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 17px 0 0; font-size: 16px; color: #c7d1d7; }
.paper-byline span + span::before { content: "·"; color: #df5947; margin: 0 8px; }
.paper-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; }
.paper-actions .print-button { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 13px; color: #d3d9dd; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.paper-layout { display: grid; grid-template-columns: 228px minmax(0, 1fr); align-items: start; gap: clamp(28px, 6vw, 90px); padding-top: 29px; }
.paper-aside { position: sticky; top: 100px; }
.paper-toc { border: 1px solid var(--m-quiet); border-radius: 16px; background: #181f23; padding: 12px 14px; color: #e1e6e9; }
.paper-toc summary { cursor: pointer; font-size: 15px; font-weight: 500; padding: 5px; }
.paper-toc nav { display: grid; gap: 4px; margin-top: 8px; }
.paper-toc nav a { padding: 6px 8px; border-radius: 7px; font-size: 14px; line-height: 1.35; color: #c8d3d9; text-decoration: none; }
.paper-toc nav a:hover, .paper-toc nav a[aria-current] { color: #fff; background: #cfdae317; }
.paper-related { display: inline-block; margin: 14px 6px 0; }
.paper-text { max-width: 72ch; font-size: 17px; line-height: 1.72; color: #e1e6e9; overflow-wrap: anywhere; }
.paper-text p { margin: 0 0 1.25em; }
.paper-text a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.paper-text .reading-note { margin: 0 0 21px; padding: 11px 14px; border-left: 2px solid #d8412f; background: #becfdb0a; color: #c5d0d6; font-size: 13px; }
.paper-text h2 { margin: 1.5em 0 .45em; font: 300 clamp(25px, 3.3vw, 37px)/1.16 var(--m-display); letter-spacing: -.017em; color: #fafbfc; }
.paper-text h3 { margin: 1.3em 0 .4em; font: 500 19px/1.3 var(--m-sans); color: #fafbfc; }
.paper-text [id] { scroll-margin-top: 103px; }
.paper-text blockquote { margin: 1.5em 0; padding: 15px 17px; border-left: 2px solid #d8412f; border-radius: 0 12px 12px 0; background: #c6d7e113; color: #f0f3f5; }
.paper-text ol, .paper-text ul { padding-left: 1.3em; margin: 0 0 1.25em; }
.paper-text li { margin: .3em 0; }
.paper-text code { font-size: .86em; color: #f0f3f5; }
.paper-text table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.46; margin: 20px 0; }
.paper-text th, .paper-text td { text-align: left; padding: 9px 11px; border-bottom: 1px solid var(--m-quiet); vertical-align: top; }
.paper-text .reading-end { border-top: 1px solid var(--m-quiet); padding-top: 21px; margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: baseline; }
.paper-text .reading-end .mono { flex-basis: 100%; font: 400 12px/1.4 var(--m-mono); letter-spacing: .06em; color: #c2cdd4; }
.paper-text .reading-end h2 { flex-basis: 100%; margin: 4px 0 6px; font-size: clamp(22px, 2.6vw, 30px); }
.paper-text .reading-end a { font-size: 14px; color: #dbe2e6; }
@media (max-width: 760px) {
  .paper-layout { display: block; padding-top: 18px; }
  .paper-aside { position: static; margin-bottom: 18px; }
  .paper-text { font-size: 16px; }
  .paper-heading { display: block; padding-bottom: 20px; }
  .paper-actions { align-items: flex-start; margin-top: 16px; }
}
@media (max-width: 540px) { .paper-heading h1 { font-size: clamp(33px, 10vw, 45px); } }

/* ---------- the simpler page layout: AA-1 and /data/ (handoff section 7.1) ---------- */
/* The hero: production's full-bleed art behind the purpose and the one action. The scrim darkens the side the
   words sit on; the contrast check reads the brightest art behind each line. */
.simple-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; min-height: clamp(520px, calc(100svh - 128px), 820px); background: #111517; color: #f8f9fa; scroll-margin-top: 120px; }
.simple-hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.simple-hero-scrim { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.simple-hero-inner { box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; gap: 36px; width: 100%; max-width: 1200px; margin: 0 auto; padding: clamp(40px, 8vh, 96px) var(--m-gr) clamp(28px, 5vh, 52px) var(--m-gl); }
.simple-hero-copy { max-width: 640px; }
.simple-hero .meta { margin: 0 0 14px; color: #e2e7ea; font-size: 13px; letter-spacing: .06em; }
.simple-hero h1 { color: #f8f9fa; }
.simple-hero .simple-purpose { color: #e6eaed; }
.simple-hero .redline { width: 64px; height: 3px; margin: 30px 0 0; background: var(--signal, #d8412f); }
.simple-hero .route-cta { margin-top: 30px; font-size: 15px; background: #111517b8; border-color: #c7d3da80; }
.simple-hero .route-cta:hover { background: #1d2529d9; }
.simple-hero-aa1 .simple-hero-img { object-position: 64% 46%; }
.simple-hero-aa1 .simple-hero-scrim { background: linear-gradient(90deg, #0d1012e6 0%, #0d1012cc 34%, #0d10126b 60%, #0d10121a 100%); }
.simple-hero-data .simple-hero-inner { justify-content: space-between; }
.simple-hero-data .simple-hero-img { object-position: 50% 58%; }
.simple-hero-data .simple-hero-scrim { background: linear-gradient(180deg, #11151740 0%, #11151700 46%, #1115178c 100%); }
.simple-hero .simple-strip { background: #111517d1; }
.simple-after-hero { padding-top: 4px; }
.simple-strip { border: 1px solid var(--m-quiet); border-radius: 18px; background: linear-gradient(130deg, #1e262c, #141a1e 63%); padding: 22px 24px; }
.simple-strip .meta { margin: 0 0 6px; color: #c6d0d7; font-size: 12px; letter-spacing: .05em; }
.simple-strip .strip-line { margin: 0 0 8px; font: 300 clamp(24px, 2.6vw, 32px)/1.15 var(--m-display); color: #fafbfc; }
.simple-section { margin-top: 52px; scroll-margin-top: 120px; }
.simple-section > p, .simple-section .simple-text { color: #d3d9dd; max-width: 66ch; line-height: 1.55; }
.simple-section .meta { color: #c2cdd4; font-size: 12px; letter-spacing: .05em; margin: 0 0 8px; }
.simple-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0 0; }
.simple-connected { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 16px; }
.simple-connected a { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--m-quiet); border-radius: 14px; padding: 14px 16px; text-decoration: none; color: #f2f4f5; background: #182025; }
.simple-connected a:hover { background: #1e282e; }
.simple-connected small { display: block; color: #bec9d0; font-size: 12px; margin-top: 3px; }
.simple-sheet { display: inline-flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 15px; color: #f2f4f5; text-decoration: underline; text-underline-offset: 4px; }
.simple-sheet .btn-note { color: #bec9d0; font-size: 13px; }
/* the site's own components inside the dark layout */
.m1 .simple-section .tiles { margin-top: 18px; }
.m1 .simple-section .technical-figure, .m1 .simple-section .technical-notes { margin-top: 18px; }
.m1 .simple-section .evidence-card { margin-top: 16px; }
@media (max-width: 860px) {
  .simple-hero { min-height: clamp(520px, calc(100svh - 150px), 760px); }
  .simple-hero-inner { justify-content: flex-end; }
  .simple-hero-aa1 .simple-hero-img { object-position: 70% 50%; }
  .simple-hero-aa1 .simple-hero-scrim { background: linear-gradient(180deg, #0d101233 0%, #0d10128c 34%, #0d1012e0 62%, #0d1012f2 100%); }
  .simple-hero-data .simple-hero-img { object-position: 30% 58%; }
  .simple-hero-data .simple-hero-inner { justify-content: space-between; }
}
/* The site's Live chip, read on the dark tiles: outlined, never light on light. */
.m1 .tile .chip, .m1 .tile .chip-filled { background: none; color: #f8f9fa; border-color: #f8f9fa; }
