/* ═══════════════════════════════════════════════════════════════════════
   🏟️ THE ARENA ROOM · the lit interior of Caleb's Arena
   The Library (library.html) and the course player (program.html in its
   database mode, assets/arena-course.js). Loaded LAST so it wins.

   SOURCE: the Artist's R02 (and R01's system), carried in Caleb's zip and
   ruled R02 by AR12 (TYDEELife/calebs-arena · docs/handoff/). The brief:
   a Kajabi-grade video training library, polished, not rebuilt.

   THE RULES THE DRAWING SETS, kept here so nobody has to re-derive them:
   · Paper and ink inside. Corners stay square.
   · GILT MEANS COMPLETED AND NOTHING ELSE: the ✓, a finished bar, a finished
     section's count, the wordmark rule. Progress in flight is INK.
   · The course mark is the SILVER spearhead (Caleb's pick); gilt stays the
     reward, so the reward is not diluted by a gold mark everywhere.
   · Playfair Display names things (titles), Montserrat instructs (labels,
     body, buttons). Both self-hosted below; tokens in sol-theme.css.
   · Motion: a 3px lift on Library cards (160ms) and bars filling from the
     left on first view (400ms). Nothing else moves.
   ═══════════════════════════════════════════════════════════════════════ */

@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/playfair-display-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/playfair-display-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/montserrat-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/montserrat-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/montserrat-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/montserrat-latin-700-normal.woff2') format('woff2'); }

:root {
  /* Night (the stage, the covers) */
  --ar-night-0: #101010;
  --ar-night-1: #161616;
  --ar-night-2: #1E1D1B;
  --ar-cream: #F5F2EA;
  --ar-cream-soft: #B8B4AA;
  /* Day (the lit room) */
  --ar-paper-0: #FBFAF6;
  --ar-paper-1: #F2EFE6;
  --ar-card: #FFFFFF;
  --ar-ink: #101010;
  --ar-ink-soft: #3A3A3A;
  --ar-ink-quiet: #6E6E6E;
  --ar-rule: rgba(16,16,16,.14);
  --ar-rule-firm: rgba(16,16,16,.42);
  /* The one accent: completed */
  --ar-gilt: #C6A15B;
  --ar-gilt-deep: #7F6631;   /* R04 fix 5: 8% darker for headroom — 5.23:1 on paper-0, 5.46:1 on white */

  --ar-gutter: 24px;
  --ar-gutter-lg: 64px;
  --ar-max: 1152px;
  --ar-lift: 160ms;
  --ar-fill: 400ms;
}
@media (prefers-reduced-motion: reduce) { :root { --ar-lift: 0ms; --ar-fill: 0ms; } }

/* ── THE ROOM · both pages' shell ───────────────────────────────────── */
html.ar-room, html.ar-room body { background: var(--ar-paper-0) !important; color: var(--ar-ink); }
html.ar-room body { margin: 0; font-family: var(--sol-font-arena-sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html.ar-room #top-bar {
  position: sticky; top: 0; z-index: 50; min-height: 64px; padding: 0 var(--ar-gutter);
  background: var(--ar-paper-0); border-bottom: 1px solid var(--ar-rule); color: var(--ar-ink);
}
@media (min-width: 900px) { html.ar-room #top-bar { padding: 0 var(--ar-gutter-lg); } }
html.ar-room #top-bar .brand-mini img { width: 32px; height: 32px; border-radius: 50%; }
html.ar-room #top-bar .brand-text { font-family: var(--sol-font-arena-serif); font-weight: 700; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--ar-ink); }
html.ar-room #top-bar .user-name { font-family: var(--sol-font-arena-sans); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ar-ink-quiet); }
html.ar-room #top-bar .nav-link,
html.ar-room #top-bar .back-link,
html.ar-room #top-bar .exit-link {
  border: 0; background: transparent; color: var(--ar-ink); padding: 8px 4px;
  font-family: var(--sol-font-arena-sans); font-weight: 600; font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
}
html.ar-room #top-bar .nav-link:hover,
html.ar-room #top-bar .back-link:hover,
html.ar-room #top-bar .exit-link:hover { background: transparent; color: var(--ar-ink); text-decoration: underline; text-underline-offset: 6px; }

/* ── TYPE ───────────────────────────────────────────────────────────── */
.ar-eyebrow { font-family: var(--sol-font-arena-sans); font-weight: 600; font-size: 11px; line-height: 1.3; letter-spacing: .2em; text-transform: uppercase; color: var(--ar-ink-quiet); }
.ar-small { font-family: var(--sol-font-arena-sans); font-size: 13px; line-height: 1.55; color: var(--ar-ink-quiet); font-variant-numeric: tabular-nums; }
.ar-wrap { max-width: var(--ar-max); margin: 0 auto; padding: 0 var(--ar-gutter); box-sizing: content-box; }
@media (min-width: 900px) { .ar-wrap { padding: 0 var(--ar-gutter-lg); } }

/* ── BUTTONS · filled ink, outline ink. Square. The arrow sits at the end. ── */
.ar-btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 44px; padding: 0 16px; box-sizing: border-box; cursor: pointer; text-decoration: none;
  font-family: var(--sol-font-arena-sans); font-weight: 700; font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  border: 1px solid var(--ar-ink); background: var(--ar-ink); color: var(--ar-paper-0);
}
.ar-btn::after { content: "\2192"; font-weight: 400; letter-spacing: 0; }
.ar-btn--plain::after { content: none; }
.ar-btn:hover { background: #2A2927; }
.ar-btn--outline { background: transparent; color: var(--ar-ink); }
.ar-btn--outline:hover { background: var(--ar-ink); color: var(--ar-paper-0); }
.ar-btn--block { width: 100%; }

/* ── BAR · ink while in flight, gilt once complete ───────────────────── */
.ar-bar { display: flex; align-items: center; gap: 12px; }
.ar-bar__track { flex: 1; height: 3px; background: var(--ar-rule); overflow: hidden; }
.ar-bar__fill { height: 100%; width: var(--p, 0%); background: var(--ar-ink); animation: ar-fill var(--ar-fill) ease-out both; }
.ar-bar--done .ar-bar__fill { background: var(--ar-gilt); }
.ar-bar__num { font-family: var(--sol-font-arena-sans); font-weight: 700; font-size: 12px; color: var(--ar-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ar-bar--done .ar-bar__num { color: var(--ar-gilt-deep); }
@keyframes ar-fill { from { width: 0; } }

/* ── COVER-MARK · 16:9, the course's own mark on its shelf tone, a 6%
   lamplight ellipse behind it and a 1px gilt frame. Never words in the art. */
.ar-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; display: block; }
.ar-cover--foundation   { background: var(--ar-night-0) radial-gradient(ellipse 45% 50% at 50% 50%, rgba(245,242,234,.07), transparent 70%); --frame: rgba(198,161,91,.55); }
.ar-cover--mastery      { background: var(--ar-night-1) radial-gradient(ellipse 45% 50% at 50% 50%, rgba(245,242,234,.07), transparent 70%); --frame: rgba(198,161,91,.55); }
.ar-cover--architecture { background: var(--ar-night-2) radial-gradient(ellipse 45% 50% at 50% 50%, rgba(245,242,234,.07), transparent 70%); --frame: rgba(198,161,91,.55); }
.ar-cover--applied      { background: var(--ar-paper-1) radial-gradient(ellipse 45% 50% at 50% 50%, rgba(255,255,255,.6), transparent 70%); --frame: rgba(138,111,53,.5); }
.ar-cover::before { content: ""; position: absolute; inset: 2.5%; border: 1px solid var(--frame); pointer-events: none; z-index: 1; }
.ar-cover__mark { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); height: 64%; width: auto; max-width: 80%; object-fit: contain; }
/* Logo files are padded differently; a mark that already carries its own
   square sits a little smaller so its square doesn't crowd the frame. */
.ar-cover__mark--tile { height: 48%; }
/* An emoji is not a logo: monochrome, sized as a glyph. */
.ar-cover__emoji { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); font-size: clamp(32px, 5vw, 56px); line-height: 1; filter: grayscale(1) contrast(1.1); }
.ar-cover--mastery .ar-cover__emoji, .ar-cover--foundation .ar-cover__emoji, .ar-cover--architecture .ar-cover__emoji { filter: grayscale(1) brightness(1.6); }

