/* School MDM — "Charging trolley": slate shelves, school-pencil yellow, sky blue, charge-light green.
   Motif: a tidy grid of device slots (header/footer shelf strips), device-tile cards with a bezel and charge light,
   decorative asset-tag strips, and numbered "slots" for the guides.
   Fonts: Montserrat (headings) + Open Sans (text), self-hosted, SIL OFL (see /assets/fonts/OFL.txt). */
@font-face { font-family: "Montserrat"; src: url(/assets/fonts/montserrat.woff2) format("woff2"); font-weight: 500 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url(/assets/fonts/opensans.woff2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url(/assets/fonts/opensans-italic.woff2) format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --slate-900: #1E2A36; --slate-800: #2C3A48; --slate-700: #3B4B5C; --slate-500: #5B7088; --slate-300: #A9B8C7;
  --sky: #2F8FD8; --sky-ink: #1A65A3; --sky-tint: #E3F1FC; --sky-soft: #BFDDF5;
  --pencil: #F6C026; --pencil-hi: #FFD95A; --pencil-ink: #6B4E00;
  --led: #2DBE6C; --led-amber: #F0A202;
  --paper: #F4F7FA; --card: #FFFFFF; --line: #D3DDE7; --line-2: #E6EDF3;
  --ink: #17212B; --muted: #4A5866;
  --display: "Montserrat", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --text: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --wrap: 1180px; --radius: 12px; --focus: #1A65A3;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--text); overflow-wrap: anywhere; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--sky-ink); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: var(--slate-900); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.2; color: var(--slate-900); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 4.2vw, 2.8rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--pencil); color: var(--slate-900); padding: 10px 16px; font-weight: 700; border-radius: 8px; }
.skip:focus { top: 12px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; vertical-align: -.2em; flex: none; }
.small { font-size: .92rem; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92em; }

/* charge light */
.led { display: inline-block; width: .6em; height: .6em; border-radius: 50%; background: var(--led); box-shadow: 0 0 0 2px rgba(45,190,108,.25); vertical-align: .05em; flex: none; }
.led-off { background: var(--slate-300); box-shadow: none; }

/* ---------- header with the trolley "shelf" strip */
.site-head { background: var(--slate-900); color: #fff; }
.head-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-mark { flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.01em; }
.brand-name b, .foot-name b { color: var(--pencil); font-weight: 800; }
.brand-sub { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sky-soft); margin-top: 4px; font-weight: 600; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 8px 13px; color: #fff; text-decoration: none; font-weight: 600; font-size: .98rem; border-radius: 8px; border: 1px solid transparent; }
.site-nav a:hover { background: var(--slate-700); color: #fff; }
.site-nav a[aria-current] { background: var(--pencil); color: var(--slate-900); }
.site-nav a:focus-visible { outline-color: var(--pencil); }
.shelf { height: 22px; background-color: var(--slate-800);
  background-image:
    radial-gradient(circle at 15px 16px, var(--led) 0 2.2px, transparent 2.6px),
    linear-gradient(90deg, transparent 0 6px, var(--slate-700) 6px 24px, transparent 24px 30px);
  background-size: 30px 22px, 30px 12px; background-repeat: repeat-x; background-position: 0 0, 0 2px;
  border-bottom: 4px solid var(--pencil); }
.shelf-thin { height: 14px; background-size: 30px 14px, 30px 8px; background-image: linear-gradient(90deg, transparent 0 6px, var(--slate-700) 6px 24px, transparent 24px 30px); border-bottom: 0; border-top: 4px solid var(--pencil); }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 18px; border-radius: 10px; font-weight: 700; text-decoration: none; line-height: 1.2; font-family: var(--display); font-size: .98rem; border: 2px solid transparent; }
.btn-pencil { background: var(--pencil); color: var(--slate-900); border-color: var(--pencil); box-shadow: inset 0 -3px 0 rgba(0,0,0,.12); }
.btn-pencil:hover { background: var(--pencil-hi); color: var(--slate-900); }
.btn-ghost { color: #fff; border-color: var(--sky-soft); }
.btn-ghost:hover { background: var(--slate-700); color: #fff; }
.btn-amz { background: var(--pencil); color: var(--slate-900); border-color: var(--pencil); }
.btn-amz:hover { background: var(--pencil-hi); color: var(--slate-900); }
.btn-line { background: var(--card); color: var(--slate-900); border-color: var(--slate-700); }
.btn-line:hover { background: var(--slate-900); color: #fff; }
.btn.big { min-height: 52px; font-size: 1.05rem; width: 100%; }
.more { font-weight: 700; font-family: var(--display); }

/* ---------- hero */
.hero { background: var(--slate-900); color: #fff; padding: 26px 0 44px;
  background-image: radial-gradient(circle at 1px 1px, rgba(191,221,245,.10) 1px, transparent 1.4px); background-size: 22px 22px; }
.hero-in { display: grid; gap: 22px; align-items: center; }
.hero-in > * { min-width: 0; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--pencil); }
.kicker { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-700); margin-bottom: .7em; }
.hero .kicker { color: var(--sky-soft); }
.lede { font-size: 1.14rem; max-width: 46rem; }
.hero .lede { color: #E8EEF4; }
.hero-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.3em; }
.hero-art { display: none; justify-self: center; }
@media (min-width: 860px) { .hero-in { grid-template-columns: 1.45fr 1fr; } .hero-art { display: block; } .hero { padding: 44px 0 60px; } }

/* ---------- sections */
.band { padding-top: 36px; padding-bottom: 12px; }
.band-tint { background: var(--sky-tint); border-top: 1px solid var(--sky-soft); border-bottom: 1px solid var(--sky-soft); padding-bottom: 28px; margin-top: 28px; margin-bottom: 8px; }
.sec-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* the pencil rule after section headings: yellow body, wood cone, graphite tip */
.sec-h::after { content: ""; flex: 1 1 60px; max-width: 220px; height: 10px; margin-left: 6px;
  background: linear-gradient(90deg, var(--pencil) 0 calc(100% - 22px), #E9C79A calc(100% - 22px) calc(100% - 7px), var(--slate-900) calc(100% - 7px));
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%); border-radius: 2px 0 0 2px; }
.sec-intro { max-width: 46rem; color: var(--muted); }
.sec-ic, .h-ic { display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 8px; background: var(--slate-900); color: var(--pencil); }
.h-ic { width: 1.25em; height: 1.25em; vertical-align: -.15em; }
.h-ic .icon { width: .8em; height: .8em; }
.page { padding-top: 22px; padding-bottom: 40px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.empty { padding: 18px; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); }

/* guide "slots" (numbered, like bays in a trolley) */
.slots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 12px; }
.slot { display: flex; gap: 14px; align-items: flex-start; height: 100%; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; box-shadow: 0 2px 0 var(--line-2); }
.slot:hover { border-color: var(--sky); color: var(--ink); }
.slot-n { flex: none; display: grid; place-items: center; width: 46px; height: 58px; border-radius: 8px; background: var(--slate-900); color: var(--pencil); font: 800 1.1rem/1 var(--display); position: relative; }
.slot-n::after { content: ""; position: absolute; bottom: 7px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--led); }
.slot-txt strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1.06rem; color: var(--slate-900); margin-bottom: 3px; }
.slot-txt span { font-size: .95rem; color: var(--muted); }
/* a slot with a photo: the photo fills the top of the card like a screen, the numbered "bay" docks onto its lower edge,
   and the photo credit sits under the card (outside the link) */
.slots > li { display: flex; flex-direction: column; min-width: 0; }
.slots > li > .slot { flex: 1 1 auto; height: auto; }
.slot-photo { flex-wrap: wrap; overflow: hidden; padding-top: 0; }
.slot-img { flex: 0 0 calc(100% + 32px); margin: 0 -16px; aspect-ratio: 16 / 9; background: var(--slate-800); border-bottom: 4px solid var(--slate-900); }
.slot-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .slot-img { aspect-ratio: 2 / 1; } }
.slot-photo .slot-n { margin-top: -40px; box-shadow: 0 0 0 3px var(--card); }
.slot-photo .slot-txt { flex: 1 1 0; min-width: 0; }
.slot-credit { margin: 5px 6px 0; font-size: .78rem; line-height: 1.4; color: var(--muted); }

