/* gate101.us — shared styles */
:root {
  --ink: #14213d;
  --ink-soft: #43506b;
  --paper: #fbf7ef;
  --card: #ffffff;
  --line: #e7dfd0;
  --sun: #f5a524;
  --sun-soft: #fdecc8;
  --teal: #0f766e;
  --teal-soft: #d8efe9;
  --berry: #b4235a;
  --berry-soft: #fbe1ea;
  --good: #1a7f4b;
  --bad: #b42318;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 8px 24px rgba(20, 33, 61, .07);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "DM Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 99; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(251, 247, 239, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--ink); text-decoration: none; }
.brand svg { width: 34px; height: 34px; }
.brand small { font-family: var(--sans); font-weight: 500; font-size: .74rem; color: var(--ink-soft); letter-spacing: .04em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: #f1e9d8; }
.nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.nav a.kid { background: var(--sun); color: var(--ink); font-weight: 700; }
.nav a.kid:hover { background: #ffb938; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 600; color: var(--ink); }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 20px 18px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
}

/* ---------- hero ---------- */
.hero { padding: 64px 0 40px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); background: var(--teal-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 em { font-style: italic; color: var(--teal); }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 36em; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; text-decoration: none; padding: 13px 22px; border-radius: 999px; border: 2px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(20, 33, 61, .2); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { color: var(--ink); background: #fff; }
.btn.sun { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.btn.small { padding: 8px 16px; font-size: .92rem; }
.hero-card { background: var(--ink); color: #fff; border-radius: 26px; padding: 30px; box-shadow: var(--shadow); position: relative; }
.hero-card h2 { color: #fff; font-size: 1.15rem; font-family: var(--sans); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.count { font-family: var(--serif); font-size: 4.6rem; line-height: 1; font-weight: 700; color: var(--sun); }
.count-label { font-size: 1.02rem; opacity: .9; margin-bottom: 20px; }
.dates { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.dates li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .18); font-size: .97rem; }
.dates span:first-child { opacity: .78; }
.dates span:last-child { font-weight: 700; text-align: right; }
@media (max-width: 860px) { .hero { padding-top: 36px; } .hero-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- sections ---------- */
section { padding: 52px 0; }
section.tint { background: #f4ecdc; }
section.dark { background: var(--ink); color: #fff; }
section.dark h2, section.dark h3 { color: #fff; }
section.dark a { color: var(--sun); }
.sec-head { max-width: 46em; margin-bottom: 28px; }
.sec-head p { color: var(--ink-soft); font-size: 1.08rem; }
section.dark .sec-head p { color: #cfd6e4; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
@media (min-width: 861px) and (max-width: 1020px) { .g4 { grid-template-columns: repeat(2, 1fr); } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
a.card { display: block; color: inherit; text-decoration: none; transition: transform .12s ease, border-color .12s ease; }
a.card:hover { transform: translateY(-3px); border-color: var(--ink); }
.card .more { font-weight: 700; color: var(--teal); }
.icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 14px; background: var(--sun-soft); font-size: 1.4rem; }
.icon.t { background: var(--teal-soft); }
.icon.b { background: var(--berry-soft); }

.fact { border-left: 5px solid var(--sun); }
.fact .k { font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; color: var(--ink-soft); }
.fact .v { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1.2; margin: 4px 0 6px; }
.fact p { font-size: .95rem; color: var(--ink-soft); }

.note { background: var(--sun-soft); border: 1px solid #f1d28f; border-radius: var(--radius); padding: 18px 22px; }
.note.teal { background: var(--teal-soft); border-color: #a9d8cd; }
.note.berry { background: var(--berry-soft); border-color: #f0b6c9; }
.note strong:first-child { display: block; margin-bottom: 2px; }
.note p:last-child { margin-bottom: 0; }

/* ---------- article pages ---------- */
.page-head { padding: 48px 0 20px; }
.page-head p { font-size: 1.15rem; color: var(--ink-soft); max-width: 42em; }
.prose h2 { margin-top: 1.7em; padding-top: .2em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .45em; }
.prose .card, .prose .note { margin: 1.3em 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 6px 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .93rem; font-weight: 500; }
.toc a:hover { border-color: var(--ink); }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 1.2em 0; font-size: .97rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f4ecdc; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }
.src { font-size: .88rem; color: var(--ink-soft); }
details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; padding: 13px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--serif); font-size: 1.4rem; line-height: 1; color: var(--teal); }
details[open] summary::after { content: "–"; }
details > *:last-child { margin-bottom: 16px; }

/* timeline */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 22px 44px; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--teal); }
.timeline li.done::before { background: var(--teal); }
.timeline li.big::before { border-color: var(--sun); background: var(--sun); }
.timeline .when { font-weight: 700; font-family: var(--serif); font-size: 1.12rem; }
.timeline p { margin: 2px 0 0; color: var(--ink-soft); }

/* weekly plan */
.week { display: grid; grid-template-columns: 150px 1fr; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 14px; box-shadow: var(--shadow); }
.week .n { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.week .d { font-size: .88rem; color: var(--ink-soft); }
.week .tag { display: inline-block; margin-top: 10px; font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--teal-soft); color: var(--teal); }
.week h3 { margin-bottom: .3em; }
.week ul { margin: 0; padding-left: 1.2em; }
.week li { margin-bottom: .3em; }
.week.test { background: var(--ink); color: #fff; border-color: var(--ink); }
.week.test .d { color: #cfd6e4; }
.week.test .tag { background: var(--sun); color: var(--ink); }
@media (max-width: 700px) { .week { grid-template-columns: 1fr; gap: 10px; } }

/* example question blocks on parent pages */
.eg { background: #fff; border: 1px dashed #cdbf9f; border-radius: 16px; padding: 20px; margin: 1.1em 0; }
.eg .stem { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; margin-bottom: 8px; }
.eg .arrow { color: var(--teal); padding: 0 .25em; }
.eg .opts { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; padding: 0; list-style: none; }
.eg .opts li { margin: 0; padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-weight: 500; }
.eg .opts li.right { background: var(--teal-soft); border-color: var(--teal); font-weight: 700; }
.eg .why { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.eg .matrix { max-width: 300px; }

/* ---------- footer ---------- */
.site-foot { background: #10192f; color: #c6cedd; padding: 44px 0 34px; font-size: .93rem; margin-top: 40px; }
.site-foot a { color: #fff; }
.site-foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-foot h4 { color: #fff; margin: 0 0 10px; font-size: .82rem; letter-spacing: .09em; text-transform: uppercase; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 6px; }
.site-foot .fine { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 28px; padding-top: 18px; font-size: .84rem; color: #9aa6bd; }
@media (max-width: 860px) { .site-foot .cols { grid-template-columns: 1fr; } }

/* ---------- kid practice area ---------- */
body.kid { background: #fff8e8; font-size: 18px; }
.kid-top { text-align: center; padding: 34px 0 6px; }
.kid-top h1 { font-size: clamp(2rem, 5vw, 3rem); }
.kid-top p { font-size: 1.15rem; color: var(--ink-soft); }
.stars-bar { display: inline-flex; gap: 18px; background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 8px 20px; font-weight: 700; margin-top: 6px; }
.games { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 26px 0; }
@media (max-width: 900px) { .games { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .games { grid-template-columns: 1fr; } }
.game { border: 3px solid var(--ink); border-radius: 22px; background: #fff; padding: 22px 16px; text-align: center; font: inherit; color: var(--ink); cursor: pointer; box-shadow: 0 6px 0 var(--ink); transition: transform .1s ease, box-shadow .1s ease; }
.game:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--ink); }
.game:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.game .big { font-size: 2.6rem; display: block; line-height: 1.1; }
.game b { display: block; font-family: var(--serif); font-size: 1.3rem; margin: 8px 0 2px; }
.game span { font-size: .95rem; color: var(--ink-soft); }
.game.v { background: #e3f4ef; } .game.n { background: #fff0cf; } .game.f { background: #fde5ec; } .game.m { background: #e7e9fb; }
.levels { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; }
.chip { font: inherit; font-weight: 700; padding: 9px 20px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }

.quiz { background: #fff; border: 3px solid var(--ink); border-radius: 26px; padding: 26px; margin: 22px auto 40px; max-width: 760px; box-shadow: 0 8px 0 var(--ink); }
.quiz-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; font-weight: 700; }
.bar { height: 12px; background: #efe6d2; border-radius: 999px; overflow: hidden; margin-bottom: 20px; }
.bar i { display: block; height: 100%; background: var(--teal); border-radius: 999px; transition: width .25s ease; }
.ask { font-size: 1.05rem; color: var(--ink-soft); margin-bottom: 10px; text-align: center; }
.stem-v { font-family: var(--serif); font-size: clamp(1.4rem, 4.4vw, 2.1rem); font-weight: 600; text-align: center; line-height: 1.5; margin: 6px 0 20px; }
.stem-v .box { display: inline-block; padding: 2px 14px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); margin: 4px 2px; }
.stem-v .q { background: var(--sun); min-width: 2.2em; }
.stem-v .to { color: var(--teal); padding: 0 .15em; }
.stem-v .gap { display: inline-block; width: .8em; }
.matrix { display: grid; grid-template-columns: 1fr 34px 1fr; gap: 8px; align-items: center; max-width: 330px; margin: 0 auto 20px; }
.matrix .cell { aspect-ratio: 1; border: 2px solid var(--ink); border-radius: 14px; background: var(--paper); display: grid; place-items: center; padding: 6px; }
.matrix .cell.q { background: var(--sun); font-family: var(--serif); font-size: 2.6rem; font-weight: 700; }
.matrix .to { text-align: center; font-size: 1.6rem; color: var(--teal); font-weight: 700; }
.choices { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.choices.words { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
@media (max-width: 560px) { .choices { grid-template-columns: repeat(3, 1fr); } .choices.words { grid-template-columns: 1fr 1fr; } }
.choice { font: inherit; font-weight: 700; font-size: 1.12rem; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: 12px 8px; cursor: pointer; min-height: 54px; display: grid; place-items: center; gap: 2px; }
.choice:hover:not(:disabled) { background: var(--sun-soft); }
.choice .letter { font-size: .72rem; color: var(--ink-soft); font-weight: 700; }
.choice svg { width: 100%; max-width: 92px; }
.choice.picked { background: var(--sun-soft); box-shadow: inset 0 0 0 2px var(--sun); }
.choice.right { background: #dff5e7; border-color: var(--good); box-shadow: inset 0 0 0 2px var(--good); }
.choice.wrong { background: #fde4e1; border-color: var(--bad); }
.choice:disabled { cursor: default; opacity: 1; }
.feedback { margin-top: 18px; border-radius: 16px; padding: 16px 18px; background: var(--teal-soft); display: none; }
.feedback.show { display: block; }
.feedback.no { background: var(--berry-soft); }
.feedback b { font-family: var(--serif); font-size: 1.2rem; }
.feedback p { margin: 4px 0 0; }
.quiz-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.done { text-align: center; }
.done .score { font-family: var(--serif); font-size: 4rem; font-weight: 700; line-height: 1; color: var(--teal); }
.done .stars { font-size: 2.4rem; letter-spacing: .1em; margin: 8px 0; }
.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 10px 0 40px; }
@media (max-width: 800px) { .tips { grid-template-columns: 1fr; } }
.tip { background: #fff; border: 2px solid var(--ink); border-radius: 18px; padding: 16px 18px; }
.tip b { font-family: var(--serif); font-size: 1.15rem; display: block; }
.hidden { display: none !important; }

/* mock test */
.timer { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; background: var(--ink); color: #fff; padding: 4px 16px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.timer.low { background: var(--bad); }
.dots { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; }
.dots button { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; font: inherit; font-size: .8rem; font-weight: 700; color: var(--ink); cursor: pointer; padding: 0; }
.dots button.ans { background: var(--teal-soft); }
.dots button.cur { background: var(--ink); color: #fff; }
.result-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.result-row .meter { grid-column: 1 / -1; height: 10px; background: #efe6d2; border-radius: 999px; overflow: hidden; }
.result-row .meter i { display: block; height: 100%; background: var(--teal); }
.review-item { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; background: #fff; }
.review-item .matrix { max-width: 220px; margin: 8px 0; }
.review-item.miss { border-left: 5px solid var(--bad); }
.review-item.hit { border-left: 5px solid var(--good); }
.mini-opts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.mini-opts span { border: 1px solid var(--line); border-radius: 10px; padding: 3px 10px; display: inline-flex; align-items: center; }
.mini-opts span svg { width: 44px; height: 44px; }
.mini-opts .right { background: #dff5e7; border-color: var(--good); font-weight: 700; }
.mini-opts .yours { background: #fde4e1; border-color: var(--bad); }

/* ---------- printable worksheets ---------- */
.sheet-controls { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; box-shadow: var(--shadow); }
.sheet-controls label { display: grid; gap: 4px; font-weight: 700; font-size: .9rem; }
.sheet-controls select { font: inherit; padding: 9px 12px; border-radius: 10px; border: 2px solid var(--ink); background: #fff; min-width: 170px; }
.sheet { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 34px 40px; margin: 24px 0; box-shadow: var(--shadow); }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 6px; }
.sheet-head b { font-family: var(--serif); font-size: 1.3rem; }
.sheet-meta { display: flex; gap: 30px; font-size: .92rem; margin: 8px 0 14px; }
.sheet-meta span { flex: 1; border-bottom: 1px solid #999; padding-bottom: 2px; }
.sheet-how { font-size: .95rem; margin-bottom: 14px; }
.ws-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 34px; }
.ws-list.figs { grid-template-columns: 1fr; }
.ws-q { break-inside: avoid; padding: 9px 0; border-bottom: 1px dotted #c9c0ad; display: grid; grid-template-columns: 26px 1fr; gap: 6px; }
.ws-q .num { font-weight: 700; }
.ws-stem { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; }
.ws-opts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .96rem; margin-top: 4px; }
.ws-fig { display: grid; grid-template-columns: 190px 1fr; gap: 26px; align-items: center; }
.ws-fig .matrix { max-width: 190px; margin: 0; grid-template-columns: 1fr 22px 1fr; }
.ws-fig .matrix .cell { border-radius: 8px; border-width: 1.5px; background: #fff; }
.ws-fig .matrix .cell.q { background: #fff; font-size: 1.8rem; }
.ws-figopts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.ws-figopts div { text-align: center; font-weight: 700; font-size: .9rem; }
.ws-figopts svg { border: 1.5px solid var(--ink); border-radius: 8px; padding: 4px; display: block; margin-bottom: 2px; }
.key-list { columns: 4; font-size: .98rem; margin: 0; padding-left: 1.4em; }
.key-list li { margin-bottom: 4px; break-inside: avoid; }
.sheet-foot { display: flex; justify-content: space-between; font-size: .78rem; color: #666; border-top: 1px solid #ccc; margin-top: 16px; padding-top: 6px; }

@media print {
  @page { margin: 16mm 16mm 16mm 18mm; }
  body { background: #fff; font-size: 12pt; }
  .site-head, .site-foot, .page-head, .sheet-controls, .no-print { display: none !important; }
  section { padding: 0; }
  .wrap, .narrow { width: 100%; }
  .sheet { border: 0; box-shadow: none; padding: 0; margin: 0; break-after: page; }
  .sheet:last-child { break-after: auto; }
  .matrix .cell, .ws-figopts svg { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  svg * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* cards keep dark text when they sit on a dark band */
section.dark .card, section.dark a.card { color: var(--ink); }
section.dark .card h3 { color: var(--ink); }
section.dark .card .more { color: var(--teal); }
.quiz { scroll-margin-top: 84px; }
