/* Beacon Press, colour treatment C: "Series Colour" (colour fields).
   Crisp white page, ink type and buttons, and confident full-bleed series fields:
   cobalt hero, a shelf stage that takes the colour of the book you pull out, the series ledger,
   vermilion collection, plum library, ink footer. Each product page is set in its series colour;
   the shop head and stage follow the series you browse. Loaded after press.css (untouched). */

:root {
  --paper: #FFFFFF;
  --paper-2: #FFFFFF;
  --card: #FFFFFF;
  --ink: #14161A;
  --ink-2: #4A4F57;
  --rule: #E1E3E6;          /* decorative hairlines only */
  --ui: #858B94;            /* control borders on white: 3.4:1 */

  --f-cobalt: #2F4BD8;
  --f-verm: #C23A20;
  --f-green: #0E5A43;
  --f-ochre: #8A6A00;       /* the work series wherever white text sits on it */
  --f-plum: #6B4FA3;
  --f-ink: #14161A;

  /* Objects on white: crisp contact, soft fall */
  --shadow-object: 0 1px 1px rgba(20,22,26,.14), 0 7px 14px -7px rgba(20,22,26,.22), 0 28px 46px -20px rgba(20,22,26,.26);
  --shadow-object-lift: 0 2px 2px rgba(20,22,26,.12), 0 14px 24px -10px rgba(20,22,26,.24), 0 46px 72px -28px rgba(20,22,26,.30);
  /* Objects on a colour field: a fine light keyline so a cover on its own colour stays distinct, and a deep, glow-free drop */
  --keyline: 0 0 0 1px rgba(255,255,255,.42);
  --shadow-field: var(--keyline), 0 1px 2px rgba(6,8,16,.26), 0 12px 22px -10px rgba(6,8,16,.38), 0 40px 64px -26px rgba(6,8,16,.5);
  --stage-ease: cubic-bezier(.23,1,.32,1);
}

body { background: #FFFFFF; }
:focus-visible { outline-color: var(--ink); }
.btn.is-focus { outline-color: var(--ink); }

/* Full-bleed helper: paints an element's field edge to edge without changing its layout box */
.hero, .page-head, body.pd-page[data-series] #main > .wrap:first-child, #home-shelf, #rel-shelf {
  box-shadow: 0 0 0 100vmax var(--field, transparent); clip-path: inset(0 -100vmax);
}

/* ---------- Colour fields: every token flips to white type inside them ---------- */
.hero, .sec--band, .collection-row, .inside, .cell, .own > div + div, .site-foot, .drawer__head, .page-head,
.stage, body.pd-page[data-series] #main > .wrap:first-child {
  --ink: #FFFFFF;
  --ink-2: rgba(255,255,255,.9);
  --rule: rgba(255,255,255,.34);
  --shadow-object: var(--shadow-field);
  --shadow-object-lift: var(--shadow-field);
  color: #FFFFFF;
}

