/* =============================================================
   The English Kit — stylesheet
   Colour + type tokens live in :root. Search "English Kit" and
   "englishkit" (email/domain) to update brand strings site-wide.
   ============================================================= */

:root {
  /* Palette — green & white, clean and professional */
  --ink: #16261f;            /* deep green-black: body text + dark sections */
  --ink-soft: #46564e;
  --paper: #ffffff;
  --paper-alt: #eef4f0;      /* pale green tint for alternate sections */
  --mint: #e3f4e7;           /* brighter green tint: pricing frame background */
  --card: #ffffff;
  --accent: #1f7a4d;         /* primary green */
  --accent-deep: #17603c;
  --gold: #5f8a72;           /* muted sage: secondary accent / tags */
  --line: #dde7e1;
  --line-strong: #c2d3ca;
  --ok: #1f7a4d;
  --ok-soft: rgba(31, 122, 77, 0.12);

  /* Bento hero — extra greens + butter cream */
  --forest: #0e1f16;         /* deepest tile: marker demo, thesis, stat ribbon */
  --leaf: #2f9e63;           /* bright highlight: marker mark, focus ring, glosses */
  --cream: #f7f2e4;          /* butter tile surface */
  --cream-deep: #ece0c4;     /* cream tile border / second cream step */

  /* Type */
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Layout */
  --wrap: 1160px;
  --radius: 14px;
  --shadow: 0 18px 40px -20px rgba(27, 35, 48, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.02rem;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-deep); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 550;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

/* ---------- Utilities ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3.25rem, 7vw, 5.5rem) 0; }
.section--tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.section--alt { background: var(--paper-alt); }
.section--ink { background: var(--ink); color: #e9edf5; }
.section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.9rem;
  display: block;
}
.section--ink .eyebrow { color: var(--gold); }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.section--ink .lede { color: #c3ccdb; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.muted { color: var(--ink-soft); font-size: 0.9rem; }
.placeholder-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: rgba(95, 138, 114, 0.1);
  border: 1px dashed var(--gold);
  border-radius: 8px;
  padding: 0.5rem 0.8rem;
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  font-family: var(--font-body);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.btn--sm { padding: 0.6rem 1.05rem; font-size: 0.9rem; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.section--ink .btn--ghost { color: #fff; }
.section--ink .btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.8rem 0;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-head);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand img { width: 30px; height: 30px; flex: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links > li { position: relative; }
.nav-links > li > a,
.nav-links .menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  font-family: var(--font-body);
  padding: 0.5rem 0.7rem;
  background: none;
  border: 0;
  cursor: pointer;
  border-radius: 8px;
}
.nav-links > li > a:hover,
.nav-links .menu-btn:hover,
.nav-links > li > a[aria-current="page"] { color: var(--ink); background: rgba(27, 35, 48, 0.05); }
.nav-links .chev { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 0.15s ease; }
.has-menu:hover .chev,
.has-menu:focus-within .chev,
.has-menu.open .chev { transform: rotate(180deg); }

.submenu {
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 230px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: none;
}
.has-menu:hover .submenu,
.has-menu:focus-within .submenu,
.has-menu.open .submenu { display: block; }
.submenu a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.submenu a:hover,
.submenu a[aria-current="page"] { background: var(--paper-alt); color: var(--ink); }

.nav-cta { display: flex; align-items: center; gap: 0.6rem; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.4rem;
  order: 3;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before { content: ""; position: absolute; top: -7px; }
.nav-toggle span::after { content: ""; position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
.nav-cta__mobile { display: none; }

@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .nav-cta > .btn { display: none; }
  .nav-links {
    position: absolute;
    inset: calc(100% + 1px) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1.5rem;
    box-shadow: var(--shadow);
    display: none;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a,
  .nav-links .menu-btn { padding: 0.85rem 0.25rem; width: 100%; justify-content: space-between; border-radius: 0; border-bottom: 1px solid var(--line); }
  .submenu {
    position: static;
    display: none;
    box-shadow: none;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    padding: 0 0 0.5rem 0.75rem;
    min-width: 0;
  }
  .has-menu.open .submenu { display: block; }
  .has-menu:hover .submenu, .has-menu:focus-within .submenu { display: none; }
  .has-menu.open .submenu { display: block; }
  .nav-cta__mobile { display: flex; flex-direction: column; gap: 0.6rem; padding-top: 1rem; }
  .nav-cta__mobile .btn { width: 100%; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(2.75rem, 6vw, 5rem) 0 clamp(2.75rem, 6vw, 4.5rem); overflow: hidden; }
.hero::after {
  content: "";
  position: absolute;
  right: -12%;
  top: -20%;
  width: 46%;
  aspect-ratio: 1;
  background: radial-gradient(circle at 30% 30%, rgba(95, 138, 114, 0.22), transparent 62%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.75rem; }
.hero-note { margin-top: 1.1rem; font-size: 0.9rem; color: var(--ink-soft); }
.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--paper-alt);
  aspect-ratio: 4 / 5;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.announce {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}
.announce .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 420px; order: -1; }
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat .num { font-family: var(--font-head); font-size: clamp(1.1rem, 2.4vw, 1.5rem); color: var(--accent); display: block; margin-bottom: 0.15rem; }
.stat .label { font-size: 0.82rem; color: var(--ink-soft); text-wrap: balance; }
.section--ink .stat .num { color: var(--gold); }
@media (min-width: 721px) { .stat .label { white-space: nowrap; } }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; } }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.card h3 { margin-bottom: 0.2rem; }
.card .icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--paper-alt);
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.card .icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.card--link { text-decoration: none; color: inherit; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .more { margin-top: auto; font-weight: 600; color: var(--accent-deep); font-size: 0.92rem; }

.tag {
  align-self: flex-start;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--gold);
  background: rgba(95, 138, 114, 0.12);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}
.tag--soon { color: var(--ink-soft); background: rgba(27,35,48,0.08); }
.tag--free { color: var(--ok); background: var(--ok-soft); }
.tag--new { color: var(--accent-deep); background: rgba(177, 72, 42, 0.12); }

/* ---------- Testimonials ---------- */
.quote {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.quote blockquote { margin: 0; font-family: var(--font-head); font-size: 1.1rem; line-height: 1.5; }
.quote .who { display: flex; align-items: center; gap: 0.8rem; margin-top: auto; }
.quote .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper-alt);
  display: grid; place-items: center;
  font-family: var(--font-head);
  color: var(--accent);
  flex: none;
}
.quote .who strong { display: block; font-size: 0.95rem; }
.quote .who span { font-size: 0.85rem; color: var(--ink-soft); }
.quote .score {
  align-self: flex-start;
  font-size: 0.8rem; font-weight: 700;
  color: var(--ok);
  background: var(--ok-soft);
  padding: 0.25rem 0.7rem; border-radius: 999px;
}

/* Photo testimonials: headshot with a transparent caption, full quote on hover/focus */
.quote--photo {
  position: relative;
  padding: 0;
  overflow: hidden;
  min-height: 360px;
  justify-content: flex-end;
  gap: 0;
}
.quote--photo:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.quote__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.quote__caption {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 3rem 1.5rem 1.35rem;
  color: #fff;
  background: linear-gradient(to top, rgba(11,18,15,0.88), rgba(11,18,15,0.55) 55%, rgba(11,18,15,0));
  transition: opacity 0.3s ease;
}
.quote__caption .score { margin-bottom: 0.25rem; }
.quote__caption strong { font-family: var(--font-head); font-size: 1.05rem; }
.quote__caption .place { font-size: 0.85rem; opacity: 0.85; }
.quote__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 1.75rem;
  background: rgba(11,18,15,0.93);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.quote__overlay blockquote {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.05rem;
  line-height: 1.55;
}
.quote--photo:hover .quote__overlay,
.quote--photo:focus .quote__overlay,
.quote--photo:focus-within .quote__overlay {
  opacity: 1;
}
.quote--photo:hover .quote__caption,
.quote--photo:focus .quote__caption,
.quote--photo:focus-within .quote__caption {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .quote__overlay, .quote__caption { transition: none; }
}

/* ---------- Logos strip ---------- */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.25rem 2.5rem; }
.logos span { font-family: var(--font-head); color: var(--ink-soft); font-size: 1rem; opacity: 0.8; white-space: nowrap; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .lede { margin-inline: auto; font-style: italic; }
.cta-band .btn { margin-top: 1.5rem; }

/* ---------- Team ---------- */
.person { text-align: center; }
.person .portrait {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--paper-alt);
  margin-bottom: 0.9rem;
}
.person h3 { margin-bottom: 0.1rem; }
.person .role { font-size: 0.88rem; color: var(--accent); font-weight: 600; }
.person p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Founder / tutor bio ---------- */
.bio {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.bio__photo {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper-alt);
  aspect-ratio: 1;
  object-fit: cover;
  position: sticky;
  top: 90px;
}
.bio__credentials {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.bio__credentials li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.bio__credentials li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.bio__body p { color: var(--ink-soft); }
.bio__body p:first-of-type { color: var(--ink); font-size: 1.08rem; }
@media (max-width: 720px) {
  .bio { grid-template-columns: 1fr; }
  .bio__photo { max-width: 260px; position: static; }
}

/* ---------- Tutor list (Meet Our Tutors) ---------- */
.tutor-list .bio + .bio {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}
.bio__story { margin-top: 1.25rem; }
.bio__story__body > p,
.bio__body .bio__story__body > p:first-of-type { color: var(--ink-soft); font-size: 1rem; }
.bio__story__body > p:first-child { margin-top: 0; }
.bio__story.is-clamp .bio__story__body {
  position: relative;
  max-height: 11rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
}
.bio__story.is-open .bio__story__body {
  max-height: none;
  -webkit-mask-image: none;
          mask-image: none;
}
.bio__story__toggle {
  margin-top: 0.85rem;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.bio__story__toggle::after { content: "+"; font-size: 1.2rem; line-height: 1; }
.bio__story.is-open .bio__story__toggle::after { content: "\2013"; }

/* ---------- Touchpoint explorer (Meet Our Tutors) ---------- */
.tp-explorer { margin-top: 2.5rem; }
.tp-stage {
  min-height: 210px;
  display: grid;
  place-items: center;
  padding: 1rem 0 0.25rem;
}
.tp-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
}
.tp-panel[hidden] { display: none; }
.tp-panel:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; border-radius: 6px; }
.tp-panel .connection { margin-top: 0; }
.tp-cap {
  margin: 0;
  max-width: 36ch;
  text-align: center;
  font-weight: 600;
  font-size: 0.98rem;
  color: #fff;
}
.tp-art {
  width: 100%;
  max-width: 320px;
  height: auto;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tp-art .ink { stroke: #e9edf5; }
.tp-art .fill { fill: var(--gold); stroke: none; }
.tp-art .dim { stroke: rgba(255, 255, 255, 0.28); }
.tp-art .pulse { animation: tp-pulse 2.4s ease-in-out infinite; transform-origin: center; }

.connection {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(1rem, 5vw, 2.5rem);
  margin: 0 auto;
  max-width: 620px;
  width: 100%;
}
.connection__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.connection__avatar {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--gold);
}
.connection__avatar svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.connection__label { font-weight: 600; font-size: 0.95rem; color: #fff; }
.connection__link {
  position: relative;
  flex: 1;
  min-width: 120px;
  margin-top: 35px;
  height: 2px;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.28) 0 8px, transparent 8px 16px);
  background-size: 16px 2px;
}
.connection__dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(95, 138, 114, 0.25);
  animation: connection-travel 3.4s ease-in-out infinite;
}
.connection__badge {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--gold);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}
@keyframes connection-travel {
  0%, 100% { left: 2%; }
  50% { left: calc(98% - 8px); }
}
@keyframes tp-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}
.touchpoints {
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.6rem;
}
.touchpoints__tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  padding: 1rem 0.4rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.86rem;
  line-height: 1.3;
  color: #c3ccdb;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.touchpoints__tile:hover { color: #fff; }
.touchpoints__tile:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.touchpoints__tile.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
}
.touchpoints__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--gold);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.touchpoints__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.touchpoints__tile.is-active .touchpoints__icon {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
@media (max-width: 760px) {
  .touchpoints { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .connection { flex-direction: column; align-items: center; gap: 1.25rem; }
  .connection__link {
    width: 2px;
    height: 46px;
    min-width: 0;
    flex: none;
    margin-top: 0;
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.28) 0 8px, transparent 8px 16px);
    background-size: 2px 16px;
  }
  .connection__badge {
    left: calc(100% + 12px);
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
  }
  .connection__dot { animation: none; top: 0; left: 50%; margin: -4px 0 0 -4px; }
}
@media (max-width: 460px) {
  .touchpoints { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .connection__dot { animation: none; left: 50%; }
  .tp-art .pulse { animation: none; opacity: 1; }
}

/* ---------- Pricing ---------- */
.price-card { position: relative; }
.price-card.featured { border-color: var(--accent); box-shadow: var(--shadow); }
.price-card .badge {
  position: absolute; top: -0.8rem; right: 1.25rem;
  background: var(--accent); color: #fff;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: 999px;
}
.price-card .price { font-family: var(--font-head); font-size: 2rem; color: var(--ink); line-height: 1.1; }
.price-card .price small { font-size: 0.9rem; color: var(--ink-soft); font-family: var(--font-body); font-weight: 400; }
.price-card .price-sub { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.25rem; }
.price-card ul { list-style: none; margin: 1rem 0 1.5rem; padding: 0; display: grid; gap: 0.55rem; }
.price-card li { padding-left: 1.6rem; position: relative; font-size: 0.94rem; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.price-card .btn { margin-top: auto; }
.price-includes { font-size: 0.92rem; color: var(--ink-soft); }
.price-includes strong { color: var(--ink); }

/* Pricing frame — tinted panel wrapping a tier grid, e.g. tutoring.html */
.pricing-frame {
  background: var(--mint);
  border-radius: 28px;
  padding: clamp(1.75rem, 4vw, 3rem);
}
.pricing-frame__head {
  margin-bottom: 2.25rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(22, 38, 31, 0.12);
}
.pricing-frame__head h2 { margin-bottom: 0.5rem; }
.pricing-frame__head .lede { margin: 0; }
.pricing-frame .grid { margin-top: 0; }
.pricing-frame .price-card { background: var(--card); }
.pricing-frame .price {
  display: flex;
  align-items: flex-end;
  gap: 0.3rem;
  margin: 0.75rem 0 0.35rem;
}
.pricing-frame .price .price__currency {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--ink);
  align-self: flex-start;
  margin-top: 0.4rem;
}
.pricing-frame .price .price__amount {
  font-family: var(--font-head);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--ink);
}
.pricing-frame .price .price__period {
  font-family: var(--font-body);
  font-size: 0.78rem;
  line-height: 1.15;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.pricing-frame .price-card li { padding-left: 1.9rem; }
.pricing-frame .price-card li::before {
  content: "\2713";
  width: 20px;
  height: 20px;
  left: 0;
  top: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ok-soft);
  border-radius: 50%;
  font-size: 0.66rem;
  font-weight: 800;
}
.pricing-frame .ribbon {
  position: absolute;
  top: -0.9rem;
  left: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
}
.pricing-frame .ribbon svg { width: 12px; height: 12px; fill: var(--gold); flex: none; }
@media (max-width: 640px) {
  .pricing-frame { padding: 1.5rem; border-radius: 20px; }
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 3.5rem; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent); color: #fff;
  font-family: var(--font-head); font-size: 1.1rem;
}

/* ---------- FAQ ---------- */
.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  background: var(--card);
  margin-bottom: 0.75rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-head);
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { margin-bottom: 0.75rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; }
input, select, textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
textarea { min-height: 140px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); }
.form-status { margin-top: 1rem; font-weight: 600; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--accent-deep); }
.contact-split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .contact-split { grid-template-columns: 1fr; } }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.info-list li { display: flex; gap: 0.75rem; }
.info-list svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 0.2rem; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ---------- Auth card ---------- */
.auth-wrap { display: grid; place-items: center; padding: clamp(3rem, 8vw, 6rem) 0; }
.auth-card {
  width: min(100% - 2.5rem, 440px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 1.6rem; }
.auth-card .field { margin-bottom: 1rem; }
.auth-card .btn { width: 100%; justify-content: center; margin-top: 0.5rem; }
.auth-tabs { display: flex; gap: 0.25rem; background: var(--paper-alt); border-radius: 10px; padding: 0.25rem; margin-bottom: 1.5rem; }
.auth-tabs button {
  flex: 1; border: 0; background: none; padding: 0.6rem; border-radius: 8px;
  font: inherit; font-weight: 600; cursor: pointer; color: var(--ink-soft);
}
.auth-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.auth-alt { text-align: center; font-size: 0.9rem; margin-top: 1.25rem; }
.auth-card .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 460px) { .auth-card .field-row { grid-template-columns: 1fr; } }
.auth-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.35rem; }
.auth-key { font-family: ui-monospace, Menlo, monospace; letter-spacing: 1px; text-transform: uppercase; }

