/* Guide pages (fishenglish.com/yds/ and siblings): the home page's sky and sea
   framing, with a paper reading column in between, because these pages are read. */
:root {
  --sky0: #eef4f7; --sky1: #d3e5ec;
  --z0: #74b4c9; --z1: #3f8199; --z2: #1e4c61; --z3: #0f2a38;
  --paper: #f4f1ea; --card: #fffdf8; --ink: #1b2430; --muted: #5d6169; --line: #dad4c8;
  --amber: #c7892f; --white: #ffffff;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--z2); text-underline-offset: 3px; }
a:hover { color: var(--z1); }
.wrap { max-width: 1040px; margin: 0 auto; padding-inline: 20px; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

/* header */
.sky { background: linear-gradient(var(--sky0), var(--sky1)); padding-block: 18px 0; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 22px; text-decoration: none; color: var(--ink); }
.nav .links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.nav .links a { font-size: 14px; color: var(--muted); text-decoration: none; }
.nav .links a:hover, .nav .links a[aria-current] { color: var(--ink); }
.nav .links a[aria-current] { font-weight: 600; }
.crumbs { margin: 26px 0 0; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.head { padding-block: 10px 34px; max-width: 760px; }
.head h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 5vw, 50px); line-height: 1.08; letter-spacing: -.015em; margin: 10px 0 14px; text-wrap: balance; }
.head p { font-size: 19px; color: #34414c; margin: 0; max-width: 62ch; }
.head .meta { margin-top: 14px; font-size: 13px; color: var(--muted); }
.surface { display: block; width: 100%; height: 22px; }

/* article */
main { padding-block: 40px 20px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; align-items: start; }
article { min-width: 0; }
article h2 { font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1.15; margin: 46px 0 12px; text-wrap: balance; scroll-margin-top: 20px; }
article h2:first-child { margin-top: 0; }
article h3 { font-family: var(--serif); font-weight: 600; font-size: 21px; margin: 28px 0 8px; }
article p, article li { max-width: 68ch; }
article ul, article ol { padding-left: 1.2em; }
article li { margin: 4px 0; }
.lead { font-size: 18px; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 22px 0; }
.box h3 { margin-top: 0; }
.tip { border-left: 4px solid var(--z1); background: #e8f1f4; border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 20px 0; }
.toc { position: sticky; top: 20px; font-size: 14px; }
.toc b { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--z1); text-decoration: underline; }

/* tables */
.table { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); margin: 18px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid #ebe5d9; vertical-align: top; }
th { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: #f8f4ec; position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.w { font-weight: 600; white-space: nowrap; }
td.ex { color: #44545c; font-size: 14px; padding-top: 0; }
tr:has(+ tr td.ex) td { border-bottom: 0; }
.filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0 0; }
.filter input { font: inherit; font-size: 15px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; width: 260px; max-width: 100%; background: var(--white); }
.filter span { font-size: 13px; color: var(--muted); }

/* sample questions */
.q { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 16px 0 24px; }
.q .stem { font-family: var(--serif); font-size: 18px; margin: 0 0 10px; }
.q ol.opts { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.q ol.opts li { max-width: none; }
.q ol.opts b { font-family: var(--mono); font-weight: 500; color: var(--muted); margin-right: 6px; }
.q .dlg p { margin: 4px 0; }
.q details { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; }
.q summary { cursor: pointer; font-weight: 600; color: var(--z2); }
.q details p { margin: 8px 0 0; font-size: 15px; }
.q .label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--z1); }

/* call to action */
.cta { background: linear-gradient(135deg, var(--z1), var(--z2)); color: var(--white); border-radius: 20px; padding: 24px; margin: 34px 0; display: grid; gap: 10px; }
.cta h2, .cta h3 { color: var(--white); margin: 0; font-family: var(--serif); font-size: 26px; }
.cta p { margin: 0; color: rgba(255,255,255,.88); max-width: 60ch; }
.cta .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; align-items: center; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 12px; background: var(--ink); color: var(--white); text-decoration: none; }
.store small { display: block; font-size: 10px; opacity: .75; letter-spacing: .06em; }
.store b { display: block; font-weight: 600; font-size: 15px; line-height: 1.1; }
.cta .home { color: var(--white); font-size: 14px; }
.side-cta { margin-top: 26px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; font-size: 14px; }
.toc .side-cta b { font-family: var(--serif); font-size: 18px; letter-spacing: 0; text-transform: none; color: var(--ink); display: block; margin-bottom: 4px; }

/* faq */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; margin: 10px 0; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; }
.faq details p { margin: 0 0 14px; }