/* ── COVER-DOOR · the four doors (R05-C). One component, one modifier per
   door, built only from the silver spearhead and the crest. One thing
   changes per door so they tell apart at thumbnail size. Never faded. */
.ar-cover--door-1 { background: var(--ar-night-0) radial-gradient(ellipse 45% 50% at 50% 50%, rgba(245,242,234,.07), transparent 70%); --frame: rgba(198,161,91,.55); }
.ar-cover--door-2 { background: var(--ar-paper-1) radial-gradient(ellipse 45% 50% at 50% 50%, rgba(255,255,255,.75), transparent 70%); --frame: var(--ar-gilt-deep); }
.ar-cover--door-2 .ar-cover__mark { filter: grayscale(1) brightness(.34) contrast(1.15); }
.ar-cover--door-3 { --frame: rgba(198,161,91,.55);
  background-color: var(--ar-night-0);
  background-image: radial-gradient(ellipse 45% 50% at 50% 50%, rgba(245,242,234,.07), transparent 70%),
    linear-gradient(rgba(245,242,234,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,242,234,.06) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px; background-position: center, 8px 8px, 8px 8px; }
.ar-cover--door-4 { background: var(--ar-night-0) radial-gradient(ellipse 45% 50% at 50% 50%, rgba(245,242,234,.07), transparent 70%); --frame: rgba(198,161,91,.65); }
.ar-cover--door-4::after { content: ""; position: absolute; inset: calc(2.5% + 6px); border: 1px solid var(--frame); pointer-events: none; z-index: 1; }
/* Thumbnails (≤320px wide: the Continue row): the grid steps to 12px at 8%,
   and the inner frame comes in to 7px so it stays visible. */
.ar-continue__row .ar-cover--door-3, .ar-lesson-side .ar-cover--door-3 {
  background-image: radial-gradient(ellipse 45% 50% at 50% 50%, rgba(245,242,234,.07), transparent 70%),
    linear-gradient(rgba(245,242,234,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,242,234,.08) 1px, transparent 1px);
  background-size: auto, 12px 12px, 12px 12px; background-position: center, 4px 4px, 4px 4px; }
.ar-continue__row .ar-cover--door-4::after { inset: 7px; }

/* ── THE DOORS ROW (AR19): four in order. One column on a phone, two on
   a tablet, one row of four at desktop. */
.ar-doors { display: grid; gap: 16px; }
@media (min-width: 600px) { .ar-doors { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .ar-doors { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.ar-door__n { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 8px; border: 1px solid currentColor; font-size: 10px; letter-spacing: 0; vertical-align: 1px; }
.ar-door.ar-card--soon .ar-card__desc { color: var(--ar-ink-quiet); }
@media (max-width: 599px) {
  .ar-card.ar-door { display: grid; grid-template-columns: 124px 1fr; align-items: start; }
  .ar-door .ar-cover { margin: 12px 0 0 12px; aspect-ratio: 16 / 9; }
  .ar-door .ar-cover::before { inset: 4%; }
  .ar-door .ar-cover--door-4::after { inset: 7px; }
  .ar-door .ar-cover--door-3 { background-size: auto, 12px 12px, 12px 12px; background-position: center, 4px 4px, 4px 4px; }
  .ar-door .ar-card__body { padding: 12px 14px; gap: 4px; }
  .ar-door .ar-card__title { font-size: 16px; }
  .ar-door .ar-card__foot { grid-column: 1 / -1; }
}

/* ── COURSE-CARD · four states. Only the foot changes. ──────────────── */
.ar-card { display: flex; flex-direction: column; background: var(--ar-card); border: 1px solid var(--ar-rule); text-decoration: none; color: inherit; transition: transform var(--ar-lift) ease-out, box-shadow var(--ar-lift) ease-out; min-width: 0; }
a.ar-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -14px rgba(16,16,16,.35); }
.ar-card__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 18px; flex: 1; }
.ar-card__title { font-family: var(--sol-font-arena-serif); font-weight: 700; font-size: 18px; line-height: 1.25; color: var(--ar-ink); }
.ar-card__desc { font-family: var(--sol-font-arena-sans); font-size: 13px; line-height: 1.5; color: var(--ar-ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ar-card__foot { margin-top: auto; padding-top: 10px; display: flex; flex-direction: column; gap: 14px; }
.ar-card__done { font-family: var(--sol-font-arena-sans); font-weight: 600; font-size: 12px; color: var(--ar-gilt-deep); white-space: nowrap; }
.ar-soonline { display: flex; align-items: center; gap: 8px; font-family: var(--sol-font-arena-sans); font-weight: 600; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ar-ink-quiet); }
.ar-soonline::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1px solid currentColor; }
.ar-card--soon .ar-card__title { color: var(--ar-ink-soft); }

/* ── LIBRARY ────────────────────────────────────────────────────────── */
html.ar-room #hero, html.ar-room #library-heading { display: none; }
html.ar-room #programs-wrap { max-width: none; margin: 0; padding: 0 0 96px; }
.ar-lib-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; padding: 32px 0 8px; }
.ar-lib-head h1 { margin: 6px 0 0; font-family: var(--sol-font-arena-serif); font-weight: 700; font-size: 30px; letter-spacing: .16em; text-transform: uppercase; color: var(--ar-ink); }
@media (min-width: 900px) { .ar-lib-head { padding-top: 56px; } .ar-lib-head h1 { font-size: 44px; } }
.ar-section { margin-top: 40px; }
.ar-section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding-bottom: 10px; margin-bottom: 16px; }
.ar-section__head--ruled { border-bottom: 1px solid var(--ar-rule-firm); }
.ar-section__name { font-family: var(--sol-font-arena-sans); font-weight: 700; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ar-ink); }
.ar-section__head--ruled .ar-section__name { font-family: var(--sol-font-arena-serif); font-size: 17px; letter-spacing: .18em; }
.ar-section__sub { font-family: var(--sol-font-arena-sans); font-size: 12px; color: var(--ar-ink-quiet); }

