/* Black Gold Investments — "Ledger & bookshelf": oil black and warm gold on cream ledger paper, red margin rules,
   gilt book spines, an oil-drop mark. Fonts: Playfair Display (headings) + Raleway (text), self-hosted subsets,
   SIL OFL (see /assets/fonts/OFL.txt). No third-party assets. */
@font-face { font-family: "Playfair Display"; src: url(/assets/fonts/playfair-display.woff2) format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url(/assets/fonts/playfair-display-italic.woff2) format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Raleway"; src: url(/assets/fonts/raleway.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Raleway"; src: url(/assets/fonts/raleway-italic.woff2) format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --oil: #0D0C0A; --oil-2: #1C1914; --oil-3: #2C261D;
  --gold: #D4A537; --gold-hi: #E9C46A; --gold-ink: #7A5810; --gold-wash: #F3E3B8;
  --cream: #F7F1E3; --card: #FFFCF4; --paper-2: #EFE5CF;
  --ink: #1B1712; --muted: #5B5246; --line: #DCCDAA;
  --rule: rgba(64, 104, 128, .13); --margin: #B5432F; --margin-soft: rgba(181, 67, 47, .55);
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --text: "Raleway", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --wrap: 1180px; --radius: 4px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 500 1.0625rem/1.65 var(--text); font-variant-numeric: lining-nums; overflow-wrap: anywhere; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: #6B4A08; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--margin); }
:focus-visible { outline: 3px solid var(--margin); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; color: var(--oil); margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(1.95rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 2.7vw, 1.95rem); }
h3 { font-size: 1.22rem; }
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(--gold); color: var(--oil); padding: 10px 16px; font-weight: 700; border-radius: var(--radius); }
.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, .num { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92em; }

/* ---------- header: oil-black band + gold double rule (the accountant's double underline) */
.site-head { background: var(--oil); color: var(--cream); }
.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: 12px; color: var(--cream); text-decoration: none; }
.brand:hover { color: var(--cream); }
.brand-mark { color: #000; background: var(--cream); border-radius: 50%; padding: 4px; box-shadow: 0 0 0 2px var(--gold); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--gold-hi); }
.brand-name span { color: var(--cream); font-weight: 400; font-style: italic; }
.brand-sub { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: #CFC6B4; margin-top: 4px; font-weight: 600; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 2px 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 8px 12px; color: var(--cream); text-decoration: none; font-weight: 600; letter-spacing: .02em; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--gold-hi); border-bottom-color: var(--gold); }
.site-nav a[aria-current] { color: var(--gold-hi); border-bottom: 3px double var(--gold); }
.site-nav a:focus-visible { outline-color: var(--gold-hi); }
.double-rule { height: 7px; border-top: 3px solid var(--gold); border-bottom: 1px solid var(--gold); background: var(--oil); }

/* ---------- the notice (every page) — a ledger slip with a red margin rule */
.notice { background: var(--gold-wash); border-bottom: 1px solid var(--line); }
.notice-in { display: flex; gap: 12px; align-items: flex-start; padding-top: 10px; padding-bottom: 10px; }
.notice p { margin: 0; font-size: .95rem; line-height: 1.5; padding-left: 12px; border-left: 3px double var(--margin); }
.notice strong { font-weight: 700; color: var(--oil); }
.notice-more { color: var(--ink); }
.notice-ic { flex: none; color: var(--margin); margin-top: 2px; }

/* ---------- buttons */
.btn-gold, .btn-line, .btn-amz, .btn-more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 18px; border-radius: var(--radius); font-weight: 700; text-decoration: none; line-height: 1.2; letter-spacing: .01em; }
.btn-gold { background: var(--gold); color: var(--oil); box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.btn-gold:hover { background: var(--gold-hi); color: var(--oil); }
.btn-line { color: var(--cream); box-shadow: inset 0 0 0 2px var(--gold); }
.btn-line:hover { background: rgba(212,165,55,.14); color: #fff; }
.btn-amz { background: var(--oil); color: var(--gold-hi); }
.btn-amz:hover { background: var(--oil-3); color: #fff; }
.btn-amz.big { min-height: 50px; font-size: 1.05rem; width: 100%; justify-content: center; }
.btn-more { color: var(--oil); box-shadow: inset 0 0 0 2px var(--oil); background: transparent; }
.btn-more:hover { background: var(--oil); color: var(--gold-hi); }

/* ---------- hero */
.hero { background: var(--oil); color: var(--cream); padding: 34px 0 44px; background-image: linear-gradient(180deg, rgba(212,165,55,.07), transparent 60%); }
.hero-in { display: grid; gap: 20px; align-items: center; }
.hero-in > * { min-width: 0; }
.hero h1 { color: var(--cream); font-weight: 700; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--gold-hi); }
.kicker { font-size: .84rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: .6em; }
.hero .kicker { color: var(--gold); }
.lede { font-size: 1.14rem; max-width: 46rem; }
.hero .lede { color: #E8E0CE; }
.hero-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.2em; }
.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: 52px 0 60px; } }

/* ---------- sections */
.band { padding-top: 34px; padding-bottom: 10px; }
.band-paper { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-bottom: 28px; margin-top: 26px; margin-bottom: 20px; }
.sec-h { display: flex; align-items: center; gap: 10px; }
.sec-h::after { content: ""; flex: 1; min-width: 20px; height: 5px; margin-left: 8px; border-top: 2px solid var(--gold); border-bottom: 1px solid var(--gold); }
.sec-h .icon { color: var(--gold-ink); }
.sec-intro { color: var(--muted); max-width: 52rem; margin-top: -.2em; }
.page { padding-top: 22px; padding-bottom: 40px; }
.crumbs { font-size: .92rem; color: var(--muted); margin-bottom: 14px; }
.empty { padding: 18px; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); }
.h-icon { color: var(--gold-ink); vertical-align: -.12em; }

