/* =========================================================================
   Public site styles
   Tokens: black, ink, paper, mist, rule, accent (orange, admin-editable) with accessible
   accent-text for links and accent-ink for text on orange. Set in inc/layout.php.
   Type: Newsreader (headings, covers), Public Sans (UI and body)
   ========================================================================= */

:root {
  --black: #000000;
  --ink: #1A1A1A;
  --ink-2: #3D3D3D;
  --muted: #5E5E5E;
  --paper: #FFFFFF;
  --mist: #F4F4F4;
  --rule: #E0E0E0;
  --saffron: var(--accent);
  --saffron-soft: var(--accent-soft);
  --danger: #B42318;
  --success: #12704A;
  --accent: #FF6F00;
  --accent-ink: #1A1A1A;
  --accent-text: #B54700;
  --accent-soft: #FFF1E5;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-s: 4px;
  --radius-m: 8px;
  --shadow-cover: 0 1px 1px rgba(28, 34, 48, .12), 0 8px 18px -6px rgba(28, 34, 48, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 62ch; }

/* --- Buttons ------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: var(--radius-s); border: 2px solid transparent; font: 600 .95rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 85%, #000); }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--lg { min-height: 52px; padding: 14px 26px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.btn-row--centre { justify-content: center; }
.text-link { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }
.linklike { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; font: inherit; color: inherit; text-align: left; }

/* --- Promo strip and header ------------------------------------------------ */
.promo { background: var(--black); color: #fff; text-align: center; font-size: .875rem; padding: 8px var(--gutter); }
.promo a { text-decoration: none; }
.promo a:hover { text-decoration: underline; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--rule); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { height: var(--logo-h, 44px); max-height: var(--logo-h, 44px); width: auto; max-width: 260px; object-fit: contain; }
.brand--footer img { height: auto; max-height: 56px; }
.brand-mark { width: 22px; height: 30px; background: var(--accent); border-radius: 2px 6px 6px 2px; box-shadow: inset 4px 0 0 rgba(0,0,0,.18); position: relative; }
.brand-mark::after { content: ""; position: absolute; left: 9px; right: 4px; top: 6px; height: 2px; background: var(--ink); box-shadow: 0 5px 0 var(--saffron); }
.brand-name { font: 600 1.35rem/1 var(--serif); letter-spacing: -.01em; }

.primary-nav { flex: 1; }
.nav-list { display: flex; gap: 4px; }
.nav-link { display: block; background: none; border: 0; padding: 24px 12px; font: 500 .95rem/1 var(--sans); text-decoration: none; cursor: pointer; border-bottom: 3px solid transparent; }
.nav-link:hover, .nav-link[aria-expanded="true"] { border-bottom-color: var(--accent); }
.has-mega > .nav-link::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); box-shadow: 0 24px 40px -24px rgba(28,34,48,.25); padding: 32px 0 40px; display: none; }
.has-mega.open > .mega { display: block; }
.mega-grid { display: grid; grid-template-columns: 1fr 2fr 1.3fr; gap: 40px; }
.mega-col h3, .mega-promo h3 { font: 600 .8rem/1 var(--sans); color: var(--muted); margin-bottom: 16px; letter-spacing: .02em; }
.mega-col li a { display: inline-block; padding: 6px 0; text-decoration: none; }
.mega-col li a:hover { color: var(--accent-text); text-decoration: underline; }
.two-col { columns: 2; column-gap: 32px; }
.mega-feature { display: flex; gap: 16px; align-items: flex-end; text-decoration: none; background: var(--mist); padding: 20px; border-radius: var(--radius-m); }
.mega-feature strong { display: block; font: 500 1.2rem/1.2 var(--serif); margin: 4px 0; }
.mega-feature-kicker { font-size: .8rem; color: var(--accent-text); font-weight: 600; }
.mega-promo { grid-column: span 2; background: var(--saffron-soft); padding: 28px; border-radius: var(--radius-m); }
.mega-promo h3 { font: 500 1.5rem/1.2 var(--serif); color: var(--ink); letter-spacing: -.01em; }
.nav-mobile-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.icon-btn:hover { background: var(--mist); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 12px 10px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

.site-search { border-top: 1px solid var(--rule); background: var(--mist); padding: 16px 0; }
.site-search .wrap { display: flex; gap: 12px; }
.site-search input { flex: 1; min-height: 48px; padding: 10px 16px; font: inherit; font-size: 1.05rem; border: 1px solid var(--rule); border-radius: var(--radius-s); }

.flash { padding: 14px 0; font-weight: 500; }
.flash--success { background: #E6F4EE; color: var(--success); }
.flash--error { background: #FDECEA; color: var(--danger); }

/* --- Book covers -------------------------------------------------------- */
.cover { display: block; position: relative; aspect-ratio: 2 / 3; width: 100%; border-radius: 2px 4px 4px 2px; overflow: hidden; box-shadow: var(--shadow-cover); background: var(--mist); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover .cover-remote { position: absolute; inset: 0; z-index: 2; background: var(--c, var(--mist)); }
.cover::after { z-index: 3; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.22) 0, rgba(255,255,255,.12) 3%, rgba(0,0,0,0) 7%); pointer-events: none; }
.cover--gen { background: var(--c); color: var(--t); display: flex; flex-direction: column; justify-content: flex-end; padding: 10% 10% 12% 14%; container-type: inline-size; }
.cover-title { font: 500 1rem/1.05 var(--serif); font-size: 13cqi; letter-spacing: -.01em; position: relative; z-index: 1; overflow-wrap: anywhere; }
.cover-author { font: 600 .7rem/1.2 var(--sans); font-size: 6.2cqi; margin-top: .5em; opacity: .85; position: relative; z-index: 1; }
.cover-art { position: absolute; inset: 0; }
.v0 .cover-art::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; left: 22%; top: 9%; border-radius: 50%; background: var(--saffron); mix-blend-mode: screen; opacity: .85; }
.v1 .cover-art { background: repeating-linear-gradient(0deg, transparent 0 9px, rgba(255,255,255,.14) 9px 11px); clip-path: inset(8% 0 52% 0); }
.v1 .cover-art::after { content: ""; position: absolute; left: 14%; right: 10%; top: 50%; height: 3px; background: var(--saffron); }
.v2 .cover-art { inset: 6%; left: 10%; border: 1.5px solid currentColor; opacity: .5; }
.v2 { justify-content: center; text-align: center; padding-left: 18%; padding-right: 14%; }
.v3 .cover-art::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 48%; background: rgba(255,255,255,.12); clip-path: polygon(0 0, 100% 0, 100% 62%, 0 100%); }
.v3 .cover-art::after { content: ""; position: absolute; width: 18%; aspect-ratio: 1; right: 12%; top: 12%; background: var(--saffron); transform: rotate(45deg); }

