/* ================================================
   TradeCraft Academy — design system
   Brand palette: deep navy, emerald, off-white.
   Light theme is default; dark theme via [data-theme="dark"].
   ================================================ */
:root {
  --navy: #0B1A33;
  --navy-2: #12264A;
  --navy-3: #1B335F;
  --gold: #D4AF37;
  --gold-2: #E6C76A;
  --gold-dark: #8A6914;
  --gold-soft: #FBF5E3;
  --emerald: var(--navy);        /* legacy names kept for older markup */
  --emerald-dark: var(--navy-3);
  --emerald-soft: var(--gold-soft);
  --offwhite: #F7F8FB;

  --bg: #FFFFFF;
  --bg-2: #FFFFFF;
  --card: #FFFFFF;
  --card-2: #F2F4F8;
  --text: var(--navy);
  --muted: #4A5568;
  --line: #E3E7EE;
  --accent: var(--gold);         /* primary buttons: gold with navy text (contrast 8.9:1) */
  --accent-text: var(--navy);
  --link: #1F4E9A;
  --label: var(--gold-dark);     /* gold-coloured small text on white (contrast 5.2:1) */
  --accent-2: #1F4E9A;
  --warn: #9A5B00;
  --warn-bg: #FFF4DB;
  --danger: #B42318;
  --danger-bg: #FEECEB;
  --success: #067647;
  --success-bg: #E3F7EC;
  --up: #067647;
  --down: #B42318;
  --focus: #1F4E9A;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(11, 26, 51, 0.10);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #071225;
  --bg-2: #0B1A33;
  --card: #10223F;
  --card-2: #172C50;
  --text: #F2F5FA;
  --muted: #AEB9CC;
  --line: rgba(255, 255, 255, 0.11);
  --accent: var(--gold);
  --accent-text: #0B1A33;
  --link: #E6C76A;
  --label: #E6C76A;
  --emerald-soft: rgba(212, 175, 55, 0.12);
  --gold-soft: rgba(212, 175, 55, 0.12);
  --accent-2: #8FB3FF;
  --warn: #F5C264;
  --warn-bg: rgba(245, 194, 100, 0.12);
  --danger: #FF8A80;
  --danger-bg: rgba(255, 138, 128, 0.12);
  --success: #5EDB9E;
  --success-bg: rgba(94, 219, 158, 0.12);
  --up: #5EDB9E;
  --down: #FF8A80;
  --focus: #8FB3FF;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; color: var(--text); }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; background: var(--card-2); padding: 2px 6px; border-radius: 6px; }
.muted { color: var(--muted); }
.container { width: min(1140px, 92%); margin: 0 auto; }
section { padding: 64px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.eyebrow { display: inline-block; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.caption { font-size: 0.82rem; color: var(--muted); }

/* ---------- Focus & accessibility ---------- */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg-2) 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--text); white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--emerald); display: grid; place-items: center; color: #fff; font-weight: 900; flex-shrink: 0; }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); font-weight: 600; padding: 8px 12px; border-radius: 8px; display: inline-block; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); background: var(--card-2); text-decoration: none; }
.nav-links a.active, .nav-links a[aria-current="page"] { color: var(--accent); background: var(--emerald-soft); }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.menu-toggle, .theme-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; background: transparent; border: 1px solid var(--line); color: var(--text); border-radius: 10px; font-size: 1.05rem; cursor: pointer; }
.menu-toggle { display: none; }
.theme-toggle:hover, .menu-toggle:hover { background: var(--card-2); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; min-height: 44px; border-radius: 10px; font-weight: 700; font-size: 0.95rem; border: 1px solid transparent; cursor: pointer; transition: background 0.15s, border-color 0.15s, transform 0.1s; white-space: nowrap; font-family: inherit; line-height: 1.2; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--emerald-dark); color: #fff; }
[data-theme="dark"] .btn-primary:hover { background: #1DB092; color: var(--accent-text); }
.btn-secondary { background: var(--card); color: var(--text); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--muted); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--card-2); }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-sm { padding: 7px 12px; min-height: 36px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn.is-loading { position: relative; color: transparent !important; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid currentColor; border-color: var(--accent-text) transparent var(--accent-text) transparent; border-radius: 50%; animation: spin 0.8s linear infinite; color: var(--accent-text); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 14px; }
.hero-note { font-size: 0.85rem; color: var(--muted); }
.hero-stats { display: flex; gap: 32px; margin-top: 32px; flex-wrap: wrap; }
.stat strong { display: block; font-size: 1.5rem; font-weight: 800; }
.stat span { color: var(--muted); font-size: 0.88rem; }

/* annotated chart preview in hero */
.chart-card { background: var(--navy); color: #E8EEF8; border-radius: 18px; padding: 22px; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,0.06); }
.chart-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; }
.chart-card-head .pair { font-weight: 700; font-size: 0.95rem; }
.chart-card-head .pill { font-size: 0.78rem; padding: 4px 10px; border-radius: 999px; background: rgba(34, 195, 166, 0.18); color: #22C3A6; font-weight: 700; white-space: nowrap; }
.chart-card svg { width: 100%; height: auto; display: block; }
.chart-legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.chart-legend div { background: rgba(255, 255, 255, 0.06); border-radius: 10px; padding: 10px; font-size: 0.78rem; color: #A5B1C8; }
.chart-legend strong { display: block; color: #fff; font-size: 0.95rem; }
.chart-card .caption { color: #A5B1C8; margin: 12px 0 0; }

/* ---------- Trust row ---------- */
.trust { padding: 8px 0 32px; }
.trust-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.trust-row span { padding: 7px 14px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; color: var(--muted); font-size: 0.86rem; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: border-color 0.15s, box-shadow 0.15s; }
.card:hover { border-color: #CBD5E1; box-shadow: var(--shadow); }
[data-theme="dark"] .card:hover { border-color: rgba(255,255,255,0.2); }
.card .icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-size: 1.25rem; background: var(--emerald-soft); margin-bottom: 14px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin-bottom: 0; }

/* ---------- Lessons list ---------- */
.lesson-list { display: grid; gap: 12px; }
.lesson { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; color: inherit; }
.lesson:hover { text-decoration: none; border-color: var(--accent); }
.lesson .num { font-size: 1.3rem; font-weight: 800; color: var(--accent); }
.lesson h3 { margin: 0 0 3px; font-size: 1.02rem; }
.lesson p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.lesson.is-done .num { color: var(--success); }
.lesson .done-mark { font-size: 0.8rem; color: var(--success); font-weight: 700; margin-inline-start: 8px; }
.tag { font-size: 0.72rem; padding: 4px 10px; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.tag-free { background: var(--success-bg); color: var(--success); }
.tag-pro { background: var(--warn-bg); color: var(--warn); }

/* breadcrumbs */
.breadcrumbs { font-size: 0.85rem; color: var(--muted); margin: 0 0 18px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; margin-inline-end: 6px; color: var(--line); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs [aria-current] { color: var(--text); font-weight: 600; }

/* lesson article */
.article { max-width: 760px; margin: 0 auto; }
.article h2 { margin-top: 2em; font-size: 1.45rem; }
.article h3 { margin-top: 1.5em; }
.article ul, .article ol { padding-inline-start: 1.3em; }
.article li { margin-bottom: 0.5em; }
.article table { font-size: 0.93rem; }
.callout { border-inline-start: 4px solid var(--accent); background: var(--emerald-soft); padding: 14px 18px; border-radius: 10px; margin: 22px 0; }
.callout.warn { border-color: var(--warn); background: var(--warn-bg); }
.callout.danger { border-color: var(--danger); background: var(--danger-bg); }
.callout strong { display: block; margin-bottom: 4px; }
.callout ul { margin-bottom: 0; }
.lesson-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.85rem; color: var(--muted); margin: 10px 0 0; }
.lesson-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.lesson-nav .btn { max-width: 100%; white-space: normal; text-align: start; }

/* lesson progress / notes panel */
.lesson-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-top: 36px; }
.lesson-panel h3 { font-size: 1rem; margin-bottom: 10px; }
.lesson-panel textarea { min-height: 110px; resize: vertical; }
.lesson-panel .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.status { font-size: 0.88rem; margin: 0; }
.status.ok { color: var(--success); }
.status.err { color: var(--danger); }

/* continue learning banner */
.continue { display: none; background: var(--emerald-soft); border: 1px solid var(--accent); border-radius: var(--radius); padding: 18px 22px; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 24px auto 0; }
.continue.show { display: flex; }
.continue strong { display: block; }
.continue span { color: var(--muted); font-size: 0.9rem; }
.progress { height: 10px; background: var(--card-2); border-radius: 999px; overflow: hidden; margin: 12px 0; border: 1px solid var(--line); }
.progress > div { height: 100%; width: 0; background: var(--accent); transition: width 0.3s; }

/* ---------- Tools / forms ---------- */
.tool { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.tool h3 { margin-bottom: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0; }
label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.req { color: var(--danger); }
input, select, textarea { width: 100%; padding: 11px 13px; min-height: 44px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font-size: 1rem; font-family: inherit; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: transparent; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 0.82rem; margin: 6px 0 0; }
.result { background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-top: 10px; }
.result-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.result-row:last-child { border-bottom: 0; }
.result-row strong { font-size: 1.05rem; text-align: end; }
.good { color: var(--success); }
.bad { color: var(--danger); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist input { width: 22px; height: 22px; min-height: 0; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.checklist li.done span { text-decoration: line-through; color: var(--muted); }
.demo-note { font-size: 0.8rem; color: var(--muted); margin: 12px 0 0; padding: 8px 10px; background: var(--warn-bg); border-radius: 8px; color: var(--warn); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 30px 26px; position: relative; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent); box-shadow: var(--shadow); }
.plan .badge { position: absolute; top: -13px; inset-inline-start: 24px; background: var(--accent); color: var(--accent-text); font-size: 0.72rem; font-weight: 800; padding: 5px 12px; border-radius: 999px; letter-spacing: 0.05em; }
.plan .price { font-size: 2.4rem; font-weight: 800; margin: 8px 0 4px; }
.plan .price small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 26px; flex: 1; }
.plan li { padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--muted); display: flex; gap: 10px; }
.plan li::before { content: "✓"; color: var(--success); font-weight: 800; }
.plan li.no::before { content: "–"; color: var(--line); }

/* ---------- FAQ / accordion ---------- */
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; min-height: 28px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; border-radius: 20px; padding: 52px 40px; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: #C7D0E0; max-width: 560px; margin: 0 auto 24px; }
.cta-band .btn-primary { background: #22C3A6; color: #06281F; }
.cta-band .btn-primary:hover { background: #1DB092; }

/* ---------- Newsletter ---------- */
.newsletter { display: flex; gap: 10px; max-width: 480px; }
.newsletter input { flex: 1; }

/* ---------- Risk bar ---------- */
.risk-bar { background: var(--warn-bg); color: var(--warn); font-size: 0.8rem; text-align: center; padding: 7px 12px; border-bottom: 1px solid var(--line); }

/* ---------- Markets ---------- */
.ticker { background: var(--navy); color: #E8EEF8; border-bottom: 1px solid rgba(255,255,255,0.06); overflow: hidden; }
.ticker-inner { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; padding: 8px 0; }
.ticker-inner::-webkit-scrollbar { display: none; }
.ticker-item { flex: 0 0 auto; padding: 4px 18px; border-inline-end: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; white-space: nowrap; display: flex; gap: 8px; align-items: baseline; }
.ticker-item .sym { font-weight: 700; color: #fff; }
.ticker-item .chg { font-size: 0.78rem; font-weight: 700; }
.ticker-item .chg.up { color: #34D399; } .ticker-item .chg.down { color: #F87171; }
.ticker-item.ticker-status { color: #A5B1C8; }
.market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.market-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; min-height: 108px; display: flex; flex-direction: column; justify-content: space-between; }
.market-card .name { font-size: 0.85rem; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.market-card .sym { font-weight: 700; color: var(--text); }
.market-card .price { font-size: 1.35rem; font-weight: 800; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.market-card .chg { font-size: 0.85rem; font-weight: 700; }
.chg.up::before { content: "▲ "; } .chg.down::before { content: "▼ "; }
.chg.up { color: var(--up); } .chg.down { color: var(--down); }
.market-card.skeleton .price { background: var(--card-2); color: transparent; border-radius: 6px; width: 60%; }
.market-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.market-head h2 { margin: 0; font-size: 1.3rem; }
.market-status { font-size: 0.85rem; color: var(--muted); }
.market-status.err { color: var(--danger); }
.tv-wrap { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); min-height: 420px; }
.notice { background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; font-size: 0.88rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 52px 0 28px; margin-top: 32px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.site-footer h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer li a { color: var(--text); font-size: 0.93rem; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; font-size: 0.8rem; color: var(--muted); }
.footer-bottom p { margin-bottom: 8px; }

/* ---------- Page hero ---------- */
.page-hero { padding: 56px 0 24px; }
.page-hero p { color: var(--muted); font-size: 1.05rem; max-width: 640px; }

/* ---------- Table ---------- */
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.93rem; }
th, td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.table-wrap { overflow-x: auto; }

/* ---------- Language switcher ---------- */
.lang-switch { width: auto; min-height: 44px; padding: 8px 30px 8px 12px; border-radius: 10px; font-size: 0.88rem; font-weight: 600; cursor: pointer; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23475569'/%3E%3C/svg%3E") no-repeat right 12px center; color: var(--text); border: 1px solid var(--line); -webkit-appearance: none; appearance: none; }

/* ---------- RTL ---------- */
[dir="rtl"] .lang-switch { padding: 8px 12px 8px 30px; background-position: left 12px center; }
[dir="rtl"] .chart-card svg text { direction: ltr; }
[dir="rtl"] .market-card .price, [dir="rtl"] .ticker-item { direction: ltr; text-align: right; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 20px; inset-inline-start: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 0.9rem; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 90; }
[dir="rtl"] .toast { transform: translateX(50%); }
.toast.show { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .grid-3, .grid-4, .pricing-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links a { padding: 8px 9px; font-size: 0.9rem; }
}
@media (max-width: 420px) {
  .logo-text { display: none; }
}
@media (max-width: 760px) {
  section { padding: 48px 0; }
  .hero { padding: 44px 0 24px; }
  .hero-grid, .grid-2, .grid-3, .grid-4, .pricing-grid, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px 0 12px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 14px 6%; border-radius: 0; font-size: 1rem; }
  .menu-toggle { display: inline-flex; }
  .nav-cta .btn-ghost, .nav-cta .btn-primary { display: none; }
  .nav-cta { gap: 6px; }
  .nav-cta .lang-switch { padding: 6px 22px 6px 8px; font-size: 0.8rem; min-height: 40px; max-width: 96px; text-overflow: ellipsis; background-position: right 7px center; }
  [dir="rtl"] .nav-cta .lang-switch { padding: 6px 8px 6px 22px; background-position: left 7px center; }
  .menu-toggle, .theme-toggle { min-width: 40px; min-height: 40px; }
  .logo { font-size: 1rem; gap: 8px; }
  .logo-mark { width: 28px; height: 28px; }
  .nav { height: 60px; }
  .nav-links { top: 60px; }
  .lesson { grid-template-columns: 44px 1fr; }
  .lesson .tag { grid-column: 2; justify-self: start; }
  .cta-band { padding: 36px 20px; }
  .chart-legend { grid-template-columns: 1fr 1fr 1fr; }
  .newsletter { flex-direction: column; }
}

/* ---------- Courses ---------- */
.course-card { display: flex; flex-direction: column; gap: 4px; }
.course-card h3 { font-size: 1.35rem; }
.course-card .progress { margin: 10px 0 4px; }

/* ---------- Quiz ---------- */
.quiz fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 10px; margin: 0 0 14px; }
.quiz legend { font-weight: 700; padding: 0 6px; }
.quiz-opt { border: 1px solid var(--line); border-radius: 10px; margin: 8px 0; padding: 0; background: var(--bg-2); }
.quiz-opt label { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 11px 12px; color: var(--text); font-weight: 500; font-size: 0.95rem; cursor: pointer; min-height: 44px; }
.quiz-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.quiz-opt label::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 2px; border-radius: 50%; border: 2px solid var(--muted); background: var(--card); }
.quiz-opt input:checked + label::before { border-color: var(--accent); background: radial-gradient(var(--accent) 45%, var(--card) 50%); }
.quiz-opt input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 10px; }
.quiz-opt input:disabled + label { cursor: default; }
.quiz-opt.opt-correct { border-color: var(--success); background: var(--success-bg); }
.quiz-opt.opt-wrong { border-color: var(--danger); background: var(--danger-bg); }
.quiz-opt.opt-correct label::after { content: "✓"; margin-inline-start: auto; color: var(--success); font-weight: 800; }
.quiz-opt.opt-wrong label::after { content: "✗"; margin-inline-start: auto; color: var(--danger); font-weight: 800; }
.quiz-fb { margin: 0; padding: 0 12px 11px 40px; font-size: 0.88rem; color: var(--muted); }
[dir="rtl"] .quiz-fb { padding: 0 40px 11px 12px; }
.quiz-msg { margin: 4px 0 0; font-size: 0.88rem; font-weight: 700; min-height: 1.2em; }
.quiz-q.is-correct .quiz-msg { color: var(--success); }
.quiz-q.is-wrong .quiz-msg { color: var(--danger); }
.article details { background: var(--card-2); }

.tv-consent { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 260px; padding: 24px; text-align: center; color: var(--muted); }
.tv-consent p { max-width: 520px; margin: 0; font-size: 0.92rem; }
.tv-wrap { min-height: 260px; }


/* ================================================================
   Navy & gold edition (2026-10)
   ================================================================ */
a { color: var(--link); }
.eyebrow { color: var(--label); }
h1, h2 { font-family: var(--serif); letter-spacing: -0.005em; }
h1 { font-weight: 700; } h2 { font-weight: 700; }
.btn-primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-primary:hover, [data-theme="dark"] .btn-primary:hover { background: var(--gold-2); color: var(--navy); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-link { background: transparent; color: var(--gold-2); padding-inline: 6px; }
.btn-link:hover { text-decoration: underline; }
.btn.is-loading::after { border-color: var(--navy) transparent var(--navy) transparent; }

/* header & footer in navy */
.site-header { background: rgba(11, 26, 51, 0.96); border-bottom: 1px solid rgba(212,175,55,.25); }
.site-header .logo, .site-header .logo:hover { color: #fff; }
.logo-mark { background: linear-gradient(135deg, var(--gold), #B8901F); color: var(--navy); }
.site-header .nav-links a { color: #C9D2E3; }
.site-header .nav-links a:hover { color: #fff; background: rgba(255,255,255,.07); }
.site-header .nav-links a[aria-current="page"] { color: var(--gold-2); background: rgba(212,175,55,.12); }
.site-header .btn-ghost, .site-header .theme-toggle, .site-header .menu-toggle { color: #fff; border-color: rgba(255,255,255,.25); }
.site-header .btn-ghost:hover, .site-header .theme-toggle:hover, .site-header .menu-toggle:hover { background: rgba(255,255,255,.08); }
.site-header .lang-switch { background-color: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.25); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23E6C76A'/%3E%3C/svg%3E"); }
.site-header .lang-switch option { color: #0B1A33; background: #fff; }
@media (max-width: 760px) { .nav-links { background: var(--navy); } }
.risk-bar { background: #FFF8E6; color: #6B4A00; }
[data-theme="dark"] .risk-bar { background: #1A1608; color: #F5D88A; }
.site-footer { background: var(--navy); color: #C9D2E3; border-top: 3px solid var(--gold); }
.site-footer .logo { color: #fff; }
.site-footer h4 { color: var(--gold-2); }
.site-footer li a { color: #E7ECF5; }
.site-footer .muted, .footer-bottom { color: #AEB9CC; }
.footer-bottom { border-top-color: rgba(255,255,255,.12); }
.footer-cancel { margin: 0 0 22px; }
.site-footer .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.site-footer .btn-secondary:hover { border-color: var(--gold); }

/* navy hero */
.hero-navy { background: radial-gradient(1200px 500px at 85% -10%, rgba(212,175,55,.18), transparent 60%), linear-gradient(160deg, #0B1A33 0%, #12264A 60%, #0B1A33 100%); color: #E7ECF5; }
.hero-navy h1, .hero-navy h2 { color: #fff; }
.hero-navy .eyebrow { color: var(--gold-2); }
.hero-navy p.lead, .hero-navy p, .hero-navy .hero-note { color: #C9D2E3; }
.hero-navy .stat strong { color: var(--gold-2); font-family: var(--serif); font-size: 1.8rem; }
.hero-navy .stat span { color: #AEB9CC; }
.hero-slim { padding: 52px 0 40px; }
.hero { padding: 76px 0 64px; }

/* market overview card in hero */
.overview-card { background: rgba(255,255,255,.04); border: 1px solid rgba(212,175,55,.35); border-radius: 18px; padding: 22px; backdrop-filter: blur(6px); box-shadow: 0 20px 40px rgba(0,0,0,.25); }
.overview-card h2 { font-size: 1.15rem; margin: 0; font-family: var(--font); }
.ov-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.ov-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.ov-row .caption { color: #AEB9CC; }
.ov-num { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; font-variant-numeric: tabular-nums; }
.ov-price { font-weight: 700; color: #fff; }
.overview-card .chg.up { color: #5EDB9E; } .overview-card .chg.down { color: #FF8A80; }
.ov-src { margin: 8px 0 14px; color: #8E9AB2 !important; font-size: .75rem; }
.ov-gold { background: rgba(212,175,55,.08); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.ov-gold .caption { color: #C9D2E3; }
.overview-card .gold-figs strong { color: #fff; }

/* segmented control & chips */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { background: transparent; border: 0; padding: 7px 12px; font: inherit; font-size: .85rem; font-weight: 700; color: var(--muted); cursor: pointer; min-height: 36px; }
.seg button[aria-pressed="true"] { background: var(--gold); color: var(--navy); }
.hero-navy .seg, .overview-card .seg { border-color: rgba(255,255,255,.25); }
.hero-navy .seg button, .overview-card .seg button { color: #C9D2E3; }
.hero-navy .seg button[aria-pressed="true"], .overview-card .seg button[aria-pressed="true"] { color: var(--navy); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; min-height: 38px; }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
[data-theme="dark"] .chip[aria-pressed="true"] { background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* status badges */
.badge-st { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 800; letter-spacing: .02em; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.badge-st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-live { background: var(--success-bg); color: var(--success); }
.st-live::before { animation: pulse 1.6s infinite; }
.st-delayed { background: var(--warn-bg); color: var(--warn); }
.st-closed { background: var(--card-2); color: var(--muted); }
.st-unavail, .st-connecting { background: var(--card-2); color: var(--muted); }
.st-stale { background: var(--danger-bg); color: var(--danger); }
.overview-card .badge-st { background: rgba(255,255,255,.08); }
.overview-card .st-live { color: #5EDB9E; } .overview-card .st-delayed { color: #F5C264; } .overview-card .st-stale { color: #FF8A80; } .overview-card .st-unavail, .overview-card .st-connecting, .overview-card .st-closed { color: #AEB9CC; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #5EDB9E; display: inline-block; animation: pulse 1.6s infinite; }

/* dashboard */
.dash-tools { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.dash-right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.dash-right input { width: 240px; max-width: 100%; }
.dash-wrap { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table.dash { margin: 0; }
table.dash th { background: var(--card-2); position: sticky; top: 0; }
table.dash td { vertical-align: middle; }
table.dash td .caption { display: block; font-size: .74rem; }
table.dash .num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.dash .c-price { font-weight: 800; font-size: 1.02rem; }
table.dash .c-chg .chg { display: block; font-size: .86rem; }
table.dash .c-name strong { font-size: .98rem; }
table.dash .c-src { max-width: 220px; }
table.dash .note { color: var(--muted); max-width: 300px; white-space: normal; }
.star { background: none; border: 0; font-size: 1.25rem; color: var(--gold-dark); cursor: pointer; min-width: 36px; min-height: 36px; }
[data-theme="dark"] .star { color: var(--gold-2); }
tr.flash-up td.c-price { animation: flashUp 1s; } tr.flash-down td.c-price { animation: flashDown 1s; }
@keyframes flashUp { from { background: var(--success-bg); } to { background: transparent; } }
@keyframes flashDown { from { background: var(--danger-bg); } to { background: transparent; } }
#dash-empty { padding: 16px; margin: 0; }
.chart-panel { margin-top: 18px; }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.chart-head h2 { font-size: 1.15rem; margin: 0; font-family: var(--font); }
.chart-ctrl { display: flex; align-items: center; gap: 8px; }
#chart-canvas { width: 100%; display: block; }
.chart-msg { padding: 40px 0; text-align: center; }
@media (max-width: 760px) {
  table.dash .c-src, table.dash th:nth-child(6) { display: none; }
  table.dash td, table.dash th { padding: 9px 6px; }
  .dash-right input { width: 100%; }
}

/* gold */
.gold-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gold-figs div { background: var(--gold-soft); border-radius: 10px; padding: 10px 12px; }
.overview-card .gold-figs div { background: rgba(255,255,255,.05); }
.gold-figs strong { display: block; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.gold-top { align-items: start; }
.result-row strong.big { font-size: 1.4rem; color: var(--text); }
.gold-teaser { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: linear-gradient(120deg, var(--gold-soft), var(--card)); border-color: rgba(212,175,55,.45); }
.gold-teaser h2 { margin-bottom: 6px; }

/* course & article cards */
.course-card.feat { gap: 6px; }
.ticks { list-style: none; padding: 0; margin: 0 0 8px; }
.ticks li { padding: 3px 0 3px 22px; position: relative; color: var(--muted); font-size: .92rem; }
.ticks li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--gold-dark); font-weight: 800; }
[dir="rtl"] .ticks li { padding: 3px 22px 3px 0; }
[data-theme="dark"] .ticks li::before { color: var(--gold-2); }
.price-line { font-weight: 700; color: var(--text); font-size: .92rem; margin: 8px 0; }
.article-card { display: flex; flex-direction: column; color: inherit; }
.article-card:hover { text-decoration: none; border-color: var(--gold); }
.article-card .more { margin-top: auto; padding-top: 10px; color: var(--link); font-weight: 700; font-size: .9rem; }
.instructor { display: flex; gap: 24px; align-items: flex-start; }
.avatar { flex: 0 0 84px; height: 84px; border-radius: 50%; background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: var(--gold-2); display: grid; place-items: center; font-family: var(--serif); font-size: 1.8rem; font-weight: 700; border: 3px solid var(--gold); }
@media (max-width: 560px) { .instructor { flex-direction: column; } }
.cta-band { background: linear-gradient(150deg, #0B1A33, #1B335F); border: 1px solid rgba(212,175,55,.35); }
.cta-band .btn-primary { background: var(--gold); color: var(--navy); }
.cta-band .btn-primary:hover { background: var(--gold-2); }
.plan.featured { border-color: var(--gold); box-shadow: 0 16px 36px rgba(212,175,55,.18); }
.plan .badge { background: var(--gold); color: var(--navy); }
.callout { border-inline-start-color: var(--gold); background: var(--gold-soft); }
.lesson:hover { border-color: var(--gold); }
.lesson .num { color: var(--gold-dark); }
[data-theme="dark"] .lesson .num { color: var(--gold-2); }
.progress > div { background: linear-gradient(90deg, var(--gold), #B8901F); }
.ticker { border-bottom: 1px solid rgba(212,175,55,.2); }
.ticker-item .sym { color: var(--gold-2); }

/* member lesson gate */
.gate { border: 2px solid var(--gold); background: var(--gold-soft); border-radius: var(--radius); padding: 22px; margin: 28px 0; position: relative; }
.gate::before { content: ""; position: absolute; left: 0; right: 0; top: -90px; height: 88px; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; }
.gate h3 { margin-top: 0; }
.gate .row { display: flex; gap: 10px; flex-wrap: wrap; }
.faq-a { color: var(--muted); margin-top: 10px; }
.faq-a p:last-child { margin-bottom: 0; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

@media print {
  .site-header, .site-footer, .risk-bar, .ticker, .skip-link, #cancel-form, .card { display: none !important; }
  #cx-done { display: block !important; border: 0; }
}

.lesson-panel .btn, .gate .btn, .tool .btn { white-space: normal; text-align: center; }
.chg-abs { display: block; font-size: .86rem; font-weight: 700; }
.chg-abs.up { color: var(--up); } .chg-abs.down { color: var(--down); }
.nav-links a { white-space: nowrap; }
/* fold-out menu below 1180px */
@media (max-width: 1180px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--navy); border-bottom: 1px solid rgba(212,175,55,.25); padding: 8px 0 12px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 13px 4%; border-radius: 0; font-size: 1rem; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 760px) { .nav-links { top: 60px; } }
.tv-full { height: min(78vh, 760px); min-height: 460px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.tv-full .tv-consent { height: 100%; }
.tv-remember { display: flex; gap: 8px; align-items: center; font-weight: 500; color: var(--muted); margin: 0; }
.tv-remember input { width: 18px; height: 18px; min-height: 0; accent-color: var(--gold); }
.start-here .chips { gap: 8px; }
.goal-steps { margin: 0; padding-inline-start: 1.3em; }
.goal-steps li { padding: 4px 0; }
.goal-steps .tag { margin-inline-start: 6px; }
.principles li { padding-top: 6px; padding-bottom: 6px; }
.principles strong { color: var(--text); }
.hero-actions .btn-outline { padding-inline: 18px; }
@media (max-width: 1340px) and (min-width: 1181px) {
  .nav-links a { padding: 8px 9px; font-size: .92rem; }
  .nav-cta .btn-primary { display: none; }
}
.hero-grid > *, .grid > * { min-width: 0; }
.hero-actions .btn, .card .btn, .btn-sm, .cta-band .btn { white-space: normal; text-align: center; }

/* ---------- Goldy (market assistant) ---------- */
.goldy { position: fixed; left: 18px; bottom: 18px; z-index: 80; font-size: .92rem; }
.goldy-btn { width: 78px; height: 84px; border: 0; background: none; padding: 0; cursor: pointer; filter: drop-shadow(0 8px 14px rgba(11,26,51,.28)); }
.goldy-btn:focus-visible { outline: 3px solid var(--focus); border-radius: 18px; }
.goldy-svg { width: 100%; height: 100%; overflow: visible; }
.goldy-float { animation: goldyFloat 3.2s ease-in-out infinite; transform-origin: 60px 70px; }
.goldy-eyes { animation: goldyBlink 5s infinite; transform-origin: 60px 47px; }
.goldy-arm { animation: goldyWave 4s ease-in-out infinite; transform-origin: 93px 74px; }
.goldy-bulb { animation: goldyGlow 2s ease-in-out infinite; }
.goldy-btn:hover .goldy-arm { animation-duration: 1s; }
@keyframes goldyFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes goldyBlink { 0%,92%,100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes goldyWave { 0%,70%,100% { transform: rotate(0); } 78% { transform: rotate(-18deg); } 86% { transform: rotate(8deg); } }
@keyframes goldyGlow { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
.goldy-hello { position: absolute; left: 70px; bottom: 70px; background: var(--navy); color: #fff; border: 1px solid var(--gold); padding: 6px 12px; border-radius: 14px 14px 14px 4px; font-weight: 700; white-space: nowrap; box-shadow: var(--shadow); }
.goldy-panel { position: absolute; left: 0; bottom: 92px; width: min(340px, calc(100vw - 36px)); background: var(--card); color: var(--text); border: 1px solid var(--gold); border-radius: 16px; padding: 14px 16px; box-shadow: 0 18px 40px rgba(11,26,51,.28); }
.goldy-panel::after { content: ""; position: absolute; left: 30px; bottom: -8px; width: 14px; height: 14px; background: var(--card); border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold); transform: rotate(45deg); }
.goldy-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.goldy-head strong { font-family: var(--serif); font-size: 1.15rem; color: var(--gold-dark); }
[data-theme="dark"] .goldy-head strong { color: var(--gold-2); }
.goldy-x { background: none; border: 0; color: var(--muted); font-size: 1rem; cursor: pointer; min-width: 32px; min-height: 32px; }
.goldy-say { margin: 0 0 8px; }
.goldy-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.goldy-num { font-weight: 700; font-variant-numeric: tabular-nums; text-align: end; }
.goldy-num .chg { font-size: .8rem; margin-inline-start: 4px; }
.goldy-per { margin: 6px 0 0; font-size: .75rem; }
.goldy-tip { background: var(--gold-soft); border-radius: 10px; padding: 8px 10px; margin: 10px 0; }
.goldy-tip:empty { display: none; }
.goldy-tip p { margin: 0 0 6px; }
.goldy-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 0; }
.goldy-links a { border: 1px solid var(--line); border-radius: 10px; padding: 7px 8px; color: var(--text); font-weight: 600; font-size: .84rem; text-decoration: none; }
.goldy-links a:hover { border-color: var(--gold); }
.goldy-note { font-size: .74rem; color: var(--muted); margin: 6px 0 4px; }
.goldy-src { display: block; }
.goldy-hide { background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: .76rem; cursor: pointer; padding: 0; }
@media (max-width: 560px) { .goldy-btn { width: 60px; height: 66px; } .goldy-panel { bottom: 74px; } .goldy-hello { left: 56px; bottom: 56px; } }
@media (prefers-reduced-motion: reduce) { .goldy-float, .goldy-eyes, .goldy-arm, .goldy-bulb { animation: none; } }
@media print { .goldy { display: none !important; } }
.selfstudy { font-size: .88rem; color: var(--muted); max-width: 760px; margin: 16px 0 0; }
.selfstudy .tag { margin-inline-end: 6px; }
@media print {
  .no-print, .lesson-panel, .lesson-nav, .gate, .breadcrumbs, .quiz .row, .goldy, .ticker, .footer-cancel { display: none !important; }
  body { background: #fff; color: #000; }
  .page-hero { padding: 0 0 10px; }
  .article { max-width: 100%; }
  a { color: #000; text-decoration: underline; }
  details { border: 1px solid #ccc; } details > *:not(summary) { display: block !important; }
  .callout { break-inside: avoid; }
}

/* ---- digital clock ---- */
.hclock { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .9rem; color: var(--gold, #c9a227); padding: 0 6px; letter-spacing: .02em; white-space: nowrap; }
.hclock:empty { display: none; }
.clock-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.clock-card { background: var(--card, #fff); border: 1px solid var(--line, #e5e7eb); border-radius: 14px; padding: 14px 16px; }
.clock-card.clock-local { border-color: var(--gold, #c9a227); }
.clock-name { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted, #667085); }
.clock-time { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; margin: 4px 0 2px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.clock-sub { font-size: .85rem; color: var(--muted, #667085); }
.clock-badge { font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.clock-badge.is-open { background: rgba(34, 211, 165, .15); color: #0f8a6a; }
.clock-badge.is-closed { background: rgba(239, 68, 68, .12); color: #b42318; }
@media (max-width: 760px) { .hclock { display: none; } }
.btn-yt { border-color: #e53935 !important; color: #e53935 !important; }
.btn-yt:hover { background: #e53935 !important; color: #fff !important; }
/* ---- YouTube video section ---- */
.yt-box { position: relative; width: 100%; max-width: 960px; min-height: 300px; border-radius: 16px; overflow: hidden; background: #0b1324; border: 1px solid var(--line, #e5e7eb); }
.yt-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-box[data-loaded] { aspect-ratio: 16 / 9; min-height: 0; }
.yt-consent { position: relative; min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; color: #e6e9f0; }
.yt-consent p { max-width: 560px; margin: 0; font-size: .95rem; }
.yt-consent .yt-play { font-size: 3rem; line-height: 1; color: #e53935; }
.yt-consent .tv-remember { color: #c9cfdb; }

/* ---- ticker: slow automatic loop ---- */
.ticker-inner.is-moving { overflow: hidden; direction: ltr; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: flex; width: max-content; animation: ticker-move 60s linear infinite; will-change: transform; }
.ticker-group { display: flex; flex: 0 0 auto; }
.ticker-inner.is-moving:hover .ticker-track, .ticker-inner.is-moving:focus-within .ticker-track { animation-play-state: paused; }
@keyframes ticker-move { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-inner.is-moving { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .ticker-track { animation: none; }
  .ticker-group[aria-hidden="true"] { display: none; }
}

.btn-fb { border-color: #1877f2 !important; color: #1877f2 !important; }
.btn-fb:hover { background: #1877f2 !important; color: #fff !important; }
