/* The maths pages (scripts/build_maths.py): the hub, one page per board, one per class. Paper like the rest of the site:
   a hero on sun or sky paper with Kuru standing in a cream window, the year's shape as a strip of cut paper, the chapters
   as the contents page of a notebook, and the "Try one question" panel (js/sections/maths/try.js) opening inside the row.
   Type follows the site: Baloo 2 for headings, Nunito Sans for text, body at least 17 px, small print at least 15 px. */

/* Tamil lines and the panel in Tamil: the same font as the Kuru app, fetched only where Tamil is on screen */
@font-face { font-family: "Kuru Tamil"; src: url(/css/learn/fonts/baloo-thambi-2-tamil.woff2) format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0B80-0BFF, U+200C-200D, U+25CC; }
main [lang="ta"] { font-family: "Kuru Tamil", var(--font-body); line-height: 1.6; } /* not the footer's one word: other boards' pages need no Tamil font */

/* the engine keeps a formula together with non-breaking spaces; on a phone a long one may still break rather than overflow */
.mc__q, .mc__opts, .mc__hints li, .mc__why, .mw__q, .mw__hints li, .mw__step p, .mw__choices li, .mq__say, .mq__q, .mq__hint p, .mq__why, .mq__ans, .mq__rh, .mq__cn { overflow-wrap: anywhere; }