/* ---------- Buttons ---------- */
.btn { --bg: #14161A; --fg: #FFFFFF; --bd: #14161A; }
.btn--secondary { --bg: transparent; --fg: var(--ink); --bd: var(--ink); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: transparent; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover, .btn.is-hover { --bg: #2F4BD8; --bd: #2F4BD8; --fg: #FFFFFF; }
  .btn--secondary:hover, .btn--secondary.is-hover { --bg: #14161A; --fg: #FFFFFF; --bd: #14161A; }
  .btn--ghost:hover, .btn--ghost.is-hover { --bg: transparent; --bd: transparent; --fg: #2F4BD8; }
}
.btn:disabled, .btn[aria-disabled="true"], .btn.is-disabled { --bg: #FFFFFF; --fg: #6B7079; --bd: #CDD1D6; }
.btn--ghost:disabled, .btn--ghost.is-disabled { --bg: transparent; --bd: transparent; }
.btn.is-added { --bg: #0E5A43; --bd: #0E5A43; --fg: #FFFFFF; }

/* On a field: white primary with ink text, white outline secondary */
:where(.hero, .sec--band, .collection-row, .inside, .own > div + div, .site-foot, .drawer__head, .page-head, .stage, .pd-page[data-series] #main > .wrap:first-child) .btn { --bg: #FFFFFF; --fg: #14161A; --bd: #FFFFFF; }
:where(.hero, .sec--band, .collection-row, .inside, .own > div + div, .site-foot, .drawer__head, .page-head, .stage, .pd-page[data-series] #main > .wrap:first-child) .btn--secondary { --bg: transparent; --fg: #FFFFFF; --bd: rgba(255,255,255,.92); }
:where(.hero, .sec--band, .collection-row, .inside, .own > div + div, .site-foot, .drawer__head, .page-head, .stage, .pd-page[data-series] #main > .wrap:first-child) .btn--ghost { --bg: transparent; --fg: #FFFFFF; --bd: transparent; }
@media (hover: hover) and (pointer: fine) {
  :where(.hero, .sec--band, .collection-row, .inside, .own > div + div, .site-foot, .drawer__head, .page-head, .stage, .pd-page[data-series] #main > .wrap:first-child) .btn:hover { --bg: #14161A; --fg: #FFFFFF; --bd: #14161A; }
  :where(.hero, .sec--band, .collection-row, .inside, .own > div + div, .site-foot, .drawer__head, .page-head, .stage, .pd-page[data-series] #main > .wrap:first-child) .btn--secondary:hover { --bg: #FFFFFF; --fg: #14161A; --bd: #FFFFFF; }
  :where(.hero, .sec--band, .collection-row, .inside, .own > div + div, .site-foot, .drawer__head, .page-head, .stage, .pd-page[data-series] #main > .wrap:first-child) .btn--ghost:hover { --bg: transparent; --bd: transparent; --fg: #FFFFFF; }
}
:where(.hero, .sec--band, .collection-row, .inside, .own > div + div, .site-foot, .drawer__head, .page-head, .stage, .pd-page[data-series] #main > .wrap:first-child) .btn:disabled { --bg: transparent; --fg: rgba(255,255,255,.5); --bd: rgba(255,255,255,.3); }
:where(.hero, .sec--band, .collection-row, .inside, .own > div + div, .site-foot, .drawer__head, .page-head, .stage, .pd-page[data-series] #main > .wrap:first-child) .btn.is-added { --bg: #14161A; --fg: #FFFFFF; --bd: #14161A; }

/* ---------- Header, account, sheet, drawer, loader ---------- */
.site-head { background: #FFFFFF; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-head.is-stuck { border-bottom-color: var(--rule); }
@media (hover: hover) and (pointer: fine) {
  .head__btn:hover { border-color: var(--ui); }
  .icon-btn:hover { border-color: var(--ui); }
  .acct__pop a:hover { background: transparent; box-shadow: inset 2px 0 0 #2F4BD8; color: #2F4BD8; }
  .drawer__head .icon-btn:hover { border-color: rgba(255,255,255,.7); }
}
.acct__pop { background: #FFFFFF; border-color: var(--rule); }

.sheet { background: #FFFFFF; }
.sheet__series a[href$="series=work"] { background: var(--f-ochre); color: #FFFFFF; }

.drawer { background: #FFFFFF; box-shadow: -24px 0 60px -30px rgba(20,22,26,.4); }
.drawer__head { background: var(--f-cobalt); border-bottom: 0; }
.nudge { background: #FFFFFF; border: 1px solid var(--rule); border-left: 3px solid var(--f-verm); }

.loader { background: var(--f-cobalt); }
.loader svg circle:first-child { fill: #FFFFFF; }
.loader svg path { fill: var(--f-cobalt); }
.loader svg .dot { fill: #FFFFFF; }

/* ---------- Covers, spines, box art: crisp white, never off-white ---------- */
.cover__foot svg path, .cover__foot svg circle,
.spine__foot svg path, .spine__foot svg circle,
.boxset__box svg path, .boxset__box svg circle { fill: #FFFFFF; }
.cover__top span:last-child { opacity: 1; }   /* the edition code stays AA on every series colour */
.cover--box { --on: #FFFFFF; }
.cover--box .cover__base { background: #0B0C0F; }
.spine--box { background: linear-gradient(to bottom, #14161A 0 79%, #0B0C0F 79% 100%); --on: #FFFFFF; }
.boxset__box { background: #14161A; color: #FFFFFF; }
.save { background: #14161A; color: #FFFFFF; }
.badge--fill { background: #14161A; color: #FFFFFF; }
.bookend { color: var(--ink); }

/* ---------- Home: cobalt hero ---------- */
.hero { --field: var(--f-cobalt); background: var(--f-cobalt); }
.hero .lead { color: rgba(255,255,255,.92); }

/* ---------- The shelf stage: the field takes the colour of the book you pull out ----------
   (press.js writes data-open on the shelf root; on phones it follows the card in view) */
#home-shelf, #rel-shelf, #shop-shelf { --field: var(--f-ink); }
:is(#home-shelf, #rel-shelf, #shop-shelf)[data-open="business"] { --field: var(--f-cobalt); }
:is(#home-shelf, #rel-shelf, #shop-shelf)[data-open="money"] { --field: var(--f-verm); }
:is(#home-shelf, #rel-shelf, #shop-shelf)[data-open="marketing"] { --field: var(--f-green); }
:is(#home-shelf, #rel-shelf, #shop-shelf)[data-open="work"] { --field: var(--f-ochre); }
:is(#home-shelf, #rel-shelf, #shop-shelf)[data-open="create"] { --field: var(--f-plum); }
:is(#home-shelf, #rel-shelf, #shop-shelf)[data-open="bundle"] { --field: var(--f-verm); }
#home-shelf, #rel-shelf, #shop-shelf {
  --ink: #FFFFFF; --ink-2: rgba(255,255,255,.92); --rule: rgba(255,255,255,.36);
  --shadow-object: var(--shadow-field); --shadow-object-lift: var(--shadow-field);
  color: #FFFFFF; background: var(--field);
  padding-top: 56px; padding-bottom: 64px;
  transition: background-color 700ms var(--stage-ease), box-shadow 700ms var(--stage-ease);
}
#shop-shelf { padding: 48px 44px 56px; border-radius: var(--r); }
:where(#home-shelf, #rel-shelf, #shop-shelf) .btn--secondary { --bg: transparent; --fg: #FFFFFF; --bd: rgba(255,255,255,.92); }
@media (hover: hover) and (pointer: fine) {
  :where(#home-shelf, #rel-shelf, #shop-shelf) .btn--secondary:hover { --bg: #FFFFFF; --fg: #14161A; --bd: #FFFFFF; }
}
:is(#home-shelf, #rel-shelf, #shop-shelf) .series-text, :is(#home-shelf, #rel-shelf, #shop-shelf) .label { color: #FFFFFF; }
:is(#home-shelf, #rel-shelf, #shop-shelf) .shelf__row::after { background: color-mix(in srgb, var(--field) 35%, #07080B); height: 3px; }
:is(#home-shelf, #rel-shelf, #shop-shelf) .shelf__board { background: linear-gradient(to bottom, rgba(6,8,16,.32), rgba(6,8,16,0)); }
:is(#home-shelf, #rel-shelf, #shop-shelf) .book::after { background: radial-gradient(closest-side, rgba(6,8,16,.45), rgba(6,8,16,0)); }
:is(#home-shelf, #rel-shelf, #shop-shelf) .spine { box-shadow: 0 0 0 1px rgba(255,255,255,.34); }
:is(#home-shelf, #rel-shelf, #shop-shelf) .book.is-open .book__cover { box-shadow: var(--keyline), 0 30px 50px -18px rgba(6,8,16,.55); }
:is(#home-shelf, #rel-shelf, #shop-shelf) :focus-visible .cover, :is(#home-shelf, #rel-shelf, #shop-shelf) .book:focus-visible .spine { outline-color: #FFFFFF; }
:is(#home-shelf, #rel-shelf, #shop-shelf) .snapcard__m b { color: #FFFFFF; }
@media (max-width: 767px) {
  #home-shelf, #rel-shelf { padding-top: 32px; padding-bottom: 12px; }
  #shop-shelf { padding: 28px 20px 8px; margin: 0 -20px; border-radius: 0; }
}

/* ---------- Home: the series ledger, each cell a field in its series colour ---------- */
.ledger { border: 0; background: transparent; --rule: #FFFFFF; }
.ledger > * { border-left-width: 3px; border-top-width: 3px; }
.ledger__intro { border: 0 !important; padding: 8px 48px 8px 0; }
.ledger__intro, .ledger__intro h2 { color: #14161A; }
.ledger__intro p { color: #4A4F57; }
.cell { background: var(--s); transition: background-color 300ms ease, filter 300ms ease; }
.cell[href$="series=work"] { background: var(--f-ochre); }
.cell__meta, .cell__meta .i { color: #FFFFFF; }
.cell__stack i { box-shadow: 0 0 0 1px rgba(255,255,255,.62), 0 3px 6px -2px rgba(6,8,16,.35); }
.cell__wash { background: color-mix(in srgb, var(--s) 40%, #0B0C0F); }
.cell[href$="series=work"] .cell__wash { background: color-mix(in srgb, #8A6A00 40%, #0B0C0F); }
@media (hover: hover) and (pointer: fine) { .cell:hover { filter: saturate(1.12) brightness(1.04); } }
@media (max-width: 1180px) { .ledger__intro { padding: 0 0 36px; } }
@media (max-width: 767px) { .ledger__intro { padding: 0 0 28px; } .ledger > * { border-left-width: 2px; border-top-width: 2px; } }

/* ---------- Collection: its own vermilion stage ---------- */
.sec--band { background: var(--f-verm); }
.collection-row { background: var(--f-verm); }
:where(.sec--band, .collection-row) .bundle__list li i { box-shadow: 0 0 0 1px rgba(255,255,255,.85); }
:where(.sec--band, .collection-row) .bundle__list { border-top-color: #FFFFFF; }
:where(.sec--band, .collection-row) .label { color: #FFFFFF; }

/* ---------- How it works: one series colour per step ---------- */
.steps > .step:nth-child(2) { --sc: var(--f-cobalt); }
.steps > .step:nth-child(3) { --sc: var(--f-verm); }
.steps > .step:nth-child(4) { --sc: var(--f-green); }
.step__n { color: var(--sc); }
.steps > .step .step__node { background: var(--sc); border: 2px solid #FFFFFF; box-shadow: 0 0 0 1.5px var(--sc); }

/* ---------- Beacon Library: plum ---------- */
#library.sec--band { background: var(--f-plum); }
.library__card { background: #FFFFFF; --ink: #14161A; --ink-2: #4A4F57; --rule: #E1E3E6; color: #14161A; }
.library__card .rows p { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; height: 34px; margin: 0; line-height: 33px; font-size: 13.5px; color: var(--ink); }
.library__card .rows p span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.library__card .rows p span:last-child { color: var(--ink-2); }
.library__stamp { border-color: var(--f-plum); color: var(--f-plum); }

/* ---------- Footer: ink ---------- */
.site-foot { background: var(--f-ink); border-top: 0; --ink-2: #B4BAC2; --rule: rgba(255,255,255,.16); }
.demo-note { color: #FFFFFF; }
/* Brand, then Shop, Series, Help and Legal in four even columns; the base row reads left to right on one rule. */
.foot__grid { grid-template-columns: minmax(0, 1.7fr) repeat(4, minmax(0, 1fr)); column-gap: 40px; }
.foot__brand .foot__help { color: var(--ink-2); }
.foot__grid .foot__mail { display: inline; min-height: 0; color: #FFFFFF; font-size: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.foot__base { align-items: center; padding-top: 24px; border-top: 1px solid var(--rule); }
.foot__base p { margin: 0; }
.foot__credit a { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (max-width: 1180px) { .foot__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 40px; } .foot__brand { grid-column: 1 / -1; } }
@media (max-width: 767px) {
  .foot__grid { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .foot__base { flex-direction: column; align-items: flex-start; gap: 10px; }
}
/* Contact: a quiet label, the address on its own line, the reply promise under it. */
.foot__contact { display: grid; gap: 4px; justify-items: start; margin-top: 4px; }
.foot__brand .foot__contact p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.foot__brand .foot__contact-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.foot__grid .foot__contact .foot__mail { display: inline-flex; align-items: center; min-height: 44px; font-size: 17px; font-weight: 600; line-height: 1.3; text-decoration-thickness: 1px; }
/* Base row: three blocks on one rule (legal left, address centre, credits right); stacked below 1024px. */
.foot__base { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); column-gap: 32px; row-gap: 12px; flex-wrap: initial; justify-content: initial; }
.foot__base-l { display: grid; gap: 8px; justify-items: start; }
.foot__base-c { text-align: center; }
.foot__base-r { justify-self: end; text-align: right; }
.foot__nb { white-space: nowrap; }
.foot__addr { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: rgba(255,255,255,.35); }
.foot__base .bp-consent-link { background: none; border: 0; padding: 0; font: inherit; color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; cursor: pointer; }
.foot__base a:focus-visible, .foot__base .bp-consent-link:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .foot__addr:hover { color: #FFFFFF; text-decoration-color: currentColor; } }
@media (max-width: 1023px) {
  .foot__base { grid-template-columns: 1fr; row-gap: 14px; }
  .foot__base-c, .foot__base-r { justify-self: start; text-align: left; }
}
@media (max-width: 767px) {
  .foot__base { display: grid; row-gap: 16px; padding-top: 28px; }
  .foot__base-l p { line-height: 1.7; }
  .foot__base-l .foot__nb + .foot__sep { display: none; }
  .foot__base-l .foot__nb:last-child { display: block; }
  .foot__base a, .foot__base .bp-consent-link { display: inline-block; padding: 6px 0; }
}

/* ---------- Shop: the page head takes the chosen series' colour (shop.js writes body[data-series]) ---------- */
body { --head-c: var(--f-ink); }
body[data-series="business"] { --head-c: var(--f-cobalt); }
body[data-series="money"] { --head-c: var(--f-verm); }
body[data-series="marketing"] { --head-c: var(--f-green); }
body[data-series="work"] { --head-c: var(--f-ochre); }
body[data-series="create"] { --head-c: var(--f-plum); }
.page-head {
  --field: var(--head-c); background: var(--head-c);
  margin-bottom: 48px; padding-top: 72px; padding-bottom: 64px;
  transition: background-color 700ms var(--stage-ease), box-shadow 700ms var(--stage-ease);
}
.page-head .lead { color: #FFFFFF; }
@media (max-width: 767px) { .page-head { padding-top: 40px; padding-bottom: 36px; margin-bottom: 28px; } }

.tab { background: #FFFFFF; border-color: var(--ui); }
.tab[data-series="work"]::before { background: var(--f-ochre); }
.tab[aria-pressed="true"], .tab[aria-pressed="true"] span:last-child { color: #FFFFFF; }
.select select { background: #FFFFFF; border-color: var(--ui); }
.seg button[aria-pressed="true"] { background: #14161A; color: #FFFFFF; }

/* ---------- Product: the whole edition is set in its series colour (product.js writes body[data-series]) ---------- */
body.pd-page { --series-fill: var(--f-ink); --series-text: var(--f-ink); }
body.pd-page[data-series="business"] { --series-fill: var(--f-cobalt); --series-text: var(--f-cobalt); }
body.pd-page[data-series="money"] { --series-fill: var(--f-verm); --series-text: var(--f-verm); }
body.pd-page[data-series="marketing"] { --series-fill: var(--f-green); --series-text: var(--f-green); }
body.pd-page[data-series="work"] { --series-fill: var(--f-ochre); --series-text: var(--f-ochre); }
body.pd-page[data-series="create"] { --series-fill: var(--f-plum); --series-text: var(--f-plum); }
body.pd-page { --series-deep: color-mix(in srgb, var(--series-fill) 42%, #0B0C0F); }

body.pd-page[data-series] #main > .wrap:first-child { --field: var(--series-fill); background: var(--series-fill); }
body.pd-page[data-series="work"] #main > .wrap:first-child { --ink-2: #FFFFFF; }
body.pd-page[data-series] .pd__series .label { color: #FFFFFF; }
body.pd-page[data-series] .badge--demo { color: #FFFFFF; border-color: rgba(255,255,255,.85); }
body.pd-page[data-series] .pd__tilt .cover { box-shadow: 0 0 0 1px rgba(255,255,255,.45), 0 2px 3px rgba(6,8,16,.26), 0 26px 44px -14px rgba(6,8,16,.46), 0 64px 100px -34px rgba(6,8,16,.52); }
body.pd-page[data-series] .buybox { border-top: 1.5px solid #FFFFFF; }
body.pd-page[data-series] .help__mark { color: #FFFFFF; }
body.pd-page[data-series] .checklist .i { color: #FFFFFF; }
body.pd-page[data-series] .manifest { background: transparent; }
body.pd-page[data-series] .placeholder-note { border-color: rgba(255,255,255,.8); }

/* Licence chooser on the field: an outlined option; the chosen one becomes a white card with ink type */
.lic { background: #FFFFFF; border-color: var(--ui); transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease, box-shadow 220ms ease; }
.lic input { background: transparent; border-color: var(--ink); }
.lic input::after { background: var(--series-text, #14161A); }
.lic:has(input:checked) { border-color: var(--series-text, #14161A); box-shadow: inset 0 0 0 1px var(--series-text, #14161A); }
body.pd-page[data-series] .lic { background: transparent; border-color: rgba(255,255,255,.75); }
body.pd-page[data-series] .lic:has(input:checked) {
  --ink: #14161A; --ink-2: #4A4F57; color: #14161A;
  background: #FFFFFF; border-color: #FFFFFF; box-shadow: 0 1px 2px rgba(6,8,16,.2), 0 16px 30px -16px rgba(6,8,16,.5);
}
@media (hover: hover) and (pointer: fine) { body.pd-page[data-series] .lic:not(:has(input:checked)):hover { border-color: #FFFFFF; box-shadow: inset 0 0 0 1px #FFFFFF; } }

.buybox { border-top: 1.5px solid #14161A; }
.checklist .i, .own ul .i { color: var(--series-text, #14161A); }
.manifest { background: #FFFFFF; }
.ext { background: transparent; box-shadow: inset 0 0 0 1px currentColor; }

/* Look inside: a deep shade of the series colour; the book is bound in the series colour */
.inside { background: var(--series-deep, #14161A); }
.inside .spread { --ink: #14161A; --ink-2: #4A4F57; --rule: #E1E3E6; color: #14161A; }
.spread::before { background: var(--series-fill, #14161A); box-shadow: 0 2px 3px rgba(0,0,0,.3), 0 34px 64px -22px rgba(0,0,0,.6); }
.pg--board { background: var(--series-fill, #14161A); color: #FFFFFF; }
.pg--board svg { color: #FFFFFF; }
.pg--board svg .dot { fill: #FFFFFF; }
.ip__script { background: #FFFFFF; }
.inside .book3d:focus-visible { outline-color: #FFFFFF; }

/* Ways to own it: the Library half is plum */
.own { background: #FFFFFF; }
.own > div + div { background: var(--f-plum); border-left: 0; }
.own > div + div .label { color: #FFFFFF; }
.own > div + div .badge { border-color: #FFFFFF; color: #FFFFFF; }
@media (max-width: 767px) { .own > div + div { border-top: 0; } }

/* Sticky add bar */
.mbar { background: #FFFFFF; backdrop-filter: none; -webkit-backdrop-filter: none; border-top-color: var(--rule); box-shadow: 0 -10px 24px -18px rgba(6,8,16,.4); }

/* ---------- Brand page: no tinted panels ---------- */
.motion__stage { background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--rule); }
.logo-matrix > .mh, .logo-matrix > .rh { background: #FFFFFF; }
.field input { background: #FFFFFF; border-color: var(--ui); }

/* ---------- Colour motion is calm: with reduced motion, fields change at once ---------- */
@media (prefers-reduced-motion: reduce) {
  #home-shelf, #rel-shelf, #shop-shelf, .page-head, .cell, .lic { transition-duration: 1ms !important; }
}

/* 100vw bands include the scrollbar width; clip so the page never scrolls sideways */
html { overflow-x: clip; }

/* Shelf too full to stand beside its caption (press.js adds .is-stacked): use the layout the design already has below
   1180px, shelf full width with the caption under it, so the open cover never covers the caption (27 Oct 2026). */
.shelf-sec__grid.is-stacked { grid-template-columns: minmax(0, 1fr); }
/* The shelf carousel (27 Oct 2026). When the whole catalogue is wider than the stage, the shelf scrolls inside the
   framed stage: no browser scrollbar, a soft fade on any edge that still has books beyond it, quiet previous and next
   controls on the stage, and room after the last book. Room above keeps a lifted book from being cut. */
.shelf-sec__grid.is-stacked .shelf-host { overflow-x: auto; overflow-y: hidden; padding-top: 28px; margin-top: -28px; overscroll-behavior-x: contain; scrollbar-width: none; scroll-behavior: smooth; }
.shelf-sec__grid.is-stacked .shelf-host::-webkit-scrollbar { display: none; }
.shelf-sec__grid.is-carousel .shelf__row { padding-right: 64px; }
.shelf-sec__grid.is-carousel .shelf-host { --fade: 64px; }
.shelf-sec__grid.is-carousel .shelf-host.more-right { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--fade)), transparent); mask-image: linear-gradient(to right, #000 calc(100% - var(--fade)), transparent); }
.shelf-sec__grid.is-carousel .shelf-host.more-left { -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade)); mask-image: linear-gradient(to right, transparent, #000 var(--fade)); }
.shelf-sec__grid.is-carousel .shelf-host.more-left.more-right { -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent); mask-image: linear-gradient(to right, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent); }
.shelf-sec__grid.is-carousel { position: relative; }
.shelf-nav { position: absolute; z-index: 30; top: var(--nav-y, 40%); width: 44px; height: 44px; margin-top: -22px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: rgba(255,255,255,.94); color: #14161A; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.22); transition: opacity 200ms ease, transform 200ms var(--ease-out); }
.shelf-nav .i { width: 20px; height: 20px; }
.shelf-nav--prev { left: 16px; } .shelf-nav--prev .i { transform: rotate(90deg); }
.shelf-nav--next { right: 16px; } .shelf-nav--next .i { transform: rotate(-90deg); }
.shelf-nav:disabled { opacity: 0; pointer-events: none; }
.shelf-nav[hidden] { display: none; }
.shelf-nav:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .shelf-nav:hover { transform: scale(1.06); } }
.shelf-sec__grid.is-stacked .shelf-caption { grid-template-columns: minmax(0, 1fr) auto; column-gap: 40px; }
.shelf-sec__grid.is-stacked .shelf-caption > .shelf-caption__buy { grid-column: 2; grid-row: 1 / span 4; align-self: end; flex-direction: column; align-items: flex-end; }

/* ---------- Visual review fixes (27 Oct 2026, rendered at 1260, 1366, 1440, 1920, tablet and phone) ----------
   Within the approved design: whole spine titles, a balanced series intro, an even run of spines on every card,
   carousel controls that never sit on a sharp book, equal space at both ends of the shelf. */
.spine__title { font-size: calc(var(--h) * .05); margin-top: 10px; }
.spine--box .spine__title { white-space: normal; text-wrap: balance; }
.book.is-open .book__spine .spine__title, .book.is-open .book__spine .spine__code { opacity: 0; transition: opacity 120ms ease; }
.ledger__intro h2 { text-wrap: balance; }
.ledger__intro { padding-top: 0; padding-bottom: 0; }
.ledger__intro .btn { margin-top: 12px; }
.cell__stack { gap: 3px; }
.cell--all .cell__stack i { box-shadow: 0 3px 6px -2px rgba(6,8,16,.35); }
.cell--all .cell__stack i:nth-child(n+19) { display: none; }
@media (max-width: 599px) { .cell--all .cell__stack i:nth-child(n+13) { display: none; } }
.shelf-sec__grid.is-carousel .shelf-host { --fade: 88px; }
.shelf-sec__grid.is-carousel .shelf__row { padding-right: 0; }
.shelf-nav--prev { left: 22px; } .shelf-nav--next { right: 22px; }
.shelf-caption__sub { text-wrap: pretty; }

/* PERFORMANCE, 28 Oct 2026: sections below the first screen are not rendered until they come near the viewport.
   Every studio book is dozens of layers (spine, cover, light, shadows), and Chrome re-layered the whole page on every
   animation frame of the opening; skipping off-screen sections cut that work by about 70% on phones (CDP traces).
   Measured side effect: text in some of these sections is drawn up to half a CSS pixel higher (sub-pixel rounding of
   the contained section); nothing else moves. Delete these two lines to undo it (wordpress/qa/perf-2026-10-28).
   "auto" remembers each section's real height once it has been drawn; the figures are only first-visit estimates. */
main > section.sec:not(.hero), main section#collection, .site-foot { content-visibility: auto; contain-intrinsic-size: auto 900px; }
@media (min-width: 768px) { main > section.sec:not(.hero), main section#collection, .site-foot { contain-intrinsic-size: auto 750px; } }

/* Footer social links: 44px square targets in the press's 2px radius, line icons, quiet border that firms up on hover. 28 Oct 2026. */
.foot__social { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 0; padding: 0; list-style: none; }
.foot__grid .foot__social a { width: 44px; height: 44px; min-height: 44px; display: inline-grid; place-items: center; color: #FFFFFF; border: 1px solid var(--rule); border-radius: var(--r); text-decoration: none; transition: border-color .18s ease, background-color .18s ease, color .18s ease; }
.foot__social .i { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { .foot__grid .foot__social a:hover { text-decoration: none; border-color: #FFFFFF; background: rgba(255,255,255,.06); } }
.foot__grid .foot__social a:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; }
.foot__grid .foot__social a:active { transform: scale(.96); }
@media (prefers-reduced-motion: reduce) { .foot__grid .foot__social a { transition: none; } .foot__grid .foot__social a:active { transform: none; } }

/* Manrope draws "(c)" as a copyright sign (its liga feature). Legal text quotes "(c)" paragraphs, so ligatures are off. 28 Oct 2026. */
body { font-variant-ligatures: none; }
