/* NTUME Lion Hunters: mobile-first, low-data stylesheet.
   No external fonts, no icon libraries: everything here is a few KB and works
   on a 2G connection. Academic text readability comes first. */

:root {
  /* Official NTUME palette, taken from the letterhead rather than invented:
     gold #c59f4a on near-black #131313 over white, with the institutional green
     retained as the secondary accent so the academic surfaces stay calm. */
  --gold-700: #8a6c22;
  --gold-600: #a5833d;
  --gold-500: #c59f4a;
  --gold-300: #ddc07a;
  --gold-100: #f6edd8;
  --gold-050: #fbf7ec;

  --ink-900: #131313;
  --ink-800: #1d1d1d;
  --ink-700: #2c2c2c;
  --ink-500: #565656;
  --ink-300: #8d8d8d;
  --line: #e2ded5;
  --surface: #ffffff;
  --surface-2: #faf9f6;

  --green-900: #0e2b21;
  --green-800: #123a2c;
  --green-700: #17503c;
  --green-600: #1f6a4e;
  --green-100: #e6f1ec;
  --green-050: #f3f8f5;

  --danger-600: #9d2b2b;
  --danger-100: #fbeceb;
  --warn-600: #8a5a09;
  --warn-100: #fdf1d8;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(19, 19, 19, 0.06), 0 6px 16px rgba(19, 19, 19, 0.05);
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", "Iowan Old Style", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--surface);
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; height: auto; }
svg { max-width: 100%; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .4em; color: var(--ink-900); font-weight: 700; }
h1 { font-size: 1.7rem; letter-spacing: -0.01em; font-family: var(--font-display); font-weight: 700; }
h2 { font-size: 1.32rem; margin-top: 1.6em; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
a { color: var(--gold-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--green-600); }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: .35em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.6em 0; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
pre.stack { background: var(--surface-2); padding: .8rem; border-radius: var(--radius-sm); overflow-x: auto; font-size: .78rem; }
mark { background: var(--gold-100); padding: 0 .15em; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }
.wrap.narrow { max-width: 640px; }
.muted { color: var(--ink-500); }
.small, .muted.small { font-size: .86rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--green-800); color: #fff;
  padding: .6rem 1rem; z-index: 100; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }

/* ------------------------------------------------------------------ header */
.site-header {
  background: var(--ink-900);
  color: #fff;
  position: sticky; top: 0; z-index: 30;
  border-bottom: 2px solid var(--gold-500);
}
.header-inner { display: flex; align-items: center; gap: .75rem; min-height: 58px; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: #fff; margin-right: auto; }
.brand-mark {
  display: block; width: 38px; height: 38px; border-radius: 8px;
  background: #fff; padding: 3px; object-fit: contain;
  box-shadow: 0 0 0 1px var(--gold-500);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 1.06rem; letter-spacing: .10em; font-family: var(--font-display); }
.brand-text small { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-500); }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 11px; background: transparent;
  border: 1px solid rgba(255,255,255,.28); border-radius: var(--radius-sm); color: #fff;
}
.nav-toggle-bar, .nav-toggle::before, .nav-toggle::after {
  content: ""; display: block; height: 2px; background: #fff; border-radius: 2px;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { opacity: 0; }

.primary-nav { display: none; }
.primary-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--ink-900); padding: .5rem 1rem 1rem; box-shadow: var(--shadow);
}
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav a { display: block; color: #eaf5ef; text-decoration: none; padding: .7rem .25rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.primary-nav a.is-active { color: var(--gold-500); font-weight: 600; }
.nav-account { display: flex; align-items: center; gap: .6rem; padding-top: .6rem; flex-wrap: wrap; }
.nav-icon { position: relative; font-size: 1.2rem; text-decoration: none; }
.badge-dot {
  position: absolute; top: -4px; right: -8px; background: var(--gold-500); color: var(--green-900);
  border-radius: 999px; font-size: .68rem; font-weight: 700; padding: 1px 5px;
}
/* Anything marked hidden stays hidden, whatever layout rule also matches it. */
[hidden] { display: none !important; }
.account-menu { position: relative; }
.account-button {
  display: flex; align-items: center; gap: .45rem; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2); color: #fff; padding: .35rem .6rem;
  border-radius: 999px; font-size: .9rem;
}
.avatar {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold-500); color: var(--green-900); font-weight: 700; font-size: .82rem;
}
.account-dropdown {
  position: absolute; right: 0; top: calc(100% + .4rem); background: var(--surface); color: var(--ink-900);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  list-style: none; margin: 0; padding: .35rem; min-width: 210px; z-index: 40;
  display: block;
}
.account-dropdown li { display: block; }
/* In the phone menu the account button sits at the left: open below it, in place. */
@media (max-width: 899px) {
  .account-dropdown { left: 0; right: auto; }
}
.account-dropdown a, .account-dropdown .link-button {
  display: block; width: 100%; text-align: left; padding: .55rem .5rem; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--ink-900); background: none; border: 0; font: inherit;
}
.account-dropdown a:hover, .account-dropdown .link-button:hover { background: var(--green-050); }
.inline-form { margin: 0; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav { display: flex; align-items: center; gap: 1rem; }
  .primary-nav ul { display: flex; gap: .25rem; }
  .primary-nav a { border: 0; padding: .5rem .6rem; border-radius: var(--radius-sm); font-size: .95rem; }
  .primary-nav a.is-active, .primary-nav a:hover { background: rgba(255,255,255,.1); }
  .nav-account { padding-top: 0; }
}