.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.related a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; text-decoration: none; color: var(--ink); }
.related a b { font-family: var(--serif); font-size: 17px; display: block; }
.related a span { font-size: 14px; color: var(--muted); }
.related a:hover { border-color: var(--z1); }

footer { background: var(--z3); color: rgba(255,255,255,.75); font-size: 14px; padding-block: 30px 40px; margin-top: 40px; }
footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: rgba(255,255,255,.92); }
footer .note { margin-top: 16px; max-width: 70ch; font-size: 13px; color: rgba(255,255,255,.6); }

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; gap: 0; }
  .toc { position: static; order: -1; margin-bottom: 20px; }
  .side-cta { display: none; }
  .related { grid-template-columns: 1fr; }
  article h2 { font-size: 26px; }
}

/* the rest of a list or lesson: shown as locked, the content itself stays in the app */
.locked { position: relative; margin: 18px 0 28px; }
.locked .table { margin: 0; }
.locked td { color: #c9c2b4; letter-spacing: .2em; filter: blur(1.5px); user-select: none; }
.lock-msg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 16px; background: linear-gradient(rgba(244,241,234,.55), rgba(244,241,234,.95) 45%); border-radius: 14px; }
.lock-msg > b { font-family: var(--serif); font-size: 21px; }
.lock-msg > b::before, .locked-topics > b::before { content: "UYGULAMADA"; display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--z1); margin-bottom: 4px; }
.lock-msg > span { font-size: 14px; color: var(--muted); }
.lock-msg .row, .locked-topics .row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
.locked-topics { background: var(--card); border: 1px dashed var(--z1); border-radius: 16px; padding: 18px 20px; margin: 22px 0; }
.locked-topics > b { font-family: var(--serif); font-size: 20px; display: block; }
.locked-topics ul { margin: 8px 0; }
.locked-topics li { color: var(--muted); }
.locked-topics li::marker { color: var(--z1); }
.locked-topics > span { font-size: 14px; color: var(--muted); display: block; }
.locked-topics .row { justify-content: flex-start; }
p.more { font-size: 15px; color: var(--muted); border-left: 3px solid var(--line); padding-left: 12px; }