/* ---------- the hero */
.mh { position: relative; z-index: 2; padding-block: clamp(20px, 3vw, 40px) clamp(40px, 5vw, 68px); }
.mh__grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(220px, 25vw, 330px); gap: clamp(20px, 4vw, 64px); align-items: end; }
.mh h1 { font-size: clamp(35px, 4.6vw, 62px); line-height: 1.05; letter-spacing: -.018em; max-width: 16em; }
.mh--hub h1 { font-size: clamp(40px, 5.4vw, 76px); }
.mh__lead { margin-top: clamp(12px, 1.5vw, 18px); max-width: 60ch; font: 600 var(--t-lead)/1.5 var(--font-body); color: var(--ink); }
.mh__ta { margin-top: 12px; max-width: 60ch; font-size: 18px; color: var(--ink); }
.mh__facts { margin-top: clamp(14px, 1.6vw, 20px); display: flex; flex-wrap: wrap; gap: 8px 10px; }
.mh__facts li { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 13px; border-radius: 10px 12px 11px 9px / 12px 9px 12px 10px; background: var(--card); color: var(--ink);
  font: 750 15.5px/1.25 var(--font-body); box-shadow: inset 0 1px 0 #FFF, 0 1px 1px rgba(90, 42, 0, .28), 0 5px 10px -7px rgba(90, 42, 0, .4); }
.mh__facts li:nth-child(odd) { rotate: -.5deg; }
.mh__facts li:nth-child(even) { rotate: .4deg; }
.mh__go { margin-top: clamp(18px, 2vw, 26px); display: flex; flex-wrap: wrap; gap: 10px 12px; }
.mh__art { align-self: end; justify-self: center; position: relative; width: 100%; aspect-ratio: 300 / 372; overflow: hidden;
  border-radius: 50% 50% 18px 22px / 36% 36% 18px 22px; background: #FFF4E4;
  box-shadow: inset 0 6px 18px rgba(90, 42, 0, .24), inset 0 0 0 6px rgba(255, 255, 255, .45), 0 1px 1.5px rgba(90, 42, 0, .3), 0 26px 44px -24px rgba(90, 42, 0, .5); }
.pk-ground--sky .mh__art { box-shadow: inset 0 6px 18px rgba(30, 60, 140, .2), inset 0 0 0 6px rgba(255, 255, 255, .5), 0 1px 1.5px rgba(30, 60, 140, .3), 0 26px 44px -24px rgba(30, 60, 140, .5); }
.mh__kuru { position: absolute; left: 50%; bottom: -3%; width: 84%; max-width: none; translate: -50% 0; }
.mh--hub .mh__kuru { width: 104%; bottom: -2%; }

/* breadcrumbs: tiny paper tabs would shout, so plain words */
.mb { margin-bottom: clamp(4px, .6vw, 8px); }
.mb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; font: 750 15px/1.4 var(--font-body); color: var(--ink); }
.mb li { display: inline-flex; align-items: center; }
.mb li:not(:last-child)::after { content: "/"; margin-inline: 8px; color: var(--ink); opacity: .55; }
.mb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: rgba(30, 42, 90, .3); }
.mb a:hover { text-decoration-color: currentColor; }
.mb [aria-current] { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- what the year covers */
.ms { position: relative; padding-block: clamp(62px, 7vw, 92px) clamp(30px, 4vw, 48px); }
.ms h2, .mc-head h2, .mk-sec h2, .mw h2, .mq-sec h2 { font-size: clamp(28px, 3.1vw, 44px); line-height: 1.1; }
.ms__lead { margin-top: 12px; max-width: 66ch; }
.ms__strip { display: flex; gap: 3px; margin-top: 20px; height: 44px; border-radius: 12px 14px 13px 11px / 14px 11px 14px 12px; overflow: hidden;
  box-shadow: 0 1px 1.5px rgba(90, 42, 0, .28), 0 10px 18px -12px rgba(90, 42, 0, .4); background: var(--card); }
.ms__seg { flex: 1 1 0; display: grid; place-items: center; min-width: 0; font: 800 18px/1 var(--font-display); color: var(--ink); }
.ms__strip--mini { margin-top: 10px; height: 12px; gap: 2px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(30, 42, 90, .1); }
.ms__key { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 18px; font: 700 15.5px/1.4 var(--font-body); color: var(--ink); }
.ms__key li { display: inline-flex; align-items: center; gap: 8px; }
.ms__key i { flex: none; width: 15px; height: 15px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(30, 42, 90, .22); }
.ms__notes { margin-top: clamp(20px, 2.4vw, 30px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; max-width: 900px; }
.ms__note { padding: 16px 20px 18px; border-radius: 4px 6px 16px 5px / 5px 6px 8px 4px; background: linear-gradient(135deg, transparent 70%, rgba(90, 42, 0, .06)), var(--lemon); rotate: -.4deg;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 1px 1px rgba(90, 42, 0, .2), 5px 12px 14px -11px rgba(90, 42, 0, .4); }
.ms__note--next { --c: var(--sky); background: linear-gradient(135deg, transparent 70%, rgba(30, 60, 140, .06)), var(--sky); rotate: .35deg; }
.ms__note h3 { font-size: 21px; }
.ms__note ul { margin-top: 8px; display: grid; gap: 3px; }
.ms__note li { position: relative; padding-left: 16px; font-size: var(--t-body); line-height: 1.4; }
.ms__note li::before { content: ""; position: absolute; left: 1px; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); opacity: .7; }
.ms__more { margin-top: 3px; padding-left: 16px; font-size: var(--t-body); }
.ms__go { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; font-weight: 800; color: var(--blue-deep); }
.ms__small { margin-top: 10px; font: 600 var(--t-small)/1.45 var(--font-body); color: var(--ink-2); }

/* ---------- the chapters: the contents page of a notebook */
.mc-sec { position: relative; padding-block: clamp(20px, 3vw, 36px) clamp(64px, 8vw, 110px); }
.mc-head p { margin-top: 10px; max-width: 66ch; }
.mc-sheet { margin-top: clamp(16px, 2vw, 24px); padding: clamp(6px, 1vw, 14px) clamp(14px, 2.2vw, 30px); border-radius: 16px 20px 18px 14px / 18px 14px 20px 16px; }
.mc-sheet.paper::after { opacity: .22; }
.mc__part { margin: clamp(16px, 2vw, 24px) 0 2px; font-size: clamp(21px, 2vw, 26px); color: var(--blue-deep); }
.mc__part:first-child { margin-top: 10px; }
.mc__row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; column-gap: clamp(10px, 1.6vw, 20px); align-items: start; padding-block: 18px; scroll-margin-top: 92px; border-bottom: 2px solid rgba(35, 70, 198, .09); }
.mc__row:last-child { border-bottom: 0; }
.mc__n { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--lemon); color: var(--ink); font: 800 19px/1 var(--font-display);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 1px 1px rgba(90, 42, 0, .3); }
.mc__row.is-next .mc__n { background: var(--paper-deep); }
.mc__t { font-size: clamp(21px, 1.8vw, 25px); line-height: 1.2; }
.mc__ta { margin-top: 2px; font-size: var(--t-body); color: var(--ink-2); }
.mc__about { margin-top: 6px; max-width: 62ch; color: var(--ink); }
.mc__does { margin-top: 4px; max-width: 62ch; color: var(--ink-2); }
.mc__does b { color: var(--ink); font-weight: 800; }
.mc__eg { margin-top: 12px; max-width: 62ch; padding: 10px 14px 12px; border-radius: 10px; background: var(--paper); box-shadow: inset 0 0 0 1.5px rgba(90, 42, 0, .1); }
.mc__k { font: 800 15px/1.3 var(--font-body); letter-spacing: .02em; color: #7A4A10; }
.mc__q { margin-top: 3px; font-weight: 650; }
.mc__q--ta { font-weight: 500; }
.mc__opts { margin-top: 2px; color: var(--ink-2); }
.mc__pic { margin-bottom: 8px; }
.mc__pic .v { width: auto; max-width: 240px; max-height: 150px; margin: 0; }
.mc__more { margin-top: 6px; }
.mc__more summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--blue-deep); font-weight: 800; text-decoration: underline; text-decoration-color: rgba(26, 53, 160, .35); text-underline-offset: .18em; }
.mc__more summary::-webkit-details-marker { display: none; }
.mc__more summary::before { content: "+"; flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: var(--lemon); color: var(--ink); font: 800 18px/1 var(--font-body); }
.mc__more[open] summary::before { content: "−"; }
.mc__hints { display: grid; gap: 4px; counter-reset: h; }
.mc__hints li { position: relative; padding-left: 30px; counter-increment: h; }
.mc__hints li::before { content: counter(h); position: absolute; left: 0; top: 2px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--lemon); font: 800 15px/1 var(--font-body); }
.mc__why { margin-top: 6px; }
.mc__go { display: grid; justify-items: stretch; gap: 8px; width: 244px; }
.mc__try { min-height: 48px; padding: 0 20px; font-size: 16.5px; }
html:not(.js) .mc__try { visibility: hidden; } /* the room stays, so nothing moves when boot.js adds .js */
.mc__try[aria-expanded="true"] { background: var(--lemon); }
.mc__try[aria-busy="true"] { opacity: .75; cursor: progress; }
.mc__start { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 4px 8px; text-align: center; font: 800 15.5px/1.25 var(--font-body); color: var(--blue-deep); }
.mc__go .tag { justify-self: start; height: 32px; font-size: 15px; background: var(--moon); color: #3B2E86; }
.mc__panel { grid-column: 1 / -1; margin-top: 14px; scroll-margin-top: 92px; }
.mc__panel[role="status"] { padding: 12px 16px; border-radius: 12px; background: var(--pink); }
.mc-foot { margin-top: clamp(16px, 2vw, 22px); display: grid; gap: 8px; max-width: 78ch; }
.mc-foot__next { color: var(--ink); }
.mc-foot__honest { font: 500 var(--t-small)/1.55 var(--font-body); color: var(--ink-2); }

/* ---------- the panel: one Kuru question, inside its row */
.mq { position: relative; padding: clamp(12px, 1.6vw, 18px); border-radius: 16px; background: var(--sky); box-shadow: inset 0 0 0 2px rgba(35, 70, 198, .12); }
.mq__top { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.mq__kuru { width: 58px; height: 70px; object-fit: contain; }
.mq__say { position: relative; justify-self: start; padding: 8px 13px; border-radius: 14px; background: var(--card); font: 700 16.5px/1.35 var(--font-body); box-shadow: 0 1px 1px rgba(30, 60, 140, .25); }
.mq[lang="ta"] .mq__say { font-size: 16.5px; line-height: 1.5; }
.mq__say::before { content: ""; position: absolute; left: -7px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: var(--card); rotate: 45deg; border-radius: 3px; }
.mq__tools { display: flex; align-items: center; gap: 8px; }
.mq__lang { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .6); }
.mq__lang button { min-height: 40px; min-width: 44px; padding: 0 11px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: 800 15px/1 var(--font-body); }
.mq__lang button[lang="ta"] { font-family: "Kuru Tamil", var(--font-body); }
.mq__lang button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.mq__x { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .6); color: var(--ink); }
.mq__x svg { width: 22px; height: 22px; }
.mq__card { margin-top: 10px; padding: clamp(12px, 2vw, 22px); border-radius: 14px; background: var(--card); }
.mq__pic { margin: 0 0 10px; display: grid; place-items: center; }
.mq__pic .v { width: 100%; height: auto; max-width: 460px; max-height: 280px; }
.mq__q { font: 750 clamp(20px, 2vw, 24px)/1.35 var(--font-body); color: var(--ink); }
.mq[lang="ta"] .mq__q { font-weight: 600; line-height: 1.55; }
.mq__q:focus { outline: none; }
.mq__q:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 6px; }
.mq__answer { margin-top: 14px; }
.mq__ask { display: block; margin-bottom: 8px; font: 700 15.5px/1.3 var(--font-body); color: var(--ink-2); }
.mq__choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mq__choices.is-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mq__c { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 6px; min-height: 64px; padding: 8px 10px; border: 0; border-radius: 14px; background: var(--paper); color: var(--ink);
  box-shadow: inset 0 0 0 2px rgba(30, 42, 90, .14), 0 2px 0 rgba(30, 42, 90, .14); font: 800 clamp(21px, 2vw, 26px)/1.2 var(--font-display); transition: transform .1s var(--ease-settle), background-color .2s; }
