/* Shared style system for woodlogos.net app sub-pages (iSEE Vocab, Happy Actions).
   Mirrors the design tokens used by the main React site (Tailwind config + Layout.tsx). */

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

:root {
  --green-50:  #f0fdf4;
  --green-100: #dcfce7;
  --green-600: #16a34a;
  --green-700: #15803d;
  --blue-50:   #eff6ff;
  --blue-100:  #dbeafe;
  --blue-600:  #2563eb;
  --purple-50: #faf5ff;
  --purple-100:#f3e8ff;
  --gray-50:   #f9fafb;
  --gray-100:  #f3f4f6;
  --gray-200:  #e5e7eb;
  --gray-300:  #d1d5db;
  --gray-500:  #6b7280;
  --gray-600:  #4b5563;
  --gray-700:  #374151;
  --gray-900:  #111827;
  --orange-100:#ffedd5;
  --orange-700:#c2410c;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--gray-900);
  background: #fff;
  line-height: 1.65;
}

a { color: inherit; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HEADER ──
   Matches src/components/Layout.tsx exactly (the header the React pages —
   Home/APP/Books/Blog/About — use), so the /isee/ static pages don't look
   like a different product when a reader clicks between sections: same
   max-width/padding breakpoints, same non-sticky behavior, same nav icons
   (added here as currentColor CSS masks of the identical lucide-react SVGs,
   so no per-page markup change is needed across the generated word pages). */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 1px 2px 0 rgba(0,0,0,.05);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 640px) { .header-inner { padding: 0 24px; } }
@media (min-width: 1024px) { .header-inner { padding: 0 32px; } }

.logo-link { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 44px; width: auto; display: block; }

.site-nav { display: flex; align-items: center; gap: 32px; }

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  transition: color .15s, background .15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-link:hover { color: var(--green-600); background: var(--green-50); }
.nav-link.current { color: var(--green-600); background: var(--green-50); }

/* Icon before the label — only on the five links that have a lucide icon in
   Layout.tsx. Everything (Home, Support, the /isee/ subnav) intentionally has
   no ::before at all, rather than a base rule every link inherits and only
   some override: an unmatched link would otherwise render a solid untinted
   16x16 box (background-color with no mask-image to cut it into a shape). */
.nav-link[href="/isee/"]::before,
.nav-link[href="/app"]::before,
.nav-link[href="/books"]::before,
.nav-link[href="/blog"]::before,
.nav-link[href="/about"]::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: none;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
}

.nav-link[href="/isee/"]::before {
  -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 10v6M2 10l10-5 10 5-10 5z'/><path d='M6 12v5c3 3 9 3 12 0v-5'/></svg>");
  mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 10v6M2 10l10-5 10 5-10 5z'/><path d='M6 12v5c3 3 9 3 12 0v-5'/></svg>");
}

.nav-link[href="/app"]::before {
  -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect width='14' height='20' x='5' y='2' rx='2' ry='2'/><path d='M12 18h.01'/></svg>");
  mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect width='14' height='20' x='5' y='2' rx='2' ry='2'/><path d='M12 18h.01'/></svg>");
}

.nav-link[href="/books"]::before {
  -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z'/><path d='M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z'/></svg>");
  mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z'/><path d='M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z'/></svg>");
}

.nav-link[href="/blog"]::before {
  -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z'/><polyline points='14 2 14 8 20 8'/><line x1='16' x2='8' y1='13' y2='13'/><line x1='16' x2='8' y1='17' y2='17'/><line x1='10' x2='8' y1='9' y2='9'/></svg>");
  mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z'/><polyline points='14 2 14 8 20 8'/><line x1='16' x2='8' y1='13' y2='13'/><line x1='16' x2='8' y1='17' y2='17'/><line x1='10' x2='8' y1='9' y2='9'/></svg>");
}

.nav-link[href="/about"]::before {
  -webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M12 16v-4'/><path d='M12 8h.01'/></svg>");
  mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M12 16v-4'/><path d='M12 8h.01'/></svg>");
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--purple-50) 100%);
  padding: 64px 24px 72px;
  text-align: center;
}

.hero-icon {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-2xl);
  background: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  margin: 0 auto 28px;
  overflow: hidden;
}

.hero-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.5px;
  margin: 0 0 14px;
}

