/* Cradlers Ed — the home pack's page layout: "Night desk" (2026-11-15).
   Loaded AFTER themes.css, which holds the palette (ink, bone, one amber
   signal; --hero-*, --band-*, --chip-*, --foot-*). Everything is scoped to
   [data-pack="home"], so a course page keeps its own pack.

   Brief: moody and high-craft rather than a template. No centred hero over
   three identical cards: a one-line intro, then the courses as an
   asymmetric bento (the live course large, with the student's progress
   inside it; courses still being written beside it, tagged and inert), then
   "How a level works" told with real screens from the product, then a facts
   strip. Instrument Serif for headlines, Inter Tight for everything else.
   Motion is quiet (lift, fill, type, cross-fade) and off under reduced
   motion. Earlier passes: the Relume navy/blue theme (2026-11-01) and the
   tester fixes of 2026-11-14 (short intro, courses first, About page). */

/* --- shape and type --------------------------------------------------- */
[data-pack="home"]{
  --rad:16px; --rad-btn:10px;
  --font-display:"Instrument Serif",Georgia,"Times New Roman",serif;
  --mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
}
/* Instrument Serif has one weight; asking for 500+ would fake a bold. */
[data-pack="home"] h1,
[data-pack="home"] .home-band .origin-lead{
  font-family:var(--font-display); font-weight:400; letter-spacing:-.01em;
}
[data-pack="home"] .card,
[data-pack="home"] .panel{
  border:1px solid var(--line); border-radius:var(--rad); box-shadow:none;
}
[data-pack="home"] .legal-draft{ border-left:4px solid var(--brand); }
[data-pack="home"] .doc{
  background:var(--card); border:1px solid var(--line);
  border-radius:calc(var(--rad) + 4px); box-shadow:none;
}
[data-pack="home"] .btn{ border-radius:var(--rad-btn); box-shadow:none; }
[data-pack="home"] .btn:hover{ box-shadow:none; }
[data-pack="home"] .btn:active{ transform:scale(.98); }
/* Primary buttons (amber with ink in the dark, ink with bone in the light)
   are set for every pack at the end of themes.css. */
[data-pack="home"] :focus-visible{ outline:2px solid var(--focus); outline-offset:3px; }

/* --- header (home, and the NEET / JEE placeholder pages) ------------- */
:is([data-pack="home"],[data-pack="bio"],[data-pack="mech"]) .topbar{
  background:color-mix(in srgb,var(--paper) 88%,transparent);
  border-bottom:1px solid var(--line);
}
:is([data-pack="home"],[data-pack="bio"],[data-pack="mech"]) .topnav a{ font-weight:500; color:var(--ink-2); }
:is([data-pack="home"],[data-pack="bio"],[data-pack="mech"]) .topnav a.active,
:is([data-pack="home"],[data-pack="bio"],[data-pack="mech"]) .topnav a:hover{ color:var(--ink); }
:is([data-pack="home"],[data-pack="bio"],[data-pack="mech"]) .hdr-logout:not([hidden]){
  font-size:13px; font-weight:600; text-transform:none; letter-spacing:0;
  padding:7px 13px; border:1px solid var(--line); border-radius:var(--rad-pill);
  background:transparent; box-shadow:none; white-space:nowrap; color:var(--ink-2);
}
:is([data-pack="home"],[data-pack="bio"],[data-pack="mech"]) .hdr-logout:hover{ border-color:var(--line-strong); color:var(--ink); }
:is([data-pack="home"],[data-pack="bio"],[data-pack="mech"]) .hdr-role{
  font-family:var(--font-sans); font-size:12px; font-weight:600; letter-spacing:.05em;
  padding:7px 12px; border:1px solid var(--line); border-radius:var(--rad-pill);
  background:transparent; color:var(--ink-2);
}
:is([data-pack="home"],[data-pack="bio"],[data-pack="mech"]) .hdr-role.is-prof{ border-color:transparent; background:var(--chip-bg); color:var(--chip-ink); }

/* --- eyebrow chips (doc kickers, sign-in eyebrow, About label) -------- */
[data-pack="home"] .section-label,
[data-pack="home"] .doc-head .kicker,
[data-pack="home"] .auth-eyebrow{
  display:flex; align-items:center; gap:6px; width:fit-content;
  padding:6px 12px; border-radius:var(--rad-pill);
  background:var(--chip-bg); color:var(--chip-ink);
  font-family:var(--font-sans); font-size:12.5px; font-weight:600;
  letter-spacing:.05em; text-transform:uppercase; line-height:1.3;
}
[data-pack="home"] .section-label{ margin:72px 0 26px; }
[data-pack="home"] .doc-head .kicker,
[data-pack="home"] .auth-eyebrow{ margin-bottom:16px; }