/* book spines on a shelf (home) */
.spines { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 10px; align-items: end; }
.spine { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 168px; padding: 18px 14px 16px; color: var(--cream); background: var(--oil-2); text-decoration: none; border-radius: 3px 3px 0 0;
  box-shadow: inset 6px 0 0 rgba(255,255,255,.05), inset -6px 0 0 rgba(0,0,0,.25); }
.spine::before, .spine::after { content: ""; position: absolute; left: 0; right: 0; height: 4px; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); }
.spine::before { top: 12px; }
.spine::after { bottom: 8px; }
.spine .icon { color: var(--gold); margin-bottom: auto; }
.spine-name { font-family: var(--display); font-weight: 700; font-size: 1.12rem; line-height: 1.2; color: var(--gold-hi); }
.spine-n { font-size: .85rem; color: #D8CFBC; margin-bottom: 8px; }
.spine-1 { background: #2C261D; min-height: 182px; }
.spine-2 { background: #F7F1E3; color: var(--oil); box-shadow: inset 0 0 0 1px var(--line); min-height: 160px; }
.spine-2 .spine-name { color: var(--oil); }
.spine-2 .spine-n { color: var(--muted); }
.spine-2 .icon { color: var(--gold-ink); }
.spine-2::before, .spine-2::after { border-color: var(--gold-ink); }
.spine-3 { background: #5A1F16; min-height: 176px; }
.spine:hover { transform: translateY(-4px); }
.spine:hover .spine-name { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1100px) { .spines { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; } .spine { padding: 18px 10px 16px; } .spine-name { font-size: 1.02rem; } }
.shelf-board { height: 12px; background: var(--oil); border-top: 3px solid var(--gold); border-radius: 0 0 3px 3px; box-shadow: 0 6px 10px rgba(0,0,0,.12); }

/* tiles (section/list indexes) */
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 14px; }
.tile { display: grid; gap: 4px; padding: 18px 18px 18px 26px; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; position: relative; }
.tile::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; border-left: 3px double var(--margin-soft); }
.tile .icon { color: var(--gold-ink); }
.tile:hover { border-color: var(--gold); box-shadow: 0 3px 0 var(--gold); color: var(--ink); }
.tile-name { font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--oil); }
.tile-n { font-size: .88rem; color: var(--muted); font-weight: 600; }
.tile-intro { font-size: .95rem; margin-top: 4px; }

/* ---------- ledger cards (the site's product card) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 18px; margin: 12px 0 14px; }
.card { position: relative; display: flex; flex-direction: column; padding: 16px 18px 14px 34px; background-color: var(--card); color: var(--ink);
  background-image: repeating-linear-gradient(180deg, transparent 0 27px, var(--rule) 27px 28px); background-position: 0 6px;
  border: 1px solid var(--line); border-top: 6px solid var(--oil); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 2px 0 var(--line); }
.card::before { content: ""; position: absolute; left: 14px; top: 0; bottom: 0; border-left: 3px double var(--margin-soft); }
.card-book { border-top-color: var(--oil); }
.card-book::after { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 6px; background: linear-gradient(90deg, transparent 0 18px, var(--gold) 18px 26px, transparent 26px); }
.card-kit { border-top-color: var(--gold); }
.card-type { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }
.card-name { font-size: 1.22rem; margin-bottom: .15em; }
.card-name a { color: var(--oil); text-decoration: none; }
.card-name a:hover { color: var(--margin); text-decoration: underline; }
.card-by { font-family: var(--display); font-style: italic; color: var(--muted); margin-bottom: .45em; }
.card-spec { align-self: flex-start; padding: 2px 10px; background: var(--paper-2); border-radius: 2px; font-size: .86rem; font-weight: 600; margin-bottom: .6em; }
.card-sum { font-size: .96rem; }
.card-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; padding-top: 10px; border-top: 3px double var(--line); }
.card-acts a { flex: 1 1 auto; justify-content: center; min-height: 42px; padding: 8px 14px; font-size: .95rem; }
.amz-note { font-size: .9rem; color: var(--muted); border-left: 3px double var(--gold-ink); padding-left: 10px; }
.shelf-link { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; background: var(--card); border: 1px dashed var(--gold-ink); border-radius: var(--radius); font-size: .95rem; }
.shelf-link .icon { color: var(--gold-ink); margin-top: 3px; }

/* lists */
.picks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 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(--line); text-decoration: none; color: var(--ink); height: 100%; }
.picks a:hover { border-color: var(--gold); }
.picks .icon { color: var(--margin); margin-top: 2px; }
.picks strong { display: block; font-family: var(--display); font-size: 1.14rem; color: var(--oil); }
.picks small { display: block; font-size: .93rem; color: var(--muted); }

