/* ==========================================================================
   Relay — design system v2 (2026-08)
   Heritage: the Private Listing look. Dark-native, editorial, brass on
   forest. v2 keeps the tokens and adds: a real light theme, size-specific
   tracking, restrained motion, and the lesson-start components
   from the 2026-08-06 design decisions.
   ========================================================================== */

:root {
  --ink: #0d1512;
  --panel: #131e19;
  --panel-2: #182620;
  --raise: #1c2c25;
  --forest: #1e3d2f;
  --forest-2: #2a5442;
  --brass: #c6a35f;
  --brass-bright: #ddbc7e;
  --text: #e9e4d8;
  --muted: #8a8a7e;
  --faint: #63635a;
  --line: rgba(198, 163, 95, 0.18);
  --line-strong: rgba(198, 163, 95, 0.38);
  --danger: #c05a3f;
  --code-bg: #0a100d;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "SFMono-Regular", "SF Mono", Menlo, Consolas, ui-monospace, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-press: 120ms;
  --dur-hover: 150ms;
  --dur-reveal: 350ms;
  color-scheme: dark;
}

[data-theme="light"] {
  --ink: #f4efe6;
  --panel: #faf7f0;
  --panel-2: #f0ebdf;
  --raise: #e9e3d4;
  --forest: #dce8df;
  --forest-2: #c4d8c9;
  --brass: #8a6a24;
  --brass-bright: #6d5317;
  --text: #1d231e;
  --muted: #6b6a5e;
  --faint: #9a988c;
  --line: rgba(109, 83, 23, 0.22);
  --line-strong: rgba(109, 83, 23, 0.42);
  --danger: #a04026;
  --code-bg: #ece7d9;
  color-scheme: light;
}

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

html { background: var(--ink); }

body {
  min-width: 0;
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 200ms ease, color 200ms ease;
}

button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

a {
  color: inherit;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.2em;
}
a:hover { color: var(--brass-bright); }

img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }

button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

input:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

[hidden] { display: none !important; }

::selection { background: rgba(198, 163, 95, 0.28); color: var(--text); }
[data-theme="light"] ::selection { background: rgba(138, 106, 36, 0.22); }

.wrap { width: min(100% - 40px, 1160px); margin-inline: auto; }
.wrap-reading { width: min(100% - 40px, 880px); margin-inline: auto; }

/* ==========================================================================
   Header / footer
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink) 86%, transparent);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-decoration: none;
  text-transform: uppercase;
}
.brand:hover { color: var(--brass-bright); }
.brand img { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 9px; object-fit: cover; }

.header-nav { display: flex; align-items: center; gap: 24px; }
.header-nav a {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color var(--dur-hover) ease;
}
.header-nav a:hover { color: var(--brass-bright); }
.header-nav a.is-here { color: var(--brass); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color var(--dur-hover) ease, color var(--dur-hover) ease, transform var(--dur-press) var(--ease-out);
}
.theme-toggle:hover { border-color: var(--line-strong); color: var(--text); }
.theme-toggle:active { transform: scale(0.97); }

.site-main { padding-block: 56px 96px; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 84px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: var(--brass-bright); }

/* ==========================================================================
   Reviewer sign-in
   ========================================================================== */

.login-page { min-height: 100vh; }
.login-shell {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 32px 20px;
  background:
    radial-gradient(circle at 50% 12%, rgba(42, 84, 66, 0.34), transparent 42%),
    var(--ink);
}
.login-card {
  width: min(100%, 480px);
  padding: clamp(30px, 6vw, 48px);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  box-shadow: 0 34px 90px -48px rgba(0, 0, 0, 0.85);
}
.login-brand { margin-bottom: 52px; }
.login-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.35rem, 8vw, 3.45rem);
  font-weight: 340;
  letter-spacing: -0.025em;
  line-height: 1.02;
}
.login-copy { margin: 18px 0 0; color: var(--muted); line-height: 1.65; }
.login-form { display: grid; gap: 12px; margin-top: 34px; }
.login-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.login-input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--code-bg);
  color: var(--text);
  caret-color: var(--brass);
  transition: border-color var(--dur-hover) ease, box-shadow var(--dur-hover) ease;
}
.login-input:hover { border-color: var(--brass); }
.login-input:focus { border-color: var(--brass); box-shadow: 0 0 0 4px rgba(198, 163, 95, 0.1); }
.login-submit { justify-content: center; width: 100%; min-height: 50px; margin-top: 4px; text-align: center; }
.login-submit[disabled] { cursor: wait; opacity: 0.7; }
.login-error { margin: 4px 0 0; color: #e19a84; font-size: 0.86rem; }

@media (max-width: 520px) {
  .login-shell { align-items: start; padding-top: 22px; }
  .login-card { padding: 28px 22px 30px; border-radius: 14px; }
  .login-brand { margin-bottom: 42px; }
}

/* ==========================================================================
   Shared type
   ========================================================================== */

.kicker {
  margin: 0 0 16px;
  color: var(--brass);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1, h2, h3 { text-wrap: balance; }

.display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  letter-spacing: -0.022em;
  line-height: 1.05;
}

.page-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 360;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.lede { max-width: 600px; margin: 18px 0 0; color: var(--muted); font-size: 1.04rem; line-height: 1.6; }

.breadcrumb {
  margin: 0 0 20px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--brass-bright); }

