/* Homework Insurance — "Policy schedule": calm teal and navy on paper, shield/house marks, document cards with a
   perforated tear-off stub. Fonts: Merriweather (headings) + Heebo (text), self-hosted, SIL OFL (/assets/fonts/OFL.txt). */
@font-face { font-family: "Merriweather"; src: url(/assets/fonts/merriweather.woff2) format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Heebo"; src: url(/assets/fonts/heebo.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --navy: #13294B; --navy-2: #1D3A66; --navy-deep: #0C1C35;
  --teal: #0D6E6B; --teal-2: #0A5856; --teal-hi: #2BB3A8; --mint: #DCEFEA; --mint-2: #EEF7F4;
  --paper: #F4F0E6; --card: #FFFDF8; --rule: #D8D0BD; --rule-2: #E8E2D3;
  --ink: #1B2433; --muted: #4C5767; --stamp: #9A3324;
  --display: "Merriweather", Georgia, "Times New Roman", serif;
  --text: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --wrap: 1180px; --radius: 8px;
}
*, *::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(--teal); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--teal-hi); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.22; color: var(--navy); margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(1.8rem, 4.2vw, 2.75rem); font-weight: 900; }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
strong { font-weight: 700; }
.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(--card); color: var(--navy); padding: 10px 16px; font-weight: 700; border-radius: 6px; box-shadow: 0 0 0 3px var(--teal-hi); }
.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; }

/* ---------- the "not an insurer" notice (every page) */
.notice { margin: 0; background: var(--mint); color: var(--navy-deep); border-bottom: 1px solid #B9DCD4; font-size: .92rem; line-height: 1.45; }
.notice-in { display: flex; gap: 9px; align-items: flex-start; padding-top: 8px; padding-bottom: 8px; }
.notice svg { flex: none; color: var(--teal); margin-top: 1px; }
.stamp { display: inline-block; margin: 0 0 1em; padding: 4px 12px; border: 2px solid var(--stamp); border-radius: 4px; color: var(--stamp); font-weight: 700; font-size: .88rem; letter-spacing: .02em; transform: rotate(-.6deg); background: var(--card); }

/* ---------- header: navy with a fine "security print" pattern, perforated edge below */
.site-head { background-color: var(--navy); color: #fff;
  background-image: repeating-linear-gradient(135deg, rgba(43,179,168,.07) 0 1px, transparent 1px 9px), repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 1px, transparent 1px 9px); }
