/* Exemplar paper page. Builds on styles.css and bento.css (tiles, buttons,
   labels, Chalkboard colours). Without JavaScript every round, question and
   part is shown in full; paper.mjs adds the tabs, sets and reveals. */

.paper-view { padding-block: 40px 88px; --slate: #2d424d; --gold: #f6e09f; --gold-deep: #d9b95a; --cream: #f6f2ea; --rule: #e5e2da; }
.paper-view .container { max-width: 1180px; }
.paper-view [hidden] { display: none !important; }
.paper-view p { color: #4a5a62; }

/* Hero */
.paper-hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 22px clamp(24px, 4vw, 56px); padding: clamp(26px, 4vw, 48px) clamp(26px, 4vw, 48px) clamp(20px, 2.4vw, 28px); align-items: start; }
.paper-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.paper-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 13px; border-radius: 999px; font-size: .8125rem; font-weight: 600; border: 1px solid var(--rule); color: #55626a; background: #fff; }
.paper-chip.is-current { background: var(--slate); border-color: var(--slate); color: #fff; }
.paper-chip small { font-weight: 400; font-size: .75rem; }
.paper-title { font-size: clamp(2.5rem, 5.4vw, 4.4rem); color: var(--slate); margin: 4px 0 16px; }
.paper-hero .paper-lead { font-family: var(--serif); font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.35; letter-spacing: -.015em; color: var(--slate) !important; max-width: 28em; margin-bottom: 26px; }
.paper-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.paper-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-self: center; }
.paper-facts li { background: var(--cream); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; justify-content: center; }
.paper-facts strong { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; line-height: 1.2; letter-spacing: -.02em; color: var(--slate); }
.paper-facts .paper-rule { font-family: var(--sans); font-weight: 700; font-size: 1.05rem; letter-spacing: 0; }
.paper-facts span { font-size: .85rem; color: #55626a; line-height: 1.45; margin-top: 2px; }
.paper-footer-mark { display: inline-flex; margin-top: 4px; }

/* Round tabs */
.round-bar { position: sticky; top: var(--header-h, 98px); z-index: 20; margin: 10px 0 0; padding: 10px 0 0; background: var(--paper); }
/* Folder tabs: the selected round joins the page below; the others sit behind with a View pill. */
.round-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-items: end; border-bottom: 1.5px solid var(--slate); }
.round-tab { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 14px; margin-bottom: 0; border: 1.5px solid #c9c1b0; border-bottom: 0; border-radius: 12px 12px 0 0; background: #e7e1d4; color: #3f4f57; text-decoration: none; transition: background .2s, transform .15s, border-color .2s; }
.round-tab:hover { background: #efe9dd; border-color: #b3aa96; transform: translateY(-2px); }
.round-tab[aria-selected="true"] { background: var(--paper); border-color: var(--slate); color: var(--slate); padding-block: 14px 12px; margin-bottom: -1.5px; transform: none; z-index: 1; }
.round-tab:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 2px; }
.round-num { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #d8d1c2; color: var(--slate); font-weight: 700; font-size: .9rem; transition: background .2s, color .2s; }
.round-tab[aria-selected="true"] .round-num { background: var(--slate); color: var(--gold); }
.round-name { display: flex; flex-direction: column; font-weight: 700; font-size: .95rem; line-height: 1.25; min-width: 0; flex: 1; }
.round-name small { font-weight: 400; font-size: .78rem; color: #55626a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tab-view { flex: none; padding: 3px 11px; border-radius: 999px; background: var(--gold); border: 1px solid var(--gold-deep); color: var(--slate); font-size: .75rem; font-weight: 700; transition: background .2s; }
.round-tab:hover .tab-view { background: #f1d67c; }
.round-tab[aria-selected="true"] .tab-view { display: none; }

/* Round panels */
.round-panel { margin-top: 14px; scroll-margin-top: calc(var(--header-h, 98px) + 90px); }
.round-panel:focus { outline: none; }
.round-panel + .round-panel { margin-top: 72px; }
.js-paper .round-panel + .round-panel { margin-top: 14px; }
.js-paper .round-panel.is-entering { animation: panel-in .38s ease-out; }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.round-head { max-width: 920px; margin-bottom: 26px; }
#round-2 .round-head { margin-bottom: 16px; }
.round-title { font-size: clamp(2rem, 3.6vw, 2.9rem); color: var(--slate); margin: 2px 0 10px; }
.round-intro { font-size: 1.05rem; margin: 0; }

/* Round 1: question cards */
.js-paper #round-1 .round-end .button { display: none; }
.r1-progress { position: sticky; top: calc(var(--header-h, 98px) + var(--bar-h, 84px)); z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 -8px 8px; padding: 10px 8px; background: var(--paper); border-bottom: 1px solid var(--rule); }
.r1-status { margin: 0; font-weight: 600; color: var(--slate) !important; font-size: .9rem; }
.r1-dots { display: flex; flex-wrap: wrap; gap: 6px; }
.r1-dot { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid #b9c3c8; background: #fff; color: #4b5b63; font: 600 .75rem/1 var(--sans); cursor: pointer; display: grid; place-items: center; padding: 0; transition: background .2s, border-color .2s, color .2s, transform .15s; }
.r1-dot:hover { transform: translateY(-1px); border-color: var(--slate); }
.r1-dot.is-current { border-color: var(--slate); border-width: 2px; }
.r1-dot.is-answered { background: var(--gold); border-color: var(--gold-deep); color: var(--slate); }
.r1-dot:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 2px; }

.q-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.q-list + .q-list { margin-top: 12px; }
.js-paper .q-list + .q-list { margin-top: 12px; }
.js-paper .q-list.is-entering { animation: panel-in .32s ease-out; }
.q-card, .r3-step { scroll-margin-top: calc(var(--header-h, 98px) + 104px); }
#round-1 .q-card { scroll-margin-top: calc(var(--header-h, 98px) + var(--bar-h, 84px) + 70px); }
.q-card { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 170px; gap: 6px 18px; align-items: start; background: #fff; border: 1.5px solid #cdd5d9; border-left: 6px solid var(--slate); border-radius: 14px; padding: 20px 22px 20px 20px; box-shadow: 0 2px 0 #e3ded3, 0 10px 26px rgba(38, 56, 65, .09); transition: border-color .2s, box-shadow .2s, transform .2s; }
.q-card:hover { box-shadow: 0 2px 0 #e3ded3, 0 14px 32px rgba(38, 56, 65, .13); }
.q-card:focus-within { border-color: var(--slate); box-shadow: 0 0 0 3px rgba(246, 224, 159, .9), 0 14px 32px rgba(38, 56, 65, .13); }
.q-list-hard .q-card { border-left-color: var(--gold-deep, #d9b95a); }
.q-card.is-answered { background: #fffdf6; }
.q-set-head { display: flex; align-items: baseline; gap: 12px; margin: 26px 0 12px; font-family: var(--serif); font-weight: 400; font-size: 1.35rem; color: var(--slate); }
.q-set-head:first-child { margin-top: 4px; }
.q-set-head span { font-family: var(--sans); font-size: .85rem; color: #4b5b63; }
.q-num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--slate); color: #fff; font-weight: 700; font-size: .9rem; }
.q-body p { margin: 6px 0 0; font-size: 1.06rem; line-height: 1.6; color: #1f2d34 !important; }
.q-pts { margin-top: 8px; font-size: .75rem; font-weight: 600; color: #4b5b63; background: #edeae1; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.q-answer input { width: 100%; height: 44px; border: 1.5px solid #c7cfd3; border-radius: 10px; padding: 0 14px; font: inherit; font-size: 1rem; color: var(--slate); background: var(--cream); transition: border-color .2s, background .2s; }
.q-answer input::placeholder { color: #6d7a80; }
.q-answer input:focus { outline: none; border-color: var(--slate); background: #fff; }
.q-card-figure .fig-dice { display: block; width: 190px; margin-top: 10px; }

.r1-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
.button-ghost { background: #fff; color: var(--slate); }
.button-ghost:hover { background: var(--cream); }
.button[disabled] { opacity: .4; pointer-events: none; }

/* Figures (shared) */
.fig { overflow: visible; }
.fig text { font-family: var(--sans); fill: #3f4f57; }
.fig-label { font-size: 13px; text-anchor: middle; fill: #55626a !important; }
.fig-start { text-anchor: start; }
.fig-strong { font-weight: 700; fill: var(--slate) !important; }
.die-front rect, .die-side path, .die-top path { stroke: var(--slate); stroke-width: 1.6; stroke-linejoin: round; }
.die-front rect { fill: #fff; }
.die-side path { fill: #e3ddd0; }
.die-top path { fill: var(--gold); }
.die-seams { stroke: var(--slate); stroke-width: 1.6; fill: none; }
.pips circle { fill: var(--slate); }
.table { stroke: var(--slate); stroke-width: 2.5; stroke-linecap: round; }
.fig-tree .branch { stroke: #8fa0a8; stroke-width: 2; fill: none; }
.fig-tree .node { font-size: 17px; font-weight: 700; text-anchor: middle; fill: var(--slate); }
.fig-tree .prime { fill: var(--gold); stroke: var(--gold-deep); stroke-width: 2; }
.fig-dots .dots circle { fill: var(--slate); }
.fig-dots .extra { fill: #fff; stroke: #dd543c; stroke-width: 2.5; }
.fig-line .axis { stroke: var(--slate); stroke-width: 2; }
.fig-line .tick { stroke: #8fa0a8; stroke-width: 2; }
.fig-line .mark { fill: var(--slate); }
.fig-line .mark + .mark { fill: #dd543c; }
.fig-grid .cell { fill: #fff; stroke: var(--slate); stroke-width: 1.5; }
.fig-grid .cell.on { fill: #b9cbd3; }

/* Round 2 */
.r2-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; align-items: stretch; }
.conjecture-card { background: var(--slate); border-radius: 16px; padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column; justify-content: center; }
.conjecture-label { margin: 0 0 8px; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold) !important; }
.conjecture-text { margin: 0; font-family: var(--serif); font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.25; letter-spacing: -.02em; color: #fff !important; }
.r2-story { display: flex; flex-direction: column; justify-content: center; background: #fff; border: 1px solid var(--rule); border-radius: 16px; padding: clamp(18px, 2.2vw, 24px); }
.r2-story p { font-size: .97rem; }
.r2-story p:last-child { margin-bottom: 0; }
.prime-def { border-top: 1px dashed #d8d1c2; padding-top: 12px; font-size: .9rem !important; }

/* Learn the tools: four bubbles, each opening one part below */
.tools { margin: 16px 0 14px; }
.tools-title { margin: 0 0 4px; font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 1.9rem); letter-spacing: -.02em; color: var(--slate); }
.tool-bubbles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tool-bubble { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 14px; border: 1.5px solid #d8d1c2; border-radius: 16px; background: #fff; color: var(--slate); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background .2s, transform .15s, box-shadow .2s; }
.tool-bubble:hover { border-color: var(--slate); transform: translateY(-2px); box-shadow: 0 6px 16px #2638411a; }
.tool-bubble:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 2px; }
.tool-bubble b { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--slate); color: var(--gold); font-family: var(--serif); font-weight: 400; font-size: 1.3rem; }
.tool-bubble span { display: flex; flex-direction: column; min-width: 0; font-family: var(--serif); font-size: 1.08rem; line-height: 1.2; }
.tool-bubble small { font-family: var(--sans); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #4b5b63; margin-bottom: 2px; }
.tool-bubble[aria-expanded="true"] { background: var(--slate); border-color: var(--slate); color: #fff; transform: none; }
.tool-bubble[aria-expanded="true"] b { background: var(--gold); color: var(--slate); }
.tool-bubble[aria-expanded="true"] small { color: var(--gold); }
.js-paper .parts-grid { grid-template-columns: 1fr; }
.js-paper .part-card.is-entering { animation: panel-in .32s ease-out; }
.parts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.part-card { background: #fff; border: 1px solid var(--rule); border-radius: 16px; padding: clamp(20px, 2.4vw, 28px); scroll-margin-top: calc(var(--header-h, 98px) + 96px); }
.part-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.part-letter { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--slate); color: var(--gold); font-family: var(--serif); font-size: 1.5rem; }
.part-kicker { margin: 0; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #4b5b63 !important; }
.part-head h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 1.45rem; letter-spacing: -.02em; color: var(--slate); line-height: 1.2; }
.box { border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.box p { font-size: .93rem; line-height: 1.6; margin-bottom: 8px; color: #3f4f57 !important; }
.box p:last-child { margin-bottom: 0; }
.box-label { font-size: .7rem !important; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #4b5b63 !important; margin-bottom: 6px !important; }
.box-start { background: var(--cream); }
.box-new { background: #fbf4d8; border-left: 4px solid var(--gold-deep); }
.box-math { font-family: var(--serif); font-size: 1.2rem !important; color: var(--slate) !important; }
.box-split { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.fig-tree { width: 170px; }
.fig-dots { width: 150px; }
.fig-line { display: block; width: 100%; max-width: 280px; margin: 8px auto 0; }
.caps { font-weight: 700; letter-spacing: .04em; }
.part-qs { list-style: none; counter-reset: pq; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; }
.part-qs[start="2"] { counter-reset: pq 1; }
.part-qs[start="3"] { counter-reset: pq 2; }
.part-qs li { counter-increment: pq; position: relative; padding-left: 40px; }
.part-qs li::before { content: counter(pq); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #e5ecef; color: var(--slate); font-weight: 700; font-size: .82rem; }
.part-qs p { margin: 0 0 6px; font-size: .95rem; line-height: 1.6; color: #2f3f47 !important; }
.part-qs p:last-child { margin-bottom: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.indent { display: inline-block; padding-left: 1.4em; }
.steps-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.steps-chips span:not(.chip-arrow) { padding: 4px 12px; border-radius: 8px; border: 1.5px solid var(--slate); background: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .06em; color: var(--slate); }
.steps-chips .chip-end { background: var(--slate) !important; color: var(--gold) !important; }
.chip-arrow { color: var(--slate); font-weight: 700; }
.tool-line { margin: 4px 0 0; padding: 12px 14px; border: 1.5px dashed var(--gold-deep); border-radius: 10px; font-size: .88rem !important; line-height: 1.55; }
.tool-line span { color: #8a6b12; }

.converge { position: relative; height: 150px; margin-top: -4px; }
.converge svg { position: absolute; inset: 0 0 34px; width: 100%; height: calc(100% - 34px); overflow: visible; }
.converge path { fill: none; stroke: #9fb0b8; stroke-width: 2.5; stroke-dasharray: 6 7; vector-effect: non-scaling-stroke; }
.converge-node { text-decoration: none; transition: background .2s, transform .15s; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); padding: 7px 18px; border-radius: 999px; background: var(--gold); border: 1px solid var(--gold-deep); color: var(--slate); font-size: .85rem; font-weight: 700; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .converge.can-flow path { animation: flow 1.4s linear infinite; }
}
@keyframes flow { to { stroke-dashoffset: -26; } }

.team-sheet { margin-top: 14px; background: #fff; border: 1px solid var(--rule); border-top: 6px solid var(--slate); border-radius: 16px; padding: clamp(22px, 3vw, 38px); scroll-margin-top: calc(var(--header-h, 98px) + 96px); }
.team-head h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: var(--slate); margin: 0 0 6px; letter-spacing: -.02em; }
.team-step { padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--rule); }
.team-step h4 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 10px; font-size: 1.05rem; color: var(--slate); }
.team-step h4 small { font-weight: 400; font-size: .85rem; color: #55626a; }
.step-num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--slate); color: var(--gold); font-size: .85rem; }
.tool-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tool-notes label span, .frame-key { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #4b5b63; margin-bottom: 4px; }
.paper-view textarea { width: 100%; resize: vertical; min-height: 58px; border: 1.5px solid #c7cfd3; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: .95rem; line-height: 1.5; color: var(--slate); background: var(--cream); }
.paper-view textarea:focus { outline: none; border-color: var(--slate); background: #fff; }
.mcq { border: 0; margin: 0 0 16px; padding: 0; }
.mcq legend { padding: 0; margin-bottom: 8px; font-size: .97rem; line-height: 1.55; color: #2f3f47; }
.mcq { display: flex; flex-wrap: wrap; gap: 8px; }
.mcq legend { width: 100%; }
.mcq label { position: relative; cursor: pointer; }
.mcq input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.mcq label span { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 6px 16px 6px 8px; border-radius: 999px; border: 1.5px solid #c7cfd3; background: #fff; font-size: .93rem; color: #2f3f47; transition: background .15s, border-color .15s; }
.mcq label span b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #e5ecef; color: var(--slate); font-size: .78rem; transition: background .15s, color .15s; }
.mcq label:hover span { border-color: var(--slate); }
.mcq input:checked + span { background: #fbf4d8; border-color: var(--gold-deep); }
.mcq input:checked + span b { background: var(--slate); color: var(--gold); }
.mcq input:focus-visible + span { outline: 3px solid var(--gold-deep); outline-offset: 2px; }
.frame { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.frame label { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 4px 16px; align-items: start; }
.frame-key { margin: 8px 0 0 !important; color: var(--slate) !important; }
.frame-prompt { font-size: .95rem; color: #2f3f47; }
.frame textarea { grid-column: 2; }
.bonus { margin-top: 24px; border: 1.5px dashed #c7cfd3; border-radius: 12px; padding: 0 18px; }
.bonus summary { cursor: pointer; padding: 14px 0; font-weight: 700; color: var(--slate); }
.bonus summary small { font-weight: 400; color: #55626a; margin-left: 6px; }
.bonus p { font-size: .95rem; }
.hint { font-size: .9rem !important; color: #55626a !important; }

/* Round 3 */
.r3-figures { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 64px; background: #fff; border: 1px solid var(--rule); border-radius: 16px; padding: 28px 24px 20px; margin-bottom: 22px; }
.r3-figures figure { margin: 0; text-align: center; }
.r3-figures .fig-grid { height: 150px; width: auto; }
.r3-figures figcaption { margin-top: 10px; font-size: .85rem; color: #55626a; }
.r3-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.r3-step { min-width: 0; background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 20px 22px 20px 74px; position: relative; }
.r3-step.is-entering { animation: panel-in .35s ease-out; }
.r3-head .q-num { position: absolute; left: 20px; top: 20px; }
.r3-head .q-pts { position: absolute; right: 20px; top: 14px; margin: 0; }
.r3-step p { margin: 6px 0 0; padding-right: 80px; font-size: 1rem; line-height: 1.65; color: #2f3f47 !important; }
.r3-step p + p { margin-top: 10px; }
.table-wrap { overflow-x: auto; margin-top: 14px; }
.cube-table { border-collapse: collapse; font-size: .95rem; min-width: 520px; }
.cube-table th, .cube-table td { border: 1.5px solid #c7cfd3; padding: 8px 10px; text-align: center; }
.cube-table th { background: var(--cream); color: var(--slate); text-align: left; font-weight: 600; white-space: nowrap; }
.cube-table td { min-width: 56px; color: var(--slate); font-weight: 600; }
.cube-table td.blank { padding: 3px; background: #fdfcf9; }
.cube-table td.blank input { width: 64px; height: 34px; border: 0; background: transparent; text-align: center; font: inherit; font-weight: 600; color: var(--slate); }
.cube-table td.blank input:focus { outline: 2px solid var(--gold-deep); border-radius: 4px; }
.r3-nav { display: flex; align-items: center; gap: 22px; margin-top: 18px; }

.round-end { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; margin-top: 30px; padding-top: 22px; border-top: 1px solid #ddd6c7; }
.round-end p { margin: 0; font-size: .9rem; color: #55626a !important; }
.round-end-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; }

/* Tablet and phone */
@media (max-width: 960px) {
  .paper-hero { grid-template-columns: 1fr; }
  .paper-facts strong { font-size: 1.2rem; }
  .paper-facts li { padding: 14px; }
  .r2-intro { grid-template-columns: 1fr; }
  .parts-grid { grid-template-columns: 1fr; }
  .tool-bubbles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .converge { height: 96px; }
  .converge path:nth-child(1), .converge path:nth-child(4) { display: none; }
  .q-card { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .q-answer { grid-column: 2 / -1; }
}
@media (max-width: 640px) {
  .paper-view { padding-block: 24px 64px; }
  .round-tab { flex-direction: column; gap: 4px; padding: 8px 4px; text-align: center; }
  .round-tabs { align-items: stretch; gap: 6px; }
  .round-tab { justify-content: center; }
  .round-tab[aria-selected="true"] { padding-block: 8px; }
  .round-name { flex: none; }
  .tab-view { padding: 1px 9px; font-size: .68rem; }
  .round-name { font-size: .78rem; }
  .round-name small { display: none; }
  .round-num { width: 28px; height: 28px; font-size: .8rem; }
  .q-card { grid-template-columns: 34px minmax(0, 1fr); padding: 16px; gap: 8px 12px; }
  .q-num { width: 32px; height: 32px; }
  .q-pts { grid-column: 2; justify-self: start; margin-top: 0; }
  .q-answer { grid-column: 1 / -1; }
  .box-split { grid-template-columns: 1fr; justify-items: center; }
  .box-split p { justify-self: stretch; }
  .tool-notes { grid-template-columns: 1fr; }
  .frame label { grid-template-columns: 1fr; }
  .frame textarea { grid-column: 1; }
  .frame-key { margin: 0 !important; }
  .r3-step { padding: 64px 18px 18px; }
  .r3-step p { padding-right: 0; }
  .r3-head .q-num { left: 18px; top: 16px; }
  .r3-head .q-pts { top: 22px; right: 18px; }
  .r1-nav .button, .r3-nav .button { flex: 1; }
  .tool-bubbles { gap: 8px; }
  .tool-bubble { padding: 10px; gap: 9px; }
  .tool-bubble b { width: 32px; height: 32px; font-size: 1.1rem; border-radius: 9px; }
  .tool-bubble span { font-size: .95rem; }
  .cube-table { min-width: 470px; font-size: .88rem; }
  .cube-table th { position: sticky; left: 0; z-index: 1; box-shadow: 2px 0 0 #c7cfd3; }
  .cube-table td.blank input { width: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .js-paper .round-panel.is-entering, .js-paper .q-list.is-entering, .r3-step.is-entering { animation: none; }
}
/* Printing (and the downloadable PDF, built from this page by tools/build-paper-pdf.mjs). */
@page { size: A4; margin: 14mm 13mm; }
@media print {
  .site-header, .round-bar, .r1-progress, .r1-check, .r1-nav, .r3-nav, .round-end, .converge, .site-footer, .part-toggle,
  .emt-jump, .paper-picker, .paper-actions, .tool-bubbles, .skip-link { display: none !important; }
  .round-panel[hidden], .q-list[hidden], .r3-step[hidden], .team-sheet[hidden], .part-card[hidden] { display: block !important; }
  html, body, body .papers-page { background: #fff !important; }
  .tile, .q-card, .part-card, .team-sheet, .r3-step { box-shadow: none !important; }
  /* Each round starts on a new page; questions, parts and figures never split. */
  .round-panel + .round-panel, #round-2, #round-3, .team-sheet { break-before: page; }
  .q-card, .r3-step, .box, .mcq, .frame li, .conjecture-card, .part-head, .fig, .team-step h4, .bonus { break-inside: avoid; }
  .part-card + .part-card { break-before: page; }
  h2, h3, h4, .q-set-head { break-after: avoid; }
  .q-answer input { border: 0 !important; border-bottom: 1px solid #8a8f93 !important; border-radius: 0 !important; background: none !important; }
  .q-answer input::placeholder { color: transparent; }
  details.bonus > *:not(summary) { display: block !important; }
  .screen-only { display: none !important; }
  * { overflow: visible !important; }
  table { width: 100%; }
}

/* Team Sheet opens from the "Bring it together" pill (paper.mjs) */
a.converge-node:hover { background: #f1d67c; transform: translateX(-50%) translateY(-1px); }
a.converge-node:focus-visible { outline: 3px solid var(--slate); outline-offset: 3px; }
.converge-node[aria-expanded="true"] { background: #fff; }
.team-sheet.is-entering { animation: panel-in .4s ease-out; }

/* Option C preview: way back to the EMT page. */
/* Same Overview / Exemplar papers pill as the EMT page (see emt/emt.css), so teachers can switch back easily. */
.emt-jump { display: flex; gap: 6px; width: max-content; max-width: 100%; margin: 0 auto 18px; padding: 5px; border: 2px solid #e9c25a; border-radius: 999px; background: var(--green); box-shadow: 0 4px 14px #2638412e; }
.emt-jump a { padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: .95rem; color: #fff; text-decoration: none; transition: background .2s, color .2s; }
.emt-jump a[aria-current] { background: #fff; color: var(--green); }
.emt-jump a:hover, .emt-jump a:focus-visible { background: #e9c25a; color: var(--green); outline: none; }

/* Round 1 total-score check (founders, 1 Dec): the total only, never which answers. */
.r1-check { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.r1-score { margin: 0; font-size: .9375rem; color: var(--slate); }
.round-points { margin: 6px 0 0; font-size: .875rem; color: #4b5b63; }
.part-head .part-pts { margin: 0 0 0 auto; align-self: flex-start; }