/* ==========================================================================
   Statement home
   ========================================================================== */

.masthead { max-width: 880px; padding: 54px 0 40px; }

.standing {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 26px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}
.standing strong { color: var(--brass); font-weight: 700; font-variant-numeric: tabular-nums; }

/* Resume / start block */

.resume {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 0 0 54px;
  padding: 22px 26px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--panel);
}
.resume-label {
  margin: 0 0 5px;
  color: var(--brass);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.resume-title { margin: 0; font-family: var(--serif); font-size: 1.3rem; font-weight: 420; letter-spacing: -0.012em; }
.resume-detail { margin: 5px 0 0; color: var(--muted); font-size: 0.86rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--brass);
  border-radius: 9px;
  background: var(--brass);
  color: #14201a;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: normal;
  text-align: left;
  line-height: 1.45;
  transition: background var(--dur-hover) ease, transform var(--dur-press) var(--ease-out);
}
.btn:hover { background: var(--brass-bright); color: #14201a; }
.btn:active { transform: scale(0.98); }
.btn-quiet {
  background: transparent;
  color: var(--brass);
  border-color: var(--line-strong);
}
.btn-quiet:hover { background: transparent; border-color: var(--brass); color: var(--brass-bright); }

/* The proof plate */

.plate {
  display: block;
  margin: 0 0 64px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
}
.plate-head { padding: 24px 28px 0; }
.plate-title { margin: 0; font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 400; letter-spacing: -0.014em; }
.plate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 20px 28px 26px; }
.plate-item { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--code-bg); }
.plate-item img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top; filter: saturate(0.9); }
.plate-verdict { padding: 10px 13px; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--muted); }
.plate-item.is-paid .plate-verdict { color: var(--brass); }
@media (max-width: 760px) { .plate-grid { grid-template-columns: minmax(0, 1fr); } }

/* Statement sections */

.statement { border-top: 1px solid var(--line); }

.st-section { border-bottom: 1px solid var(--line); padding: 34px 0 12px; }

.st-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 6px;
}
.st-section-title {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -0.014em;
}
.st-num { color: var(--brass); font-family: var(--mono); font-size: 0.8em; font-weight: 700; letter-spacing: 0.04em; }
.st-result { max-width: 640px; margin: 4px 0 18px; color: var(--muted); font-size: 0.94rem; }
.st-count {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.st-count .done { color: var(--brass); }

/* Lesson rows — the line items */

.rows { list-style: none; margin: 0 0 22px; padding: 0; }

.row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 14px;
  padding: 11px 10px;
  margin: 0 -10px;
  border-radius: 9px;
  text-decoration: none;
  color: var(--text);
  transition: background var(--dur-hover) ease;
}
a.row:hover { background: var(--panel); color: var(--text); }

.row-num { color: var(--faint); font-family: var(--mono); font-size: 0.74rem; font-variant-numeric: tabular-nums; }

.row > .mark, .row > .row-num { grid-column: 1; }
.row > .row-main { grid-column: 2; }
.row > .row-meta { grid-column: 3; }
.row-main { min-width: 0; }
.row-title { display: block; font-size: 0.97rem; font-weight: 550; letter-spacing: -0.006em; line-height: 1.35; }
.row-sub { display: block; margin-top: 2px; color: var(--muted); font-size: 0.8rem; }