/* ------------------------------------------------------------------ layout */
.site-main { min-height: 60vh; padding-bottom: 3rem; }
.site-main > section, .site-main > div { padding-top: 1.5rem; }
.section { padding-top: 2.2rem; padding-bottom: 2.2rem; } /* top and bottom only: .wrap keeps its side margins */
.section-tint { background: var(--green-050); }
.section-sub { color: var(--ink-500); margin-top: -.4rem; }
.banner { background: var(--gold-100); color: var(--warn-600); font-size: .92rem; padding: .55rem 0; }
.banner-warn { background: var(--warn-100); }
.banner a { color: inherit; font-weight: 600; }
.flash { font-size: .94rem; padding: .65rem 0; }
.flash .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.flash-info { background: var(--green-100); color: var(--green-800); }
.flash-success { background: var(--green-100); color: var(--green-800); }
.flash-error { background: var(--danger-100); color: var(--danger-600); }
.flash-warn { background: var(--warn-100); color: var(--warn-600); }
.flash-close { background: none; border: 0; font-size: 1.3rem; line-height: 1; color: inherit; cursor: pointer; }

/* -------------------------------------------------------------------- hero */
.hero { background: linear-gradient(160deg, var(--ink-800), var(--ink-900)); color: #efeae0; padding: 2.6rem 0 2.2rem; border-bottom: 3px solid var(--gold-500); }
.hero h1 { color: #fff; font-size: 1.9rem; font-family: var(--font-display); }
.hero .lead { color: #d8d2c6; font-size: 1.02rem; max-width: 60ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .7rem; color: var(--gold-500); margin-bottom: .6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0 .5rem; }
.hero-pillars { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: .6rem; }
.hero-pillars li { background: rgba(255,255,255,.04); border: 1px solid rgba(197,159,74,.35); border-radius: var(--radius); padding: .7rem .8rem; }
.hero-pillars strong { display: block; color: var(--gold-500); font-size: .78rem; letter-spacing: .14em; }
.hero-pillars span { font-size: .92rem; color: #d8d2c6; }
@media (min-width: 760px) {
  .hero h1 { font-size: 2.4rem; }
  .hero-pillars { grid-template-columns: repeat(5, 1fr); }
}

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; padding: .6rem 1.05rem; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer;
  background: var(--green-050); color: var(--green-800); transition: background .15s ease, transform .05s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink-900); color: #fff; }
.btn-primary:hover { background: var(--gold-700); color: #fff; }
.btn-outline { background: transparent; border-color: var(--gold-600); color: var(--gold-700); }
.btn-outline:hover { background: var(--gold-050); }
.btn-ghost { background: rgba(255,255,255,.12); color: inherit; border-color: rgba(255,255,255,.25); }
.site-main .btn-ghost { background: transparent; border-color: var(--line); color: var(--green-800); }
.btn-gold { background: var(--gold-500); color: var(--ink-900); }
.btn-danger { background: var(--danger-600); color: #fff; }
.btn-lg { min-height: 50px; padding: .75rem 1.4rem; font-size: 1rem; }
.btn-sm { min-height: 36px; padding: .35rem .7rem; font-size: .85rem; }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--green-700); cursor: pointer; text-decoration: underline; }

/* ------------------------------------------------------------------- cards */
.card-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .9rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .3rem; }
.card-meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .84rem; color: var(--ink-500); margin-bottom: .5rem; }
.card-flat { box-shadow: none; background: var(--surface-2); }
.card-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
@media (min-width: 760px) {
  .card-list { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}

.chip {
  display: inline-block; background: var(--green-100); color: var(--green-800);
  border-radius: 999px; padding: .12rem .6rem; font-size: .78rem; font-weight: 600;
}
.chip-gold { background: var(--gold-100); color: var(--gold-600); }
.chip-danger { background: var(--danger-100); color: var(--danger-600); }
.chip-muted { background: var(--surface-2); color: var(--ink-500); border: 1px solid var(--line); }
.status-chip { font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; }

.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; text-align: center; }
.stat-value { display: block; font-size: 1.6rem; font-weight: 700; color: var(--green-800); }
.stat-label { font-size: .8rem; color: var(--ink-500); text-transform: uppercase; letter-spacing: .08em; }
@media (min-width: 700px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }

.plan-grid { display: grid; gap: .9rem; margin-top: 1rem; }
.plan-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; background: var(--surface); }
.plan-premium { border-color: var(--gold-500); background: linear-gradient(180deg, var(--gold-100), #fff 45%); }
.plan-price { font-size: 1.5rem; font-weight: 700; color: var(--green-800); margin: .2rem 0 .5rem; }
.plan-price span { font-size: .86rem; font-weight: 500; }
@media (min-width: 760px) { .plan-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } }

.value-list { padding-left: 1.2em; }
.value-list li { margin-bottom: .6em; }

/* ------------------------------------------------------------------- forms */
.form { max-width: 620px; }
.field { margin-bottom: 1rem; }
.field label, .field .label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .3rem; }
.field .hint { display: block; color: var(--ink-500); font-size: .82rem; font-weight: 400; margin-top: .25rem; }
.input, .select, .textarea {
  width: 100%; padding: .65rem .7rem; font: inherit; font-size: 1rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink-900);
}
.textarea { min-height: 8rem; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--green-600); outline: 2px solid var(--green-100); }
.field-error .input, .field-error .select, .field-error .textarea { border-color: var(--danger-600); }
.error-text { color: var(--danger-600); font-size: .84rem; margin-top: .25rem; display: block; }
.checkbox-field { display: flex; gap: .55rem; align-items: flex-start; }
.checkbox-field input { margin-top: .35rem; }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 700px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }
.form-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1.2rem; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin: 0 0 1.2rem; }
legend { font-weight: 700; padding: 0 .4rem; color: var(--green-800); }