/* Continue watching: a wide row per started course */
.ar-continue { display: grid; gap: 12px; }
@media (min-width: 900px) { .ar-continue { grid-template-columns: 1fr 1fr; gap: 24px; } }
.ar-continue__row { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; padding: 10px; background: var(--ar-card); border: 1px solid var(--ar-rule); text-decoration: none; color: inherit; }
@media (min-width: 900px) { .ar-continue__row { grid-template-columns: 176px 1fr auto; gap: 18px; } }
.ar-continue__row .ar-cover::before { inset: 4%; }
.ar-continue__row .ar-card__title { font-size: 16px; }
.ar-continue__row .ar-btn { display: none; }
@media (min-width: 900px) { .ar-continue__row .ar-btn { display: inline-flex; } }

/* Start here: two featured cards, cover beside the words at desktop */
.ar-featured { display: grid; gap: 16px; }
@media (min-width: 900px) { .ar-featured { grid-template-columns: 1fr 1fr; gap: 24px; } }
.ar-feature { display: grid; background: var(--ar-card); border: 1px solid var(--ar-rule); text-decoration: none; color: inherit; transition: transform var(--ar-lift) ease-out, box-shadow var(--ar-lift) ease-out; }
a.ar-feature:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -14px rgba(16,16,16,.35); }
.ar-feature .ar-card__body { padding: 18px; gap: 10px; }
.ar-feature .ar-card__title { font-size: 22px; }
.ar-feature .ar-btn { align-self: stretch; }
@media (min-width: 1100px) {
  .ar-feature { grid-template-columns: 1.4fr 1fr; }
  .ar-feature .ar-cover { height: 100%; aspect-ratio: auto; min-height: 220px; }
}

/* Shelves: 4-up at desktop; on phone they swipe sideways at 240px with the
   next card peeking, inside their own box (the page never scrolls sideways). */
.ar-shelf { display: grid; gap: 16px; grid-auto-flow: column; grid-auto-columns: 240px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--ar-gutter)); padding: 0 var(--ar-gutter) 6px; scroll-padding-left: var(--ar-gutter); scrollbar-width: none; }
.ar-shelf::-webkit-scrollbar { display: none; }
.ar-shelf > * { scroll-snap-align: start; }
@media (min-width: 900px) { .ar-shelf { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; gap: 24px; } }
@media (min-width: 1200px) { .ar-shelf { grid-template-columns: repeat(4, 1fr); } }
.ar-shelf__count { font-family: var(--sol-font-arena-sans); font-size: 12px; color: var(--ar-ink-quiet); }
@media (max-width: 899px) { .ar-section__head--ruled .ar-section__sub { display: none; } }
@media (min-width: 900px) { .ar-shelf__count { display: none; } }
.ar-empty { text-align: center; padding: 48px 20px; font-family: var(--sol-font-arena-sans); font-weight: 600; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ar-ink-quiet); }