.row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  row-gap: 3px;
  gap: 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.type-chip {
  padding: 2.5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.type-chip.build { color: var(--brass); border-color: var(--line-strong); }

.mark { display: inline-grid; width: 19px; height: 19px; border: 1px solid var(--line-strong); border-radius: 50%; place-items: center; font-size: 10px; color: transparent; }
.mark.is-done { border-color: var(--brass); background: var(--brass); color: #14201a; }
.mark.is-progress { border-color: var(--brass); color: var(--brass); }

.row.is-pending { color: var(--faint); }
.row.is-pending .row-title { color: var(--faint); font-weight: 450; }

.avail-note {
  margin: 0 0 22px;
  padding: 13px 16px;
  border: 1px dashed var(--line);
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Start page and optional library */

.section-label {
  margin: 0 0 10px;
  color: var(--brass);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.start-page { padding-top: 32px; }
.start-hero { padding: 42px 0 38px; border-bottom: 1px solid var(--line); }
.start-hero .page-title { max-width: 760px; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.start-hero .lede { max-width: 720px; font-size: 1.08rem; }
.start-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.download-detail { margin: 12px 0 0; color: var(--faint); font-family: var(--mono); font-size: 0.7rem; line-height: 1.5; }
.start-result { margin: 38px 0 22px; padding: 24px 26px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--panel); }
.start-result p:last-child { margin: 0; font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 1.55rem); line-height: 1.45; }
.start-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 34px; }
.start-card { padding: 24px 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.start-steps, .plain-list { margin: 0; padding: 0; list-style: none; }
.start-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 0 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.start-steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.start-steps li > span { grid-row: 1 / 3; display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--brass); font-family: var(--mono); font-size: 0.68rem; }
.start-steps strong { font-size: 0.95rem; }
.start-steps p { margin: 3px 0 0; color: var(--muted); font-size: 0.86rem; line-height: 1.5; }
.plain-list li { position: relative; padding: 10px 0 10px 20px; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.plain-list li::before { position: absolute; left: 0; color: var(--brass); content: "✓"; }
.plain-list li:last-child { border-bottom: 0; }
.start-note { margin: 18px 0 0; color: var(--muted); font-size: 0.84rem; line-height: 1.55; }
.course-order { margin: 0 0 34px; border-top: 1px solid var(--line); }
.course-order > .section-label { padding-top: 26px; }
.course-order-row { display: grid; grid-template-columns: minmax(190px, 0.8fr) minmax(0, 1.4fr); gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.course-order-row span { color: var(--muted); line-height: 1.55; }
.course-order-row.is-optional strong { color: var(--muted); }
.next-action, .optional-section {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin: 34px 0 64px; padding: 24px 26px; border: 1px solid var(--line-strong);
  border-radius: 14px; background: var(--panel);
}
.next-action.compact { margin-top: 28px; }
.next-action h2, .optional-section h2 { margin: 0; font-family: var(--serif); font-size: 1.4rem; font-weight: 420; }
.next-action p:last-child, .optional-section p:last-child { max-width: 650px; margin: 7px 0 0; color: var(--muted); line-height: 1.55; }
.optional-section { margin-top: 46px; }

@media (max-width: 720px) {
  .start-grid { grid-template-columns: 1fr; }
  .course-order-row { grid-template-columns: 1fr; gap: 5px; }
  .next-action, .optional-section { align-items: flex-start; flex-direction: column; }
}

/* ==========================================================================
   Lesson page
   ========================================================================== */

.lesson-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 44px;
  align-items: start;
}
@media (max-width: 980px) { .lesson-grid { grid-template-columns: minmax(0, 1fr); } }

.lesson-head { margin-bottom: 26px; }
.lesson-intro { max-width: 680px; margin: 14px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.lesson-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}
.lesson-meta strong { color: var(--text); font-weight: 600; }

/* Lesson starting information */

.lesson-start {
  margin: 0 0 30px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--panel);
  overflow: hidden;
}
.lesson-start-head {
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--brass);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.lesson-start-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 18px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.lesson-start-row:last-child { border-bottom: 0; }
.lesson-start-label { color: var(--muted); font-family: var(--mono); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding-top: 2px; }
.lesson-start-body { min-width: 0; font-size: 0.93rem; line-height: 1.55; }
.lesson-start-body p { margin: 0; }
.lesson-start-files { list-style: none; margin: 0; padding: 0; }
.lesson-start-files li { margin: 5px 0; }
.lesson-start-files .fname { color: var(--brass-bright); font-family: var(--mono); font-size: 0.8rem; }
.lesson-start-files .frole { color: var(--muted); font-size: 0.84rem; }
@media (max-width: 640px) { .lesson-start-row { grid-template-columns: 1fr; gap: 6px; } }

/* Short student action list */

.lesson-steps { margin: 0 0 30px; }
.lesson-steps h2 { margin: 0 0 14px; font-family: var(--serif); font-size: 1.35rem; font-weight: 430; }
.lesson-steps ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.lesson-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; padding: 15px 2px; border-bottom: 1px solid var(--line); line-height: 1.55; }
.step-number { display: grid; width: 26px; height: 26px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--brass); font-family: var(--mono); font-size: 0.68rem; }