/* ---------- Hub: session banner ---------- */
.hub-banner {
  border: 1px solid var(--line); border-left-width: 4px; border-radius: 10px;
  padding: 0.9rem 1.1rem; margin-bottom: 1.25rem; font-size: 0.95rem; line-height: 1.5;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem;
}
.hub-banner--warn { border-left-color: var(--gold); background: #fff9ec; }
.hub-banner--info { border-left-color: var(--accent); background: var(--paper-alt); }
.hub-banner .btn { margin-left: auto; }

/* ---------- Join the Student Hub ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.plan-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 0.4rem; align-content: start; }
.plan-card h3 { font-size: 1.15rem; }
.plan-card .price { font-weight: 600; color: var(--ink); }
.plan-card .btn { margin-top: 0.75rem; width: 100%; justify-content: center; }
.plan-card ul { margin: 0.5rem 0 0; padding-left: 1.1rem; font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- Hub (placeholder dashboard) ---------- */
.hub-shell { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: start; }
@media (max-width: 820px) { .hub-shell { grid-template-columns: 1fr; } }
.hub-shell > nav { position: sticky; top: 1.5rem; }
@media (max-width: 820px) { .hub-shell > nav { position: static; } }
.hub-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; align-content: start; }
.hub-nav a { display: block; padding: 0.6rem 0.9rem; border-radius: 8px; text-decoration: none; color: var(--ink-soft); font-weight: 500; }
.hub-nav a[aria-current], .hub-nav a:hover { background: var(--paper-alt); color: var(--ink); }
.hub-main { display: grid; gap: 1.5rem; align-content: start; }
.hub-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
a.metric { text-decoration: none; color: inherit; transition: border-color 0.15s ease; }
a.metric:hover, a.metric:focus-visible { border-color: var(--accent); }
.account-list { margin: 1.25rem 0 0; display: grid; gap: 0.75rem; }
.account-list > div { display: grid; grid-template-columns: 130px 1fr; gap: 0.5rem; font-size: 0.95rem; }
.account-list dt { color: var(--ink-soft); }
.account-list dd { margin: 0; }
@media (max-width: 520px) { .account-list > div { grid-template-columns: 1fr; gap: 0.15rem; } }
.locked { text-align: center; padding: 3rem 1rem; }
.locked svg { width: 40px; height: 40px; color: var(--gold); margin-bottom: 1rem; fill: none; stroke: currentColor; stroke-width: 1.6; }
.locked p { max-width: 48ch; margin-inline: auto; }
.locked p + p { margin-top: 0.75rem; }

/* ---------- Hub — Messages ---------- */
.msgs { display: grid; gap: 0.9rem; }
.msgs-toggle { display: inline-flex; gap: 4px; padding: 4px; background: var(--paper-alt); border-radius: 999px; }
.msgs-toggle button {
  font: inherit; font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  border: 0; background: transparent; color: var(--ink-soft);
  padding: 0.5rem 1.05rem; border-radius: 999px; cursor: pointer;
}
.msgs-toggle button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.msgs-toggle button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.msgs-stage { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.msgs-stage__body { display: grid; grid-template-columns: 240px 1fr; }
.msgs-stage[data-role="student"] .msgs-stage__body { grid-template-columns: 1fr; }
@media (max-width: 720px) { .msgs-stage__body, .msgs-stage[data-role="student"] .msgs-stage__body { grid-template-columns: 1fr; } }

.msgs-inbox { border-right: 1px solid var(--line); background: var(--paper-alt); display: flex; flex-direction: column; min-width: 0; }
.msgs-stage[data-role="student"] .msgs-inbox { display: none; }
@media (max-width: 720px) { .msgs-inbox { border-right: 0; border-bottom: 1px solid var(--line); } }
.msgs-inbox__summary { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.02em; color: var(--ink-soft); padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); }
.msgs-inbox__item {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  padding: 0.75rem 1rem; cursor: pointer; overflow: hidden;
  border-bottom: 1px solid var(--line); border-left: 3px solid transparent;
  font: inherit; color: var(--ink);
}
.msgs-inbox__item:hover { background: #fff; }
.msgs-inbox__item[aria-current="true"] { background: #fff; border-left-color: var(--accent); }
.msgs-inbox__item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.msgs-inbox__name { font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 6px; }
.msgs-inbox__snip { display: block; font-size: 0.8rem; color: var(--ink-soft); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msgs-inbox__wait { display: inline-block; margin-top: 6px; font-family: var(--font-mono); font-size: 0.68rem; color: #8a5a0c; background: rgba(138, 90, 12, 0.1); padding: 2px 6px; border-radius: 5px; }
.msgs-inbox__done { display: flex; align-items: center; gap: 4px; margin-top: 6px; font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-soft); }
.msgs-dot { width: 7px; height: 7px; border-radius: 50%; background: #b8791f; flex: none; }

.msgs-convo { display: flex; flex-direction: column; min-width: 0; }
.msgs-convo__head { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--line); }
.msgs-avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; background: var(--gold); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-size: 0.95rem; }
.msgs-convo__head h3 { margin: 0; font-family: var(--font-body); font-weight: 600; font-size: 0.98rem; }
.msgs-convo__head p { margin: 1px 0 0; font-size: 0.78rem; color: var(--ink-soft); }

.msgs-thread {
  flex: 1; overflow-y: auto; padding: 1.4rem 1.2rem;
  display: flex; flex-direction: column; gap: 0.85rem;
  max-height: 26rem; transition: opacity 0.16s ease;
}
.msgs-thread.is-swapping { opacity: 0; }
@media (max-width: 720px) { .msgs-thread { max-height: none; } }
.msgs-sep { align-self: center; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.msgs-msg { display: flex; flex-direction: column; gap: 4px; max-width: 82%; align-self: flex-start; align-items: flex-start; }
.msgs-msg.is-out { align-self: flex-end; align-items: flex-end; }
.msgs-msg__link { display: inline-flex; align-items: center; gap: 5px; font-size: 0.74rem; font-weight: 600; color: var(--gold); }
.msgs-msg__link svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.msgs-bubble { background: var(--paper-alt); color: var(--ink); padding: 0.6rem 0.85rem; border-radius: 14px; border-bottom-left-radius: 4px; font-size: 0.95rem; line-height: 1.5; }
.msgs-msg.is-out .msgs-bubble { background: var(--accent); color: #fff; border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; }
.msgs-attach { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 0.8rem; color: var(--ink); }
.msgs-msg.is-out .msgs-attach { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.msgs-attach svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; }
.msgs-attach__size { color: var(--ink-soft); font-family: var(--font-mono); font-size: 0.72rem; }
.msgs-msg.is-out .msgs-attach__size { color: inherit; opacity: 0.8; }
.msgs-meta { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-soft); padding: 0 2px; }
.msgs-note { font-family: var(--font-mono); font-size: 0.68rem; color: var(--gold); padding: 0 2px; }

.msgs-composer { border-top: 1px solid var(--line); padding: 0.85rem 1rem; display: flex; flex-direction: column; gap: 0.6rem; background: #fff; }
.msgs-composer__qr { display: flex; gap: 6px; flex-wrap: wrap; }
.msgs-stage[data-role="student"] .msgs-composer__qr { display: none; }
.msgs-qr { font: inherit; font-family: var(--font-body); font-size: 0.78rem; color: var(--ink-soft); border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.msgs-qr:hover { border-color: var(--gold); color: var(--ink); }
.msgs-composer__row { display: flex; gap: 8px; align-items: flex-end; }
.msgs-composer textarea {
  flex: 1; resize: none; border: 1px solid var(--line); border-radius: 10px;
  padding: 0.55rem 0.7rem; font: inherit; font-family: var(--font-body);
  font-size: 0.9rem; line-height: 1.45; background: var(--paper); color: var(--ink);
}
.msgs-iconbtn { border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft); width: 36px; height: 36px; border-radius: 9px; cursor: pointer; flex: none; display: grid; place-items: center; }
.msgs-iconbtn:hover { color: var(--ink); border-color: var(--gold); }
.msgs-iconbtn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.msgs-send { border: 0; background: var(--accent); color: #fff; font: inherit; font-family: var(--font-body); font-weight: 600; font-size: 0.85rem; padding: 0 1rem; height: 36px; border-radius: 9px; cursor: pointer; flex: none; }
.msgs-qr:focus-visible, .msgs-iconbtn:focus-visible, .msgs-send:focus-visible, .msgs-composer textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.msgs-composer__note { font-size: 0.75rem; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; margin: 0; }
.msgs-composer__note svg { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; color: var(--gold); }
.msgs-composer__note input { accent-color: var(--accent); }
.msgs-note-student { display: none; }
.msgs-stage[data-role="student"] .msgs-note-student { display: flex; }
.msgs-stage[data-role="student"] .msgs-note-tutor { display: none; }

.msgs-caption { font-size: 0.8rem; margin: 0; }

.msgs-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin-top: 1.1rem; }
.msgs-how__ico { width: 30px; height: 30px; border-radius: 8px; background: var(--paper-alt); color: var(--accent); display: grid; place-items: center; margin-bottom: 0.6rem; }
.msgs-how__ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.msgs-how__item h3 { font-family: var(--font-body); font-size: 0.98rem; font-weight: 600; margin: 0 0 0.25rem; }
.msgs-how__item p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.55; }

.msgs-toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%) translateY(0.6rem);
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 9px;
  font-size: 0.85rem; opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease; z-index: 60;
}
.msgs-toast.is-shown { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (prefers-reduced-motion: reduce) { .msgs-thread, .msgs-toast { transition: none; } }

/* ---------- Hub — Roadmap ---------- */
.rm { display: grid; gap: 0.9rem; }

.rm-toggle { display: inline-flex; gap: 4px; padding: 4px; background: var(--paper-alt); border-radius: 999px; }
.rm-toggle button {
  font: inherit; font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  border: 0; background: transparent; color: var(--ink-soft);
  padding: 0.5rem 1.05rem; border-radius: 999px; cursor: pointer;
}
.rm-toggle button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); }
.rm-toggle button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.rm-stage { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }

.rm-coedit { display: none; align-items: center; gap: 0.55rem; padding: 0.7rem 1.1rem; background: var(--paper-alt); border-bottom: 1px solid var(--line); font-size: 0.82rem; color: var(--ink-soft); }
.rm-stage[data-role="tutor"] .rm-coedit { display: flex; }
.rm-coedit svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; color: var(--gold); }
.rm-coedit__spacer { margin-left: auto; }
@media (max-width: 560px) { .rm-coedit__when { display: none; } }

/* the map — a vertical journey line */
.rm-timeline { --rm-gap: 0.35rem; position: relative; display: flex; flex-direction: column; gap: var(--rm-gap); padding: 1.4rem 1.1rem; }
.rm-node {
  position: relative;
  display: grid; grid-template-columns: 1.7rem 1fr; gap: 0.85rem; align-items: start;
  border: 0; background: transparent; cursor: pointer; font: inherit;
  padding: 0.5rem 0.55rem; text-align: left; color: var(--ink-soft);
}
.rm-node::before {
  content: ""; position: absolute; inset: 0.1rem 0.1rem 0.1rem 2.5rem;
  border-radius: 8px; background: transparent; z-index: 0;
}
.rm-node:hover::before, .rm-node[aria-current="true"]::before { background: var(--paper-alt); }
.rm-node:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rm-node > * { position: relative; z-index: 1; }
.rm-node:not(:last-child)::after {
  content: ""; position: absolute; left: calc(0.55rem + 0.85rem - 1px); top: 1.35rem;
  height: calc(100% + var(--rm-gap)); width: 2px; background: var(--line-strong); z-index: 1;
}
.rm-node.is-done::after { background: var(--accent); }
.rm-node__dot {
  width: 1.7rem; height: 1.7rem; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: #fff; border: 2px solid var(--line-strong); color: var(--ink-soft);
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
}
.rm-node.is-done .rm-node__dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.rm-node.is-done .rm-node__dot svg { width: 0.85rem; height: 0.85rem; fill: none; stroke: currentColor; stroke-width: 3; }
.rm-node.is-current .rm-node__dot { border-color: var(--accent); color: var(--accent-deep); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); animation: rm-pulse 2.6s ease-in-out infinite; }
@keyframes rm-pulse { 0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent); } 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 6%, transparent); } }
.rm-node__body { min-width: 0; padding-top: 0.05rem; }
.rm-node__wk { display: block; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.02em; }
.rm-node__name { display: block; font-size: 0.9rem; line-height: 1.3; margin-top: 0.1rem; }
.rm-node[aria-current="true"] .rm-node__name, .rm-node.is-current .rm-node__name { color: var(--ink); font-weight: 600; }
.rm-node__dates { display: block; font-family: var(--font-mono); font-size: 0.62rem; color: var(--ink-soft); margin-top: 0.15rem; }
.rm-node__sac { display: inline-block; margin-top: 0.25rem; font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.05em; color: #8a5a0c; background: rgba(138, 90, 12, 0.1); padding: 1px 5px; border-radius: 4px; }

/* selected phase detail */
.rm-phase { border-top: 1px solid var(--line); padding: 1.3rem 1.2rem 1.4rem; }
.rm-phase__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 0.75rem; }
.rm-phase__head h3 { margin: 0; font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; }
.rm-phase__dates { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-soft); }
.rm-status { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.05em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; }
.rm-status.is-done { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-deep); }
.rm-status.is-current { background: rgba(138, 90, 12, 0.1); color: #8a5a0c; }
.rm-status.is-upcoming { background: var(--paper-alt); color: var(--ink-soft); }
.rm-area { display: inline-block; margin-top: 0.5rem; font-size: 0.72rem; color: var(--gold); font-weight: 600; }
.rm-phase__focus { margin: 0.35rem 0 0; color: var(--ink-soft); font-size: 0.95rem; max-width: 62ch; }

.rm-sub { margin: 1.25rem 0 0.55rem; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-soft); }

.rm-lessons { display: grid; gap: 0.5rem; }
.rm-lesson {
  display: flex; align-items: center; gap: 0.7rem; width: 100%; text-align: left;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
  padding: 0.55rem 0.75rem; cursor: pointer; font: inherit; color: var(--ink);
}
.rm-lesson:hover { border-color: var(--gold); }
.rm-lesson:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rm-lesson__ico { width: 1.6rem; height: 1.6rem; border-radius: 6px; background: var(--paper-alt); color: var(--accent); display: grid; place-items: center; flex: none; }
.rm-lesson__ico svg { width: 0.9rem; height: 0.9rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.rm-lesson.is-done .rm-lesson__ico { background: var(--accent); color: #fff; }
.rm-lesson__body { flex: 1; min-width: 0; }
.rm-lesson__title { font-size: 0.9rem; font-weight: 500; }
.rm-lesson__cue { font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-soft); flex: none; }

.rm-links { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.rm-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.78rem; color: var(--accent-deep); text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px;
}
.rm-link:hover { border-color: var(--gold); background: var(--paper-alt); }
.rm-link svg { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; }

.rm-notes { margin-top: 0.55rem; background: var(--paper-alt); border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem 0.85rem; font-size: 0.88rem; color: var(--ink-soft); }
.rm-notes__by { display: block; margin-top: 0.35rem; font-family: var(--font-mono); font-size: 0.64rem; color: var(--ink-soft); }

/* tutor editing */
.rm-edit { display: none; }
.rm-stage[data-role="tutor"] .rm-edit { display: grid; gap: 0.7rem; }
.rm-stage[data-role="tutor"] .rm-view { display: none; }
.rm-field { display: grid; gap: 0.25rem; }
.rm-field > span { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft); }
.rm-field input, .rm-field select, .rm-field textarea {
  font: inherit; font-family: var(--font-body); font-size: 0.9rem;
  border: 1px solid var(--line); border-radius: 8px; padding: 0.45rem 0.6rem;
  background: var(--paper); color: var(--ink); width: 100%;
}
.rm-field textarea { resize: vertical; min-height: 3.2rem; }
.rm-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
@media (max-width: 560px) { .rm-field-row { grid-template-columns: 1fr; } }
.rm-addbtn {
  font: inherit; font-family: var(--font-body); font-size: 0.8rem; font-weight: 600;
  color: var(--accent-deep); border: 1px dashed var(--line-strong); border-radius: 8px;
  background: transparent; padding: 0.4rem 0.8rem; cursor: pointer;
}
.rm-addbtn:hover { border-color: var(--accent); background: var(--paper-alt); }
.rm-addbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rm-tutoronly { display: none; }
.rm-stage[data-role="tutor"] .rm-tutoronly { display: inline-block; }
.rm-addphase { display: none; margin: 0.1rem 1.2rem 1.3rem; }
.rm-stage[data-role="tutor"] .rm-addphase { display: block; }

/* how it works */
.rm-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin-top: 1.1rem; }
.rm-how__ico { width: 30px; height: 30px; border-radius: 8px; background: var(--paper-alt); color: var(--accent); display: grid; place-items: center; margin-bottom: 0.6rem; }
.rm-how__ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.rm-how__item h3 { font-family: var(--font-body); font-size: 0.98rem; font-weight: 600; margin: 0 0 0.25rem; }
.rm-how__item p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.55; }