/* guides: a book's table of contents with dotted leaders */
.contents { list-style: none; counter-reset: ch; margin: 0; padding: 0; display: grid; gap: 4px; max-width: 58rem; }
.contents li { counter-increment: ch; }
.contents a { display: grid; grid-template-columns: 2.6rem 1fr; gap: 2px 10px; padding: 12px 8px 12px 0; text-decoration: none; color: var(--ink); border-bottom: 1px dotted var(--gold-ink); }
.contents a::before { content: counter(ch, upper-roman) "."; grid-row: span 2; font-family: var(--display); font-weight: 700; color: var(--gold-ink); text-align: right; font-size: 1.1rem; line-height: 1.5; }
.c-title { font-family: var(--display); font-weight: 700; font-size: 1.18rem; color: var(--oil); }
.c-sum { font-size: .95rem; color: var(--muted); }
.contents a:hover .c-title { color: var(--margin); text-decoration: underline; }
/* a guide with a photo: a small gold-framed plate beside the entry; its credit sits under the dotted leader */
.contents .has-photo > a { grid-template-columns: 2.6rem minmax(0, 1fr) 180px; grid-template-rows: auto auto 1fr; align-items: start; }
.contents .has-photo > a::before { grid-column: 1; grid-row: 1 / span 2; }
.contents .has-photo .c-title { grid-column: 2; grid-row: 1; }
.contents .has-photo .c-sum { grid-column: 2; grid-row: 2; }
.contents .g-thumb { grid-column: 3; grid-row: 1 / span 3; display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; padding: 3px; background: var(--card); border: 1px solid var(--gold); box-shadow: 0 0 0 3px var(--card), 0 0 0 4px var(--line); border-radius: 1px; }
.contents .g-credit { margin: 3px 8px 8px 3.25rem; font-size: .78rem; line-height: 1.45; color: var(--muted); text-align: right; }
.contents .g-credit a { display: inline; padding: 0; border: 0; color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); }
.contents .g-credit a::before { content: none; }
.contents .g-credit a:hover { color: var(--margin); text-decoration-color: currentColor; }
@media (max-width: 599px) {
  .contents .has-photo > a { grid-template-columns: 2.6rem minmax(0, 1fr); grid-template-rows: auto; }
  .contents .g-thumb { grid-column: 2; grid-row: 1; margin: 2px 0 10px; }
  .contents .has-photo > a::before { grid-row: 2 / span 2; }
  .contents .has-photo .c-title { grid-row: 2; }
  .contents .has-photo .c-sum { grid-row: 3; }
  .contents .g-credit { text-align: left; }
}