/* --- Hero --------------------------------------------------------------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 6vw, 80px); background: var(--mist); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -.025em; font-weight: 500; max-width: 13ch; }
.hero .lede { margin-top: 20px; }
.hero-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; border-top: 1px solid var(--rule); padding-top: 20px; font-size: .9rem; color: var(--ink-2); }
.hero-proof strong { display: block; font: 500 1.15rem/1.2 var(--serif); color: var(--ink); }
.hero-image { border-radius: var(--radius-m); }
.cover-fan { position: relative; height: clamp(320px, 38vw, 480px); }
.fan-item { position: absolute; top: 50%; left: 50%; width: 44%; transition: transform .25s ease; }
.fan-0 { transform: translate(-50%, -50%) rotate(0deg); z-index: 3; }
.fan-1 { transform: translate(-112%, -44%) rotate(-7deg); z-index: 2; }
.fan-2 { transform: translate(12%, -44%) rotate(7deg); z-index: 1; }
.fan-0:hover { transform: translate(-50%, -54%); }
.fan-1:hover { transform: translate(-112%, -48%) rotate(-7deg); }
.fan-2:hover { transform: translate(12%, -48%) rotate(7deg); }
.cover--lg { box-shadow: 0 2px 2px rgba(28,34,48,.12), 0 30px 50px -18px rgba(28,34,48,.45); }

/* --- Sections ----------------------------------------------------------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-title { font-size: clamp(1.75rem, 3.2vw, 2.5rem); margin: 0; }
.section-title--sm { font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin-bottom: 20px; }

.quick { padding: 48px 0; }
.quick-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick-list a { display: block; height: 100%; padding: 18px 20px; border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: var(--radius-s); text-decoration: none; transition: border-color .15s, background-color .15s; }
.quick-list a:hover { background: var(--mist); }
.quick-list strong { display: block; font: 500 1.15rem/1.25 var(--serif); margin-bottom: 4px; }
.quick-list span { font-size: .9rem; color: var(--muted); }

.top-books { padding: 56px 0; border-top: 1px solid var(--rule); }
.top-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(16px, 2.5vw, 32px); }
.top-list a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 4px; text-decoration: none; align-items: end; }
.rank { font: 500 clamp(4.5rem, 9vw, 7.5rem)/.75 var(--serif); color: transparent; -webkit-text-stroke: 2px var(--saffron); margin-right: -14px; position: relative; z-index: 0; align-self: end; padding-bottom: 6px; }
.top-list .cover { position: relative; z-index: 1; }
.top-meta { grid-column: 1 / -1; margin-top: 14px; font-size: .9rem; color: var(--muted); }
.top-meta strong { display: block; font: 500 1.05rem/1.25 var(--serif); color: var(--ink); }
.top-list a:hover strong { text-decoration: underline; }

.shelves { padding: 56px 0 72px; background: var(--mist); }
.shelves--genre { background: var(--paper); border-top: 1px solid var(--rule); }
.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--rule); margin-bottom: 28px; overflow-x: auto; scrollbar-width: none; }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 12px 4px; margin-right: 20px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.shelf { position: relative; }
.shelf-track { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(140px, 15vw, 180px); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 20px; scrollbar-width: thin; }
.shelf-track > * { scroll-snap-align: start; }
.shelf-nav { position: absolute; top: 34%; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule); background: var(--paper); font-size: 1.6rem; line-height: 1; cursor: pointer; z-index: 2; box-shadow: 0 4px 12px rgba(28,34,48,.12); }
.shelf-nav.prev { left: -18px; }
.shelf-nav.next { right: -18px; }
.shelf-nav[disabled] { opacity: 0; pointer-events: none; }
.shelf-more { display: inline-block; margin-top: 12px; }

.book-card a { display: block; text-decoration: none; }
.book-card h3 { font-size: 1.05rem; margin: 14px 0 2px; line-height: 1.25; }
.book-card a:hover h3 { text-decoration: underline; }
.book-author { font-size: .9rem; color: var(--ink-2); margin: 0; }
.book-meta { font-size: .8rem; color: var(--muted); margin: 2px 0 0; }

/* Lead band */
.lead-band { background: var(--black); color: #fff; padding: clamp(48px, 7vw, 88px) 0; }
.lead-band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.lead-band h2 { font-size: clamp(2rem, 4vw, 3rem); max-width: 16ch; }
.lead-band p { font-size: 1.1rem; opacity: .92; max-width: 52ch; }
.lead-band-form { background: var(--paper); color: var(--ink); padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-m); }
.ticks li { position: relative; padding-left: 30px; margin: 10px 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 9px; border-left: 2px solid var(--saffron); border-bottom: 2px solid var(--saffron); transform: rotate(-45deg); }