.hero-sub {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.hero-badge {
  background: var(--green-100);
  color: var(--green-700);
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  padding: 6px 14px;
}

.hero-cta {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── APP HERO (full-bleed brand color, curved edge) ── */
.app-hero {
  position: relative;
  padding: 44px 24px 80px;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.app-hero.brand-blue   { background: linear-gradient(160deg, #3b82f6, var(--blue-600)); }
.app-hero.brand-green  { background: linear-gradient(160deg, #22c55e, var(--green-600)); }
.app-hero.brand-purple { background: linear-gradient(160deg, #a855f7, #7e22ce); }

.app-hero-curve {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
}

.app-hero-curve svg { width: 100%; height: 60px; display: block; }

.app-hero-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
}

.app-hero-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  overflow: hidden;
  flex-shrink: 0;
}

.app-hero-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }

.app-hero h1 {
  font-size: clamp(26px, 4.5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0;
}

.app-hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,.9);
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.app-hero-sub + .app-hero-sub { margin-top: 4px; }

.platform-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 44px;
  position: relative;
  z-index: 1;
}

.platform-item {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.platform-item svg { width: 30px; height: 30px; color: #fff; }
.platform-item span { font-size: 13px; font-weight: 600; color: #fff; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary { background: var(--green-600); color: #fff; }
.btn-primary:hover { background: var(--green-700); }
.btn-primary:disabled,
.btn-primary:disabled:hover {
  background: var(--gray-300);
  color: var(--gray-500);
  cursor: not-allowed;
}

.btn-secondary {
  background: #fff;
  color: var(--green-600);
  border-color: var(--green-600);
}
.btn-secondary:hover { background: var(--green-50); }

/* ── SECTIONS ── */
.section { padding: 40px 24px; }
.section-alt { background: var(--gray-50); }
.section-tight-top { padding-top: 20px; }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 28px; }

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 8px;
}

.section-header h2, .section > .container > h2 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  color: var(--gray-900);
  margin: 0 0 12px;
  letter-spacing: -0.3px;
}

.section-header p { font-size: 17px; color: var(--gray-600); margin: 0; }

/* ── CARDS ── */
.card {
  background: #fff;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
}

.card-hover { transition: transform .25s, box-shadow .25s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.icon-circle.blue   { background: var(--blue-100);   color: var(--blue-600); }
.icon-circle.green  { background: var(--green-100);  color: var(--green-700); }
.icon-circle.purple { background: var(--purple-100); color: #7c3aed; }
.icon-circle.gray   { background: var(--gray-100);   color: var(--gray-700); }

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 28px;
}

.feature-card .icon-circle { margin-bottom: 18px; }

.feature-card strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.feature-card p { font-size: 14px; color: var(--gray-600); margin: 0; }

/* Level grid */
.level-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.level-card {
  padding: 22px 16px;
  text-align: center;
}

.level-card strong { display: block; font-size: 20px; color: var(--green-700); margin-bottom: 4px; }
.level-card span { font-size: 13px; color: var(--gray-600); }

/* Body copy inside cards */
.prose p { font-size: 16px; color: var(--gray-600); margin: 0 0 14px; }
.prose p:last-child { margin-bottom: 0; }
.prose .zh { font-size: 14px; color: var(--gray-500); }

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(135deg, var(--green-600), #059669);
  color: #fff;
  text-align: center;
  border-radius: var(--radius-2xl);
  padding: 56px 32px;
}

.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); }
.cta-band .zh { color: rgba(255,255,255,.65); }
.cta-band .btn-primary { background: #fff; color: var(--green-700); }
.cta-band .btn-primary:hover { background: var(--green-50); }

/* ── DOWNLOAD ROWS ── */
.download-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  text-decoration: none;
  margin-bottom: 14px;
}

.download-row:last-of-type { margin-bottom: 0; }

.download-row .d-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.download-row .d-icon.apple  { background: #000; }
.download-row .d-icon.google { background: #34a853; }
.download-row .d-icon.mac    { background: var(--gray-700); }

.download-row .d-text strong { display: block; font-size: 16px; color: var(--gray-900); }
.download-row .d-text span { font-size: 13px; color: var(--gray-500); }
.download-row .d-arrow { margin-left: auto; color: var(--gray-300); font-size: 20px; }

.qr-box { display: flex; justify-content: center; margin-top: 24px; }

.qr-placeholder {
  width: 156px;
  height: 156px;
  border-radius: var(--radius-xl);
  background: var(--gray-50);
  border: 1px dashed var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--gray-500);
  text-align: center;
  padding: 12px;
}

.placeholder-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--gray-500);
  text-align: center;
  font-style: italic;
}

/* Steps */
.steps { counter-reset: step; }

.step {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
}

.step:last-child { border-bottom: none; }

.step .step-num {
  counter-increment: step;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green-600);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step .step-num::before { content: counter(step); }
.step p { margin: 0; font-size: 15px; color: var(--gray-700); }
.step .zh { margin-top: 3px; font-size: 13px; color: var(--gray-500); }
.step ul { margin: 4px 0 6px; padding-left: 20px; font-size: 14px; color: var(--gray-700); }
.step ul.zh { font-size: 13px; color: var(--gray-500); }
.step li { margin: 2px 0; }

/* Requirements */
.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.req-card { text-align: center; padding: 18px; }
.req-card strong { display: block; font-size: 15px; color: var(--gray-900); margin-bottom: 4px; }
.req-card span { font-size: 12px; color: var(--gray-600); }

/* ── FOOTER ── */
.site-footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: 48px 24px 32px;
}

.footer-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.footer-logo { height: 28px; width: auto; display: block; margin-bottom: 14px; }
.footer-col p { font-size: 14px; color: var(--gray-600); margin: 0; }
.footer-col h3 { font-size: 13px; font-weight: 700; color: var(--gray-900); margin: 0 0 14px; }
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--gray-600);
  text-decoration: none;
  margin-bottom: 8px;
}
.footer-col a:hover { color: var(--green-600); }

.footer-bottom {
  max-width: 1120px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
  text-align: center;
  font-size: 13px;
  color: var(--gray-500);
}

/* Third-party trademark notice. Deliberately smaller and dimmer than the
   copyright line above it: it is a legal disclaimer, not site content, and it
   must not read as a claim of affiliation with ERB/EMA. Kept as real text (not
   an image, not display:none) so it is legible to readers and machines alike —
   a disclaimer nobody can see does not do its job. */
.tm-disclaimer {
  max-width: 760px;
  margin: 10px auto 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--gray-500);
}

/* ── SEO-ONLY (present in HTML for crawlers/link-equity, hidden from sighted users) ── */
.seo-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── WORD DETAIL PAGE (compact, single-viewport) ── */
.word-page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 20px;
  background:
    radial-gradient(ellipse 60% 50% at 15% 0%, var(--blue-50) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 100%, var(--purple-50) 0%, transparent 60%),
    #fff;
}

.word-page-inner {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.word-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.word-crumb {
  font-size: 13px;
  color: var(--gray-500);
}

.word-crumb a { color: var(--gray-500); text-decoration: none; }
.word-crumb a:hover { color: var(--green-600); }

.lang-switch {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.lang-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  background: var(--gray-100);
  padding: 4px 10px;
  border-radius: 999px;
  text-decoration: none;
  transition: background .15s, color .15s;
}

.lang-pill:hover { background: var(--gray-200); }

.lang-pill.active {
  background: var(--blue-600);
  color: #fff;
}

.word-panel .word-hero {
  text-align: center;
  padding: 22px 20px 16px;
}

.word-hero h1 {
  font-size: clamp(30px, 6vw, 40px);
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.5px;
  margin: 0;
}

.word-hero-audio-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.word-audio-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--blue-100);
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: background .15s, transform .15s;
  flex-shrink: 0;
}

.word-audio-btn:hover { background: var(--blue-100); transform: scale(1.05); }

.word-phonetic {
  font-size: 17px;
  color: var(--gray-500);
  margin: 0;
}

.level-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.word-page-inner > .level-badge {
  position: absolute;
  top: 2px;
  right: 0;
}

.level-badge.basic  { background: var(--blue-100);   color: var(--blue-600); }
.level-badge.lower  { background: var(--green-100);  color: var(--green-700); }
.level-badge.middle { background: var(--purple-100); color: #7c3aed; }
.level-badge.upper  { background: var(--orange-100); color: var(--orange-700); }

/* ── 2-column word page layout: dictionary entry + practice | stats + reminder ── */
.word-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  align-items: start;
  margin-top: 18px;
}

.stat-block {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 16px;
}

.stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 6px;
}

.stat-value { font-size: 20px; font-weight: 800; color: var(--gray-900); }
.stat-sub { font-size: 12px; color: var(--gray-500); margin-top: 2px; }

.stat-block .pt-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.word-main-col { min-width: 0; }

.word-side-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.word-side-col .practice-reminder {
  margin-top: 10px;
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.5;
}

.word-side-col .download-chip {
  display: block;
  text-align: center;
}