/* --- full-bleed band (About) ----------------------------------------- */
[data-pack="home"] .home-band{
  margin-left:calc(50% - 50vw); margin-right:calc(50% - 50vw);
  padding-left:max(24px, calc((100vw - var(--maxw)) / 2 + 24px));
  padding-right:max(24px, calc((100vw - var(--maxw)) / 2 + 24px));
}
[data-pack="home"] .page:has(> .home-band:last-child){ padding-bottom:0; }

/* --- the home page (home.js) ----------------------------------------- */
.nd-num{ font-variant-numeric:tabular-nums; }
[data-pack="home"] .nd-intro{
  display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap;
  gap:8px 40px; padding:4px 0 26px; border-bottom:1px solid var(--line);
}
[data-pack="home"] .nd-intro h1{
  margin:0; color:var(--ink); font-size:clamp(34px,4.4vw,56px); line-height:1.02;
}
[data-pack="home"] .nd-intro h1 em{ font-style:italic; color:var(--brand); }
[data-pack="home"] .nd-intro p{ margin:0; color:var(--ink-3); font-size:15.5px; }

/* Signed-in account type, under the intro (home.js accountBanner). */
.home-account{ margin:26px 0 0; }
.home-account-inner{
  display:flex; flex-wrap:wrap; align-items:center; gap:12px 18px; padding:16px 20px;
  background:var(--card); border:1px solid var(--line); border-radius:var(--rad);
}
.home-account-badge{
  flex:none; padding:6px 12px; border:1px solid var(--line); border-radius:var(--rad-pill);
  font-size:12px; font-weight:600; letter-spacing:.05em; text-transform:uppercase; color:var(--ink-2);
}
.home-account-badge.is-prof{ border-color:transparent; background:var(--chip-bg); color:var(--chip-ink); }
.home-account-text{ flex:1; min-width:200px; }
.home-account-text b{ display:block; margin-bottom:2px; color:var(--ink); font-size:15.5px; }
.home-account-text p{ margin:0; color:var(--ink-3); font-size:14px; line-height:1.5; }

[data-pack="home"] .nd-label,
[data-pack="home"] .nd-head{
  display:flex; align-items:baseline; justify-content:space-between;
  flex-wrap:wrap; gap:6px 16px; margin:34px 0 16px;
}
[data-pack="home"] .nd-label h2,
[data-pack="home"] .nd-head h2{
  margin:0; font-family:var(--font-sans); font-size:13px; font-weight:600;
  letter-spacing:.08em; text-transform:uppercase; color:var(--ink-2);
}
[data-pack="home"] .nd-label span,
[data-pack="home"] .nd-head p{ margin:0; font-size:13.5px; color:var(--ink-3); }

/* The bento: the live course two columns wide, the rest stacked beside it. */
.nd-bento{ display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr); gap:16px; }
.nd-soon-col{ display:grid; gap:16px; grid-auto-rows:1fr; }
.nd-live{
  position:relative; display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);
  gap:28px; padding:28px; background:var(--card); border:1px solid var(--line);
  border-radius:var(--rad); transition:border-color .25s var(--e1), transform .45s var(--e1);
}
.nd-live:hover{ border-color:var(--line-strong); }
.nd-live:has(.nd-stretch:focus-visible){ outline:2px solid var(--focus); outline-offset:3px; }
.nd-live-top{ display:flex; align-items:center; gap:10px; font-size:13px; color:var(--ink-3); }
.nd-mark{
  display:grid; place-items:center; width:36px; height:36px; flex:none;
  border-radius:10px; background:var(--card-2); color:var(--ink);
  transition:color .25s var(--e1);
}
.nd-live:hover .nd-mark{ color:var(--brand); }
[data-pack="home"] .nd-live-title{
  margin:18px 0 4px; font-family:var(--font-display); font-weight:400;
  font-size:clamp(30px,3vw,40px); line-height:1.05; letter-spacing:-.01em;
}
.nd-live-title a{ color:var(--ink); text-decoration:none; }
.nd-live-title a:focus-visible{ outline:none; }
/* The title link covers the tile; the Continue button sits above it. */
.nd-stretch::after{ content:""; position:absolute; inset:0; z-index:1; border-radius:var(--rad); }
.nd-live-tag{ margin:0 0 22px; font-size:16px; color:var(--ink-2); }
.nd-prog-head{ display:flex; justify-content:space-between; gap:12px; font-size:14px; font-weight:600; color:var(--ink); }
.nd-prog-head .nd-num{ font-weight:500; color:var(--ink-3); }
.nd-bar{ height:6px; margin:10px 0 8px; border-radius:99px; background:var(--card-2); overflow:hidden; }
.nd-bar i{
  display:block; width:var(--p); height:100%; border-radius:inherit; background:var(--brand);
  transform-origin:left; transition:transform .9s var(--e1) .2s;
}
.is-pending .nd-bar i{ transform:scaleX(0); }
.is-pending.is-in .nd-bar i{ transform:none; }
.nd-prog-note{ margin:0; font-size:13px; color:var(--ink-3); }
.nd-stats{ display:flex; flex-wrap:wrap; gap:6px 20px; margin:16px 0 22px; padding:0; list-style:none; font-size:13.5px; color:var(--ink-3); }
.nd-stats b{ margin-right:4px; font-weight:600; color:var(--ink); }
.nd-go{ position:relative; z-index:2; }
.nd-arrow{ width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.8;
  stroke-linecap:round; stroke-linejoin:round; transition:transform .25s var(--e1); }
