/* RNK Academy. Brand: navy #111C2C (main), gold #D0A74C (sparingly),
   silver #D6DCE3 (structure), blue #2495FF (selected accents). */

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #111c2c;
  --navy-deep: #0a1320;
  --navy-raised: #1a2940;
  --gold: #d0a74c;
  --gold-soft: #e3c67f;
  --silver: #d6dce3;
  --blue: #2495ff;

  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --ink: #111c2c;
  --ink-2: #3c4a5c;
  --muted: #4f5d6f;
  --line: #d6dce3;
  --link: #0b5cc2;
  --focus: #2495ff;
  --ok: #17703a;
  --ok-bg: #e5f4ea;
  --warn: #8a5300;
  --warn-bg: #fdf1dc;
  --bad: #b3261e;
  --bad-bg: #fbe9e7;
  --info-bg: #e6f1ff;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(17, 28, 44, .06), 0 4px 16px rgba(17, 28, 44, .06);
  --wrap: 1120px;
  --gutter: 16px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Montserrat", "Inter", system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1320;
    --surface: #111c2c;
    --surface-2: #17253a;
    --ink: #e9edf2;
    --ink-2: #c9d1db;
    --muted: #a8b3c1;
    --line: #2a3b54;
    --link: #74b9ff;
    --ok: #6fd394;
    --ok-bg: #12301f;
    --warn: #f2c26b;
    --warn-bg: #33270f;
    --bad: #ff9a8f;
    --bad-bg: #3a1714;
    --info-bg: #142a45;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.2; margin: 1.6em 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem); font-weight: 800; margin-top: .4em; }