@media (max-width: 860px) {
  .word-page-inner { max-width: 640px; }
  .word-layout { grid-template-columns: 1fr; }
}

/* Merged panel: definitions + memory aid + practice all in one card, divided by thin rules */
.word-panel {
  padding: 0;
  overflow: hidden;
  border: none;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.word-panel::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(90deg, var(--blue-600), #7c3aed);
}

.wp-section {
  padding: 14px 20px;
  border-top: 1px solid var(--gray-100);
}
.wp-section:first-child { border-top: none; }

.definition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.definition-card .dc-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 5px;
}

.definition-card .dc-text {
  font-size: 17px;
  color: var(--gray-900);
  line-height: 1.5;
}

/* Example sentence + synonyms: dictionary content, so they live inside the
   word card alongside the definitions rather than out on the page background. */
.example-card .ex-label,
.synonym-card .syn-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 6px;
}

.example-card .ex-sentence {
  font-size: 16px;
  color: var(--gray-900);
  line-height: 1.55;
  margin: 0;
}
.example-card .ex-sentence strong { font-weight: 700; color: var(--blue-600); }

.example-card .ex-translation {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.5;
  margin: 5px 0 0;
}

.syn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.syn-chip {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
}
/* Only the synonyms that are themselves words on this site are links — give
   those the affordance so the difference is visible, not just in the markup. */
a.syn-chip {
  color: var(--blue-600);
  border-color: var(--blue-100);
}
a.syn-chip:hover { background: var(--blue-100); }

.memory-aid-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--green-50);
}

.memory-aid-card .ma-icon { font-size: 20px; flex-shrink: 0; }
.memory-aid-card .ma-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 3px;
}
.memory-aid-card .ma-text { font-size: 15px; color: var(--gray-700); line-height: 1.5; }

.pw-label {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 14px;
}

.practice-buttons {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
}

.practice-buttons .btn { flex: 1; min-width: 110px; padding: 12px 16px; font-size: 15px; }

.btn-prev {
  background: #fff;
  color: var(--gray-700);
  border-color: var(--gray-300);
}
.btn-prev:hover { background: var(--gray-100); }
.btn.disabled {
  background: var(--gray-100) !important;
  color: var(--gray-400) !important;
  border-color: var(--gray-200) !important;
  opacity: 1;
  pointer-events: none;
  box-shadow: none;
}

.btn-mastered {
  background: var(--green-600);
  color: #fff;
  flex: 1.3;
}
.btn-mastered:hover { background: var(--green-700); }
.btn-mastered.is-active {
  background: var(--green-700);
}
.btn-mastered.is-active::before { content: "✓ "; }

.btn-next {
  background: #fff;
  color: var(--blue-600);
  border-color: var(--blue-600);
}
.btn-next:hover { background: var(--blue-50); }

.word-below {
  text-align: center;
  margin-top: 20px;
}

.progress-track {
  flex: 1;
  min-width: 180px;
  max-width: 320px;
}

.progress-track .pt-label {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 6px;
  text-align: left;
}

.progress-bar {
  height: 7px;
  border-radius: 999px;
  background: var(--gray-200);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--green-600);
  border-radius: 999px;
  transition: width .3s ease;
  width: 0%;
}

.practice-reminder {
  margin-top: 14px;
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.5;
}

.download-chip-row { margin-top: 12px; }

.download-chip {
  display: inline-block;
  background: var(--green-600);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: background .15s, transform .15s;
}

.download-chip:hover { background: var(--green-700); transform: translateY(-1px); }

/* ── FULL-SCREEN BREAK OVERLAY (30-minute session cap) ── */
.break-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .6);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}

.break-card {
  background: #fff;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  padding: 40px 32px;
  max-width: 360px;
  width: 100%;
  text-align: center;
}

.break-icon { font-size: 40px; margin-bottom: 12px; }

.break-card h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
  margin: 0 0 12px;
}

.break-card p {
  font-size: 14px;
  color: var(--gray-600);
  margin: 0 0 4px;
  line-height: 1.5;
}

.break-card .zh { color: var(--gray-500); }

.break-countdown {
  margin-top: 20px;
  font-size: 32px;
  font-weight: 800;
  color: var(--blue-600);
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
}

.break-apps {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--gray-200);
}

.break-apps-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--gray-500);
  margin: 0 0 12px;
}

.break-app-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.break-app-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  text-decoration: none;
  background: #fff;
  transition: border-color .15s, color .15s, background .15s;
}

.break-app-link svg { width: 14px; height: 14px; flex: none; }

.break-app-link:hover {
  border-color: var(--gray-300);
  color: var(--gray-900);
  background: var(--gray-50);
}

/* ── START LEARNING (language picker + modal) ── */
.lang-start-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.lang-start-card {
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.lang-start-flag { font-size: 34px; }
.lang-start-card strong { font-size: 15px; color: var(--gray-900); }

.start-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}

/* `display: flex` above has the same specificity as the browser's default
   `[hidden] { display: none }` rule, and author styles win ties over the UA
   stylesheet — so without this, the `hidden` attribute is silently ignored
   and the modal shows immediately on page load. */
.start-modal-overlay[hidden] { display: none; }

.start-modal {
  background: #fff;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  padding: 32px 28px;
  max-width: 360px;
  width: 100%;
  position: relative;
}

.start-modal h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--gray-900);
  margin: 0 0 20px;
}

.start-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--gray-400);
  cursor: pointer;
}
.start-modal-close:hover { color: var(--gray-700); }

.start-field {
  display: block;
  margin-bottom: 16px;
}

.start-field span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.start-field select,
.start-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-family: inherit;
  color: var(--gray-900);
}

.start-submit { width: 100%; justify-content: center; margin-top: 4px; }

.start-modal-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--gray-500);
  text-align: center;
}

/* ── RESPONSIVE ── */
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .section { padding: 48px 20px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .level-grid { grid-template-columns: 1fr 1fr; }
  .req-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 48px 20px 60px; }
  .definition-grid { grid-template-columns: 1fr; }
}

/* ── WORD PAGE: translation-language toggle ──
   Every translation ships in the HTML on every word page. Picking a language
   only hides the others visually (crawlers, which set no data-wordlang, keep
   seeing all of them), so the page stays readable without splitting one word
   across four near-identical URLs. */
html[data-wordlang="zh"] .lang-block:not([data-lang="zh"]),
html[data-wordlang="es"] .lang-block:not([data-lang="es"]),
html[data-wordlang="ko"] .lang-block:not([data-lang="ko"]),
html[data-wordlang="vi"] .lang-block:not([data-lang="vi"]),
html[data-wordlang="en"] .lang-block {
  display: none;
}

.lang-switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lang-switch-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray-500);
}