/* lesson-plan drawer */
.rm-drawer { position: fixed; inset: 0; z-index: 70; }
.rm-drawer[hidden] { display: none; }
.rm-drawer__backdrop { position: absolute; inset: 0; background: rgba(16, 31, 22, 0.4); opacity: 0; transition: opacity 0.2s ease; }
.rm-drawer.is-open .rm-drawer__backdrop { opacity: 1; }
.rm-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(30rem, 92vw);
  background: var(--paper); border-left: 1px solid var(--line);
  box-shadow: -20px 0 60px -30px rgba(16, 31, 22, 0.5);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.2s ease;
}
.rm-drawer.is-open .rm-drawer__panel { transform: translateX(0); }
@media (max-width: 560px) {
  .rm-drawer__panel { top: auto; width: 100%; max-height: 88vh; border-left: 0; border-top: 1px solid var(--line); transform: translateY(100%); }
  .rm-drawer.is-open .rm-drawer__panel { transform: translateY(0); }
}
.rm-drawer__head { display: flex; align-items: flex-start; gap: 0.8rem; padding: 1.1rem 1.2rem; border-bottom: 1px solid var(--line); }
.rm-drawer__head h2 { margin: 0; font-size: 1.05rem; }
.rm-drawer__head p { margin: 3px 0 0; font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-soft); }
.rm-drawer__close { margin-left: auto; flex: none; border: 1px solid var(--line); background: var(--paper); border-radius: 8px; width: 2rem; height: 2rem; cursor: pointer; display: grid; place-items: center; color: var(--ink-soft); }
.rm-drawer__close:hover { color: var(--ink); border-color: var(--gold); }
.rm-drawer__close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rm-drawer__close svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.rm-drawer__body { padding: 1.2rem; overflow-y: auto; display: grid; gap: 1.15rem; }
.rm-drawer__body h3 { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 0.4rem; }
.rm-drawer__body ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.3rem; font-size: 0.9rem; color: var(--ink-soft); }
.rm-drawer__body > div > p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }

.rm-caption { font-size: 0.8rem; margin: 0; }

.rm-toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%) translateY(0.6rem);
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 9px;
  font-size: 0.85rem; opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease; z-index: 80;
}
.rm-toast.is-shown { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .rm-drawer__panel, .rm-drawer__backdrop, .rm-toast { transition: none; }
  .rm-node.is-current .rm-node__dot { animation: none; }
}

/* ---------- Hub — Dashboard ---------- */
.dash { display: grid; gap: 0.9rem; }

.dash-toggle { display: inline-flex; gap: 4px; padding: 4px; background: var(--paper-alt); border-radius: 999px; }
.dash-toggle button {
  font: inherit; font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  border: 0; background: transparent; color: var(--ink-soft);
  padding: 0.5rem 1.05rem; border-radius: 999px; cursor: pointer;
}
.dash-toggle button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); }
.dash-toggle button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.dash-stage { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }

.dash-status {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.1rem;
  padding: 0.85rem 1.2rem; border-bottom: 1px solid var(--line); background: var(--paper-alt);
  font-size: 0.85rem; color: var(--ink-soft);
}
.dash-status b { color: var(--ink); font-weight: 600; }
.dash-status__sep { color: var(--line-strong); }
.dash-status .dash-countdown { font-family: var(--font-mono); font-size: 0.78rem; color: #8a5a0c; background: rgba(138, 90, 12, 0.1); padding: 2px 7px; border-radius: 5px; }

.dash-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem; padding: 1rem 1.1rem 1.2rem; }
@media (max-width: 680px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-card { background: var(--paper-alt); border-radius: 11px; padding: 0.95rem 1.05rem 1.05rem; min-width: 0; }
.dash-card--wide { grid-column: 1 / -1; }
.dash-card--plot { background: #fff; border: 1px solid var(--line); }
.dash-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.6rem; }
.dash-card__head h3 { margin: 0; font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; }
.dash-card__link { font-size: 0.78rem; color: var(--accent-deep); text-decoration: none; white-space: nowrap; }
.dash-card__link:hover { text-decoration: underline; }

/* needs-you list */
.dash-needs { display: grid; gap: 0.4rem; }
.dash-need { display: flex; align-items: stretch; gap: 0.5rem; }
.dash-need.is-cleared { opacity: 0.45; }
.dash-need.is-cleared .dash-need__text { text-decoration: line-through; }
.dash-need__main {
  flex: 1 1 0; display: flex; align-items: center; gap: 0.65rem; min-width: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 9px;
  padding: 0.55rem 0.7rem; text-decoration: none; color: var(--ink);
}
.dash-need__main:hover { border-color: var(--gold); }
.dash-need__main:focus-visible, .dash-need__done:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dash-need__ico { width: 1.7rem; height: 1.7rem; border-radius: 6px; background: var(--paper-alt); color: var(--accent); display: grid; place-items: center; flex: none; }
.dash-need__ico svg { width: 0.95rem; height: 0.95rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.dash-need__text { flex: 1; font-size: 0.88rem; min-width: 0; }
.dash-need__tag { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink-soft); background: var(--paper-alt); padding: 2px 6px; border-radius: 4px; flex: none; }
.dash-need__done {
  flex: none; width: 2rem; border: 1px solid var(--line); border-radius: 9px; background: #fff;
  color: var(--ink-soft); cursor: pointer; display: grid; place-items: center;
}
.dash-need__done:hover { color: var(--accent); border-color: var(--accent); }
.dash-need__done svg { width: 0.9rem; height: 0.9rem; fill: none; stroke: currentColor; stroke-width: 2.4; }

/* next session */
.dash-session__when { font-family: var(--font-head); font-size: 1.1rem; color: var(--ink); }
.dash-session__meta { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.15rem; }
.dash-session__topic { font-size: 0.88rem; margin-top: 0.55rem; }
.dash-session__prep { font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.15rem; }
.dash-session__acts { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.8rem; }

/* progress: mini roadmap + stats */
.dash-mini { display: flex; align-items: center; gap: 0.35rem; margin: 0.2rem 0 0.3rem; }
.dash-mini__dot { width: 0.85rem; height: 0.85rem; border-radius: 50%; flex: none; background: #fff; border: 2px solid var(--line-strong); }
.dash-mini__dot.is-done { background: var(--accent); border-color: var(--accent); }
.dash-mini__dot.is-current { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.dash-mini__bar { flex: 1; height: 2px; background: var(--line-strong); min-width: 8px; }
.dash-mini__bar.is-done { background: var(--accent); }
.dash-mini__label { font-size: 0.8rem; color: var(--ink-soft); }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 0.7rem; }
.dash-stat { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 0.5rem 0.6rem; text-align: center; }
.dash-stat__n { font-family: var(--font-head); font-size: 1.15rem; color: var(--accent); line-height: 1; }
.dash-stat__l { font-size: 0.68rem; color: var(--ink-soft); margin-top: 0.2rem; }

/* essay scores plot */
.dash-plot { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.dash-plot__hero { flex: none; }
.dash-plot__score { font-family: var(--font-head); font-size: 2rem; color: var(--ink); line-height: 1; }
.dash-plot__score span { font-size: 0.9rem; color: var(--ink-soft); }
.dash-plot__sub { font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.25rem; }
.dash-plot__delta { font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent-deep); }
.dash-plot__chart { flex: 1; min-width: 220px; position: relative; }
.dash-plot__chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.dash-plot__grid { stroke: var(--line); stroke-width: 1; }
.dash-plot__gridlabel { fill: var(--ink-soft); font-family: var(--font-mono); font-size: 8px; }
.dash-plot__xlabel { fill: var(--ink-soft); font-family: var(--font-mono); font-size: 8px; }
.dash-plot__line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.dash-plot__pt { fill: var(--accent); }
.dash-plot__pt--last { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.dash-plot__ptlabel { fill: var(--ink); font-family: var(--font-mono); font-size: 9px; font-weight: 500; }
.dash-plot__hit { fill: transparent; cursor: pointer; }
.dash-plot__hit:focus-visible { outline: 2px solid var(--accent); }
.dash-plot__crosshair { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.dash-plot__tip {
  position: absolute; pointer-events: none; z-index: 3; opacity: 0;
  background: var(--ink); color: #fff; font-size: 0.75rem; line-height: 1.3;
  padding: 0.4rem 0.55rem; border-radius: 7px; transform: translate(-50%, -115%); white-space: nowrap;
  transition: opacity 0.12s ease;
}
.dash-plot__tip b { display: block; font-family: var(--font-mono); }
.dash-plot details { margin-top: 0.7rem; font-size: 0.8rem; }
.dash-plot summary { cursor: pointer; color: var(--accent-deep); }
.dash-plot table { border-collapse: collapse; margin-top: 0.5rem; width: 100%; font-size: 0.8rem; }
.dash-plot th, .dash-plot td { text-align: left; padding: 0.25rem 0.5rem; border-bottom: 1px solid var(--line); }
.dash-plot td:last-child, .dash-plot th:last-child { text-align: right; font-variant-numeric: tabular-nums; }

/* activity feed */
.dash-feed { display: grid; gap: 0.55rem; }
.dash-feed__item { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.7rem; font-size: 0.86rem; }
@media (max-width: 420px) { .dash-feed__item { grid-template-columns: 1fr; gap: 0.1rem; } }
.dash-feed__when { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-soft); padding-top: 0.1rem; }
.dash-feed__text { color: var(--ink); }
.dash-feed__text a { color: var(--accent-deep); }

/* jump-to grid */
.dash-jump { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 0.5rem; }
.dash-jump a {
  display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 0.55rem 0.7rem; font-size: 0.85rem;
}
.dash-jump a:hover { border-color: var(--gold); }
.dash-jump svg { width: 0.95rem; height: 0.95rem; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; }

/* tutor: today, queue, roster */
.dash-list { display: grid; gap: 0.4rem; }
.dash-row {
  display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); min-width: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 0.55rem 0.7rem; font-size: 0.86rem;
}
.dash-row:hover { border-color: var(--gold); }
.dash-row__time { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-soft); flex: none; width: 3.6rem; }
.dash-row__who { font-weight: 600; flex: none; }
.dash-row__what { flex: 1 1 0; color: var(--ink-soft); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-row__age { margin-left: auto; flex: none; font-family: var(--font-mono); font-size: 0.66rem; color: #8a5a0c; background: rgba(138, 90, 12, 0.1); padding: 2px 6px; border-radius: 4px; }

.dash-roster { display: grid; gap: 0.5rem; }
.dash-student { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem 0.85rem; }
.dash-student__top { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.dash-student__name { font-weight: 600; font-size: 0.9rem; }
.dash-student__yr { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-soft); }
.dash-student__meta { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; margin-top: 0.35rem; font-size: 0.78rem; color: var(--ink-soft); }
.dash-student__sac { font-family: var(--font-mono); font-size: 0.72rem; }
.dash-student__sac.is-soon { color: #8a5a0c; }
.dash-student__flag {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 0.5rem;
  font-size: 0.78rem; color: #8a5a0c; background: rgba(138, 90, 12, 0.1);
  border-radius: 6px; padding: 4px 8px;
}
.dash-student__flag svg { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }

.dash-subhead { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin: 0.5rem 0 0.4rem; }
.dash-subhead:first-child { margin-top: 0; }

.dash-caption { font-size: 0.8rem; margin: 0; }

/* how it works — shared with roadmap/messages pattern */
.dash-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin-top: 1.1rem; }
.dash-how__ico { width: 30px; height: 30px; border-radius: 8px; background: var(--paper-alt); color: var(--accent); display: grid; place-items: center; margin-bottom: 0.6rem; }
.dash-how__ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.dash-how__item h3 { font-family: var(--font-body); font-size: 0.98rem; font-weight: 600; margin: 0 0 0.25rem; }
.dash-how__item p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.55; }

.dash-toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%) translateY(0.6rem);
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 9px;
  font-size: 0.85rem; opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease; z-index: 80;
}
.dash-toast.is-shown { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (prefers-reduced-motion: reduce) { .dash-toast, .dash-plot__tip, .dash-need { transition: none; } }
@media (max-width: 560px) { .dash-status { flex-direction: column; align-items: flex-start; gap: 0.3rem; } .dash-status__sep { display: none; } }

/* ---------- Hub — Essays & feedback ---------- */
.es { display: grid; gap: 0.9rem; }

.es-toggle { display: inline-flex; gap: 4px; padding: 4px; background: var(--paper-alt); border-radius: 999px; }
.es-toggle button {
  font: inherit; font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  border: 0; background: transparent; color: var(--ink-soft);
  padding: 0.5rem 1.05rem; border-radius: 999px; cursor: pointer;
}
.es-toggle button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); }
.es-toggle button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.es-stage { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.es-status {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem;
  padding: 0.85rem 1.2rem; border-bottom: 1px solid var(--line); background: var(--paper-alt);
  font-size: 0.85rem; color: var(--ink-soft);
}
.es-status b { color: var(--ink); font-weight: 600; }
.es-status__sep { color: var(--line-strong); }
@media (max-width: 560px) { .es-status { flex-direction: column; align-items: flex-start; gap: 0.3rem; } .es-status__sep { display: none; } }

.es-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem; padding: 1rem 1.1rem 1.2rem; }
@media (max-width: 680px) { .es-grid { grid-template-columns: 1fr; } }
.es-card { background: var(--paper-alt); border-radius: 11px; padding: 0.95rem 1.05rem 1.05rem; min-width: 0; }
.es-card--wide { grid-column: 1 / -1; }
.es-card--hero { background: #fff; border: 1px solid var(--line); }
.es-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.6rem; }
.es-card__head h3 { margin: 0; font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; }
.es-card__link { font-size: 0.78rem; color: var(--accent-deep); text-decoration: none; white-space: nowrap; }
.es-card__link:hover { text-decoration: underline; }
.es-subhead { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin: 0.9rem 0 0.4rem; }
.es-subhead:first-child { margin-top: 0; }
.es-caption { font-size: 0.8rem; margin: 0; }

/* upload */
.es-upload { display: grid; gap: 0.8rem; }
.es-upload__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
@media (max-width: 520px) { .es-upload__row { grid-template-columns: 1fr; } }
.es-upload label { display: grid; gap: 0.2rem; font-size: 0.85rem; }
.es-upload label > span { font-family: var(--font-mono); font-size: 0.63rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); }
.es-upload select, .es-upload input[type="text"] {
  font: inherit; font-family: var(--font-body); font-size: 0.9rem;
  border: 1px solid var(--line); border-radius: 8px; padding: 0.45rem 0.6rem;
  background: var(--paper); color: var(--ink);
}
.es-upload__check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--ink-soft); }
.es-upload__check input { accent-color: var(--accent); flex: none; }
.es-upload__note { font-size: 0.78rem; color: var(--ink-soft); margin: 0; }
.es-upload__acts { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }

/* score + rubric */
.es-score { display: flex; align-items: baseline; gap: 0.55rem; flex-wrap: wrap; }
.es-score__n { font-family: var(--font-head); font-size: 2.1rem; color: var(--ink); line-height: 1; }
.es-score__n span { font-size: 0.9rem; color: var(--ink-soft); }
.es-band { font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 8px; border-radius: 5px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-deep); }
.es-delta { font-family: var(--font-mono); font-size: 0.74rem; color: var(--accent-deep); }
.es-meta { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-soft); margin-top: 0.25rem; }

.es-crits { display: grid; gap: 0.4rem; margin-top: 0.6rem; }
.es-crit { display: grid; grid-template-columns: 11rem 1fr 2.2rem; gap: 0.65rem; align-items: center; font-size: 0.82rem; }
@media (max-width: 520px) { .es-crit { grid-template-columns: 1fr 2.2rem; } .es-crit__track { grid-column: 1 / -1; order: 3; } }
.es-crit__track { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.es-crit__fill { display: block; height: 100%; background: var(--accent); border-radius: 999px; width: var(--v, 0%); }
.es-crit__v { font-family: var(--font-mono); font-size: 0.74rem; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-soft); }

.es-fixes { margin: 0.6rem 0 0; padding-left: 1.15rem; display: grid; gap: 0.3rem; font-size: 0.88rem; color: var(--ink-soft); }
.es-fixes li::marker { color: var(--accent); }

/* flagged feedback */
.es-flags { display: grid; gap: 0.5rem; }
.es-flag { display: flex; gap: 0.65rem; background: #fff; border: 1px solid var(--line); border-left: 3px solid #8a5a0c; border-radius: 9px; padding: 0.65rem 0.75rem; }
.es-flag--strength { border-left-color: var(--accent); }
.es-flag__ico { color: #8a5a0c; flex: none; margin-top: 0.1rem; }
.es-flag--strength .es-flag__ico { color: var(--accent); }
.es-flag__ico svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.es-flag__body { flex: 1; min-width: 0; }
.es-flag__text { display: block; font-size: 0.88rem; color: var(--ink); }
.es-flag__meta { display: block; font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-soft); margin-top: 0.25rem; }
.es-flag__meta a { color: var(--accent-deep); }
.es-flag.is-addressed { opacity: 0.55; }
.es-flag.is-addressed .es-flag__text { text-decoration: line-through; }
.es-flag__done { flex: none; width: 1.9rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink-soft); cursor: pointer; display: grid; place-items: center; }
.es-flag__done:hover { color: var(--accent); border-color: var(--accent); }
.es-flag__done:focus-visible, .es-essay__sum:focus-visible, .es-plot__hit:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.es-flag__done svg { width: 0.9rem; height: 0.9rem; fill: none; stroke: currentColor; stroke-width: 2.4; }