/* ── COURSE PAGE (database mode) ────────────────────────────────────── */
html.ar-room #program-shell { display: block; background: var(--ar-paper-0); }
html.ar-room #program-shell > #side, html.ar-room #program-shell > #main { display: none; }
/* the page's one-line lens caption sits outside the shell; the course header does that job here */
html.ar-room #top-bar ~ div[style]:not([id]) { display: none; }
.ar-course-head { padding: 0 0 32px; border-bottom: 1px solid var(--ar-rule); }
.ar-course-head__grid { display: grid; gap: 22px; }
.ar-course-head .ar-cover { margin: 0 calc(-1 * var(--ar-gutter)); }
.ar-course-head__title { margin: 8px 0 10px; font-family: var(--sol-font-arena-serif); font-weight: 700; font-size: 26px; line-height: 1.15; color: var(--ar-ink); }
.ar-course-head__desc { margin: 0; font-family: var(--sol-font-arena-sans); font-size: 14px; line-height: 1.65; color: var(--ar-ink-soft); max-width: 58ch; }
.ar-course-head__bar { margin: 20px 0 18px; max-width: 420px; }
.ar-course-head__go { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.ar-next { font-family: var(--sol-font-arena-sans); font-size: 13px; color: var(--ar-ink-quiet); }
.ar-next b { font-weight: 500; color: var(--ar-ink); }
@media (min-width: 900px) {
  .ar-course-head { padding: 40px 0 40px; }
  .ar-course-head .ar-cover { margin: 0; }
  .ar-course-head__grid { grid-template-columns: minmax(0, 450px) 1fr; gap: 42px; align-items: center; }
  .ar-course-head__title { font-size: 34px; }
}
.ar-course-body { display: grid; gap: 32px; padding: 28px 0 120px; }
@media (min-width: 1100px) { .ar-course-body { grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; padding-bottom: 96px; } }
.ar-rail { align-self: start; background: var(--ar-card); border: 1px solid var(--ar-rule); padding: 22px; }
.ar-mentor { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; margin-bottom: 14px; }
.ar-mentor img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--ar-paper-1); }
.ar-mentor__name { font-family: var(--sol-font-arena-serif); font-weight: 700; font-size: 17px; color: var(--ar-ink); }
.ar-rail p { margin: 0; font-family: var(--sol-font-arena-sans); font-size: 13px; line-height: 1.6; color: var(--ar-ink-soft); }
.ar-rail ul { list-style: none; margin: 10px 0 0; padding: 0; }
.ar-rail li { font-family: var(--sol-font-arena-sans); font-size: 13px; line-height: 1.4; color: var(--ar-ink); padding: 5px 0; }
.ar-rail__rule { height: 1px; background: var(--ar-rule); margin: 18px 0 14px; }

/* the lesson list, grouped by stage */
.ar-stage { border-top: 1px solid var(--ar-rule-firm); padding-top: 4px; margin-bottom: 18px; }
.ar-stage__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0 6px; }
.ar-stage__name { font-family: var(--sol-font-arena-sans); font-weight: 700; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ar-ink); }
.ar-stage__count { font-family: var(--sol-font-arena-sans); font-size: 11px; color: var(--ar-ink-quiet); white-space: nowrap; }
.ar-stage__count--done { color: var(--ar-gilt-deep); font-weight: 600; }
.ar-lesson {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; width: 100%;
  min-height: 48px; padding: 8px 10px 8px 10px; box-sizing: border-box; border: 0; border-left: 2px solid transparent;
  background: transparent; text-align: left; cursor: pointer; color: inherit; font: inherit; text-decoration: none;
}
.ar-lesson:hover { background: rgba(242,239,230,.6); }
.ar-lesson__title { font-family: var(--sol-font-arena-sans); font-size: 14px; line-height: 1.35; color: var(--ar-ink); }
.ar-lesson__len { font-family: var(--sol-font-arena-sans); font-size: 12px; color: var(--ar-ink-quiet); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ar-dot { width: 18px; height: 18px; border-radius: 50%; box-sizing: border-box; display: grid; place-items: center; justify-self: center; border: 1px solid rgba(16,16,16,.35); }
.ar-lesson--done .ar-dot { background: var(--ar-gilt-deep); border: 0; }
.ar-lesson--done .ar-dot::after { content: "\2713"; color: var(--ar-paper-0); font-size: 11px; font-weight: 700; line-height: 1; }
.ar-lesson--done .ar-lesson__title { color: var(--ar-ink-quiet); }
.ar-lesson--current { background: var(--ar-paper-1); border-left-color: var(--ar-ink); }
.ar-lesson--current:hover { background: var(--ar-paper-1); }
.ar-lesson--current .ar-dot { border: 2px solid var(--ar-ink); }
.ar-lesson--current .ar-lesson__title { font-weight: 700; }
.ar-lesson--soon .ar-dot { border: 1px dashed rgba(16,16,16,.35); }
.ar-lesson--soon .ar-lesson__title { color: var(--ar-ink-quiet); }

/* ── LESSON ─────────────────────────────────────────────────────────── */
.ar-lesson-page { display: block; }
.ar-lesson-side { display: none; }
@media (min-width: 900px) {
  .ar-lesson-page { display: grid; grid-template-columns: 320px minmax(0, 1fr); min-height: calc(100vh - 64px); }
  .ar-lesson-side { display: block; background: var(--ar-paper-1); border-right: 1px solid var(--ar-rule); padding: 24px 20px 48px; position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; box-sizing: border-box; }
  .ar-lesson-side .ar-lesson--current { background: var(--ar-card); }
}
.ar-side-title { font-family: var(--sol-font-arena-serif); font-weight: 700; font-size: 17px; line-height: 1.25; color: var(--ar-ink); margin: 0 0 10px; }
.ar-lesson-side .ar-bar { margin-bottom: 18px; }
.ar-lesson-side .ar-stage { margin-bottom: 8px; }
.ar-lesson-main { padding: 0 0 120px; min-width: 0; }
@media (min-width: 900px) { .ar-lesson-main { padding: 28px 48px 96px; max-width: 1000px; } }
.ar-player { position: relative; aspect-ratio: 16 / 9; background: var(--ar-night-0); overflow: hidden; color: var(--ar-cream); }
.ar-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ar-soon { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 16px; background: var(--ar-night-0) radial-gradient(ellipse 45% 55% at 50% 45%, rgba(245,242,234,.08), transparent 70%); }
.ar-soon__crest { width: 40px; height: 40px; margin: 0 auto 14px; display: block; opacity: .95; }
.ar-soon__kicker { font-family: var(--sol-font-arena-sans); font-weight: 700; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--ar-gilt); }
.ar-soon__title { margin: 8px 0 6px; font-family: var(--sol-font-arena-serif); font-weight: 700; font-size: 20px; line-height: 1.2; color: var(--ar-cream); }
.ar-soon__line { font-family: var(--sol-font-arena-sans); font-size: 13px; line-height: 1.5; color: var(--ar-cream-soft); max-width: 40ch; margin: 0 auto; }
@media (min-width: 900px) { .ar-soon__crest { width: 56px; height: 56px; } .ar-soon__title { font-size: 28px; } }
.ar-lesson-info { padding: 20px var(--ar-gutter) 0; }
@media (min-width: 900px) { .ar-lesson-info { padding: 22px 0 0; } }
.ar-lesson-info__row { display: grid; gap: 16px; }
@media (min-width: 900px) { .ar-lesson-info__row { grid-template-columns: 1fr auto; align-items: end; } }
.ar-lesson-info h1 { margin: 6px 0 0; font-family: var(--sol-font-arena-serif); font-weight: 700; font-size: 28px; line-height: 1.15; color: var(--ar-ink); }
@media (min-width: 900px) { .ar-lesson-info h1 { font-size: 34px; } }
.ar-lesson-info h1 .ar-gilt-tick { color: var(--ar-gilt-deep); font-size: .7em; margin-right: 8px; vertical-align: .12em; }
.ar-notes { margin: 22px var(--ar-gutter) 0; padding-top: 20px; border-top: 1px solid var(--ar-rule); max-width: 64ch; }
@media (min-width: 900px) { .ar-notes { margin: 24px 0 0; } }
.ar-notes p { margin: 0 0 14px; font-family: var(--sol-font-arena-sans); font-size: 15px; line-height: 1.7; color: var(--ar-ink-soft); }

