/* Ascension Table V18 visual bridge. Static page presentation only.
 * About + teaching preserve content and JS. Scan theme scopes to introductory screens.
 * The version-pinned question, recovery, and report screens are intentionally unaffected.
 */
body.at-bridge-page {
  --night: #241b51;
  --night2: #34245f;
  --clear: #fcf9ff;
  --clear2: #f0eaf9;
  --ink: #292052;
  --ink2: #574b77;
  --hair: #d9caea;
  --metal: #e9c174;
  --metal2: #976b26;
  --lite: #fff8ed;
  --lite2: #ded4ed;
  background: radial-gradient(ellipse 67% 36% at 82% 6%, #514095 0%, transparent 80%),
              radial-gradient(ellipse 55% 44% at 8% 72%, rgba(92,72,155,.22),transparent 78%),
              linear-gradient(160deg,#201847 0%,#30235c 58%,#201842 100%);
  min-height:100vh;
}
body.at-bridge-page a:focus-visible,
body.at-bridge-page button:focus-visible { outline:3px solid #ffdc8b; outline-offset:3px; }
.at-skip {position:absolute;left:-9999px;top:0;z-index:1000;background:#fffbea;color:#292052;padding:10px 14px;border-radius:8px}
.at-skip:focus{left:12px;top:8px}
.at-brand-header {position:relative;z-index:3;color:#fff8ef;background:linear-gradient(180deg,rgba(35,27,78,.97),rgba(43,31,86,.88));border-bottom:1px solid rgba(236,195,116,.58);box-shadow:0 5px 24px rgba(15,12,39,.12)}
.at-brand-inner {max-width:1190px;margin:auto;padding:12px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.at-brand {display:inline-flex;align-items:center;min-height:46px;gap:12px;text-decoration:none!important;color:#fff8ef!important;white-space:nowrap}
.at-brand img{display:block;width:45px;height:45px;filter:drop-shadow(0 0 8px rgba(247,213,128,.19))}
.at-brand-divider{height:36px;width:1px;background:linear-gradient(transparent,#ecc578,transparent)}
.at-brand-name{font:400 clamp(18px,2.2vw,25px)/1.15 'Marcellus',Georgia,serif;letter-spacing:.10em}
.at-brand-name sup{font-size:.42em;vertical-align:.8em;margin-left:1px}
.at-brand-nav{display:flex;align-items:center;gap:clamp(8px,1.5vw,22px);flex-wrap:wrap}
.at-brand-nav a{font:400 15px/1.2 'Marcellus',Georgia,serif;color:#f8eefc!important;text-decoration:none;min-height:44px;display:inline-flex;align-items:center;padding:8px 4px;border-bottom:1px solid transparent}
.at-brand-nav a:hover{text-decoration:underline;text-decoration-color:#efcd85;text-underline-offset:5px}
.at-brand-nav .at-brand-start{border:1px solid #eed18a;border-radius:999px;padding:9px 17px;color:#302257!important;background:#f3d790 linear-gradient(180deg,#fff4d6,#edc978);box-shadow:0 1px 10px rgba(243,208,126,.16);white-space:nowrap}
.at-brand-nav .at-brand-start:hover{text-decoration:none;filter:brightness(1.06)}
body.at-bridge-page>.wrap{position:relative}
/* About/Work With Me: preserve photography, the author's words, interactive accordions and anchors. */
body.at-bridge-page .hero{color:var(--lite);padding-top:32px}
body.at-bridge-page .hero h1{color:#ffe6ad;text-shadow:0 1px 16px rgba(249,199,105,.12)}
body.at-bridge-page .hero .lead,body.at-bridge-page .hero .kicker{color:#e6dcef}
body.at-bridge-page .photo{border-color:rgba(241,207,136,.8);box-shadow:0 0 0 2px rgba(232,192,109,.12),0 9px 28px rgba(12,9,32,.2)}
body.at-bridge-page .jump a{color:#f7edff;border-color:rgba(239,201,128,.4)}
body.at-bridge-page .jump a:hover{background:rgba(255,255,255,.1)}
body.at-bridge-page section.card{background:linear-gradient(160deg,#fffdfd,#fbf7ff 64%);border-color:#d6c5e8;border-top-color:#edc67f;box-shadow:0 10px 32px rgba(18,10,52,.14);color:var(--ink)}
body.at-bridge-page .card h2{color:#322268}
body.at-bridge-page .btn:not(.ghost){background:linear-gradient(180deg,#ffefd0,#edc674);color:#291c52;border-color:#d4a657;box-shadow:0 3px 12px rgba(73,43,126,.13)}
body.at-bridge-page .btn:not(.ghost):hover{filter:brightness(1.04)}
body.at-bridge-page .btn.ghost{color:#342668;border-color:#b8a6d3}
body.at-bridge-page footer{color:#e1d2ed}
body.at-bridge-page footer a{color:#fff0c7}
/* Scholarly teaching page: quieter pearl page on the same purple-gold foundation. */
body.at-teaching>.wrap {max-width:760px;padding-top:26px}
body.at-teaching .card {background:#fcf9ff;border:1px solid #d7c7e8;border-top:4px solid #eac177;border-radius:18px;box-shadow:0 18px 46px rgba(15,10,45,.25);padding:clamp(22px,4vw,36px)}
body.at-teaching .card h1 {color:#2b205d;font-family:Marcellus,Georgia,serif}
body.at-teaching .card h2{color:#302269}
.at-end-nav{max-width:760px;margin:6px auto 36px;padding:0 16px;display:flex;flex-wrap:wrap;gap:14px;justify-content:center}
.at-end-nav a{min-height:44px;color:#fff2cb;display:inline-flex;align-items:center;text-decoration:underline;text-underline-offset:5px;font-family:Marcellus,Georgia,serif}
/* Scan application: exact same HTML/rendering/session engine, with a skin only for intro and its orientation screen. */
body[data-screen="intro"],body[data-screen="about"]{
  --night:#241b51;--night2:#33265d;--clear:#fcf9ff;--clear2:#f1eafa;
  --ink:#292052;--ink2:#564c75;--hair:#d8cae7;
  --lite:#fffaf3;--lite2:#e1d5ef;--metal:#edc779;--metal2:#a27630;
  background:radial-gradient(ellipse 60% 48% at 72% 10%,rgba(109,81,180,.5),transparent 80%),
             radial-gradient(ellipse 55% 37% at 9% 82%,rgba(92,66,163,.3),transparent 76%),
             linear-gradient(170deg,#231b4e,#33265f 60%,#241b4f);
}
body[data-screen="intro"] .ui-hero h1,body[data-screen="about"] .ui-hero h1{color:#ffe4a7;text-shadow:0 0 22px rgba(243,203,115,.1)}
body[data-screen="intro"] #beginbtn{background:linear-gradient(180deg,#fff4d5,#eac171);border:2px solid #f2d78d;border-radius:999px;color:#2b205e;box-shadow:0 4px 18px rgba(235,196,111,.21);font-family:var(--display)}
body[data-screen="intro"] #beginbtn:hover{background:linear-gradient(180deg,#fff8e4,#f1cf84)}
body[data-screen="intro"] .ui-howto{border-top-color:rgba(239,201,128,.25)}
body[data-screen="intro"] .ui-link{color:#fff2d7;text-decoration-color:#d8b368}
body[data-screen="intro"] #intro .footer-note{border-color:rgba(239,201,128,.25)}
body[data-screen="intro"] .ui-gem{box-shadow:0 0 0 1px rgba(255,242,210,.7)}
/* V18.1 "Before you start" (Claude 13 Nov, owner direction): the scan's start screen keeps only what is new to someone
 * arriving from the homepage: the 90-day frame and "Unable to answer" rule, the start button, the privacy line and the
 * returning-visitor tools. The repeated marketing paragraphs, the reference-standards teaser and the pilot note are hidden
 * (they stay in the server's HTML). Same DOM, same scripts, every button keeps its id. Visual order follows DOM order for
 * every focusable control. The source-traced lotus is displayed on the opening screen; the engine's original drawing is kept invisibly beneath it, preserving the DOM. */
body[data-screen="intro"] #ui-hero-table,body[data-screen="about"] #ui-hero-table{background:url("/learning/scan-intro-lotus.svg") center/contain no-repeat;max-width:520px;margin:0 auto}
body[data-screen="intro"] #ui-hero-table svg,body[data-screen="about"] #ui-hero-table svg{opacity:0}
body[data-screen="intro"] #ui-hero-table{max-width:320px}
body[data-screen="intro"] .ui-hero h1{text-align:center;margin-bottom:2px}
body[data-screen="intro"] #intro:not(.hidden){display:flex;flex-direction:column;align-items:stretch;max-width:560px;margin-left:auto;margin-right:auto}
body[data-screen="intro"] #intro:not(.hidden)>*{order:6}
body[data-screen="intro"] #intro:not(.hidden)>.footer-note{order:0}
body[data-screen="intro"] #intro:not(.hidden)>.ui-ask{order:1;text-align:center;color:#f3e8ff;margin:0 0 18px}
body[data-screen="intro"] #intro:not(.hidden)>.lede,body[data-screen="intro"] #intro:not(.hidden)>.ref-teaser,body[data-screen="intro"] #intro:not(.hidden)>.ui-quiet.ui-pilot{display:none}
body[data-screen="intro"] #intro:not(.hidden)>.ui-howto{order:2;margin:0 0 20px;padding:16px 18px 6px;border:1px solid rgba(239,201,128,.42);border-top:3px solid #edc779;border-radius:16px;background:linear-gradient(160deg,rgba(255,255,255,.09),rgba(255,255,255,.03))}
body[data-screen="intro"] .ui-howto h2{margin:0 0 8px;color:#ffe4a7;font-family:var(--display);letter-spacing:.04em}
body[data-screen="intro"] .ui-howto #orientbox p{margin:0 0 10px}
body[data-screen="intro"] #intro:not(.hidden)>.ui-cta{order:3;align-items:center;text-align:center;margin:0 0 18px}
body[data-screen="intro"] #intro:not(.hidden)>.ui-cta #beginbtn{min-width:240px}
body[data-screen="intro"] #intro:not(.hidden)>.ui-quiet{order:4;font-size:.92rem;text-align:center;opacity:.9;margin:0 0 14px}
body[data-screen="intro"] #intro:not(.hidden)>#ui-about-open{order:5;align-self:center;margin:0 0 18px}
body[data-screen="intro"] #intro:not(.hidden)>.dl-row,body[data-screen="intro"] #intro:not(.hidden)>#saved-scan-status,body[data-screen="intro"] #intro:not(.hidden)>.r9-restore{order:7}
body[data-screen="intro"] #intro:not(.hidden)>.dl-row{justify-content:center;flex-wrap:wrap;padding-top:16px;border-top:1px solid rgba(239,201,128,.25)}
body[data-screen="intro"] #intro:not(.hidden)>.dl-row::before{content:"Already have a scan file?";flex-basis:100%;text-align:center;font-size:.9rem;color:#e6dcef;margin-bottom:8px}
body[data-screen="intro"] #intro:not(.hidden)>.r9-restore{text-align:center;margin-top:8px}
@media (max-width:760px){
  .at-brand-inner{padding:10px 14px;gap:8px}
  .at-brand-nav{width:100%;display:grid;grid-template-columns:1fr 1.2fr 1fr;gap:7px;border-top:1px solid rgba(232,197,128,.22);padding-top:6px}
  .at-brand-nav a{font-size:14px;padding:6px 0;justify-content:center;text-align:center}
  .at-brand-nav .at-brand-start{padding:8px 8px}
  .at-brand-name{font-size:clamp(18px,5vw,23px);letter-spacing:.07em}
}
@media(max-width:360px){
  .at-brand img{width:38px;height:38px}.at-brand-divider{height:30px}.at-brand-name{font-size:17px}
  .at-brand-nav{column-gap:5px}.at-brand-nav a{font-size:12.5px}
}
@media (prefers-reduced-motion:reduce){.at-brand-header *{transition:none!important;animation:none!important}}

/* V18.8 (Claude 14 Nov): the secondary button sits on the dark hero, so it needs light text there.
   Ghost buttons inside the white cards keep their dark text. */
body.at-bridge-page .hero .btn.ghost{color:#fff3d6;border-color:rgba(241,207,136,.8);background:rgba(255,255,255,.07)}
body.at-bridge-page .hero .btn.ghost:hover{background:rgba(255,255,255,.14)}
/* On wider screens the on-page links wrap instead of running off the edge */
@media (min-width:720px){body.at-bridge-page nav.jump{flex-wrap:wrap;overflow:visible;margin:0;padding-left:0;padding-right:0}}
/* V18.8 contrast: "The longer story" toggle was 4.46:1 on the white card */
body.at-bridge-page details.more>summary{color:#7d5714}