/* DfE fact band */
.dfe-grid { display: grid; gap: 18px 36px; align-items: start; }
.dfe-grid > * { min-width: 0; }
@media (min-width: 900px) { .dfe-grid { grid-template-columns: 1.1fr 1fr; } }
.quote { margin: 0 0 12px; padding: 18px 20px; background: var(--card); border-radius: var(--radius); border-left: 6px solid var(--pencil); }
.quote p { font: 700 1.25rem/1.4 var(--display); color: var(--slate-900); margin-bottom: .5em; }
.quote footer { font-size: .95rem; color: var(--muted); }
.facts-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.facts-list li { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--sky-soft); border-radius: var(--radius); padding: 12px 14px; }
.facts-list .icon { color: var(--sky-ink); margin-top: 2px; }
.facts-list .facts-more { background: transparent; border: 0; padding: 4px 2px; font-weight: 700; font-family: var(--display); }

/* type tiles */
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 12px; }
@media (min-width: 1000px) { .tiles:not(.big) { grid-template-columns: repeat(4, 1fr); } }
.tile { display: grid; gap: 4px; padding: 16px; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; box-shadow: 0 3px 0 var(--line-2); }
.tile:hover { border-color: var(--sky); color: var(--ink); box-shadow: 0 3px 0 var(--sky-soft); }
.tile-ic { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; background: var(--slate-900); color: var(--pencil); margin-bottom: 6px; }
.tile-name { font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--slate-900); }
.tile-n { font-size: .88rem; color: var(--muted); }
.tile-intro { font-size: .95rem; margin-top: 4px; }
.tiles.big { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }

/* ---------- product "device tiles" */
.tiles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 18px; margin: 12px 0 14px; }
.tile-card { display: flex; flex-direction: column; background: var(--card); border: 2px solid var(--slate-800); border-radius: 16px; overflow: hidden; box-shadow: 0 4px 0 var(--slate-300); }
.bezel { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; background: var(--slate-800); color: #fff; }
.bezel-type { display: inline-flex; align-items: center; gap: 6px; font: 700 .76rem/1.2 var(--display); letter-spacing: .07em; text-transform: uppercase; color: var(--sky-soft); }
.bezel-type .icon { color: var(--pencil); }
.tile-body { padding: 14px 16px 6px; flex: 1; }
.tile-brand { margin: 0 0 2px; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tile-title { font-size: 1.1rem; margin-bottom: .4em; }
.tile-title a { color: var(--slate-900); text-decoration: none; }
.tile-title a:hover { color: var(--sky-ink); text-decoration: underline; }
.tile-spec { display: inline-block; padding: 3px 10px; border-radius: 6px; background: var(--sky-tint); color: var(--slate-900); font-size: .88rem; font-weight: 600; margin-bottom: .6em; }
.tile-fits { font-size: .93rem; margin-bottom: .5em; }
.tile-fits span { font-weight: 700; }
.tile-sum { font-size: .95rem; color: var(--muted); margin-bottom: .6em; }
.tile-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 10px 16px 12px; }
.tile-acts .btn { flex: 1 1 auto; min-height: 42px; padding: 8px 12px; font-size: .92rem; }
.asset-tag { display: flex; align-items: center; gap: 10px; margin: 0; padding: 6px 16px; border-top: 1px dashed var(--line); background: #FAFBFC; font: 600 .74rem/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .12em; color: var(--muted); }
.asset-tag .bars { width: 64px; height: 14px; background: repeating-linear-gradient(90deg, var(--slate-700) 0 2px, transparent 2px 4px, var(--slate-700) 4px 5px, transparent 5px 8px, var(--slate-700) 8px 11px, transparent 11px 12px); }
.amz-note { font-size: .9rem; color: var(--muted); border-left: 4px solid var(--pencil); padding-left: 10px; }

/* collections list */
.picks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.picks a { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: var(--card); border-radius: var(--radius); border: 1px solid var(--sky-soft); text-decoration: none; color: var(--ink); height: 100%; }
.picks a:hover { border-color: var(--sky-ink); }
.picks-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--pencil); color: var(--slate-900); }
.picks strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--slate-900); }
.picks small { display: block; font-size: .92rem; color: var(--muted); }