/* phone: the sticky bars and the drawer */
.ar-stickybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; background: var(--ar-paper-0); border-top: 1px solid var(--ar-rule); padding-bottom: env(safe-area-inset-bottom); }
.ar-stickybar > * { min-height: 56px; }
.ar-stickybar .ar-btn { flex: 1; margin: 8px var(--ar-gutter); min-height: 44px; }
.ar-stickybar__lessons { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 0 18px; border: 0; border-right: 1px solid var(--ar-rule); background: transparent; cursor: pointer; font-family: var(--sol-font-arena-sans); font-weight: 700; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ar-ink); }
.ar-stickybar__next { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 18px; text-decoration: none; color: var(--ar-ink); border: 0; background: transparent; cursor: pointer; text-align: left; }
.ar-stickybar__next small { display: block; font-family: var(--sol-font-arena-sans); font-weight: 700; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--ar-ink-quiet); }
.ar-stickybar__next b { display: block; font-family: var(--sol-font-arena-sans); font-weight: 500; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 900px) { .ar-stickybar { display: none; } }
.ar-drawer { display: none; }
html.ar-drawer-open .ar-drawer { display: block; position: fixed; inset: 0; z-index: 80; }
.ar-drawer__scrim { position: absolute; inset: 0; background: rgba(16,16,16,.45); border: 0; width: 100%; }
.ar-drawer__sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 82vh; overflow-y: auto; background: var(--ar-paper-0); padding: 10px var(--ar-gutter) calc(24px + env(safe-area-inset-bottom)); box-sizing: border-box; }
.ar-drawer__grab { width: 40px; height: 4px; background: var(--ar-rule-firm); margin: 2px auto 14px; }
.ar-drawer__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; }
html.ar-drawer-open body { overflow: hidden; }

/* ── TYDEE U wears the Library too: the same room in its own colours ── */
html.brand-tydeeu.ar-room { --ar-ink: #1a4634; --ar-paper-0: #FCF8F0; }
html.brand-tydeeu.ar-room #top-bar { background: #1a4634; color: #FCF8F0; border-bottom-color: #b6955a; }
html.brand-tydeeu.ar-room #top-bar .brand-text,
html.brand-tydeeu.ar-room #top-bar .back-link,
html.brand-tydeeu.ar-room #top-bar .exit-link { color: #FCF8F0; }

/* ═══ R03 · EDGE STATES AND THE ACCESS PASS (built 2026-10-20) ══════════ */

/* Focus: a 2px ring at a 3px offset, ink on paper and cream on night.
   :focus-visible only, so a tap never draws a ring. Gilt is never a focus
   colour. */
html.ar-room :focus { outline: none; }
html.ar-room :focus-visible { outline: 2px solid var(--ar-ink); outline-offset: 3px; }
html.ar-room .ar-night :focus-visible,
html.ar-room .ar-soon :focus-visible,
html.ar-room .ar-offline :focus-visible { outline-color: var(--ar-cream); }
html.ar-room [tabindex="-1"]:focus-visible { outline: none; }
.ar-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* The skip link: first tab stop, hidden until focused, a night pill. */
.ar-skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ar-night-0); color: var(--ar-cream); font-family: var(--sol-font-arena-sans); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-decoration: none; }
.ar-skip:focus, .ar-skip:focus-visible { top: 12px; outline: 2px solid var(--ar-cream); outline-offset: 3px; }

/* R03 fix 2: the course page's sticky bar waits for the header to scroll away. */
.ar-stickybar--wait { transform: translateY(110%); visibility: hidden; transition: transform var(--ar-lift) ease-out, visibility 0s linear var(--ar-lift); }
.ar-stickybar--wait.is-shown { transform: none; visibility: visible; transition: transform var(--ar-lift) ease-out; }

/* R03 fix 3: a lesson with no notes yet says so, quietly. */
.ar-notes__empty { color: var(--ar-ink-quiet) !important; }

/* HELD SPACE: no shimmer, no spinner. Boxes hold their final size in
   paper-1; covers hold in night-0. Content fades in over 160ms. */
.ar-held { display: block; height: 14px; background: var(--ar-paper-1); }
.ar-held--dot { width: 18px; height: 18px; border-radius: 50%; flex: 0 0 18px; }
.ar-held__row { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.ar-held__row .ar-held:last-child { flex: 0 1 auto; }
.ar-cover--held::before { display: none; }
.ar-card--held { pointer-events: none; }
.ar-in { animation: ar-in 160ms ease-out both; }
@keyframes ar-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ar-in { animation: none; } }

