/* MonTCF — tokens (same palette as the home page). Light is the default; dark via [data-theme="dark"]. */
:root {
  --bg: #f6f5f1;
  --bg-2: #f6f5f1;
  --bg-3: #eeede7;
  --card: #ffffff;
  --card-2: #fbfaf7;
  --ink: #0d1530;
  --muted: #5b6178;
  --line: rgba(13, 21, 48, .09);
  --line-strong: rgba(13, 21, 48, .16);
  --amber: #2240f5;
  --amber-ink: #ffffff;
  --red: #e03131;
  --art: rgba(34, 64, 245, .85);
  --art-faint: rgba(34, 64, 245, .06);
  --glass: rgba(255, 255, 255, .86);
  --sun: #ffb020;
  --radius: 18px;
  --max: 1160px;
  --font: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Bricolage Grotesque", "Inter", sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b1020;
  --bg-2: #0b1020;
  --bg-3: #131a2e;
  --card: #131a2e;
  --card-2: #1a2238;
  --ink: #eef0f8;
  --muted: #9aa2bd;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --amber: #6b80ff;
  --amber-ink: #0b1020;
  --red: #ff6b6b;
  --art: rgba(107, 128, 255, .9);
  --art-faint: rgba(255, 255, 255, .06);
  --glass: rgba(19, 26, 46, .72);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg-2); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.hl { color: var(--amber); }
.hl-red { color: var(--red); }
.underline { background: linear-gradient(transparent 82%, color-mix(in srgb, var(--amber) 55%, transparent) 82%); }

/* ---------- header ---------- */
.hd { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.hd .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; white-space: nowrap; }
.brand .dot { color: var(--amber); }
.hd nav { display: flex; gap: 22px; padding-left: 20px; border-left: 1px solid var(--line-strong); }
.hd nav a { text-decoration: none; font-size: .9rem; color: var(--muted); }
.hd nav a:hover { color: var(--ink); }
.hd .actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: transparent; border: 0; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--line); }
.icon-btn .moon { display: none; }
:root[data-theme="light"] .icon-btn .sun { display: none; }
:root[data-theme="light"] .icon-btn .moon { display: block; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: .92rem; text-decoration: none; border: 1px solid transparent; transition: transform .15s, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-amber { background: var(--amber); color: var(--amber-ink); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; font-weight: 500; }
.btn-lg { padding: 14px 26px; border-radius: 12px; font-size: 1rem; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg); border-bottom: 1px solid var(--line); }
.hero .grid-bg { position: absolute; inset: 0; background-image: linear-gradient(var(--art-faint) 1px, transparent 1px), linear-gradient(90deg, var(--art-faint) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 80%); -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 80%); }
.hero .art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .art .topo { stroke: var(--line-strong); fill: none; stroke-width: 1.2; }
.hero .art .leaf { stroke: var(--art); fill: none; stroke-width: 2.2; stroke-linejoin: round; }
.hero .art .hatch { stroke: var(--art); stroke-width: 1; opacity: .7; }
.hero .art .flight { stroke: var(--art); fill: none; stroke-width: 1.6; stroke-dasharray: 6 8; }
.hero .art text { fill: var(--art); font-family: var(--font); font-size: 11px; font-weight: 600; letter-spacing: .22em; }
.hero .art .plane { fill: var(--art); }
.hero .inner { position: relative; display: flex; align-items: center; min-height: 600px; padding-top: 56px; padding-bottom: 72px; }
.glass { background: var(--glass); border: 1px solid var(--line-strong); border-radius: 24px; padding: 34px 32px; max-width: 560px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 80px rgba(0, 0, 0, .12); }
.pill { display: inline-flex; align-items: center; gap: 10px; font-size: .82rem; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--line); }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber) 25%, transparent); }
.hero h1 { font-size: clamp(2rem, 4.4vw, 2.75rem); font-weight: 900; line-height: 1.12; letter-spacing: -.03em; margin: 0 0 18px; }
.hero p.lede { font-size: 1.08rem; color: var(--muted); margin: 0 0 28px; }
.hero .cta-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero .meta { position: absolute; left: 20px; bottom: 22px; font-size: .68rem; letter-spacing: .2em; color: var(--muted); border-left: 2px solid var(--amber); padding-left: 12px; line-height: 1.8; text-transform: uppercase; }

/* ---------- kpis ---------- */
.kpis { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.kpis .wrap { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding-top: 26px; padding-bottom: 26px; }
.kpi b { display: block; font-size: 2rem; font-weight: 900; color: var(--amber); letter-spacing: -.02em; line-height: 1.2; }
.kpi span { font-size: .88rem; color: var(--muted); }

/* ---------- sections ---------- */
.sec { padding: 96px 0; }
.sec-alt { background: var(--bg-3); }
.eyebrow { text-align: center; font-size: .75rem; font-weight: 700; letter-spacing: .2em; color: var(--amber); text-transform: uppercase; margin: 0 0 10px; }
.sec h2 { text-align: center; font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 900; letter-spacing: -.025em; line-height: 1.2; margin: 0 0 14px; }
.sec .sub { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 48px; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-decoration: none; display: flex; flex-direction: column; gap: 6px; transition: border-color .2s, transform .2s; }
.tile:hover { border-color: color-mix(in srgb, var(--amber) 60%, transparent); transform: translateY(-2px); }
.tile.wide { grid-column: span 2; }
.tile .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--amber); background: color-mix(in srgb, var(--amber) 12%, transparent); border: 1px solid color-mix(in srgb, var(--amber) 35%, transparent); margin-bottom: 14px; }
.tile .num { font-size: .72rem; font-weight: 700; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
.tile h3 { margin: 0; font-size: 1.08rem; font-weight: 700; line-height: 1.35; }
.tile p { margin: 0; font-size: .92rem; color: var(--muted); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step .n { position: absolute; top: 22px; right: 22px; font-size: .78rem; font-weight: 800; color: var(--amber); }
.step h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 700; padding-right: 28px; }
.step p { margin: 0; font-size: .92rem; color: var(--muted); }

/* marquee */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); padding: 16px 0; }
.marquee .track { display: flex; gap: 34px; width: max-content; animation: slide 40s linear infinite; }
.marquee span { font-size: .78rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.marquee i { color: var(--amber); font-style: normal; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; } }