/* Video */

.video-frame { position: relative; aspect-ratio: 16/9; margin: 0 0 34px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #000; box-shadow: 0 24px 60px -30px rgba(0,0,0,0.8); }
.video-frame video, .video-frame iframe { width: 100%; height: 100%; border: 0; object-fit: contain; }

.video-empty {
  display: grid;
  place-items: center;
  aspect-ratio: 16/9;
  margin: 0 0 34px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  text-align: center;
}
.video-empty .ve-label { margin: 0 0 8px; color: var(--brass); font-family: var(--mono); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.video-empty .ve-note { max-width: 460px; margin: 0; color: var(--muted); font-size: 0.94rem; }

/* Lesson body (injected content fragments) */

.lesson-body { min-width: 0; margin-bottom: 40px; }
.lesson-body h1 { margin: 0 0 16px; font-family: var(--serif); font-size: 1.8rem; font-weight: 400; letter-spacing: -0.016em; line-height: 1.2; }
.lesson-body h2 { margin: 36px 0 12px; font-family: var(--serif); font-size: 1.3rem; font-weight: 450; letter-spacing: -0.01em; line-height: 1.3; }
.lesson-body h2::after { display: block; height: 1px; margin-top: 12px; background: var(--line); content: ""; }
.lesson-body h3 { margin: 24px 0 8px; font-size: 1rem; font-weight: 600; }
.lesson-body p { margin: 11px 0; }
.lesson-body ul, .lesson-body ol { margin: 11px 0 11px 24px; padding: 0; }
.lesson-body li { margin: 6px 0; }
.lesson-body li::marker { color: var(--brass); }
.lesson-body strong { font-weight: 650; }
.lesson-body a { color: var(--brass-bright); }
.lesson-body code { padding: 1px 5px; border-radius: 4px; background: var(--code-bg); font-family: var(--mono); font-size: 0.86em; }
.lesson-body pre { margin: 12px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--code-bg); overflow-x: auto; }
.lesson-body pre code { padding: 0; background: none; font-size: 13px; line-height: 1.55; }
.lesson-body img { border-radius: 10px; border: 1px solid var(--line); }
.lesson-body .brand, .lesson-body .kicker { display: none; }

.lesson-body .codewrap { position: relative; }
.lesson-body .copybtn {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color var(--dur-hover) ease, color var(--dur-hover) ease, transform var(--dur-press) var(--ease-out);
}
.lesson-body .copybtn:hover { border-color: var(--brass); color: var(--brass-bright); }
.lesson-body .copybtn:active { transform: scale(0.96); }

/* Checks */

.checks { margin: 0 0 30px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden; }
.checks-head { padding: 13px 20px; border-bottom: 1px solid var(--line); color: var(--brass); font-family: var(--mono); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.checks ol { list-style: none; margin: 0; padding: 8px; }
.check-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 9px; cursor: pointer; transition: background var(--dur-hover) ease; }
.check-item:hover { background: var(--panel-2); }
.check-box { flex: 0 0 auto; display: grid; width: 20px; height: 20px; margin-top: 2px; border: 1px solid var(--line-strong); border-radius: 6px; place-items: center; color: transparent; font-size: 11px; transition: background var(--dur-hover) var(--ease-out), border-color var(--dur-hover) ease, color var(--dur-hover) ease; }
.check-item.is-on .check-box { background: var(--brass); border-color: var(--brass); color: #14201a; }
.check-text { font-size: 0.92rem; line-height: 1.5; }
.check-item.is-on .check-text { color: var(--muted); }

/* Recovery */

.recovery { margin: 0 0 30px; }
.recovery-title { margin: 0 0 12px; font-family: var(--serif); font-size: 1.2rem; font-weight: 450; letter-spacing: -0.01em; }
.rec-item { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); margin-bottom: 9px; overflow: hidden; }
.rec-item summary { display: flex; align-items: center; gap: 10px; padding: 13px 16px; cursor: pointer; color: var(--text); font-size: 0.92rem; font-weight: 550; list-style: none; transition: background var(--dur-hover) ease; }
.rec-item summary::-webkit-details-marker { display: none; }
.rec-item summary::before { content: "+"; color: var(--brass); font-family: var(--mono); font-size: 0.85rem; transition: transform 200ms var(--ease-out); }
.rec-item[open] summary::before { transform: rotate(45deg); }
.rec-item summary:hover { background: var(--panel-2); }
.rec-body { padding: 2px 16px 15px 37px; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.rec-body code { padding: 1px 5px; border-radius: 4px; background: var(--code-bg); font-family: var(--mono); font-size: 0.86em; }

/* Use with a client */

.client-block { margin: 0 0 40px; padding: 24px 26px; border: 1px solid var(--line); border-left: 2px solid var(--brass); border-radius: 12px; background: var(--panel); }
.client-block h2 { margin: 0 0 10px; font-family: var(--serif); font-size: 1.15rem; font-weight: 450; letter-spacing: -0.01em; }
.client-block p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.62; }

/* Related field notes */

.related-notes { margin: 0 0 40px; }
.related-notes h2 { margin: 0 0 10px; font-family: var(--serif); font-size: 1.15rem; font-weight: 450; }
.related-notes a { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 9px 12px; margin: 0 -12px; border-radius: 8px; color: var(--text); font-size: 0.9rem; text-decoration: none; transition: background var(--dur-hover) ease; }
.related-notes a:hover { background: var(--panel); }
.related-notes .rn-time { color: var(--faint); font-family: var(--mono); font-size: 0.7rem; }

/* Completion */

.complete-block { margin: 46px 0 34px; padding: 24px 26px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--panel); }
.complete-note { margin: 0 0 14px; color: var(--muted); font-size: 0.88rem; }
.complete-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.complete-block.is-done { border-color: var(--brass); }
.complete-stamp { color: var(--brass); font-family: var(--mono); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }

/* Prev/next */

.prevnext { display: flex; justify-content: space-between; gap: 14px; padding-top: 26px; border-top: 1px solid var(--line); }
.prevnext a { max-width: 46%; color: var(--muted); font-size: 0.86rem; text-decoration: none; }
.prevnext a:hover { color: var(--brass-bright); }
.prevnext .pn-label { display: block; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.prevnext .pn-title { display: block; margin-top: 3px; color: var(--text); font-weight: 550; }
.prevnext .next { text-align: right; margin-left: auto; }

/* ==========================================================================
   Field Notes collection
   ========================================================================== */

.notes-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
@media (max-width: 980px) {
  .notes-layout { grid-template-columns: minmax(0, 1fr); }
  .notes-layout > div:first-child { grid-row: 2; }
  .note-player { grid-row: 1; position: static; }
}

.note-player { position: sticky; top: 86px; }
.note-player-title { margin: 14px 0 4px; font-family: var(--serif); font-size: 1.3rem; font-weight: 420; letter-spacing: -0.012em; }
.note-player-meta { color: var(--muted); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; }
.note-player-actions { display: flex; gap: 10px; margin-top: 16px; }
.note-player-actions .btn { white-space: normal; text-align: left; line-height: 1.4; max-width: 50%; }

.notes-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.notes-index a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  transition: background var(--dur-hover) ease;
}
.notes-index a:hover { background: var(--panel); }
.notes-index a.is-current { background: var(--panel); }
.notes-index a.is-current .ni-title { color: var(--brass-bright); }
.ni-num { color: var(--faint); font-family: var(--mono); font-size: 0.72rem; font-variant-numeric: tabular-nums; }
.ni-title { display: block; font-size: 0.92rem; font-weight: 550; letter-spacing: -0.005em; line-height: 1.35; }
.ni-src { display: block; margin-top: 2px; color: var(--faint); font-size: 0.76rem; }
.ni-time { color: var(--muted); font-family: var(--mono); font-size: 0.7rem; font-variant-numeric: tabular-nums; }

/* Field-note marks appear only once earned — empty circles read as noise */
.notes-index .mark:not(.is-done), .st-section .row .mark[data-note-mark]:not(.is-done) { display: none; }
.notes-index .mark.is-done { display: inline-grid; }

/* ==========================================================================
   Downloads / library
   ========================================================================== */

.dl-grid { display: grid; gap: 14px; margin-top: 30px; }
.dl-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.dl-card strong { font-size: 0.98rem; font-weight: 600; letter-spacing: -0.008em; }
.dl-card p { margin: 4px 0 0; color: var(--muted); font-size: 0.86rem; }
.dl-soon { color: var(--faint); font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }

/* ==========================================================================
   Exhibit: three-reports comparison
   ========================================================================== */

.compare-bar {
  display: inline-flex;
  max-width: 100%;
  gap: 2px;
  margin: 0 0 14px;
  overflow-x: auto;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--code-bg);
}
.compare-tab {
  flex: 0 0 auto;
  padding: 9px 18px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background var(--dur-hover) ease, color var(--dur-hover) ease, transform var(--dur-press) var(--ease-out);
  white-space: nowrap;
}
.compare-tab:hover { color: var(--text); }
.compare-tab:active { transform: scale(0.97); }
.compare-tab.is-active { background: var(--forest); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }

.compare-verdict { margin: 0 0 16px; color: var(--brass); font-family: var(--serif); font-size: 1.05rem; letter-spacing: -0.006em; transition: opacity 200ms ease; }
.compare-frame { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.compare-frame iframe { width: 100%; height: min(72vh, 780px); border: 0; background: #fff; }
.compare-open { margin: 14px 0 0; }
.compare-open a { color: var(--brass); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-decoration: none; text-transform: uppercase; }
.compare-open a:hover { color: var(--brass-bright); text-decoration: underline; text-underline-offset: 4px; }

/* ==========================================================================
   Reviewer mode
   ========================================================================== */

.review-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  padding: 10px 16px;
  border: 1px solid var(--brass);
  border-radius: 999px;
  background: var(--panel);
  color: var(--brass);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  transition: transform var(--dur-press) var(--ease-out);
}
.review-fab:active { transform: scale(0.97); }

.review-panel {
  position: fixed;
  right: 18px;
  bottom: 66px;
  z-index: 50;
  width: min(360px, calc(100vw - 36px));
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
}
.review-panel-title { margin: 0 0 10px; font-family: var(--serif); font-size: 1.05rem; }
.review-panel select,
.review-panel textarea {
  width: 100%;
  margin-bottom: 10px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--code-bg);
  color: var(--text);
  font-size: 0.88rem;
}
.review-panel-actions { display: flex; gap: 10px; }

/* ==========================================================================
   Motion
   ========================================================================== */

.has-js .reveal { opacity: 0; transform: translateY(8px); transition: opacity var(--dur-reveal) ease, transform var(--dur-reveal) var(--ease-out); }
.has-js .reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .has-js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media (max-width: 760px) {
  .site-main { padding-block: 36px 72px; }
  .header-inner { gap: 12px; }
  .header-nav { gap: 13px; }
  .header-nav a { font-size: 0.62rem; letter-spacing: 0.1em; }
  .header-nav a.nav-course { display: none; }
  .brand { font-size: 0.72rem; letter-spacing: 0.14em; }
  .brand img { width: 30px; height: 30px; }
  .theme-toggle { padding: 5px 9px; font-size: 0.6rem; }
  .row { grid-template-columns: 32px minmax(0, 1fr); }
  .row > .row-meta { grid-column: 2; }
  .note-player { position: static; }
  .resume { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 440px) {
  .brand span { display: none; }
  .brand { gap: 0; }
  .login-page .login-brand { gap: 11px; }
  .login-page .login-brand span { display: inline; }
  .header-nav { gap: 10px; }
  .header-nav a { white-space: nowrap; }
}

/* long file names never push the page sideways */
.lesson-start-body, .lesson-start-files .fname, .lesson-body code, .rec-body code {
  overflow-wrap: anywhere;
}
body { overflow-x: clip; }

/* folds — reference material collapsed by default on lesson pages */
.fold { border-top: 1px solid var(--line); margin: 0; }
.fold > summary {
  cursor: pointer; list-style: none; display: block;
  padding: 20px 2px; color: var(--muted);
  font-family: var(--mono); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  transition: color var(--dur-hover) ease;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: "+"; float: right; color: var(--brass); font-size: 0.9rem; letter-spacing: 0; }
.fold[open] > summary::after { content: "\2013"; }
.fold > summary:hover { color: var(--brass-bright); }
.fold-body { padding: 4px 0 8px; }
.fold-body > section { margin-bottom: 34px; }
.fold-body .lesson-body { margin-bottom: 34px; }
.fold-body .recovery-title,
.fold-body .client-block h2,
.fold-body .related-notes h2 { display: none; }
.fold-body .related-notes { margin-bottom: 34px; }

/* ---------- v3: single-column lesson + drawer + finish card ---------- */

.wrap-lesson { max-width: 960px; margin: 0 auto; }
.wrap-lesson .lesson-start,
.wrap-lesson .lesson-steps,
.wrap-lesson .ai-card,
.wrap-lesson .finish,
.wrap-lesson .fold-zone,
.wrap-lesson .prevnext { max-width: 760px; margin-left: auto; margin-right: auto; }
.wrap-lesson .prevnext { margin-top: 56px; }

/* sticky strip (under the 62px sticky header) */
.lesson-strip {
  position: sticky; top: 62px; z-index: 30; margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink) 85%, transparent);
  backdrop-filter: blur(10px);
}
.strip-inner { display: flex; align-items: center; gap: 18px; min-height: 46px; }
.strip-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: transparent;
  color: var(--text); cursor: pointer;
  font-family: var(--sans); font-size: 0.82rem; font-weight: 600;
  transition: border-color var(--dur-hover) ease, color var(--dur-hover) ease;
}
.strip-btn:hover { border-color: var(--brass); color: var(--brass-bright); }
.strip-pos { color: var(--muted); font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; }