/* The pills are real <button>s on the word page (they used to be links). */
button.lang-pill {
  border: 1px solid var(--gray-200);
  cursor: pointer;
  font-family: inherit;
  line-height: 1.4;
}

/* ── WORD PAGE: practice question + FAQ + related words ── */
.quiz-card,
.faq-card,
.related-card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 18px 20px;
  margin-top: 14px;
}

.quiz-heading,
.faq-heading,
.related-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue-600);
  margin: 0 0 10px;
}

.quiz-question {
  font-size: 16px;
  color: var(--gray-900);
  line-height: 1.55;
  margin: 0 0 12px;
}

.quiz-options {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.quiz-option {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font-size: 15px;
  color: var(--gray-700);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.quiz-option .qo-key {
  font-weight: 700;
  color: var(--gray-500);
  font-size: 13px;
  flex-shrink: 0;
}

/* Picked, not yet graded (before Submit). */
.quiz-option.selected {
  border-color: var(--blue-600);
  background: var(--blue-50);
}

/* Graded: correct answer always shown in red; the reader's wrong pick in
   blue. Options stop being clickable once a card is .quiz-submitted. */
.quiz-card.quiz-submitted .quiz-option { cursor: default; }

.quiz-option.correct-answer {
  border-color: #dc2626;
  background: #fef2f2;
  color: #991b1b;
  font-weight: 600;
}

.quiz-option.wrong-selected {
  border-color: var(--blue-600);
  background: var(--blue-50);
  color: var(--blue-600);
  font-weight: 600;
}

.faq-item summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-600);
  padding: 6px 0;
}

.quiz-explain p {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.55;
  padding-top: 10px;
  border-top: 1px solid var(--gray-100);
}

.faq-item {
  border-top: 1px solid var(--gray-100);
}
.faq-item:first-of-type { border-top: none; }

.faq-item summary { color: var(--gray-900); }

.faq-item p {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.55;
}

.related-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.related-chip {
  font-size: 14px;
  color: var(--gray-700);
  background: var(--gray-100);
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: background .15s, color .15s;
}

.related-chip:hover { background: var(--blue-100); color: var(--blue-600); }

/* Divides a practice test into its synonym / sentence-completion parts. */
.quiz-part-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 4px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--blue-100);
}

.quiz-part-heading h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
}

.quiz-part-heading span {
  font-size: 13px;
  color: var(--gray-500);
}

.quiz-part-heading:first-of-type { margin-top: 0; }

.quiz-submit-card { text-align: center; }

.quiz-submit-card #quizSubmitBtn { min-width: 240px; }

.quiz-score {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 8px;
}

.quiz-review-hint {
  font-size: 14px;
  color: var(--gray-600);
  margin: 0 0 14px;
}

/* The word page is no longer a single-viewport card, so stop centring it
   vertically — with the quiz and FAQ below the fold that just pushed the
   word itself off-screen on short viewports. */
.word-page-shell {
  justify-content: flex-start;
  padding-top: 28px;
  padding-bottom: 40px;
}

@media (max-width: 560px) {
  .quiz-options { grid-template-columns: 1fr; }
}

/* Syllable split under the phonetic line: "a · ban · don" / "ə · ˈbæn · dən" */
.syllable-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-size: 14px;
}

.syl-letters { color: var(--gray-700); font-weight: 600; letter-spacing: .3px; }
.syl-sounds  { color: var(--gray-500); }

/* ── WORDS HUB PAGE (the A–Z list of every word) ── */
.level-card-link { text-decoration: none; display: block; }

/* Level cards on /isee/words/ are <button>s — they open the study gate rather
   than navigate — so the UA button styling has to be reset back to card. */
.level-start-card {
  width: 100%;
  font: inherit;
  border: 1px solid var(--gray-200);
  cursor: pointer;
  display: block;
}

.level-start-card strong { color: var(--green-700); }

.wordlist-start { text-align: center; margin: 0 0 28px; }

.wordlist-group {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--gray-100);
}

.wordlist-letter {
  font-size: 22px;
  font-weight: 800;
  color: var(--blue-600);
  margin: 0;
  line-height: 1.2;
}

.wordlist-words {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.wordlist-words a {
  font-size: 15px;
  color: var(--gray-700);
  text-decoration: none;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
}

.wordlist-words a:hover { color: var(--blue-600); border-bottom-color: var(--blue-600); }

@media (max-width: 560px) {
  .wordlist-group { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
  .wordlist-letter { font-size: 18px; }
}

/* The practice question is the reason these pages exist — give its heading
   real weight instead of the small all-caps label the other cards use. */
.quiz-heading {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.quiz-heading::before {
  content: "✏️";
  font-size: 18px;
}

.quiz-card { border-color: var(--blue-100); }

/* The nav row sits right under the word card now, so it needs a little air
   above the practice question that follows it. */
.word-below { margin: 16px 0 4px; }

/* Word + pronunciation side by side, rather than the word sitting alone on its
   own line with everything stacked beneath it. Wraps back to stacked-and-
   centred on narrow screens. */
.word-panel .word-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  text-align: left;
}

.word-pron {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.word-panel .word-hero .word-hero-audio-row,
.word-panel .word-hero .syllable-row {
  justify-content: flex-start;
  margin-top: 0;
}

@media (max-width: 480px) {
  .word-panel .word-hero { flex-direction: column; gap: 10px; text-align: center; }
  .word-panel .word-hero .word-hero-audio-row,
  .word-panel .word-hero .syllable-row { justify-content: center; }
}

/* ══════════════════════════════════════════════════════════════════════════
   ISEE SECTION CHROME (2026-07-29)
   /isee/ became a hub with three subpages (Test / Words / Guides). These are
   the shared pieces every page in the section uses.
   ══════════════════════════════════════════════════════════════════════════ */

/* Section subnav — sits directly under the site header on every /isee/ page so
   the four pages read as one section rather than four unrelated documents.
   Plain <a> links (no JS): each page marks its own with aria-current="page". */
.section-subnav {
  border-bottom: 1px solid var(--gray-200);
  background: #fff;
}

.section-subnav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
}

.section-subnav-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-right: 12px;
  white-space: nowrap;
}

.subnav-link {
  padding: 12px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.subnav-link:hover { color: var(--blue-600); }

.subnav-link[aria-current="page"] {
  color: var(--blue-600);
  border-bottom-color: var(--blue-600);
}

/* Hub cards on /isee/ — one per subpage. An <a> wrapping the whole card, so
   the entire tile is the click target and crawlers see one clear link. */
.hub-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.hub-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  padding: 26px;
}

.hub-card .icon-circle { margin-bottom: 16px; }

.hub-card strong {
  display: block;
  font-size: 17px;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.hub-card p {
  font-size: 14px;
  color: var(--gray-600);
  margin: 0 0 16px;
  flex: 1;
}

.hub-card .hub-cta {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-600);
}

/* ── /isee/test/ — the client-side quiz runner ──
   Everything here is progressive enhancement over static HTML: the setup form
   and the sample questions are real markup, and .quiz-runner only appears once
   the reader starts a session. No server round trip, nothing crawler-hostile. */
.test-setup {
  max-width: 620px;
  margin: 0 auto;
  padding: 28px;
}

.test-setup fieldset {
  border: none;
  padding: 0;
  margin: 0 0 20px;
}

.test-setup legend {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
  padding: 0;
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.choice {
  position: relative;
  display: block;
  height: 100%;
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Flex column + full height so a tile whose sub-label wraps to two lines does not
   leave its neighbours short — the row has to read as one set of equal choices. */
.choice span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 12px 10px;
  text-align: center;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  background: #fff;
  transition: border-color .15s, background .15s, color .15s;
}

.choice small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-500);
  margin-top: 2px;
}