/* ------------------------------------------------------------------ tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-500); background: var(--surface-2); }
tbody tr:hover { background: var(--green-050); }

/* ------------------------------------------------------------------- audio */
.audio-player { display: grid; gap: .5rem; }
audio { width: 100%; }
.audio-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; }
.audio-list li { display: flex; flex-direction: column; gap: .2rem; border-bottom: 1px solid var(--line); padding-bottom: .5rem; }
.audio-title { font-weight: 600; }

/* -------------------------------------------------------------- empty states */
.empty { background: var(--surface-2); border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.4rem; text-align: center; color: var(--ink-500); }
.empty h3 { color: var(--ink-700); }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--ink-900); color: #cfc9bd; padding: 2rem 0 1rem; font-size: .92rem; border-top: 3px solid var(--gold-500); }
.footer-grid { display: grid; gap: 1.4rem; }
.footer-brand { font-weight: 700; color: #fff; margin-bottom: .2rem; letter-spacing: .05em; }
.site-footer h2 { color: var(--gold-500); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 .5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: #cfc9bd; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); margin-top: 1.4rem; padding-top: .8rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr; } }

/* ---------------------------------------------------------------- utilities */
.error-page { padding: 2.5rem 1rem; }
.error-list { color: var(--danger-600); }
.plain-main { max-width: 460px; margin: 0 auto; padding: 2.5rem 1rem; }
.plain-brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; margin-bottom: 1.4rem; }
.plain-brand .brand-text strong { color: var(--green-800); }
.plain-brand .brand-text small { color: var(--ink-500); }
.plain-foot { margin-top: 2rem; text-align: center; }
.dashboard-grid { display: grid; gap: 1rem; }
@media (min-width: 900px) { .dashboard-grid { grid-template-columns: 2fr 1fr; align-items: start; } }
.stack-sm > * + * { margin-top: .6rem; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.6rem; }
.mb-0 { margin-bottom: 0; }
.pill-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.progress-bar { background: var(--line); border-radius: 999px; height: 8px; overflow: hidden; }
.progress-bar > span { display: block; height: 100%; background: var(--green-600); }
.callout { border-left: 4px solid var(--gold-500); background: var(--gold-100); padding: .8rem 1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.callout-danger { border-color: var(--danger-600); background: var(--danger-100); }
.callout-info { border-color: var(--green-600); background: var(--green-050); }
.tabs { display: flex; gap: .3rem; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.tabs a { padding: .55rem .75rem; text-decoration: none; white-space: nowrap; font-size: .92rem; border-bottom: 3px solid transparent; }
.tabs a.is-active { border-color: var(--green-600); color: var(--green-800); font-weight: 600; }
.pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 1.4rem; flex-wrap: wrap; }
.search-bar { display: flex; gap: .5rem; }
.search-bar .input { flex: 1; }
.badge-grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.badge-card { border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem; text-align: center; font-size: .85rem; }
.badge-card.is-earned { border-color: var(--gold-500); background: var(--gold-100); }
.badge-card.is-locked { opacity: .6; }
.metric-list { list-style: none; padding: 0; margin: 0; }
.metric-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.calendar-grid { display: grid; gap: .4rem; grid-template-columns: repeat(7, 1fr); font-size: .82rem; }
.calendar-grid .day { border: 1px solid var(--line); border-radius: var(--radius-sm); min-height: 62px; padding: .25rem; }
.calendar-grid .day.has-event { background: var(--green-050); border-color: var(--green-600); }
.day-head { text-align: center; font-weight: 600; color: var(--ink-500); font-size: .74rem; text-transform: uppercase; }
.note-card { border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem; background: var(--surface); }
.note-card.is-pinned { border-left: 4px solid var(--gold-500); }
.note-body { white-space: pre-wrap; }
.thread { border-bottom: 1px solid var(--line); padding: .9rem 0; }
.reply { border-left: 3px solid var(--line); padding-left: .8rem; margin: .8rem 0; }
.reply.is-answer { border-color: var(--green-600); background: var(--green-050); padding: .6rem .8rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.quiz-question { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }
.option-row { display: flex; gap: .55rem; align-items: flex-start; padding: .4rem 0; }
.option-row input { margin-top: .35rem; }
.result-correct { color: var(--green-700); font-weight: 600; }
.result-wrong { color: var(--danger-600); font-weight: 600; }
.admin-nav { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: 1.2rem; }
.admin-nav:has(+ .admin-subnav) { margin-bottom: .6rem; }
.admin-nav a { padding: .4rem .7rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .86rem; background: var(--surface); }
.admin-nav a.is-active { background: var(--green-800); color: #fff; border-color: var(--green-800); }
.admin-subnav { display: flex; flex-wrap: wrap; gap: .1rem 1rem; margin-bottom: 1.2rem; padding-bottom: .1rem; border-bottom: 1px solid var(--line); }
.admin-subnav a { padding: .35rem 0; text-decoration: none; font-size: .86rem; color: var(--ink-500); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.admin-subnav a.is-active { color: var(--green-800); border-bottom-color: var(--green-800); font-weight: 600; }
details > summary { cursor: pointer; padding: .2rem 0; }
details[open] > summary { margin-bottom: .6rem; }
details.card > summary { list-style-position: outside; margin-left: 1rem; }
.todo-strip { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.todo-strip a { display: inline-block; padding: .35rem .7rem; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); text-decoration: none; font-size: .86rem; }
.todo-strip a:hover { border-color: var(--green-600); }
.action-list, .control-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.action-list li { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.action-list-actions { display: flex; gap: .4rem; flex-shrink: 0; }
.control-list li { padding: .45rem 0; border-bottom: 1px solid var(--line); }
.control-list form { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin: 0; }
@media (max-width: 640px) { .action-list li { flex-direction: column; align-items: flex-start; } }
.danger-zone { border: 1px solid var(--danger-600); border-radius: var(--radius); padding: 1rem; background: var(--danger-100); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { border-left: 2px solid var(--line); padding: 0 0 .8rem .9rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: .45rem; width: 10px; height: 10px; border-radius: 50%; background: var(--green-600); }
.onboarding-steps { list-style: none; padding: 0; display: flex; gap: .5rem; flex-wrap: wrap; font-size: .82rem; }
.onboarding-steps li { padding: .25rem .6rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.onboarding-steps li.is-done { background: var(--green-100); border-color: var(--green-600); color: var(--green-800); }
.skeleton { background: linear-gradient(90deg, var(--surface-2), #eef3f0, var(--surface-2)); border-radius: var(--radius-sm); min-height: 1rem; }

@media print {
  .site-header, .site-footer, .hero-actions, .btn, .admin-nav, .admin-subnav { display: none !important; }
  body { font-size: 12pt; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------- rendered content */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: .85em; }
.prose h2 { font-size: 1.24rem; margin-top: 1.8em; padding-top: .2em; }
.prose h3 { font-size: 1.06rem; margin-top: 1.5em; }
.prose h4 { font-size: 1rem; margin-top: 1.3em; color: var(--ink-700); }
.prose p, .prose li { line-height: 1.75; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li { margin-bottom: .4em; }
.prose ul.checklist { list-style: none; padding-left: .1em; }
.prose ul.checklist li { margin-bottom: .5em; }
.prose blockquote {
  margin: 1.2em 0; padding: .7em 1em; border-left: 4px solid var(--gold-500);
  background: var(--gold-100); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prose blockquote p { margin: 0; }
.prose code { background: var(--surface-2); padding: .1em .35em; border-radius: 4px; border: 1px solid var(--line); }
.prose pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem; overflow-x: auto; }
.prose pre code { background: none; border: 0; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose strong { color: var(--green-900); }
.contents ul { list-style: none; padding-left: 0; margin: 0; }
.contents li { margin-bottom: .3em; font-size: .92rem; }
.contents li.contents-level-3 { padding-left: 1em; font-size: .88rem; }

/* ------------------------------------------------- the brand's three pillars */
.pillars {
  display: grid; gap: .6rem; margin: 1.4rem 0 0;
  list-style: none; padding: 0;
}
.pillars li {
  border: 1px solid var(--gold-500); border-radius: var(--radius);
  padding: .8rem 1rem; background: var(--gold-050);
}
.pillars strong { display: block; font-family: var(--font-display); color: var(--ink-900); letter-spacing: .04em; }
.pillars span { color: var(--ink-500); font-size: .88rem; }
@media (min-width: 700px) { .pillars { grid-template-columns: repeat(3, 1fr); } }

/* The brand's gold rule, used to divide sections the way the letterhead does. */
.brand-rule { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-500), transparent); margin: 2rem 0; }
.brand-tagline {
  font-family: var(--font-display); letter-spacing: .16em; text-transform: uppercase;
  font-size: .74rem; color: var(--gold-700); text-align: center;
}
.motto { font-family: var(--font-display); font-size: 1.06rem; letter-spacing: .04em; color: var(--ink-900); text-align: center; }

/* ---------------------------------------------------------------- messages */

.message-thread { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-direction: column; gap: .75rem; }
.message { max-width: 78%; padding: .7rem .9rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
.message.is-mine { align-self: flex-end; background: var(--gold-100); border-color: var(--gold-500); }
.message.is-theirs { align-self: flex-start; }
.message-meta { margin-bottom: .25rem; }
.message-subject { margin: 0 0 .3rem; }
.message-body { margin: 0; white-space: pre-wrap; word-break: break-word; }
.row-between { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }

/* Subscription: one payment form, one compact row per plan. */
.pay-form .checkbox { display: flex; gap: .5rem; align-items: flex-start; margin: .25rem 0 1rem; }
.choice-list { list-style: none; margin: 0 0 .75rem; padding: 0; }
.choice { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.choice:first-child { border-top: 0; }
.choice > div { display: flex; flex-direction: column; min-width: 0; }
.choice .btn { flex-shrink: 0; min-width: 7.5rem; }
.choice-premium strong { color: var(--green-800); }
.pay-form h3 { margin-top: 1.5rem; }
ul.card.choice-list { padding: .25rem 1rem; }

/* One-line search: box, optional filter, button; wraps on a phone. */
.search-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.search-row .input { flex: 1 1 12rem; }
.search-row .select { flex: 0 1 12rem; }
details.card { margin-top: 1rem; }
details.card > summary { cursor: pointer; font-weight: 600; }

/* The landing hero is dark: gold main button, white outline second button. */
.hero .btn-primary { background: var(--gold-500); color: #111; border-color: var(--gold-500); }
.hero .btn-ghost, .site-main .hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }

.btn-google { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.2rem; font-size: 1.05rem; }
.btn-google .g-mark { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #fff; color: #4285f4; font-weight: 800; display: inline-grid; place-items: center; font-size: 1rem; }
.btn.is-busy { opacity: .75; pointer-events: none; }

/* ------------------------------------------------ app layout (signed in) */
.app-nav-top { display: none; }
.tabbar { display: none; }
.app-layout .nav-toggle { display: none !important; }
@media (min-width: 900px) {
  .app-nav-top { display: flex; gap: .3rem; margin-left: auto; margin-right: .8rem; }
  .app-nav-top a { color: #e9e4d8; padding: .55rem 1rem; border-radius: 999px; text-decoration: none; font-weight: 600; }
  .app-nav-top a.is-active, .app-nav-top a:hover { background: rgba(197,159,74,.18); color: var(--gold-500); }
}
.app-layout .header-inner { display: flex; align-items: center; }
.app-layout .app-bell { margin-left: auto; font-size: 1.35rem; position: relative; }
@media (min-width: 900px) { .app-layout .app-bell { margin-left: 0; } }
@media (max-width: 899px) {
  .app-layout .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: #131313; border-top: 2px solid var(--gold-500); padding: .35rem 0 calc(.35rem + env(safe-area-inset-bottom)); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: .15rem; color: #a9a397; text-decoration: none; font-size: .78rem; font-weight: 600; padding: .25rem 0; }
  .tabbar svg { width: 26px; height: 26px; fill: currentColor; }
  .tabbar a.is-active { color: var(--gold-500); }
  .app-layout .site-main { padding-bottom: 5.5rem; }
  .app-layout .site-footer { display: none; }
}
/* Me page */
.me-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.2rem; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.6rem; }
.me-plan { display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-decoration: none; color: inherit; }
.me-list { list-style: none; padding: 0 !important; margin-top: 1rem; overflow: hidden; }
.me-list li + li { border-top: 1px solid var(--line); }
.me-list a { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; color: inherit; text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.me-list a:hover { background: rgba(197,159,74,.08); }
.me-list a span { font-size: 1.3rem; width: 1.8rem; text-align: center; }
.me-list a small { display: block; font-weight: 400; color: var(--muted, #6b6b6b); margin-left: auto; font-size: .85rem; }
.me-list .badge-dot { margin-left: auto; position: static; }

.icon { width: 24px; height: 24px; flex: 0 0 auto; }
.icon-bell { width: 26px; height: 26px; color: #f2ede3; }
.me-list a .me-ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(197,159,74,.12); color: #8a6a24; display: grid; place-items: center; font-size: 0; }
.me-list a .me-ic .icon { width: 22px; height: 22px; }
.me-list a .me-chev { margin-left: auto; width: 18px; height: 18px; color: #b9b2a3; }
.me-list a small + .me-chev { margin-left: .5rem; }
.me-list .badge-dot + .me-chev { margin-left: .5rem; }

/* My classes (tutors and admins): big and plain */
.host-card { margin-top: 1rem; border-width: 2px; }
.host-card.is-next { border-color: var(--gold-500); }
.host-card.is-live { border-color: #1f7a4d; box-shadow: 0 0 0 4px rgba(31,122,77,.15); }
.host-day { font-size: 1.05rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #8a6a24; margin: 0 0 .3rem; }
.host-title { font-size: 1.5rem; margin: 0 0 .4rem; }
.host-when { font-size: 1.15rem; margin: 0 0 1rem; }
.host-open { font-size: 1.15rem; padding: 1rem; }
.host-link { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin: .7rem 0; padding: .6rem .8rem; background: #f6f2e8; border-radius: 10px; font-family: ui-monospace, monospace; font-size: .95rem; word-break: break-all; }
.host-next-strip { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.host-open { display: block; width: 100%; text-align: center; }

/* Recordings basket */
.inline-form { display: inline; }
.basket-bar { position: sticky; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  margin-top: 1rem; padding: .8rem 1rem; background: #111; color: #fff; border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.basket-bar .btn-primary { background: var(--gold-500, #c9a24a); color: #111; border-color: transparent; }
.basket-list li { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.basket-total { display: flex; justify-content: space-between; font-size: 1.25rem; font-weight: 800; padding: .8rem 0; border-top: 2px solid #111; margin-top: .6rem; }
a.is-current { font-weight: 800; text-decoration: none; color: inherit; }

/* Cards stacked in a sidebar or after a lead need air between them */
aside > .card + .card, aside > section + section { margin-top: 1rem; }
.cal-sub { margin: 1rem 0; }

.d-block { display: block; margin-top: .25rem; }
.pay-steps li { margin-bottom: .6rem; }
