﻿/* page-school.css - the school page, carried verbatim from
   ctc-migration/design-preview/school-page-money-layout.html.
   Nothing here is authored: selectors, order and declarations are the
   mockup's own <style> block. The rules for the mockup's own masthead,
   footer and preview bar cannot match the live markup, because the live
   masthead and footer are the ones already built from the home-page
   mockup; they are kept so this file stays a 1:1 copy. */


/* ============ approved kitchen-table skin, reordered for affiliate income ============ */
:root {
  /* palette B: the colours chosen to fit the real logo */   --paper: #fffaf1; --paper-2: #fff6e6; --paper-3: #f6ecd9;   --ink: #2a2118; --ink-2: #5b4c3c; --ink-3: #8c7c69; --line: #e6d8c2;   --brand: #ffac00; --brand-2: #ffb601; --sun: #ffc93c; --accent: #ff9217;   --green: #005548; --green-2: #01483b; --grape: #4a3cae; --grape-2: #6a5ad6; --maroon: #620000;   --ok: #2f855a; --warn: #c9a227; --bad: #c0392b;   /* the names this page already uses, now pointing at the palette above */   --blue: #4a3cae; --blue-2: #005548;   --orange: #ff9217; --orange-2: #620000;   --kiwi: #2f855a; --banana: #ffc93c; --straw: #c0392b;   --score-col: var(--green); --on-band: #fffaf1; /* every bar reads --score-col; every filled chip reads --on-band */
  --display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --read: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --hand: "Caveat", "Segoe Script", cursive;
  --blob: 26px 32px 24px 36px / 34px 24px 38px 26px;
  --blob-2: 38px 22px 34px 20px / 22px 40px 20px 34px;
  --sticker: 5px 6px 0 rgba(74,60,174,.14);
  --wide: 78rem;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--read); font-size: 1.06rem; line-height: 1.68; padding-bottom: 1rem; }
