/* MEZACAPITAL · learn articles. Loaded after site.css. No inline styles anywhere (CSP). */

/* Article header */
.lesson-hero { background: var(--navy); color: var(--cream); padding: 64px 0 56px; }
.lesson-hero h1 { color: var(--cream); max-width: 18em; text-wrap: balance; }
.lesson-hero .lede { color: #b9c0c4; }
.lesson-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 1.6rem; font-size: .85rem; color: #8f999f; font-variant-numeric: tabular-nums; }
.lesson-meta b { color: #cfd3d4; font-weight: 500; }
.crumbs-dark { font-size: .85rem; color: #8f999f; margin-bottom: 1.2rem; }
.crumbs-dark a { color: #cfd3d4; }

/* Article body: reading column with wide figures */
.lesson { padding: 56px 0 88px; }
.lesson .col { max-width: 700px; }
.lesson h2 { font-size: clamp(1.4rem, 2.8vw, 1.8rem); margin-top: 3.2rem; text-wrap: balance; }
.lesson h2 .step { display: block; font: 600 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: .7rem; }
.lesson p, .lesson li { max-width: 68ch; }
.lesson ul, .lesson ol { padding-left: 1.2em; }
.lesson strong { font-weight: 600; }

.promise { border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); padding: 22px 26px; margin: 0 0 2rem; }
.promise h2 { margin: 0 0 .6rem; font-size: 1.05rem; font-family: var(--sans); letter-spacing: .02em; }
.promise ul { margin: 0; }

.fig { margin: 2rem 0 1.4rem; }
.fig .chart { box-shadow: 0 1px 0 var(--rule), 0 18px 40px -24px rgba(15, 26, 36, .55); border-radius: 8px; }
.fig figcaption { font-size: .85rem; color: var(--ink-2); margin-top: .7rem; max-width: 68ch; }
.fig figcaption b { color: var(--ink); font-weight: 600; }
.fig .tag { display: inline-block; font: 600 .66rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--rule); color: var(--ink-2); border-radius: 3px; padding: 4px 6px; margin-right: 8px; vertical-align: 1px; }
.fig .tag.real { border-color: var(--gold); color: var(--gold); }

/* On phones the figures keep a readable size and scroll sideways inside their own frame */
.fig-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) { .fig-scroll .chart { min-width: 620px; } .fig-scroll::after { content: "Swipe to see the whole figure"; display: block; font-size: .75rem; color: var(--ink-2); margin-top: .4rem; } }

/* "On our chart" callout */
.onchart { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; background: var(--navy); color: #cfd3d4; border-radius: 6px; padding: 18px 22px; margin: 1.6rem 0; max-width: 700px; }
.onchart img { width: 32px; height: 32px; border-radius: 5px; }
.onchart .k { font: 600 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: .45rem; display: block; }
.onchart p { margin: 0; font-size: .95rem; color: #cfd3d4; }

/* Check: answer before you scroll (details/summary, no script needed) */
.check { border: 1px solid var(--rule); border-left: 3px solid var(--gold-soft); border-radius: 4px; background: var(--surface); padding: 16px 20px; margin: 1.6rem 0; max-width: 700px; }
.check .k { font: 600 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: .5rem; }
.check p { margin: 0 0 .6rem; }
.check summary { cursor: pointer; font-size: .9rem; color: var(--gold); font-weight: 600; }
.check summary:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; border-radius: 2px; }
.check details p { margin: .7rem 0 0; color: var(--ink-2); }

/* Build-the-profile widget */
.builder { background: var(--navy); border-radius: 8px; padding: 14px 14px 12px; margin: 2rem 0 .8rem; box-shadow: 0 18px 40px -24px rgba(15, 26, 36, .55); }
.builder canvas { display: block; width: 100%; height: auto; border-radius: 4px; }
.builder .controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; color: #cfd3d4; font-size: .88rem; font-variant-numeric: tabular-nums; }
.builder button { background: var(--gold-soft); color: var(--navy); border: 0; border-radius: 4px; padding: 8px 14px; font: 600 .85rem/1 var(--sans); cursor: pointer; min-width: 74px; }
.builder button:hover { background: #d8b762; }
.builder button:focus-visible, .builder input:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }
.builder input[type=range] { flex: 1 1 220px; min-width: 0; accent-color: #c9a44e; }
.builder .clock { font-weight: 600; color: var(--cream); min-width: 3.2em; }
.builder .reads { display: flex; flex-wrap: wrap; gap: 6px 18px; width: 100%; color: #8f999f; font-size: .82rem; }
.builder .reads b { color: var(--cream); font-weight: 500; }
.builder .reads .poc b { color: #c9a44e; }
.builder .jumps { display: flex; flex-wrap: wrap; gap: 6px; }
.builder .jumps button { background: transparent; color: #cfd3d4; border: 1px solid #3a4854; min-width: 0; padding: 6px 10px; font-weight: 500; }
.builder .jumps button:hover { border-color: var(--gold-soft); color: var(--gold-soft); background: transparent; }
.builder .fallback { color: #8f999f; font-size: .9rem; padding: 24px; }

/* Closing blocks */
.summary-card { background: var(--navy); color: var(--cream); border-radius: 8px; padding: 28px 30px; margin: 3.2rem 0 1.6rem; max-width: 700px; }
.summary-card h2 { color: var(--cream); margin: 0 0 1rem; font-size: 1.3rem; }
.summary-card ul { margin: 0; padding-left: 1.1em; color: #cfd3d4; }
.summary-card li + li { margin-top: .4rem; }
.recall { max-width: 700px; }
.recall ol { padding-left: 1.2em; }
.recall details { margin: .2rem 0 .8rem; }
.recall summary { cursor: pointer; color: var(--gold); font-size: .88rem; font-weight: 600; }
.terms { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0 !important; margin: 1rem 0 0; }
.terms li { border: 1px solid var(--rule); border-radius: 3px; padding: 4px 9px; font-size: .85rem; color: var(--ink-2); background: var(--surface); }
.next { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 2.4rem; max-width: 700px; }
.next .card { padding: 20px 22px; }
.next .card .num { margin-bottom: .6rem; }
.next .card h3 { font-size: 1.05rem; }
@media (max-width: 640px) { .next { grid-template-columns: 1fr; } .onchart { grid-template-columns: 1fr; } .onchart img { display: none; } }
.edu-note { font-size: .8rem; color: var(--ink-2); margin-top: 2.4rem; max-width: 700px; border-top: 1px solid var(--rule); padding-top: 1rem; }

/* Learn index */
.track-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.track-list li { display: grid; grid-template-columns: 56px 1fr auto; gap: 18px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--rule); }
.track-list li:last-child { border-bottom: 1px solid var(--rule); }
.track-list .num { margin: 0; }
.track-list a { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; text-decoration: none; }
.track-list .muted { display: block; font-size: .92rem; }
.track-list .state { font: 600 .66rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.track-list .state.live { color: var(--gold); }
@media (max-width: 600px) { .track-list li { grid-template-columns: 40px 1fr; } .track-list .state { grid-column: 2; } }

/* Chart classes added for learn figures (the base ch-* set lives in site.css) */
.ch-ax { fill: #8f999f; font: 500 10px var(--sans); }
.ch-ax-end { text-anchor: end; }
.ch-ann { fill: #f2efe8; font: 500 12px var(--sans); }
.ch-ann-gold { fill: #c9a44e; font: 600 12px var(--sans); }
.ch-lead { stroke: #c9a44e; stroke-width: 1; fill: none; }
.ch-lead-grey { stroke: #8f999f; stroke-width: 1; fill: none; }
.ch-hi { fill: #c9a44e; fill-opacity: .18; }
.ch-tvol { fill: #3d4c58; }
.ch-tvol-hi { fill: #c9a44e; }
.ch-edge { stroke: #c9a44e; stroke-width: 1; stroke-dasharray: 2 3; opacity: .8; }
.ch-thin { fill: #8a949a; fill-opacity: .2; }
.ch-title { fill: #f2efe8; font: 600 13px var(--sans); }
.ch-step { fill: none; }
.ch-vaedge { stroke: #d9d4c7; stroke-width: 1.2; opacity: .6; }

/* Value-area walk widget (shares the builder frame) */
.walker .log { width: 100%; color: #cfd3d4; font-size: .92rem; min-height: 3em; margin: 0; }
.walker .meter { color: #c9a44e; font-weight: 600; }
.walker button[disabled] { opacity: .45; cursor: default; }
.ch-node { fill: #172532; stroke: #3a4854; stroke-width: 1; }
.ch-arrow { stroke: #c9a44e; stroke-width: 1.6; fill: none; }
.ch-arrow-dim { stroke: #8f999f; stroke-width: 1; fill: none; stroke-dasharray: 4 4; }
.ch-price { stroke: #d9d4c7; stroke-width: 1.8; fill: none; stroke-linejoin: round; }

/* Quiz */
.quiz { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin: 1.6rem 0 1rem; }
.quiz-card { margin: 0; min-width: 0; }
.quiz-card .chart { border-radius: 8px; }
.quiz-card .choices { display: flex; gap: 8px; margin-top: 10px; }
.quiz-card .choices button { flex: 1; font: 600 .85rem/1 var(--sans); padding: 10px 12px; border-radius: 4px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); cursor: pointer; }
.quiz-card .choices button:hover:not([disabled]) { border-color: var(--gold); color: var(--gold); }
.quiz-card .choices button:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 2px; }
.quiz-card .choices button.correct { border-color: var(--gold); color: var(--gold); }
.quiz-card .choices button.picked:not(.correct) { text-decoration: line-through; color: var(--ink-2); }
.quiz-card details { margin-top: 8px; font-size: .9rem; color: var(--ink-2); }
.quiz-card summary { cursor: pointer; color: var(--gold); font-weight: 600; font-size: .85rem; }
.quiz-card .verdict { display: none; font-weight: 600; color: var(--ink); }
.quiz-card.right .verdict.ok, .quiz-card.wrong .verdict.no { display: inline; }
.quiz-score { font-weight: 600; color: var(--gold); min-height: 1.4em; }

/* Translation poster */
.ch-hl { fill: #c9a44e; fill-opacity: .14; }
.ch-hl-thin { fill: #8fb3c9; fill-opacity: .16; }
.ch-hl-time { fill: #f2efe8; fill-opacity: .06; }
.ch-hl-time-strong { fill: #f2efe8; fill-opacity: .35; }
.ch-hl-line { stroke: #c9a44e; stroke-width: 1.6; }
.ch-am { fill: #56656f; }
.ch-pm { fill: #b8913a; }
.rosetta .hl { opacity: 0; transition: opacity .2s; }
.rosetta .mk { opacity: .3; transition: opacity .2s; }
.rosetta[data-active="fair"] .hl-fair, .rosetta[data-active="value"] .hl-value, .rosetta[data-active="balance"] .hl-balance,
.rosetta[data-active="imbalance"] .hl-imbalance, .rosetta[data-active="excess"] .hl-excess, .rosetta[data-active="unfinished"] .hl-unfinished,
.rosetta[data-active="fair"] .mk-fair, .rosetta[data-active="value"] .mk-value, .rosetta[data-active="balance"] .mk-balance,
.rosetta[data-active="imbalance"] .mk-imbalance, .rosetta[data-active="excess"] .mk-excess, .rosetta[data-active="unfinished"] .mk-unfinished { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .rosetta .hl, .rosetta .mk { transition: none; } }
.terms-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 10px; }
.terms-pick button { font: 600 .85rem/1 var(--sans); padding: 9px 12px; border-radius: 4px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); cursor: pointer; }
.terms-pick button .n { display: inline-block; width: 18px; height: 18px; line-height: 18px; border-radius: 50%; background: var(--gold-soft); color: var(--navy); font-size: .7rem; text-align: center; margin-right: 6px; }
.terms-pick button[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }
.terms-pick button:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 2px; }
.rosetta-notes { max-width: 700px; }
.rosetta-notes > div { border-left: 3px solid var(--gold-soft); padding: 4px 0 4px 16px; margin: 0 0 14px; }
.rosetta-notes h3 { font-size: 1.1rem; margin: 0 0 .3rem; }
.rosetta-notes .on { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.rosetta-notes p { margin: .3rem 0 0; }
table.rosetta-table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1rem 0; }
table.rosetta-table th, table.rosetta-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
table.rosetta-table th { font: 600 .72rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
table.rosetta-table td:first-child { font-family: var(--serif); font-weight: 600; white-space: nowrap; }
.ch-tpo { fill: #8f999f; font-family: ui-monospace, Menlo, Consolas, monospace; }
.ch-tpo-hi { fill: #c9a44e; font-weight: 700; }

/* time-at-price blocks, one shade per half hour (A..M) */
.ch-p0 { fill:#2f4a5c; }
.ch-p1 { fill:#35546a; }
.ch-p2 { fill:#3b5e77; }
.ch-p3 { fill:#416985; }
.ch-p4 { fill:#4a7391; }
.ch-p5 { fill:#567c98; }
.ch-p6 { fill:#63869f; }
.ch-p7 { fill:#7090a6; }
.ch-p8 { fill:#7d9aad; }
.ch-p9 { fill:#8aa4b4; }
.ch-p10 { fill:#97aebb; }
.ch-p11 { fill:#a4b8c2; }
.ch-p12 { fill:#b1c2c9; }
.ch-tpo-hi-b { fill:#c9a44e; }


/* Acceptance clock */
.clockw .tabs-s { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.clockw .tabs-s button { background: transparent; color: #cfd3d4; border: 1px solid #3a4854; min-width: 0; padding: 7px 12px; font-weight: 600; }
.clockw .tabs-s button[aria-pressed="true"] { border-color: #c9a44e; color: #c9a44e; }
.clockw .title { color: #8f999f; font-size: .8rem; margin: 0 0 8px; }
.clockw .chip { display: inline-block; font: 600 .78rem/1 var(--sans); letter-spacing: .04em; padding: 6px 9px; border-radius: 3px; border: 1px solid #3a4854; color: #cfd3d4; }
.clockw .chip.ok { background: #c9a44e; color: #0f1a24; border-color: #c9a44e; }
.clockw .chip.probe { border-color: #c9a44e; color: #c9a44e; }
.clockw .chip.back { border-style: dashed; color: #8f999f; }

/* map zones */
.ch-z-out { fill:#8f999f;fill-opacity:.05; }
.ch-z-mid { fill:#8fb3c9;fill-opacity:.07; }
.ch-z-val { fill:#c9a44e;fill-opacity:.12; }
.ch-arrow-plain { stroke:#d9d4c7;stroke-width:1.6;fill:none; }


.ch-smooth { stroke:#f2efe8;stroke-width:1.4;fill:none;opacity:.8; }
.ch-peak { fill:#c9a44e;stroke:#0f1a24;stroke-width:1.5; }


.ch-node-dash { fill: #172532; stroke: #c9a44e; stroke-width: 1; stroke-dasharray: 5 4; }

/* Rule tracker */
.rulew .steps { list-style: none; padding: 0; margin: 4px 0 0; width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; }
.rulew .steps li { border: 1px solid #3a4854; border-radius: 4px; padding: 8px 10px; color: #8f999f; font-size: .8rem; }
.rulew .steps li b { display: block; color: #cfd3d4; font-weight: 600; font-size: .82rem; margin-bottom: 2px; }
.rulew .steps li.done { border-color: #c9a44e; }
.rulew .steps li.done b { color: #c9a44e; }
.rulew .steps li .v { color: #f2efe8; }
.rulew .wording { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: #8f999f; font-size: .82rem; }

/* Practice lab */
.practice { margin: 3rem 0 1.6rem; }
.practice > h2 { margin-top: 0; }
.practice .lab { background: var(--navy); border-radius: 8px; padding: 16px; color: #cfd3d4; box-shadow: 0 18px 40px -24px rgba(15, 26, 36, .55); }
.lab-head { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: .8rem; color: #8f999f; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.lab-chip { font: 600 .7rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #0f1a24; background: #c9a44e; border-radius: 3px; padding: 5px 7px; }
.lab-score { margin-left: auto; color: #c9a44e; font-weight: 600; }
.lab-prompt { font-family: var(--serif); font-size: 1.15rem; color: #f2efe8; margin: 4px 0 12px; max-width: 60ch; }
.lab-canvas { display: block; width: 100%; height: auto; border-radius: 4px; }
.lab-canvas.tappable { cursor: crosshair; }
.lab-hint { font-size: .85rem; color: #8f999f; margin: 8px 0 0; min-height: 1.2em; }
.lab-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.lab-choice { background: transparent; color: #f2efe8; border: 1px solid #3a4854; border-radius: 4px; padding: 10px 14px; font: 600 .88rem/1.2 var(--sans); cursor: pointer; text-align: left; }
.lab-choice:hover:not([disabled]) { border-color: #c9a44e; color: #c9a44e; }
.lab-choice.correct { border-color: #c9a44e; background: #c9a44e; color: #0f1a24; }
.lab-choice.wrong { text-decoration: line-through; color: #8f999f; }
.lab-choice[disabled] { cursor: default; }
.lab-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.lab-input { width: 9em; font: inherit; font-size: .95rem; padding: 8px 10px; border-radius: 4px; border: 1px solid #3a4854; background: #172532; color: #f2efe8; }
.btn-lab { background: #c9a44e; color: #0f1a24; border: 0; border-radius: 4px; padding: 9px 16px; font: 600 .88rem/1 var(--sans); cursor: pointer; }
.btn-lab[disabled] { opacity: .45; cursor: default; }
.btn-lab.ghost { background: transparent; color: #cfd3d4; border: 1px solid #3a4854; }
.lab-choice:focus-visible, .btn-lab:focus-visible, .lab-input:focus-visible { outline: 2px solid #f2efe8; outline-offset: 2px; }
.lab-feedback { margin-top: 12px; }
.lab-verdict { font-weight: 700; margin: 0 0 4px; }
.lab-verdict.ok { color: #c9a44e; }
.lab-verdict.close { color: #f2efe8; }
.lab-verdict.no { color: #8f999f; }
.lab-explain { margin: 0; font-size: .95rem; color: #cfd3d4; max-width: 70ch; }

/* Members: account, sign-in, pricing, paywall */
.account { max-width: 640px; }
.account form { margin: 1rem 0; }
.form-auth { display: grid; gap: 10px; max-width: 420px; }
.form-auth label { font-size: .9rem; color: var(--ink-2); }
.form-auth input[type=email] { font: inherit; font-size: 1rem; padding: 11px 12px; border-radius: 4px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); }
.form-auth input:focus { outline: 2px solid var(--gold-soft); outline-offset: 1px; }
.form-auth .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-auth .form-status.ok { color: var(--gold); }
.form-auth .form-status.err { color: #b4452f; }
.notice { border: 1px solid var(--rule); border-left: 3px solid var(--gold-soft); background: var(--surface); padding: 12px 16px; border-radius: 4px; margin: 0 0 1rem; }
.notice.staging { border-left-color: #8fb3c9; font-size: .9rem; }
.plans { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; margin-top: 1rem; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { border: 1px solid var(--rule); border-radius: 8px; padding: 26px 28px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.plan h2 { margin: .3rem 0 0; font-size: 1.35rem; }
.plan ul { padding-left: 1.1em; margin: .6rem 0 1rem; }
.plan .tag { align-self: flex-start; font: 600 .7rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold); border-radius: 3px; padding: 5px 8px; }
.plan-main { border-color: var(--gold-soft); box-shadow: 0 18px 40px -28px rgba(15, 26, 36, .5); }
.plan .price { font-family: var(--serif); font-size: 1.4rem; margin: .2rem 0; }
.plan form { margin-top: auto; }
.btn-ghost-dark { background: transparent; color: var(--ink); border: 1px solid var(--rule); align-self: flex-start; margin-top: auto; }
.btn-ghost-dark:hover { border-color: var(--gold); color: var(--gold); background: transparent; }
.paywall { border: 1px solid var(--gold-soft); border-radius: 8px; background: var(--surface); padding: 26px 28px; margin: 2rem 0; max-width: 700px; }
.paywall h2 { margin-top: 0; }
.paywall .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1rem; }
.lesson-lock { font: 600 .66rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