/* ERROR · CLOSED · SESSION ENDED: calm, one way forward, an alternative link, no red. */
.ar-edge { max-width: 440px; padding: 72px 0 96px; }
.ar-edge__crest { width: 56px; height: 56px; border-radius: 50%; margin-bottom: 22px; display: block; }
.ar-edge__title { margin: 8px 0 12px; font-family: var(--sol-font-arena-serif); font-weight: 700; font-size: 26px; line-height: 1.2; color: var(--ar-ink); }
.ar-edge__line { margin: 0 0 26px; font-family: var(--sol-font-arena-sans); font-size: 15px; line-height: 1.6; color: var(--ar-ink-soft); }
.ar-edge .ar-btn { min-width: 220px; }
.ar-edge__alt { display: inline-block; margin-top: 18px; font-family: var(--sol-font-arena-sans); font-size: 13px; color: var(--ar-ink-soft); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; line-height: 44px; }
.ar-edge .ar-edge__alt { display: block; }
.ar-btn--cream { background: var(--ar-cream); color: var(--ar-ink); border-color: var(--ar-cream); }
.ar-btn--cream:hover { background: #FFFFFF; }
html.ar-night-page, html.ar-night-page body { background: var(--ar-night-0) !important; }
.ar-night { min-height: calc(100vh - 64px); background: var(--ar-night-0) radial-gradient(ellipse 55% 45% at 50% 35%, rgba(245,242,234,.06), transparent 70%); display: grid; place-items: start center; padding: 0 var(--ar-gutter); }
.ar-edge--night .ar-edge__title { color: var(--ar-cream); }
.ar-edge--night .ar-edge__line, .ar-edge--night .ar-edge__alt { color: var(--ar-cream-soft); }
.ar-edge--night .ar-eyebrow { color: var(--ar-cream-soft); }
.ar-edge--night .ar-edge__crest { border-radius: 0; }

/* OFFLINE: a night bar under the header, never a full page. */
.ar-offline { position: sticky; top: 64px; z-index: 49; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px var(--ar-gutter); background: var(--ar-night-0); color: var(--ar-cream); font-family: var(--sol-font-arena-sans); font-size: 13px; }
.ar-offline button { min-height: 44px; padding: 0 6px; border: 0; background: transparent; color: var(--ar-gilt); font-family: var(--sol-font-arena-sans); font-weight: 700; font-size: 13px; cursor: pointer; }

/* R03 fix 4: on a phone the Continue watching row carries its own → (44px). */
.ar-continue__go { display: grid; place-items: center; width: 44px; height: 44px; font-size: 18px; color: var(--ar-ink); }
@media (min-width: 900px) { .ar-continue__go { display: none; } }
@media (max-width: 899px) { .ar-continue__row { grid-template-columns: 120px 1fr 44px; } }

/* R03 fix 5: every emoji cover in one tone. Vessel logos (image files) keep colour. */
.ar-cover__emoji, .ar-cover--applied .ar-cover__emoji { filter: grayscale(1) contrast(1.05); }
.ar-cover--foundation .ar-cover__emoji, .ar-cover--mastery .ar-cover__emoji, .ar-cover--architecture .ar-cover__emoji { filter: grayscale(1) brightness(1.6); }

/* FIRST-LIGHT: a member with no progress yet. One door is lit; the shelves
   below stay visible at 60%, never locked or hidden. */
.ar-first { display: grid; gap: 24px; padding: 8px 0 8px; }
.ar-first__title { margin: 6px 0 12px; font-family: var(--sol-font-arena-serif); font-weight: 700; font-size: 28px; line-height: 1.15; color: var(--ar-ink); }
.ar-first__line { margin: 0; font-family: var(--sol-font-arena-sans); font-size: 14px; line-height: 1.65; color: var(--ar-ink-soft); max-width: 40ch; }
@media (min-width: 900px) { .ar-first { grid-template-columns: 1fr 1.25fr; align-items: center; gap: 48px; padding-top: 16px; } .ar-first__title { font-size: 44px; } }
/* R04 fix 1: the shelves are NOT faded on first-light — at 60% the night
   covers went grey and the logos washed out. The one lit door is enough. */

/* NOT-FOUND: back to Night, the door's own material, one route home. */
.ar-404 { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 48px var(--ar-gutter); background: var(--ar-night-0) radial-gradient(ellipse 50% 45% at 50% 42%, rgba(245,242,234,.06), transparent 70%); color: var(--ar-cream); }
.ar-404__crest { width: 84px; height: 84px; margin: 0 auto 28px; display: block; }
.ar-404 h1 { margin: 0; font-family: var(--sol-font-arena-serif); font-weight: 700; font-size: 30px; letter-spacing: .16em; text-transform: uppercase; }
.ar-404__rule { width: 56px; height: 1px; background: var(--ar-gilt); margin: 22px auto; }
.ar-404 p { margin: 0 0 28px; font-family: var(--sol-font-arena-sans); font-size: 14px; color: var(--ar-cream-soft); }
.ar-404 .ar-btn { min-width: 260px; justify-content: center; }
.ar-404 .ar-btn::after { content: none; }
@media (min-width: 900px) { .ar-404__crest { width: 120px; height: 120px; } .ar-404 h1 { font-size: 40px; } }

/* CONTRAST (R03 access pass, measured 2026-10-20): ink-quiet on paper-1 is
   4.43:1, under 4.5. On the lesson sidebar's paper-1 ground the quiet text
   steps one darker to #666666 (4.99:1). Every other pair in use measured
   4.56:1 or higher. */
.ar-lesson-side { --ar-ink-quiet: #666666; }

/* ═══ R04 (2026-10-20) ═══════════════════════════════════════════════════ */
/* Fix 2: first-light's button says only Begin; the first lesson sits under it. */
.ar-first-next { margin: 2px 0 0; font-family: var(--sol-font-arena-sans); font-size: 13px; color: var(--ar-ink-quiet); }
.ar-first-next b { font-weight: 500; color: var(--ar-ink); }
/* Fix 3: the course page's sticky bar is the lesson page's next-bar pattern:
   a label, the title on ONE line (… if long), and an ink → cell. */
/* R05 fix 2: the → cell is the full bar height and as wide, 64 × 64. It sat
   inside the button's padding with no height of its own, so it drew as a
   thin strip. */
.ar-stickybar__go { flex: 0 0 64px; align-self: stretch; min-height: 64px; display: grid; place-items: center; background: var(--ar-ink); color: var(--ar-paper-0); font-size: 18px; }
.ar-stickybar__next--course { padding-top: 0; padding-bottom: 0; padding-right: 0; gap: 0; align-items: stretch; min-height: 64px; }
.ar-stickybar__next--course > span:first-child { align-self: center; }
.ar-stickybar__next--course > span:first-child { flex: 1; min-width: 0; padding-right: 14px; }
/* Fix 4: an offline Complete looks disabled: 1px #9A9A9A outline, #666 text,
   no arrow, and a line under it saying it waits. */
.ar-btn:disabled, .ar-btn[aria-disabled="true"] { background: transparent; color: #666666; border-color: #9A9A9A; cursor: not-allowed; opacity: 1; }
.ar-btn:disabled::after, .ar-btn[aria-disabled="true"]::after { content: none; }
.ar-wait { display: none; margin: 8px 0 0; font-family: var(--sol-font-arena-sans); font-size: 12px; color: #666666; }
html.ar-is-offline .ar-wait { display: block; }

/* ── SETTINGS · WHAT THE LIBRARY SHOWS (R05-A board 3). Square ink
   switches; the word Shown or Hidden sits beside each, so colour is never
   the only signal. Owner only. */
.ar-shows__lede { max-width: 560px; margin: 8px 0 24px; font-family: var(--sol-font-arena-sans); font-size: 14px; line-height: 1.55; color: var(--ar-ink-soft); }
.ar-shows { border-top: 1px solid var(--ar-rule-firm); margin-bottom: 20px; max-width: 720px; }
.ar-shows__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--ar-rule); }
.ar-shows__title { font-family: var(--sol-font-arena-serif); font-weight: 700; font-size: 16px; color: var(--ar-ink); margin-bottom: 2px; }
.ar-shows__note { max-width: 560px; margin: 0 0 14px; }
.ar-switch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--sol-font-arena-sans); font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ar-ink); }
.ar-switch[disabled] { cursor: default; opacity: .6; }
.ar-switch__box { position: relative; width: 40px; height: 22px; border: 1px solid var(--ar-ink); background: var(--ar-paper-0); }
.ar-switch__knob { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; background: var(--ar-ink); transition: left .15s ease-out; }
.ar-switch[aria-checked="true"] .ar-switch__box { background: var(--ar-ink); }
.ar-switch[aria-checked="true"] .ar-switch__knob { left: 21px; background: var(--ar-paper-0); }
.ar-switch__word { min-width: 54px; text-align: left; }
@media (prefers-reduced-motion: reduce) { .ar-switch__knob { transition: none; } }