/* word cards: the open part of a word list */
.wcards { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.wcard { max-width: none !important; margin: 0 !important; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 14px 30px -26px rgba(15,42,56,.6); position: relative; overflow: hidden; }
.wcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--z0), var(--z2)); }
.wtop { display: flex; align-items: center; gap: 6px; }
.wtop .rank { font-family: var(--mono); font-size: 12px; color: var(--z1); margin-right: auto; letter-spacing: .08em; }
.wtop .pos { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; background: #e3eff3; color: var(--z2); padding: 2px 8px; border-radius: 999px; }
.wcard h3 { margin: 2px 0 0 !important; font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1.1; letter-spacing: -.01em; }
.wcard .mean { margin: 0; font-size: 16px; font-weight: 500; color: #34414c; }
.wcard .ex-en { margin: 6px 0 0; font-family: var(--serif); font-size: 16px; line-height: 1.45; padding-left: 12px; border-left: 3px solid var(--z0); }
.wcard .ex-en strong { color: var(--z2); background: linear-gradient(transparent 62%, #d3e9f0 62%); }
.wcard .ex-tr { margin: 0; padding-left: 15px; font-size: 14px; color: var(--muted); }
.wcard .ex-tr strong { color: var(--ink); }
.freq { margin-top: auto; padding-top: 10px; display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.freq b { font-family: var(--serif); font-size: 17px; color: var(--ink); font-variant-numeric: tabular-nums; }
.freq i { height: 6px; border-radius: 99px; background: #ece6da; overflow: hidden; }
.freq s { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--z0), var(--z1)); }
.wcard.ghost h3, .wcard.ghost p { color: #cfc8ba; filter: blur(2px); user-select: none; }
.locked.cards .wcards { margin: 0; }
.locked.cards .lock-msg { background: linear-gradient(rgba(244,241,234,.35), rgba(244,241,234,.97) 40%); }

/* phrasal verbs, grouped by meaning */
.pv-group { margin: 18px 0; }
.pv-group h3 { margin: 0 0 8px !important; font-family: var(--mono) !important; font-weight: 500 !important; font-size: 12px !important; letter-spacing: .14em; text-transform: uppercase; color: var(--fam, var(--z1)); }
.pvs { list-style: none; padding: 0 !important; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pv { max-width: none !important; margin: 0 !important; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--fam, var(--z1)); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.pv-verb { font-family: var(--serif); font-weight: 600; font-size: 21px; line-height: 1.2; }
.pv-verb em { font-style: normal; color: var(--fam, var(--z1)); }
.pv-mean { font-size: 15px; color: #44545c; }
.pv.ghost span { color: #cfc8ba; filter: blur(2px); }
.fam0 { --fam: #2f7d93; } .fam1 { --fam: #b2742a; } .fam2 { --fam: #2b3f7a; } .fam3 { --fam: #3f7d5a; } .fam4 { --fam: #8a4f7d; }

@media (max-width: 860px) {
  .wcards { grid-template-columns: 1fr; }
  .pvs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) { .pvs { grid-template-columns: 1fr; } }
.locked.cards { min-height: 210px; }

/* ---- tools: score calculator (yds-puan-hesaplama) ---- */
main .top { margin-bottom: 36px; }
.calc { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; box-shadow: 0 24px 44px -36px rgba(15,42,56,.55); }
.calc .field label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.stepper { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stepper button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); font-size: 20px; color: var(--z2); cursor: pointer; }
.stepper button:hover { border-color: var(--z1); }
.stepper input[type=number] { width: 96px; font: inherit; font-family: var(--serif); font-size: 30px; font-weight: 600; text-align: center; border: 1px solid var(--line); border-radius: 12px; padding: 4px 6px; background: var(--white); color: var(--ink); font-variant-numeric: tabular-nums; }
.stepper span { color: var(--muted); font-size: 14px; }
.calc input[type=range] { width: 100%; margin-top: 16px; accent-color: var(--z1); }
.hint { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.result { background: linear-gradient(170deg, #e7f1f5, #d5e8ef); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.score { display: flex; align-items: baseline; gap: 10px; }
.score b { font-family: var(--serif); font-size: 64px; line-height: 1; font-weight: 600; color: var(--z3); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.score span { color: var(--muted); font-size: 14px; }
.gauge { position: relative; height: 10px; border-radius: 99px; background: linear-gradient(90deg, #d9d2c4 0 50%, #bfdbe5 50% 60%, #93c4d4 60% 70%, #5ea6bd 70% 80%, #3f8199 80% 90%, #1e4c61 90%); }
.gauge i { position: absolute; top: -5px; width: 4px; height: 20px; border-radius: 2px; background: var(--ink); transform: translateX(-2px); transition: left .25s ease; }
.gauge-l { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.chip { align-self: flex-start; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; background: var(--z2); color: var(--white); }
.uses { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14.5px; }
.uses li { display: flex; gap: 10px; align-items: baseline; }
.uses .st { flex: 0 0 auto; font-family: var(--mono); font-size: 11px; padding: 1px 7px; border-radius: 6px; }
.uses .yes { background: #dcefe4; color: #2f7d5a; }
.uses .no { background: #f3e1dd; color: #b4483a; }
.uses em { font-style: normal; color: var(--muted); margin-left: auto; font-family: var(--mono); font-size: 12px; white-space: nowrap; }

/* ---- tools: exam calendar (yds-sinav-tarihleri) ---- */
.next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.exam { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.exam.soon { border-color: var(--z1); box-shadow: 0 0 0 3px #d9ebf1; }
.exam .k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--z1); }
.exam h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 22px; }
.days { display: flex; align-items: baseline; gap: 8px; }
.days b { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--z3); font-variant-numeric: tabular-nums; }
.days span { color: var(--muted); font-size: 14px; }
.steps { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 4px; font-size: 14px; }
.steps li { display: grid; grid-template-columns: 14px 1fr auto; gap: 8px; align-items: center; }
.steps li i { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--z1); display: block; }
.steps li.done i { background: var(--z1); }
.steps li.done { color: var(--muted); }
.steps li time { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---- questions answered on the page (sorular/, konu/) ---- */
.qq { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; margin: 16px 0; }
.qq .qh { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--z1); margin-bottom: 8px; }
.qq .stem { font-family: var(--serif); font-size: 18.5px; line-height: 1.5; margin: 0 0 12px; max-width: none; }
.qq .dlg p { margin: 4px 0; font-family: var(--serif); font-size: 17px; }
.qq .opts { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.qq .opts li { max-width: none; margin: 0; }
.qq .opts button { width: 100%; text-align: left; font: inherit; font-size: 16px; line-height: 1.45; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; cursor: pointer; color: var(--ink); display: flex; gap: 10px; }
.qq .opts button b { font-family: var(--mono); font-weight: 500; color: var(--muted); flex: 0 0 auto; }
.qq .opts button:hover:not(:disabled) { border-color: var(--z1); }
.qq .opts button.right { border-color: #2f7d5a; background: #e6f3ec; }
.qq .opts button.wrong { border-color: #b4483a; background: #f8e7e3; }
.qq .opts button:disabled { cursor: default; }
.qq .why { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; font-size: 15px; }
.qq .why p { margin: 6px 0; max-width: none; }
.qq .why .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0; }
.tally { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font-size: 14px; margin: 16px 0; position: sticky; top: 8px; z-index: 2; }
.tally .pips { display: flex; gap: 4px; flex-wrap: wrap; }
.tally .pips i { width: 14px; height: 6px; border-radius: 3px; background: #e6e0d4; display: block; }
.tally .pips i.r { background: #2f7d5a; } .tally .pips i.w { background: #b4483a; }
.passage { background: #fbf9f4; border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin: 22px 0 6px; font-family: var(--serif); font-size: 17.5px; line-height: 1.6; }
.passage p { margin: 0 0 10px; max-width: none; }
.passage p:last-child { margin-bottom: 0; }
.passage strong { color: var(--z2); }
.box.example .label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--z1); }
.box.example .ex-sent { font-family: var(--serif); font-size: 18px; margin: 6px 0; }
.box.example .ex-note { margin: 0; color: var(--muted); font-size: 15px; }
.side-list { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; }
.side-list a { color: var(--ink); text-decoration: none; }
.side-list a:hover { color: var(--z1); text-decoration: underline; }

@media (max-width: 860px) {
  .calc, .next { grid-template-columns: 1fr; }
  .score b { font-size: 52px; }
}
@media (prefers-reduced-motion: reduce) { .gauge i { transition: none; } }

/* segmented choice (equivalence tool) */
.seg { display: inline-flex; background: #efe9dd; border-radius: 12px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg button { font: inherit; font-size: 14px; border: 0; background: transparent; color: var(--muted); padding: 6px 12px; border-radius: 9px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--z2); color: var(--white); }
#miniResult h3 b { font-family: var(--serif); }

/* ==== v2 (2026-10-22, canvas "Rehber Sayfaları v2") ==================== */

/* nav: the brand, then every chip on rows of their own (none hidden behind a sideways scroll), 40px targets */
.nav { flex-wrap: wrap; gap: 14px; }
.nav .links { flex-wrap: wrap; gap: 6px; }
.nav .links a { flex: none; font-size: 14px; color: var(--z2); padding: 9px 13px; border-radius: 999px; background: rgba(255,255,255,.55); }
.nav .links a:hover { background: rgba(255,255,255,.85); color: var(--z2); }
.nav .links a[aria-current] { background: var(--z2); color: var(--white); font-weight: 500; }

/* head: eyebrow with a depth line, the scene on the waterline */
.sky .wrap { position: relative; }
.head .eb { display: inline-flex; align-items: center; gap: 8px; color: var(--z2); }
.head .eb i { width: 18px; height: 2px; background: var(--z1); display: inline-block; }
.sky .scene { display: block; width: 260px; max-width: 70%; height: auto; margin-top: -6px; }
.head { padding-block: 10px 6px; }

/* a tool sits on the water, right under the head */
.seaband { background: linear-gradient(180deg, var(--z0), var(--z1) 75%); padding-top: 4px; }
.seaband .wrap { padding-block: 8px 26px; }
.seaband .calc { border: 0; box-shadow: 0 24px 40px -26px rgba(15,42,56,.75); }
.surface.back { background: var(--z1); }
main .top { margin-bottom: 0; }

/* the calculator's scale: every label at its own value */
.gauge-l { position: relative; display: block; height: 16px; }
.gauge-l span { position: absolute; top: 0; transform: translateX(-50%); }
.gauge-l span:first-child { transform: none; }
.gauge-l span:last-child { transform: translateX(-100%); }

/* table of contents: a depth gauge beside the article, a closed box above it on a phone */
.toc-m { display: none; }
.toc .dgauge { position: relative; padding-left: 22px; display: grid; }
.toc .dgauge::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--z0), var(--z3)); }
.toc .dgauge a { position: relative; display: block; padding: 6px 0; color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc .dgauge a::before { content: ""; position: absolute; left: -20px; top: 15px; width: 9px; height: 1px; background: var(--z1); }
.toc .dgauge a:hover { color: var(--ink); text-decoration: none; }
.toc .dgauge a.on { color: var(--ink); font-weight: 600; }
.toc .dgauge a.on::after { content: ""; position: absolute; left: -19px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.toc .dgauge .d { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; color: var(--z1); font-weight: 500; }
.side-m { display: none; }
article h2.quiet { font-size: 24px; }

/* closing block: deep water, three next steps, one line about the app */
.end { background: linear-gradient(180deg, var(--z1), var(--z3)); color: #eaf4f7; padding-block: 40px 44px; margin-top: 40px; }
.end .mono { color: var(--z0); }
.end h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 3.4vw, 32px); line-height: 1.15; margin: 8px 0 18px; color: var(--white); text-wrap: balance; }
.end .next3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.end .next3 a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 14px 16px; border-radius: 16px; text-decoration: none; color: var(--white); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); }
.end .next3 a:hover { background: rgba(255,255,255,.16); color: var(--white); }
.end .next3 b { display: block; font-weight: 600; font-size: 16px; }
.end .next3 small { display: block; font-size: 13px; color: #b8d4de; line-height: 1.4; margin-top: 2px; }
.end .next3 i { font-style: normal; font-size: 22px; color: var(--z0); }
.end .app { margin: 20px 0 0; max-width: 70ch; font-size: 15px; color: #cfe3ea; }
.end .app b { color: var(--white); }
.end .soon-line { display: flex; gap: 8px; align-items: center; margin: 10px 0 0; font-size: 13.5px; color: #b8d4de; }
.end .soon-line i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); flex: none; }
.end .end-stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.end .store { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); }
.end a.store:hover { background: rgba(255,255,255,.2); color: var(--white); }
.soonb { opacity: .6; cursor: default; }
.lockcard .row { display: flex; flex-wrap: wrap; gap: 10px; }
.end + footer { margin-top: 0; }
.soon { font-size: 14px; color: var(--muted); }
.lock-msg .soon, .locked-topics .soon { display: block; }

/* question card: big options, a letter in a circle, the reason under a wrong choice, the explanation dark */
.qq { border: 0; border-radius: 20px; padding: 16px 16px 14px; box-shadow: 0 1px 0 var(--line), 0 16px 30px -22px rgba(15,42,56,.55); }
.qq .qh { color: var(--z2); }
.qq .opts { gap: 7px; }
.qq .opts button { align-items: center; min-height: 48px; padding: 7px 12px 7px 8px; background: #f6f3ec; border: 1px solid transparent; border-radius: 14px; font-size: 16px; }
.qq .opts button:hover:not([aria-disabled]) { border-color: var(--z1); background: #fbf9f4; }
.qq .opts button[aria-disabled] { cursor: default; }
.qq .opts button .k { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--z2); background: var(--white); border: 1px solid var(--line); }
.qq .opts button .o { flex: 1; min-width: 0; }
.qq .opts button .you { flex: none; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.qq .opts button.right { background: #e2f1e9; border-color: transparent; }
.qq .opts button.right .k { background: #2f7d5a; border-color: #2f7d5a; color: var(--white); }
.qq .opts button.wrong { background: #f8e4de; border-color: transparent; }
.qq .opts button.wrong .k { background: #b4483a; border-color: #b4483a; color: var(--white); }
.qq .r { margin: 4px 4px 2px 50px; font-size: 14px; color: #7c3326; max-width: none; }
.qq .why { margin-top: 12px; border: 0; padding: 14px 16px; border-radius: 14px; background: var(--z3); color: #e6f1f5; }
.qq .why .lbl { color: var(--z0); }
.qq .why p { color: #e6f1f5; }
.tally { position: static; }

/* topic pages: what the lesson's rest holds, in numbers */
.lockcard { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 12px; margin: 18px 0; }
.lockcard > .mono { color: var(--z2); }
.lockcard .row3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; text-align: center; }
.lockcard .row3 div { background: #f2efe7; border-radius: 12px; padding: 10px 6px; }
.lockcard .row3 b { display: block; font-family: var(--serif); font-size: 26px; line-height: 1.1; color: var(--z3); }
.lockcard .row3 span { font-size: 13px; color: var(--muted); }
.lockcard details summary { cursor: pointer; font-size: 14.5px; color: var(--z2); padding: 6px 0; }
.lockcard ul { margin: 6px 0 0; color: var(--muted); }
.lockcard .soon { margin: 0; }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 34px 0 6px; }
.prevnext a { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; text-decoration: none; color: var(--ink); font-weight: 500; }
.prevnext a:hover { border-color: var(--z1); color: var(--ink); }
.prevnext a span { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.prevnext a:last-child:not(:first-child) { text-align: right; }

/* tables: plain headings, small labels in the darker blue for contrast */
th { font-family: var(--sans); font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--ink); position: static; }
.qq .qh, .exam .k { color: var(--z2); }

@media (max-width: 860px) {
  .toc { display: none; }
  .toc-m { display: block; margin: 0 0 22px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
  .toc-m summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; font-weight: 500; cursor: pointer; }
  .toc-m summary::-webkit-details-marker { display: none; }
  .toc-m summary .mono { color: var(--muted); }
  .toc-m summary .mono::after { content: " ▾"; }
  .toc-m[open] summary .mono::after { content: " ▴"; }
  .toc-m ol { margin: 0; padding: 0 14px 8px 34px; }
  .toc-m li a { display: block; padding: 9px 0; border-top: 1px dashed var(--line); color: var(--z2); text-decoration: none; }
  .side-m { display: block; margin-top: 26px; }
  .side-m .side-cta { display: block; margin: 0; }
  .end .next3 { grid-template-columns: 1fr; }
  .head p { font-size: 16.5px; }
  .head .meta { display: none; }
  .crumbs { margin-top: 16px; }
}
@media (max-width: 560px) {
  .seaband .calc { grid-template-columns: 1fr; padding: 16px; gap: 14px; }
  .score b { font-size: 52px; }
  .sky .scene { width: 200px; }
}
.end .app a { color: var(--z0); }
.lockcard .row3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .gauge-l span:nth-child(3), .gauge-l span:nth-child(5), .gauge-l span:nth-child(6) { display: none; } }
.sky .scene { width: 300px; max-width: 75%; margin-top: -2px; }
@media (max-width: 560px) { .sky .scene { width: 230px; } }
/* the sources box at the end of a guide */
.box.sources { margin-top: 34px; }
.box.sources ul { margin: 0; font-size: 15px; }
.box.sources li { overflow-wrap: anywhere; }
.box.sources p { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }

/* ---------- 2026-10-28: the home page's first action on every guide ---------- */
.try-main { display: inline-flex; align-items: center; gap: 16px; margin: 0 0 18px; padding: 14px 20px; border-radius: 14px; background: var(--white); color: var(--z3); text-decoration: none; font-weight: 600; font-size: 16px; box-shadow: 0 14px 30px -16px rgba(0,0,0,.6); }
.try-main:hover { background: #eef6f9; color: var(--z3); }
.try-main small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.try-main i { font-style: normal; font-family: var(--mono); font-size: 18px; color: var(--z2); }
.endgrid { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 40px; align-items: end; }
.endphone { position: relative; height: 330px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.endphone .phone { position: absolute; left: 0; right: 0; top: 4px; background: #05090c; border-radius: 34px; padding: 8px; box-shadow: inset 0 0 0 1.5px #2a3c45; }
.endphone img { display: block; width: 100%; height: auto; border-radius: 27px; }
.side-try { display: block; margin-top: 22px; padding: 16px; border-radius: 16px; background: var(--z2); color: var(--white); text-decoration: none; box-shadow: 0 16px 30px -20px rgba(15,42,56,.9); }
.side-try:hover { background: #173d4f; color: var(--white); }
.toc .side-try .mono { display: block; font-size: 10.5px; letter-spacing: .14em; color: var(--z0); margin-bottom: 6px; }
.toc .side-try b { font-family: var(--serif); font-size: 19px; letter-spacing: 0; text-transform: none; color: var(--white); margin: 0 0 4px; }
.side-try small { display: block; font-size: 13px; line-height: 1.4; color: #cfe3ea; }
.side-try em { display: inline-block; margin-top: 10px; font-style: normal; font-weight: 600; font-size: 14px; background: var(--white); color: var(--z2); padding: 7px 12px; border-radius: 10px; }
.sticky { display: none; }
@media (max-width: 860px) {
  .endgrid { grid-template-columns: 1fr; }
  .endphone { display: none; }
  .sticky { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; border-radius: 16px; background: var(--white); color: var(--ink); box-shadow: 0 18px 40px -12px rgba(0,0,0,.55); text-decoration: none; font-weight: 600; transform: translateY(140%); transition: transform .25s; }
  .sticky.on { transform: none; }
  .sticky small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
  .sticky em { font-style: normal; background: var(--z2); color: var(--white); padding: 9px 14px; border-radius: 11px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .sticky { transition: none; } }

/* ---------- mini mock result: score, sections, weakest, the app ---------- */
.mres { margin: 28px 0 8px; padding: 26px; border-radius: 22px; background: linear-gradient(180deg, var(--z2), var(--z3)); color: #eaf4f7; scroll-margin-top: 16px; }
.mres .mono { color: var(--z0); }
.mres-top { display: flex; align-items: center; gap: 20px; margin: 8px 0 18px; flex-wrap: wrap; }
.mres-n { font-family: var(--serif); font-weight: 600; font-size: 56px; line-height: 1.1; color: var(--white); font-variant-numeric: tabular-nums; }
.mres-s { display: block; font-family: var(--serif); font-size: 24px; color: var(--white); }
.mres-goal { display: block; margin-top: 4px; font-size: 14px; color: #b8d4de; max-width: 52ch; }
.mres-bars { display: grid; gap: 8px; margin-bottom: 16px; }
.mres-row { display: grid; grid-template-columns: 150px 1fr 54px; gap: 12px; align-items: center; font-size: 14px; }
.mres-row i { display: block; height: 6px; border-radius: 3px; background: rgba(255,255,255,.18); overflow: hidden; }
.mres-row s { display: block; height: 100%; background: #8fe0c2; text-decoration: none; }
.mres-row b { font-family: var(--mono); font-weight: 500; font-size: 13px; text-align: right; color: var(--white); }
.mres-weak { margin: 0 0 18px; font-size: 15px; color: #dcebf0; }
.mres-weak b { color: var(--white); }
.mres-weak a, .mres-back { color: #8fe0c2; }
.mres-app { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 16px; padding: 18px 20px; }
.mres-app h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 22px; color: var(--white); }
.mres-app ul { margin: 0 0 14px; padding-left: 18px; font-size: 15px; color: #dcebf0; }
.mres-app li { margin: 6px 0; }
.mres-app b { color: var(--white); }
.mres-app .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mres-app .store { background: var(--ink); }
.mres-app .soonb { opacity: .85; cursor: default; }
.mres-app .free { font-size: 13px; color: #b8d4de; }
.mres-app .soon-line { display: flex; gap: 8px; align-items: center; margin: 12px 0 0; font-size: 13px; color: #b8d4de; }
.mres-app .soon-line i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); flex: none; }
.mres-back { display: inline-block; margin-top: 14px; font-size: 14px; }
@media (max-width: 560px) { .mres { padding: 20px; } .mres-row { grid-template-columns: 110px 1fr 48px; } .mres-n { font-size: 44px; } }

@media (max-width: 600px) { .nav .links a { padding: 8px 11px; font-size: 13px; } }