.head-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-mark { color: var(--teal-hi); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name { font-family: var(--display); font-weight: 900; font-size: 1.38rem; letter-spacing: -.01em; }
.brand-sub { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #BFE7E1; margin-top: 4px; }
.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: 500; border-radius: 4px; border: 1px solid transparent; }
@media (max-width: 480px) { .site-nav a { padding: 7px 8px; font-size: .95rem; } .site-nav ul { gap: 2px; } }
.site-nav a:hover { border-color: rgba(191,231,225,.55); color: #fff; }
.site-nav a[aria-current] { background: var(--card); color: var(--navy); font-weight: 700; }
.perf { height: 12px; background: radial-gradient(circle at 8px 12px, var(--paper) 4.5px, transparent 5px) 0 0 / 16px 12px repeat-x, var(--teal); }
.perf-foot { background: radial-gradient(circle at 8px 0, var(--paper) 4.5px, transparent 5px) 0 0 / 16px 12px repeat-x, var(--navy-deep); }

/* ---------- buttons */
.btn-main, .btn-ghost, .btn-amz, .btn-line { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 18px; border-radius: 6px; font-weight: 700; text-decoration: none; line-height: 1.2; text-align: center; }
.btn-main { background: var(--teal-hi); color: var(--navy-deep); }
.btn-main:hover { background: #fff; color: var(--navy-deep); }
.btn-ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-amz { background: var(--teal); color: #fff; }
.btn-amz:hover { background: var(--navy); color: #fff; }
.btn-amz.big { min-height: 50px; font-size: 1.05rem; width: 100%; }
.btn-line { color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); background: transparent; }
.btn-line:hover { background: var(--navy); color: #fff; }

/* ---------- hero */
.hero { background-color: var(--navy); color: #fff; padding: 26px 0 46px;
  background-image: repeating-linear-gradient(135deg, rgba(43,179,168,.07) 0 1px, transparent 1px 9px), repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 1px, transparent 1px 9px); }
.home .site-head .perf { display: none; }
.hero-in { display: grid; gap: 20px; align-items: center; }
.hero-in > * { min-width: 0; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--teal-hi); }
.kicker { font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: .6em; }
.hero .kicker { color: #BFE7E1; }
.lede { font-size: 1.15rem; max-width: 46rem; }
.hero-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.2em; }
.hero-art { display: none; justify-self: center; filter: drop-shadow(0 12px 22px rgba(0,0,0,.35)); }
@media (min-width: 840px) { .hero-in { grid-template-columns: 1.55fr 1fr; } .hero-art { display: block; } .hero { padding: 44px 0 64px; } }

/* ---------- two halves */
.halves { display: grid; gap: 22px; margin-top: -26px; position: relative; }
.halves > * { min-width: 0; }
@media (min-width: 900px) { .halves { grid-template-columns: 1fr 1fr; } }
.half { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px 20px 20px; box-shadow: 0 3px 0 var(--rule-2); }
.half-ins { border-top: 6px solid var(--navy); }
.half-kit { border-top: 6px solid var(--teal); }
.half-no { margin: 0 0 .3em; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.half-h { display: flex; gap: 10px; align-items: flex-start; }
.half-ins .half-h .icon { color: var(--navy); }
.half-kit .half-h .icon { color: var(--teal); }
.clause-list { list-style: none; margin: 0; padding: 0; counter-reset: clause; display: grid; gap: 8px; }
.clause-list > li > a { display: block; padding: 10px 12px 10px 46px; position: relative; border: 1px solid var(--rule-2); border-radius: 6px; text-decoration: none; color: var(--ink); background: var(--mint-2); }
.clause-list > li > a::before { counter-increment: clause; content: "§" counter(clause); position: absolute; left: 12px; top: 10px; font: 900 1rem/1.4 var(--display); color: var(--teal); }
.clause-list > li > a:hover { border-color: var(--teal); }
.clause-list strong { display: block; font-family: var(--display); color: var(--navy); font-weight: 800; }
.clause-list span { font-size: .93rem; color: var(--muted); }
.clause-list > li > a.has-photo strong, .clause-list > li > a.has-photo > span:not(.cl-img) { display: block; grid-column: 1; }
/* a clause with a photo: a small photo beside the text (above it on narrow screens), credit under the item */
.cl-img { display: block; margin: 2px 0 8px; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: var(--mint); }
.cl-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 520px) {
  .clause-list > li > a.has-photo { display: grid; grid-template-columns: minmax(0, 1fr) 132px; column-gap: 14px; align-items: start; }
  .clause-list .cl-img { grid-column: 2; grid-row: 1 / span 2; margin: 2px 0 0; aspect-ratio: 4 / 3; }
}
.cl-credit { margin: 3px 4px 0; font-size: .76rem; line-height: 1.4; color: var(--muted); }
.clause-list .cl-credit span { font-size: inherit; color: inherit; }

/* ---------- sections */
.band { padding-top: 34px; padding-bottom: 10px; }
.band-mint { background: var(--mint-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding-bottom: 26px; margin-top: 24px; margin-bottom: 24px; }
.sec-h { display: flex; align-items: center; gap: 10px; }
.sec-h::after { content: ""; flex: 1; height: 0; margin-left: 8px; border-top: 2px dashed var(--rule); min-width: 20px; }
.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(--rule); border-radius: var(--radius); }
.h-icon { color: var(--teal); vertical-align: -.12em; }

/* tiles */
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.tile { display: grid; gap: 3px; padding: 14px; height: 100%; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.tile .icon { color: var(--teal); }
.tile:hover { border-color: var(--teal); box-shadow: inset 0 -3px 0 var(--teal); color: var(--ink); }
.tile-name { font-family: var(--display); font-weight: 800; font-size: 1.02rem; color: var(--navy); line-height: 1.3; }
.tile-n { font-size: .88rem; color: var(--muted); }
.tile-intro { font-size: .95rem; margin-top: 4px; }
.half .tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); }
.tiles.big { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }

/* ---------- product cards: "policy schedule" with a perforated stub */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px 18px; margin: 10px 0 14px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 3px 0 var(--rule-2); overflow: hidden; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0; padding: 7px 14px; background: var(--navy); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.card-type { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.card-type .icon { color: var(--teal-hi); }
.card-ref { flex: none; font-weight: 500; color: #BFE7E1; letter-spacing: .04em; }
.card-body { padding: 14px 16px 6px; flex: 1; }
.card-name { font-size: 1.08rem; margin-bottom: .4em; }
.card-name a { color: var(--navy); text-decoration: none; }
.card-name a:hover { color: var(--teal); text-decoration: underline; }
.card-spec { display: inline-block; padding: 2px 9px; border-radius: 4px; background: var(--mint); color: var(--navy-deep); font-size: .88rem; font-weight: 600; margin-bottom: .6em; }
.card-size, .card-for { font-size: .93rem; margin-bottom: .4em; }
.card-size span, .card-for span { font-weight: 700; color: var(--teal-2); }
.card-sum { font-size: .94rem; color: var(--muted); }
.card-stub { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 14px 16px 16px; border-top: 2px dashed #A7AFBB; background: var(--mint-2); }
.card-stub::before, .card-stub::after { content: ""; position: absolute; top: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 1px solid var(--rule); }
.card-stub::before { left: -10px; }
.card-stub::after { right: -10px; }
.band-mint .card-stub::before, .band-mint .card-stub::after { background: var(--mint-2); }
.card-stub a { flex: 1 1 auto; min-height: 42px; padding: 8px 14px; font-size: .95rem; }
.amz-note { font-size: .88rem; color: var(--muted); border-left: 3px solid var(--teal); padding-left: 10px; }

/* kit lists */
.lists { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.lists a { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: var(--card); border-radius: var(--radius); border: 1px solid var(--rule); text-decoration: none; color: var(--ink); height: 100%; }
.lists a:hover { border-color: var(--teal); }
.lists .icon { color: var(--teal); margin-top: 2px; }
.lists strong { display: block; font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: var(--navy); }
.lists small { display: block; font-size: .93rem; color: var(--muted); }

/* 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 > li > a { display: block; height: 100%; padding: 16px 16px 16px 18px; background: var(--card); border: 1px solid var(--rule); border-left: 5px solid var(--teal); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.guide-list > li > a:hover { border-left-color: var(--navy); }
.guide-list strong { display: block; font-family: var(--display); font-weight: 800; font-size: 1.06rem; color: var(--navy); margin-bottom: 4px; }
.guide-list span { font-size: .95rem; color: var(--muted); }
/* a guide card with a photo: photo across the top, the teal edge becomes a bar under the photo,
   credit under the card (outside the link) */
.guide-list > li { display: flex; flex-direction: column; min-width: 0; }
.guide-list > li > a { flex: 1 1 auto; height: auto; }
.guide-list > li > a.has-photo { padding: 0 0 16px; border-left-width: 1px; overflow: hidden; }
.gl-img { display: block; aspect-ratio: 16 / 9; margin-bottom: 14px; background: var(--mint); border-bottom: 5px solid var(--teal); }
.guide-list > li > a.has-photo:hover .gl-img { border-bottom-color: var(--navy); }
.gl-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.guide-list a.has-photo strong, .guide-list a.has-photo > span:not(.gl-img) { display: block; padding: 0 16px 0 18px; }
.gl-credit { margin: 5px 4px 0; font-size: .78rem; line-height: 1.4; color: var(--muted); }
.guide-list .gl-credit span { font-size: inherit; color: inherit; }

/* 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: 4px; background: var(--card); border: 1px solid var(--rule); text-decoration: none; font-weight: 600; font-size: .92rem; }
.jump a:hover, .chips a:hover { border-color: var(--teal); }
.group { margin-top: 26px; }
.group .sec-h .icon { color: var(--teal); }

/* shelf searches on type pages */
.shelf { margin: 26px 0 18px; padding: 18px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); border-left: 5px solid var(--teal); }
.shelf-h { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; }
.shelf-h .icon { color: var(--teal); }
.shelf-links { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 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; } }
.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(--rule); border-radius: 6px; padding: 10px 14px; }
.facts .wide { grid-column: 1 / -1; }
.facts dt { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-2); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.buy-box { position: relative; padding: 20px 20px 14px; background: var(--card); border: 1px solid var(--rule); border-top: 6px solid var(--teal); border-radius: var(--radius); box-shadow: 0 3px 0 var(--rule-2); }
.buy-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
@media (min-width: 900px) { .buy-inline { display: none; } }
.buy-h { font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: var(--navy); }
.callout { background: var(--card); border: 1px solid var(--rule); border-left: 5px solid var(--teal); border-radius: 6px; padding: 12px 16px; margin: 1.2em 0; }
.callout p:last-child { margin-bottom: 0; }
.callout.caution { border-left-color: var(--stamp); }
.callout-h { margin: 0 0 .3em; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--stamp); }
.callout.notice-box { border-left-color: var(--navy); background: var(--mint-2); }

/* ---------- prose */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose-page .prose { margin-top: 10px; }
.guide .lede { color: var(--muted); }
.guide > .callout { max-width: 46rem; }
.sources { font-size: .95rem; }
.checked { font-size: .9rem; color: var(--muted); }
.sources-box { margin-top: 28px; padding-top: 6px; border-top: 2px dashed var(--rule); }
.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; }

/* tables in guides */
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; }
.prose table { border-collapse: collapse; width: 100%; max-width: 34rem; background: var(--card); font-size: .97rem; }
.prose th, .prose td { text-align: left; padding: 8px 12px; border: 1px solid var(--rule); }
.prose th { background: var(--navy); color: #fff; font-weight: 700; }
.prose tbody tr:nth-child(even) td { background: var(--mint-2); }

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

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

/* ---------- footer */
.site-foot { margin-top: 40px; background: var(--navy-deep); color: #E3E8EF; }
.site-foot a { color: #9EE0D8; }
.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: 860px) { .foot-in { grid-template-columns: 1.6fr 1fr; } }
.foot-name { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 900; font-size: 1.3rem; color: #fff; margin-bottom: .5em; }
.foot-name svg { color: var(--teal-hi); }
.foot-brand p { font-size: .93rem; }
.foot-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.foot-nav ul { list-style: none; margin: 0; padding: 0; }
.foot-nav li { margin-bottom: 6px; }
.copy { font-size: .88rem; padding-top: 10px; padding-bottom: 22px; border-top: 1px solid rgba(255,255,255,.14); }

/* ---------- cookie choice (5od) */
.cookie-bar[hidden] { display: none !important; }
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--card); color: var(--ink); border-top: 6px solid var(--teal); box-shadow: 0 -6px 24px rgba(0,0,0,.18); 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(--navy); margin: 0 0 6px; }
.cookie-txt p { margin: 0 0 6px; font-size: .97rem; }
.cookie-now { font-weight: 700; color: var(--teal-2); }
.cookie-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-btn { flex: 1 1 12rem; min-height: 48px; padding: 10px 20px; border: 0; border-radius: 6px; background: var(--navy); color: #fff; font: 700 1rem/1.2 var(--text); cursor: pointer; }
.cookie-btn:hover { background: var(--teal); }
.cookie-h:focus { outline: none; }
.cookie-h:focus-visible { outline: 3px solid var(--teal-hi); }
@media (prefers-reduced-motion: no-preference) { .cookie-bar { animation: cookie-up .25s ease-out; } .tile, .card-name a, .btn-amz, .btn-line, .guide-list 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, .perf, .cookie-bar, .hero-art, .card-stub, .skip, .foot-nav, .jump, .shelf-links { display: none !important; }
  body, .site-head, .hero, .site-foot, .buy-box, .notice { background: #fff !important; color: #000 !important; }
  .hero h1, .brand, .buy-h, .foot-name, .site-foot, .card-top { color: #000 !important; }
  .card-top { background: #fff !important; border-bottom: 1px solid #999; }
  .card { break-inside: avoid; box-shadow: none; }
  a { color: #000; }
  .btn-amz::after { content: " (Amazon.co.uk)"; }
}

/* Floating banner (bottom centre). Restyled for this site; the mechanics are unchanged:
   - 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: 762px; /* 728 + 2×16 padding + 2×1 border */
  padding: 9px 16px 6px; background: var(--card, #fff); border: 1px solid var(--rule, #ccc); border-bottom: 0; border-top: 4px solid var(--teal, #0D6E6B); border-radius: 8px 8px 0 0;
  box-shadow: 0 -8px 26px rgba(12, 28, 53, .22); 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: -15px; right: 10px; width: 30px; height: 30px; padding: 0; border-radius: 50%;
  border: 2px solid var(--card, #fff); background: var(--navy, #111); color: #fff; font: 700 18px/1 system-ui, sans-serif;
  cursor: pointer; display: grid; place-items: center; }
.ad-float-x:hover { background: var(--teal, #0D6E6B); }
.ad-float-x:focus-visible { outline: 3px solid var(--teal-hi, #1a73e8); 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; } }

/* ---------- blog (/blog/, /blog/{slug}/, "From the blog" on the home page) — cards reuse .guide-list */
.guide-list .post-date { display: block; margin-bottom: 4px; font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--teal); }
.post-meta { font-size: .92rem; color: var(--muted); margin: -.2em 0 .8em; }
.post-body .prose + .prose { margin-top: 0; }
.post-tiles, .post-body .cards { margin: 10px 0 18px; }

/* type / list photos (22 November 2026): hero on the page, thumbnail on the index tile, credit under the tile */
.tiles > li { display: flex; flex-direction: column; }
.tiles > li > .tile { flex: 1 1 auto; height: auto; }
.tile.has-photo { padding-top: 0; overflow: hidden; }
.tile-img { display: block; position: relative; z-index: 2; aspect-ratio: 16 / 9; margin: 0 -14px 10px; background: var(--rule, #ddd); }
.tile-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile-credit { margin: 5px 4px 0; font-size: .78rem; line-height: 1.4; color: var(--muted); }
.tile-credit span { font-size: inherit; color: inherit; }
.tile-credit a { color: inherit; text-decoration: underline; }
.term-photo { max-width: 760px; }
.term-photo img { width: 100%; height: auto; }
