/* YUKI FX education page. Loaded after site.css; Pure Ink palette only. */
:root { --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* ---------- Spec row under the headline ---------- */
.edu-specs { margin: 24px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; max-width: 560px; }
@media (min-width: 560px) { .edu-specs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.edu-specs div { min-width: 0; padding: 12px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: -1px; }
.edu-specs div:last-child { border-right: 0; }
@media (max-width: 559px) { .edu-specs div:nth-child(2n) { border-right: 0; } }
.edu-specs dt { font: 500 var(--fs-2xs)/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.edu-specs dd { margin: 4px 0 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Learning path: three stages on one rail ---------- */
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); overflow: hidden; }
@media (min-width: 860px) { .path { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.path-step { min-width: 0; display: grid; align-content: start; gap: 14px; padding: 24px; transition: background-color .25s ease; }
.path-step + .path-step { border-top: 1px solid var(--line); }
@media (min-width: 860px) { .path-step + .path-step { border-top: 0; border-left: 1px solid var(--line); } }
.path-code { display: flex; align-items: center; gap: 10px; font: 500 var(--fs-2xs)/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.path-code::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }
.path-dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--text); background: var(--bg); transition: background-color .25s ease, box-shadow .25s ease; }
.path-step h2 { font-size: var(--fs-lg); font-weight: 800; letter-spacing: -.02em; }
.path-step > p:last-child { color: var(--muted); font-size: var(--fs-sm); line-height: 1.65; }

/* Stage glyphs: small hand-built chart drawings */
.glyph { width: 100%; max-width: 220px; height: 64px; overflow: visible; color: var(--muted); transition: color .25s ease; }
.glyph line, .glyph polyline, .glyph circle, .glyph rect { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.glyph circle { fill: var(--surface); }
.glyph text { fill: currentColor; font: 500 8px var(--mono); letter-spacing: .04em; }
.glyph .g-dim { stroke: var(--line-strong); }
.glyph .g-dash { stroke-dasharray: 3 4; }
.glyph .g-bright, .glyph .g-bull { stroke: var(--text); }
.glyph .g-bull { fill: var(--text); }
.glyph .g-bear { fill: var(--surface); }
.glyph .g-zone { fill: rgba(255,255,255,.06); stroke-dasharray: 3 3; }
.glyph .g-draw { stroke-dasharray: 400; stroke-dashoffset: 0; }
@media (hover: hover) and (pointer: fine) {
  .path-step:hover { background: var(--surface-2); }
  .path-step:hover .glyph { color: var(--text); }
  .path-step:hover .path-dot { background: var(--text); box-shadow: 0 0 0 4px rgba(255,255,255,.08); }
  .path-step:hover .g-draw { animation: g-draw 1s cubic-bezier(.22,1,.36,1) both; }
}
@keyframes g-draw { from { stroke-dashoffset: 400; } to { stroke-dashoffset: 0; } }

/* ---------- Annotated SMC chart ---------- */
.smc { margin-top: 20px; padding: 0; overflow: hidden; }
.smc-legend { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; border-bottom: 1px solid var(--line); }
.smc-legend button {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--muted);
  font: 600 var(--fs-xs)/1 inherit; cursor: pointer; transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.smc-legend button span { font: 500 var(--fs-2xs)/1 var(--mono); color: var(--line-strong); transition: color .15s ease; }
.smc-legend button:hover, .smc-legend button[aria-pressed="true"] { color: var(--text); border-color: var(--line-strong); }
.smc-legend button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.smc-legend button[aria-pressed="true"] span { color: var(--bg); }
.smc-legend button:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.smc-frame { padding: 8px 4px 0; background: radial-gradient(90% 80% at 70% 30%, rgba(255,255,255,.04), transparent 70%); }
#smc-chart { display: block; width: 100%; height: auto; max-height: 460px; margin: 0 auto; }
#smc-chart text { font: 500 10px var(--mono); fill: var(--text); letter-spacing: .03em; }
/* The chart scales down on phones, so labels get bigger in chart units to stay readable */
@media (max-width: 600px) { #smc-chart text { font-size: 14px; } }
.c-grid line { stroke: rgba(255,255,255,.05); stroke-width: 1; }
.c-bull line, .c-bear line { stroke-width: 1.2; }
.c-bull line { stroke: #fff; }
.c-bull rect { fill: #fff; }
.c-bear line { stroke: #6b6b6b; }
.c-bear rect { fill: #0d0d0d; stroke: #6b6b6b; stroke-width: 1.2; }
.c-solid { stroke: #fff; stroke-width: 1.2; }
.c-dash { stroke: #9a9a9a; stroke-width: 1; stroke-dasharray: 4 4; }
.c-ring { fill: none; stroke: #fff; stroke-width: 1.2; }
.c-zone { fill: rgba(255,255,255,.07); stroke: rgba(255,255,255,.25); stroke-width: 1; stroke-dasharray: 3 3; }
.c-zone-strong { fill: rgba(255,255,255,.09); }
.c-layer { transition: opacity .25s ease; }
#smc-chart[data-focus] .c-layer { opacity: .12; }
#smc-chart[data-focus="liq"] [data-layer="liq"],
#smc-chart[data-focus="choch"] [data-layer="choch"],
#smc-chart[data-focus="fvg"] [data-layer="fvg"],
#smc-chart[data-focus="ote"] [data-layer="ote"],
#smc-chart[data-focus="bos"] [data-layer="bos"],
#smc-chart[data-focus="trade"] [data-layer="trade"] { opacity: 1; }
.c-candles { transition: opacity .25s ease; }
#smc-chart[data-focus] .c-candles { opacity: .55; }
/* While the trade is live, the concepts step back so the position reads first */
#smc-chart:not([data-focus])[data-state="pending"] .c-layer:not(.c-trade):not(.c-trade-zones),
#smc-chart:not([data-focus])[data-state="filled"] .c-layer:not(.c-trade):not(.c-trade-zones),
#smc-chart:not([data-focus])[data-state="won"] .c-layer:not(.c-trade):not(.c-trade-zones) { opacity: .45; }

/* ---------- The trade: zones, order lines, fill, result ---------- */
.c-risk { fill: rgba(240, 82, 82, .10); }
.c-reward { fill: rgba(34, 197, 94, .08); transition: fill .4s ease; }
#smc-chart[data-state="pending"] .c-risk, #smc-chart[data-state="pending"] .c-reward { fill: rgba(255,255,255,.035); }
#smc-chart[data-state="won"] .c-reward { fill: rgba(34, 197, 94, .16); }
.c-tp { stroke: var(--profit); stroke-width: 1.2; }
.c-sl { stroke: var(--loss); stroke-width: 1.2; }
.c-entry { stroke: #fff; stroke-width: 1.4; }
#smc-chart[data-state="pending"] .c-entry { stroke-dasharray: 5 4; animation: c-march 1s linear infinite; }
#smc-chart[data-state="pending"] .c-tp, #smc-chart[data-state="pending"] .c-sl { stroke-dasharray: 3 4; }
@keyframes c-march { to { stroke-dashoffset: -9; } }
.c-bsl { stroke: var(--profit); opacity: .6; }
#smc-chart .t-tp { fill: var(--profit); }
#smc-chart .t-sl { fill: var(--loss); }
#smc-chart .t-entry { font-weight: 700; }
.c-fill { opacity: 0; transition: opacity .2s ease; }
#smc-chart[data-state="filled"] .c-fill, #smc-chart[data-state="won"] .c-fill { opacity: 1; }
.c-fill-dot { fill: #fff; }
.c-fill-ping { fill: none; stroke: #fff; stroke-width: 1.2; transform-box: fill-box; transform-origin: center; }
#smc-chart[data-state="filled"] .c-fill-ping { animation: c-ping 1.2s ease-out infinite; }
@keyframes c-ping { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.c-badge { opacity: 0; transform-box: fill-box; transform-origin: center; transition: opacity .35s ease; }
.c-badge rect { fill: var(--profit); }
#smc-chart .c-badge text { fill: #04140a; font-weight: 700; }
#smc-chart[data-state="won"] .c-badge { opacity: 1; }

/* ---------- Playback: things appear as the story reaches them ---------- */
#smc-chart.animated .c-candles g { transition: opacity .3s ease, transform .3s ease; }
#smc-chart.animated .c-candles g:not(.on) { opacity: 0; transform: translateY(6px); }
#smc-chart.animated .c-layer:not(.on) { opacity: 0 !important; }

/* Replay button sits apart from the concept chips */
.smc-legend .smc-replay { margin-left: auto; color: var(--text); border-color: var(--line-strong); }
.smc-replay svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.smc-legend .smc-replay:hover { background: var(--text); color: var(--bg); }
@media (max-width: 559px) { .smc-legend .smc-replay { margin-left: 0; } }

/* ---------- VIP key module (psychology) ---------- */
.key-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--text); color: var(--bg); font: 700 var(--fs-2xs)/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; }
.modules > li.mod-key { background: linear-gradient(90deg, rgba(255,255,255,.05), transparent 70%); }


.smc-explain { min-height: 3.2em; padding: 14px 16px 0; font-size: var(--fs-sm); color: var(--text); }
.smc-caption { padding: 8px 16px 16px; font: 500 var(--fs-2xs)/1.5 var(--mono); color: var(--muted); }

/* ---------- Curriculum: tabs + syllabus rows ---------- */
.track-tabs { margin-top: 20px; grid-template-columns: repeat(2, auto); }
.track { margin-top: 16px; display: grid; gap: 4px; }
.track[hidden] { display: none; }
.track.vip { border-color: var(--text); }
.track-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 16px; }
.track-head h3 { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.02em; }
.track-head .muted { margin-top: 4px; font-size: var(--fs-sm); }
.track-meta { margin: 0; display: flex; gap: 8px; }
.track-meta div { padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.track-meta dt { font: 500 var(--fs-2xs)/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.track-meta dd { margin: 2px 0 0; display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 700; white-space: nowrap; }
.meter { display: inline-flex; gap: 2px; }
.meter i { width: 4px; height: 12px; border-radius: 1px; background: var(--line-strong); }
.meter[data-level="2"] i:nth-child(-n+2), .meter[data-level="3"] i { background: var(--text); }
.track-includes { margin-top: 14px; padding: 10px 14px; border: 1px dashed var(--line-strong); border-radius: 10px; font: 500 var(--fs-2xs)/1.5 var(--mono); color: var(--muted); }

.modules { list-style: none; margin: 16px 0 20px; padding: 0; }
.modules > li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 16px 8px; border-top: 1px solid var(--line); transition: background-color .2s ease; }
.modules > li:first-child { border-top: 0; }
.modules code { padding-top: 3px; font: 700 var(--fs-xs)/1.4 var(--mono); color: var(--muted); transition: color .2s ease; }
.modules b { font-weight: 700; }
.modules p { margin-top: 4px; color: var(--muted); font-size: var(--fs-sm); }
.tags { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; font: 500 var(--fs-2xs)/1.5 var(--mono); color: #bdbdbd; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  .modules > li:hover { background: var(--surface-2); }
  .modules > li:hover code { color: var(--text); }
  .modules > li:hover + li { border-top-color: transparent; }
}

/* ---------- How access works ---------- */
.edu-how { margin-top: 24px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.edu-how h3 { font-size: var(--fs-lg); font-weight: 700; }
.edu-how ol { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); font-size: var(--fs-sm); }
.edu-note { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .path-step:hover .g-draw { animation: none; }
  #smc-chart .c-candles g, #smc-chart .c-layer { animation: none !important; opacity: 1; transform: none; }
}

#chart, #curriculum { position: relative; }
#chart::before, #curriculum::before { content: ""; position: absolute; z-index: -1; pointer-events: none; inset: -120px -12vw; }
#chart::before { background: radial-gradient(55% 45% at 65% 55%, rgba(255,255,255,.07), transparent 70%); }
#curriculum::before { background: radial-gradient(50% 35% at 20% 30%, rgba(255,255,255,.05), transparent 70%), radial-gradient(45% 30% at 85% 75%, rgba(255,255,255,.04), transparent 70%); }