/* sister sites */
.sisters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.sisters li { padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--sky); border-radius: var(--radius); }
.sisters a { display: block; font-family: var(--display); font-weight: 700; margin-bottom: 4px; }
.sisters span { font-size: .93rem; color: var(--muted); }

/* guide list (more guides) */
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 12px; }
.guide-list a { display: block; height: 100%; padding: 14px 16px 14px 18px; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--slate-800); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.guide-list a:hover { border-left-color: var(--pencil); }
.guide-list strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1.04rem; color: var(--slate-900); margin-bottom: 4px; }
.guide-list span { font-size: .95rem; color: var(--muted); }

/* jump links + chips */
.jump ul, .chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; align-items: center; }
.jump a, .chips a { display: inline-block; padding: 5px 12px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .92rem; }
.jump a:hover, .chips a:hover { border-color: var(--sky-ink); }
.group { margin-top: 28px; }

/* ---------- product page */
.product { display: grid; gap: 24px; align-items: start; }
.product > * { min-width: 0; }
@media (min-width: 900px) { .product { grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; } .buy-box { position: sticky; top: 16px; } }
.product .kicker { color: var(--slate-700); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 10px; margin: 18px 0 22px; padding: 0; }
.facts div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.facts .wide { grid-column: 1 / -1; }
.facts dt { font: 700 .74rem/1.3 var(--display); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 3px 0 0; font-weight: 600; }
.buy-box { padding: 18px 20px 0; background: var(--slate-900); color: #fff; border-radius: 16px; overflow: hidden; border-bottom: 6px solid var(--pencil); }
.buy-h { display: flex; align-items: center; gap: 8px; font: 700 1.15rem/1.3 var(--display); color: #fff; }
.buy-box a { color: var(--pencil-hi); }
.buy-box .btn-amz { color: var(--slate-900); }
.buy-box .small { color: #E1E8EF; }
.buy-box .asset-tag { margin: 12px -20px 0; background: var(--slate-800); color: var(--sky-soft); border-top-color: var(--slate-700); }
.buy-box .asset-tag .bars { background: repeating-linear-gradient(90deg, var(--sky-soft) 0 2px, transparent 2px 4px, var(--sky-soft) 4px 5px, transparent 5px 8px, var(--sky-soft) 8px 11px, transparent 11px 12px); }
.callout { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--sky); border-radius: 10px; padding: 12px 16px; margin: 1.2em 0; }
.callout p:last-child { margin-bottom: 0; }
.callout.check { border-left-color: var(--pencil); background: #FFFBEA; }

/* shelf searches */
.shelf-box { margin: 26px 0; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); border-top: 4px solid var(--pencil); }
.shelf-box h2 { font-size: 1.2rem; }
.shelf-box ul { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.shelf-box .btn { min-height: 40px; font-size: .92rem; }

/* ---------- prose + guides */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 1.5em; scroll-margin-top: 16px; }
.prose h3 { margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose-page .prose { margin-top: 10px; }
.prose .callout { border-left-color: var(--pencil); background: #FFFBEA; }
.guide .lede { color: var(--muted); }
.guide-layout { display: grid; gap: 24px; }
.guide-layout > * { min-width: 0; }
@media (min-width: 1040px) { .guide-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; } .toc { position: sticky; top: 16px; align-self: start; } }
.toc { padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); border-top: 4px solid var(--slate-800); font-size: .95rem; }
.toc h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: .35em; }
@media (max-width: 1039px) { .toc { order: -1; } }
.checked-pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .9rem; font-weight: 600; }
.sources { font-size: .95rem; }
.checked { font-size: .9rem; color: var(--muted); }
.sources-box { margin-top: 30px; padding-top: 6px; border-top: 2px dashed var(--line); }
.table-scroll { overflow-x: auto; margin: 1.2em 0; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.table-scroll table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .95rem; }
.table-scroll th, .table-scroll td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line-2); }
.table-scroll thead th { background: var(--slate-900); color: #fff; font-family: var(--display); font-size: .9rem; }
.table-scroll tbody th { background: var(--sky-tint); }
.photo { margin: 1.2em 0; }
.photo img { border-radius: var(--radius); display: block; }
.photo figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.guide-photo { max-width: 760px; }
.guide-photo img { width: 100%; height: auto; }

/* FAQ */
.faq { max-width: 50rem; display: grid; gap: 10px; margin-bottom: 18px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 0 16px; }
.faq summary { cursor: pointer; padding: 14px 0; font-family: var(--display); font-weight: 700; color: var(--slate-900); }
.faq details[open] summary { border-bottom: 1px dashed var(--line); margin-bottom: 10px; }
.faq .prose { padding-bottom: 6px; }

/* 404 */
.nf-links { font-size: 1.1rem; }

/* ---------- footer */
.site-foot { margin-top: 44px; background: var(--slate-900); color: #DCE4EC; }
.site-foot a { color: var(--pencil-hi); }
.site-foot a:hover { color: #fff; }
.foot-in { display: grid; gap: 24px; padding-top: 26px; padding-bottom: 12px; }
.foot-in > * { min-width: 0; }
@media (min-width: 900px) { .foot-in { grid-template-columns: 1.4fr 1.2fr; } }
.foot-name { font: 800 1.4rem/1.2 var(--display); color: #fff; margin-bottom: .5em; }
.foot-brand p { font-size: .93rem; }
.foot-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.foot-nav ul { list-style: none; margin: 0; padding: 0; }
.foot-nav li { margin-bottom: 7px; }
.sister-h { font: 700 .78rem/1.4 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--sky-soft); }
.copy { font-size: .88rem; padding-top: 12px; padding-bottom: 22px; border-top: 1px solid var(--slate-700); }

/* ---------- ads (5od) + cookie choice */
.ad-slot[hidden], .cookie-bar[hidden] { display: none !important; }
.ad-slot { display: block; margin: 1.4rem auto; }
.ad-in { display: flex; justify-content: center; max-width: 100%; overflow: hidden; }
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--card); color: var(--ink); border-top: 6px solid var(--pencil); box-shadow: 0 -6px 24px rgba(0,0,0,.2); padding: 14px 0 16px; max-height: 80vh; overflow-y: auto; }
.cookie-in { display: grid; gap: 12px 32px; align-items: center; }
@media (min-width: 860px) { .cookie-in { grid-template-columns: minmax(0, 1fr) auto; } }
.cookie-h { font: 800 1.3rem/1.15 var(--display); color: var(--slate-900); margin: 0 0 6px; }
.cookie-txt p { margin: 0 0 6px; font-size: .97rem; }
.cookie-now { font-weight: 700; color: var(--sky-ink); }
.cookie-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-btn { flex: 1 1 12rem; min-height: 48px; padding: 10px 20px; border: 2px solid var(--slate-900); border-radius: 10px; background: var(--slate-900); color: #fff; font: 700 1rem/1.2 var(--display); cursor: pointer; }
.cookie-btn:hover { background: var(--slate-700); }
.cookie-btn[data-choice="reject"] { background: var(--card); color: var(--slate-900); }
.cookie-btn[data-choice="reject"]:hover { background: var(--sky-tint); }
.cookie-h:focus { outline: none; }
.cookie-h:focus-visible { outline: 3px solid var(--focus); }
@media (prefers-reduced-motion: no-preference) { .cookie-bar { animation: cookie-up .25s ease-out; } .tile, .slot, .btn, .tile-title a { transition: background-color .15s, box-shadow .15s, border-color .15s, color .15s; } }
@keyframes cookie-up { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- print */
@media print {
  .site-nav, .shelf, .ad-slot, .cookie-bar, .hero-art, .tile-acts, .skip, .foot-nav, .jump, .toc, .shelf-box, .asset-tag, .hero-acts { display: none !important; }
  body, .site-head, .hero, .site-foot, .buy-box, .band-tint { background: #fff !important; color: #000 !important; }
  .hero h1, .brand, .buy-h, .foot-name, .site-foot, .hero .lede, .brand-sub { color: #000 !important; }
  .tile-card { break-inside: avoid; box-shadow: none; }
  a { color: #000; }
  .prose a[href^="/go/"]::after { content: " (link)"; font-size: .85em; }
  .btn-amz::after { content: " (Amazon.co.uk)"; }
}

/* Floating banner (bottom centre). Restyled for School MDM; keep the mechanics:
   - visibility (not display) hides it until 5od fills it, so t.js can still measure the width and see it;
   - inner width = up to 728px, so t.js picks 728x90 / 468x60 / 320x50 by the space available;
   - its z-index stays BELOW the cookie bar's (the bar must always cover it when reopened). */
.ad-float[hidden] { display: none !important; }
.ad-float { position: fixed; left: 50%; bottom: 0; z-index: 35; box-sizing: border-box; width: 100%; max-width: 764px; /* 728 + 2x16 padding + 2x2 border */
  padding: 8px 16px 6px; background: var(--card, #fff); border: 2px solid var(--slate-800, #2C3A48); border-bottom: 0; border-top: 5px solid var(--pencil, #F6C026); border-radius: 14px 14px 0 0;
  box-shadow: 0 -8px 28px rgba(23, 33, 43, .25); transform: translate(-50%, 0); visibility: visible; }
.ad-float:not(:has(ins.fiveod[data-fiveod="filled"])) { visibility: hidden; transform: translate(-50%, 110%); box-shadow: none; }
.ad-float-in { width: 100%; }
.ad-float-x { position: absolute; top: -16px; right: 10px; width: 32px; height: 32px; padding: 0; border-radius: 50%;
  border: 2px solid var(--pencil, #F6C026); background: var(--slate-900, #1E2A36); color: #fff; font: 700 18px/1 system-ui, sans-serif;
  cursor: pointer; display: grid; place-items: center; }
.ad-float-x:hover { background: var(--slate-700, #3B4B5C); }
.ad-float-x:focus-visible { outline: 3px solid var(--focus, #1A65A3); outline-offset: 2px; }
body:has(.ad-float:not([hidden]) ins.fiveod[data-fiveod="filled"]) { padding-bottom: 130px; }
@media (max-width: 759px) { body:has(.ad-float:not([hidden]) ins.fiveod[data-fiveod="filled"]) { padding-bottom: 92px; } }
@media (prefers-reduced-motion: no-preference) { .ad-float { transition: transform .3s ease-out, visibility 0s; } }
@media print { .ad-float { display: none !important; } }

/* focus rings on dark backgrounds */
.hero :focus-visible, .site-head :focus-visible, .site-foot :focus-visible, .buy-box :focus-visible { outline-color: var(--pencil); }