.choice input:checked + span {
  border-color: var(--blue-600);
  background: var(--blue-50);
  color: var(--blue-600);
}

.choice input:focus-visible + span { outline: 2px solid var(--blue-600); outline-offset: 2px; }

.test-start-btn { width: 100%; justify-content: center; }

.quiz-runner { max-width: 700px; margin: 0 auto; }

.runner-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
}

.runner-track {
  height: 6px;
  background: var(--gray-100);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 20px;
}

.runner-fill {
  height: 100%;
  background: var(--blue-600);
  border-radius: 999px;
  width: 0;
  transition: width .3s;
}

.runner-q {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 18px;
  line-height: 1.55;
}

.runner-options { display: grid; gap: 10px; }

.runner-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  text-align: left;
  font: inherit;
  font-size: 15px;
  color: var(--gray-700);
  background: #fff;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.runner-option:hover:not(:disabled) { border-color: var(--blue-600); background: var(--blue-50); }
.runner-option:disabled { cursor: default; }

.runner-option .ro-key {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Right answer always turns green, even when the reader picked something else —
   showing only "you were wrong" without showing what was right teaches nothing. */
.runner-option.is-correct { border-color: var(--green-600); background: var(--green-50); }
.runner-option.is-correct .ro-key { background: var(--green-600); color: #fff; }
.runner-option.is-wrong { border-color: #dc2626; background: #fef2f2; }
.runner-option.is-wrong .ro-key { background: #dc2626; color: #fff; }

.runner-feedback {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  font-size: 14px;
  color: var(--gray-700);
}

.runner-feedback a { color: var(--blue-600); font-weight: 600; }

.runner-next-row { margin-top: 18px; display: flex; justify-content: flex-end; }

.runner-score {
  text-align: center;
  padding: 8px 0 4px;
}

.runner-score .rs-big {
  font-size: 44px;
  font-weight: 800;
  color: var(--blue-600);
  line-height: 1.1;
}

.runner-score .rs-sub { font-size: 15px; color: var(--gray-600); margin-bottom: 20px; }

.runner-review { text-align: left; margin: 20px 0 24px; }

.runner-review h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 10px;
}

.runner-review ol { margin: 0; padding-left: 20px; }

.runner-review li {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.runner-review li a { color: var(--blue-600); font-weight: 600; text-decoration: none; }
.runner-review li a:hover { text-decoration: underline; }

.runner-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ── /isee/guides/ ── */
.guide-toc {
  max-width: 760px;
  margin: 0 auto 28px;
  padding: 22px 26px;
}

.guide-toc h2 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-500);
  margin: 0 0 12px;
}

.guide-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }

.guide-toc li { font-size: 14px; margin-bottom: 6px; break-inside: avoid; }
.guide-toc a { color: var(--blue-600); text-decoration: none; }
.guide-toc a:hover { text-decoration: underline; }

.guide-body { max-width: 760px; margin: 0 auto; }

.guide-body h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--gray-900);
  margin: 40px 0 12px;
  scroll-margin-top: 24px;
}

.guide-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 24px 0 8px;
}

.guide-body p, .guide-body li {
  font-size: 16px;
  color: var(--gray-600);
}

.guide-body ul, .guide-body ol { padding-left: 22px; }
.guide-body li { margin-bottom: 6px; }
.guide-body a { color: var(--blue-600); }

/* A callout for the things that actually cost families points or money —
   the mistakes are the reason this page exists, so they get to interrupt. */
.guide-note {
  border-left: 3px solid var(--orange-700);
  background: var(--orange-100);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 14px 18px;
  margin: 18px 0;
}

.guide-note strong { color: var(--gray-900); }
.guide-note p { margin: 0; font-size: 15px; color: var(--gray-700); }

.table-wrap { overflow-x: auto; margin: 18px 0; }

.guide-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14px;
}

.guide-table th, .guide-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.guide-table th {
  font-weight: 700;
  color: var(--gray-900);
  background: var(--gray-50);
  white-space: nowrap;
}

.guide-table td { color: var(--gray-600); }

.guide-faq { max-width: 760px; margin: 0 auto; }

@media (max-width: 640px) {
  .guide-toc ol { columns: 1; }
  .section-subnav-label { display: none; }
}

/* ══════════════════════════════════════════════════════════════════════════
   SAT PREP  (/sat/)
   ──────────────────────────────────────────────────────────────────────────
   Everything below is used ONLY by the /sat/ pages. Nothing here restyles a
   class the /isee/ pages use, and that is a hard constraint rather than a
   preference: this stylesheet is shared, the ISEE word and test pages are
   ~4,740 files of static HTML, and a change that shifted their appearance
   could not be previewed on one page — it would already be live on all of
   them. New classes only; existing ones are extended solely through a
   SAT-specific compound selector (.app-hero.brand-sat, .level-badge.sat-*).

   Palette matches the SAT app's Dark Horse identity (see
   16words/1factoryconfig/SAT/sat_config.js) — warm orange against a cream
   ground, deliberately a different hue family from iSEE's blue.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  --sat-primary:   #C2691C;
  --sat-primary-2: #A4560F;
  --sat-pale:      #FBEEDF;
  --sat-cream:     #F7F4EF;
  --sat-ink:       #16140F;
  --sat-moss:      #3F7A56;
  --sat-moss-pale: #E4F0E8;
}

.app-hero.brand-sat {
  background: linear-gradient(160deg, #D9822B, var(--sat-primary-2));
}

/* Domain badges. Four hues that stay distinguishable when the page is
   printed or read by someone with a colour-vision deficiency — the label
   text is always present, the colour is only reinforcement. */