/* about */
.about { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; }
.about .badge { aspect-ratio: 1; border-radius: 28px; border: 1px solid var(--line-strong); background: var(--card); display: grid; place-items: center; position: relative; overflow: hidden; }
.about .badge svg { width: 62%; height: auto; }
.about h2, .about .eyebrow { text-align: left; }
.about p { color: var(--muted); margin: 0 0 14px; }
.about .role { color: var(--amber); font-weight: 600; margin-bottom: 18px; }

/* faq */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--amber); font-weight: 800; font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* final cta */
.cta-final { text-align: center; }
.cta-final .box { background: var(--card); border: 1px solid var(--line-strong); border-radius: 28px; padding: 56px 24px; position: relative; overflow: hidden; }
.cta-final .box::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--amber) 22%, transparent), transparent 70%); }
.cta-final h2 { position: relative; }
.cta-final p { position: relative; color: var(--muted); max-width: 560px; margin: 0 auto 26px; }

/* ---------- episode page ---------- */
.ep-hero { background: var(--bg); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.ep-hero .grid-bg { position: absolute; inset: 0; background-image: linear-gradient(var(--art-faint) 1px, transparent 1px), linear-gradient(90deg, var(--art-faint) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); }
.ep-hero .wrap { position: relative; max-width: 820px; padding-top: 56px; padding-bottom: 48px; }
.crumbs { font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.ep-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.15; margin: 14px 0 20px; }
.hook { font-size: 1.12rem; border-left: 3px solid var(--amber); padding: 2px 0 2px 18px; margin: 0; color: var(--ink); }
.ep-body { max-width: 820px; padding-top: 48px; padding-bottom: 24px; }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: p; }
.points li { counter-increment: p; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px 20px 72px; position: relative; }
.points li::before { content: counter(p, decimal-leading-zero); position: absolute; left: 22px; top: 20px; font-weight: 800; font-size: .9rem; color: var(--amber); }
.points h3 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 700; }
.points p { margin: 0; color: var(--muted); font-size: .95rem; }
.recap { margin: 28px 0; padding: 20px 24px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent); background: color-mix(in srgb, var(--amber) 9%, transparent); }
.recap strong { display: block; color: var(--amber); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 6px; }
.links h2 { font-size: 1.2rem; margin: 32px 0 10px; }
.links ul { padding-left: 1.2em; margin: 0; }
.links a { color: var(--amber); }
.note { font-size: .88rem; color: var(--muted); font-style: italic; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.pager a { text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; }
.pager a:hover { border-color: color-mix(in srgb, var(--amber) 60%, transparent); }
.pager a.next { text-align: right; grid-column: 2; }
.pager span { display: block; font-size: .78rem; color: var(--muted); }

/* ---------- footer ---------- */
.ft { border-top: 1px solid var(--line); background: var(--bg); padding: 40px 0 48px; margin-top: 72px; font-size: .88rem; color: var(--muted); }
.ft .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ft p { margin: 4px 0; }
.ft .brand { font-size: 1rem; color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .bento, .steps { grid-template-columns: 1fr 1fr; }
  .tile.wide { grid-column: span 2; }
  .about { grid-template-columns: 1fr; }
  .about .badge { max-width: 220px; }
  .hero .art .leaf-group, .hero .art .ring { opacity: .35; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hd nav { display: none; }
  .hd .btn-ghost { display: none; }
  .hero .inner { min-height: 0; padding-top: 32px; padding-bottom: 88px; }
  .glass { padding: 26px 22px; }
  .kpis .wrap { grid-template-columns: 1fr 1fr; gap: 18px; }
  .bento, .steps { grid-template-columns: 1fr; }
  .tile.wide { grid-column: auto; }
  .sec { padding: 64px 0; }
  .pager { grid-template-columns: 1fr; }
  .pager a.next { grid-column: auto; }
}
.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; }

/* ---------- background animation ---------- */
@keyframes grid-drift { to { background-position: 48px 48px, 48px 48px; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float-a { 50% { transform: translateY(-14px); } }
@keyframes float-b { 50% { transform: translateY(12px); } }
@keyframes dash { to { stroke-dashoffset: -140; } }
@keyframes breathe { 50% { transform: scale(1.03); } }
.hero .grid-bg, .ep-hero .grid-bg { animation: grid-drift 14s linear infinite; }
.hero .art .ring { transform-box: view-box; transform-origin: 1100px 320px; animation: spin 90s linear infinite; }
.hero .art .leaf-group { transform-box: view-box; transform-origin: 1105px 316px; animation: breathe 7s ease-in-out infinite; }
.hero .art .topo:nth-of-type(odd) { animation: float-a 11s ease-in-out infinite; }
.hero .art .topo:nth-of-type(even) { animation: float-b 13s ease-in-out infinite; }
.hero .art .flight { animation: dash 6s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .hero .grid-bg, .ep-hero .grid-bg, .hero .art .ring, .hero .art .leaf-group, .hero .art .topo, .hero .art .flight { animation: none; }
  .hero .art .plane-move { display: none; }
}

/* episode list (front page) */
.ep-list { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; border-top: 1px solid var(--line); }
.ep-list li { border-bottom: 1px solid var(--line); }
.ep-list a { display: flex; gap: 20px; align-items: baseline; padding: 20px 8px; text-decoration: none; }
.ep-list a:hover h3 { color: var(--amber); }
.ep-list .n { flex: none; width: 28px; font-weight: 800; color: var(--amber); font-size: 1.05rem; }
.ep-list h3 { margin: 0 0 4px; font-size: 1.08rem; font-weight: 700; transition: color .15s; }
.ep-list p { margin: 0; color: var(--muted); font-size: .94rem; }

.ep-body > h2 { font-size: 1.25rem; margin: 28px 0 8px; }
.outline { padding-left: 1.2em; margin: 0; }
.outline li { margin: 6px 0; }

/* compact episode list */
.ep-list a { padding: 12px 8px; gap: 16px; }
.ep-list h3 { font-size: 1rem; margin: 0 0 2px; }
.ep-list p { font-size: .88rem; line-height: 1.5; }
.ep-list .n { width: 24px; font-size: .95rem; }
.ep-list .txt { flex: 1; }
.sub a { color: var(--amber); }

/* member account */
.form { display: grid; gap: 14px; max-width: 420px; }
.form h2 { margin: 0; font-size: 1.3rem; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form input { font: inherit; font-weight: 400; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); }
.form input:focus { outline: 2px solid var(--amber); outline-offset: 1px; }
.form .btn { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.form-links { font-size: .9rem; color: var(--muted); }
.form-links a { color: var(--amber); }
button.btn { cursor: pointer; font: inherit; font-weight: 700; font-size: .92rem; }
.msg { padding: 12px 16px; border-radius: 12px; background: var(--bg-3); font-size: .93rem; margin: 10px 0 0; }
.msg-ok { background: color-mix(in srgb, #1a7f37 12%, transparent); color: var(--ink); }
.msg-err { background: color-mix(in srgb, var(--amber) 12%, transparent); color: var(--ink); }
#account-msg { margin: 0 0 20px; }

/* password rules */
.pw-field { position: relative; display: block; }
.pw-field input { width: 100%; padding-right: 96px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--amber); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; padding: 6px 10px; }
.pw-rules { list-style: none; margin: -4px 0 0; padding: 0; display: grid; gap: 4px; font-size: .86rem; color: var(--muted); }
.pw-rules li::before { content: "○"; display: inline-block; width: 1.3em; color: var(--muted); }
.pw-rules li.ok { color: var(--ink); }
.pw-rules li.ok::before { content: "✓"; color: #1a7f37; font-weight: 700; }

/* account management */
.manage { display: grid; gap: 10px; margin: 8px 0 28px; }
.manage details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.manage summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.manage summary::-webkit-details-marker { display: none; }
.manage summary::after { content: "+"; color: var(--amber); font-weight: 800; }
.manage details[open] summary::after { content: "–"; }
.manage details > :not(summary) { margin-top: 14px; }
.manage details p { color: var(--muted); font-size: .93rem; }
.manage .danger summary { color: var(--red); }
.form-note { font-size: .86rem; color: var(--muted); margin: 0; }
.btn-danger { background: var(--red); color: #fff; border: 0; }
.muted { color: var(--muted); }

/* blog */
.post-list { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; display: grid; gap: 14px; }
.post-list a { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; transition: border-color .2s; }
.post-list a:hover { border-color: color-mix(in srgb, var(--amber) 60%, transparent); }
.post-list h3 { margin: 4px 0 6px; font-size: 1.1rem; font-weight: 700; }
.post-list p { margin: 0; color: var(--muted); font-size: .93rem; }
.post-date { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--amber); }
.post-empty { text-align: center; color: var(--muted); }
.more { text-align: center; margin-top: 28px; }
.prose { font-size: 1.04rem; }
.prose h2 { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; margin: 40px 0 12px; }
.prose h3 { font-size: 1.15rem; font-weight: 700; margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--amber); }
.prose blockquote { margin: 24px 0; padding: 14px 20px; border-left: 3px solid var(--amber); background: var(--bg-3); border-radius: 0 12px 12px 0; }
.prose blockquote p { margin: 0; }
.prose img { max-width: 100%; height: auto; border-radius: 14px; margin: 8px 0; }
.prose hr { border: 0; border-top: 1px solid var(--line-strong); margin: 32px 0; }
.prose code { font-size: .92em; background: var(--bg-3); padding: 2px 6px; border-radius: 6px; }
.post-meta { margin: 0 0 14px; }

/* ---------- phone: same look as desktop ---------- */
@media (max-width: 640px) {
  .hd .wrap { flex-wrap: wrap; height: auto; gap: 0 8px; padding: 10px 14px 0; }
  .brand { font-size: .98rem; gap: 6px; }
  .brand svg { width: 24px; height: 24px; }
  .hd .actions { gap: 4px; flex-wrap: nowrap; }
  .hd .btn { padding: 7px 11px; font-size: .8rem; }
  .hd .btn-ghost { display: inline-flex; }
  .icon-btn { width: 34px; height: 34px; }
  .hd nav { display: flex; order: 3; width: 100%; justify-content: space-between; gap: 18px; padding: 8px 0 10px; margin-top: 8px; border-left: 0; border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
  .hd nav::-webkit-scrollbar { display: none; }
  .hd nav a { white-space: nowrap; }

  .hero .art { inset: auto; bottom: -30px; left: calc(50% - 690px); width: 900px; height: 400px; }
  .hero .art .leaf-group, .hero .art .ring { opacity: 1; }
  .hero .inner { padding-top: 28px; padding-bottom: 350px; }
  .glass { padding: 24px 20px; }
  .hero h1 { font-size: 1.9rem; }
  .hero p.lede { font-size: 1rem; margin-bottom: 22px; }
  .hero .cta-row { flex-wrap: nowrap; gap: 10px; }
  .hero .cta-row .btn-lg { padding: 12px 14px; font-size: .9rem; flex: 1 1 auto; }

  .steps { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -20px; padding: 0 20px 6px; scrollbar-width: none; }
  .steps::-webkit-scrollbar { display: none; }
  .step { flex: 0 0 78%; scroll-snap-align: center; }
}
@media (max-width: 370px) {
  .brand { font-size: .9rem; }
  .hd .btn { padding: 6px 9px; font-size: .76rem; }
  .icon-btn { width: 30px; height: 30px; }
}

/* ---------- tables (articles, TCF) ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 14px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table-wrap th, .table-wrap td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap th { background: var(--bg-3); font-weight: 700; white-space: nowrap; }
.table-wrap tr:last-child td { border-bottom: 0; }

/* ---------- TCF Canada ---------- */
.tcf-wrap { max-width: 900px; padding-top: 36px; padding-bottom: 24px; }
.tcf-gate { background: var(--card); border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent); border-radius: 18px; padding: 22px 24px; }
.tcf-gate p { margin: 0 0 14px; }
.tcf-gate .cta-row, .tcf-wrap .cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 0; }
.tcf-features { grid-template-columns: repeat(3, 1fr); }
.tcf-facts h2 { text-align: left; }
.tcf-facts h3 { margin: 28px 0 12px; }
.tcf-h { font-size: 1.25rem; font-weight: 800; margin: 36px 0 14px; letter-spacing: -.01em; }
.tcf-title { font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 900; letter-spacing: -.02em; margin: 0 0 12px; line-height: 1.2; }
.tcf-back { margin: 0 0 18px; font-size: .9rem; }
.tcf-back a { color: var(--amber); text-decoration: none; }
.tcf-loading { padding: 40px 0; }
.tcf-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.tcf-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; transition: border-color .2s, transform .2s; }
.tcf-card:hover { border-color: color-mix(in srgb, var(--amber) 60%, transparent); transform: translateY(-2px); }
.tcf-card h3 { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.35; }
.tcf-card p { margin: 0; font-size: .88rem; color: var(--muted); flex: 1; }
.tag { display: inline-block; align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; background: var(--bg-3); color: var(--muted); }
.tag-new { background: color-mix(in srgb, var(--amber) 12%, transparent); color: var(--amber); }
.tcf-level { display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: center; background: var(--card); border: 1px solid var(--line-strong); border-radius: 20px; padding: 22px 24px; margin-bottom: 8px; }
.tcf-level > div:first-child { text-align: center; border-right: 1px solid var(--line); padding-right: 20px; }
.tcf-level > div:first-child strong { display: block; font-size: 2.6rem; font-weight: 900; color: var(--amber); line-height: 1.1; margin-top: 6px; }
.tcf-level p { margin: 0 0 12px; }
.tcf-level p:last-child { margin: 0; }
.tcf-guide h1 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); font-weight: 900; letter-spacing: -.02em; margin: 0 0 18px; }
.tcf-facts-list { padding-left: 1.2em; color: var(--muted); }
.quiz { max-width: 760px; }
.q-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .88rem; color: var(--muted); margin-bottom: 10px; }
.timer { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--ink); background: var(--bg-3); padding: 4px 12px; border-radius: 999px; }
.timer-low { color: #fff; background: var(--red); }
.bar { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; margin-bottom: 22px; }
.bar i { display: block; height: 100%; background: var(--amber); transition: width .3s; }
.doc { white-space: pre-line; background: var(--bg-3); border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 0 0 16px; font-size: .98rem; }
.doc-model { border-left-color: #1a7f37; }
.q { font-weight: 700; font-size: 1.05rem; margin: 6px 0 14px; }
.opts { display: grid; gap: 10px; }
.opt { display: flex; gap: 12px; align-items: flex-start; text-align: left; font: inherit; font-size: .97rem; color: var(--ink); background: var(--card); border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.opt span { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 800; background: var(--bg-3); color: var(--muted); }
.opt:hover { border-color: color-mix(in srgb, var(--amber) 60%, transparent); }
.opt.sel { border-color: var(--amber); background: color-mix(in srgb, var(--amber) 8%, transparent); }
.opt.sel span { background: var(--amber); color: #fff; }
.opt-skip { color: var(--muted); }
.q-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; }
.listen { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 14px; }
.listen button:disabled { opacity: .7; cursor: wait; }
.corr { padding-left: 0; list-style: none; display: grid; gap: 12px; }
.corr li { background: var(--card); border: 1px solid var(--line); border-left: 4px solid #1a7f37; border-radius: 0 12px 12px 0; padding: 14px 16px; }
.corr li.bad { border-left-color: var(--red); }
.corr p { margin: 6px 0 0; font-size: .93rem; }
.corr details summary { cursor: pointer; font-size: .85rem; color: var(--amber); margin-top: 6px; }
.quiz textarea, .quiz #notes { width: 100%; font: inherit; font-size: .98rem; line-height: 1.6; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); resize: vertical; margin-top: 8px; }
.quiz textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; }
.wc { font-weight: 700; font-size: .9rem; }
.wc-ok { color: #1a7f37; }
.wc-bad { color: var(--red); }
.checklist { list-style: none; padding: 0; display: grid; gap: 8px; }
.checklist label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .95rem; }
.checklist input { margin-top: 5px; accent-color: var(--amber); }
.quiz audio { width: 100%; margin: 6px 0 10px; }
@media (max-width: 900px) { .tcf-features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .tcf-features { display: flex; }
  .tcf-level { grid-template-columns: 1fr; text-align: left; }
  .tcf-level > div:first-child { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 12px; text-align: left; }
  .tcf-wrap { padding-top: 24px; }
}
#tcf-app { scroll-margin-top: 96px; }
@media (max-width: 640px) { #tcf-app { scroll-margin-top: 120px; } }
.grid-eval { display: grid; gap: 14px; margin: 10px 0 18px; }
.grid-eval fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px 14px; margin: 0; background: var(--card); }
.grid-eval legend { font-weight: 700; font-size: .95rem; padding: 0 6px; }
.grid-eval label { display: flex; gap: 10px; align-items: flex-start; padding: 6px 4px; font-size: .9rem; cursor: pointer; border-radius: 8px; }
.grid-eval label:hover { background: var(--bg-3); }
.grid-eval input { margin-top: 4px; accent-color: var(--amber); flex: none; }
.grid-eval b { display: inline-block; min-width: 28px; color: var(--amber); }
.tcf-level .muted { font-size: .85rem; }
.tcf-official { margin-top: 14px; font-size: .88rem; }
.tcf-official a { color: var(--amber); }

/* hand-drawn scenes for listening documents */
.sketch { margin: 0 0 14px; border: 1px solid var(--line-strong); border-radius: 16px; overflow: hidden; background: #fbf6ea; box-shadow: 0 2px 0 rgba(0,0,0,.04); }
.sketch svg { display: block; width: 100%; height: auto; max-height: 300px; }
.sketch .spk .who { transition: transform .25s ease, opacity .25s ease; transform-box: fill-box; transform-origin: 50% 100%; }
.sketch.playing .spk:not(.talking) .who { opacity: .8; }
.sketch .spk.talking .who { transform: translateY(-3px) scale(1.03); }
.sketch .bubble { transition: opacity .2s ease; }
.sketch.playing .bubble .dots circle { animation: sk-dot 0.9s infinite ease-in-out; }
.sketch.playing .bubble .dots circle:nth-child(2) { animation-delay: .15s; }
.sketch.playing .bubble .dots circle:nth-child(3) { animation-delay: .3s; }
.sketch.playing .waves { animation: sk-wave 0.8s infinite ease-in-out; transform-box: fill-box; transform-origin: 0 50%; }
@keyframes sk-dot { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes sk-wave { 0%, 100% { opacity: .35; transform: scaleX(.92); } 50% { opacity: 1; transform: scaleX(1.05); } }
@media (prefers-reduced-motion: reduce) { .sketch.playing .waves, .sketch.playing .bubble .dots circle { animation: none; } }

/* admin panel */
.adm-wrap { padding-top: 28px; padding-bottom: 60px; }
.adm-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.adm-tile { background: var(--card); border: 1px solid var(--line-strong); border-radius: 16px; padding: 16px 18px; }
.adm-tile span { display: block; font-size: .82rem; color: var(--muted); }
.adm-tile strong { display: block; font-size: 2rem; font-weight: 800; line-height: 1.2; margin: 4px 0; }
.adm-tile em { font-style: normal; font-size: .8rem; color: var(--muted); }
.adm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.adm-card { background: var(--card); border: 1px solid var(--line-strong); border-radius: 16px; padding: 18px 20px; margin-bottom: 18px; }
.adm-grid .adm-card { margin-bottom: 0; }
.adm-card h2 { font-size: 1.05rem; margin: 0 0 12px; }
.adm-bars { display: flex; align-items: flex-end; gap: 3px; height: 110px; }
.adm-bars div { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.adm-bars i { display: block; width: 100%; min-height: 2px; background: var(--amber); border-radius: 3px 3px 0 0; }
.adm-levels div { display: grid; grid-template-columns: 110px 1fr 36px; gap: 10px; align-items: center; margin: 6px 0; font-size: .9rem; }
.adm-levels b { background: var(--bg-3); border-radius: 6px; height: 12px; overflow: hidden; }
.adm-levels b i { display: block; height: 100%; background: var(--amber); }
.adm-levels em { font-style: normal; text-align: right; }
.adm-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.adm-head h2 { margin: 0; }
.adm-head input { font: inherit; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); color: var(--ink); min-width: 240px; }
.adm-table th button { font: inherit; font-weight: 700; background: none; border: 0; color: inherit; cursor: pointer; padding: 0; }
@media (max-width: 760px) { .adm-tiles { grid-template-columns: 1fr 1fr; } .adm-grid { grid-template-columns: 1fr; } .adm-head input { min-width: 0; width: 100%; } }

/* written expression (level test) */
.ee-tabs { display: flex; gap: 8px; margin: 0 0 12px; flex-wrap: wrap; }
.ee-tabs button { font: inherit; font-weight: 700; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); border-radius: 10px; padding: 8px 14px; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; }
.ee-tabs button small { font-weight: 500; color: var(--muted); font-size: .78rem; }
.ee-tabs button.on { border-color: var(--amber); box-shadow: 0 0 0 2px color-mix(in srgb, var(--amber) 25%, transparent); }
.ee-txt { width: 100%; font: inherit; font-size: 1rem; line-height: 1.6; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--card); color: var(--ink); resize: vertical; box-sizing: border-box; }
.ee-count { margin: 6px 0 12px; font-size: .9rem; font-weight: 600; }
.ee-count.warn { color: #b45309; } .ee-count.ok { color: #15803d; }
.ee-task { border: 1px solid var(--line-strong); border-radius: 14px; padding: 12px 16px; margin: 0 0 12px; background: var(--card); }
.ee-task summary { cursor: pointer; font-size: 1.02rem; }
.ee-task h4 { margin: 14px 0 6px; font-size: .95rem; }
.ee-crits { margin-top: 12px; }
.ee-crit { display: grid; grid-template-columns: minmax(150px, 2fr) 3fr 110px; gap: 12px; align-items: center; margin: 8px 0; font-size: .92rem; }
.ee-crit span small { display: block; color: var(--muted); font-size: .76rem; }
.ee-crit b { background: var(--bg-3); border-radius: 6px; height: 10px; overflow: hidden; }
.ee-crit b i { display: block; height: 100%; background: var(--amber); }
.ee-crit em { font-style: normal; font-weight: 700; text-align: right; }
.ee-checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.ee-checks .ok { color: #15803d; } .ee-checks .bad { color: #b91c1c; }
.ee-copy { white-space: pre-wrap; line-height: 1.7; }
.ee-err { background: transparent; border-bottom: 2px solid #dc2626; color: inherit; cursor: help; }
.ee-err.orth { border-bottom-color: #f59e0b; }
.ee-errlist { padding-left: 20px; font-size: .9rem; } .ee-errlist li { margin: 4px 0; }
.ee-bad { text-decoration: line-through; color: #b91c1c; }
@media (max-width: 640px) { .ee-crit { grid-template-columns: 1fr 80px; } .ee-crit b { grid-column: 1 / -1; grid-row: 2; } }

/* ---------- MonTCF additions ---------- */
h1, h2, h3, .brand { font-family: var(--font-display); letter-spacing: -.02em; }
.brand b { color: var(--amber); }
.brand img { display: block; }
.icon-btn .sun { display: none; }
:root[data-theme="dark"] .icon-btn .sun { display: block; }
:root[data-theme="dark"] .icon-btn .moon { display: none; }
.hd nav .nav-m { display: none; }
@media (max-width: 900px) { .hd nav .nav-m { display: inline; } }
.form .otp { font-size: 1.4rem; letter-spacing: .35em; font-weight: 700; text-align: center; max-width: 260px; }
.form-note { color: var(--muted); font-size: .92rem; margin: 0; }
.adm-st { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .78rem; font-weight: 700; white-space: nowrap; background: var(--bg-3); color: var(--muted); }
.adm-st-active { background: color-mix(in srgb, #12b886 16%, transparent); color: var(--ink); }
.adm-st-suspended { background: color-mix(in srgb, #f08c00 20%, transparent); color: var(--ink); }
.adm-st-banned { background: color-mix(in srgb, var(--red) 18%, transparent); color: var(--red); }
.adm-st-admin { background: var(--art-faint); color: var(--amber); }
.adm-manage { padding: 5px 12px; font-size: .82rem; }
.adm-dialog { border: 1px solid var(--line-strong); border-radius: 18px; padding: 0; max-width: 520px; width: calc(100% - 32px); background: var(--card); color: var(--ink); }
.adm-dialog::backdrop { background: rgba(10, 14, 30, .55); }
.adm-form { padding: 22px 24px; display: grid; gap: 12px; }
.adm-form h2 { margin: 0; font-size: 1.2rem; }
.adm-form p { margin: 0; }
.adm-form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.adm-form input, .adm-form select { font: inherit; font-weight: 400; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); }
.adm-form fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; margin: 0; }
.adm-form fieldset.danger { border-color: color-mix(in srgb, var(--red) 40%, transparent); }
.adm-form legend { font-weight: 700; padding: 0 6px; }
.adm-form .muted { font-size: .82rem; }
.adm-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.adm-form .btn { cursor: pointer; font: inherit; font-weight: 700; justify-self: start; }
.signed-in [data-guest]{display:none!important}
html:not(.signed-in) [data-member]{display:none!important}
.member-hello { color: var(--muted); margin: 0 0 16px; }
.member-cards { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; margin: 0 0 34px; }
.member-card { display: grid; gap: 6px; align-content: start; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--card); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.member-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(13, 21, 48, .35); }
.member-card strong { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.2; }
.member-card em { font-style: normal; color: var(--muted); font-size: .88rem; }
.member-card .tag { justify-self: start; }
.member-card-main { background: var(--amber); color: var(--amber-ink); border-color: var(--amber); }
.member-card-main em, .member-card-main .tag { color: inherit; opacity: .9; }
.member-card-main .tag { background: rgba(255, 255, 255, .18); }
@media (max-width: 760px) { .member-cards { grid-template-columns: 1fr; } }
.adm-tabs { display: flex; gap: 6px; margin-bottom: 18px; border-bottom: 1px solid var(--line-strong); }
.adm-tabs button { font: inherit; font-weight: 700; background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; color: var(--muted); cursor: pointer; }
.adm-tabs button.on { color: var(--ink); border-bottom-color: var(--amber); }
.adm-tabs span { display: inline-block; margin-left: 4px; padding: 0 8px; border-radius: 99px; background: var(--bg-3); font-size: .8rem; }
.adm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.adm-chips button { font: inherit; font-size: .85rem; font-weight: 600; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); cursor: pointer; }
.adm-chips button.on { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
.adm-head .adm-row select, .wl-st { font: inherit; padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--bg); color: var(--ink); }
.wl-table td { vertical-align: top; font-size: .88rem; }
.wl-table .wl-note td { border-top: 0; padding-top: 0; color: var(--muted); font-size: .85rem; }
.adm-head .btn { cursor: pointer; font: inherit; font-weight: 600; padding: 7px 14px; }
@media (max-width: 640px) {
  .sec { padding: 40px 0; }
  .sec .ep-body { padding-top: 0; }
  .ep-body { padding-top: 28px; }
  .sec .sub { margin-bottom: 24px; }
  .tcf-gate .cta-row .btn { width: 100%; justify-content: center; }
  .member-card strong { font-size: 1.1rem; }
  table { font-size: .84rem; }
}
.acct{position:relative}
.acct-btn{display:inline-flex;align-items:center;gap:6px;cursor:pointer;font:inherit;font-weight:600}
.acct-btn svg{transition:transform .15s}
.acct-btn[aria-expanded="true"] svg{transform:rotate(180deg)}
.acct-menu{position:absolute;right:0;top:calc(100% + 8px);min-width:230px;padding:8px;border-radius:14px;border:1px solid var(--line-strong);background:var(--card);box-shadow:0 18px 40px -16px rgba(13,21,48,.35);z-index:60;display:grid}
.acct-menu[hidden]{display:none}
.acct-email{margin:4px 10px 8px;font-size:.78rem;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.acct-menu a,.acct-menu button{display:block;text-align:left;padding:10px 12px;border-radius:10px;text-decoration:none;color:var(--ink);font:inherit;font-size:.92rem;font-weight:500;background:none;border:0;cursor:pointer}
.acct-menu a:hover,.acct-menu button:hover{background:var(--bg-3)}
.acct-menu .acct-logout{color:var(--red);border-top:1px solid var(--line-strong);border-radius:0 0 10px 10px;margin-top:4px}
@media (max-width: 640px) { .hd .acct-btn { padding: 7px 11px; font-size: .8rem; } }
@media (max-width: 640px) { .hd .actions a.btn-amber[data-member] { display: none; } }

/* ---------- elegant theme (overrides) ---------- */
:root { --bg: #f7f5f0; --bg-2: #f7f5f0; --bg-3: #efebe3; --card: #fffdf9; --card-2: #faf8f3; --ink: #141b2d; --muted: #5d6475; --line: rgba(20, 27, 45, .09); --line-strong: rgba(20, 27, 45, .15); --amber: #1f3c88; --art: rgba(31, 60, 136, .8); --art-faint: rgba(31, 60, 136, .05); --font-display: "Fraunces", Georgia, serif; --radius: 12px; }
:root[data-theme="dark"] { --bg: #10131b; --bg-2: #10131b; --bg-3: #161a24; --card: #161a24; --card-2: #1d2230; --ink: #ece9e2; --muted: #9a9fae; --line: rgba(255, 255, 255, .07); --line-strong: rgba(255, 255, 255, .13); --amber: #9fb3ff; --amber-ink: #10131b; }
h1, h2, h3, .brand { font-weight: 500; letter-spacing: -.015em; }
.sec h2 { font-weight: 500; }
.btn { border-radius: 8px; font-weight: 500; }
button.btn, .form .btn, .adm-form .btn { font-weight: 500; }
.btn:hover { transform: none; }
.btn-amber { background: var(--ink); color: var(--bg); }
.btn-amber:hover { background: var(--amber); color: #fff; }
.tag { border-radius: 4px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .66rem; background: var(--bg-3); }
.step { border-radius: 12px; }
.member-card { border-radius: 12px; }
.member-card:hover { transform: none; box-shadow: none; border-color: var(--ink); }
.member-card-main { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.member-card-main .tag { background: rgba(255, 255, 255, .12); }
.adm-tile, .adm-card, .tcf-gate { border-radius: 12px; }
.adm-chips button, .adm-st, .adm-tabs span { border-radius: 6px; }
.icon-btn { border-radius: 8px; }
.msg { border-radius: 8px; }
.grid-bg { display: none; }
.tcf-gate { border-color: var(--line-strong); background: var(--card); }
.ep-hero .hook { border-left-width: 2px; }

/* ---------- elegant colours ---------- */
:root { --gold: #a6824a; --gold-soft: #f3ecdf; --navy-deep: #16213d; --sand: #f1ebe0; }
:root[data-theme="dark"] { --gold: #d1ae72; --gold-soft: #2a2418; --navy-deep: #0c1020; --sand: #171b25; }
.hd { border-bottom-color: color-mix(in srgb, var(--gold) 35%, var(--line)); }
.ep-hero { background: linear-gradient(180deg, var(--bg) 0%, var(--sand) 100%); }
.ep-hero .hook { border-left-color: var(--gold); }
.crumbs a { color: var(--gold); }
.step .n, .step::before { color: var(--gold); }
.sec-alt { background: var(--sand); }
.member-card-main { background: var(--navy-deep); border-color: var(--navy-deep); }
.member-card-main .tag { color: var(--gold); }
.tag-new { background: var(--gold-soft); color: var(--gold); }
.adm-tabs button.on { border-bottom-color: var(--gold); }
.ft { border-top: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line)); }

/* ---------- logo ---------- */
.brand { gap: 10px; font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; letter-spacing: -.01em; color: var(--ink); }
.brand b { font-weight: 500; color: var(--gold); letter-spacing: .05em; }
.logo-mark { position: relative; flex: none; width: 32px; height: 32px; border-radius: 8px; background: #16213d; color: #f7f2e8; display: grid; place-items: center; font-family: var(--font-display); font-weight: 500; font-size: 18px; line-height: 1; padding-top: 1px; }
.logo-mark::after { content: ""; position: absolute; inset: 3px; border: 1px solid #c9a66b; border-radius: 5px; }
:root[data-theme="dark"] .logo-mark { background: #0c1020; }
@media (max-width: 640px) { .logo-mark { width: 28px; height: 28px; font-size: 16px; } }

/* waiting-list call to action in "Mon espace" */
.wl-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin: -14px 0 36px; padding: 24px 26px; border-radius: 14px; background: linear-gradient(135deg, #16213d 0%, #24345f 100%); color: #efe9dc; border-top: 3px solid #c9a66b; }
.wl-banner > div { flex: 1 1 320px; display: grid; gap: 6px; }
.wl-banner-k { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #d9bd8a; font-weight: 600; }
.wl-banner strong { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; color: #f7f2e8; line-height: 1.2; }
.wl-banner p { margin: 0; color: #c9cedb; font-size: .93rem; }
.wl-banner-btn { background: #c9a66b; color: #16213d; font-weight: 600; }
.wl-banner-btn:hover { background: #f7f2e8; color: #16213d; }
.wl-banner.is-joined strong::before { content: "✓ "; color: #c9a66b; }
@media (max-width: 640px) { .wl-banner { padding: 20px 18px; margin-top: -18px; } .wl-banner-btn { width: 100%; } }

/* level test: large part header */
.part-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 22px; margin: 0 0 10px; border-radius: 12px; background: linear-gradient(135deg, #16213d 0%, #24345f 100%); color: #efe9dc; border-left: 4px solid #c9a66b; }
.part-l { display: grid; gap: 2px; }
.part-k { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #d9bd8a; }
.part-name { font-family: var(--font-display); font-weight: 500; font-size: 1.7rem; line-height: 1.15; color: #f7f2e8; }
.part-r { display: flex; align-items: center; gap: 14px; }
.part-count { display: flex; align-items: baseline; gap: 4px; font-family: var(--font-display); color: #f7f2e8; }
.part-count small { font-family: var(--font); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: #b9bfcf; margin-right: 4px; }
.part-count b { font-size: 2.1rem; font-weight: 500; line-height: 1; color: #d9bd8a; }
.part-count i { font-style: normal; font-size: 1.15rem; color: #b9bfcf; }
.part-head .timer { background: rgba(255, 255, 255, .1); color: #f7f2e8; font-size: 1.05rem; padding: 7px 14px; border-radius: 8px; font-weight: 600; }
.part-head .timer-low { background: var(--red); color: #fff; }
.part-dots { display: flex; gap: 4px; margin: 0 0 18px; }
.part-dots i { flex: 1; height: 4px; border-radius: 2px; background: var(--bg-3); }
.part-dots i.done { background: color-mix(in srgb, #c9a66b 55%, transparent); }
.part-dots i.cur { background: #c9a66b; }
@media (max-width: 640px) {
  .part-head { padding: 14px 16px; gap: 10px; }
  .part-name { font-size: 1.35rem; }
  .part-count b { font-size: 1.7rem; }
  .part-r { width: 100%; justify-content: space-between; }
}

/* waiting-list promo in the account menu and on /tcf */
.acct-menu { min-width: 300px; }
.acct-menu .acct-promo { display: grid; gap: 4px; margin: 0 0 6px; padding: 14px; border-radius: 8px; background: linear-gradient(135deg, #16213d 0%, #24345f 100%); color: #efe9dc; border-top: 2px solid #c9a66b; text-decoration: none; white-space: normal; max-width: 300px; }
.acct-menu .acct-promo:hover { background: linear-gradient(135deg, #1c2a52 0%, #2b3d6e 100%); }
.acct-promo .wl-banner-k { font-size: .62rem; }
.acct-promo strong { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; color: #f7f2e8; }
.acct-promo .wl-b-text { font-size: .78rem; line-height: 1.45; color: #c9cedb; }
.acct-promo-cta { margin-top: 6px; font-size: .8rem; font-weight: 600; color: #d9bd8a; }
.tcf-promo { padding-top: 28px; }
.tcf-promo .wl-banner { margin: 0; }
@media (max-width: 640px) { .acct-menu { min-width: 0; width: calc(100vw - 28px); } .acct-menu .acct-promo { max-width: none; } }
.acct-promo.is-joined strong::before { content: "✓ "; color: #c9a66b; }
