/* study-kit.css: shared look for the NCE study toolkit pages (study-toolkit, study-planner, glossary, term-match,
   score-converter, which-test, listen, how-to-study, test-day-checklist). Same palette and type as the rest of the
   site: cream, ink, gold, navy; Roboto Slab headings, Manrope text. Small gold text uses #7A5B0B (5.9:1 on cream). */
.sk { --ink: #1E1B15; --body: #3E3A31; --sub: #57534A; --mute: #6E6859; --gold: #C9A227; --gold-t: #7A5B0B; --navy: #22395B;
  --cream: #F8F5EE; --card: #FDFCF9; --sand: #F3EFE2; --line: #E5DFD0; --line2: #D9D3C4; --ok: #3F6B3A; --no: #8F3F1F; --no-bg: #FBEAE7;
  font-family: 'Manrope', system-ui, sans-serif; color: var(--ink); background: var(--cream); }
.sk *, .sk *::before, .sk *::after { box-sizing: border-box; }
.sk-wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px) clamp(56px, 7vw, 96px); }
.sk-narrow { max-width: 860px; }
.sk-hero { padding: clamp(40px, 6vw, 84px) 0 clamp(24px, 3vw, 40px); display: grid; gap: 16px; max-width: 860px; }
.sk-kicker { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--gold-t); }
.sk h1 { font-family: 'Roboto Slab', Georgia, serif; font-weight: 600; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.1; letter-spacing: -0.01em; margin: 0; }
.sk h2 { font-family: 'Roboto Slab', Georgia, serif; font-weight: 600; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; margin: 0; }
.sk h3 { font-family: 'Roboto Slab', Georgia, serif; font-weight: 600; font-size: 20px; line-height: 1.3; margin: 0; }
.sk-lede { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; color: var(--sub); margin: 0; max-width: 62ch; }
.sk-note { font-size: 14px; line-height: 1.6; color: var(--mute); margin: 0; }
.sk p { margin: 0; }
.sk :where(a) { color: var(--gold-t); font-weight: 600; }
.sk :where(a):hover { color: var(--ink); }
.sk-sec { margin: clamp(32px, 4vw, 52px) 0 0; display: grid; gap: 18px; }
.sk-sec > header { display: grid; gap: 8px; }
.sk-sec > header p { color: var(--sub); line-height: 1.6; max-width: 70ch; }
.sk-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: grid; gap: 12px; align-content: start; }
.sk-panel { background: var(--sand); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; display: grid; gap: 12px; }
.sk-ink { background: #1B1A18; color: #F8F5EE; border-radius: 18px; padding: 22px 24px; display: grid; gap: 10px; }
.sk-ink h2, .sk-ink h3 { color: #F8F5EE; }
.sk-ink > p, .sk-ink li { color: #E9E3D3; }
.sk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.sk-grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.sk-tile { display: grid; gap: 8px; align-content: start; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; color: var(--ink); text-decoration: none; font-weight: 500; transition: border-color .15s, transform .15s; }
.sk-tile:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.sk-tile > b { font-family: 'Roboto Slab', Georgia, serif; font-size: 19px; font-weight: 600; line-height: 1.3; }
.sk-tile > span { font-size: 15px; line-height: 1.55; color: var(--sub); }
.sk-tile > small { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--gold-t); }
.sk-tile.new small::after { content: " \00B7 New"; color: var(--navy); }
.sk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 22px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #FFFFFF; font: inherit; font-size: 15.5px; font-weight: 700; cursor: pointer; text-decoration: none; }
.sk-btn:hover { background: #000000; color: #FFFFFF; }
a.sk-btn, a.sk-btn:hover { text-decoration: none; }
.sk-btn.ghost { background: var(--card); color: var(--ink); border-color: var(--line2); }
.sk-btn.ghost:hover { border-color: var(--ink); background: var(--card); color: var(--ink); }
.sk-btn.gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.sk-btn.gold:hover { background: #B8931F; color: var(--ink); }
.sk-btn[disabled] { opacity: .45; cursor: not-allowed; }
.sk-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sk-chip { border: 1px solid var(--line2); background: var(--card); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 600; color: var(--body); cursor: pointer; }
.sk-chip:hover { border-color: var(--ink); }
.sk-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.sk label.sk-field { display: grid; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); min-width: 0; }
.sk input[type=text], .sk input[type=search], .sk input[type=number], .sk input[type=date], .sk input[type=time], .sk select {
  font: inherit; font-size: 16px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink); background: var(--card);
  border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; min-height: 46px; max-width: 100%; min-width: 0; }
.sk input:focus-visible, .sk select:focus-visible, .sk button:focus-visible, .sk a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sk-check { display: inline-flex; gap: 10px; align-items: center; font-size: 15.5px; color: var(--body); cursor: pointer; }
.sk-check input { width: 20px; height: 20px; accent-color: #A9891F; flex: none; }
.sk-form { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; display: grid; gap: 16px; }
.sk-formrow { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end; }
.sk-days { display: flex; flex-wrap: wrap; gap: 6px; }
.sk-bar { height: 8px; background: #E9E2CF; border-radius: 99px; overflow: hidden; }
.sk-bar > i { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.sk-stat { display: grid; gap: 2px; }
.sk-stat > b { font-family: 'Roboto Slab', Georgia, serif; font-size: 30px; font-weight: 600; line-height: 1.15; }
.sk-stat > span { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--mute); }
.sk-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 15px; }
.sk-table th { background: #1B1A18; color: #F8F5EE; text-align: left; font-weight: 700; padding: 10px 12px; font-size: 14px; }
.sk-table td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.5; color: var(--body); }
.sk-table tr:nth-child(even) td { background: #FAF7EF; }
.sk-tw { overflow-x: auto; }
.sk-prose { display: grid; gap: 16px; max-width: 72ch; }
.sk-prose p, .sk-prose li { font-size: 17px; line-height: 1.75; color: var(--body); }
.sk-prose ul, .sk-prose ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.sk-callout { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; padding: 14px 18px; display: grid; gap: 4px; }
.sk-callout > b { font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-t); }
.sk-callout > span { font-size: 16px; line-height: 1.6; color: var(--body); }
.sk-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.sk-kbd { font: inherit; font-size: 12px; font-weight: 700; border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; background: var(--card); }

/* focus timer */
.sk-timer { text-align: center; }
.sk-timer .clock { font-family: 'Roboto Slab', Georgia, serif; font-size: 58px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; margin: 6px 0; color: var(--ink); }
.sk-timer.run .clock { color: var(--gold-t); }
.sk-timer.brk .clock { color: var(--navy); }
.sk-timer .presets { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }

/* planner */
.pl-week { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.pl-week > header { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; justify-content: space-between; padding: 14px 18px; background: var(--sand); border-bottom: 1px solid var(--line); }
.pl-week > header > b { font-family: 'Roboto Slab', Georgia, serif; font-size: 17px; font-weight: 600; }
.pl-phase { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--gold-t); }
.pl-day { display: grid; grid-template-columns: 112px minmax(0, 1fr) 64px; gap: 12px; padding: 12px 18px; border-top: 1px solid #F0EADB; align-items: start; }
.pl-day:first-of-type { border-top: 0; }
.pl-day .d { font-weight: 700; font-size: 14.5px; }
.pl-day .d > em { display: block; font-style: normal; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); margin-top: 2px; }
.pl-day .w { display: grid; gap: 4px; font-size: 15px; line-height: 1.5; color: var(--body); }
.pl-day .w a { color: var(--ink); font-weight: 600; text-decoration: none; }
.pl-day .w a:hover { color: var(--gold-t); text-decoration: underline; }
.pl-day .w a.done { color: var(--mute); font-weight: 500; }
.pl-day .w small { font-size: 13.5px; color: var(--sub); }
.pl-day .m { text-align: right; font-size: 13px; font-weight: 700; color: var(--mute); white-space: nowrap; }
.pl-day.today { background: #FBF6E6; }
.pl-day.past { opacity: .6; }

/* glossary */
.gl-letters { display: flex; flex-wrap: wrap; gap: 4px; }
.gl-letters a { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 8px; background: var(--sand); color: var(--gold-t); text-decoration: none; font-weight: 700; font-size: 14px; }
.gl-letters a:hover { background: var(--gold); color: var(--ink); }
.gl-list { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.gl-letter { font-family: 'Roboto Slab', Georgia, serif; font-size: 22px; font-weight: 600; color: var(--gold-t); padding: 14px 18px 4px; background: var(--sand); border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.gl-letter:first-child { border-top: 0; }
.gl-e { padding: 12px 18px; border-top: 1px solid #F0EADB; display: grid; gap: 4px; }
.gl-e > b { font-size: 16.5px; }
.gl-e > span { font-size: 15.5px; line-height: 1.6; color: var(--body); }
.gl-e > a, .gl-ls > a { font-size: 13px; text-decoration: none; justify-self: start; background: var(--sand); border-radius: 999px; padding: 2px 10px; color: var(--gold-t); }
.gl-e > a:hover, .gl-ls > a:hover { background: var(--gold); color: var(--ink); }
.gl-e > span.gl-ls { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 2px; }

/* term match */
.tm-board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 14px; }
.tm-col { display: grid; gap: 10px; align-content: start; }
.tm-item { text-align: left; border: 1px solid var(--line2); background: var(--card); border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 15.5px; line-height: 1.45; color: var(--ink); cursor: pointer; min-height: 52px; }
.tm-item:hover { border-color: var(--ink); }
.tm-item.sel { border-color: var(--gold); background: #FBF4DE; box-shadow: 0 0 0 2px var(--gold) inset; }
.tm-item.ok { border-color: #9DB894; background: #EEF4EA; color: var(--ok); cursor: default; }
.tm-item.bad { border-color: #E3BC9C; background: var(--no-bg); }
.tm-item b { font-weight: 700; }

/* score converter, which test */
.sc-vals { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.sc-v { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 4px; }
.sc-v > span { font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--mute); }
.sc-v > b { font-family: 'Roboto Slab', Georgia, serif; font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sc-v.src { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.sc-curve svg { display: block; width: 100%; height: auto; }
.wt-step { display: grid; gap: 10px; }
.wt-opts { display: grid; gap: 8px; }
.wt-opt { text-align: left; border: 1px solid var(--line2); background: var(--card); border-radius: 12px; padding: 12px 16px; font: inherit; font-size: 16px; line-height: 1.45; color: var(--ink); cursor: pointer; }
.wt-opt:hover { border-color: var(--ink); }
.wt-opt > small { display: block; font-size: 13.5px; color: var(--sub); margin-top: 2px; }
.wt-trail { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--sub); }
.wt-trail > span { background: var(--sand); border-radius: 999px; padding: 3px 10px; }
.q-opt { text-align: left; border: 1px solid var(--line2); background: var(--card); border-radius: 12px; padding: 12px 16px; font: inherit; font-size: 16px; color: var(--ink); cursor: pointer; }
.q-opt:hover:not([disabled]) { border-color: var(--ink); }
.q-opt[disabled] { cursor: default; }
.q-opt.right { border-color: #9DB894; background: #EEF4EA; }
.q-opt.wrong { border-color: #E3BC9C; background: var(--no-bg); }
.q-fb { background: var(--sand); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: 15.5px; line-height: 1.6; color: var(--body); }

/* listen */
.ls-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 4vw, 36px); display: grid; gap: 14px; text-align: center; min-height: 260px; align-content: center; }
.ls-front { font-family: 'Roboto Slab', Georgia, serif; font-size: clamp(22px, 3vw, 30px); font-weight: 600; line-height: 1.3; }
.ls-back { font-size: 18px; line-height: 1.6; color: var(--body); max-width: 60ch; justify-self: center; }
.ls-phase { font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--gold-t); }

/* checklist */
.ck-phase { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px 8px; display: grid; gap: 4px; }
.ck-phase > header { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.ck-item { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px dashed #E6DFCD; }
.ck-item:first-of-type { border-top: 0; }
.ck-item input { width: 20px; height: 20px; margin-top: 3px; accent-color: #A9891F; }
.ck-item label { display: grid; gap: 2px; cursor: pointer; }
.ck-item label > b { font-size: 16px; }
.ck-item label > span { font-size: 15px; line-height: 1.55; color: var(--body); }
.ck-item > a { font-size: 13.5px; }
.ck-item.on label > b { text-decoration: line-through; text-decoration-color: var(--gold); color: var(--mute); }

@media (max-width: 760px) {
  .tm-board { grid-template-columns: minmax(0, 1fr); }
  .pl-day { grid-template-columns: minmax(0, 1fr) auto; }
  .pl-day .w { grid-column: 1 / -1; grid-row: 2; }
  .sk-formrow > label.sk-field { flex: 1 1 100%; }
  .sk-formrow select, .sk-formrow input[type=date], .sk-formrow input[type=search] { width: 100%; }
}
@media print {
  .sk-noprint, header.sk-hide-print, nav, footer, .sk-form { display: none !important; }
  .sk { background: #FFFFFF; }
  .pl-week, .ck-phase, .gl-e { break-inside: avoid; }
}

/* small pieces used by several pages */
.sk-field-group { display: grid; gap: 6px; }
.sk-field-label { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); }
.pl-stats .sk-stat { padding: 16px 18px; }
.pl-phases > span { font-size: 15.5px; line-height: 1.6; color: var(--body); }
.pl-foot { margin-top: 18px; }
.gl-q { flex: 1 1 280px; }
.gl-q input { width: 100%; }
.hs-card .hs-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hs-steps li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; font-size: 15.5px; line-height: 1.55; color: var(--body); }
.hs-steps li > b { color: var(--gold-t); font-size: 14px; padding-top: 1px; }
.hs-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.hs-toc a { font-weight: 600; text-decoration: none; }
.hs-kp { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 16.5px; line-height: 1.6; }
.hs-src { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.6; color: var(--body); overflow-wrap: anywhere; }
.sc-plot { position: relative; }
.sc-svg { display: block; width: 100%; height: auto; }
.sc-svg .b3 { fill: #F3EEDF; } .sc-svg .b2 { fill: #ECDDA8; } .sc-svg .b1 { fill: #E2C766; }
.sc-svg .cv { fill: none; stroke: #1E1B15; stroke-width: 2; }
.sc-svg .ax, .sc-svg .tk { stroke: #8A8374; stroke-width: 1; }
.sc-svg text { font-family: 'Manrope', system-ui, sans-serif; font-size: 12.5px; fill: #57534A; }
.sc-svg .tl, .sc-svg .bl { text-anchor: middle; }
.sc-svg .rl { font-weight: 700; fill: #7A5B0B; }
.sc-svg .bl { font-weight: 700; fill: #1E1B15; font-size: 12px; }
.sc-mark { position: absolute; top: 2%; bottom: 36%; width: 0; border-left: 2.5px solid #22395B; transform: translateX(-1px); pointer-events: none; }
.sc-mark > span { position: absolute; top: -4px; left: 6px; background: #22395B; color: #FFFFFF; font-size: 12.5px; font-weight: 700; border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.sc-words { font-size: 16px; line-height: 1.6; color: var(--body); }
.sc-notes { margin: 0; padding-left: 22px; }
.sc-notes li { font-size: 16px; }
.tk-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tk-stats .sk-stat > b { font-size: 26px; }
.tk-tbtns { justify-content: center; }
.tk-foot, .wt-foot, .tm-foot, .ck-foot { margin-top: 28px; }
.wt-scen { font-size: 17px; }
.ck-more { grid-column: 2; font-size: 13.5px; justify-self: start; }
@media (max-width: 520px) { .tk-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.pl-stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.sk-ink, .sk-panel { align-content: start; }
.sk-ink > p { line-height: 1.65; font-size: 16px; }
.sk-ink a { color: #E7C65A; }
.sk-ink a:hover { color: #FFFFFF; }
.sk-panel + .sk-form, .sk-form + .sk-panel, .sk-prose + .sk-form { margin-top: 16px; }
.tm-h { font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--mute); }