/* Features */
.features { padding: 72px 0 24px; }
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.feature { display: grid; grid-template-rows: auto 1fr; text-decoration: none; border: 1px solid var(--rule); border-radius: var(--radius-m); overflow: hidden; }
.feature-collage { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 32px 32px 0; background: var(--saffron-soft); align-items: end; }
.feature-collage .cover { transform: translateY(18%); }
.feature-copy { padding: 36px 32px 32px; background: var(--paper); position: relative; }
.feature h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.feature:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* Process */
.process { padding: 72px 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--ink); padding-top: 18px; }
.steps li::before { content: counter(step); display: block; font: 500 2.4rem/1 var(--serif); color: var(--accent-text); margin-bottom: 12px; }
.steps h3 { font-size: 1.3rem; }
.steps p { color: var(--ink-2); font-size: .95rem; }
.process-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 36px; padding: 24px; background: var(--mist); border-radius: var(--radius-m); }
.process-cta p { margin: 0; max-width: 56ch; font-size: .95rem; }

/* Categories */
.cats { padding: 24px 0 80px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.cat-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 160px; padding: 20px; background: var(--mist); color: var(--ink); border: 1px solid transparent; transition: border-color .15s; text-decoration: none; border-radius: var(--radius-m); overflow: hidden; isolation: isolate; }
.cat-tile:hover { border-color: var(--accent); }
.cat-tile .cat-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: .25; }
.cat-covers { display: flex; justify-content: center; align-items: flex-end; height: 132px; margin: 0 0 16px; }
.cat-covers .cover--tile { width: 74px; flex-shrink: 0; margin: 0 -10px; box-shadow: 0 6px 14px -4px rgba(0,0,0,.4); transition: transform .2s; }
.cat-covers .cover--tile:nth-child(1) { transform: rotate(-6deg) translateY(4px); }
.cat-covers .cover--tile:nth-child(2) { z-index: 2; width: 84px; }
.cat-covers .cover--tile:nth-child(3) { transform: rotate(6deg) translateY(4px); }
.cat-tile:hover .cover--tile:nth-child(2) { transform: translateY(-4px); }
.cat-name::after { content: ""; display: block; width: 28px; height: 3px; background: var(--accent); margin-top: 8px; }
.cat-name { font: 500 1.4rem/1.15 var(--serif); }
.cat-count { font-size: .85rem; opacity: .85; margin-top: 4px; }