/* 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: 2px; 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(--gold-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; } }
.byline { font-family: var(--display); font-style: italic; font-size: 1.2rem; color: var(--muted); margin-top: -.2em; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 0; margin: 18px 0 22px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.facts div { padding: 10px 14px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.facts .wide { grid-column: 1 / -1; }
.facts dt { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.buy-box { padding: 20px; background: var(--oil); color: var(--cream); border-radius: var(--radius); border-top: 4px double var(--gold); }
.buy-h { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--gold-hi); }
.buy-box a { color: var(--gold-hi); }
.buy-box .btn-amz { background: var(--gold); color: var(--oil); }
.buy-box .btn-amz:hover { background: var(--gold-hi); color: var(--oil); }
.callout { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: var(--radius); padding: 12px 16px; margin: 1.2em 0; }
.callout p:last-child { margin-bottom: 0; }
.callout.note { border-left: 6px double var(--margin); }
.callout.warn { border-left-color: var(--margin); background: #FBEDE7; }

/* ---------- prose */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 1.45em; }
.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 .prose.ledger { padding-left: 18px; border-left: 3px double var(--margin-soft); }
.checked-top { display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink); border-top: 1px solid var(--gold-ink); border-bottom: 1px solid var(--gold-ink); padding: 3px 0; }
.sources { font-size: .95rem; }
.checked { font-size: .9rem; color: var(--muted); }
.sources-box { margin-top: 28px; padding-top: 6px; border-top: 3px double var(--line); }
.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; margin: 0; }

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

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

