/* K.D.Publishing — paper, ink and an editorial rhythm. No remote font requests. */
:root {
  --ink: #18333c;
  --muted: #58656a;
  --teal: #1b6265;
  --teal-hover: #124c50;
  --paper: #faf8f3;
  --white: #fffefa;
  --shelf: #eeeee7;
  --line: #d7dcd5;
  --brass: #8b6636;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --text-small: .875rem;
  --text-body: 1rem;
  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: clamp(3rem, 6vw, 5.5rem);
  --page-width: 76rem;
  --gutter: clamp(1rem, 3vw, 3rem);
  --radius: .125rem;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: var(--text-body)/1.65 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .25em; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 5px; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: -.025em; overflow-wrap: break-word; }
h1 { font-size: clamp(2.2rem, 4.5vw, 4rem); text-wrap: balance; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); text-wrap: balance; }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1.25rem; }
.container { width: min(var(--page-width), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.eyebrow { display: block; color: var(--teal); font: 650 .6875rem/1.5 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.skip-link { position: absolute; z-index: 100; top: .75rem; left: 1rem; padding: .75rem 1rem; background: var(--white); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
/* Navigation: click state agrees with aria-expanded, including on desktop. */
.header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 6rem; }
.brand { display: flex; flex-direction: column; flex-shrink: 0; text-decoration: none; padding-block: .5rem; }
.brand-mark { font: 500 2.1rem/1 var(--serif); letter-spacing: -.07em; }
.brand-mark span { color: var(--brass); }
.brand-type { margin-top: .5rem; color: var(--ink); font-size: .625rem; font-weight: 650; letter-spacing: .22em; }
.nav { display: flex; align-items: center; gap: clamp(.5rem, 1.8vw, 1.5rem); }
.nav > a, .nav-group > a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: .25rem; font-size: .875rem; text-decoration: none; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--teal); text-decoration: underline; }
.nav-group { position: relative; display: flex; align-items: center; }
.submenu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; min-height: 44px; padding: .5rem; background: none; border: 0; font-size: 1.15rem; }
.submenu-toggle[aria-expanded='true'] { color: var(--teal); }
.submenu { display: none; position: absolute; top: calc(100% + .75rem); left: 0; width: 19rem; max-width: calc(100vw - var(--gutter) * 2); padding: .5rem; border: 1px solid var(--line); background: var(--white); box-shadow: 0 8px 24px #18333c0d; }
.nav-group.open .submenu { display: block; }
.submenu a { display: flex; align-items: center; min-height: 44px; padding: .6rem .75rem; font-size: .875rem; text-decoration: none; }
.submenu a:hover { background: var(--shelf); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: .65rem; border: 1px solid var(--line); background: transparent; }
.menu-toggle span { display: block; height: 1px; background: var(--ink); margin-block: 5px; }
/* Controls have intrinsic widths even inside a flex column or grid. */
.button { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; width: fit-content; max-width: 100%; min-height: 48px; padding: .75rem 1.25rem; align-self: flex-start; border: 1px solid var(--teal); border-radius: var(--radius); background: var(--teal); color: var(--white); font: 650 .875rem/1.45 var(--sans); text-decoration: none; text-align: center; white-space: normal; overflow-wrap: anywhere; }
.button:hover { background: var(--teal-hover); border-color: var(--teal-hover); }
.button-dark { background: var(--ink); border-color: var(--ink); }
.button-dark:hover { background: var(--teal); border-color: var(--teal); }
.button-secondary { color: var(--ink); background: transparent; border-color: #758580; }
.button-secondary:hover { color: var(--ink); background: var(--shelf); border-color: var(--ink); }
.button-small { min-height: 44px; padding: .5rem .875rem; }
.button span[aria-hidden] { flex-shrink: 0; }
.text-link, .quiet-link { display: inline-flex; align-items: center; gap: .65rem; width: fit-content; max-width: 100%; align-self: flex-start; min-height: 44px; padding-block: .5rem; color: var(--teal); font: 650 .875rem/1.5 var(--sans); text-decoration: none; }
.text-link:hover, .quiet-link:hover { text-decoration: underline; }
.actions, .product-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.5rem; }
/* The hero is a compact publisher introduction with a genuine cover as its focus. */
.hero { border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 6rem); padding-block: var(--space-6); }
.hero-copy { max-width: 38rem; }
.hero-copy .eyebrow { margin-bottom: 1.25rem; }
.hero h1 { font-size: clamp(2.5rem, 4.7vw, 4.5rem); max-width: 11ch; }
.hero h1 em { color: var(--teal); font-weight: inherit; }
.hero-copy p { margin-top: 1.5rem; max-width: 48ch; color: var(--muted); font-size: 1.0625rem; }
.hero-copy .actions { margin-top: 2rem; }
.hero-book { display: grid; grid-template-columns: minmax(0, 1fr) minmax(8rem, .6fr); align-items: end; gap: 1.5rem; text-decoration: none; }
.hero-book-image { display: flex; align-items: center; justify-content: center; padding: 1.75rem; background: var(--shelf); }
.hero-book-image img { max-height: 24rem; width: auto; object-fit: contain; box-shadow: 4px 6px 12px #18333c20; }
.hero-book-caption { padding-bottom: .5rem; }
.hero-book-caption strong { display: block; margin-top: .75rem; font: 400 1.65rem/1.2 var(--serif); }
.hero-book-caption .text-link { margin-top: 1rem; }
.hero-book:hover .text-link { text-decoration: underline; }
.section { padding-block: var(--space-6); }
.section-tint { background: var(--shelf); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem 3rem; margin-bottom: 2.5rem; }
.section-heading h2 { margin-top: .5rem; }
.section-heading > p { max-width: 34ch; margin: 0; color: var(--muted); font-size: .9375rem; }
.section-heading > .text-link { align-self: flex-end; flex-shrink: 0; }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2rem; border-top: 1px solid var(--line); }
.category-tile { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 10rem; padding: 1.5rem 2rem 1.5rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.category-tile h3 { margin-top: .5rem; font-size: clamp(1.3rem, 2vw, 1.65rem); }
.category-tile > span:last-child { position: absolute; right: 0; bottom: 1.5rem; color: var(--teal); }
.category-tile:hover h3 { color: var(--teal); }
/* Covers sit on calm shelves; titles and actions align without enclosing card chrome. */
.book-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3rem 1.75rem; }
.book-grid-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.book-grid.book-grid-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 56rem; }
.book-grid.book-grid-single { grid-template-columns: minmax(0, 1fr); }
.book-grid-single .book-card { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; max-width: 58rem; }
.book-grid-single .book-copy { padding-top: 0; }
.book-grid-single .book-copy h2 { font-size: clamp(1.75rem, 3vw, 2.6rem); }
.book-grid-single .book-copy p { font-size: 1rem; max-width: 50ch; }
.book-grid-single .book-copy .text-link { margin-top: 1rem; }
.book-card { display: flex; flex-direction: column; min-width: 0; text-decoration: none; }
.book-art { --cover-inset: clamp(.875rem, 2vw, 1.75rem); position: relative; min-height: 0; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; padding: clamp(1rem, 2vw, 1.75rem); background: var(--shelf); }
.section-tint .book-art { background: var(--paper); }
.book-art img { position: absolute; inset: var(--cover-inset); width: calc(100% - var(--cover-inset) * 2); height: calc(100% - var(--cover-inset) * 2); object-fit: contain; }
.book-copy { display: flex; flex-direction: column; flex: 1; padding-top: 1.25rem; }
.book-copy .eyebrow { font-size: .6875rem; letter-spacing: .07em; }
.book-copy h2, .book-copy h3 { margin-top: .5rem; font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.2; text-wrap: pretty; }
.book-copy p { margin: .75rem 0 1rem; color: var(--muted); font-size: var(--text-small); line-height: 1.6; }
.book-copy .text-link { margin-top: auto; padding-top: .75rem; }
.book-card:hover .text-link { text-decoration: underline; }
.pill { align-self: flex-start; padding: .25rem .5rem; font-size: .75rem; background: var(--shelf); }
.cover-pending { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; padding: 1rem; background: var(--ink); color: var(--white); text-align: center; }
.cover-pending strong { margin-block: 1rem; font: 400 1.5rem/1.3 var(--serif); }
.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 8vw, 8rem); padding-block: var(--space-6); }
.feature > div { max-width: 34rem; }
.feature h2 { margin-block: .75rem 1.5rem; }
.feature p { color: var(--muted); }
.feature img { width: min(100%, 21rem); max-height: 27rem; object-fit: contain; justify-self: center; border: 1px solid var(--line); }
.feature .button { margin-top: .5rem; }
.page-head { padding-top: var(--space-6); }
.page-head h1 { max-width: 22ch; margin-top: .75rem; }
.page-head p { max-width: 58ch; color: var(--muted); margin: 1.25rem 0 0; font-size: 1.0625rem; }
.collection-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; color: var(--muted); font-size: .8125rem; }
.filter-row { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; padding-block: .75rem; margin-bottom: 2.5rem; border-block: 1px solid var(--line); }
.filter-row a { display: inline-flex; align-items: center; min-height: 44px; padding-block: .5rem; color: var(--teal); font-size: .875rem; text-decoration: none; }
.filter-row a:hover { text-decoration: underline; }
/* Book detail: title/subtitle hierarchy, early purchase action, then useful facts. */
.product { padding-block: 2rem var(--space-6); }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .5rem; margin-bottom: 2.5rem; color: var(--muted); font-size: .75rem; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.product-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.product-cover { display: flex; align-items: center; justify-content: center; min-width: 0; padding: clamp(1.5rem, 4vw, 3.5rem); background: var(--shelf); }
.product-cover img { width: auto; max-height: 35rem; object-fit: contain; box-shadow: 5px 7px 14px #18333c1c; }
.product-info { min-width: 0; }
.product-info h1 { margin-top: .75rem; font-size: clamp(2rem, 3.4vw, 3.2rem); }
.product-subtitle { margin: 1rem 0 0; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.125rem); line-height: 1.6; text-wrap: pretty; }
.lead { margin-top: 1.5rem; max-width: 60ch; }
.purchase { margin-block: 1.75rem 2rem; }
.product-actions { gap: .75rem; }
.purchase small { display: block; margin-top: .75rem; max-width: 52ch; color: var(--muted); font-size: .75rem; line-height: 1.6; }
.product-details { font-size: .9375rem; }
.product-details ul { padding-left: 1.2rem; margin: 0 0 1.5rem; }
.product-details li + li { margin-top: .5rem; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; margin: 0; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .8125rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: .2rem 0 0; overflow-wrap: anywhere; }
.review-note { margin: 0; }
.preview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
.preview { min-width: 0; padding: .75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); text-align: left; }
.preview:hover { border-color: var(--teal); }
.preview img { width: 100%; aspect-ratio: 17 / 22; object-fit: contain; background: white; }
.preview > span { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem .5rem; min-height: 44px; padding-top: .5rem; font-size: .75rem; }
.preview-action { color: var(--teal); }
.preview-dialog { max-width: min(60rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 1rem; border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.preview-dialog::backdrop { background: #18333ccc; }
.preview-dialog img { width: auto; max-width: 100%; max-height: calc(100dvh - 10rem); object-fit: contain; margin-inline: auto; }
.dialog-close { display: block; margin: 0 0 .5rem auto; min-height: 44px; padding: .5rem 1rem; background: var(--paper); border: 1px solid var(--line); }
.preview-dialog p { margin: .75rem 0 0; text-align: center; font-size: .875rem; }
/* Information pages follow the same editorial measure and spacing. */
.prose { max-width: 48rem; margin-left: max(var(--gutter), calc((100% - var(--page-width)) / 2)); }
.prose h2 { margin-bottom: 1.25rem; font-size: 1.8rem; }
.prose h2:not(:first-child) { margin-top: 3rem; }
.prose p { max-width: 65ch; }
.prose .button { margin-block: .5rem; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
.contact-card { display: flex; flex-direction: column; align-items: flex-start; border-top: 1px solid var(--line); padding-block: 1.75rem; min-width: 0; }
.contact-card h2 { margin: .75rem 0 1.25rem; font-size: clamp(1.5rem, 2.5vw, 2rem); }
.contact-card p { max-width: 64ch; color: var(--muted); }
.contact-card .button { margin-top: auto; }
.contact-enquiries { grid-column: 1 / -1; }
.contact-email { display: inline-flex; align-items: center; max-width: 100%; min-height: 44px; color: var(--teal); font-size: clamp(1rem, 2vw, 1.25rem); overflow-wrap: anywhere; }
.footer { background: var(--ink); color: var(--paper); }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr auto; align-items: start; gap: 2rem; padding-block: 3rem; }
.footer-brand { display: inline-flex; align-items: center; min-height: 44px; font: 400 1.4rem/1.3 var(--serif); letter-spacing: .02em; text-decoration: none; }
.footer p { max-width: 32ch; margin-top: .5rem; font-size: .875rem; color: #d0dad7; }
.footer-inner > div:nth-child(2) { display: flex; flex-direction: column; align-items: flex-start; }
.footer-inner > div:nth-child(2) a { display: inline-flex; align-items: center; min-height: 44px; padding-block: .5rem; font-size: .875rem; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer small { padding-top: .75rem; font-size: .75rem; color: #d0dad7; }
.footer :focus-visible { outline-color: var(--paper); }
/* Optional consent stays in normal flow and never overlays a book or action. */
.cookie-notice { border-bottom: 1px solid var(--line); background: var(--shelf); }
.consent-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1rem; }
.consent-inner p { max-width: 65ch; margin: 0; font-size: .8125rem; }
.consent-actions { display: flex; flex-wrap: wrap; gap: .5rem; flex-shrink: 0; }
@media (max-width: 1100px) {
  .hero-book { grid-template-columns: minmax(0, 1fr); }
  .hero-book-image img { max-height: 21rem; }
  .hero-book-caption { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; }
  .hero-book-caption .eyebrow { grid-column: 1 / -1; }
  .hero-book-caption strong { margin: 0; font-size: 1.4rem; }
  .hero-book-caption .text-link { margin: 0; }
  .book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .consent-inner { align-items: flex-start; }
  .consent-actions { flex-direction: column; }
}
@media (max-width: 800px) {
  .header-inner { min-height: 5rem; }
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 1rem var(--gutter); border-bottom: 1px solid var(--line); background: var(--white); }
  .nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .nav > a { padding: .5rem 0; }
  .nav-group { flex-wrap: wrap; justify-content: space-between; }
  .nav-group > a { flex: 1; padding: .5rem 0; }
  .submenu { position: static; width: 100%; max-width: 100%; margin-block: .5rem; box-shadow: none; }
  .hero-grid { gap: 2rem; }
  .hero h1 { font-size: clamp(2.5rem, 5vw, 3.25rem); }
  .hero-book-image { padding: 1.25rem; }
  .hero-book-caption { display: block; }
  .hero-book-caption strong { margin-top: .5rem; }
  .hero-book-caption .text-link { margin-top: .25rem; }
  .category-grid, .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book-grid { gap: 2.5rem 1.25rem; }
  .book-grid.book-grid-single { grid-template-columns: minmax(0, 1fr); }
  .preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .section-heading > .text-link { align-self: flex-start; }
  .product-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 2rem; }
  .product-cover { padding: 1.5rem; }
  .product-info h1 { font-size: 2rem; }
  .product-actions { align-items: flex-start; flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer small { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .hero-grid, .feature, .product-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .book-grid-single .book-card { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .book-grid-single .book-art { width: min(100%, 24rem); }
  .hero h1 { max-width: 14ch; font-size: clamp(2.45rem, 9vw, 3.2rem); }
  .hero-book { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: center; gap: 1.25rem; }
  .hero-book-image img { max-height: 17rem; }
  .hero-book-image { padding: 1rem; }
  .hero-book-caption strong { font-size: 1.35rem; }
  .feature img { width: min(100%, 18rem); }
  .category-grid { grid-template-columns: minmax(0, 1fr); }
  .category-tile { min-height: 8rem; }
  .book-copy h2, .book-copy h3 { font-size: 1.25rem; }
  .book-copy .eyebrow { font-size: .6875rem; letter-spacing: .025em; }
  .book-art { padding: .875rem; }
  .product-cover { padding: 2rem; }
  .product-cover img { max-height: 25rem; }
  .product-info h1 { font-size: clamp(2rem, 7vw, 2.75rem); }
  .product-actions { flex-direction: row; }
  .product-actions .amazon-link { flex-basis: 100%; width: 100%; }
  .breadcrumbs { margin-bottom: 1.5rem; }
  .contact-enquiries { grid-column: auto; }
  .consent-inner { flex-direction: column; }
  .consent-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 360px) {
  .hero-book { grid-template-columns: minmax(0, 1fr); }
  .hero-book-image img { max-height: 16rem; }
  .hero-book-caption { display: block; }
  .book-grid { column-gap: 1rem; }
  .book-copy h2, .book-copy h3 { font-size: 1.15rem; }
  .book-copy p { font-size: .8125rem; }
  .preview-grid { gap: 1rem; }
  .preview { padding: .5rem; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Phase 2B: resource content uses the approved typography and palette. */
.resource-article section + section { margin-top: 3rem; }
.resource-article ul { padding-left: 1.4rem; }
.resource-article li + li { margin-top: .65rem; }
.resource-article h2 { text-wrap: pretty; }
.resource-byline { color: var(--muted); font-size: .875rem; }
.resource-downloads { border-block: 1px solid var(--line); padding-block: 1.5rem; }
.resource-downloads a { display: inline-flex; align-items: center; min-height: 44px; }
.resource-table-wrap { max-width: 100%; overflow-x: auto; margin-block: 1.5rem; }
.resource-table-wrap table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9375rem; }
.resource-table-wrap caption { text-align: left; font-weight: 600; margin-bottom: .75rem; }
.resource-table-wrap th, .resource-table-wrap td { padding: .75rem; border: 1px solid var(--line); vertical-align: top; }
.resource-table-wrap th { background: var(--shelf); }
.pitch-layout { margin: 2rem 0; }
.pitch-layout svg { display: block; width: 100%; height: auto; aspect-ratio: 480 / 330; }
.pitch-layout figcaption { font-size: .875rem; color: var(--muted); margin-top: .75rem; }
.book-resources li + li { margin-top: .65rem; }
/* Reserve the existing mobile hero cover geometry before the eager image decodes. */
.hero-book-image img { aspect-ratio: 638 / 845; }
@media (max-width: 800px) { .resource-table-wrap th, .resource-table-wrap td { padding: .5rem; } }

/* Narrow mobile consent refinement: same explanation, type and 44px controls. */
@media (max-width: 600px) {
  .consent-inner { padding-block: .625rem; gap: .5rem; }
  .consent-inner p { line-height: 1.5; }
  .consent-actions { width: 100%; }
  .consent-actions .button { flex: 1; color: var(--ink); background: transparent; border-color: #758580; }
  .consent-actions .button:hover { color: var(--ink); background: var(--shelf); border-color: var(--ink); }
}

/* Reader discovery and moderated feedback; preserve the established palette. */
.catalogue-tools { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 1rem; align-items: end; margin: 1.5rem 0 2rem; padding: 1.5rem; background: var(--shelf); }
.catalogue-tools label, .reader-review-form > label { display: block; font-weight: 600; margin-bottom: .5rem; }
.catalogue-tools input, .catalogue-tools select, .reader-review-form textarea, .reader-review-form > input { width: 100%; min-width: 0; min-height: 48px; padding: .7rem; border: 1px solid var(--muted); background: var(--white); color: var(--ink); font: inherit; border-radius: 0; }
#book-result-count { grid-column: 1 / -1; margin: 0; }
.resource-teasers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.resource-teaser { border-top: 1px solid var(--teal); padding-top: 1.3rem; }
.resource-teaser h3 { font-size: 1.5rem; line-height: 1.25; margin: .8rem 0; }
.resource-teaser p { color: var(--muted); }
.resource-teaser a { text-decoration-thickness: 1px; text-underline-offset: .2em; }
.after-preview { display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; border-top: 1px solid var(--muted); margin-top: 2.5rem; padding-top: 1.8rem; }
.after-preview h3 { margin: 0 0 .5rem; font-size: 1.6rem; }
.after-preview p { margin: 0; }
.after-preview .button { flex-shrink: 0; }
.reader-reviews { max-width: 900px; }
.reader-review { padding: 1.5rem 0; border-bottom: 1px solid var(--muted); }
.review-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.reader-review-form { margin-top: 2rem; }
.reader-review-form fieldset { margin: 1.5rem 0; padding: 1rem; border: 1px solid var(--muted); }
.rating-options { display: flex; flex-wrap: wrap; gap: 1rem; }
.rating-options label, .review-consent { min-height: 44px; padding: .65rem 0; }
.reader-review-form textarea, .reader-review-form > input { margin-bottom: 1.25rem; }
.reader-review-form input[type="radio"], .reader-review-form input[type="checkbox"] { width: 1.25rem; height: 1.25rem; accent-color: var(--teal); vertical-align: middle; }
@media (max-width: 800px) {
  .resource-teasers { grid-template-columns: 1fr; }
  .catalogue-tools { grid-template-columns: minmax(0, 1fr); }
  .after-preview { align-items: stretch; flex-direction: column; }
}