/* ── THE RECEIPT (R05-A board 4): one line where the button was, the page's
   only gilt ✓, and a link to the person's board. */
.ar-receipt { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; font-family: var(--sol-font-arena-sans); font-size: 14px; line-height: 1.5; color: var(--ar-ink); }
.ar-receipt .ar-gilt-tick { color: var(--ar-gilt-deep); font-size: 18px; line-height: 1; }
.ar-receipt a { color: var(--ar-ink); text-decoration: underline; text-underline-offset: 3px; }
.ar-receipt:focus { outline: none; }
.ar-receipt:focus-visible { outline: 2px solid var(--ar-ink); outline-offset: 3px; }

/* ═══ R06 (2026-10-20) ═══════════════════════════════════════════════════ */
/* First-light with the ladder: one lit door across the page. The cover takes
   7 of 12 columns at desktop; the welcome sits inside the card. */
.ar-first--ladder { display: grid; background: var(--ar-card); border: 1px solid var(--ar-rule); text-decoration: none; color: inherit; }
.ar-first--ladder .ar-cover { aspect-ratio: 16 / 9; }
.ar-first__body { display: flex; flex-direction: column; gap: 12px; padding: 20px 20px 22px; }
.ar-first__title { font-family: var(--sol-font-arena-serif); font-weight: 700; font-size: 26px; line-height: 1.2; color: var(--ar-ink); }
.ar-first--ladder .ar-card__title { font-size: 19px; }
.ar-first__desc { font-family: var(--sol-font-arena-sans); font-size: 14px; line-height: 1.6; color: var(--ar-ink-soft); }
.ar-first--ladder .ar-btn { margin-top: 6px; }
@media (min-width: 900px) {
  .ar-first--ladder { grid-template-columns: 7fr 5fr; }
  .ar-first--ladder .ar-cover { aspect-ratio: auto; min-height: 380px; height: 100%; }
  .ar-first__body { padding: 40px 40px 36px; justify-content: center; }
  .ar-first__title { font-size: 34px; }
  .ar-first--ladder .ar-btn { max-width: 340px; }
}
/* Doors 2–4 fill one row of three under first-light. */
@media (min-width: 1100px) { .ar-doors--three { grid-template-columns: repeat(3, 1fr); } }
.ar-section__head--ruled-thin { border-bottom: 1px solid var(--ar-rule); }
.ar-section__sub--keep { display: inline; }
/* The number is filled only on the door where she is. */
.ar-door__n--here { background: var(--ar-ink); color: var(--ar-paper-0); border-color: var(--ar-ink); }
/* Descriptions are never cut on a door. */
.ar-door .ar-card__desc { display: block; -webkit-line-clamp: unset; overflow: visible; }
/* On a phone the eyebrow is the door's name only. */
@media (max-width: 599px) { .ar-eyebrow__more { display: none; } }

/* The receipt (R06 board 2): the ✓ is gilt #C6A15B. At 900px and up it sits
   under the title, full width between two hairlines, with Next lesson at the
   right end of the same row. */
.ar-receipt .ar-gilt-tick { color: var(--ar-gilt); }
.ar-receipt__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 16px 0 0; padding: 14px 0; border-top: 1px solid var(--ar-rule); border-bottom: 1px solid var(--ar-rule); }
.ar-receipt__row .ar-receipt { margin: 0; flex: 1 1 280px; }
.ar-receipt__acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
@media (max-width: 899px) { .ar-receipt__acts .ar-btn[data-lesson], .ar-receipt__acts .ar-btn[data-course] { display: none; } }
/* R07 · ar-hit — her verdict belongs to the receipt: indented under its words
   (28px, past the ✓), inside the same two hairlines. The empty square is her
   board's HIT cell; after her tap it fills with ink (hers, beside the gilt ✓). */