/* Newsletter */
.newsletter { background: var(--accent); color: var(--accent-ink); padding: 48px 0; }
.newsletter-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.newsletter h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-bottom: 6px; max-width: 24ch; }
.newsletter p { margin: 0; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 10px; }
.newsletter-form input { flex: 1; min-width: 200px; min-height: 48px; padding: 10px 14px; border: 2px solid var(--ink); border-radius: var(--radius-s); font: inherit; background: #fff; }
.newsletter-form .form-msg { flex-basis: 100%; }

/* Footer */
.site-footer { background: var(--black); color: #CFCFCF; padding: 64px 0 24px; font-size: .95rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover, .site-footer .linklike:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h3 { font: 600 .85rem/1 var(--sans); color: #fff; margin-bottom: 18px; letter-spacing: .02em; }
.site-footer li { margin: 10px 0; }
.brand--footer .brand-name { color: #fff; }
.footer-brand p, .footer-brand address { margin: 16px 0 0; font-style: normal; color: #AEB5C1; }
.social { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 18px; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid #343B4B; color: #8D95A3; font-size: .85rem; }
.footer-base p { margin: 0; }
.footer-credits { flex-basis: 100%; font-size: .8rem; }
.footer-base ul { display: flex; gap: 20px; }

/* --- Forms -------------------------------------------------------------- */
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
label, .label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted); }
.hint { font-size: .85rem; color: var(--muted); margin: -2px 0 8px; }
.hint--centre { text-align: center; margin-top: 10px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #B9C0CA; border-radius: var(--radius-s);
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.field-error { color: var(--danger); font-size: .85rem; margin: 6px 0 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .88rem; margin: 6px 0 16px; cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--accent); }
.check--box { padding: 16px; background: var(--mist); border-radius: var(--radius-s); }
.radio-row { display: flex; flex-wrap: wrap; gap: 0 24px; }
.form-msg { margin: 10px 0 0; font-size: .9rem; font-weight: 500; }
.form-msg.is-error { color: var(--danger); }
.form-msg.is-ok { color: var(--success); }
.lead-form.is-done > :not(.form-msg) { display: none; }
.lead-form.is-done .form-msg { font-size: 1.05rem; padding: 24px; background: #E6F4EE; border-radius: var(--radius-s); }
.newsletter-form.is-done .form-msg { background: rgba(255,255,255,.6); }

/* --- Modal -------------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(28,34,48,.6); }
.modal-panel { position: relative; width: 100%; max-width: 620px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--paper); border-radius: var(--radius-m); padding: clamp(24px, 4vw, 40px); border-top: 6px solid var(--accent); animation: rise .2s ease-out; }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); padding-right: 32px; }
.modal-head p { color: var(--ink-2); }
.modal-close { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border: 0; background: none; font-size: 1.8rem; cursor: pointer; border-radius: 50%; }
.modal-close:hover { background: var(--mist); }
body.modal-open { overflow: hidden; }

/* --- Sticky CTA and WhatsApp --------------------------------------------- */
.sticky-cta { display: none; }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--wa, #25D366); color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.wa-float--left { right: auto; left: 20px; }
.wa-float img { width: 30px; height: 30px; object-fit: contain; }

/* --- Listing ------------------------------------------------------------ */
.listing-head, .page-head { padding: 40px 0 32px; background: var(--mist); border-bottom: 1px solid var(--rule); }
.listing-head h1, .page-head h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin-bottom: 12px; }
.page-head--centred { text-align: center; padding: 72px 0; }
.page-head--centred .lede { margin-left: auto; margin-right: auto; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.listing { padding: 40px 0 80px; }
.listing-grid { display: grid; grid-template-columns: 240px 1fr; gap: 48px; }
.filters h2 { font: 600 .85rem/1 var(--sans); color: var(--muted); margin: 0 0 12px; }
.filters ul { margin-bottom: 28px; }
.filters li a { display: block; padding: 6px 10px; margin-left: -10px; border-radius: var(--radius-s); text-decoration: none; }
.filters li a:hover { background: var(--mist); }
.filters li a[aria-current] { background: var(--ink); color: #fff; }
.filters-cta { padding: 20px; background: var(--saffron-soft); border-radius: var(--radius-m); font-size: .9rem; }
.listing-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.listing-bar p { margin: 0; color: var(--muted); }
.listing-bar form { display: flex; align-items: center; gap: 10px; }
.listing-bar label { margin: 0; white-space: nowrap; }
.listing-bar select { min-height: 40px; width: auto; }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 32px 24px; }
.book-grid--row { grid-template-columns: repeat(6, 1fr); }
.pager { display: flex; gap: 8px; margin-top: 40px; }
.pager a { display: grid; place-items: center; min-width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: var(--radius-s); text-decoration: none; }
.pager a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { padding: 48px 0; }
.empty--page { padding: 96px var(--gutter); text-align: center; }

/* --- Book detail -------------------------------------------------------- */
.book-hero { padding: 32px 0 56px; background: linear-gradient(180deg, var(--mist) 0 60%, var(--paper) 60%); }
.book-grid-detail { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.cover--xl { box-shadow: 0 2px 2px rgba(28,34,48,.12), 0 36px 60px -24px rgba(28,34,48,.5); }
.book-info h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); letter-spacing: -.02em; margin-bottom: 8px; }
.subtitle { font: italic 400 1.3rem/1.3 var(--serif); color: var(--ink-2); }
.byline { font-size: 1.1rem; margin-bottom: 24px; }
.byline a { color: var(--accent-text); font-weight: 600; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.badges li { background: var(--accent); color: var(--accent-ink); font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 20px; }
.prose { max-width: 66ch; }
.prose p, .prose li { font-size: 1.05rem; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.prose ol { list-style: decimal; padding-left: 1.3em; margin-bottom: 1em; }
.prose a { color: var(--accent-text); }
.prose blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 3px solid var(--saffron); font: italic 1.2rem/1.5 var(--serif); }
.prose--excerpt { font-family: var(--serif); }
.byline-pub { color: var(--muted); }
.data-note { font-size: .85rem; color: var(--muted); margin: 16px 0 0; }
.prose--excerpt p { font-size: 1.15rem; line-height: 1.75; }
.buy-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 28px 0; }
.price { font: 500 1.6rem/1 var(--serif); margin: 0 12px 0 0; }
.book-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; padding-top: 24px; border-top: 1px solid var(--rule); margin: 0; }
.book-facts dt { font-size: .8rem; color: var(--muted); }
.book-facts dd { margin: 2px 0 0; font-weight: 600; }
.book-body { padding: 24px 0 56px; }
.book-body-grid { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
.side-cta { background: var(--black); color: #fff; padding: 28px; border-radius: var(--radius-m); position: sticky; top: 96px; }
.side-cta h2 { font-size: 1.5rem; }
.side-cta p { color: #C9CFD8; }
.side-cta .btn + .btn { margin-top: 10px; }
.side-cta .btn--ghost { border-color: #fff; color: #fff; }
.side-cta .btn--ghost:hover { background: #fff; color: var(--ink); }
.side-cta--compact { position: static; margin-top: 24px; padding: 24px; }
.related { padding: 32px 0 56px; border-top: 1px solid var(--rule); }

/* --- Pages -------------------------------------------------------------- */
.page-body { padding: 48px 0 72px; }
.page-grid { display: grid; grid-template-columns: 1fr 300px; gap: 64px; align-items: start; }
.page-side nav { padding: 20px; border: 1px solid var(--rule); border-radius: var(--radius-m); }
.page-side h2 { font: 600 .85rem/1 var(--sans); color: var(--muted); margin-bottom: 12px; }
.page-side li a { display: block; padding: 6px 0; text-decoration: none; }
.page-side li a[aria-current] { font-weight: 700; color: var(--accent-text); }
.page-cta { margin-top: 56px; padding: clamp(28px, 4vw, 48px); background: var(--saffron-soft); border-radius: var(--radius-m); }
.page-cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.page-cta .btn-row { margin-bottom: 0; }

.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.card-panel { padding: clamp(20px, 3vw, 36px); border: 1px solid var(--rule); border-radius: var(--radius-m); }
.contact-details dl { margin: 0 0 24px; }
.contact-details dl > div { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.contact-details dt { font-size: .8rem; color: var(--muted); }
.contact-details dd { margin: 2px 0 0; }
.contact-details address { font-style: normal; }

/* --- Submission ----------------------------------------------------------- */
.submit-grid { display: grid; grid-template-columns: 1fr 360px; gap: 56px; align-items: start; }
.submit-form fieldset { border: 0; border-top: 1px solid var(--rule); margin: 0 0 12px; padding: 28px 0 8px; }
.submit-form legend { font: 500 1.5rem/1 var(--serif); padding: 0 12px 0 0; }
.file-drop { position: relative; border: 2px dashed #B9C0CA; border-radius: var(--radius-m); padding: 28px 20px; text-align: center; background: var(--mist); transition: border-color .15s, background-color .15s; }
.file-drop.is-over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, #fff); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.file-drop:focus-within { border-color: var(--accent); }
.file-drop-name { display: block; margin-top: 8px; font-weight: 600; color: var(--accent-text); }
.submit-side { position: sticky; top: 96px; }
.fee-card { padding: 28px; border: 2px solid var(--ink); border-radius: var(--radius-m); }
.fee-amount { font: 500 3.4rem/1 var(--serif); margin: 0; }
.fee-label { color: var(--muted); margin: 6px 0 16px; }
.fee-card .ticks li::before { border-color: var(--accent); }
.fee-secure { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; color: var(--muted); margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); }
.fee-secure svg { flex-shrink: 0; margin-top: 3px; }
.notice { padding: 24px; border-radius: var(--radius-m); background: var(--saffron-soft); margin-bottom: 24px; }
.notice h2 { font-size: 1.4rem; }
.notice p:last-child { margin-bottom: 0; }
.notice--error { background: #FDECEA; color: var(--danger); }
.success-mark { color: var(--success); display: flex; justify-content: center; margin-bottom: 16px; }
.receipt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0 16px; padding: 20px; border: 1px solid var(--rule); border-radius: var(--radius-m); text-align: left; }
.receipt dt { font-size: .8rem; color: var(--muted); }
.receipt dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }

/* --- Left-side lead form ------------------------------------------------------ */
.side-lead { display: none; }
@media (min-width: 961px) {
  .side-lead { display: block; position: fixed; left: 0; top: 50%; z-index: 44; transform: translateY(-50%); }
  .side-lead-tab { position: absolute; left: 0; top: 50%; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; padding: 18px 11px; border: 0; border-radius: 6px 0 0 6px; background: var(--accent); color: var(--accent-ink); font: 600 .9rem/1 var(--sans); cursor: pointer; box-shadow: 0 6px 18px rgba(28,34,48,.22); white-space: nowrap; }
  .side-lead-tab:hover { padding-right: 15px; }
  .side-lead.is-open .side-lead-tab { visibility: hidden; }
  .side-lead-panel { position: relative; width: 320px; max-height: calc(100vh - 140px); overflow-y: auto; background: var(--paper); border: 1px solid var(--rule); border-left: 0; border-top: 5px solid var(--accent); border-radius: 0 8px 8px 0; padding: 22px 22px 18px; box-shadow: 0 18px 40px -12px rgba(28,34,48,.35); animation: slide-in .2s ease-out; }
  .side-lead-panel h2 { font-size: 1.4rem; margin-bottom: 6px; padding-right: 24px; }
  .side-lead-panel > p { font-size: .9rem; color: var(--ink-2); margin-bottom: 12px; }
  .side-lead-close { position: absolute; right: 6px; top: 6px; width: 36px; height: 36px; border: 0; background: none; font-size: 1.5rem; cursor: pointer; border-radius: 50%; }
  .side-lead-close:hover { background: var(--mist); }
  .lead-form--compact label:not(.check) { font-size: .82rem; margin: 10px 0 4px; }
  .lead-form--compact input[type=text], .lead-form--compact input[type=email], .lead-form--compact input[type=tel], .lead-form--compact select { min-height: 40px; padding: 8px 10px; }
  .lead-form--compact .check { font-size: .8rem; margin: 12px 0; }
  body.modal-open .side-lead { visibility: hidden; }
}
@keyframes slide-in { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
body.submit-page .side-lead, body.thanks .side-lead { display: none; }

/* --- Cookie consent ----------------------------------------------------------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 720px; margin: 0 auto; display: flex; gap: 16px; align-items: center; padding: 16px 18px; background: var(--ink); color: #E6E9EE; border-radius: var(--radius-m); box-shadow: 0 16px 40px rgba(0,0,0,.3); font-size: .9rem; }
.consent[hidden] { display: none; }
.consent p { margin: 0; }
.consent a { color: #fff; }
.consent-actions { display: flex; gap: 8px; flex-shrink: 0; }
.consent .btn { min-height: 40px; padding: 8px 14px; }
.consent .btn--ghost { border-color: #fff; color: #fff; }
.consent .btn--ghost:hover { background: #fff; color: var(--ink); }

/* --- Responsive ------------------------------------------------------------ */
@media (max-width: 1100px) {
  .top-list { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; padding-bottom: 12px; }
  .book-grid--row { grid-template-columns: repeat(4, 1fr); }
  .hide-sm { display: none; }
}
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .header-row { gap: 12px; min-height: 64px; }
  .primary-nav { position: absolute; left: 0; right: 0; top: 100%; height: calc(100vh - 64px); height: calc(100dvh - 64px); background: var(--paper); overflow-y: auto; padding: 8px var(--gutter) 32px; display: none; border-top: 1px solid var(--rule); }
  .primary-nav.open { display: block; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--rule); }
  .nav-link { width: 100%; text-align: left; padding: 18px 0; border-bottom: 0; font-size: 1.05rem; }
  .has-mega > .nav-link { display: flex; justify-content: space-between; align-items: center; }
  .mega { position: static; box-shadow: none; border: 0; padding: 0 0 20px; }
  .mega .wrap { padding: 0; }
  .mega-grid { grid-template-columns: 1fr; gap: 20px; }
  .mega-promo { grid-column: auto; }
  .mega-feature { display: none; }
  .nav-mobile-cta { display: grid; gap: 10px; margin-top: 24px; }
  .promo { font-size: .8rem; }
  .hero-grid, .lead-band-grid, .newsletter-inner, .features-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; }
  .cover-fan { height: 260px; margin-top: 8px; }
  .fan-item { width: 30%; }
  .quick-list { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-covers { height: 104px; }
  .cat-covers .cover--tile { width: 58px; }
  .cat-covers .cover--tile:nth-child(2) { width: 66px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .listing-grid, .book-body-grid, .page-grid, .contact-grid, .submit-grid { grid-template-columns: 1fr; }
  .filters { order: 2; }
  .book-grid-detail { grid-template-columns: 1fr; gap: 24px; }
  .book-cover-col { max-width: 220px; }
  .side-cta, .submit-side { position: static; }
  .shelf-nav { display: none; }
  .sticky-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--rule); box-shadow: 0 -6px 20px rgba(28,34,48,.08); }
  .sticky-cta .btn { padding: 8px 10px; font-size: .88rem; }
  body:has(.sticky-cta) { padding-bottom: 72px; }
  /* Leave the bottom-right corner free for a chat provider's bubble. */
  body.has-chat .sticky-cta { padding-right: 88px; }
  .wa-float { bottom: 86px; }
  .receipt { grid-template-columns: 1fr; }
  .consent { flex-direction: column; align-items: stretch; gap: 10px; bottom: 76px; left: 10px; right: 10px; padding: 12px 14px; font-size: .82rem; }
  body.submit-page .sticky-cta, body.thanks .sticky-cta { display: none; }
  body.submit-page, body.thanks { padding-bottom: 0; }
  body.submit-page .consent, body.thanks .consent { bottom: 10px; }
  .consent-actions .btn { flex: 1; }
}
@media (max-width: 600px) {
  .hide-xs { display: none; }
  .book-cover-col { max-width: 170px; }
  .cover-fan { height: 220px; }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3rem); }
  .field-row { grid-template-columns: 1fr; }
  .hero-proof { grid-template-columns: 1fr; gap: 10px; }
  .hero-proof li { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
  .hero-proof strong { display: inline; }
  .quick-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .book-grid--row { grid-template-columns: repeat(2, 1fr); }
  .feature-collage { padding: 20px 20px 0; gap: 8px; }
  .feature-copy { padding: 28px 20px 24px; }
  .listing-bar { flex-direction: column; align-items: flex-start; }
  .site-search .wrap { flex-direction: column; }
  .btn-row .btn { flex: 1 1 100%; }
}

/* ==========================================================================
   PRH-style layout: white pages, black type, outlined buttons,
   orange used only as an accent (active tabs, ranks, focus, small rules).
   ========================================================================== */

/* Buttons: outlined, square-cornered */
.btn { border-radius: 0; border-width: 1px; font-weight: 600; letter-spacing: .01em; }
.btn--primary { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn--primary:hover { background: var(--ink); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid #8A8A8A; }
.btn--ghost:hover { border-color: var(--ink); background: var(--mist); color: var(--ink); }
.btn--dark { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn--dark:hover { background: var(--ink); color: #fff; }
.btn--sm { min-height: 38px; padding: 8px 14px; font-size: .85rem; }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* On dark backgrounds the outline turns white */
.lead-band .btn--primary, .side-cta .btn--primary, .consent .btn--primary { color: #fff; border-color: #fff; }
.lead-band .btn--primary:hover, .side-cta .btn--primary:hover, .consent .btn--primary:hover { background: #fff; color: var(--ink); }
.lead-band-form .btn--primary { color: var(--ink); border-color: var(--ink); }
.lead-band-form .btn--primary:hover { background: var(--ink); color: #fff; }

/* Header: the "Submit your manuscript" tab */
.nav-link--submit { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.nav-link--submit:hover, .nav-link--submit[aria-current] { color: var(--accent-text); }
@media (min-width: 961px) {
  .nav-item--submit { margin-left: 8px; }
}

/* Covers: a quiet grey frame while images load, never a stand-in */
.cover { background: var(--mist); }
.cover::after { z-index: 3; }

/* Hero carousel */
.hero-carousel { position: relative; background: var(--mist); }
.slide-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-top: clamp(36px, 6vw, 72px); padding-bottom: clamp(36px, 6vw, 72px); }
.slide-copy h1, .slide-copy h2 { font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.04; letter-spacing: -.02em; max-width: 15ch; margin-bottom: 18px; }
.slide.is-active .slide-art { animation: fade .45s ease-out; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.carousel-controls { display: flex; align-items: center; gap: 14px; padding-bottom: 22px; }
.carousel-btn { width: 40px; height: 40px; border: 1px solid #8A8A8A; background: var(--paper); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.carousel-btn:hover { border-color: var(--ink); }
.carousel-dots { display: flex; gap: 8px; }
.dot { width: 28px; height: 4px; border: 0; padding: 0; background: #C9C9C9; cursor: pointer; }
.dot[aria-selected="true"] { background: var(--accent); }

/* Cover collage (hero and feature) */
.collage { display: flex; align-items: flex-end; justify-content: center; padding: 28px 24px 0; background: var(--accent-soft); min-height: 300px; }
.collage-item { display: block; width: 24%; margin: 0 -1.5%; flex-shrink: 0; transition: transform .2s; }
.collage-item:nth-child(1) { transform: translateY(6%) rotate(-3deg); }
.collage-item:nth-child(2) { transform: translateY(-2%); z-index: 2; width: 27%; }
.collage-item:nth-child(3) { transform: translateY(-2%); z-index: 2; width: 27%; }
.collage-item:nth-child(4) { transform: translateY(6%) rotate(3deg); }
.collage .cover { box-shadow: 0 2px 2px rgba(0,0,0,.12), 0 22px 36px -16px rgba(0,0,0,.5); }
.collage--hero { border-bottom: 4px solid var(--accent); }

/* Recommended right now */
.recommended { padding: 40px 0 8px; }
.eyebrow-title { font: 600 1rem/1.2 var(--sans); margin: 0 0 16px; }
.rec-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rec-card { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--rule); text-decoration: none; height: 100%; }
.rec-card:hover { border-color: var(--ink); }
.rec-card:hover strong { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.rec-art { display: flex; flex-shrink: 0; }
.rec-art .cover--mini { width: 46px; }
.rec-art .cover--mini + .cover--mini { margin-left: -18px; transform: translateY(6px); }
.rec-text strong { display: block; font: 500 1.08rem/1.25 var(--serif); }
.rec-text span { font-size: .85rem; color: var(--muted); }

/* Today's top books */
.top-books { padding: 56px 0; border-top: 0; }
.top-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.top-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.top-kicker { color: var(--accent-text); font-style: italic; }
.top-list { gap: clamp(12px, 2vw, 28px); }
.top-list li { position: relative; }
.top-link { display: grid; grid-template-columns: auto 1fr; align-items: end; text-decoration: none; }
.rank { -webkit-text-stroke: 2px var(--accent); }

/* Quick view button on covers */
.book-card { position: relative; }
.quick-btn { position: relative; z-index: 6; display: inline-block; margin-top: 6px; padding: 4px 0; background: none; border: 0; font: 600 .78rem/1.2 var(--sans); cursor: pointer; color: var(--ink-2); }
.quick-btn::before { content: "+ "; color: var(--accent-text); }
.quick-btn:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.top-list .quick-btn { margin-top: 10px; }

/* Shop your next book */
.shop { padding: 56px 0 64px; border-top: 1px solid var(--rule); }
.section-title--centre { text-align: center; margin-bottom: 18px; }
.tabs--centre { justify-content: center; border-bottom: 0; gap: 4px 28px; flex-wrap: wrap; }
.tabs--centre button { margin: 0; font: 600 1.05rem/1 var(--sans); padding: 10px 2px; color: var(--muted); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.centre-cta { text-align: center; margin-top: 28px; }
.shelves { background: var(--paper); }
.shelves--genre { border-top: 1px solid var(--rule); }
.shelf-more { display: none; }

/* Call back band */
.lead-band { background: var(--ink); }
.ticks li::before { border-color: var(--accent); }

/* Discover your next read: category tiles made from real covers */
.discover { padding: 64px 0; border-top: 1px solid var(--rule); }
.discover .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
.discover .cat-grid--six { grid-template-columns: repeat(6, 1fr); }
.cat-tile { background: transparent; border: 0; padding: 0; min-height: 0; color: var(--ink); text-align: center; align-items: center; border-radius: 0; }
.cat-tile:hover { border: 0; }
.cat-covers { width: 100%; height: auto; aspect-ratio: 4 / 3; background: var(--mist); margin: 0 0 12px; padding: 18px 10px 0; align-items: flex-end; overflow: hidden; }
.cat-covers .cover--tile { width: 30%; margin: 0 -3%; }
.cat-covers .cover--tile:nth-child(2) { width: 34%; }
.cat-tile:hover .cat-covers { background: var(--accent-soft); }
.cat-name { font: 600 1rem/1.3 var(--sans); }
.cat-name::after { display: none; }
.cat-tile:hover .cat-name { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.cat-tile .cat-photo { position: static; width: 100%; aspect-ratio: 4 / 3; opacity: 1; margin-bottom: 12px; }

/* Feature band */
.feature-band { padding: 64px 0; background: var(--mist); }
.feature-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.feature-band .feature-copy { background: transparent; padding: 0; }
.feature-copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.08; }
.collage--feature { background: var(--paper); }

/* Process */
.steps li { border-top-color: var(--ink); }

/* Connect (newsletter) */
.newsletter { background: var(--mist); color: var(--ink); border-top: 1px solid var(--rule); }
.connect-kicker { font: 600 .9rem/1 var(--sans); color: var(--accent-text); margin: 0 0 8px; }
.newsletter-form input { border: 1px solid var(--ink); }

/* Badges and small accents */
.badges li { background: transparent; color: var(--ink); border: 1px solid var(--accent); }
.quick-list a { border-left-color: var(--ink); }
.filters li a[aria-current] { background: transparent; color: var(--ink); font-weight: 700; box-shadow: inset 3px 0 0 var(--accent); border-radius: 0; }
.pager a[aria-current] { background: var(--ink); }
.mega-promo, .filters-cta, .page-cta, .notice { background: var(--mist); }

/* Side lead tab: black with an orange edge */
@media (min-width: 961px) {
  .side-lead-tab { background: var(--ink); color: #fff; box-shadow: inset -4px 0 0 var(--accent), 0 6px 18px rgba(0,0,0,.2); }
  .side-lead-panel { border-top-color: var(--ink); }
}

/* Book page */
.book-grid-detail--nocover { grid-template-columns: 1fr; }
.book-intro { font-size: 1.1rem; color: var(--ink-2); max-width: 60ch; }

/* Quick view panel */
.qv-panel { max-width: 760px; border-top-color: var(--ink); }
.qv-grid { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.qv-cover img { width: 100%; height: auto; box-shadow: var(--shadow-cover); background: var(--mist); }
.qv-cat { font-size: .85rem; color: var(--accent-text); font-weight: 600; margin: 0 0 6px; }
.qv-info h2 { font-size: clamp(1.5rem, 3vw, 2rem); padding-right: 32px; margin-bottom: 4px; }
.qv-author { font-size: 1.05rem; margin-bottom: 10px; }
.qv-note { font-style: italic; color: var(--ink-2); }
.qv-note:empty, .qv-cat:empty { display: none; }

/* Sticky phone bar: outlined */
.sticky-cta .btn--primary { background: var(--paper); }

@media (max-width: 1100px) {
  .rec-list { grid-template-columns: repeat(2, 1fr); }
  .discover .cat-grid--six { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .slide-grid, .feature-grid { grid-template-columns: 1fr; }
  .slide-art { order: 2; }
  .collage { min-height: 0; padding: 20px 12px 0; }
  .discover .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .discover .cat-grid--six { grid-template-columns: repeat(2, 1fr); }
  .nav-link--submit { color: var(--accent-text); }
  .qv-grid { grid-template-columns: 140px 1fr; gap: 18px; }
}
@media (max-width: 600px) {
  .rec-list { grid-template-columns: 1fr; }
  .qv-grid { grid-template-columns: 1fr; }
  .qv-cover { max-width: 160px; }
  .carousel-controls { justify-content: center; }
}