/* ---------- footer */
.site-foot { margin-top: 40px; background: var(--oil); color: #E6DECB; }
.site-foot a { color: var(--gold-hi); }
.site-foot a:hover { color: #fff; }
.foot-in { display: grid; gap: 24px; padding-top: 28px; padding-bottom: 12px; }
.foot-in > * { min-width: 0; }
@media (min-width: 860px) { .foot-in { grid-template-columns: 1.6fr 1fr; } }
.foot-name { font-family: var(--display); font-weight: 700; font-size: 1.45rem; color: var(--gold-hi); margin-bottom: .4em; }
.foot-brand p { font-size: .94rem; }
.foot-notice strong { color: #fff; }
.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: .9rem; padding-top: 10px; padding-bottom: 22px; border-top: 1px solid rgba(212,165,55,.35); }

/* ---------- 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: 5px double var(--gold-ink); 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: 700 1.4rem/1.1 var(--display); color: var(--oil); margin: 0 0 6px; }
.cookie-txt p { margin: 0 0 6px; font-size: .97rem; }
.cookie-now { font-weight: 700; color: var(--gold-ink); }
.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: var(--radius); background: var(--oil); color: var(--gold-hi); font: 700 1rem/1.2 var(--text); cursor: pointer; }
.cookie-btn:hover { background: var(--oil-3); color: #fff; }
.cookie-h:focus { outline: none; }
.cookie-h:focus-visible { outline: 3px solid var(--margin); }
@media (prefers-reduced-motion: no-preference) { .cookie-bar { animation: cookie-up .25s ease-out; } .spine, .tile, .card-name a, .btn-amz { transition: transform .15s, background-color .15s, box-shadow .15s, border-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; } .spine:hover { transform: none; } }

/* ---------- small screens */
@media (max-width: 560px) {
  .brand-name { font-size: 1.28rem; }
  .site-nav a { padding: 6px 7px; font-size: .95rem; letter-spacing: 0; }
  .site-nav ul { gap: 0 2px; }
  .head-in { padding-bottom: 8px; }
  .spines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spine { min-height: 140px; }
  .spine-1 { min-height: 150px; } .spine-2 { min-height: 132px; } .spine-3 { min-height: 146px; }
  .notice p { font-size: .9rem; }
}

/* ---------- print */
@media print {
  .site-nav, .double-rule, .ad-slot, .cookie-bar, .hero-art, .card-acts, .skip, .foot-nav, .jump, .shelf-board, .shelf-link { display: none !important; }
  body, .site-head, .hero, .site-foot, .buy-box, .notice, .card, .spine { background: #fff !important; color: #000 !important; box-shadow: none !important; }
  .hero h1, .brand-name, .brand-name span, .buy-h, .foot-name, .site-foot, .spine-name { color: #000 !important; }
  .card { break-inside: avoid; border: 1px solid #999; }
  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 (35) stays BELOW the cookie bar's (60), so the bar always covers 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: 760px;
  padding: 9px 16px 6px; background: var(--card, #fff); border-radius: 3px 3px 0 0; border-top: 4px double var(--gold, #D4A537);
  box-shadow: 0 -8px 26px rgba(13, 12, 10, .28); 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: 30px; height: 30px; padding: 0; border-radius: 50%;
  border: 2px solid var(--gold, #D4A537); background: var(--oil, #0D0C0A); color: var(--gold-hi, #E9C46A); font: 700 18px/1 system-ui, sans-serif;
  cursor: pointer; display: grid; place-items: center; }
.ad-float-x:hover { background: var(--oil-3, #2C261D); color: #fff; }
.ad-float-x:focus-visible { outline: 3px solid var(--margin, #B5432F); 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 .contents, without the chapter numerals */
.post-list a { grid-template-columns: minmax(0, 1fr); padding-left: 0; }
.post-list a::before { content: none; }
.post-list .has-photo > a { grid-template-columns: minmax(0, 1fr) 180px; grid-template-rows: auto auto 1fr; }
.post-list .has-photo .post-date { grid-column: 1; grid-row: 1; }
.post-list .has-photo .c-title { grid-column: 1; grid-row: 2; }
.post-list .has-photo .c-sum { grid-column: 1; grid-row: 3; }
.post-list .g-thumb { grid-column: 2; grid-row: 1 / span 3; }
.post-list .g-credit { margin-left: 0; }
.post-date { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink); }
.post-meta { font-size: .92rem; color: var(--muted); margin: -.2em 0 .6em; }
.guide .post-body { padding-left: 18px; border-left: 3px double var(--margin-soft); }
.post-body .prose + .prose { margin-top: 0; }
.post-cards { margin: 10px 0 22px; }
.post-spines { margin: 10px 0 22px; }
@media (max-width: 599px) {
  .post-list .has-photo > a { grid-template-columns: minmax(0, 1fr); }
  .post-list .has-photo .g-thumb { grid-column: 1; grid-row: 1; margin: 2px 0 10px; }
  .post-list .has-photo .post-date { grid-row: 2; }
  .post-list .has-photo .c-title { grid-row: 3; }
  .post-list .has-photo .c-sum { grid-row: 4; }
  .guide .post-body { padding-left: 10px; }
}

/* 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 -18px 10px -26px; 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; }
.tile.has-photo { align-content: start; }