/* auto-marker */
.es-auto__head { font-size: 0.9rem; margin: 0 0 0.6rem; color: var(--ink-soft); }
.es-auto__head b { color: var(--ink); }
.es-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.es-table th, .es-table td { text-align: left; padding: 0.35rem 0.5rem; border-bottom: 1px solid var(--line); }
.es-table th.num, .es-table td.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-mono); }
.es-table th { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.es-auto__quota { margin: 0.7rem 0 0; font-size: 0.8rem; color: var(--ink-soft); }
.es-auto__acts { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.7rem; }

/* score chart (2 series: tutor + auto-marker) */
.es-plot__legend { display: flex; gap: 1.1rem; font-size: 0.75rem; color: var(--ink-soft); margin-bottom: 0.35rem; }
.es-plot__legend span { display: inline-flex; align-items: center; gap: 6px; }
.es-plot__swatch { width: 16px; height: 2px; background: var(--accent); flex: none; }
.es-plot__swatch--auto { background: repeating-linear-gradient(90deg, var(--ink-soft) 0 4px, transparent 4px 7px); }
.es-plot__wrap { position: relative; }
.es-plot__wrap svg { width: 100%; height: auto; display: block; overflow: visible; }
.es-plot__grid { stroke: var(--line); stroke-width: 1; }
.es-plot__lbl { fill: var(--ink-soft); font-family: var(--font-mono); font-size: 8px; }
.es-plot__line-t { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.es-plot__line-a { fill: none; stroke: var(--ink-soft); stroke-width: 1.5; stroke-dasharray: 4 3; stroke-linejoin: round; }
.es-plot__pt { fill: var(--accent); }
.es-plot__pt-a { fill: var(--ink-soft); }
.es-plot__hit { fill: transparent; cursor: pointer; }
.es-plot__crosshair { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.es-plot__tip {
  position: absolute; pointer-events: none; z-index: 3; opacity: 0;
  background: var(--ink); color: #fff; font-size: 0.75rem; line-height: 1.35;
  padding: 0.4rem 0.55rem; border-radius: 7px; transform: translate(-50%, -115%); white-space: nowrap;
  transition: opacity 0.12s ease;
}
.es-plot__tip b { display: block; font-family: var(--font-mono); }
.es-plot details { margin-top: 0.7rem; font-size: 0.8rem; }
.es-plot summary { cursor: pointer; color: var(--accent-deep); }

/* all essays — accordion list */
.es-essays { display: grid; gap: 0.4rem; }
.es-essay { border: 1px solid var(--line); border-radius: 9px; background: #fff; overflow: hidden; }
.es-essay__sum { display: flex; align-items: center; gap: 0.6rem; width: 100%; text-align: left; border: 0; background: transparent; padding: 0.6rem 0.8rem; cursor: pointer; font: inherit; color: var(--ink); }
.es-essay__sum:hover, .es-essay.is-open .es-essay__sum { background: var(--paper-alt); }
.es-essay__title { font-weight: 500; font-size: 0.88rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.es-essay__type { font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-soft); flex: none; }
.es-essay__score { font-family: var(--font-mono); font-size: 0.78rem; flex: none; color: var(--accent-deep); }
.es-essay__pill { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.03em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; background: var(--paper-alt); color: var(--ink-soft); flex: none; }
.es-essay__pill.is-queue { background: rgba(138, 90, 12, 0.1); color: #8a5a0c; }
.es-essay__detail { padding: 0.2rem 0.9rem 0.9rem; display: none; }
.es-essay.is-open .es-essay__detail { display: block; }

/* tutor rows */
.es-list { display: grid; gap: 0.4rem; }
.es-row { display: flex; align-items: center; gap: 0.6rem; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 0.55rem 0.7rem; font-size: 0.86rem; text-decoration: none; color: var(--ink); }
.es-row:hover { border-color: var(--gold); }
.es-row__who { font-weight: 600; flex: none; }
.es-row__what { flex: 1 1 0; min-width: 0; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.es-row__num { flex: none; font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent-deep); }
.es-row__age { flex: none; font-family: var(--font-mono); font-size: 0.66rem; color: #8a5a0c; background: rgba(138, 90, 12, 0.1); padding: 2px 6px; border-radius: 4px; }
.es-row__btn { flex: none; border: 1px solid var(--line); background: var(--paper); border-radius: 7px; font: inherit; font-size: 0.78rem; padding: 0.25rem 0.6rem; cursor: pointer; color: var(--accent-deep); }
.es-row__btn:hover { border-color: var(--accent); }

.es-studs { display: grid; gap: 0.5rem; }
.es-stud { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem 0.85rem; }
.es-stud__top { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.es-stud__name { font-weight: 600; font-size: 0.9rem; }
.es-stud__meta { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; margin-top: 0.35rem; font-size: 0.78rem; color: var(--ink-soft); }
.es-stud__trend { font-family: var(--font-mono); font-size: 0.74rem; color: var(--accent-deep); }

.es-feed { display: grid; gap: 0.55rem; }
.es-feed__item { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.7rem; font-size: 0.86rem; }
@media (max-width: 420px) { .es-feed__item { grid-template-columns: 1fr; gap: 0.1rem; } }
.es-feed__when { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-soft); padding-top: 0.1rem; }
.es-feed__text a { color: var(--accent-deep); }

/* how it works */
.es-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin-top: 1.1rem; }
.es-how__ico { width: 30px; height: 30px; border-radius: 8px; background: var(--paper-alt); color: var(--accent); display: grid; place-items: center; margin-bottom: 0.6rem; }
.es-how__ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.es-how__item h3 { font-family: var(--font-body); font-size: 0.98rem; font-weight: 600; margin: 0 0 0.25rem; }
.es-how__item p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.55; }

.es-toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%) translateY(0.6rem);
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 9px;
  font-size: 0.85rem; opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease; z-index: 80;
}
.es-toast.is-shown { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (prefers-reduced-motion: reduce) { .es-toast, .es-plot__tip { transition: none; } }

/* ---------- Hub — Community ---------- */
.cm { display: grid; gap: 0.9rem; }

.cm-toggle { display: inline-flex; gap: 4px; padding: 4px; background: var(--paper-alt); border-radius: 999px; }
.cm-toggle button {
  font: inherit; font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  border: 0; background: transparent; color: var(--ink-soft);
  padding: 0.5rem 1.05rem; border-radius: 999px; cursor: pointer;
}
.cm-toggle button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); }
.cm-toggle button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.cm-stage { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.cm-status {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem;
  padding: 0.85rem 1.2rem; border-bottom: 1px solid var(--line); background: var(--paper-alt);
  font-size: 0.85rem; color: var(--ink-soft);
}
.cm-status b { color: var(--ink); font-weight: 600; }
.cm-status__sep { color: var(--line-strong); }
@media (max-width: 560px) { .cm-status { flex-direction: column; align-items: flex-start; gap: 0.3rem; } .cm-status__sep { display: none; } }

.cm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem; padding: 1rem 1.1rem 1.2rem; }
@media (max-width: 680px) { .cm-grid { grid-template-columns: 1fr; } }
.cm-card { background: var(--paper-alt); border-radius: 11px; padding: 0.95rem 1.05rem 1.05rem; min-width: 0; }
.cm-card--wide { grid-column: 1 / -1; }
.cm-card--hero { background: #fff; border: 1px solid var(--line); }
.cm-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.6rem; }
.cm-card__head h3 { margin: 0; font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; }
.cm-card__link { font-size: 0.78rem; color: var(--accent-deep); text-decoration: none; white-space: nowrap; }
.cm-card__link:hover { text-decoration: underline; }
@media (max-width: 520px) { .cm-card__head { flex-wrap: wrap; } .cm-card__link { white-space: normal; } }
.cm-subhead { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin: 0.9rem 0 0.4rem; }
.cm-subhead:first-child { margin-top: 0; }
.cm-caption { font-size: 0.8rem; margin: 0; }
.cm-note { font-size: 0.78rem; color: var(--ink-soft); margin: 0.5rem 0 0; }

/* composer */
.cm-compose { display: grid; gap: 0.7rem; }
.cm-compose__row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 0.6rem; }
@media (max-width: 520px) { .cm-compose__row { grid-template-columns: 1fr; } }
.cm-compose label { display: grid; gap: 0.2rem; font-size: 0.85rem; }
.cm-compose label > span { font-family: var(--font-mono); font-size: 0.63rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); }
.cm-compose input[type="text"], .cm-compose select, .cm-compose textarea {
  font: inherit; font-family: var(--font-body); font-size: 0.9rem;
  border: 1px solid var(--line); border-radius: 8px; padding: 0.45rem 0.6rem;
  background: var(--paper); color: var(--ink);
}
.cm-compose textarea { resize: vertical; min-height: 3.4rem; }
.cm-compose__acts { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }

/* this week's prompt */
.cm-prompt__q { font-family: var(--font-head); font-size: 1.1rem; line-height: 1.35; color: var(--ink); margin: 0.1rem 0 0; }
.cm-prompt__meta { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-soft); margin-top: 0.4rem; }
.cm-prompt__resp { display: grid; gap: 0.45rem; margin-top: 0.7rem; }
.cm-resp { background: var(--paper-alt); border: 1px solid var(--line); border-radius: 9px; padding: 0.55rem 0.7rem; }
.cm-card--hero .cm-resp { background: var(--paper-alt); }
.cm-resp__by { font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-soft); }
.cm-resp__by .cm-model { color: var(--accent-deep); }
.cm-resp__text { font-size: 0.86rem; margin-top: 0.15rem; }
.cm-resp__foot { font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-soft); margin-top: 0.3rem; }

/* thread list (accordion) */
.cm-threads { display: grid; gap: 0.4rem; }
.cm-thread { border: 1px solid var(--line); border-radius: 9px; background: #fff; overflow: hidden; }
.cm-thread__sum { display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 0.6rem; width: 100%; text-align: left; border: 0; background: transparent; padding: 0.6rem 0.8rem; cursor: pointer; font: inherit; color: var(--ink); }
.cm-thread__sum:hover, .cm-thread.is-open .cm-thread__sum { background: var(--paper-alt); }
.cm-thread__sum:focus-visible, .cm-pub__save:focus-visible, .cm-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cm-thread__title { font-weight: 500; font-size: 0.9rem; }
.cm-thread__meta { grid-column: 1; font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-soft); }
.cm-thread__stat { grid-column: 2; grid-row: 1 / 3; align-self: center; font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-soft); text-align: right; white-space: nowrap; }
.cm-thread__badges { display: inline-flex; gap: 0.3rem; margin-left: 0.4rem; vertical-align: 1px; }
.cm-badge { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 1px 5px; border-radius: 4px; background: var(--paper-alt); color: var(--ink-soft); }
.cm-badge--new { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-deep); }
.cm-badge--verified { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent-deep); }
.cm-badge--pinned { background: rgba(138, 90, 12, 0.12); color: #8a5a0c; }
.cm-thread__body { display: none; padding: 0.2rem 0.9rem 0.9rem; }
.cm-thread.is-open .cm-thread__body { display: block; }

.cm-posts { display: grid; gap: 0.6rem; }
.cm-post { border-left: 2px solid var(--line); padding-left: 0.75rem; }
.cm-post--op { border-left-color: var(--accent); }
.cm-post--tutor { border-left-color: var(--gold); background: color-mix(in srgb, var(--gold) 6%, transparent); border-radius: 0 8px 8px 0; padding: 0.4rem 0.6rem 0.4rem 0.75rem; }
.cm-post--answer { border-left-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); border-radius: 0 8px 8px 0; padding: 0.4rem 0.6rem 0.4rem 0.75rem; }
.cm-post__by { font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-soft); }
.cm-post__by .cm-post__role { color: var(--accent-deep); }
.cm-post__text { font-size: 0.88rem; margin-top: 0.2rem; line-height: 1.5; }
.cm-post__tag { display: inline-block; font-family: var(--font-mono); font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent-deep); margin-bottom: 0.15rem; }
.cm-reply { display: flex; gap: 0.5rem; margin-top: 0.7rem; }
.cm-reply textarea { flex: 1; font: inherit; font-family: var(--font-body); font-size: 0.86rem; border: 1px solid var(--line); border-radius: 8px; padding: 0.4rem 0.55rem; resize: none; background: var(--paper); color: var(--ink); }
.cm-reply__foot { font-family: var(--font-mono); font-size: 0.64rem; color: var(--ink-soft); margin-top: 0.35rem; }
.cm-reply__foot a { color: var(--accent-deep); }

/* forum: study-area tabs -> text chips */
.cm-areas { display: flex; gap: 0.15rem; border-bottom: 1px solid var(--line); margin-bottom: 0.7rem; }
@media (max-width: 520px) { .cm-areas { overflow-x: auto; } }
.cm-area-tab {
  font: inherit; font-family: var(--font-body); font-size: 0.85rem; font-weight: 600;
  border: 0; background: none; color: var(--ink-soft); cursor: pointer;
  padding: 0.4rem 0.7rem; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; flex: none;
}
.cm-area-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.cm-area-tab:hover { color: var(--ink); }
.cm-area-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cm-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.6rem; }
.cm-chip__n { font-family: var(--font-mono); font-size: 0.62rem; opacity: 0.7; }
.cm-addbtn {
  margin-top: 0.6rem; font: inherit; font-family: var(--font-body); font-size: 0.8rem; font-weight: 600;
  color: var(--accent-deep); border: 1px dashed var(--line-strong); border-radius: 8px;
  background: transparent; padding: 0.4rem 0.8rem; cursor: pointer;
}
.cm-addbtn:hover { border-color: var(--accent); background: var(--paper-alt); }
.cm-addbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* general forum: blog posts */
.cm-blog { display: flex; gap: 0.65rem; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 0.6rem 0.75rem; margin-bottom: 0.4rem; }
.cm-blog__ico { width: 1.7rem; height: 1.7rem; border-radius: 6px; background: var(--paper-alt); color: var(--accent); display: grid; place-items: center; flex: none; }
.cm-blog__ico svg { width: 0.95rem; height: 0.95rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.cm-blog__body { flex: 1; min-width: 0; }
.cm-blog__title { display: block; font-size: 0.88rem; font-weight: 500; }
.cm-blog__ex { display: block; font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.1rem; }
.cm-blog__foot { display: block; font-family: var(--font-mono); font-size: 0.64rem; color: var(--ink-soft); margin-top: 0.35rem; }
.cm-blog__foot a { color: var(--accent-deep); }

/* essay of the week */
.cm-eotw__prompt { font-family: var(--font-head); font-size: 1.05rem; line-height: 1.35; color: var(--ink); margin: 0.1rem 0 0; }
.cm-eotw__by { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-soft); margin-top: 0.35rem; }
.cm-eotw__why { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.55; margin: 0.6rem 0 0; }
.cm-eotw__why b { color: var(--ink); }
.cm-eotw__steal { margin: 0.45rem 0 0; padding-left: 1.15rem; display: grid; gap: 0.25rem; font-size: 0.87rem; color: var(--ink-soft); }
.cm-eotw__steal li::marker { color: var(--accent); }

/* publications */
.cm-filters { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.6rem; }
.cm-chip { font: inherit; font-family: var(--font-body); font-size: 0.76rem; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 3px 10px; cursor: pointer; color: var(--ink-soft); }
.cm-chip[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent-deep); }
.cm-pubs { display: grid; gap: 0.4rem; }
.cm-pub { display: flex; align-items: center; gap: 0.65rem; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 0.55rem 0.7rem; }
.cm-pub.is-hidden { display: none; }
.cm-pub__ico { width: 1.7rem; height: 1.7rem; border-radius: 6px; background: var(--paper-alt); color: var(--accent); display: grid; place-items: center; flex: none; }
.cm-pub__ico svg { width: 0.95rem; height: 0.95rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.cm-pub__body { flex: 1; min-width: 0; }
.cm-pub__title { display: block; font-size: 0.88rem; font-weight: 500; }
.cm-pub__by { display: block; font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-soft); margin-top: 0.1rem; }
.cm-pub__save { flex: none; width: 2rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink-soft); cursor: pointer; display: grid; place-items: center; }
.cm-pub__save svg { width: 0.95rem; height: 0.95rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.cm-pub__save[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.cm-pub__save[aria-pressed="true"] svg { fill: currentColor; }

/* study group */
.cm-group__name { font-weight: 600; font-size: 0.92rem; }
.cm-group__meta { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-soft); margin-top: 0.2rem; }
.cm-group__members { display: flex; gap: 0.3rem; margin: 0.5rem 0; }
.cm-ava { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-size: 0.75rem; flex: none; }

/* mine / feed / mod */
.cm-mine { display: grid; gap: 0.4rem; }
.cm-mine__item { display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 0.5rem 0.65rem; font-size: 0.85rem; text-decoration: none; color: var(--ink); }
.cm-mine__item:hover { border-color: var(--gold); }
.cm-mine__n { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-soft); }
.cm-mine__n.is-unread { color: var(--accent-deep); }

.cm-feed { display: grid; gap: 0.55rem; }
.cm-feed__item { display: grid; grid-template-columns: 5rem 1fr; gap: 0.7rem; font-size: 0.86rem; }
@media (max-width: 420px) { .cm-feed__item { grid-template-columns: 1fr; gap: 0.1rem; } }
.cm-feed__when { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-soft); padding-top: 0.1rem; }
.cm-feed__text a { color: var(--accent-deep); }