.ar-hit { flex: 1 0 calc(100% - 28px); max-width: calc(100% - 28px); margin: 0 0 0 28px; font-family: var(--sol-font-arena-sans); }
.ar-hit__btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 0 16px; background: transparent; border: 1px solid var(--ar-ink); border-radius: 2px; color: var(--ar-ink); font: 600 13px/1 var(--sol-font-arena-sans); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.ar-hit__btn:hover { background: rgba(0,0,0,.03); }
.ar-hit__btn:focus-visible, .ar-hit__undo:focus-visible, .ar-hit__line:focus-visible { outline: 2px solid var(--ar-ink); outline-offset: 3px; }
.ar-hit__btn:disabled { opacity: .6; cursor: default; }
.ar-hit__sq { display: inline-block; flex: 0 0 auto; width: 14px; height: 14px; border: 1.5px solid var(--ar-ink); border-radius: 1px; }
.ar-hit__sq--on { background: var(--ar-ink); }
.ar-hit__help { margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: var(--ar-ink-soft); }
.ar-hit--on { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ar-hit__line { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; line-height: 1.5; color: var(--ar-ink); }
.ar-hit__line:focus { outline: none; }
.ar-hit__undo { min-height: 44px; padding: 0 4px; background: none; border: 0; color: var(--ar-ink); font: 500 13px/1 var(--sol-font-arena-sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ar-hit--alone { max-width: none; margin: 14px 0 0; padding: 12px 0; border-top: 1px solid var(--ar-rule); border-bottom: 1px solid var(--ar-rule); }
@media (min-width: 900px) {
  .ar-hit { flex: 0 1 auto; max-width: none; margin: 0; }
  .ar-hit--alone { margin: 14px 0 0; }
  .ar-hit__btn { width: auto; min-width: 220px; }
  .ar-hit__help { display: none; }
  /* R08 · after the tap her line drops to its own row (ar-hit__row2): the
     receipt and Next lesson keep row 1 and the machine's sentence never
     wraps. Square under the ✓, words under the receipt's words, Undo 12px
     after them, a lighter 8% hairline above. */
  .ar-hit--on { justify-content: flex-start; gap: 12px; }
  .ar-receipt__row .ar-receipt__acts { order: 2; }
  .ar-receipt__row .ar-hit--on { order: 3; flex: 1 0 100%; padding-top: 12px; border-top: 1px solid rgba(16,16,16,.08); }
}
.ar-shows__group { margin: 0 0 28px; max-width: 720px; }
.ar-shows__group > .ar-section__name { display: block; margin-bottom: 4px; }
.ar-shows__group > .ar-small { margin-bottom: 10px; }
.ar-shows__group .ar-shows { margin-top: 10px; margin-bottom: 0; }
/* The receipt's lower hairline already closes the header; the notes' own
   top rule would draw a second, shorter line under it. */
.ar-lesson-info:has(.ar-receipt__row) + .ar-notes, .ar-lesson-info:has(.ar-hit--alone) + .ar-notes { border-top: 0; padding-top: 4px; }

/* AR33 · the gate cover: door-3's ground, the gate number large in the
   serif where the spearhead would be; it stays readable at thumbnail size. */
.ar-cover--gate { display: flex; align-items: center; justify-content: center; }
.ar-cover__gate { position: relative; z-index: 2; font-family: var(--sol-font-arena-serif); font-weight: 700; font-size: clamp(24px, 18cqi, 72px); line-height: 1; color: var(--ar-paper-0); letter-spacing: .01em; }
.ar-cover--gate { container-type: inline-size; }
.ar-continue__row .ar-cover--gate .ar-cover__gate, .ar-door .ar-cover--gate .ar-cover__gate { font-size: 24px; }

/* R10 · ar-walk — the library's welcome walk. The SOL system's own veil
   (ink at 62%, R04); a hard spotlight edge, no glow, no rounded cut. The lit
   element stays live (the hole takes no pointer); everything else is held. */
.ar-walk { position: fixed; inset: 0; z-index: 9990; pointer-events: none; }
.ar-walk__block { position: fixed; background: rgba(16,16,16,.62); pointer-events: auto; }
.ar-walk__hole { position: fixed; pointer-events: none; outline: 1px solid rgba(245,242,234,.9); }
.ar-walk__stop { position: fixed; z-index: 9991; width: min(340px, calc(100vw - 32px)); padding: 18px 20px 20px; background: var(--ar-ink); color: var(--ar-paper-0); pointer-events: auto; box-sizing: border-box; font-family: var(--sol-font-arena-sans); }
.ar-walk__stop:focus { outline: none; }
.ar-walk__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.ar-walk__count { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(245,242,234,.7); }
.ar-walk__skip { background: none; border: 0; padding: 8px 0; min-height: 44px; color: rgba(245,242,234,.85); font: 500 13px/1 var(--sol-font-arena-sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ar-walk__title { font-family: var(--sol-font-arena-serif); font-weight: 700; font-size: 21px; line-height: 1.25; margin: 0 0 8px; }
.ar-walk__body { margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: rgba(245,242,234,.86); }
.ar-walk__credit { margin: -6px 0 14px; font-size: 11px; font-weight: 700; letter-spacing: .2em; color: var(--ar-gilt); }
.ar-walk__next { width: 100%; justify-content: space-between; background: var(--ar-paper-0); color: var(--ar-ink); border-color: var(--ar-paper-0); }
.ar-walk__next:hover { background: var(--ar-paper-1); color: var(--ar-ink); }
.ar-walk__skip:focus-visible, .ar-walk__next:focus-visible, .ar-walk__ok:focus-visible { outline: 2px solid var(--ar-paper-0); outline-offset: 3px; }
.ar-walk__ring { outline: 2px solid var(--ar-gilt) !important; outline-offset: 4px; }
.ar-walk__end { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 9989; display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px); padding: 10px 12px 10px 16px; background: var(--ar-ink); color: var(--ar-paper-0); font: 500 13px/1.3 var(--sol-font-arena-sans); white-space: nowrap; }
.ar-walk__ok { background: none; border: 1px solid rgba(245,242,234,.5); color: var(--ar-paper-0); min-height: 36px; padding: 0 12px; font: 600 12px/1 var(--sol-font-arena-sans); letter-spacing: .12em; cursor: pointer; }
html.ar-walking { overscroll-behavior: none; }
@media (prefers-reduced-motion: reduce) { .ar-walk__stop { transition: none; } }