@media (hover: hover) and (pointer: fine) { .mq__c:not([aria-disabled="true"]):hover { background: var(--lemon); } }
.mq__c:active { transform: translateY(1px) scale(.98); }
.mq__cn.is-long { font-size: .84em; }
.mq__choices.is-wide .mq__cn { font: 700 18px/1.35 var(--font-body); }
.mq[lang="ta"] .mq__c .mq__cn { font-family: "Kuru Tamil", var(--font-display); }
.mq__cu { font: 700 15px/1.2 var(--font-body); color: var(--ink-2); }
.mq__cu--tight { margin-left: -6px; font: inherit; color: inherit; }
.mq__art { display: block; width: 100%; }
.mq__art .v { width: 100%; height: auto; max-height: 90px; }
.mq__ct { font: 700 15px/1.25 var(--font-body); }
.mq__c.is-wrong { background: #F3F0EA; color: var(--ink-2); box-shadow: inset 0 0 0 2px rgba(30, 42, 90, .1); cursor: default; }
.mq__c.is-right { background: var(--mint); box-shadow: inset 0 0 0 2.5px #2E8B57; }
.mq__mark { position: absolute; right: 5px; top: 5px; width: 20px; height: 20px; }
.mq__c.is-wrong .mq__mark { color: #B23A2E; }
.mq__c.is-right .mq__mark { color: #1F6B3A; }
.is-locked .mq__c { cursor: default; }
.mq__line { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.mq__field { flex: 1 1 200px; display: inline-flex; align-items: center; gap: 6px; min-height: 56px; padding: 0 14px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 2px rgba(30, 42, 90, .22); font: 800 22px/1 var(--font-display); }
.mq__field:focus-within { box-shadow: inset 0 0 0 3px var(--blue); }
.mq__in { flex: 1 1 auto; width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font: 800 22px/1 var(--font-display); color: var(--ink); }
.mq__in.is-right { color: #1F6B3A; }
.mq__unit { font: 700 16px/1 var(--font-body); color: var(--ink-2); white-space: nowrap; }
.mq__check { min-height: 56px; }
.mq[lang="ta"] .btn, .mq[lang="ta"] .mq__pill, .mq[lang="ta"] .mq__o { font-family: "Kuru Tamil", var(--font-body); }
.mq__help { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.mq__pill { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--paper); color: var(--ink); font: 800 16px/1.15 var(--font-body); box-shadow: inset 0 0 0 2px rgba(30, 42, 90, .14); }
.mq__pill--hint { background: var(--lemon); color: #5A3A06; box-shadow: inset 0 0 0 2px rgba(138, 74, 6, .2); }
.mq__pill[aria-disabled="true"] { opacity: .72; cursor: default; }
.mq__pips { display: inline-flex; gap: 4px; }
.mq__pips i { width: 10px; height: 10px; border-radius: 50%; background: rgba(90, 58, 6, .14); box-shadow: inset 0 0 0 1.5px rgba(90, 58, 6, .55); }
.mq__pips i.is-on { background: var(--sun-deep); box-shadow: none; }
.mq__hints { margin-top: 12px; display: grid; gap: 8px; }
.mq__hint { padding: 9px 14px 11px; border-radius: 12px; background: var(--lemon); }
.mq__hk { font: 800 15px/1.3 var(--font-body); color: #6B4500; }
.mq__result { margin-top: 14px; padding: 14px 16px 16px; border-radius: 14px; background: var(--mint); }
.mq__rh { display: flex; align-items: center; gap: 8px; font: 800 clamp(20px, 2vw, 24px)/1.25 var(--font-display); }
.mq[lang="ta"] .mq__rh { font-family: "Kuru Tamil", var(--font-display); }
.mq__tick { flex: none; width: 26px; height: 26px; color: #1F6B3A; }
.mq__why { margin-top: 6px; }
.mq__ans { margin-top: 6px; font-weight: 800; }
.mq__learned { margin-top: 4px; color: var(--ink-2); }
.mq__how { margin-top: 12px; }
.mq__ht { font: 800 18px/1.3 var(--font-display); }
.mq[lang="ta"] .mq__ht { font-family: "Kuru Tamil", var(--font-display); }
.mq__hopts { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.mq__o { min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--card); color: var(--ink); font: 700 16px/1.15 var(--font-body); box-shadow: inset 0 0 0 2px rgba(30, 42, 90, .14); }
.mq__o[aria-pressed="true"] { background: var(--blue); color: #fff; box-shadow: none; }
.mq__reply { margin-top: 8px; font-weight: 650; }
.mq__end { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.mq__end .btn { min-height: 48px; padding: 0 20px; font-size: 16px; }
.fr { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; margin: 0 .12em; font-size: .74em; line-height: 1.02; font-variant-numeric: tabular-nums; font-weight: 800; }
.fr > span:first-child { padding: 0 .18em .06em; border-bottom: .12em solid currentColor; }
.fr > span:last-child { padding-top: .06em; }
.fr--big { font: 800 26px/1 var(--font-display); }
.mq__cn .fr { font-size: .66em; }

/* the pictures come from visuals.js, exactly as in the app */
.v { display: block; margin: 0 auto; overflow: visible; }
.v text { font-family: var(--font-display); }
.v .v-t { font-weight: 700; fill: var(--ink); }
.v .v-n { font-weight: 800; fill: var(--ink); }
.v .v-s { font-family: var(--font-body); font-weight: 700; fill: var(--ink-2); }
.v .v-hi { fill: #A24E05; }
.v .v-ask { fill: #B05A00; font-weight: 800; }
.v .v-ok { fill: #1F6B3A; }
.v .v-no { fill: #B23A2E; }
.v .v-zero { fill: var(--blue); }
.v .v-on-dark { fill: #fff; }
.v .v-in { animation: v-in .46s var(--ease-settle) both; transform-box: fill-box; transform-origin: 50% 50%; }
.v-chip { width: 100%; height: auto; }
@keyframes v-in { from { opacity: 0; transform: translateY(6px) scale(.94); } }
@media (prefers-reduced-motion: no-preference) {
  .mq__say.is-new { animation: mq-say 260ms steps(3, end); }
  .mq__result.is-new, .mq__hint:last-child { animation: mq-rise 320ms var(--ease-settle) both; }
  .mq__in.is-shake { animation: mq-shake 300ms; }
}
@keyframes mq-say { from { transform: translateY(4px) scale(.98); } }
@keyframes mq-rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes mq-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* ---------- how Kuru teaches it: a real question, walked through */
.mw { position: relative; padding-block: clamp(56px, 7vw, 92px) clamp(52px, 6vw, 84px); }
.mw__head { max-width: 760px; }
.mw__lead { margin-top: 12px; font-size: var(--t-lead); line-height: 1.5; color: var(--ink); }
.mw__steps { margin-top: clamp(20px, 2.6vw, 32px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px clamp(16px, 2.4vw, 28px); align-items: start; }
.mw__step { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding: 16px 18px 18px; border-radius: 16px 18px 15px 14px / 18px 14px 18px 15px; background: var(--card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 1px 1px rgba(30, 60, 140, .22), 0 8px 16px -10px rgba(30, 60, 140, .4); }
.mw__step--ask { grid-row: span 4; }
.mw__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sun); font: 800 20px/1 var(--font-display); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 1px 1px rgba(90, 42, 0, .3); }
.mw__step h3 { margin-top: 7px; font-size: clamp(21px, 1.9vw, 25px); }
.mw__step p { margin-top: 6px; }
.mw__from { font: 700 var(--t-small)/1.4 var(--font-body); color: var(--ink-2); }
.mw__from a { display: inline-block; padding-block: 8px; font-weight: 800; color: var(--blue-deep); }
.mw__pic { margin-top: 8px; padding: 10px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px rgba(30, 42, 90, .08); }
.mw__pic .v { width: 100%; height: auto; max-height: 220px; }
.mw__q { font: 750 clamp(19px, 1.7vw, 22px)/1.35 var(--font-body); }
.mw__note { color: var(--ink-2); }
.mw__choices { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.mw__choices li { padding: 8px 15px; border-radius: 11px; background: var(--paper); box-shadow: inset 0 0 0 2px rgba(30, 42, 90, .12); font: 800 18px/1.25 var(--font-display); }
.mw__hints { margin-top: 6px; display: grid; gap: 4px; counter-reset: h; }
.mw__hints li { position: relative; padding-left: 30px; counter-increment: h; }
.mw__hints li::before { content: counter(h); position: absolute; left: 0; top: 2px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--lemon); font: 800 15px/1 var(--font-body); }
.mw__link { margin-top: 20px; }
.mw__link a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; color: var(--blue-deep); }
.mw__row { margin-top: clamp(20px, 2.6vw, 32px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.mw__row li { padding: 14px 16px 16px; border-radius: 16px 18px 15px 14px / 18px 14px 18px 15px; background: var(--card); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 1px 1px rgba(30, 60, 140, .22), 0 8px 16px -10px rgba(30, 60, 140, .4); }
.mw__row h3 { margin-top: 10px; font-size: 21px; }
.mw__row p { margin-top: 4px; }

/* ---------- links on: chips of paper */
.mm { position: relative; padding-block: clamp(40px, 5vw, 64px) clamp(68px, 8vw, 104px); }
.mm__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); }
.mm__h { font-size: clamp(23px, 2.2vw, 30px); line-height: 1.15; }
.mx-chips { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.mx-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border-radius: 12px; background: var(--card); color: var(--ink); text-decoration: none; font: 750 16px/1.2 var(--font-body);
  box-shadow: inset 0 1px 0 #FFF, 0 1px 1px rgba(90, 42, 0, .24), 0 5px 10px -7px rgba(90, 42, 0, .38); transition: translate var(--m-quick, 200ms) var(--m-settle, ease); }
@media (hover: hover) and (pointer: fine) { .mx-chip:hover { translate: 0 -2px; } }
.mx-chip[aria-current] { background: var(--sun); }
.mm__back { margin-top: 12px; }
.mm__back a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; color: var(--blue-deep); }

/* ---------- a board's classes, and the hub's boards */
.mk-sec { position: relative; padding-block: clamp(62px, 7vw, 92px) clamp(64px, 8vw, 110px); }
.mk-lead { margin-top: 10px; max-width: 70ch; }
.mk-grid { margin-top: clamp(18px, 2.2vw, 26px); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.mk { padding: 14px 18px 16px; border-radius: 16px 18px 15px 14px / 18px 14px 18px 15px; background: var(--card); box-shadow: inset 0 1px 0 #FFF, 0 1px 1px rgba(90, 42, 0, .24), 0 8px 16px -10px rgba(90, 42, 0, .36); }
.mk__h a { display: flex; align-items: center; gap: 12px; min-height: 48px; color: var(--ink); text-decoration: none; font-size: clamp(23px, 2vw, 27px); }
.mk__h a:hover span:last-child { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--sun); text-underline-offset: .12em; }
.mk__n { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--sun); font: 800 22px/1 var(--font-display); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 1px 1px rgba(90, 42, 0, .3); }
.mk__meta { margin-top: 6px; font: 700 15.5px/1.4 var(--font-body); color: var(--ink-2); }
.mk__ch { margin-top: 10px; font-size: var(--t-body); line-height: 1.45; }
.mk__ch a { color: var(--blue-deep); font-weight: 700; }
.mk-foot { margin-top: clamp(18px, 2vw, 24px); max-width: 76ch; }
.mb-grid { margin-top: clamp(18px, 2.2vw, 26px); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 14px; }
.mb-card { padding: 16px 18px 16px; border-radius: 16px 18px 15px 14px / 18px 14px 18px 15px; background: var(--card); box-shadow: inset 0 1px 0 #FFF, 0 1px 1px rgba(90, 42, 0, .24), 0 8px 16px -10px rgba(90, 42, 0, .36); }
.mb-card__h { font-size: clamp(21px, 1.9vw, 25px); line-height: 1.2; }
.mb-card__h a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--sun); text-underline-offset: .14em; }
.mb-card__meta { margin-top: 4px; font: 700 15.5px/1.4 var(--font-body); color: var(--ink-2); }
.mb-card__classes { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.mb-card__classes a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); color: var(--ink); text-decoration: none; font: 800 18px/1 var(--font-display);
  box-shadow: inset 0 0 0 1.5px rgba(30, 42, 90, .12); transition: background-color var(--m-quick, 200ms) var(--m-settle, ease); }
@media (hover: hover) and (pointer: fine) { .mb-card__classes a:hover { background: var(--sun); } }

/* ---------- questions on the hub */
.mq-sec { position: relative; padding-block: clamp(50px, 6vw, 80px) clamp(68px, 8vw, 104px); }
.mq-sec__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
.mq-sec__list { display: grid; gap: 10px; }
.mq-faq { border-radius: 14px 18px 16px 12px / 16px 12px 18px 14px; background: var(--card); box-shadow: inset 0 1px 0 #FFF, 0 1px 1px rgba(90, 42, 0, .24), 0 8px 14px -10px rgba(90, 42, 0, .36); }
.mq-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 62px; padding: 12px 16px 12px 20px; list-style: none; cursor: pointer; border-radius: inherit; }
.mq-faq summary::-webkit-details-marker { display: none; }
.mq-faq h3 { font: 800 clamp(18.5px, 1.45vw, 21px)/1.3 var(--font-display); }
.mq-faq__t { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--lemon); transition: transform 300ms var(--ease-settle); }
.mq-faq__t::before, .mq-faq__t::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 3px; margin: -1.5px 0 0 -7px; border-radius: 2px; background: var(--ink); }
.mq-faq__t::after { transform: rotate(90deg); }
.mq-faq[open] .mq-faq__t { transform: rotate(135deg); background: var(--sun); }
.mq-faq > div { padding: 0 20px 18px; }
.mq-faq p { max-width: 62ch; }

/* ---------- the closing block: shared "start" part, with Kuru in the window */
.mx-start__art { position: relative; justify-self: center; width: min(100%, 300px); aspect-ratio: 300 / 372; overflow: hidden; border-radius: 50% 50% 18px 22px / 36% 36% 18px 22px; background: #FFF4E4;
  box-shadow: inset 0 6px 16px rgba(30, 90, 60, .2), inset 0 0 0 5px rgba(255, 255, 255, .5), 0 1px 1.5px rgba(30, 90, 60, .3), 0 24px 40px -22px rgba(30, 90, 60, .5); }
.mx-start__kuru { position: absolute; left: 50%; bottom: -3%; width: 84%; max-width: none; translate: -50% 0; }
.mx-start .start__small a { color: var(--blue-deep); font-weight: 800; }
.mx-start { padding-block: clamp(56px, 7vw, 96px) clamp(72px, 9vw, 120px); }
.mx-start .start__h { font-size: clamp(30px, 3.6vw, 52px); }

/* ---------- smaller screens */
@media (max-width: 1099.98px) {
  .mc__row { grid-template-columns: 46px minmax(0, 1fr); }
  .mc__go { grid-column: 2; width: auto; margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
  .mc__try { flex: 0 0 auto; }
  .mw__row { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (max-width: 899.98px) {
  .mw__steps { grid-template-columns: minmax(0, 1fr); }
  .mw__step--ask { grid-row: auto; }
  .mm__grid, .mq-sec__in { grid-template-columns: minmax(0, 1fr); }
  .mq__choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mq__choices.is-wide { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 719.98px) {
  .mh__grid { grid-template-columns: minmax(0, 1fr) 118px; gap: 12px; }
  .mh__copy { display: contents; }
  .mb { grid-column: 1 / -1; margin-bottom: 0; }
  .mh h1 { grid-column: 1; align-self: center; font-size: clamp(30px, 8.4vw, 44px); }
  .mh__art { grid-column: 2; grid-row: 2; align-self: center; }
  .mh__lead, .mh__ta, .mh__facts, .mh__go { grid-column: 1 / -1; margin-top: 2px; }
  .mh__go .btn { flex: 1 1 auto; }
  .mc__row { grid-template-columns: 40px minmax(0, 1fr); column-gap: 10px; }
  .mc__n { width: 36px; height: 36px; font-size: 17px; }
  .mc__go { grid-column: 1 / -1; margin-top: 10px; }
  .mc__eg { margin-left: 0; }
  .mc__body { grid-column: 2; }
  .mc-sheet { padding-inline: 12px; }
  .mq__top { grid-template-columns: 46px minmax(0, 1fr); }
  .mq__kuru { width: 46px; height: 56px; }
  .mq__tools { grid-column: 1 / -1; justify-content: space-between; }
  .mw__step { grid-template-columns: minmax(0, 1fr); padding: 14px 14px 16px; }
  .mw__step h3 { margin-top: 0; }
  .mw__n { width: 34px; height: 34px; font-size: 17px; }
  .mx-start__art { width: 180px; }
}

/* While "Try one question" is open on a phone, the two corner helpers (Suri and the WhatsApp button, js/sections/_shared/)
   step aside, so they never sit on the panel's answers, hints or "I'm stuck"; they come back when the panel closes (try.js). */
@media (max-width: 760px) {
  html.mx-trying .pg .wa, html.mx-trying .suri:not(.is-open) { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility 0s linear .2s; }
}