.cm-mod { display: grid; gap: 0.5rem; }
.cm-mod__item { background: #fff; border: 1px solid var(--line); border-left: 3px solid #8a5a0c; border-radius: 9px; padding: 0.65rem 0.8rem; }
.cm-mod__what { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.04em; text-transform: uppercase; color: #8a5a0c; }
.cm-mod__text { font-size: 0.87rem; margin-top: 0.2rem; }
.cm-mod__quote { font-size: 0.84rem; color: var(--ink-soft); background: var(--paper-alt); border-radius: 6px; padding: 0.4rem 0.55rem; margin-top: 0.35rem; }
.cm-mod__acts { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.5rem; }
.cm-mod__acts button { font: inherit; font-family: var(--font-body); font-size: 0.76rem; border: 1px solid var(--line); background: var(--paper); border-radius: 7px; padding: 0.25rem 0.6rem; cursor: pointer; color: var(--accent-deep); }
.cm-mod__acts button:hover { border-color: var(--accent); }

.cm-rows { display: grid; gap: 0.4rem; }
.cm-row { display: flex; align-items: center; gap: 0.55rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 0.5rem 0.65rem; font-size: 0.85rem; min-width: 0; }
.cm-row__title { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-row__meta { flex: none; font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-soft); }
.cm-row__act { flex: none; font: inherit; font-family: var(--font-body); font-size: 0.74rem; border: 1px solid var(--line); background: var(--paper); border-radius: 6px; padding: 0.2rem 0.55rem; cursor: pointer; color: var(--accent-deep); }
.cm-row__act:hover { border-color: var(--accent); }

/* how it works */
.cm-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin-top: 1.1rem; }
.cm-how__ico { width: 30px; height: 30px; border-radius: 8px; background: var(--paper-alt); color: var(--accent); display: grid; place-items: center; margin-bottom: 0.6rem; }
.cm-how__ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.cm-how__item h3 { font-family: var(--font-body); font-size: 0.98rem; font-weight: 600; margin: 0 0 0.25rem; }
.cm-how__item p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.55; }

.cm-toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%) translateY(0.6rem);
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 9px;
  font-size: 0.85rem; opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease; z-index: 80;
}
.cm-toast.is-shown { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (prefers-reduced-motion: reduce) { .cm-toast { transition: none; } }

/* ---------- Hub — My lessons ---------- */
.ls { display: grid; gap: 0.9rem; }

.ls-toggle { display: inline-flex; gap: 4px; padding: 4px; background: var(--paper-alt); border-radius: 999px; }
.ls-toggle button {
  font: inherit; font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  border: 0; background: transparent; color: var(--ink-soft);
  padding: 0.5rem 1.05rem; border-radius: 999px; cursor: pointer;
}
.ls-toggle button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); }
.ls-toggle button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.ls-stage { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.ls-status {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem;
  padding: 0.85rem 1.2rem; border-bottom: 1px solid var(--line); background: var(--paper-alt);
  font-size: 0.85rem; color: var(--ink-soft);
}
.ls-status b { color: var(--ink); font-weight: 600; }
.ls-status__sep { color: var(--line-strong); }
@media (max-width: 560px) { .ls-status { flex-direction: column; align-items: flex-start; gap: 0.3rem; } .ls-status__sep { display: none; } }

.ls-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem; padding: 1rem 1.1rem 1.2rem; }
@media (max-width: 680px) { .ls-grid { grid-template-columns: 1fr; } }
.ls-card { background: var(--paper-alt); border-radius: 11px; padding: 0.95rem 1.05rem 1.05rem; min-width: 0; }
.ls-card--wide { grid-column: 1 / -1; }
.ls-card--hero { background: #fff; border: 1px solid var(--line); }
.ls-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.ls-card__head h3 { margin: 0; font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; }
.ls-card__link { font-size: 0.78rem; color: var(--accent-deep); text-decoration: none; white-space: nowrap; }
.ls-card__link:hover { text-decoration: underline; }
.ls-subhead { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin: 0.9rem 0 0.4rem; }
.ls-subhead:first-child { margin-top: 0; }
.ls-caption { font-size: 0.8rem; margin: 0; }
.ls-note { font-size: 0.78rem; color: var(--ink-soft); margin: 0.4rem 0 0; }

/* progress bar */
.ls-bar { display: block; height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.ls-bar__fill { display: block; height: 100%; background: var(--accent); border-radius: 999px; width: var(--v, 0%); }

/* continue watching hero */
.ls-continue__series { display: block; font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-soft); }
.ls-continue__title { font-family: var(--font-head); font-size: 1.15rem; color: var(--ink); margin: 0.15rem 0 0.55rem; }
.ls-continue__meta { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-soft); margin-top: 0.35rem; }
.ls-continue__acts { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin-top: 0.8rem; }
.ls-continue__next { font-size: 0.82rem; color: var(--ink-soft); }
.ls-continue__next b { color: var(--ink); font-weight: 600; }

/* lesson rows */
.ls-lessons { display: grid; gap: 0.3rem; }
.ls-lesson { display: flex; align-items: center; gap: 0.65rem; width: 100%; text-align: left; border: 0; background: transparent; padding: 0.45rem 0.4rem; border-radius: 8px; cursor: pointer; font: inherit; color: var(--ink); }
.ls-lesson:hover { background: var(--paper-alt); }
.ls-lesson:focus-visible, .ls-series__sum:focus-visible, .ls-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ls-lesson[disabled] { cursor: default; color: var(--ink-soft); }
.ls-lesson[disabled]:hover { background: transparent; }
.ls-lesson__ico { width: 1.5rem; height: 1.5rem; border-radius: 6px; background: var(--paper-alt); color: var(--ink-soft); display: grid; place-items: center; flex: none; }
.ls-lesson__ico svg { width: 0.85rem; height: 0.85rem; fill: none; stroke: currentColor; stroke-width: 2; }
.ls-lesson.is-done .ls-lesson__ico { background: var(--accent); color: #fff; }
.ls-lesson.is-progress .ls-lesson__ico { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-deep); }
.ls-lesson__body { flex: 1; min-width: 0; }
.ls-lesson__title { display: block; font-size: 0.88rem; }
.ls-lesson.is-progress .ls-lesson__title { font-weight: 600; }
.ls-lesson__sub { display: block; font-family: var(--font-mono); font-size: 0.66rem; color: var(--accent-deep); }
.ls-lesson__dur { flex: none; font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-soft); }

/* series accordion */
.ls-filters { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.6rem; }
.ls-chip { font: inherit; font-family: var(--font-body); font-size: 0.76rem; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 3px 10px; cursor: pointer; color: var(--ink-soft); }
.ls-chip[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent-deep); }
.ls-series { border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; margin-bottom: 0.4rem; }
.ls-series.is-hidden { display: none; }
.ls-series__sum { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 0.7rem; width: 100%; text-align: left; border: 0; background: transparent; padding: 0.65rem 0.8rem; cursor: pointer; font: inherit; color: var(--ink); }
.ls-series__sum:hover, .ls-series.is-open .ls-series__sum { background: var(--paper-alt); }
.ls-series__title { font-weight: 600; font-size: 0.9rem; }
.ls-series__count { grid-column: 2; grid-row: 1 / 3; align-self: center; font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-soft); white-space: nowrap; }
.ls-series__bar { grid-column: 1; margin-top: 0.15rem; }
.ls-series__body { display: none; padding: 0.2rem 0.7rem 0.7rem; }
.ls-series.is-open .ls-series__body { display: block; }

/* assigned from roadmap */
.ls-assigned { display: grid; gap: 0.5rem; }
.ls-assign-item { display: flex; align-items: center; gap: 0.7rem; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 9px; padding: 0.6rem 0.75rem; flex-wrap: wrap; }
.ls-assign-item__body { flex: 1; min-width: 8rem; }
.ls-assign-item__t { display: block; font-size: 0.9rem; font-weight: 500; }
.ls-assign-item__m { display: block; font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-soft); margin-top: 0.15rem; }
.ls-pill { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; flex: none; }
.ls-pill.is-done { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-deep); }
.ls-pill.is-progress { background: rgba(138, 90, 12, 0.1); color: #8a5a0c; }
.ls-pill.is-todo { background: var(--paper-alt); color: var(--ink-soft); }
.ls-assign-item__acts { display: flex; gap: 0.4rem; flex-wrap: wrap; }

/* masterclasses & live */
.ls-mcs { display: grid; gap: 0.5rem; }
.ls-mc { display: flex; align-items: flex-start; gap: 0.75rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem 0.85rem; }
.ls-mc__ico { width: 2rem; height: 2rem; border-radius: 7px; background: var(--paper-alt); color: var(--accent); display: grid; place-items: center; flex: none; }
.ls-mc__ico svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ls-mc__body { flex: 1; min-width: 0; }
.ls-mc__t { display: block; font-size: 0.9rem; font-weight: 600; }
.ls-mc__m { display: block; font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-soft); margin-top: 0.15rem; }
.ls-mc__side { flex: none; text-align: right; display: grid; gap: 0.35rem; justify-items: end; }
.ls-mc__price { font-family: var(--font-head); font-size: 1rem; color: var(--ink); }
.ls-owned { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-deep); background: color-mix(in srgb, var(--accent) 12%, transparent); padding: 2px 7px; border-radius: 5px; }
.ls-live { display: flex; align-items: center; gap: 0.6rem; background: var(--paper-alt); border-radius: 9px; padding: 0.55rem 0.7rem; font-size: 0.85rem; flex-wrap: wrap; }
.ls-live__when { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink); flex: none; }
.ls-live__spots { font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-soft); }
.ls-live__act { margin-left: auto; flex: none; }

/* notes / clips / history */
.ls-notes { display: grid; gap: 0.45rem; }
.ls-noteitem { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 0.5rem 0.65rem; font-size: 0.85rem; }
.ls-noteitem__m { font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-soft); }
.ls-noteitem__m b { color: var(--accent-deep); }
.ls-hist { display: grid; gap: 0.4rem; }
.ls-hist__item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; }
.ls-hist__item svg { width: 0.9rem; height: 0.9rem; flex: none; fill: none; stroke: var(--accent); stroke-width: 2.4; }
.ls-hist__when { margin-left: auto; flex: none; font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-soft); }

/* tutor: assign form, students, catalogue */
.ls-compose { display: grid; gap: 0.7rem; }
.ls-compose__row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 0.6rem; align-items: end; }
@media (max-width: 560px) { .ls-compose__row { grid-template-columns: 1fr; } }
.ls-compose label { display: grid; gap: 0.2rem; font-size: 0.85rem; }
.ls-compose label > span { font-family: var(--font-mono); font-size: 0.63rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); }
.ls-compose select { font: inherit; font-family: var(--font-body); font-size: 0.9rem; border: 1px solid var(--line); border-radius: 8px; padding: 0.45rem 0.6rem; background: var(--paper); color: var(--ink); }
.ls-studs { display: grid; gap: 0.5rem; }
.ls-stud { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem 0.85rem; }
.ls-stud__top { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.ls-stud__name { font-weight: 600; font-size: 0.9rem; }
.ls-stud__yr { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-soft); }
.ls-stud__meta { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; margin-top: 0.35rem; font-size: 0.78rem; color: var(--ink-soft); }
.ls-stud__flag { display: inline-flex; align-items: center; gap: 5px; margin-top: 0.45rem; font-size: 0.78rem; color: #8a5a0c; background: rgba(138, 90, 12, 0.1); border-radius: 6px; padding: 4px 8px; }
.ls-stud__flag svg { width: 13px; height: 13px; flex: none; }
.ls-rows { display: grid; gap: 0.4rem; }
.ls-row { display: flex; align-items: center; gap: 0.55rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 0.5rem 0.65rem; font-size: 0.85rem; min-width: 0; }
.ls-row__t { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ls-row__m { flex: none; font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-soft); }
.ls-row__act { flex: none; font: inherit; font-family: var(--font-body); font-size: 0.74rem; border: 1px solid var(--line); background: var(--paper); border-radius: 6px; padding: 0.2rem 0.6rem; cursor: pointer; color: var(--accent-deep); }
.ls-row__act:hover { border-color: var(--accent); }
.ls-feed { display: grid; gap: 0.55rem; }
.ls-feed__item { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.7rem; font-size: 0.86rem; }
@media (max-width: 420px) { .ls-feed__item { grid-template-columns: 1fr; gap: 0.1rem; } }
.ls-feed__when { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-soft); padding-top: 0.1rem; }

/* how it works */
.ls-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin-top: 1.1rem; }
.ls-how__ico { width: 30px; height: 30px; border-radius: 8px; background: var(--paper-alt); color: var(--accent); display: grid; place-items: center; margin-bottom: 0.6rem; }
.ls-how__ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.ls-how__item h3 { font-family: var(--font-body); font-size: 0.98rem; font-weight: 600; margin: 0 0 0.25rem; }
.ls-how__item p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.55; }

.ls-toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%) translateY(0.6rem);
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 9px;
  font-size: 0.85rem; opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease; z-index: 80;
}
.ls-toast.is-shown { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (prefers-reduced-motion: reduce) { .ls-toast { transition: none; } }

/* ---------- Hub — Account ---------- */
.ac { display: grid; gap: 0.9rem; }

.ac-bar { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; }
.ac-toggle { display: inline-flex; gap: 4px; padding: 4px; background: var(--paper-alt); border-radius: 999px; }
.ac-toggle button {
  font: inherit; font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  border: 0; background: transparent; color: var(--ink-soft);
  padding: 0.5rem 1.05rem; border-radius: 999px; cursor: pointer;
}
.ac-toggle button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); }
.ac-toggle button:focus-visible, .ac-logout:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ac-logout { font: inherit; font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; color: var(--accent-deep); border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 0.45rem 1rem; cursor: pointer; text-decoration: none; }
.ac-logout:hover { border-color: var(--accent); }
.ac-signout { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.25rem 1.5rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.ac-signout__title { margin: 0; font-weight: 600; color: var(--ink); }
.ac-signout__note { margin: 0.15rem 0 0; font-size: 0.9rem; color: var(--ink-soft); max-width: 46ch; }
.ac-signout .ac-logout { flex: none; }

.ac-stage { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.ac-status {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem;
  padding: 0.85rem 1.2rem; border-bottom: 1px solid var(--line); background: var(--paper-alt);
  font-size: 0.85rem; color: var(--ink-soft);
}
.ac-status b { color: var(--ink); font-weight: 600; }
.ac-status__sep { color: var(--line-strong); }
@media (max-width: 560px) { .ac-status { flex-direction: column; align-items: flex-start; gap: 0.3rem; } .ac-status__sep { display: none; } }

.ac-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem; padding: 1rem 1.1rem 1.2rem; }
@media (max-width: 680px) { .ac-grid { grid-template-columns: 1fr; } }
.ac-card { background: var(--paper-alt); border-radius: 11px; padding: 0.95rem 1.05rem 1.1rem; min-width: 0; }
.ac-card--wide { grid-column: 1 / -1; }
.ac-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.7rem; flex-wrap: wrap; }
.ac-card__head h3 { margin: 0; font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; }
.ac-card__link { font-size: 0.78rem; color: var(--accent-deep); text-decoration: none; white-space: nowrap; background: none; border: 0; cursor: pointer; font-family: var(--font-body); }
.ac-card__link:hover { text-decoration: underline; }
.ac-subhead { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin: 1rem 0 0.4rem; }
.ac-subhead:first-child { margin-top: 0; }
.ac-note { font-size: 0.78rem; color: var(--ink-soft); margin: 0.5rem 0 0; }
.ac-caption { font-size: 0.8rem; margin: 0; }

/* editable fields */
.ac-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
@media (max-width: 520px) { .ac-fields { grid-template-columns: 1fr; } }
.ac-field { display: grid; gap: 0.2rem; }
.ac-field > span { font-family: var(--font-mono); font-size: 0.63rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); }
.ac-field input, .ac-field select {
  font: inherit; font-family: var(--font-body); font-size: 0.9rem;
  border: 1px solid var(--line); border-radius: 8px; padding: 0.45rem 0.6rem;
  background: var(--paper); color: var(--ink);
}
.ac-field input:read-only { background: var(--paper-alt); color: var(--ink-soft); }

/* key/value read-only rows */
.ac-kv { display: grid; gap: 0.5rem; }
.ac-kv > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.6rem; font-size: 0.88rem; }
@media (max-width: 520px) { .ac-kv > div { grid-template-columns: 1fr; gap: 0.1rem; } }
.ac-kv dt, .ac-kv > div > span:first-child { color: var(--ink-soft); font-size: 0.85rem; }
.ac-kv dd, .ac-kv > div > span:last-child { margin: 0; }
.ac-kv b { font-weight: 600; }

/* plan */
.ac-plan__name { font-family: var(--font-head); font-size: 1.15rem; color: var(--ink); }
.ac-plan__detail { font-size: 0.86rem; color: var(--ink-soft); margin-top: 0.1rem; }
.ac-plan__price { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent-deep); margin-top: 0.3rem; }
.ac-includes { margin: 0.7rem 0 0; padding-left: 1.1rem; display: grid; gap: 0.25rem; font-size: 0.86rem; color: var(--ink-soft); }
.ac-includes li::marker { color: var(--accent); }

/* billing */
.ac-invoices { display: grid; gap: 0.3rem; }
.ac-invoice { display: flex; align-items: center; gap: 0.6rem; font-size: 0.84rem; padding: 0.35rem 0.1rem; border-bottom: 1px solid var(--line); }
.ac-invoice:last-child { border-bottom: 0; }
.ac-invoice__date { font-family: var(--font-mono); font-size: 0.72rem; flex: none; width: 5rem; }
.ac-invoice__amt { font-variant-numeric: tabular-nums; flex: none; }
.ac-invoice__status { font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--accent-deep); flex: none; }
.ac-invoice__dl { margin-left: auto; flex: none; border: 0; background: none; color: var(--accent-deep); cursor: pointer; display: grid; place-items: center; padding: 2px; }
.ac-invoice__dl svg { width: 0.95rem; height: 0.95rem; fill: none; stroke: currentColor; stroke-width: 2; }
.ac-nextinv { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 0.6rem 0.75rem; font-size: 0.86rem; }
.ac-nextinv b { font-family: var(--font-head); font-size: 1rem; }
.ac-nextinv span { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-soft); }
.ac-method { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; margin-top: 0.5rem; }
.ac-method svg { width: 1.5rem; height: 1.1rem; flex: none; }