/* course drawer */
.drawer {
  position: fixed; inset: 0 auto 0 0; margin: 0; padding: 0; border: 0;
  width: 360px; max-width: 100vw; height: 100dvh; max-height: none;
  background: transparent; overflow: visible;
}
.drawer::backdrop { background: rgba(4, 8, 6, 0.55); opacity: 0; transition: opacity 200ms ease; }
.drawer.is-open::backdrop { opacity: 1; }
.drawer-panel {
  width: 360px; max-width: calc(100vw - 24px); height: 100dvh;
  background: var(--panel); border-right: 1px solid var(--line-strong);
  transform: translateX(-102%);
  transition: transform 280ms cubic-bezier(0.32, 0.72, 0, 1);
  display: flex; flex-direction: column;
}
.drawer.is-open .drawer-panel { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass);
}
.drawer-body { overflow-y: auto; padding: 6px 12px 48px; }
.drawer-sec { opacity: 0; transform: translateX(-8px); transition: opacity 220ms ease, transform 220ms ease; }
.drawer.is-open .drawer-sec { opacity: 1; transform: none; }
.drawer.is-open .drawer-sec:nth-child(1) { transition-delay: 30ms; }
.drawer.is-open .drawer-sec:nth-child(2) { transition-delay: 60ms; }
.drawer.is-open .drawer-sec:nth-child(3) { transition-delay: 90ms; }
.drawer.is-open .drawer-sec:nth-child(4) { transition-delay: 120ms; }
.drawer.is-open .drawer-sec:nth-child(5) { transition-delay: 150ms; }
.drawer.is-open .drawer-sec:nth-child(6) { transition-delay: 180ms; }
.drawer-sec-title {
  display: flex; gap: 10px; margin: 20px 8px 6px;
  color: var(--muted); font-family: var(--mono); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.drawer-sec-title .st-num { color: var(--brass); }
.drawer-sec ol { list-style: none; margin: 0; padding: 0; }
.drawer-sec li a {
  display: flex; align-items: baseline; gap: 10px; padding: 8px 10px;
  border-radius: 8px; color: var(--text); font-size: 0.9rem; text-decoration: none;
  transition: background var(--dur-hover) ease;
}
.drawer-sec li a:hover { background: var(--panel-2); }
.drawer-sec li a.is-current { background: var(--panel-2); color: var(--brass-bright); }
.drawer-sec .r-num { color: var(--faint); font-family: var(--mono); font-size: 0.68rem; }
.drawer-sec .dr-title { min-width: 0; }
.drawer-soon { margin: 4px 8px; color: var(--faint); font-size: 0.82rem; }
@media (prefers-reduced-motion: reduce) {
  .drawer-panel { transition: none; transform: none; }
  .drawer-sec { opacity: 1; transform: none; transition: none; }
}

/* buttons: Inter, sentence case (mono stays for metadata) */
.btn { font-family: var(--sans); font-size: 0.86rem; font-weight: 600; letter-spacing: 0; text-transform: none; padding: 11px 18px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn-text {
  background: none; border: 0; padding: 6px 4px; cursor: pointer;
  color: var(--muted); font-family: var(--sans); font-size: 0.82rem;
  text-decoration: underline; text-underline-offset: 3px;
}
.btn-text:hover { color: var(--brass-bright); }

/* copy-for-AI card */
.ai-card {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin: 0 0 30px; padding: 18px 22px;
  border: 1px solid var(--line); border-left: 2px solid var(--brass);
  border-radius: 12px; background: var(--panel);
}
.ai-card .btn { flex-shrink: 0; }
.ai-title { margin: 0 0 4px; font-family: var(--serif); font-size: 1.05rem; font-weight: 450; letter-spacing: -0.008em; }
.ai-note { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.5; }
@media (max-width: 640px) { .ai-card { flex-direction: column; align-items: flex-start; } }

/* finish card */
.finish {
  margin: 0 0 30px; border: 1px solid var(--line-strong); border-radius: 14px;
  background: var(--panel); overflow: hidden;
  transition: border-color 250ms ease;
}
.finish.is-done { border-color: var(--brass); }
.finish-head {
  padding: 13px 20px; border-bottom: 1px solid var(--line); color: var(--brass);
  font-family: var(--mono); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
}
.finish-checks { list-style: none; margin: 0; padding: 8px; }
.finish-note { margin: 6px 20px 0; color: var(--faint); font-size: 0.84rem; line-height: 1.5; }
.finish-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 20px 18px; }
.finish-count { margin-right: auto; color: var(--muted); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; }
.finish-next {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin: 0 20px; padding: 0 20px; max-height: 0; opacity: 0;
  border: 0 solid var(--line-strong); border-radius: 12px; background: var(--panel-2);
  overflow: hidden;
  transition: max-height 280ms ease-out, opacity 220ms ease, padding 280ms ease-out, margin 280ms ease-out;
}
.finish-next.is-open { max-height: 220px; opacity: 1; padding: 18px 20px; margin: 0 20px 20px; border-width: 1px; }
.fn-eyebrow { margin: 0 0 6px; color: var(--brass); font-family: var(--mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.fn-title { margin: 0 0 4px; font-family: var(--serif); font-size: 1.2rem; font-weight: 450; letter-spacing: -0.01em; }
.fn-meta { margin: 0; color: var(--muted); font-family: var(--mono); font-size: 0.7rem; }
@media (max-width: 640px) { .finish-next { flex-direction: column; align-items: flex-start; } }
.checkdraw { width: 14px; height: 14px; }
.checkdraw path {
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 17; stroke-dashoffset: 17;
  animation: draw-check 300ms cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
@keyframes draw-check { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .checkdraw path { animation: none; stroke-dashoffset: 0; } }

/* fold rhythm: one divider system, deliberate rows */
.fold-zone { margin-top: 64px; }
.fold > summary { padding: 22px 0; font-size: 0.78rem; letter-spacing: 0.16em; }
.fold > summary::after { float: none; display: inline-block; margin-left: 12px; font-size: 0.85rem; }
.fold-body { padding: 12px 0 36px; }
.rec-item { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; margin-bottom: 0; }
.rec-item summary { padding: 16px 0; }
.rec-item summary:hover { background: none; color: var(--brass-bright); }
.rec-body { padding: 2px 0 18px 22px; }

/* downloads */
.dl-note { margin-top: 26px; color: var(--muted); font-size: 0.88rem; line-height: 1.55; }
.fname-link { text-decoration: underline; text-underline-offset: 3px; }
.fname-link:hover { color: var(--brass-bright); }

/* client work page: tighter head, bigger player */
@media (min-width: 981px) { .notes-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); } }
.preview-tag { color: var(--faint); }

/* drawer marks: quiet dots, invisible until there's something to show */
.drawer .mark { width: 7px; height: 7px; border: 0; font-size: 0; background: transparent; box-shadow: none; }
.drawer .mark:not(.is-done):not(.is-progress) { visibility: hidden; }
.drawer .mark.is-progress { box-shadow: inset 0 0 0 1.5px var(--brass); }
.drawer .mark.is-done { background: var(--brass); }

/* lesson resources */
.resources { margin: 0 0 30px; }
.resources-head {
  padding-bottom: 10px; color: var(--brass);
  font-family: var(--mono); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
}
.res-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.res-link {
  display: flex; flex-direction: column; gap: 6px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel);
  color: var(--text); text-decoration: none;
  transition: border-color var(--dur-hover) ease, transform var(--dur-press) var(--ease-out);
}
.res-link:hover { border-color: var(--brass); }
.res-link:active { transform: scale(0.98); }
.res-title { font-size: 0.92rem; font-weight: 600; }
.res-kind { color: var(--muted); font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; }

.row-soon { color: var(--faint); font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; }
.video-note { margin: -18px 0 30px; }
.note-player-meta a { color: var(--brass-bright); text-decoration: underline; text-underline-offset: 3px; }