body::before, body::after { content: ""; position: fixed; width: 46rem; height: 46rem; pointer-events: none; z-index: -1; opacity: .5; }
body::before { top: -18rem; right: -14rem; background: radial-gradient(circle at 50% 50%, rgba(255,201,60,.24), rgba(255,146,23,.11) 45%, transparent 70%); }
body::after { bottom: -22rem; left: -16rem; background: radial-gradient(circle at 50% 50%, rgba(74,60,174,.18), rgba(47,133,90,.10) 45%, transparent 70%); }
.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 1.25rem; }
a { color: inherit; }
.masthead { padding: 1.2rem 0 1rem; }
.masthead .row { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.logo svg { width: 42px; height: 42px; }
.logo .name { font-family: var(--display); font-weight: 700; font-size: 1.4rem; letter-spacing: -.015em; line-height: 1; }
.logo .name em { font-style: normal; color: var(--orange); }
.tagline { font-family: var(--hand); font-size: 1.05rem; color: var(--ink-2); margin-left: auto; transform: rotate(-1.4deg); }
nav.chips { display: flex; gap: .5rem; margin-top: 1rem; flex-wrap: wrap; }
nav.chips a { font-family: var(--display); font-weight: 500; font-size: .9rem; text-decoration: none; background: var(--paper-2); border: 2px solid var(--ink); padding: .35rem .9rem; border-radius: 999px; box-shadow: 3px 4px 0 rgba(42,33,24,.14); }
nav.chips a:nth-child(odd) { transform: rotate(-1deg); }
nav.chips a:nth-child(even) { transform: rotate(.9deg); }
nav.chips a:hover { background: var(--banana); transform: rotate(0) translateY(-2px); }
.wavyrule { display: block; width: 100%; height: 10px; margin-top: 1rem; color: var(--line); }
.crumbs { font-family: var(--display); font-size: .82rem; color: var(--ink-3); padding-top: 1rem; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline wavy var(--orange); }

/* ---------- hero: name on the left, the money block under it, score stamp on the right ---------- */
.hero { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: 2.2rem; align-items: start; padding: .3rem 0 0; }
.eyebrow { font-family: var(--display); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .3rem; }
h1.school-name { font-family: var(--display); font-weight: 700; font-size: clamp(2.8rem, 6.4vw, 4.9rem); line-height: .93; letter-spacing: -.04em; margin: 0 0 .35rem; }
h1.school-name .tail { color: var(--orange); }
.where { font-family: var(--display); font-size: .95rem; color: var(--ink-2); margin: 0 0 .8rem; }
.fruitchips { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .9rem; }
.fruitchips span { font-family: var(--display); font-size: .76rem; border: 2px solid var(--ink); border-radius: 999px; padding: .2rem .7rem; background: #ffffff; }
.fruitchips .k { background: var(--kiwi); color: #fff; } .fruitchips .o { background: var(--banana); }
.verdict { font-size: 1.12rem; margin: 0 0 1.2rem; max-width: 34rem; }
.verdict u { text-decoration: underline wavy var(--banana); text-decoration-thickness: 4px; text-underline-offset: 4px; }

/* the money block, above the fold */
.buybox { position: relative; border: 3px solid var(--ink); border-radius: var(--blob); background: #ffffff; box-shadow: var(--sticker); padding: 1.15rem 1.25rem 1.25rem; transform: rotate(-.5deg); }
.buybox::before { content: ""; position: absolute; inset: 6px; border: 2px dashed rgba(42,33,24,.16); border-radius: var(--blob-2); pointer-events: none; }
.buyrow { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.pricewrap { line-height: 1; }
.price { font-family: var(--display); font-weight: 700; font-size: 2.9rem; letter-spacing: -.04em; color: var(--orange-2); margin: 0; }
.price small { font-size: .95rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.pricenote { font-family: var(--hand); font-size: 1.15rem; color: var(--ink-2); margin: .15rem 0 0; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: .45rem; font-family: var(--display); font-weight: 600; font-size: 1.02rem; text-decoration: none; cursor: pointer; background: var(--orange); color: #ffffff; border: 3px solid var(--ink); border-radius: 999px; padding: .8rem 1.3rem; box-shadow: 5px 6px 0 var(--blue); transform: rotate(-1deg); transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: rotate(0) translate(-2px,-3px); box-shadow: 8px 10px 0 var(--blue); }
.btn:active { transform: translate(2px,3px); box-shadow: 2px 2px 0 var(--blue); }
.btn.k { background: var(--kiwi); box-shadow: 5px 6px 0 var(--blue-2); }
.btn.s { font-size: .9rem; padding: .55rem 1rem; box-shadow: 4px 5px 0 var(--blue); }
.disclose { font-family: var(--display); font-size: .82rem; color: var(--ink-2); margin: .55rem 0 0; }
.buybox .disclose { max-width: 26rem; }
.disclose a { text-decoration: underline; }
.buyrow .btn { margin-left: auto; }
@media (max-width: 640px) { .buyrow .btn { margin-left: 0; width: 100%; } }
/* where this price sits against everything we list */
.pbar { margin-top: 1rem; }
.pbar .track { position: relative; height: 16px; border: 2px solid var(--ink); border-radius: 999px; background: #fff6e6; overflow: hidden; }
/* the school page carries one class and every bar changes colour with the score.
   these are the bands the rating guide publishes: 9.0 and up green Â· 8.0 to 8.9 yellow
   Â· 7.0 to 7.9 orange Â· under 7.0 red.  --on-band is the text colour that stays
   readable on top of each fill.  both sets of numbers live in the rating settings. */
.score-hi { --score-col: var(--green); --on-band: #fffaf1; }
.score-mid { --score-col: var(--warn); --on-band: var(--ink); }
.score-low { --score-col: var(--accent); --on-band: var(--ink); }
.score-bad { --score-col: var(--bad); --on-band: #fffaf1; }
.pbar .fill { position: absolute; inset: 0 auto 0 0; width: 56%; background: var(--score-col); animation: pour 1.1s .25s cubic-bezier(.22,.9,.25,1) both; }
@keyframes pour { from { width: 0; } to { width: 56%; } }
.pbar .mark { position: absolute; top: -7px; left: 56%; width: 4px; height: 30px; background: var(--ink); border-radius: 2px; }
.pbar .ends { display: flex; justify-content: space-between; font-family: var(--display); font-size: .74rem; color: var(--ink-3); margin-top: .45rem; }
.pbar .claim { font-family: var(--hand); font-size: 1.2rem; color: var(--blue); margin: .35rem 0 0; transform: rotate(-.6deg); }

/* score stamp block */
.slab { position: relative; background: #ffffff; border: 3px solid var(--ink); border-radius: 36px 28px 32px 24px / 28px 36px 24px 32px; box-shadow: var(--sticker); padding: 1.3rem 1.3rem 1.1rem; transform: rotate(1.1deg); }
.slab:hover { transform: rotate(0) translateY(-3px); }
.stamprow { display: flex; align-items: center; gap: 1rem; }
.jarrings { position: relative; width: 7.6rem; height: 7.6rem; flex: none; }
.jarrings svg { width: 100%; height: 100%; }
.jarrings .num { position: absolute; inset: 0; display: grid; place-content: center; font-family: var(--display); font-weight: 700; font-size: 2.35rem; line-height: 1; }
.jarrings .num small { display: block; font-size: .62rem; font-weight: 500; letter-spacing: .08em; color: rgba(255,255,255,.85); text-transform: uppercase; margin-top: .2rem; }
.band { display: inline-block; font-family: var(--display); font-weight: 600; background: var(--score-col); color: var(--on-band); border: 2px solid var(--ink); border-radius: 999px; padding: .2rem .8rem; transform: rotate(-2deg); margin: 0 0 .4rem; }
.how { font-family: var(--display); font-size: .8rem; color: var(--ink-2); margin: 0; }
.how a { color: var(--blue-2); }
.jars { display: grid; gap: .4rem; margin-top: 1rem; }
.jar { display: grid; grid-template-columns: 7rem 1fr 2.4rem; align-items: center; gap: .6rem; font-family: var(--display); font-size: .8rem; color: var(--ink-2); }
.jar .meter { height: 17px; border: 2px solid var(--ink); border-radius: 999px; background: #fff6e6; overflow: hidden; }
.jar .meter span { display: block; height: 100%; background: var(--score-col); animation: pour2 .9s .1s cubic-bezier(.22,.9,.25,1) both; }
@keyframes pour2 { from { width: 0; } to { width: var(--w, 90%); } }
.jar.hi .meter span { background: var(--green); }
.jar.mid .meter span { background: var(--warn); }
.jar.low .meter span { background: var(--accent); }
.jar.bad .meter span { background: var(--bad); }
.jar .v { text-align: right; font-weight: 700; font-size: .96rem; color: var(--ink); }
.note { font-family: var(--hand); font-size: 1.15rem; color: var(--blue); margin: .8rem 0 0; transform: rotate(-1.4deg); }
.note svg { width: 3.2rem; height: 1.6rem; vertical-align: -8px; color: var(--orange); }

/* ---------- main reading column + sidebar ---------- */
.layout { display: grid; grid-template-columns: minmax(0,1fr) 21rem; gap: 2.6rem; align-items: start; margin-top: 2.6rem; }
.prose { max-width: 40rem; }
.prose > p { margin: 0 0 1.2rem; }
.doodlelead { float: left; font-family: var(--display); font-weight: 700; font-size: 3.3em; line-height: .78; padding: .06em .08em 0 0; color: var(--orange); }
.prose h2 { font-family: var(--display); font-weight: 600; font-size: 1.8rem; letter-spacing: -.02em; margin: 2rem 0 .6rem; }
.prose h2 span { background: linear-gradient(transparent 62%, rgba(255,201,60,.6) 62% 92%, transparent 92%); }
.prose h3 { font-family: var(--display); font-weight: 600; font-size: 1.14rem; color: var(--blue-2); margin: 1.6rem 0 .4rem; }
.prose a.autolink { color: var(--blue-2); text-decoration: underline wavy var(--orange); text-underline-offset: 4px; font-weight: 600; }
.prose a.autolink:hover { background: rgba(255,201,60,.5); }
.pull { margin: 1.9rem 0; padding: 1.05rem 1.25rem; background: var(--paper-3); border: 2px solid var(--ink); border-radius: var(--blob); font-family: var(--display); font-weight: 500; font-size: 1.25rem; line-height: 1.45; box-shadow: var(--sticker); transform: rotate(-.7deg); }
.boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin: 1.7rem 0; }
.box { border: 2px solid var(--ink); border-radius: var(--blob-2); padding: 1rem 1.1rem; background: #ffffff; }
.box.pro { background: rgba(47,133,90,.10); border-color: var(--ok); transform: rotate(-.8deg); }
.box.con { background: rgba(192,57,43,.08); border-color: var(--bad); transform: rotate(.7deg); }
.box h4 { font-family: var(--hand); font-size: 1.3rem; margin: 0 0 .3rem; }
.box.pro h4 { color: var(--green); } .box.con h4 { color: var(--bad); }
.box ul { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.box li { padding: .45rem 0 .45rem 1.4rem; border-bottom: 2px dotted rgba(42,33,24,.18); position: relative; }
.box li:last-child { border-bottom: 0; }
.box.pro li::before { content: "\2713"; position: absolute; left: 0; font-family: var(--display); font-weight: 700; color: var(--kiwi); }
.box.con li::before { content: "\2717"; position: absolute; left: 0; font-family: var(--display); font-weight: 700; color: var(--straw); }

aside.side { position: sticky; top: 1rem; }
.card { position: relative; background: #ffffff; border: 2px solid var(--ink); border-radius: var(--blob); box-shadow: var(--sticker); padding: 1.1rem 1.2rem 1.2rem; margin-bottom: 1.3rem; }
.card:nth-child(odd) { transform: rotate(.9deg); } .card:nth-child(even) { transform: rotate(-.9deg); }
.card:hover { transform: rotate(0) translateY(-2px); }
.card h4 { font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; margin: 0 0 .5rem; }
.facts { margin: 0; }
.facts > div { display: grid; grid-template-columns: 5.6rem 1fr; gap: .5rem; padding: .45rem 0; border-bottom: 2px dotted rgba(42,33,24,.18); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { font-family: var(--display); font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.facts dd { margin: 0; font-size: .92rem; }
.slice { height: 17px; border: 2px solid var(--ink); border-radius: 999px; background: #fff6e6; overflow: hidden; margin-bottom: .4rem; }
.slice .seg { display: block; height: 100%; background: var(--green); }
.slice.y .seg { background: var(--warn); }
.slice.r .seg { background: var(--bad); }
.accrow { display: flex; justify-content: space-between; font-family: var(--display); font-size: .78rem; color: var(--ink-2); margin: 0 0 .6rem; }
.acc { list-style: none; margin: 0; padding: 0; }
.acc li { display: grid; grid-template-columns: 1.9rem 1fr; gap: .5rem; padding: .5rem 0; border-bottom: 2px dotted rgba(42,33,24,.18); font-size: .88rem; }
.acc li:last-child { border-bottom: 0; }
.acc .sc { font-family: var(--display); font-weight: 700; font-size: .78rem; display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--kiwi); color: #fff; border: 2px solid var(--ink); }
.acc b { font-family: var(--display); font-size: .92rem; }
.acc p { margin: .1rem 0 0; color: var(--ink-2); font-size: .84rem; grid-column: 2; }
.side .minlink { display: block; font-family: var(--hand); font-size: 1.15rem; color: var(--blue); margin-top: .6rem; }

/* ---------- the compare band: three chances to click, all from the database ---------- */
.compare { margin: 3rem 0 0; }
.sect { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -.03em; margin: 0 0 .2rem; }
.sect .o { color: var(--orange); } .sect .b { color: var(--blue); } .sect .k { color: var(--kiwi); }
.sectnote { font-family: var(--hand); font-size: 1.25rem; color: var(--ink-2); margin: 0 0 1.3rem; transform: rotate(-.8deg); }
.alts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.3rem; }
.alt { position: relative; border: 2px solid var(--ink); border-radius: var(--blob-2); background: #ffffff; box-shadow: var(--sticker); padding: 1.4rem 1.15rem 1.15rem; }
.alt::before { content: ""; position: absolute; top: -.65rem; left: 50%; width: 5.2rem; height: 1.3rem; background: rgba(255,255,255,.55); border: 1px solid rgba(42,33,24,.18); transform: translateX(-50%) rotate(-2deg); }
.alt:nth-child(1) { transform: rotate(-1.3deg); } .alt:nth-child(2) { transform: rotate(1.1deg); } .alt:nth-child(3) { transform: rotate(-.7deg); }
.alt:hover { transform: rotate(0) translateY(-4px); }
.alt h3 { font-family: var(--display); font-weight: 600; font-size: 1.16rem; margin: .15rem 0 .1rem; line-height: 1.25; }
.alt h3 a { text-decoration: none; } .alt h3 a:hover { text-decoration: underline wavy var(--orange); text-underline-offset: 4px; }
.alt .why { font-size: .9rem; color: var(--ink-2); margin: 0 0 .8rem; }
.alt .line { display: flex; align-items: center; gap: .6rem; margin: 0 0 .8rem; }
.stampdot { display: inline-grid; place-items: center; width: 3.1rem; height: 3.1rem; border-radius: 50%; border: 3px solid var(--ink); background: var(--green); color: #fffaf1; font-family: var(--display); font-weight: 700; font-size: 1.05rem; transform: rotate(-3deg); box-shadow: 2px 3px 0 rgba(42,33,24,.2), inset 0 0 0 3px rgba(255,255,255,.5); }
/* each row in the comparison table carries the band of the school it lists, not of the page */
.scorecell.mid .stampdot { background: var(--warn); color: var(--ink); }
.scorecell.low .stampdot { background: var(--accent); color: var(--ink); }
.scorecell.bad .stampdot { background: var(--bad); color: #fffaf1; }
.alt .cost { font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--orange-2); margin: 0; }

/* ---------- reviews, kept below the money ---------- */
.reviews { margin: 3.4rem 0 0; }
.revgrid { display: grid; grid-template-columns: minmax(0,20rem) minmax(0,1fr); gap: 1.8rem; align-items: start; }
.stickynote { background: var(--banana); border: 2px solid var(--ink); border-radius: 4px; padding: 1rem 1.15rem; box-shadow: var(--sticker); transform: rotate(-.8deg); font-size: .95rem; margin: 0 0 1.2rem; }
.bigstars { font-family: var(--display); font-weight: 700; font-size: 3rem; letter-spacing: -.04em; margin: 0; }
.stars { color: var(--orange); }
.dist { display: grid; grid-template-columns: 3rem 1fr 1.6rem; gap: .5rem .6rem; align-items: center; font-family: var(--display); font-size: .76rem; color: var(--ink-2); margin-top: .5rem; }
.dist .b { height: 12px; border: 2px solid var(--ink); border-radius: 999px; background: #fff6e6; overflow: hidden; }
.dist .b span { display: block; height: 100%; background: var(--ink-3); }
.dist .b.s5 span, .dist .b.s4 span { background: var(--green); }
.dist .b.s3 span { background: var(--warn); }
.dist .b.s2 span { background: var(--accent); }
.dist .b.s1 span { background: var(--bad); }
.form { background: #ffffff; border: 2px solid var(--ink); border-radius: var(--blob); box-shadow: var(--sticker); padding: 1.2rem 1.3rem; }
.lab { font-family: var(--display); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .3rem; }
.pick { display: flex; gap: .2rem; font-size: 1.6rem; margin: 0 0 1rem; color: var(--orange); }
.pick .off { color: var(--line); }
.form textarea { width: 100%; min-height: 6.5rem; font-family: var(--read); font-size: 1rem; border: 2px dashed var(--blue); border-radius: 14px 20px 14px 22px / 20px 14px 22px 14px; background: #fff; padding: .7rem .8rem; margin-bottom: .9rem; }

/* ---------- compact master list on the school page ---------- */
.listwrap { margin: 3.4rem 0 0; }
.tablecard { border: 3px solid var(--ink); border-radius: 30px 22px 26px 20px / 22px 28px 20px 30px; box-shadow: 7px 9px 0 rgba(42,33,24,.15); overflow: hidden; transform: rotate(-.45deg); }
.tablecard:hover { transform: rotate(0); }
table.rank { width: 100%; border-collapse: collapse; }
table.rank thead th { font-family: var(--hand); font-weight: 700; font-size: 1.2rem; text-align: left; color: var(--green-2); border-bottom: 3px solid var(--ink); padding: .7rem .7rem; }
table.rank thead th:nth-child(2) { transform: rotate(-1.5deg); } table.rank thead th:nth-child(4) { transform: rotate(1.3deg); }
table.rank td { padding: .9rem .7rem; border-bottom: 2px dotted rgba(42,33,24,.22); font-size: .94rem; vertical-align: middle; }
table.rank tbody tr:nth-child(4n+1) td { background: rgba(74,60,174,.07); }
table.rank tbody tr:nth-child(4n+3) td { background: rgba(255,201,60,.19); }
table.rank tbody tr:hover td { background: rgba(255,201,60,.42); }
.nm a { font-family: var(--display); font-weight: 600; text-decoration: none; } .nm a:hover { text-decoration: underline wavy var(--orange); text-underline-offset: 3px; }
.money b { font-family: var(--display); font-size: 1.25rem; } .money .cheap { color: var(--green); }
.scorecell { display: flex; align-items: center; gap: .55rem; }
.word { font-family: var(--hand); font-size: 1.1rem; color: var(--ink-2); }
.accmini { display: block; width: 3.4rem; height: 12px; border: 2px solid var(--ink); border-radius: 999px; background: #fff6e6; overflow: hidden; }
.accmini span { display: block; height: 100%; background: var(--green); }
.accmini.y span { background: var(--warn); }
.accmini.r span { background: var(--bad); }
.gonow { font-family: var(--display); font-size: .8rem; text-decoration: none; border: 2px solid var(--ink); border-radius: 999px; padding: .3rem .7rem; background: var(--paper-2); white-space: nowrap; }
.gonow:hover { background: var(--orange); color: #ffffff; }
.morelink { font-family: var(--hand); font-size: 1.25rem; color: var(--blue); display: inline-block; margin-top: .8rem; }

/* blog trio */
.blog { margin: 3.4rem 0 0; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.3rem; }
.pcard { position: relative; background: #ffffff; border: 2px solid var(--ink); border-radius: var(--blob-2); padding: 1.5rem 1.15rem 1.15rem; box-shadow: var(--sticker); }
.pcard:nth-child(odd) { transform: rotate(-1.3deg); } .pcard:nth-child(even) { transform: rotate(1.1deg); }
.pcard:hover { transform: rotate(0) translateY(-4px); }
.pcard::before { content: ""; position: absolute; top: -.7rem; left: 50%; width: 5.5rem; height: 1.4rem; background: rgba(255,255,255,.55); border: 1px solid rgba(42,33,24,.18); transform: translateX(-50%) rotate(-2deg); }
.pcard .cat { font-family: var(--hand); font-size: 1.05rem; color: var(--kiwi); margin: 0; }
.pcard h3 { font-family: var(--display); font-weight: 600; font-size: 1.1rem; line-height: 1.28; margin: .15rem 0 .4rem; }
.pcard h3 a { text-decoration: none; } .pcard h3 a:hover { text-decoration: underline wavy var(--orange); text-underline-offset: 4px; }
.pcard .m { font-family: var(--display); font-size: .76rem; color: var(--ink-3); margin: 0; }

/* closing band: one affiliate button, nothing competing */
.closer { margin: 3.6rem 0 0; padding: 1.7rem 1.8rem; background: var(--ink); color: #f2ece2; border-radius: 30px 22px 26px 20px / 22px 28px 20px 30px; box-shadow: 7px 9px 0 rgba(42,33,24,.18); display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 1.4rem; align-items: center; }
.closer h3 { font-family: var(--display); font-weight: 600; font-size: 1.6rem; margin: 0 0 .3rem; letter-spacing: -.02em; }
.closer h3 em { font-style: normal; color: var(--banana); }
.closer p { margin: 0; font-size: .95rem; color: rgba(242,236,226,.85); }
.closer .disclose { color: rgba(242,236,226,.7); margin-top: .5rem; }

/* the bar that follows the reader down: appears only once the hero button is out of sight */
.floatcta { position: fixed; left: 50%; bottom: 1.1rem; transform: translate(-50%,3rem); opacity: 0; pointer-events: none; z-index: 40; display: flex; align-items: center; gap: .9rem; background: #ffffff; border: 3px solid var(--ink); border-radius: 999px; box-shadow: 6px 8px 0 rgba(42,33,24,.22); padding: .55rem .8rem .55rem 1.3rem; transition: transform .25s cubic-bezier(.22,.9,.25,1), opacity .25s ease; }
.floatcta.on { transform: translate(-50%,0); opacity: 1; pointer-events: auto; }
.floatcta .who { font-family: var(--display); font-weight: 600; font-size: .95rem; margin: 0; }
.floatcta .cp { font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--orange-2); margin: 0; }
/* phone bar, hidden on desktop unless you switch it on with the button bottom right */
.mbar { display: none; }
body.showphone .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; align-items: center; gap: .8rem; background: var(--ink); color: #fffaf1; border-top: 3px solid var(--ink); padding: .7rem 1rem; }
.mbar .nm2 { font-family: var(--display); font-size: .85rem; line-height: 1.2; }
.mbar .pr { font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--banana); }
.mbar .btn { margin-left: auto; padding: .6rem 1rem; font-size: .95rem; }

footer.site { margin-top: 4rem; background: var(--ink); color: #f2ece2; border-radius: 24px 24px 0 0; padding: 1.8rem 0 2.4rem; }
footer.site .cols { display: flex; gap: 2rem; flex-wrap: wrap; align-items: center; font-family: var(--display); font-size: .86rem; }
footer.site a { color: #fffaf1; text-decoration: none; border-bottom: 2px dotted rgba(255,250,241,.4); }
footer.site a:hover { border-bottom-color: var(--banana); color: var(--banana); }
footer.site .fine { margin-left: auto; color: rgba(242,236,226,.72); font-size: .78rem; }
.fruitdots { display: flex; gap: .5rem; margin-top: 1.2rem; }
.fruitdots i { width: 10px; height: 10px; border-radius: 50%; display: block; }

.switch { position: fixed; right: 1rem; bottom: 1rem; display: flex; gap: .5rem; z-index: 50; }
.switch button { font-family: var(--display); font-size: .78rem; padding: .5rem .85rem; border-radius: 999px; cursor: pointer; border: 2px solid var(--ink); background: #ffffff; color: var(--ink); box-shadow: 3px 4px 0 rgba(42,33,24,.2); }
.notes { position: fixed; right: 1rem; bottom: 3.4rem; width: min(26rem, calc(100vw - 2rem)); max-height: 64vh; overflow: auto; background: #ffffff; border: 2px solid var(--ink); border-radius: var(--blob); box-shadow: var(--sticker); padding: 1.1rem 1.2rem; font-size: .84rem; z-index: 50; }
.notes h4 { font-family: var(--display); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .5rem; }
.notes ul { margin: 0 0 1rem; padding-left: 1.1rem; }
.notes li { margin-bottom: .45rem; color: var(--ink-2); }
.flag { background: var(--ink); color: #fffaf1; font-family: var(--display); font-size: .78rem; text-align: center; padding: .5rem .8rem; }
body.calm *, body.calm *::before, body.calm *::after { animation: none !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 940px) {
  .hero, .layout, .alts, .revgrid, .cards, .boxes, .closer { grid-template-columns: 1fr; }
  aside.side { position: static; }
  .floatcta { display: none; }
}
@media (max-width: 640px) { .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; align-items: center; gap: .8rem; background: var(--ink); color: #fffaf1; border-top: 3px solid var(--ink); padding: .7rem 1rem; } .mbar .btn { margin-left: auto; padding: .6rem 1rem; font-size: .95rem; } .mbar .nm2 { font-family: var(--display); font-size: .85rem; } .mbar .pr { font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--banana); } body { padding-bottom: 5rem; } }



/* ---------------------------------------------------------------------------
 * The review cards. The school mockup prints no review list, so the list takes its
 * design from the reviews page mockup (design-preview/reviews-page-preview.html,
 * rules at its lines 107-122 and 190-194) and from nothing else. Every rule below
 * is copied from there unchanged. Every custom property they use (--ink, --ink-2,
 * --ink-3, --display, --hand, --blue-2, --orange, --kiwi, --banana, --blob,
 * --sticker) is already defined by this sheet above, so the cards come out in this
 * page's palette.
 * Not copied: the .band / .layout / .strip terms of that file's line 177 rule,
 * because this sheet already sets those for this page. .rev.wide is copied even
 * though nothing in the data marks one review as featured.
 * ------------------------------------------------------------------------- */
.revwrap { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.5rem; }
.rev { position: relative; background: #ffffff; border: 2px solid var(--ink); border-radius: var(--blob); padding: 1.5rem 1.25rem 1.2rem; box-shadow: var(--sticker); }
.rev:nth-child(odd) { transform: rotate(-.9deg); } .rev:nth-child(even) { transform: rotate(.75deg); }
.rev:hover { transform: rotate(0) translateY(-3px); }
.rev::before { content: ""; position: absolute; top: -.7rem; left: 1.8rem; width: 5rem; height: 1.35rem; background: rgba(255,255,255,.55); border: 1px solid rgba(42,33,24,.18); transform: rotate(-3deg); }
.rev .stars { font-size: 1.35rem; margin: 0; }
.rev h3 { font-family: var(--display); font-weight: 600; font-size: 1.1rem; margin: .35rem 0 .1rem; }
.rev h3 a { text-decoration: none; color: var(--blue-2); }
.rev h3 a:hover { text-decoration: underline wavy var(--orange); text-underline-offset: 4px; }
.rev .about { font-family: var(--display); font-size: .78rem; color: var(--ink-3); margin: 0 0 .7rem; }
.rev .txt { font-size: .99rem; margin: 0 0 .9rem; }
.rev .txt b { background: rgba(255,201,60,.55); }
.rev .sign { display: flex; align-items: center; gap: .5rem; font-family: var(--hand); font-size: 1.15rem; color: var(--ink-2); border-top: 2px dotted rgba(42,33,24,.22); padding-top: .7rem; }
.rev .sign .chip { font-family: var(--display); font-size: .7rem; letter-spacing: .04em; background: var(--kiwi); color: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: .1rem .55rem; text-transform: uppercase; }
.rev.wide { grid-column: 1 / -1; background: var(--banana); }
.rev.wide .txt { font-family: var(--display); font-weight: 500; font-size: 1.18rem; line-height: 1.5; }
@media (max-width: 900px) {
  .revwrap { grid-template-columns: 1fr; gap: 1.1rem; }
  .rev { padding: 1.2rem 1rem 1.05rem; }
  .rev .txt { font-size: .95rem; }
  .rev.wide .txt { font-size: 1.02rem; }
  .rev::before { left: 1.1rem; width: 4rem; }
}