/* sessions */
.ac-sess__slot { font-family: var(--font-head); font-size: 1.05rem; color: var(--ink); }
.ac-meter { display: flex; align-items: center; gap: 0.6rem; margin: 0.6rem 0; }
.ac-meter__bar { flex: 1; height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.ac-meter__fill { display: block; height: 100%; background: var(--accent); border-radius: 999px; width: var(--v, 0%); }
.ac-meter__n { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-soft); flex: none; }

/* people with access */
.ac-person { display: flex; align-items: flex-start; gap: 0.75rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0.75rem 0.85rem; }
.ac-person__ava { width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-size: 0.9rem; flex: none; }
.ac-person__body { flex: 1; min-width: 0; }
.ac-person__name { font-weight: 600; font-size: 0.9rem; }
.ac-person__rel { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-soft); }
.ac-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.45rem; }
.ac-chip { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.03em; padding: 2px 7px; border-radius: 5px; background: var(--paper-alt); color: var(--ink-soft); }
.ac-chip.is-yes { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent-deep); }
.ac-chip.is-no { background: rgba(138, 90, 12, 0.1); color: #8a5a0c; }
.ac-person__act { flex: none; }

/* can/cannot list */
.ac-access { display: grid; gap: 0.4rem; margin: 0.3rem 0 0; }
.ac-access li { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.87rem; color: var(--ink-soft); list-style: none; }
.ac-access li svg { width: 0.95rem; height: 0.95rem; flex: none; margin-top: 0.15rem; fill: none; stroke-width: 2.4; }
.ac-access li.is-yes svg { stroke: var(--accent); }
.ac-access li.is-no svg { stroke: #8a5a0c; }

/* notification switches */
.ac-notifs { display: grid; gap: 0.55rem; }
.ac-notif { display: flex; align-items: center; gap: 0.8rem; }
.ac-notif__body { flex: 1; min-width: 0; }
.ac-notif__label { font-size: 0.9rem; font-weight: 500; }
.ac-notif__desc { font-size: 0.8rem; color: var(--ink-soft); }
.ac-notif__via { font-family: var(--font-mono); font-size: 0.64rem; color: var(--ink-soft); flex: none; }
.ac-switch { position: relative; display: inline-block; width: 2.3rem; height: 1.3rem; flex: none; }
.ac-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.ac-switch__track { position: absolute; inset: 0; background: var(--line-strong); border-radius: 999px; transition: background 0.15s ease; }
.ac-switch__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: calc(1.3rem - 4px); height: calc(1.3rem - 4px); background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.15s ease; }
.ac-switch input:checked + .ac-switch__track { background: var(--accent); }
.ac-switch input:checked + .ac-switch__track::after { transform: translateX(1rem); }
.ac-switch input:focus-visible + .ac-switch__track { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .ac-switch__track, .ac-switch__track::after { transition: none; } }

/* security / actions */
.ac-actions { display: grid; gap: 0.4rem; }
.ac-action { display: flex; align-items: center; gap: 0.6rem; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 0.55rem 0.7rem; font: inherit; font-size: 0.86rem; color: var(--ink); cursor: pointer; }
.ac-action:hover { border-color: var(--gold); }
.ac-action:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ac-action__sub { margin-left: auto; flex: none; font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-soft); }
.ac-action--danger { color: var(--accent-deep); }

/* contact composer (parent) */
.ac-compose { display: grid; gap: 0.6rem; }
.ac-compose textarea { font: inherit; font-family: var(--font-body); font-size: 0.9rem; border: 1px solid var(--line); border-radius: 9px; padding: 0.55rem 0.7rem; resize: vertical; min-height: 3.5rem; background: var(--paper); color: var(--ink); }

/* how it works */
.ac-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin-top: 1.1rem; }
.ac-how__ico { width: 30px; height: 30px; border-radius: 8px; background: var(--paper-alt); color: var(--accent); display: grid; place-items: center; margin-bottom: 0.6rem; }
.ac-how__ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.ac-how__item h3 { font-family: var(--font-body); font-size: 0.98rem; font-weight: 600; margin: 0 0 0.25rem; }
.ac-how__item p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.55; }

.ac-toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%) translateY(0.6rem);
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 9px;
  font-size: 0.85rem; opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease; z-index: 80;
}
.ac-toast.is-shown { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (prefers-reduced-motion: reduce) { .ac-toast { transition: none; } }

/* ---------- Tools ---------- */
.tool-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.tool-grid { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; align-items: start; }
@media (max-width: 820px) { .tool-grid { grid-template-columns: 1fr; } }
.tool-output { display: grid; gap: 1rem; }
.metric {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  background: var(--paper);
}
.metric .metric-num { font-family: var(--font-head); font-size: 1.8rem; color: var(--accent); line-height: 1; }
.metric .metric-label { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.3rem; }
.metric-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.readout { font-size: 0.95rem; }
.readout strong { display: block; font-family: var(--font-head); font-size: 1.15rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0 0; }
.chip {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--ink-soft);
}
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: #fff; }
.generated-prompt {
  font-family: var(--font-head);
  font-size: 1.3rem;
  line-height: 1.4;
  background: var(--paper-alt);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--line);
}
.beta-banner {
  display: flex; gap: 0.75rem; align-items: flex-start;
  background: rgba(95, 138, 114, 0.1);
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  font-size: 0.92rem;
}

/* ---------- Search / filter (resource indexes) ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-bottom: 2rem; }
.filter-bar input[type="search"] { max-width: 320px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font: inherit; font-size: 0.85rem;
  cursor: pointer; color: var(--ink-soft);
}
.pill[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.resource-list { display: grid; gap: 1rem; }
.resource-item {
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.35rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.resource-item:hover { transform: translateX(3px); box-shadow: var(--shadow); }
.resource-item h3 { margin: 0 0 0.2rem; font-size: 1.08rem; }
.resource-item p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.resource-item .cat { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); font-weight: 700; white-space: nowrap; }
.resource-item:has(.resource-item__cover) { align-items: center; }
.resource-item__cover {
  width: 58px; height: 86px; flex: none;
  object-fit: cover;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: 5px;
}
.resource-item__text { flex: 1; min-width: 0; }
.empty-state { text-align: center; color: var(--ink-soft); padding: 2rem; }

/* ---------- Video / product cards ---------- */
.media-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.media-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #e4efe8, #cfe1d6);
  display: grid; place-items: center;
  position: relative;
}
.media-thumb .play {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(27, 35, 48, 0.8);
  display: grid; place-items: center;
}
.media-thumb .play svg { width: 22px; height: 22px; fill: #fff; margin-left: 3px; }
.media-card .body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.media-card .body h3 { margin: 0; }
.media-card .price-line { font-family: var(--font-head); font-size: 1.2rem; color: var(--ink); }
.media-card .btn { margin-top: auto; }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding: clamp(2.6rem, 6vw, 4.25rem) 0 clamp(1.75rem, 4vw, 2.75rem); background: var(--paper-alt); border-bottom: 1px solid var(--line); }
.page-hero .lede { margin-top: 0.5rem; }
.breadcrumb { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 0.9rem; }
.breadcrumb a { color: var(--ink-soft); }

/* ---------- Prose ---------- */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.prose blockquote {
  margin: 1.5rem 0;
  padding: 0.75rem 0 0.75rem 1.25rem;
  border-left: 3px solid var(--accent);
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- Article ---------- */
.article-meta { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.75rem; }
.article-meta a { color: var(--ink-soft); }
.article-body { max-width: 72ch; }
.article-body > p:first-child { font-size: 1.15rem; color: var(--ink); }
.article-callout {
  margin: 2.5rem 0;
  padding: 1.5rem 1.6rem;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.article-callout h3 { margin-top: 0; }
.article-callout p:last-child { margin-bottom: 0; }
.article-back { display: inline-flex; gap: 0.4rem; align-items: center; font-weight: 600; text-decoration: none; }
.table-scroll { overflow-x: auto; margin: 1.5rem 0; -webkit-overflow-scrolling: touch; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.92rem; min-width: 460px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 0.6rem 0.8rem; text-align: left; vertical-align: top; }
.prose thead th { background: var(--paper-alt); font-family: var(--font-head); font-weight: 550; }

/* Blog list thumbnails + date */
.resource-item:has(.resource-item__thumb) { align-items: center; }
.resource-item__thumb {
  width: 132px; height: 88px; flex: none;
  object-fit: cover;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
}
@media (max-width: 560px) { .resource-item__thumb { display: none; } }
.resource-item__date {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--ink-soft);
}

/* Article hero image + in-body figures + related reading */
.article-hero-media { margin: 2rem 0 0; }
.article-hero-media img {
  display: block;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.article-figure { margin: 2.25rem 0; }
.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.article-figure figcaption {
  margin-top: 0.55rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.article-related { margin: 2.5rem 0 0; }
.article-related h3 {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
}
.article-related ul { margin: 0; padding-left: 1.15rem; }
.article-related li { margin-bottom: 0.3rem; font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9c2d2; padding: 3.5rem 0 2rem; font-size: 0.92rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { color: #fff; margin-bottom: 0.75rem; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.site-footer a { color: #b9c2d2; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-top: 1.75rem; font-size: 0.85rem; color: #8b96a8;
}
.footer-social { display: flex; gap: 1rem; }
.footer-social a { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.18); border-radius: 50%; }
.footer-social svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.disclaimer { max-width: 66ch; }

/* ---------- Motion / a11y ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link { position: absolute; left: -999px; }
.skip-link:focus {
  left: 1rem; top: 0.5rem;
  background: #fff; color: var(--ink);
  padding: 0.6rem 1rem; border-radius: 8px; z-index: 100;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ========== Essay marker ========== */
:root {
  --mk-material: #b5561d;
  --mk-material-bg: #fbeee4;
  --mk-supporting: #7a6a1f;
  --mk-supporting-bg: #f6f1de;
  --mk-flag: #5f7d8c;
  --mk-flag-bg: #eef3f5;
}

.marker-app { margin-top: 1.5rem; }

/* --- submission form --- */
.marker-form { display: grid; gap: 1.25rem; max-width: 46rem; }
.marker-form label { font-weight: 600; font-size: 0.92rem; display: block; margin-bottom: 0.35rem; }
.marker-form .hint { font-weight: 400; color: var(--ink-soft); font-size: 0.85rem; }
.marker-form textarea { min-height: 3.5rem; }
.marker-form textarea#mk-essay { min-height: 16rem; font-size: 0.98rem; line-height: 1.6; }
.marker-row { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .marker-row { grid-template-columns: 1fr 1fr; } }
.dropzone {
  border: 1.5px dashed var(--line-strong, var(--line)); border-radius: 12px;
  padding: 1.4rem; text-align: center; color: var(--ink-soft); font-size: 0.92rem;
  background: var(--paper-alt); transition: border-color 0.15s, background 0.15s;
}
.dropzone.is-drag { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--paper-alt)); color: var(--ink); }
.dropzone.is-busy { border-color: var(--accent); opacity: 0.75; pointer-events: none; }
.dropzone.is-busy .browse { pointer-events: none; }
.dropzone.has-file { border-style: solid; border-color: var(--ok, var(--accent)); background: color-mix(in srgb, var(--accent) 7%, var(--paper-alt)); color: var(--ink); }
.dropzone.has-file .dz-main strong:first-child { color: var(--accent-deep); }
.dropzone .dz-remove {
  background: none; border: 0; padding: 0; font: inherit; color: var(--accent-deep);
  text-decoration: underline; cursor: pointer;
}
.dropzone input[type=file] { display: none; }
.dropzone .browse { color: var(--accent-deep); font-weight: 600; text-decoration: underline; cursor: pointer; }
.marker-form textarea#mk-essay:disabled { opacity: 0.5; cursor: not-allowed; background: var(--paper-alt); }
.marker-fineprint { font-size: 0.85rem; color: var(--ink-soft); max-width: 46rem; }
.marker-fineprint strong { color: var(--ink); }
.mk-status { font-weight: 600; margin-top: 0.75rem; }
.mk-status.err { color: var(--accent-deep); }
.mk-status .btn { margin-left: 0.5rem; vertical-align: baseline; }
.mk-back { margin: 0 0 1.25rem; }
.mk-back button {
  background: var(--paper-alt); border: 1px solid var(--line-strong, var(--line)); border-radius: 999px;
  padding: 0.45rem 1rem; font: inherit; font-size: 0.9rem; color: var(--accent-deep); cursor: pointer;
}
.mk-back button:hover { background: color-mix(in srgb, var(--accent) 10%, var(--paper-alt)); }
.mk-ocr-note {
  background: var(--mk-supporting-bg, #f6f1de); border-left: 3px solid var(--mk-supporting, #7a6a1f);
  border-radius: 6px; padding: 0.7rem 0.9rem; margin: 0 0 0.6rem; font-size: 0.9rem; line-height: 1.5;
}
.mk-ocr-note strong { color: var(--ink); }

/* --- result: two-pane, wider than the page column so the essay reads like a page --- */
/* wider than the page column; negative margin (not transform, which would trap
   the fixed-position detail card) */
#mk-result-view:not([hidden]) {
  width: min(96vw, 1320px);
  margin-left: calc((100% - min(96vw, 1320px)) / 2);
  margin-right: calc((100% - min(96vw, 1320px)) / 2);
}
.marker-result { display: grid; gap: 1.75rem; }
@media (min-width: 62rem) {
  .marker-result { grid-template-columns: minmax(0, 1.85fr) minmax(16rem, 0.85fr); align-items: start; }
}
.essay-pane {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.4rem clamp(1.6rem, 4vw, 3.25rem); font-size: 1.02rem; line-height: 1.9; white-space: pre-wrap;
  overflow-wrap: break-word;
}
@media (min-width: 62rem) { .essay-pane { position: sticky; top: 1.5rem; max-height: calc(100vh - 3rem); overflow-y: auto; } }
.essay-pane mark {
  background: none; color: inherit; padding: 0.05em 0; border-radius: 2px;
  cursor: pointer; transition: background 0.15s;
}
.essay-pane mark.m-material {
  background: var(--mk-material-bg); box-shadow: inset 0 -0.18em 0 var(--mk-material);
  font-weight: 600;
}
.essay-pane mark.m-supporting { background: var(--mk-supporting-bg); box-shadow: inset 0 -2px 0 var(--mk-supporting); }
.essay-pane mark.m-flag { box-shadow: inset 0 -2px 0 var(--mk-flag); }
.essay-pane mark.is-active { background: color-mix(in srgb, var(--accent) 20%, transparent); box-shadow: inset 0 -0.18em 0 var(--accent); }

/* --- feedback rail --- */
.fb-rail { display: grid; gap: 1.25rem; }
.mark-hero {
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 1.4rem 1.5rem;
}
.mark-hero .score { font-family: var(--font-head); font-size: 2.6rem; line-height: 1; }
.mark-hero .score small { font-size: 1rem; opacity: 0.7; font-family: var(--font-body); }
.mark-hero .band { font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.85; margin-top: 0.35rem; }
.mark-hero .disclaimer { font-size: 0.88rem; opacity: 0.8; margin: 0.9rem 0 0; font-style: italic; }
.mark-hero .capped { margin-top: 0.75rem; font-size: 0.82rem; background: rgba(255,255,255,0.12); padding: 0.4rem 0.6rem; border-radius: 6px; }

.fb-group h3 {
  font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 0.6rem;
}
.fb-loading {
  color: var(--ink-soft); font-size: 0.92rem;
  padding: 0.95rem 1.05rem; border: 1px solid var(--line-strong, var(--line)); border-radius: 8px;
  background: var(--paper-alt);
}
.fb-spin {
  display: inline-block; width: 0.85em; height: 0.85em; margin-right: 0.5em; vertical-align: -1px;
  border: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); border-top-color: var(--accent);
  border-radius: 50%; animation: fb-rot 0.8s linear infinite;
}
@keyframes fb-rot { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .fb-spin { animation: none; } }
.fb-hint {
  font-size: 0.9rem; color: var(--ink-soft); line-height: 1.55;
  padding: 0.85rem 1rem; background: var(--paper-alt); border-radius: 8px; margin: 0;
}
.fb-hint mark { padding: 0 0.25em; }
.fb-card {
  border: 1px solid var(--line); border-left: 3px solid var(--line-strong, var(--line));
  border-radius: 8px; padding: 0.8rem 0.95rem; margin-bottom: 0.6rem; cursor: pointer;
  font-size: 0.93rem; background: var(--card); transition: transform 0.12s, box-shadow 0.12s;
}
.fb-card:hover { transform: translateX(2px); box-shadow: var(--shadow); }
.fb-card:last-child { margin-bottom: 0; }
.fb-card.c-material { border-left-color: var(--mk-material); }
.fb-card.c-supporting { border-left-color: var(--mk-supporting); }
.fb-card.c-flag { border-left-color: var(--mk-flag); font-size: 0.88rem; color: var(--ink-soft); }
.fb-card.is-active { box-shadow: 0 0 0 2px var(--accent); }
.fb-card .tag { font-family: var(--font-body); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; display: block; margin-bottom: 0.25rem; }
.fb-card.c-material .tag { color: var(--mk-material); }
.fb-card.c-supporting .tag { color: var(--mk-supporting); }