.level-badge.sat-module              { background: var(--sat-pale);      color: var(--sat-primary-2); }
.level-badge.sat-craft-structure     { background: var(--sat-pale);      color: var(--sat-primary-2); }
.level-badge.sat-information-ideas   { background: var(--blue-100);      color: var(--blue-600); }
.level-badge.sat-standard-english    { background: var(--sat-moss-pale); color: var(--sat-moss); }
.level-badge.sat-expression-ideas    { background: var(--purple-100);    color: #7c3aed; }
.level-badge.sat-basic               { background: var(--gray-100);      color: var(--gray-700); }
.level-badge.sat-easy                { background: var(--sat-moss-pale); color: var(--sat-moss); }
.level-badge.sat-difficult           { background: var(--sat-pale);      color: var(--sat-primary-2); }

/* A prose column inside the standard .container, for the pages that are read
   rather than scanned (skill explainers, the guide). */
.container.narrow { max-width: 820px; }

.muted-note {
  margin: 18px auto 0;
  max-width: 760px;
  text-align: center;
  font-size: 14px;
  color: var(--gray-500);
}

/* ── Reading & Writing question cards ─────────────────────────────────────
   The passage is the part of an SAT question that a vocabulary page never
   has: 25–150 words of real text, sometimes a data table, sometimes a set of
   bulleted research notes. Each shape gets its own treatment, because a
   pipe-aligned table rendered as flowing prose is simply unreadable. */
/* An SAT question card is a .quiz-card that also carries a passage, so it needs
   a little more room than the ISEE synonym cards this shell was built for. */
.rc-card { padding-bottom: 18px; }

.rc-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.rc-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  white-space: nowrap;
}
.rc-tag a { color: var(--sat-primary-2); text-decoration: none; }
.rc-tag a:hover { text-decoration: underline; }

.rc-passage-block {
  margin: 14px 0 16px;
  padding: 16px 18px;
  background: var(--sat-cream);
  border-left: 3px solid var(--sat-primary);
  border-radius: 0 10px 10px 0;
}

.rc-passage {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--sat-ink);
}
.rc-passage:last-child { margin-bottom: 0; }

/* Real tables, not preformatted text. The data in a Command of Evidence
   (Quantitative) question is the thing the question is about, so it has to be
   readable at any width AND machine-extractable — a monospaced <pre> was
   neither: it overflowed the card on a phone and it is an opaque blob to an
   answer engine. The wrapper scrolls only when a table genuinely cannot fit. */
.rc-table-wrap {
  margin: 0 0 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.rc-table-wrap:last-child { margin-bottom: 0; }

.rc-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.5;
}

.rc-table th,
.rc-table td {
  padding: 9px 14px;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
}
.rc-table tr:last-child th,
.rc-table tr:last-child td { border-bottom: none; }

/* Column headers (multi-row tables). */
.rc-table thead th {
  background: var(--sat-pale);
  color: var(--sat-primary-2);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--gray-200);
}

/* Row headers — the label column of a label/value series, which has no
   meaningful column heading to give it. */
.rc-table tbody th {
  font-weight: 600;
  color: var(--gray-900);
  white-space: nowrap;
}

.rc-table tbody td {
  color: var(--gray-700);
  font-variant-numeric: tabular-nums;
}

.rc-notes {
  margin: 0 0 10px;
  padding-left: 20px;
}
.rc-notes:last-child { margin-bottom: 0; }
.rc-notes li {
  margin: 0 0 6px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--sat-ink);
}

/* The worked example on a skill page is read, not answered — no pointer, no
   hover, and the correct option is already marked. */
.static-options .quiz-option { cursor: default; }

/* ── Practice hub: four domains, eleven skills ────────────────────────────
   The tile grid mirrors the app's home-screen mastery board (4/3/2/2), so a
   reader who installs the app recognises the layout immediately. */
.domain-block {
  max-width: 900px;
  margin: 0 auto 28px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.domain-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.domain-head h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: var(--gray-900);
}

.domain-weight {
  font-size: 13px;
  font-weight: 600;
  color: var(--sat-primary-2);
  background: var(--sat-pale);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.domain-blurb {
  margin: 8px 0 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-600);
}

.skill-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
/* The count modifier is always emitted, so the intended shape for each domain
   is stated here rather than left to whatever the default happens to be.
   Two skills: one row. Four: a 2x2 block. Three: two side by side, then the
   heaviest one full width — the same shape the app's mastery board uses for
   Craft and Structure. */
.skill-grid-2,
.skill-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.skill-grid-3 > :last-child { grid-column: 1 / -1; }

.skill-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color .15s, background .15s, transform .15s;
}
.skill-tile:hover {
  background: var(--sat-pale);
  border-color: var(--sat-primary);
  transform: translateY(-1px);
}

.skill-tile-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
}

.skill-tile-count {
  font-size: 13px;
  color: var(--gray-500);
}

/* ── Walking the bank ─────────────────────────────────────────────────────
   Prev / all / next at the foot of every drill and module. This chain is the
   only way a crawler reaches drill 7 of a skill: no single page lists the
   whole bank, which is what keeps 90 test pages from being scrapeable in one
   request (the same call /isee/test/ makes by having no hub listing at all). */
.test-chain {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.test-chain .btn { flex: 0 1 auto; }

/* ── Optional module timer ────────────────────────────────────────────────
   Opt-in and advisory: it never submits, never locks, never scores. A reader
   practising pacing wants the clock; a reader learning the question type
   would only be rushed by it, so it starts stopped. */
.timer-card {
  text-align: center;
  background: var(--sat-cream);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
}

.timer-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.timer-value {
  margin: 4px 0 12px;
  font-size: 34px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--sat-primary-2);
}

.timer-card.timer-warning .timer-value { color: #b45309; }
.timer-card.timer-expired .timer-value { color: #b91c1c; }
.timer-card.timer-expired { border-color: #fca5a5; }

.timer-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--gray-500);
}

/* ── Results: which skills cost the points ────────────────────────────────
   The score alone tells a reader nothing they can act on. This row names the
   skills they missed and links each to its drills — the web equivalent of
   the app's mastery board, and the reason to take a module at all. */
.quiz-breakdown {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-200);
}

.quiz-breakdown-heading {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.quiz-breakdown .related-chip {
  background: var(--sat-pale);
  border-color: var(--sat-primary);
  color: var(--sat-primary-2);
}

/* ── SAT word pages ───────────────────────────────────────────────────────
   These reuse the ISEE word-page shell wholesale (.word-page-shell,
   .word-panel, .definition-grid …). Only the two things the SAT word bank
   has that the ISEE one does not need naming here. */
.sat-level-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

.wordlist-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-600);
}