.nd-go:hover .nd-arrow{ transform:translateX(3px); }

/* Courses still being written: dashed, inert, flagged in amber. */
.nd-soon{
  position:relative; display:flex; flex-direction:column; gap:6px; padding:22px; background:var(--paper);
  border:1px dashed var(--line-strong); border-radius:var(--rad); cursor:default;
}
.nd-soon .nd-mark{ color:var(--ink-3); }
[data-pack="home"] .nd-soon h3{ margin:12px 0 0; font-size:17px; font-weight:600; letter-spacing:-.01em; color:var(--ink); }
.nd-soon p{ margin:0; font-size:14px; line-height:1.55; color:var(--ink-3); }
.nd-flag{
  position:absolute; top:18px; right:18px; padding:4px 10px; border-radius:99px;
  background:var(--signal); color:var(--on-signal); font-size:12px; font-weight:700;
}

/* A terminal is dark in both modes: it is a screenshot of the lab. */
.nd-term{
  margin:0; display:flex; flex-direction:column; overflow:hidden; min-width:0;
  background:#0A0B0E; color:#D9D5CD; border:1px solid #23272F; border-radius:12px;
  font-family:var(--mono); font-size:12.5px;
}
.nd-term figcaption{
  display:flex; justify-content:space-between; padding:9px 14px; border-bottom:1px solid #23272F;
  font-family:var(--font-sans); font-size:12px; color:#9097A1;
}
.nd-term pre{ flex:1; margin:0; padding:14px; line-height:1.75; white-space:pre-wrap; word-break:break-word; background:none; }
.nd-term code{ font:inherit; color:inherit; background:none; padding:0; }
.nd-ps{ color:#9097A1; }
.nd-out{ color:#C79AFF; }
.nd-clip{ display:inline-block; max-width:100%; vertical-align:top; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.nd-caret{ display:inline-block; width:7px; height:14px; margin-left:3px; vertical-align:-2px;
  background:#C79AFF; animation:nd-blink 1.1s steps(1) infinite; }
.nd-note{ color:#7D848E; }
.nd-term.is-typing .nd-out,
.nd-term.is-typing .nd-later{ visibility:hidden; }
.nd-later{ transition:opacity .4s var(--e1); }
.nd-byte{ margin-top:auto !important; padding:12px 14px; border-left:2px solid var(--brand); border-radius:0;
  background:var(--card-2); font-size:13.5px; }
@keyframes nd-blink{ 50%{ opacity:0; } }

/* How a level works: steps on the left, the open step's screen on the right. */
.nd-how{ margin-top:64px; }
.nd-steps{
  position:relative; display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr);
  column-gap:40px; min-height:372px; margin:0; padding:0; list-style:none;
}
.nd-step{ grid-column:1; }
.nd-step-btn{
  display:grid; grid-template-columns:34px minmax(0,1fr); gap:2px 10px; width:100%;
  padding:16px 16px 16px 14px; text-align:left; font:inherit; color:inherit; cursor:pointer;
  background:none; border:0; border-left:2px solid var(--line); border-radius:0;
  transition:border-color .25s var(--e1), background-color .25s var(--e1);
}
.nd-step-btn:hover{ background:color-mix(in srgb,var(--card) 70%,transparent); }
.nd-step.is-on .nd-step-btn{ border-left-color:var(--brand); }
.nd-step-n{ grid-row:span 2; padding-top:3px; font-size:13px; color:var(--ink-3); }
.nd-step.is-on .nd-step-n{ color:var(--brand); }
.nd-step-t{ font-size:17px; font-weight:600; color:var(--ink-2); }
.nd-step.is-on .nd-step-t{ color:var(--ink); }
.nd-step-d{ font-size:14px; line-height:1.5; color:var(--ink-3); }
.nd-pane{
  position:absolute; top:0; right:0; width:calc((100% - 40px) * 7 / 12); height:100%;
  opacity:0; visibility:hidden; transform-origin:left center;
  transform:perspective(1400px) rotateY(-9deg) translate3d(20px,0,-40px);
  transition:opacity .3s var(--e1), transform .3s var(--e1), visibility 0s linear .3s;
}
.nd-step.is-on .nd-pane{
  opacity:1; visibility:visible; transform:none;
  transition:opacity .3s var(--e1), transform .3s var(--e1);
}
.nd-pane > *{ height:100%; box-sizing:border-box; }
.nd-screen{
  display:flex; flex-direction:column; gap:10px; overflow:hidden; padding:20px 22px;
  background:var(--card); border:1px solid var(--line); border-radius:12px; font-size:14.5px;
}
.nd-bar-top{ display:flex; justify-content:space-between; gap:12px; padding-bottom:10px;
  border-bottom:1px solid var(--line); font-size:12.5px; color:var(--ink-3); }
[data-pack="home"] .nd-screen h4{ margin:4px 0 0; font-size:20px; font-weight:600; letter-spacing:-.015em; color:var(--ink); }
.nd-screen p{ margin:0; line-height:1.6; color:var(--ink-2); }
.nd-screen .nd-quiet{ font-size:13px; color:var(--ink-3); }
.nd-list{ margin:0; padding-left:18px; line-height:1.6; color:var(--ink-2); }
.nd-chips{ display:flex; flex-wrap:wrap; gap:8px; }
.nd-chips span{ padding:4px 9px; border-radius:6px; background:var(--card-2); color:var(--ink); font-family:var(--mono); font-size:12px; }
.nd-score{ font-size:14px; }
.nd-score b{ font-size:32px; font-weight:700; letter-spacing:-.02em; color:var(--ink); }
.nd-score span{ margin-left:6px; color:var(--ink-3); }
.nd-crit{ display:grid; margin:0; padding:0; list-style:none; }
.nd-crit li{ display:grid; grid-template-columns:minmax(0,1fr) auto 92px; align-items:center; gap:10px;
  padding:9px 0; border-top:1px solid var(--line); font-size:13.5px; color:var(--ink); }
.nd-crit em{ font-style:normal; font-size:12.5px; text-align:right; color:var(--ink-2); }
.nd-crit .nd-nm{ grid-column:2 / -1; color:var(--ink-3); }
.nd-pips{ display:inline-flex; gap:3px; }
.nd-pips b{ width:14px; height:6px; border-radius:2px; background:var(--line); }
.nd-pips b.on{ background:var(--brand); }

/* Facts, from the course record. */
.nd-facts{
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin:64px 0 8px;
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
}
.nd-facts > div{ display:flex; flex-direction:column; gap:6px; padding:22px 20px 22px 0; }
.nd-facts > div + div{ padding-left:20px; border-left:1px solid var(--line); }
.nd-facts b{ font-family:var(--font-display); font-size:46px; font-weight:400; line-height:1; color:var(--ink); }
.nd-facts .nd-fw{ padding-top:6px; font-family:var(--font-sans); font-size:15px; font-weight:600; line-height:1.4; }
.nd-facts span{ font-size:13.5px; color:var(--ink-3); }

/* --- 3D ---------------------------------------------------------------
   The landscape behind the intro is a three.js canvas (scene3d.js), faded in
   once it has drawn and masked so it never sits hard behind the headline.
   The tiles lean towards the cursor (home.js), the lab terminal rides a
   little forward of its tile, and step screens swing in from the side. */
[data-pack="home"] .nd-home{ position:relative; }
.nd-home > :not(.nd-3d){ position:relative; z-index:1; }
.nd-3d canvas{ display:block; width:100%; height:100%; }
.nd-3d--terrain{
  position:absolute; z-index:0; pointer-events:none;
  left:calc(50% - 50vw); width:100vw; top:-60px; height:400px;
  opacity:0; transition:opacity 1.4s var(--e1);
  /* Fade in from the top and out before the tiles, and keep it to a third of
     its strength behind the headline on the left. */
  -webkit-mask-image:linear-gradient(to bottom, transparent 0, #000 14%, #000 60%, transparent 92%),
                     linear-gradient(to right, rgba(0,0,0,.42) 0%, rgba(0,0,0,.42) 30%, #000 70%);
  -webkit-mask-composite:source-in;
          mask-image:linear-gradient(to bottom, transparent 0, #000 14%, #000 60%, transparent 92%),
                     linear-gradient(to right, rgba(0,0,0,.42) 0%, rgba(0,0,0,.42) 30%, #000 70%);
          mask-composite:intersect;
}
.nd-3d--terrain.is-live{ opacity:.9; }
.nd-live, .nd-soon{
  transform:perspective(1100px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));
  transform-style:preserve-3d;
}
.nd-live.is-tilt, .nd-soon.is-tilt{ transition:transform .12s linear, border-color .25s var(--e1); }
.nd-live::before, .nd-soon::before{
  content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;
  background:radial-gradient(520px circle at var(--mx,50%) var(--my,50%),
    color-mix(in srgb,var(--brand) 10%,transparent), transparent 46%);
  opacity:0; transition:opacity .35s var(--e1);
}
.nd-live.is-tilt::before, .nd-soon.is-tilt::before{ opacity:1; }
.nd-term--mini{ transition:transform .45s var(--e1); }
.nd-live.is-tilt .nd-term--mini{ transform:translateZ(24px); }

/* Arrival: a short fade-up, once (home.js). */
.is-pending{ opacity:0; transform:translateY(10px); }
.is-pending.is-in{ opacity:1; transform:none; transition:opacity .6s var(--e1), transform .6s var(--e1); }

/* --- the About page band: where Cradlers started ----------------------- */
[data-pack="home"] .home-band{
  margin-top:96px; padding-top:96px; padding-bottom:104px;
  background:var(--band-bg);
}
[data-pack="home"] .home-band .section-label{
  margin-top:0; background:var(--band-chip); color:var(--band-accent);
}
[data-pack="home"] .home-band .origin{ gap:56px; margin:0; }
/* The opening line carries the section, the way Relume's headings do. */
[data-pack="home"] .home-band .origin-lead{
  font-size:clamp(30px,3.6vw,46px) !important; line-height:1.1 !important;
  margin-bottom:26px; max-width:none;
}
[data-pack="home"] .home-band .origin-mark{
  background:var(--card); border:0; box-shadow:none;
}
[data-pack="home"] .home-band .origin-word{ color:var(--brand); }
/* On the About page the band is the page, so it starts under the header. */
[data-pack="home"] .about-page > .home-band{ margin-top:-44px; }
[data-pack="home"] .page:has(> .about-page){ padding-bottom:0; }

/* --- footer: one ink band on every page ----------------------------------
   Home-only until 2026-11-14 (the course pages had their own), brand blue
   until 2026-11-15. Tokens: themes.css. */
.footer-brand{ display:none; }
[data-pack] .footer{
  background:var(--foot-bg); color:var(--foot-ink); border-top:0;
  padding:72px 24px 40px; text-align:left;
}
[data-pack] .footer-inner{
  max-width:calc(var(--maxw) - 48px); display:grid; align-items:start;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:"brand links" "tag links" "meta meta";
  gap:18px 64px;
}
[data-pack] .footer-brand{ display:block; grid-area:brand; width:fit-content; }
[data-pack] .footer-brand img{ width:40px; height:40px; display:block; border-radius:11px; }
[data-pack] .footer-tag{ grid-area:tag; max-width:380px; color:var(--foot-ink-2); font-size:14.5px; }
[data-pack] .footer-links{
  grid-area:links; display:grid; grid-auto-flow:column;
  grid-template-rows:repeat(3,auto); gap:12px 48px; justify-content:start;
}
[data-pack] .footer-links a{ color:var(--foot-ink); font-size:14.5px; font-weight:500; }
[data-pack] .footer-links a:hover{ color:var(--foot-ink); text-decoration:underline; }
[data-pack] .footer-meta{
  grid-area:meta; justify-content:space-between; margin-top:40px; padding-top:28px;
  border-top:1px solid var(--foot-line); color:var(--foot-ink-2);
}
[data-pack] .footer-admin{ color:var(--foot-ink-2); opacity:.7; }
[data-pack] .footer-admin:hover,
[data-pack] .footer-admin:focus-visible{ color:var(--foot-ink); opacity:1; }
[data-pack] .footer :focus-visible{ outline-color:var(--foot-ink); }

/* --- sign-in and registration ---------------------------------------- */
[data-pack="home"] .auth-brand{
  background:var(--hero-bg); color:var(--hero-ink);
  border:1px solid var(--line); border-radius:calc(var(--rad) + 4px);
}
/* Both pages fit the window (2026-11-14): the panels are sized to what is
   left of it (window - strip - header - padding), with legal links under the
   form, and the brand panel stays put while the long sign-up form scrolls.
   The site footer comes back below them (2026-11-22): its Staff link is how
   an administrator gets from the login to #/admin. data-view is set by
   navigate() in app.js; the admin shell keeps the footer off. */
[data-view="admin"] .footer{ display:none; }
[data-view="auth"] #app, [data-view="admin"] #app{ padding-top:24px; padding-bottom:24px; }
[data-view="auth"] .split-layout{ min-height:calc(100vh - 148px); gap:8px; }
[data-view="auth"] .auth-brand{
  width:380px; padding:40px; align-self:flex-start;
  position:sticky; top:90px; height:calc(100vh - 148px); min-height:460px;
}
/* The sign-in panel's globe (scene3d.js) takes the space between the logo
   and the pitch, edge to edge; the text stays above it. */
[data-pack="home"] .auth-brand > :not(.nd-3d){ position:relative; z-index:1; }
.nd-3d--globe{ flex:1 1 0; min-height:0; margin:8px -40px 24px; opacity:0; transition:opacity 1.2s var(--e1); }
.nd-3d--globe.is-live{ opacity:1; }
/* Login and register form side (2026-11-21): the logo's tiles (scene3d.js) drift behind a frosted form card, so a tile under the text blurs to a soft colour. Phones get the plain form. */
[data-view="auth"] .auth-form-col--3d{ position:relative; overflow:hidden; } .auth-form-col--3d > :not(.nd-3d){ position:relative; z-index:1; }
.nd-3d--tiles{ position:absolute; inset:0; z-index:0; pointer-events:none; opacity:0; transition:opacity 1.4s var(--e1); } .nd-3d--tiles.is-live{ opacity:.9; }
.auth-form-col--3d .auth-inner{ max-width:460px; margin:0 auto; padding:30px 32px 24px; border-radius:20px; background:color-mix(in srgb, var(--card) 62%, transparent);
  -webkit-backdrop-filter:blur(16px) saturate(1.15); backdrop-filter:blur(16px) saturate(1.15); border:1px solid var(--line); box-shadow:0 18px 50px -24px rgba(0,0,0,.35); }
@media (min-width:1025px){ [data-view="auth"] .split-layout:has(.auth-form-col--3d){ grid-template-columns:auto minmax(0,1fr); } } /* the 380px panel, then all the rest for the form */
[data-view="auth"] .auth-form-col--3d .auth-inner--wide{ max-width:600px; } .auth-form-col--3d .auth-form-card{ background:none; border:0; padding:0; box-shadow:none; } .auth-form-col--3d .auth-back{ align-self:flex-start; padding:6px 12px; border-radius:999px; background:color-mix(in srgb, var(--card) 72%, transparent); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); } /* register: one card, and a frosted back link */
@media (max-width:600px){ .nd-3d--tiles{ display:none; } .auth-form-col--3d .auth-inner{ padding:0; border:0; background:none; box-shadow:none; -webkit-backdrop-filter:none; backdrop-filter:none; } }
/* Sign-up's panel holds a few lines, so it is only as tall as they are. */
[data-view="auth"] .auth-brand--reg{
  height:auto; min-height:0; justify-content:flex-start; gap:36px;
}
[data-view="auth"] .auth-inner--wide{ max-width:560px; }
[data-view="auth"] .auth-form-col{ padding:8px 32px 0; }
[data-view="auth"] .auth-sub{ margin-bottom:22px; }
[data-view="auth"] .auth-back{ display:inline-block; margin-bottom:18px; }
.auth-legal{
  display:flex; justify-content:center; gap:20px; margin-top:20px;
  font-size:13px;
}
.auth-legal a{ color:var(--ink-3); text-decoration:none; }
.auth-legal a:hover{ color:var(--ink); text-decoration:underline; }
[data-pack="home"] .auth-brand::before,
[data-pack="home"] .auth-brand::after{ display:none; }
[data-pack="home"] .auth-brand-top em{ color:var(--hero-accent); }
[data-pack="home"] .auth-kicker{
  display:inline-flex; padding:6px 12px; margin-bottom:20px;
  border-radius:var(--rad-pill); background:var(--hero-surface); color:var(--hero-accent);
  font-family:var(--font-sans); font-size:12px; font-weight:600; letter-spacing:.05em;
}
[data-pack="home"] .auth-brand h1{
  color:var(--hero-ink); font-size:38px; line-height:1.08;
}
[data-pack="home"] .auth-brand p{ color:var(--hero-ink-2); }
[data-pack="home"] .auth-stat{
  background:var(--hero-surface); border:0; border-radius:14px; padding:14px 16px;
}
/* Registration has one tile straight under the column; flex:1 from
   styles.css would stretch it to fill the panel. */
[data-pack="home"] .auth-brand > .auth-stat{ flex:none; }
[data-pack="home"] .auth-stat b{ font-size:24px; font-weight:800; letter-spacing:-.02em; }
[data-pack="home"] .auth-stat span{ color:var(--hero-ink-2); font-size:12px; }
[data-pack="home"] .auth-back{
  font-family:var(--font-sans); font-size:13.5px; font-weight:600;
  text-transform:none; letter-spacing:0;
}
[data-pack="home"] .field label{
  font-family:var(--font-sans); font-size:13.5px; font-weight:600;
  text-transform:none; letter-spacing:0;
}
[data-pack="home"] .field input[type="text"],
[data-pack="home"] .field input[type="email"],
[data-pack="home"] .field input[type="password"],
[data-pack="home"] .field input[type="date"],
[data-pack="home"] .field select,
[data-pack="home"] .pw-field{
  border:1px solid var(--field-line); border-radius:var(--rad-btn);
}
[data-pack="home"] .pw-field{ overflow:hidden; }
[data-pack="home"] .pw-field .eye-btn{ border-left:1px solid var(--field-line); }
[data-pack="home"] .pw-field:focus-within{ border-color:var(--brand); box-shadow:0 0 0 3px var(--brand-soft); }
[data-pack="home"] .auth-disclosure{ border:1px dashed var(--field-line); border-radius:var(--rad-btn); }
[data-pack="home"] .auth-optional{ border:1px solid var(--line); border-radius:var(--rad); }
[data-pack="home"] .auth-optional-kicker{
  font-family:var(--font-sans); font-size:12px; font-weight:600; letter-spacing:.05em;
}

/* --- narrow screens --------------------------------------------------- */
@media (max-width:900px){
  /* The bento stacks: live course full width, the in-development ones a
     two-up row under it. */
  .nd-bento{ grid-template-columns:minmax(0,1fr); }
  .nd-soon-col{ grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:auto; }
  .nd-live{ grid-template-columns:minmax(0,1fr); }
  /* The four steps become a sideways row that snaps, each with its screen. */
  .nd-steps{
    display:flex; gap:12px; min-height:0; overflow-x:auto; scroll-snap-type:x mandatory;
    margin:0 -24px; padding:0 24px 12px; scroll-padding-inline:24px; scrollbar-width:none;
  }
  .nd-steps::-webkit-scrollbar{ display:none; }
  .nd-step{ display:flex; flex-direction:column; flex:0 0 min(84%,420px); scroll-snap-align:start; }
  .nd-step-btn{ border-left:0; border-top:2px solid var(--brand); padding:14px 0 12px; cursor:default; }
  .nd-step-btn:hover{ background:none; }
  .nd-step .nd-step-n, .nd-step .nd-step-t{ color:var(--ink); }
  .nd-pane, .nd-step.is-on .nd-pane{
    position:static; width:auto; height:auto; flex:1; opacity:1; visibility:visible; transform:none;
  }
  .nd-facts{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .nd-facts > div:nth-child(3){ padding-left:0; border-left:0; }
  .nd-facts > div:nth-child(n+3){ border-top:1px solid var(--line); }
}
@media (max-width:600px){
  .nd-3d--terrain{ height:340px; }
  .nd-3d--terrain.is-live{ opacity:.55; }
  [data-pack="home"] .nd-intro{ padding-bottom:20px; }
  [data-pack="home"] .nd-intro h1{ font-size:clamp(32px,10vw,40px); }
  .nd-live{ padding:22px; }
  .nd-term--mini{ display:none; }
  .nd-go{ width:100%; }
  .nd-soon{ padding:18px; }
  .nd-flag{ position:static; align-self:flex-start; order:-1; margin-bottom:4px; }
  [data-pack="home"] .nd-soon h3{ font-size:15.5px; margin-top:4px; }
  .nd-soon .nd-mark{ display:none; }
  .nd-facts b{ font-size:38px; }
}
@media (max-width:760px){
  [data-pack="home"] .home-band{ margin-top:72px; padding-top:72px; padding-bottom:80px; }
  [data-pack="home"] .home-band .origin{ gap:32px; }
  [data-pack] .footer{ padding:56px 20px 32px; }
  [data-pack] .footer-inner{
    grid-template-columns:minmax(0,1fr); grid-template-areas:"brand" "tag" "links" "meta";
  }
  [data-pack] .footer-links{ grid-template-rows:none; grid-auto-flow:row;
    grid-template-columns:repeat(2,minmax(0,auto)); gap:12px 32px; margin-top:12px; }
  [data-pack] .footer-meta{ margin-top:24px; }
}
@media (prefers-reduced-motion:reduce){
  .nd-live, .nd-live:hover, .nd-soon, .nd-bar i, .nd-pane, .nd-step-btn, .nd-arrow,
  .nd-term--mini, .is-pending.is-in, .nd-3d--terrain{
    transition:none; transform:none;
  }
  .nd-caret{ animation:none; }
}

/* ---------- Account help: forgot / reset password, email confirmation ----------
   (account.js, 2026-11-22). Built on the sign-in page's layout and tokens, so
   every theme colours them. Text always sits in --ink on these boxes; --red
   and --brand only draw borders and icons, because neither passes contrast
   as small text on every theme's card. */
.acct-forgot-row{ margin:8px 0 0; text-align:right; font-size:13px; }
.acct-forgot{ font-weight:700; color:var(--brand-deep); }
.acct-forgot:hover{ color:var(--ink); }
.acct-title{ margin:0 0 8px; }
/* Focused by script so the change is announced; it isn't a control, so no ring. */
.acct-title:focus{ outline:none; }
.acct-submit{ width:100%; margin-top:8px; box-sizing:border-box; text-decoration:none; }
a.acct-submit{ display:flex; }
.acct-alt{ margin:16px 0 0; text-align:center; font-size:14px; color:var(--ink-2); }
.acct-alt a{ font-weight:700; }
.acct-note{ margin:-12px 0 20px; font-size:14px; line-height:1.55; color:var(--ink-2); }
.acct-tips{ margin:-8px 0 20px; padding-left:20px; font-size:14px; line-height:1.7; color:var(--ink-2); }
.acct-msg{ display:none; }
.acct-msg:not([hidden]){ display:flex; align-items:flex-start; gap:10px; margin:0 0 16px; padding:12px 14px;
  border:2px solid var(--red); border-left-width:6px; border-radius:10px; background:var(--card);
  color:var(--ink); font-size:14px; line-height:1.5; }
.acct-msg svg{ flex:none; margin-top:3px; color:var(--red); }
.acct-icon{ width:52px; height:52px; display:grid; place-items:center; margin-bottom:16px; border-radius:14px;
  background:var(--brand-soft); color:var(--brand-deep); }
.acct-icon svg{ width:26px; height:26px; }
.acct-icon--ok{ background:var(--brand); color:var(--on-brand); }
.acct-icon--warn{ background:var(--card-2); color:var(--ink); border:2px solid var(--line); }
.acct-loading{ display:flex; align-items:center; gap:12px; padding:28px 0; font-size:15px; color:var(--ink-2); }
.acct-spinner{ width:22px; height:22px; flex:none; border-radius:50%; border:3px solid var(--line);
  border-top-color:var(--brand); animation:acct-spin .8s linear infinite; }
@keyframes acct-spin{ to{ transform:rotate(360deg); } }
.btn[aria-busy="true"]{ cursor:progress; opacity:.8; }
.field input[aria-invalid="true"]{ border-color:var(--red); }
/* The shared .field-err red is about 3:1 on white; here the words take --ink
   and only the icon stays red. */
#acct-panel .field-err{ color:var(--ink); }
#acct-panel .field-err svg{ flex:none; color:var(--red); }

/* The reminder under the header for learners whose email isn't confirmed. */
.verify-banner{ display:none; }
.verify-banner:not([hidden]){ display:block; max-width:1240px; margin:12px auto 0; padding:0 18px; box-sizing:border-box; }
.verify-banner-inner{ display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; padding:12px 14px 12px 16px;
  border:2px solid var(--brand); border-radius:14px; background:var(--brand-soft); color:var(--ink); }
.verify-banner-ic{ display:grid; place-items:center; flex:none; color:var(--brand-deep); }
.verify-banner-ic svg{ width:22px; height:22px; }
.verify-banner-text{ flex:1 1 300px; margin:0; font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.verify-banner-actions{ display:flex; align-items:center; gap:6px; }
.verify-banner .verify-resend{ min-height:44px; padding:8px 14px; box-shadow:none; }
.verify-dismiss{ width:44px; height:44px; border:0; border-radius:10px; background:transparent; color:var(--ink-2);
  font-size:24px; line-height:1; cursor:pointer; }
.verify-dismiss:hover, .verify-dismiss:focus-visible{ background:color-mix(in srgb, var(--ink) 10%, transparent); color:var(--ink); }
.verify-banner-status{ flex-basis:100%; margin:0; font-size:13px; color:var(--ink-2); }
.verify-banner-status:empty{ display:none; }
@media (max-width:600px){
  .verify-banner:not([hidden]){ padding:0 12px; }
  .verify-banner-actions{ width:100%; }
  .verify-banner .verify-resend{ flex:1; }
}
@media (prefers-reduced-motion: reduce){
  .acct-spinner{ animation-duration:2.4s; }
}