/* --- detail card popover --- */
.detail-card {
  position: fixed; z-index: 50; inset: auto; max-width: min(30rem, 92vw);
  background: var(--card); border: 1px solid var(--line-strong, var(--line)); border-radius: 12px;
  box-shadow: var(--shadow); padding: 1.25rem 1.4rem; font-size: 0.94rem;
}
.detail-card[hidden] { display: none; }
.detail-card .dc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.6rem; }
.detail-card .dc-skill { font-family: var(--font-body); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-deep); font-weight: 700; }
.detail-card .dc-skill.c-material { color: var(--mk-material); }
.detail-card .dc-skill.c-supporting { color: var(--mk-supporting); }
.detail-card .dc-skill.c-flag { color: var(--mk-flag); }
.detail-card .dc-close { background: none; border: 0; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--ink-soft); padding: 0; }
.detail-card h4 { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin: 0.9rem 0 0.3rem; font-family: var(--font-body); }
.detail-card ul { margin: 0; padding-left: 1.1rem; }
.detail-card li { margin-bottom: 0.25rem; }
.detail-card .rw { font-style: italic; color: var(--ink-soft); }
.detail-card .dc-nav { display: flex; justify-content: space-between; margin-top: 1rem; font-size: 0.85rem; }
.detail-card .dc-nav button { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.8rem; cursor: pointer; font: inherit; color: var(--ink); }
.detail-card .dc-nav button[disabled] { opacity: 0.4; cursor: default; }

/* --- rubric readout --- */
.rubric-readout { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rubric-readout details { border-bottom: 1px solid var(--line); }
.rubric-readout details:last-child { border-bottom: 0; }
.rubric-readout summary {
  list-style: none; cursor: pointer; padding: 0.85rem 1.1rem; display: flex; align-items: center; gap: 0.8rem;
  font-size: 0.94rem;
}
.rubric-readout summary::-webkit-details-marker { display: none; }
.rubric-readout summary .sk { flex: 1; }
.rubric-readout .pill {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.2rem 0.6rem; border-radius: 999px; white-space: nowrap;
}
.pill.b-very-low, .pill.b-low { background: var(--mk-material-bg); color: var(--mk-material); }
.pill.b-medium { background: var(--mk-supporting-bg); color: var(--mk-supporting); }
.pill.b-high, .pill.b-very-high { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-deep); }
.rubric-readout details > p { padding: 0 1.1rem 0.95rem; margin: 0; font-size: 0.92rem; color: var(--ink-soft); }

/* --- exec summary + stats --- */
.exec-summary { background: var(--paper-alt); border-radius: var(--radius); padding: 1.5rem 1.6rem; }
.exec-summary h3 { margin-top: 0; }
.exec-summary ol.priorities { padding-left: 1.3rem; }
.exec-summary ol.priorities li { margin-bottom: 0.5rem; }
.exec-summary .next-band { margin: 1rem 0 0; padding-left: 1rem; border-left: 3px solid var(--accent); font-style: italic; color: var(--ink-soft); }
.mk-stats { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.85rem; color: var(--ink-soft); margin-top: 1rem; }
.mk-stats b { color: var(--ink); font-weight: 600; }

.para-feedback { display: grid; gap: 1rem; margin-top: 1.5rem; }
.para-feedback .pf {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; font-size: 0.93rem;
}
.para-feedback .pf-role { font-weight: 650; margin-bottom: 0.5rem; }
.para-feedback .pf h4 { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin: 0.75rem 0 0.25rem; font-family: var(--font-body); }
.para-feedback .pf ul, .para-feedback .pf ol { margin: 0; padding-left: 1.1rem; }
.para-feedback .pf .rw { font-style: italic; color: var(--ink-soft); }