@media (max-width: 640px) {
  .skill-grid { grid-template-columns: minmax(0, 1fr); }
  .skill-grid-3 > :last-child { grid-column: auto; }
  .test-chain { justify-content: center; }
  .timer-value { font-size: 28px; }
}

/* ── ScreenTime: version line + changelog ── */
.app-version {
  position: relative;
  z-index: 1;
  margin: 22px auto 0;
  font-size: 14px;
  color: rgba(255,255,255,.85);
}
.app-version a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.release { padding: 22px 0; border-bottom: 1px solid var(--gray-200); }
.release:last-child { border-bottom: none; }
.release-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.release-head h2 { margin: 0; font-size: 20px; }
.release-head time { font-size: 14px; color: var(--gray-500); }
.release-tag { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--green-100); color: var(--green-700); }
.release ul { margin: 0; padding-left: 20px; }
.release li { margin: 6px 0; font-size: 15px; color: var(--gray-700); }
.release li .zh { display: block; font-size: 13px; color: var(--gray-500); }

/* ── 中英切换（/app/lang.js）── 只在 html 带 data-ui-lang 的页面生效 */
html[data-ui-lang="en"] .t-zh,
html[data-ui-lang="zh"] .t-en { display: none !important; }
.lang-toggle {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--green-600);
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background .15s;
}
.lang-toggle:hover { background: var(--green-100); }
/* 按钮放在页面内容里（标签那一行的最右边 / 更新日志标题上方），不放全站导航里 */
.app-tabs { position: relative; }
.app-tabs .lang-toggle { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); }
.lang-row { display: flex; justify-content: flex-end; margin-bottom: 4px; }
@media (max-width: 640px) {
  .app-tabs .lang-toggle { position: static; transform: none; }
}