h2 { font-size: clamp(1.35rem, 1.15rem + 1vw, 1.9rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p, ul, ol, dl, table { margin: 0 0 1em; }
code { font-family: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace; font-size: .92em; background: var(--surface-2); padding: .1em .35em; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--gold); color: var(--navy); padding: 8px 14px; border-radius: 6px; z-index: 10; font-weight: 700; }
.skip:focus { top: 8px; }

/* ---------- header ---------- */
.site-header { background: var(--navy); color: var(--silver); border-bottom: 1px solid #22334c; }
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 68px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; margin-right: auto; padding: 8px 0; }
.brand img { width: 52px; height: auto; display: block; }
.wordmark { font-family: var(--display); font-weight: 800; letter-spacing: .02em; font-size: 1.2rem; line-height: 1; }
.wordmark .rnk { color: var(--gold); }
.wordmark .academy { color: #eef1f5; }
.wordmark small { display: block; font-family: var(--font); font-weight: 500; font-size: .68rem; letter-spacing: .12em; color: #9fb0c4; margin-top: 4px; text-transform: uppercase; }
.nav-toggle { display: none; background: transparent; color: var(--silver); border: 1px solid #3a4d68; border-radius: 8px; padding: 8px 12px; font: 600 .95rem var(--font); cursor: pointer; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; margin: 0; padding: 0; }
.site-nav a { display: block; color: #dfe5ec; text-decoration: none; padding: 8px 10px; border-radius: 8px; font-weight: 550; font-size: .95rem; }
.site-nav a:hover { background: var(--navy-raised); color: #fff; }
.site-nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--gold); border-radius: 8px 8px 0 0; }
.site-nav .nav-cta { background: var(--gold); color: var(--navy); font-weight: 700; }
.site-nav .nav-cta:hover, .site-nav .nav-cta[aria-current="page"] { background: var(--gold-soft); color: var(--navy); box-shadow: none; border-radius: 8px; }
.js .site-nav { width: 100%; }
@media (min-width: 900px) { .js .site-nav { width: auto; } }
@media (max-width: 899px) {
  .js .nav-toggle { display: inline-block; }
  .js .site-nav { display: none; padding-bottom: 12px; }
  .js .site-nav.open { display: block; }
  .js .site-nav ul { flex-direction: column; }
  .js .site-nav a { padding: 12px 10px; }
}
.staff-bar { background: var(--navy-deep); color: #c9d3df; font-size: .85rem; }
.staff-bar .wrap { display: flex; gap: 14px; align-items: center; min-height: 36px; flex-wrap: wrap; }
.staff-bar a { color: var(--gold-soft); }
.demo-bar { background: var(--warn-bg); color: var(--warn); font-size: .88rem; border-bottom: 1px solid var(--line); }
.demo-bar .wrap { padding-top: 6px; padding-bottom: 6px; }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(ellipse 70% 90% at 75% 10%, rgba(36, 149, 255, .22), transparent 60%),
    radial-gradient(ellipse 60% 70% at 20% 120%, rgba(208, 167, 76, .12), transparent 60%),
    var(--navy);
  color: #e9edf2;
  padding: clamp(40px, 7vw, 88px) 0 clamp(40px, 6vw, 72px);
}
.hero .wrap { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1.25fr .9fr; } }
.hero h1 { color: #fff; margin: 0 0 .4em; }
.hero .lede { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: #d4dce6; max-width: 40em; }
.hero .eyebrow { color: var(--gold); font: 700 .8rem/1 var(--font); letter-spacing: .16em; text-transform: uppercase; margin: 0 0 14px; }
.hero-art { justify-self: center; width: min(420px, 62vw); }
@media (max-width: 859px) { .hero-art { width: min(260px, 62vw); order: -1; } }
.hero-art img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 40px rgba(36, 149, 255, .18)); }
.hero a:not(.btn) { color: #9fd0ff; }
.page-hero { background: var(--navy); color: #e9edf2; padding: 36px 0 30px; }
.page-hero h1 { color: #fff; margin: 0 0 .3em; }
.page-hero p { color: #cdd6e1; margin: 0; max-width: 46em; }
.page-hero a:not(.btn) { color: #9fd0ff; }
.crumbs { font-size: .88rem; margin: 0 0 10px; color: #a9b8ca; }
.crumbs a { color: #c8d6e6; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 10px; border: 2px solid transparent;
  font: 700 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; text-align: center;
  background: var(--navy); color: #fff;
}
.btn:hover { background: var(--navy-raised); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { background: var(--surface-2); }
.hero .btn-outline, .page-hero .btn-outline { color: #fff; border-color: #50637e; }
.hero .btn-outline:hover, .page-hero .btn-outline:hover { background: var(--navy-raised); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-danger:hover { filter: brightness(1.1); background: var(--bad); }
.btn-small { min-height: 36px; padding: 6px 12px; font-size: .9rem; border-radius: 8px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
@media (prefers-color-scheme: dark) {
  .btn { background: #26405f; }
  .btn:hover { background: #2f4d72; }
  .btn-gold { background: var(--gold); color: var(--navy); }
  .btn-gold:hover { background: var(--gold-soft); }
  .btn-outline { background: transparent; color: var(--ink); }
  .btn-danger { background: #c0392b; }
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0; }
.linklike { background: none; border: 0; padding: 0; color: var(--link); font: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- layout blocks ---------- */
main { display: block; padding-bottom: 56px; }
.section { padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(32px, 5vw, 56px); }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2:first-child { margin-top: 0; }
.grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 899px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.split { display: grid; gap: 28px; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .split > aside { position: sticky; top: 16px; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px; box-shadow: var(--shadow); min-width: 0;
}
.card > :last-child { margin-bottom: 0; }
.card form + form, .card form + .row, .row + form { margin-top: 14px; }
.card h3 { margin-top: 0; }
.card-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s ease, border-color .15s ease; }
.card-link:hover { border-color: var(--blue); transform: translateY(-2px); }
.card-link .more { margin-top: auto; padding-top: 12px; color: var(--link); font-weight: 650; }
@media (prefers-reduced-motion: reduce) { .card-link, .card-link:hover { transition: none; transform: none; } }
.course-card .code { font: 700 .78rem/1 var(--font); letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.course-card h3 { margin: 8px 0 6px; font-size: 1.12rem; }
.course-card .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .9rem; margin: 6px 0 10px; }
.price { font: 750 1.15rem var(--display); }
.price del.was { color: var(--muted); font-weight: 600; font-size: .85em; text-decoration-line: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--bad); margin-right: 2px; }
.price .now { color: var(--ink); }
.badge.badge-sale { background: var(--gold); color: var(--navy); border-color: transparent; }
.sale-note { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--gold); border-radius: 999px; padding: 6px 14px; font-weight: 650; margin: 0 0 18px; }
.hero .sale-note, .page-hero .sale-note { background: rgba(208, 167, 76, .12); color: #f3e3bb; border-color: var(--gold); }
.kicker { font: 700 .78rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.gold-rule { width: 56px; height: 3px; background: var(--gold); border: 0; margin: 0 0 18px; border-radius: 2px; }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; position: relative; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: var(--gold); font: 800 1rem var(--display); margin-bottom: 10px;
}
@media (prefers-color-scheme: dark) { .steps li::before { background: #26405f; } }
.steps strong { display: block; font-family: var(--display); margin-bottom: 4px; }

.notice-box { border-left: 4px solid var(--gold); background: var(--surface); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- alerts and badges ---------- */
.alert { border-radius: var(--radius); padding: 12px 16px; margin: 0 0 16px; border: 1px solid transparent; }
.alert > :last-child { margin-bottom: 0; }
.alert-info { background: var(--info-bg); border-color: #b9d6fb; }
.alert-ok { background: var(--ok-bg); border-color: #b7dfc4; color: var(--ink); }
.alert-warn { background: var(--warn-bg); border-color: #f0d199; color: var(--ink); }
.alert-bad { background: var(--bad-bg); border-color: #f2b8b2; color: var(--ink); }
@media (prefers-color-scheme: dark) { .alert-info, .alert-ok, .alert-warn, .alert-bad { border-color: var(--line); } }
.flash-wrap { padding-top: 16px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font: 650 .8rem/1.6 var(--font); background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.badge-warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.badge-bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.badge-info { background: var(--info-bg); color: var(--link); border-color: transparent; }
.badge-gold { background: var(--navy); color: var(--gold); border-color: transparent; }

/* ---------- tables and lists ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table-wrap table { margin: 0; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; background: var(--surface-2); font-size: .85rem; letter-spacing: .02em; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0 0 1em; }
.facts dt { font-weight: 700; color: var(--ink-2); }
.facts dd { margin: 0; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 8px; } }
.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.plain { list-style: none; padding: 0; }
.plain li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.plain li:last-child { border-bottom: 0; }
.modules { list-style: none; padding: 0; margin: 0 0 1em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.modules li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.modules li:last-child { border-bottom: 0; }
.modules .n { font: 800 1rem var(--display); color: var(--gold); background: var(--navy); border-radius: 8px; display: grid; place-items: center; height: 36px; }
.modules .t { font-weight: 650; }
.modules .d { color: var(--muted); font-size: .92rem; }

details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 0 16px; margin: 0 0 10px; }
details summary { cursor: pointer; font-weight: 650; padding: 14px 0; list-style-position: outside; }
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
details > :last-child { margin-bottom: 14px; }

/* ---------- forms ---------- */
form { margin: 0; }
.form { max-width: 560px; }
.field { margin: 0 0 16px; }
.field label, .label { display: block; font-weight: 650; margin-bottom: 6px; }
.hint { display: block; color: var(--muted); font-size: .88rem; margin-top: 4px; }
.error-text { display: block; color: var(--bad); font-weight: 600; font-size: .9rem; margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=url], input[type=datetime-local], input[type=date], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 8px; border: 1px solid #9aa8b8;
  background: var(--surface); color: var(--ink); font: inherit;
}
textarea { min-height: 120px; resize: vertical; }
input[aria-invalid=true], textarea[aria-invalid=true], select[aria-invalid=true] { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
input[type=file] { font: inherit; max-width: 100%; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--navy); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 4px; margin: 0 0 16px; }
legend { font-weight: 700; padding: 0 6px; }
.inline-form { display: inline; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.row > .field { flex: 1 1 180px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 0 0 20px; }
.filters .field { margin: 0; flex: 1 1 170px; }

/* ---------- founder ---------- */
.founder-band {
  background:
    radial-gradient(ellipse 60% 80% at 15% 30%, rgba(36, 149, 255, .16), transparent 60%),
    var(--navy);
  color: #dfe5ec; padding: clamp(40px, 6vw, 72px) 0;
}
.founder-band .wrap { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .founder-band .wrap { grid-template-columns: 320px minmax(0, 1fr); gap: 48px; } }
.founder-band h2 { color: #fff; margin-top: .2em; }
.founder-band .eyebrow { color: var(--gold); font: 700 .8rem/1 var(--font); letter-spacing: .16em; text-transform: uppercase; margin: 0; }
.founder-band p { max-width: 44em; }
.founder-band .btn-outline { color: #fff; border-color: #50637e; }
.founder-band .btn-outline:hover { background: var(--navy-raised); }
.founder-photo { justify-self: center; width: min(320px, 70vw); }
.founder-img { display: block; width: 100%; height: auto; border-radius: 50%; border: 3px solid var(--gold); box-shadow: 0 0 0 8px rgba(208, 167, 76, .12), 0 18px 40px rgba(0, 0, 0, .35); }
.founder-quote { margin: 22px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--gold); font: 600 1.12rem/1.5 var(--display); color: #fff; }
.founder-quote p { margin: 0; }
.founder-quote footer { margin-top: 8px; font: 500 .9rem var(--font); color: var(--muted); }
.founder-quote-light { color: var(--ink); }
.founder-sign { font-size: .95rem; }
.founder-sign span { color: #a9b8ca; font-size: .88rem; }
.story { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .story { grid-template-columns: 340px minmax(0, 1fr); gap: 56px; } .story-photo { position: sticky; top: 24px; } }
.story-photo { text-align: center; }
.story-photo .founder-img { max-width: 340px; margin: 0 auto 14px; }
.story-photo .founder-sign span { color: var(--muted); }
.story-text { max-width: 46em; }
.story-text h2 { margin-top: .2em; }
.timeline { list-style: none; padding: 0; margin: 28px 0 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px 22px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .45em; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 2px solid var(--bg); }
.timeline strong { display: block; font-family: var(--display); }
.site-footer .founded { color: #a9b8ca; font-size: .88rem; }

/* ---------- RNK Enterprise ---------- */
.enterprise-band .wrap { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .enterprise-band .wrap { grid-template-columns: minmax(0, 620px) minmax(0, 1fr); gap: 48px; } }
.enterprise-logo { display: block; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gold); box-shadow: 0 18px 44px rgba(17, 28, 44, .28); transition: transform .2s ease; }
.enterprise-logo:hover { transform: translateY(-3px); }
.enterprise-logo img { display: block; width: 100%; height: auto; }
.enterprise-band h2 { margin-top: .2em; }
@media (prefers-reduced-motion: reduce) { .enterprise-logo, .enterprise-logo:hover { transition: none; transform: none; } }
.about-logos img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.about-logos a { display: block; margin-top: 16px; }
.about-logos picture img { border: 1px solid var(--line); }

/* ---------- announcements and coming soon ---------- */
.announcement { border-top: 3px solid var(--gold); }
.announcement h3 { margin: 4px 0 8px; }
.soon-card { border-style: dashed; box-shadow: none; display: flex; flex-direction: column; }
.soon-card .more { margin-top: auto; padding-top: 12px; color: var(--link); font-weight: 650; }
#coming-soon { margin-top: 1.8em; }

/* ---------- schedule / class rows ---------- */
.class-row { display: grid; gap: 10px 20px; align-items: start; }
@media (min-width: 760px) { .class-row { grid-template-columns: minmax(0, 1fr) auto; } }
.class-row h3 { margin: 0 0 4px; }
.class-row .when { font-weight: 600; }
.class-row .side { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
@media (min-width: 760px) { .class-row .side { align-items: flex-end; text-align: right; } }
.seat-line { font-size: .92rem; color: var(--ink-2); }
.local-time { display: block; color: var(--muted); font-size: .88rem; }
.empty { text-align: center; padding: 36px 20px; border: 1px dashed var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.empty h2, .empty h3 { margin-top: 0; }

/* ---------- dashboard ---------- */
.dash-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; }
.dash-nav a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2); border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: .92rem; }
.dash-nav a[aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (prefers-color-scheme: dark) { .dash-nav a[aria-current="page"] { background: #26405f; border-color: #26405f; } }
.next-step { border: 2px solid var(--gold); }
progress { width: 100%; height: 10px; border-radius: 6px; overflow: hidden; appearance: none; border: 0; background: var(--surface-2); }
progress::-webkit-progress-bar { background: var(--surface-2); }
progress::-webkit-progress-value { background: var(--blue); }
progress::-moz-progress-bar { background: var(--blue); }
.stat { font: 800 1.8rem/1.1 var(--display); }
.stat-label { color: var(--muted); font-size: .88rem; }
.thread { list-style: none; padding: 0; }
.thread li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 10px; }
.thread li.staff { border-left: 4px solid var(--gold); }
.thread li.internal { background: var(--warn-bg); }
.thread .who { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }

/* ---------- guest book ---------- */
.entries { display: grid; gap: 16px; }
@media (min-width: 760px) { .entries { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.entry blockquote { margin: 0 0 10px; font-size: 1.02rem; }
.entry blockquote::before { content: "\201C"; color: var(--gold); font: 800 2rem/0 var(--display); vertical-align: -.4em; margin-right: 4px; }
.entry .who { color: var(--muted); font-weight: 600; font-size: .92rem; }

/* ---------- certificate ---------- */
.certificate {
  background: #fff; color: #111c2c; border: 10px solid var(--navy); outline: 2px solid var(--gold); outline-offset: -18px;
  padding: clamp(28px, 6vw, 64px); text-align: center; border-radius: 4px; max-width: 900px; margin: 0 auto;
}
.certificate .cert-emblem { width: 120px; background: var(--navy); border-radius: 12px; padding: 10px; margin: 0 auto 12px; display: block; }
.certificate h1 { font-size: clamp(1.4rem, 1rem + 2vw, 2.2rem); margin: .4em 0 .2em; color: #111c2c; }
.certificate .name { font: 800 clamp(1.6rem, 1.2rem + 2vw, 2.6rem) var(--display); border-bottom: 2px solid var(--gold); display: inline-block; padding: 0 18px 4px; margin: 10px 0 14px; color: #111c2c; }
.certificate .small { color: #3c4a5c; }

/* ---------- sign out in the header ---------- */
.nav-signout { margin: 0; }
.nav-signout button { display: block; background: none; border: 0; color: #dfe5ec; padding: 8px 10px; border-radius: 8px; font: 550 .95rem var(--font); cursor: pointer; text-decoration: underline; text-underline-offset: .2em; text-decoration-color: rgba(223, 229, 236, .45); }
.nav-signout button:hover { background: var(--navy-raised); color: #fff; }
@media (max-width: 899px) { .js .nav-signout button { padding: 12px 10px; width: 100%; text-align: left; } .js .site-nav ul { align-items: stretch; } }
@media (max-width: 640px) { .sale-note { border-radius: 14px; } }

/* ---------- cookie notice ---------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--navy-deep); color: #e2e8ef; border-top: 2px solid var(--gold); box-shadow: 0 -6px 24px rgba(0, 0, 0, .25); }
.cookie-banner .wrap { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.cookie-banner p { margin: 0; flex: 1 1 420px; font-size: .94rem; }
.cookie-banner a { color: #9fd0ff; }
.cookie-banner form { margin: 0; }
.cookie-spacer { height: 96px; }
@media (max-width: 640px) { .cookie-spacer { height: 150px; } }
@media print { .cookie-banner, .cookie-spacer { display: none !important; } }

/* ---------- theme music ---------- */
.music { position: fixed; left: 16px; bottom: 16px; z-index: 19; }
.music[hidden] { display: none; }
.music-toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 16px 8px 12px;
  background: var(--navy); color: #fff; border: 1px solid var(--gold); border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3); font: 600 .85rem/1.2 var(--font); cursor: pointer; text-align: left;
}
.music-toggle:hover { background: var(--navy-raised); }
.music-text { display: flex; flex-direction: column; }
.music-state { color: var(--gold); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.music-title { color: #e2e8ef; }
.music-bars { display: inline-flex; align-items: flex-end; gap: 3px; width: 18px; height: 16px; }
.music-bars span { width: 4px; height: 6px; background: var(--gold); border-radius: 1px; }
.music.playing .music-bars span { animation: music-bar .9s ease-in-out infinite alternate; }
.music.playing .music-bars span:nth-child(2) { animation-delay: .3s; }
.music.playing .music-bars span:nth-child(3) { animation-delay: .6s; }
@keyframes music-bar { from { height: 4px; } to { height: 16px; } }
@media (prefers-reduced-motion: reduce) { .music.playing .music-bars span { animation: none; height: 12px; } }
@media (max-width: 480px) { .music-title { display: none; } .music-toggle { padding: 8px 12px; } }
@media print { .music { display: none !important; } }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #c9d3df; padding: 40px 0 28px; font-size: .94rem; }
.site-footer a { color: #e7edf4; }
.site-footer .cols { display: grid; gap: 24px; }
@media (min-width: 760px) { .site-footer .cols { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; font-family: var(--font); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .brandline { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.site-footer .brandline img { width: 60px; }
.site-footer .legal { border-top: 1px solid #22334c; margin-top: 28px; padding-top: 16px; color: #9fb0c4; font-size: .85rem; }

/* ---------- print (receipts, certificates) ---------- */
@media print {
  .site-header, .site-footer, .staff-bar, .demo-bar, .no-print, .dash-nav, .skip { display: none !important; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; }
  .certificate { border-color: #111c2c; }
  a { color: #000; }
}

/* draft policy markers */
mark.owner-todo { background: var(--warn-bg); color: var(--warn); padding: 0 4px; border-radius: 4px; font-weight: 650; }