.mk-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* --- "Save as PDF" (the browser's print-to-PDF) of a marker result --- */
@media print {
  .site-header, .site-footer, #mk-form-view, .page-hero,
  .section--ink, .mk-actions, #mk-detail { display: none !important; }
  .section { padding: 0 !important; }
  .wrap { max-width: none !important; padding: 0 !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .mark-hero { background: none !important; color: #000 !important; border: 1px solid #000; padding: 0.6rem 1rem; }
  .mark-hero .score { color: #000; }
  .marker-result { display: block; }
  .essay-pane { position: static !important; max-height: none !important; overflow: visible !important;
    border: 1px solid #999; page-break-inside: auto; }
  .essay-pane mark { border-bottom: 1.5px solid #000 !important; background: none !important; }
  .fb-rail { margin-top: 1rem; }
  .fb-group.priorities { position: static !important; }
  .fb-card, .para-feedback .pf, .exec-summary, .rubric-readout details { page-break-inside: avoid; }
  .rubric-readout details > p { display: block !important; }
  .rubric-readout details { border-bottom: 1px solid #999; }
  a { color: #000; text-decoration: none; }
}

/* =============================================================
   Bento hero (home page)
   A 4-col grid of mostly-visual tiles. The hero teases; the
   clickable service offerings live further down the page in
   "Pick the support that fits". Transitions into the normal
   one-column page at the "method" section.
   ============================================================= */
.bento { padding: clamp(1.5rem, 4vw, 2.75rem) 0 clamp(2.5rem, 6vw, 4rem); }
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(196px, auto);
  gap: 14px;
}

.bento-tile {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  padding: clamp(1.15rem, 2vw, 1.7rem);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
.bento-tile[data-span="2x2"] { grid-column: span 2; grid-row: span 2; }
.bento-tile[data-span="2x1"] { grid-column: span 2; }
.bento-tile[data-span="4x1"] { grid-column: span 4; }

.bento-tile h3 { font-size: 1.35rem; margin: 0; }
.bento-tile p  { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }
.bento-tile .eyebrow { margin-bottom: 0.15rem; }

/* surfaces */
.bento-tile--cream     { background: var(--cream); border-color: var(--cream-deep); }
.bento-tile--palegreen { background: var(--paper-alt); border-color: var(--line-strong); }
.bento-tile--forest    { background: var(--forest); border-color: #22392c; color: #e7efe9; }
.bento-tile--forest h3 { color: #fff; }
.bento-tile--forest p  { color: #adc1b6; }

/* clickable */
.bento-tile--link { text-decoration: none; cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.bento-tile--link:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.bento-tile--link:focus-visible { outline: 3px solid var(--leaf); outline-offset: 2px; }
.bento-tile .go {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--accent-deep);
}
.bento-tile--forest .go { color: #fff; }
.bento-tile .arw { transition: transform 0.18s ease; }
.bento-tile--link:hover .arw { transform: translateX(4px); }

/* headline tile */
.bento-headline h1 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin: 0.15rem 0; }
.bento-headline .lede { font-size: 1rem; margin: 0; max-width: 34ch; }
.bento-headline .hero-actions { margin-top: auto; }
.bento-headline .hero-note { margin: 0.55rem 0 0; }
.bento-headline .announce { margin: 0 0 0.35rem; }

/* ---- animated marker tile ---- */
.mk .eyebrow { color: var(--leaf); }
.mk-paper {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.62rem;
  margin: 0.5rem 0;
}
.mk-row { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.14); }
.mk-row.w80 { width: 80%; }
.mk-row.w60 { width: 60%; }
.mk-row.hl { position: relative; overflow: hidden; }
.mk-row.hl .mk-hl {
  position: absolute;
  inset: 0;
  width: 0;
  background: var(--leaf);
  border-radius: 4px;
  animation: mkSweep 7s ease-in-out infinite;
}
.mk-note {
  margin-top: 0.35rem;
  padding-left: 0.7rem;
  border-left: 3px solid var(--leaf);
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: #d3e2da;
  opacity: 0;
  transform: translateY(6px);
  animation: mkNote 7s ease-in-out infinite;
}
.mk-foot { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.7rem; }
.mk-gauge { position: relative; width: 58px; height: 58px; flex: none; }
.mk-gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.mk-gauge circle { fill: none; stroke-width: 9; }
.mk-gauge .bg { stroke: rgba(255, 255, 255, 0.14); }
.mk-gauge .fg {
  stroke: var(--leaf);
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  animation: mkGauge 7s ease-in-out infinite;
}
.mk-gauge .mk-score {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  font-family: var(--font-head);
  line-height: 1;
}
.mk-gauge .mk-score b { font-size: 1.05rem; color: #fff; }
.mk-gauge .mk-score span { font-size: 0.55rem; color: #9fb6aa; }
.mk-cap { font-size: 0.74rem; color: #9fb6aa; font-family: var(--font-body); }
@keyframes mkGauge {
  0%, 8%   { stroke-dashoffset: 283; }
  40%, 88% { stroke-dashoffset: 57; }
  100%     { stroke-dashoffset: 283; }
}
@keyframes mkSweep {
  0%, 12%  { width: 0; }
  36%, 90% { width: 100%; }
  100%     { width: 0; }
}
@keyframes mkNote {
  0%, 44%  { opacity: 0; transform: translateY(6px); }
  56%, 88% { opacity: 1; transform: translateY(0); }
  100%     { opacity: 0; transform: translateY(6px); }
}

/* ---- rotating featurette (one service at a time) ---- */
.rot { display: grid; }
.rot > .rot-item {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.4s ease;
}
.rot > .rot-item.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition: opacity 0.45s ease 0.12s, transform 0.45s ease 0.12s;
}
.rot-dots { position: absolute; z-index: 6; display: flex; gap: 0.35rem; bottom: 0.8rem; right: 0.9rem; }
.rot-dots button {
  width: 7px; height: 7px; padding: 0;
  border: 0; border-radius: 50%;
  background: rgba(22, 38, 31, 0.22);
  cursor: pointer;
}
.rot-dots button[aria-current="true"] { background: var(--accent); }

.feat { padding: 0; }
.feat .rot { position: absolute; inset: 0; }
.feat .rot-dots { top: 0.9rem; right: 1rem; bottom: auto; }
.feat-slide {
  display: flex;
  flex-direction: column;
  padding: clamp(1.15rem, 2vw, 1.7rem);
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
}
.feat-slide:nth-child(1) { background: var(--paper-alt); }
.feat-slide:nth-child(2) { background: var(--cream); }
.feat-slide:nth-child(3) { background: var(--paper); }
.feat-slide:nth-child(4) { background: var(--paper-alt); }
.feat-slide:focus-visible { outline: 3px solid var(--leaf); outline-offset: -3px; }
.feat-glyph {
  flex: 1;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: radial-gradient(circle at 50% 44%, rgba(31, 122, 77, 0.12), transparent 62%);
}
.feat-glyph svg { width: 42%; max-width: 120px; height: auto; fill: none; stroke: currentColor; stroke-width: 1.4; }
.feat-slide h3 { font-size: clamp(1.4rem, 2.6vw, 1.95rem); margin-top: 0.2rem; }
.feat-meta { display: flex; align-items: center; gap: 0.55rem; margin-top: 0.45rem; font-weight: 600; font-size: 0.86rem; color: var(--accent-deep); }
.feat-price {
  background: var(--ok-soft);
  color: var(--accent-deep);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.78rem;
}

/* ---- collages (photo grid + overlay) ---- */
.collage { padding: 0; }
.collage .tile-body {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: clamp(1.15rem, 2vw, 1.7rem);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.collage .photo-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
}
.collage .photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.collage .cell {
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: #fff;
  background: var(--accent);
}
.collage .cell:nth-child(3n) { background: var(--accent-deep); }
.collage .cell:nth-child(4n) { background: var(--leaf); color: #06170e; }
.collage .cell:nth-child(7n) { background: var(--forest); }
.collage .overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(184deg, rgba(14, 31, 22, 0.1) 10%, rgba(14, 31, 22, 0.72) 55%, rgba(14, 31, 22, 0.96) 88%);
}
.collage .tile-body { color: #fff; }
.collage .tile-body .eyebrow { color: #cfe7da; }
.collage .tile-body .go { color: #fff; }

.collage .cs-chip {
  margin: 0;
  background: rgba(7, 18, 12, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #eef4f0;
}

/* texts-and-quotes collage — same treatment as the student grid */
.collage-texts .photo-grid img { filter: saturate(0.9) brightness(0.8); }
.collage-texts .overlay { background: linear-gradient(200deg, rgba(14, 31, 22, 0.35) 0%, rgba(14, 31, 22, 0.88) 74%); }
.collage-texts .rot { position: relative; z-index: 2; }
.collage-texts blockquote {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 1.9vw, 1.55rem);
  line-height: 1.28;
  color: #fff;
}
.collage-texts cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #bfe0cd;
}
.collage-texts .rot-dots button { background: rgba(255, 255, 255, 0.38); }
.collage-texts .rot-dots button[aria-current="true"] { background: #fff; }

/* tutor collage strip */
.collage-tutors .ct-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  height: 96px;
}
.collage-tutors .ct-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--paper-alt);
  color: var(--ink-soft);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.collage-tutors .ct-face::before {
  content: "";
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #cfe0d6;
  margin-bottom: 0.3rem;
  box-shadow: 0 13px 0 -4px #cfe0d6;
}
.collage-tutors .tile-body { color: var(--ink); }
.collage-tutors .tile-body .eyebrow { color: var(--accent); }
.collage-tutors .tile-body .go { color: var(--accent-deep); }

/* small text / quote tiles */
.text-tile { background: var(--cream); border-color: var(--cream-deep); }
.text-tile .covers { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; }
.text-tile .covers img {
  width: 46px;
  height: 69px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 8px 16px -8px rgba(0, 0, 0, 0.45);
  background: var(--paper-alt);
}
.text-tile .covers img:nth-child(2) { transform: rotate(3deg); }
.text-tile .tt-line {
  font-family: var(--font-head);
  font-size: 1.05rem;
  line-height: 1.32;
  color: var(--ink);
  margin: 0;
  border: 0;
  padding: 0;
}
.text-tile .tt-cite {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.7rem;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

/* stat ribbon — the hinge into the normal page */
.bento-stats {
  background: var(--forest);
  border-color: #22392c;
  color: #e7efe9;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1.75rem;
}
.bento-stats .bs { flex: 1 1 9rem; }
.bento-stats .bs b {
  display: block;
  font-family: var(--font-head);
  font-weight: 550;
  font-size: 1.04rem;
  color: #fff;
}
.bento-stats .bs span { font-size: 0.78rem; color: #9fb6aa; }

/* scroll-in (added by JS via [data-animate]; no-JS = fully visible) */
.bento-grid[data-animate] .bento-tile {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.bento-grid[data-animate] .bento-tile.in { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-tile[data-span="4x1"], .bento-tile[data-span="2x1"] { grid-column: span 2; }
}
@media (max-width: 620px) {
  .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento-tile, .bento-tile[data-span] { grid-column: auto; grid-row: auto; min-height: 200px; }
  .bento-tile[data-span="2x2"] { min-height: 300px; }
  .bento-tile.collage-students, .bento-tile.collage-texts { min-height: 420px; }
  .collage .cell { font-size: 1.15rem; }
  .bento-stats { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .bento-stats .bs { flex: 0 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .bento-grid[data-animate] .bento-tile { opacity: 1; transform: none; transition: none; }
  .mk-gauge .fg { animation: none; stroke-dashoffset: 57; }
  .mk-row.hl .mk-hl { animation: none; width: 100%; }
  .mk-note { animation: none; opacity: 1; transform: none; }
  .rot > .rot-item { transition: none; }
}

/* =============================================================
   VCE Text Guides — page components (.tg-*)
   Used by text-*.html. Content sits on white (.section).
   ============================================================= */
.tg { max-width: 74ch; }
.tg h2 { margin-top: 0; }
.tg > section + section { margin-top: 3.25rem; }
.tg-sec__head { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 1rem; }
.tg-sec__head h2 { margin: 0; }
.tg-sec__num {
  font-family: var(--font-head);
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  flex: none;
}

/* --- Table of contents chips --- */
.tg-toc { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 0; }
.tg-toc a {
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
}
.tg-toc a:hover { color: var(--accent-deep); border-color: var(--line-strong); }

/* --- At-a-glance snapshot --- */
.tg-snapshot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5rem 0 0;
}
.tg-snapshot div { background: var(--card); padding: 0.9rem 1.1rem; }
.tg-snapshot dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.tg-snapshot dd { margin: 0; font-size: 0.95rem; color: var(--ink); }

/* --- Section highlight: large italic pull quote --- */
.tg-highlight {
  margin: 3.25rem 0;
  padding: 2rem 0 2rem 1.75rem;
  border-left: 4px solid var(--accent);
}
.tg-highlight blockquote {
  margin: 0;
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  line-height: 1.35;
  color: var(--ink);
}
.tg-highlight cite {
  display: block;
  margin-top: 0.9rem;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

/* --- Theme cards --- */
.tg-themes { display: grid; gap: 1rem; margin-top: 1.25rem; }
@media (min-width: 640px) { .tg-themes { grid-template-columns: 1fr 1fr; } }
.tg-theme {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
}
.tg-theme h3 { margin: 0 0 0.4rem; font-size: 1.08rem; }
.tg-theme p { margin: 0 0 0.6rem; font-size: 0.94rem; color: var(--ink-soft); }
.tg-theme p:last-child { margin-bottom: 0; }
.tg-theme .tg-theme__ev {
  font-size: 0.85rem;
  color: var(--ink);
  border-top: 1px dashed var(--line-strong);
  padding-top: 0.6rem;
}
.tg-theme .tg-theme__ev b { font-weight: 600; color: var(--accent-deep); }

/* --- Character / structure cards --- */
.tg-cast { display: grid; gap: 0.9rem; margin-top: 1.25rem; }
@media (min-width: 620px) { .tg-cast { grid-template-columns: 1fr 1fr; } }
.tg-cast__item {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.15rem;
}
.tg-cast__item h3 { margin: 0 0 0.15rem; font-size: 1rem; }
.tg-cast__item .role {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.tg-cast__item p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }

/* --- Key passages timeline --- */
.tg-passages { list-style: none; counter-reset: pass; margin: 1.25rem 0 0; padding: 0; }
.tg-passages li {
  position: relative;
  counter-increment: pass;
  padding: 0 0 1.4rem 2.6rem;
  border-left: 2px solid var(--line-strong);
  margin-left: 0.75rem;
}
.tg-passages li:last-child { padding-bottom: 0; border-left-color: transparent; }
.tg-passages li::before {
  content: counter(pass);
  position: absolute;
  left: -0.95rem; top: 0;
  width: 1.75rem; height: 1.75rem;
  display: grid; place-items: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.9rem;
  border-radius: 50%;
}
.tg-passages h3 { margin: 0 0 0.2rem; font-size: 1rem; }
.tg-passages .loc { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); font-weight: 600; }
.tg-passages p { margin: 0.3rem 0 0; font-size: 0.92rem; color: var(--ink-soft); }

/* --- Quote bank --- */
.tg-quotes { display: grid; gap: 1.1rem; margin-top: 1.25rem; }
.tg-quote-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.tg-quote-group > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.9rem 1.2rem;
  font-family: var(--font-head);
  font-size: 1.02rem;
  background: var(--paper-alt);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tg-quote-group > summary::-webkit-details-marker { display: none; }
.tg-quote-group > summary::after { content: "+"; font-size: 1.2rem; color: var(--accent); }
.tg-quote-group[open] > summary::after { content: "\2013"; }
.tg-quote-group__body { padding: 0.4rem 1.2rem 0.6rem; }
.tg-quote-group ul { list-style: none; margin: 0; padding: 0; }
.tg-quote-group li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.tg-quote-group li:last-child { border-bottom: 0; }
.tg-quote-group blockquote {
  margin: 0 0 0.3rem;
  font-style: italic;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 1rem;
  line-height: 1.45;
}
.tg-quote-group .src { font-size: 0.8rem; color: var(--ink-soft); }

/* --- Film / screen: key shots --- */
.tg-shots { display: grid; gap: 1.5rem; margin-top: 1.25rem; }
@media (min-width: 680px) { .tg-shots { grid-template-columns: 1fr 1fr; } }
.tg-shot {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tg-shot__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(45deg, var(--paper-alt) 0 12px, #e6efe9 12px 24px);
  display: grid;
  place-items: center;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.tg-shot__frame img { width: 100%; height: 100%; object-fit: cover; }
.tg-shot__frame span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  font-weight: 700;
  padding: 0 1rem;
}
.tg-shot__body { padding: 1rem 1.2rem 1.2rem; }
.tg-shot__body h3 { margin: 0 0 0.15rem; font-size: 1rem; }
.tg-shot__body .tc { font-size: 0.78rem; color: var(--accent); font-weight: 600; }
.tg-shot__body p { margin: 0.4rem 0 0; font-size: 0.9rem; color: var(--ink-soft); }

/* --- Practice prompts --- */
.tg-prompts { display: grid; gap: 0.75rem; margin: 1.25rem 0 0; padding: 0; list-style: none; counter-reset: pr; }
.tg-prompts li {
  counter-increment: pr;
  position: relative;
  padding: 1rem 1.2rem 1rem 3rem;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.98rem;
}
.tg-prompts li::before {
  content: counter(pr);
  position: absolute;
  left: 1rem; top: 1rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--accent);
}
.tg-prompts li .ptype {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

/* --- Context sub-blocks --- */
.tg-context h3 { margin-top: 1.6rem; font-size: 1.05rem; }
.tg-context h3:first-child { margin-top: 0; }

/* =============================================================
   Language Analysis repository — page components (.la-*)
   Used by la-*.html. Content sits on white (.section).
   ============================================================= */
.la { max-width: 76ch; }
.la > section + section { margin-top: 3rem; }
.la-sec__head { display: flex; align-items: baseline; gap: 0.7rem; margin-bottom: 1rem; }
.la-sec__head h2 { margin: 0; }
.la-sec__kick {
  font-family: var(--font-body); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.12rem 0.6rem; flex: none;
}

/* --- Source / attribution panel --- */
.la-source {
  display: grid; gap: 0.5rem;
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 1.15rem 1.3rem; background: var(--paper-alt);
  margin: 1.25rem 0 0;
}
.la-source dl { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 0.9rem; margin: 0; font-size: 0.92rem; }
.la-source dt { font-weight: 700; color: var(--ink-soft); }
.la-source dd { margin: 0; }
.la-source .la-source__link { font-weight: 600; }
.la-source .disclaimer { font-size: 0.8rem; color: var(--ink-soft); margin: 0.4rem 0 0; }

/* --- Image description card (no image reproduced) --- */
.la-figure {
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  padding: 1.1rem 1.3rem; margin: 1.5rem 0; background: var(--card);
}
.la-figure h3 { margin: 0 0 0.4rem; font-size: 0.95rem; }
.la-figure h3::before { content: "\1F5BC\FE0F"; margin-right: 0.4rem; }
.la-figure p { margin: 0.35rem 0 0; font-size: 0.92rem; color: var(--ink-soft); }
.la-figure a { font-weight: 600; }

/* --- Short quoted phrase inside analysis --- */
.la q, .la-techlist q { font-style: italic; }
.la q::before { content: "\201C"; }
.la q::after { content: "\201D"; }
.la-pull {
  margin: 2.5rem 0; padding: 1.25rem 0 1.25rem 1.5rem; border-left: 4px solid var(--accent);
  font-family: var(--font-head); font-style: italic; font-size: clamp(1.25rem, 2.8vw, 1.7rem);
  line-height: 1.4; color: var(--ink);
}
.la-pull span { display: block; margin-top: 0.6rem; font-family: var(--font-body); font-style: normal; font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.02em; }

/* --- Technique list --- */
.la-techlist { display: grid; gap: 0.9rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.la-techlist > li {
  border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; background: var(--card);
}
.la-techlist h3 { margin: 0 0 0.3rem; font-size: 1rem; }
.la-techlist .la-eg { font-size: 0.92rem; color: var(--ink); margin: 0 0 0.35rem; }
.la-techlist .la-fx { font-size: 0.88rem; color: var(--ink-soft); margin: 0; }
.la-techlist .la-fx b { color: var(--accent-deep); font-weight: 600; }

/* --- Technique flow: technique -> example -> effect --- */
.la-flow { display: grid; gap: 1rem; margin-top: 1.25rem; }
@media (min-width: 720px) { .la-flow { grid-template-columns: repeat(3, 1fr); } }
.la-flow__step {
  border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; background: var(--card); position: relative;
}
.la-flow__step h4 { margin: 0 0 0.3rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.la-flow__step p { margin: 0; font-size: 0.92rem; }
@media (min-width: 720px) {
  .la-flow__step:not(:last-child)::after {
    content: "\2192"; position: absolute; right: -0.85rem; top: 50%; transform: translateY(-50%);
    color: var(--accent); font-size: 1.1rem; z-index: 1;
  }
}

/* --- Tone-shift timeline --- */
.la-shift { margin: 1.5rem 0 0; }
.la-shift__track { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.la-shift__seg { flex: 1; padding: 0.6rem 0.8rem; text-align: center; font-size: 0.82rem; font-weight: 600; color: #fff; }
.la-shift__seg + .la-shift__seg { border-left: 2px solid #fff; }
.la-shift__labels { display: flex; margin-top: 0.5rem; }
.la-shift__labels span { flex: 1; text-align: center; font-size: 0.78rem; color: var(--ink-soft); }
.la-shift__seg:nth-child(1) { background: #3f6f8f; }
.la-shift__seg:nth-child(2) { background: #6a8f3f; }
.la-shift__seg:nth-child(3) { background: #b1762f; }
.la-shift__seg:nth-child(4) { background: #9e3f3f; }
.la-shift__seg:nth-child(5) { background: #5f4f8a; }

/* --- Tone word-collage / brainstorm --- */
.la-cloud {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-alt);
  padding: 1.5rem; margin: 1.5rem 0 0;
}
.la-cloud__words { display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem; align-items: center; justify-content: center; }
.la-cloud__words span {
  display: inline-block; font-family: var(--font-head); line-height: 1.1; padding: 0.15rem 0.3rem;
}
.la-cloud__words .t-xl { font-size: 2rem; font-weight: 600; }
.la-cloud__words .t-lg { font-size: 1.5rem; font-weight: 500; }
.la-cloud__words .t-md { font-size: 1.15rem; }
.la-cloud__words .t-sm { font-size: 0.95rem; color: var(--ink-soft); }
.la-cloud__words [data-fam="critical"] { color: #9e3f3f; }
.la-cloud__words [data-fam="urgent"]   { color: #b1762f; }
.la-cloud__words [data-fam="warm"]     { color: #6a8f3f; }
.la-cloud__words [data-fam="detached"] { color: #3f6f8f; }
.la-cloud__words [data-fam="wry"]      { color: #5f4f8a; }
.la-cloud__key { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; justify-content: center; margin-top: 1.1rem; font-size: 0.75rem; color: var(--ink-soft); }
.la-cloud__key b { font-weight: 600; }
.la-cloud__key i { font-style: normal; width: 0.7rem; height: 0.7rem; border-radius: 50%; display: inline-block; vertical-align: middle; margin-right: 0.3rem; }

/* --- SVG tone map (per-page authored) --- */
.la-tonemap { margin: 1.5rem 0 0; overflow-x: auto; }
.la-tonemap svg { display: block; width: 100%; height: auto; min-width: 520px; }
.la-tonemap .tm-hub { fill: var(--accent); }
.la-tonemap .tm-node { fill: var(--card); stroke: var(--line-strong); }
.la-tonemap .tm-link { stroke: var(--line-strong); fill: none; }
.la-tonemap .tm-label { font-family: var(--font-body); font-size: 13px; fill: var(--ink); }
.la-tonemap .tm-hub-label { font-family: var(--font-head); font-size: 15px; fill: #fff; font-weight: 600; }
.la-tonemap .tm-fx { font-family: var(--font-body); font-size: 12px; fill: var(--ink-soft); }

/* --- Repository index cards --- */
.la-list { display: grid; gap: 1rem; }
.la-card {
  display: grid; gap: 0.5rem; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.35rem; text-decoration: none; color: inherit; background: var(--card);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.la-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.la-card__top { display: flex; flex-wrap: wrap; gap: 0.4rem 0.7rem; align-items: baseline; }
.la-card__flag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.la-card__meta { font-size: 0.8rem; color: var(--ink-soft); }
.la-card h3 { margin: 0; font-size: 1.1rem; }
.la-card p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.la-card__tones { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.2rem; }
.la-card__tones span { font-size: 0.72rem; background: var(--paper-alt); border: 1px solid var(--line); border-radius: 999px; padding: 0.1rem 0.55rem; color: var(--ink-soft); }

/* =============================================================
   Language Analysis — heading "artifact" treatments
   First block inside .la, ahead of the source panel:
     .la-scan      press clippings (editorials / opinion columns)
     .la-programme ceremonial speeches (order-of-service card)
     .la-plate     podium speeches (lectern nameplate)
     .la-placard   visual arguments (gallery wall label)
   ============================================================= */

/* --- Press clipping --- */
.la-scan {
  position: relative;
  margin: 0 0 2.4rem;
  padding: 1.6rem 1.7rem 1.5rem;
  background: #f3efe4;
  color: #20201c;
  border: 1px solid #cfc7b2;
  border-radius: 2px;
  box-shadow: var(--shadow);
  transform: rotate(-0.4deg);
  background-image:
    radial-gradient(circle at 12% 88%, rgba(0, 0, 0, 0.05) 0 1px, transparent 1.6px),
    radial-gradient(circle at 90% 14%, rgba(0, 0, 0, 0.04) 0 1px, transparent 1.6px);
}
.la-scan::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 90px; height: 90px;
  background-image: radial-gradient(#b7ae98 1px, transparent 1.4px);
  background-size: 7px 7px;
  -webkit-mask-image: linear-gradient(315deg, #000, transparent 70%);
  mask-image: linear-gradient(315deg, #000, transparent 70%);
  opacity: 0.5; pointer-events: none;
}
.la-scan > * { position: relative; }
.la-scan__plate {
  margin: 0; text-align: center; font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.5rem, 4.5vw, 2.1rem); letter-spacing: 0.01em;
  border-bottom: 3px double #20201c; padding-bottom: 0.5rem;
}
.la-scan__dateline {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 0.8rem;
  font-family: var(--font-body); font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: #5c5646;
  border-bottom: 1px solid #b7ae98; padding: 0.45rem 0 0.5rem; margin: 0 0 1.1rem;
}
.la-scan__kick {
  margin: 0 0 0.35rem; text-align: center; font-family: var(--font-body); font-size: 0.72rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: #8a3324;
}
.la-scan__headline {
  margin: 0; text-align: center; font-family: var(--font-head); font-weight: 600; line-height: 1.15;
  font-size: clamp(1.4rem, 3.6vw, 1.95rem); text-wrap: balance;
}
.la-scan__byline {
  margin: 0.55rem 0 0; text-align: center; font-family: var(--font-body); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.08em; color: #5c5646;
}
.la-scan__standfirst {
  margin: 0.8rem auto 0; max-width: 46ch; text-align: center;
  font-family: var(--font-head); font-style: italic; font-size: 0.98rem; color: #3a382f;
}
@media (max-width: 560px) {
  .la-scan { transform: none; padding: 1.3rem 1.15rem; }
}

/* --- Speech: order-of-service card --- */
.la-programme {
  margin: 0 0 2.4rem; padding: 1rem; text-align: center;
  background: var(--cream); border: 1px solid var(--cream-deep);
  border-radius: var(--radius); box-shadow: var(--shadow); color: #2e2a1f;
}
.la-programme__frame { border: 1px solid #c9b98c; padding: 2rem 1.4rem 1.7rem; }
.la-programme__kick {
  margin: 0; font-family: var(--font-body); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: #7a6a3f;
}
.la-programme__kick::before, .la-programme__kick::after { content: "\2014"; margin: 0 0.55rem; color: #b6a26a; }
.la-programme__name {
  margin: 0.7rem 0 0.5rem; font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.6rem, 4.5vw, 2.3rem); line-height: 1.1;
}
.la-programme__occasion {
  margin: 0 auto; max-width: 44ch; font-family: var(--font-head); font-style: italic;
  font-size: 1.05rem; line-height: 1.5; color: #4a4433;
}
.la-programme__occasion b { font-style: normal; font-weight: 600; }
.la-programme__meta {
  margin: 1rem 0 0; padding-top: 0.9rem; border-top: 1px solid #cbbb8d;
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: #6f6244;
}
.la-programme__dingbat { display: block; margin: 0.9rem auto 0; color: #b6a26a; font-size: 1rem; }

/* --- Speech: lectern nameplate --- */
.la-plate {
  margin: 0 0 2.4rem; padding: 1.9rem 2rem; text-align: center; border-radius: 10px;
  background: linear-gradient(180deg, #16281d, var(--forest));
  border: 1px solid #0a1610; color: #eef3ee;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.la-plate__rule { display: block; width: 46px; height: 3px; margin: 0 auto 1rem; background: var(--gold); border-radius: 2px; }
.la-plate__name {
  margin: 0; font-family: var(--font-head); font-weight: 600; color: #fff;
  font-size: clamp(1.6rem, 4.6vw, 2.3rem); line-height: 1.1; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}
.la-plate__role { margin: 0.4rem 0 0; font-family: var(--font-body); font-size: 0.9rem; color: #b9ccc0; }
.la-plate__meta {
  margin: 1.1rem 0 0; padding-top: 0.85rem; border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-body); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: #9db3a6;
}

/* --- Visual argument: gallery wall label --- */
.la-placard {
  margin: 0 0 2.4rem; max-width: 34rem; padding: 1.3rem 1.5rem;
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--ink);
  border-radius: 4px; box-shadow: 0 8px 22px -16px rgba(27, 35, 48, 0.3);
}
.la-placard__title {
  margin: 0 0 0.5rem; font-family: var(--font-head); font-style: italic; font-weight: 600;
  font-size: 1.25rem; color: var(--ink);
}
.la-placard dl { display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.8rem; margin: 0; }
.la-placard dt {
  padding-top: 0.15rem; font-family: var(--font-body); font-size: 0.66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-soft);
}
.la-placard dd { margin: 0; font-size: 0.9rem; color: var(--ink); }
.la-placard__note {
  margin: 0.8rem 0 0; padding-top: 0.7rem; border-top: 1px solid var(--line);
  font-size: 0.86rem; font-style: italic; color: var(--ink-soft);
}