/* ── 应用页标签（ScreenTime：核心功能 / 安装指南 / 日常使用）── */
.app-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 1120px;
  margin: 8px auto 0;
  padding: 0 24px;
}
.app-tab {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-600);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  background: #fff;
  transition: color .15s, background .15s, border-color .15s;
}
.app-tab:hover { color: var(--green-600); border-color: var(--green-100); background: var(--green-50); }
.app-tab.active { color: #fff; background: var(--green-600); border-color: var(--green-600); }
.tab-panel { padding-top: 28px; }
.tab-panel[hidden] { display: none; }
@media (max-width: 520px) { .app-tab { padding: 8px 14px; font-size: 14px; } }

/* ── 左右排的应用页头（ScreenTime）：左边名称和一句话，右边下载按钮和版本 ── */
.app-hero-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 36px max(24px, calc((100% - 1072px) / 2)) 68px;
  text-align: left;
}
.app-hero-split .hero-main { flex: 1 1 auto; min-width: 0; }
.app-hero-split .app-hero-top { justify-content: flex-start; margin-bottom: 10px; }
.app-hero-split .app-hero-sub { margin: 0; max-width: 620px; }
.app-hero-split .hero-download { flex: 0 0 auto; position: relative; z-index: 1; }
.app-hero-split .platform-row { margin-top: 0; gap: 12px; justify-content: flex-end; }
.app-hero-split .platform-item {
  width: auto;
  height: auto;
  flex-direction: row;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #fff;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.app-hero-split .platform-item:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.app-hero-split .platform-item svg { width: 18px; height: 18px; color: var(--blue-600); }
.app-hero-split .platform-item span { font-size: 15px; color: var(--blue-600); }
.app-hero-split .platform-item + .platform-item { background: rgba(255,255,255,.16); }
.app-hero-split .platform-item + .platform-item svg,
.app-hero-split .platform-item + .platform-item span { color: #fff; }
.app-hero-split .app-version { margin: 12px 0 0; text-align: right; }
@media (max-width: 820px) {
  .app-hero-split { flex-direction: column; align-items: stretch; text-align: center; gap: 22px; padding-bottom: 64px; }
  .app-hero-split .app-hero-top { justify-content: center; }
  .app-hero-split .app-hero-sub { margin: 0 auto; }
  .app-hero-split .platform-row { justify-content: center; }
  .app-hero-split .app-version { text-align: center; }
}

/* ══════════════════════════════════════════════════════════════════════════
   SITE CHROME (2026-10-20)
   ──────────────────────────────────────────────────────────────────────────
   The ISEE/SAT hub pages (and the ScreenTime changelog) use the homepage's
   header and footer, written by lib/home/render.js with { legacy: true }, so
   they carry `wl-chrome`. Everything below hangs off that class, or off
   `body:has(> header.wl-chrome)` for the page itself (width, background, hero),
   so it reaches only those ~25 pages. The ~7,400 ISEE/SAT word, test and drill
   pages keep their own hidden seo-only header and do not match any of it.
   Tokens and sizes copy /makers/assets/site.css and /home/home.css (light only).
   ══════════════════════════════════════════════════════════════════════════ */
body:has(> header.wl-chrome) {
  --bg: #faf8f5; --surface: #ffffff; --surface-2: #f3f0ea;
  --ink: #1c1917; --ink-2: #57534e; --ink-3: #8a847c;
  --line: #e7e2da; --line-strong: #d6cfc4;
  --accent: #0f766e; --accent-hover: #115e59; --accent-soft: #e3f1ef;
  --gutter: clamp(16px, 4vw, 32px);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
}

.wl-chrome .wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: var(--gutter); }
.wl-chrome .muted { color: var(--ink-2); }
.wl-chrome .small { font-size: .875rem; }

/* Header */
.site-header.wl-chrome {
  position: sticky; top: 0; z-index: 20; box-shadow: none;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.wl-chrome .site-header__inner { display: flex; align-items: center; gap: 18px; height: 64px; }
.wl-chrome .home-brand { display: flex; align-items: center; gap: 14px; min-width: 0; color: var(--ink); text-decoration: none; }
.wl-chrome .home-brand img { display: block; width: auto; height: 40px; }
.wl-chrome .home-brand__tagline { font-size: .9rem; color: var(--ink-2); line-height: 1.3; max-width: 22ch; padding-left: 14px; border-left: 1px solid var(--line-strong); }
.wl-chrome .site-nav { display: flex; gap: 4px; margin-left: auto; }
.wl-chrome .site-nav a { color: var(--ink-2); font-weight: 500; font-size: .95rem; line-height: 1.6; padding: .45em .75em; border-radius: 8px; text-decoration: none; }
.wl-chrome .site-nav a:hover, .wl-chrome .site-nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.wl-chrome .btn {
  flex: none; display: inline-flex; align-items: center; gap: 0; border: 1px solid transparent; border-radius: 999px;
  font: 500 .875rem/1 var(--font); padding: .55em .95em; background: var(--accent); color: #fff; text-decoration: none; white-space: nowrap;
}
.wl-chrome .btn:hover { background: var(--accent-hover); }
@media (max-width: 1100px) { .wl-chrome .home-brand__tagline { display: none; } }
@media (max-width: 860px) {
  .site-header.wl-chrome { position: static; }
  .wl-chrome .site-header__inner { flex-wrap: wrap; height: auto; padding-block: 10px; row-gap: 6px; }
  .wl-chrome .home-brand__tagline { display: block; font-size: .8rem; max-width: none; }
  .wl-chrome .btn { margin-left: auto; }
  .wl-chrome .site-nav { order: 3; width: 100%; margin: 0 calc(var(--gutter) * -1); padding-inline: var(--gutter); overflow-x: auto; scrollbar-width: none; }
  .wl-chrome .site-nav::-webkit-scrollbar { display: none; }
  .wl-chrome .site-nav a { white-space: nowrap; font-size: .9rem; }
}
@media (max-width: 560px) { .wl-chrome .btn { display: none; } }
@media (max-width: 480px) {
  .wl-chrome .home-brand { gap: 10px; }
  .wl-chrome .home-brand img { height: 32px; }
  .wl-chrome .home-brand__tagline { padding-left: 10px; font-size: .75rem; }
}

/* Footer */
.site-footer.wl-chrome { background: var(--surface); border-top: 1px solid var(--line); margin-top: 72px; padding: 40px 0; }
.wl-chrome .site-footer__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 32px; }
.wl-chrome .site-footer__inner p { max-width: 42ch; margin: 12px 0 0; }
.wl-chrome.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; align-content: flex-start; justify-content: flex-end; }
.wl-chrome.site-footer nav a { color: var(--ink-2); font-size: .9rem; text-decoration: none; }
.wl-chrome.site-footer nav a:hover { color: var(--accent); text-decoration: underline; }
.wl-chrome .home-footer-logo { display: block; height: 30px; width: auto; }
.wl-chrome .home-legal { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.wl-chrome .home-legal p { font-size: .75rem; color: var(--ink-3); max-width: 90ch; margin: 0 0 6px; }
@media (max-width: 720px) { .wl-chrome .site-footer__inner { grid-template-columns: 1fr; } .wl-chrome.site-footer nav { justify-content: flex-start; } }

/* Page width, section bands, buttons */
body:has(> header.wl-chrome) .container { max-width: 1180px; padding: 0 var(--gutter); }
body:has(> header.wl-chrome) .section { padding-inline: 0; }
body:has(> header.wl-chrome) .section-alt { background: var(--surface); border-block: 1px solid var(--line); }
body:has(> header.wl-chrome) .btn { border-radius: 999px; }
body:has(> header.wl-chrome) .btn-primary { background: var(--accent); }
body:has(> header.wl-chrome) .btn-primary:hover { background: var(--accent-hover); }
body:has(> header.wl-chrome) .btn-secondary { background: var(--surface); color: var(--accent); border-color: var(--accent); }
body:has(> header.wl-chrome) .btn-secondary:hover { background: var(--accent-soft); }

/* Section tabs (Overview / Test / Words / Guides) */
body:has(> header.wl-chrome) .section-subnav { background: transparent; border-bottom: 1px solid var(--line); }
body:has(> header.wl-chrome) .section-subnav-inner { max-width: 1180px; padding: 0 var(--gutter); }
body:has(> header.wl-chrome) .subnav-link { color: var(--ink-2); font-weight: 500; font-size: .95rem; }
body:has(> header.wl-chrome) .subnav-link:hover { color: var(--ink); }
body:has(> header.wl-chrome) .subnav-link[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* Hero: a rounded card inside the page width, like the homepage carousel,
   instead of the full-bleed colour band. ISEE teal, SAT amber. */
body:has(> header.wl-chrome) .app-hero {
  --hero-ink: #0f766e; --hero-bg: linear-gradient(120deg, #e3f1ef, #f4faf9 60%, #fff);
  width: calc(100% - 2 * var(--gutter)); max-width: calc(1180px - 2 * var(--gutter)); margin: 24px auto 0;
  padding: clamp(24px, 5vw, 52px); border-radius: 20px; border: 1px solid var(--line);
  background: var(--hero-bg); color: var(--ink); text-align: left;
}
body:has(> header.wl-chrome) .app-hero.brand-sat { --hero-ink: #b45309; --hero-bg: linear-gradient(120deg, #fcf1e2, #fdf8f1 60%, #fff); }
body:has(> header.wl-chrome) .app-hero-curve { display: none; }
body:has(> header.wl-chrome) .app-hero-top { justify-content: flex-start; gap: 16px; }
body:has(> header.wl-chrome) .app-hero-icon { width: 64px; height: 64px; border-radius: 22%; background: var(--surface); box-shadow: 0 10px 30px rgba(0, 0, 0, .1); }
body:has(> header.wl-chrome) .app-hero h1 { color: var(--ink); font-weight: 700; letter-spacing: -0.028em; line-height: 1.1; font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.6rem); }
body:has(> header.wl-chrome) .app-hero-sub { color: var(--ink-2); max-width: 62ch; margin: 0; font-size: clamp(1rem, .95rem + .25vw, 1.12rem); }
body:has(> header.wl-chrome) .app-hero-sub + .app-hero-sub { margin-top: 6px; }
body:has(> header.wl-chrome) .app-hero .platform-row { justify-content: flex-start; gap: 10px; margin-top: 24px; }
body:has(> header.wl-chrome) .app-hero .platform-item {
  width: auto; height: auto; flex-direction: row; gap: 8px; padding: .7em 1.2em; border-radius: 999px;
  background: var(--hero-ink); text-decoration: none;
}
body:has(> header.wl-chrome) .app-hero .platform-item + .platform-item { background: var(--surface); border: 1px solid var(--line-strong); }
body:has(> header.wl-chrome) .app-hero .platform-item svg { width: 18px; height: 18px; color: #fff; }
body:has(> header.wl-chrome) .app-hero .platform-item span { font-size: .95rem; color: #fff; }
body:has(> header.wl-chrome) .app-hero .platform-item + .platform-item svg,
body:has(> header.wl-chrome) .app-hero .platform-item + .platform-item span { color: var(--ink); }
body:has(> header.wl-chrome) .app-hero .hero-cta { justify-content: flex-start; }
body:has(> header.wl-chrome) .app-hero .btn-primary { background: var(--hero-ink); }
body:has(> header.wl-chrome) .app-hero .btn-secondary { color: var(--hero-ink); border-color: var(--hero-ink); }
