/* Reader-first layout. Explicit header rows keep tools out of the navigation row. */
html { background: #f5f2eb; }
body { line-height: 1.65; }
.site-header { grid-template-columns: auto 1fr auto; gap: 10px 20px; padding: 14px var(--pad); background: #fbf8f1; }
.wordmark { grid-column: 1; grid-row: 1; border-radius: 50%; border-color: #cdd3c7; color: #263c32; }
.site-nav { grid-column: 2; grid-row: 1; }
.language-switch { grid-column: 3; grid-row: 1; }
.app-toolbar { grid-column: 1 / -1; grid-row: 2; padding: 10px 0 0; border-top: 1px solid #d9ddd2; border-radius: 0; background: transparent; gap: 8px; }
.app-toolbar button { font-size: .84rem; line-height: 1.25; min-height: 44px; padding: 10px 16px; }
.app-toolbar [data-install-app] { color: #263c32; background: #edf0e6; border-color: #cbd4c4; }
.app-toolbar [data-reading-size] { background: transparent; color: #263c32; border-color: #cbd4c4; }
.app-toolbar a { font-size: .8rem; line-height: 1.35; padding: 10px; }
.app-toolbar [data-app-status] { font-size: .88rem; padding: 8px; background: #edf0e6; border-radius: 8px; }
.reader-home, .reader-more, .reader-first { max-width: 1020px; margin: auto; padding: 28px var(--pad); }
.reader-welcome { display: flex; justify-content: space-between; gap: 12px; color: #60705e; font-size: .78rem; margin-bottom: 16px; }
.reader-welcome span:first-child { font-weight: 700; }
.reader-languages { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; gap: 4px; background: #e6e9de; border-radius: 14px; margin-bottom: 28px; }
.reader-languages a { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; text-decoration: none; text-align: center; border-radius: 10px; font-size: .95rem; font-weight: 700; color: #354a36; }
.reader-languages a span { font-size: .74rem; font-weight: 400; }
.reader-languages [aria-current] { color: #fffdf5; background: #2e493d; box-shadow: 0 2px 6px #263c3220; }
.featured-book { display: grid; grid-template-columns: minmax(130px, 230px) minmax(0,1fr); gap: 32px; align-items: center; margin-bottom: 26px; }
.featured-book img { width: 100%; border-radius: 6px; box-shadow: 0 12px 24px #263c3226; }
.featured-book h1 { font-size: clamp(1.7rem,4.2vw,3.5rem); max-width: 23ch; line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.featured-book .eyebrow { font-size: .66rem; letter-spacing: .1em; margin-bottom: 10px; color: #5c714f; }
.featured-description { margin: 14px 0 0; color: #63705e; font-size: .95rem; line-height: 1.5; }
.reader-primary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reader-primary .button { display: flex; justify-content: space-between; border-radius: 12px; text-transform: none; letter-spacing: 0; font-size: 1rem; min-height: 54px; }
.reader-primary .listen-action { background: #e5e9dc; border-color: #c8d1bd; color: #263c32; }
.reader-downloads { display: flex; justify-content: center; gap: 24px; margin-top: 10px; flex-wrap: wrap; }
.reader-downloads a { display: flex; align-items: center; min-height: 44px; font-size: .83rem; font-weight: 600; }
.reader-note { text-align: center; font-size: .77rem; color: #6c7467; margin: 4px 0 0; }
body[data-route="/"] .audiobook, body[data-route="/en/"] .audiobook, body[data-route="/af/"] .audiobook { max-width: 940px; margin: 4px auto 0; border-radius: 20px; }
.audiobook { padding: 28px var(--pad); }
.audiobook h2 { font-size: 1.8rem; line-height: 1.15; }
.audiobook .eyebrow { color: #d7dfbd; margin-bottom: 8px; }
.audiobook-intro p { font-size: .9rem; margin-bottom: 10px; }
.audiobook-actions { gap: 10px; margin-top: 16px; }
.audiobook-actions .button { border-radius: 10px; text-transform: none; letter-spacing: 0; }
.reader-more { padding-top: 24px; padding-bottom: 24px; }
.reader-more .eyebrow { margin-bottom: 8px; }
.reader-first { padding-top: 24px; padding-bottom: 24px; border-top: 1px solid #d9ddd2; }
.reader-first > div h2 { font-size: 1.7rem; }
.reader-first .book-card { padding: 20px; border: 1px solid #dde0d4; border-radius: 16px; gap: 24px; }
.reader-first .book-card h2 { font-size: 1.5rem; line-height: 1.12; }
.reader-first .book-card p { font-size: .9rem; }
.reader-first .book-number { margin-bottom: 8px; }
.reader-first .book-card img { max-width: 130px; }
.share-panel, .writing-support, .site-footer { padding: 30px var(--pad); gap: 22px; }
.share-panel h2, .writing-support h2 { font-size: 1.9rem; line-height: 1.12; }
.share-panel p, .writing-support p { font-size: .95rem; }
.share-panel .eyebrow { color: #d7dfbd; }
.share-actions a, .share-actions button { border-radius: 10px; text-transform: none; letter-spacing: 0; font-size: .85rem; min-height: 46px; }
.writing-support { max-width: 940px; }
.support-actions .button { border-radius: 10px; text-transform: none; letter-spacing: 0; font-size: .9rem; }
.page-hero { min-height: 0; padding: 44px var(--pad); }
.page-hero h1 { font-size: clamp(2rem,5vw,4.5rem); max-width: 25ch; line-height: 1.1; }
.page-hero::after { display: none; }
.page-hero .eyebrow { margin-bottom: 14px; }
.book-actions .button { border-radius: 10px; text-transform: none; letter-spacing: 0; }
@media(max-width:760px) {
  :root { --pad: 18px; --space: 32px; }
  .site-header { grid-template-columns: 1fr auto auto; padding: 12px var(--pad); gap: 10px 14px; }
  .wordmark { width: 40px; }
  .js .menu-toggle { grid-row: 1; grid-column: 2; min-height: 44px; padding: 0 8px; font-size: .72rem; letter-spacing: .04em; }
  .language-switch { grid-row: 1; grid-column: 3; font-size: .72rem; letter-spacing: .04em; }
  .site-nav { grid-row: 3; grid-column: 1/-1; }
  .js .site-nav { grid-row: auto; border-radius: 12px; box-shadow: 0 12px 30px #263c322b; }
  .app-toolbar { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) 44px; gap: 8px; grid-row: 2; }
  .app-toolbar [data-share-app] { grid-column: 1; }
  .app-toolbar [data-install-app] { grid-column: 2/4; }
  .app-toolbar [data-reading-size] { grid-row: 2; grid-column: 3; padding: 8px; }
  .app-toolbar > a { grid-row: 2; grid-column: 1/3; justify-self: start; padding: 6px 0; }
  .app-toolbar [data-app-status] { grid-column: 1/-1; }
  .reader-home { padding-top: 18px; padding-bottom: 18px; }
  .reader-welcome { font-size: .7rem; margin-bottom: 12px; }
  .reader-languages { margin-bottom: 20px; }
  .featured-book { grid-template-columns: minmax(90px,30%) minmax(0,1fr); gap: 18px; margin-bottom: 20px; }
  .featured-book h1 { font-size: clamp(1.4rem,6vw,2.1rem); line-height: 1.1; }
  .featured-book .eyebrow { font-size: .59rem; letter-spacing: .06em; line-height: 1.5; }
  .featured-description { font-size: .83rem; line-height: 1.4; margin-top: 10px; }
  .reader-primary .button { font-size: .9rem; padding: 12px 14px; min-height: 50px; }
  .reader-downloads { gap: 18px; }
  .reader-downloads a { font-size: .77rem; }
  body[data-route="/"] .audiobook, body[data-route="/en/"] .audiobook, body[data-route="/af/"] .audiobook { margin: 0 12px; padding: 22px 18px; border-radius: 18px; }
  .audiobook-layout { gap: 12px; }
  .audiobook-actions { display: grid; grid-template-columns: 1fr auto; }
  .audiobook-actions label { font-size: .9rem; }
  .audiobook-actions .button { grid-column: 1/-1; width: 100%; }
  .audiobook-actions select { font-size: 16px; min-height: 44px; border-radius: 8px; }
  .reader-first .book-card { grid-template-columns: 84px minmax(0,1fr); padding: 16px; gap: 16px; }
  .reader-first .book-card h2 { font-size: 1.32rem; }
  .reader-first .book-card p { font-size: .82rem; }
  .reader-first .book-actions { margin: 10px 0; }
  .book-card { gap: 24px; padding: 28px var(--pad); }
  .book-detail { gap: 24px; }
  .book-detail figure { max-width: 160px; }
  .book-actions .button { width: 100%; }
  .intro-block { gap: 18px; }
  .share-panel, .writing-support, .site-footer { gap: 18px; }
  .share-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .share-status { grid-column: 1/-1; }
  .writing-support { margin: 18px 12px; padding: 24px 18px; }
  .support-actions { gap: 14px; }
  .support-actions > * { min-height: 44px; display: inline-flex; align-items: center; }
  .site-footer { gap: 16px; padding-top: 26px; padding-bottom: max(26px,env(safe-area-inset-bottom)); }
  .page-hero { padding: 28px var(--pad); }
  .page-hero h1 { font-size: clamp(1.9rem,7.5vw,2.8rem); }
  .page-hero .eyebrow { margin-bottom: 10px; }
  .large-reading .featured-book { grid-template-columns: 82px minmax(0,1fr); gap: 12px; }
}
.audio-tools { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:12px 0; }
.audio-tools button { min-height:48px; padding:10px 14px; border:2px solid currentColor; border-radius:8px; font:inherit; color:inherit; cursor:pointer; background:transparent; }
.audio-tools button:disabled { opacity:.55; cursor:default; }
.audio-tools button:focus-visible { outline:3px solid #476c54; outline-offset:3px; }
.audio-tools .audio-pause-button { min-width:110px; font-weight:700; }
.audio-tools [hidden] { display:none; }
.audio-position { display:block; width:100%; font-variant-numeric:tabular-nums; }
.audio-status { width:100%; margin:0; overflow-wrap:anywhere; }
.reader-comment{margin:1.5rem auto;padding:1rem;max-width:48rem;border:1px solid #b9b0a0;border-radius:.75rem;background:#faf7f0}
.reader-comment summary{cursor:pointer;min-height:48px;display:flex;align-items:center;font-weight:700}
.reader-comment form{display:grid;gap:.6rem;padding-top:.75rem}
.reader-comment label{font-weight:600}
.reader-comment input:not([hidden]),.reader-comment textarea{box-sizing:border-box;width:100%;font:inherit;padding:.75rem;border:1px solid #80786c;border-radius:.4rem;background:#fff;color:#242c28}
.reader-comment textarea{resize:vertical}
.reader-comment button{min-height:48px;width:fit-content;padding:.65rem 1.1rem;font:inherit;cursor:pointer}
.reader-comment [hidden]{display:none}
.reader-comment :focus-visible{outline:3px solid #304b42;outline-offset:3px}
.reading-bookmark{margin:1rem 0;padding:.75rem;border:1px solid #b9b0a0;border-radius:.5rem;max-width:48rem;overflow-wrap:anywhere}
.reading-bookmark summary{cursor:pointer;min-height:48px;display:flex;align-items:center;font-weight:700}
.reading-bookmark input{box-sizing:border-box;width:7rem;max-width:100%;min-height:48px;padding:.5rem;font:inherit;border:1px solid #80786c}
.reading-bookmark label{display:block;margin:.5rem 0}
.reading-bookmark button,.reading-bookmark a[data-bookmark-continue]{display:inline-flex;align-items:center;min-height:48px;padding:.5rem .75rem;margin:.25rem;font:inherit;cursor:pointer;box-sizing:border-box}
.reading-bookmark [hidden]{display:none!important}
.reading-bookmark :focus-visible{outline:3px solid #304b42;outline-offset:3px}
.audio-journey{display:grid;gap:.5rem;margin:.75rem 0;max-width:100%;font-size:.95rem;overflow-wrap:anywhere}
.audio-journey progress{width:100%;max-width:100%;height:1rem;accent-color:#304b42}

.purchase-intent {margin:2rem 0;padding:clamp(1rem,4vw,2rem);border:1px solid #b5b1a7;border-radius:8px}.purchase-intent .button{white-space:normal;min-height:44px;max-width:100%;line-height:1.5}.purchase-intent [role=status]:empty{display:none}.purchase-intent [role=status]{padding:1rem 0;font-weight:600}.book-actions{flex-wrap:wrap;gap:1rem}.book-actions .text-link{align-self:center}

/* Keep the books and reading choices ahead of sharing and correspondence. */
.reader-library-intro { max-width: 65ch; margin: 0 0 20px; }
.reader-library-title { font: clamp(1.35rem,3vw,2rem)/1.25 var(--display); color: #263c32; margin-bottom: 10px; }
.reader-library-intro > p:last-child { color: #4b574c; font-size: 1rem; }
.reader-bookshelf { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 20px 0 10px; }
.reader-bookshelf > a { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; align-items: center; gap: 14px; min-width: 0; padding: 16px; border: 1px solid #bac5b5; border-radius: 14px; background: #fbf8f1; color: #263c32; text-decoration: none; }
.reader-bookshelf > a:hover { border-color: #263c32; background: #edf0e6; }
.reader-bookshelf img { width: 54px; border-radius: 3px; box-shadow: 0 4px 10px #263c3220; }
.reader-bookshelf > a > span { min-width: 0; }
.reader-bookshelf small, .reader-bookshelf strong, .reader-bookshelf strong + span { display: block; }
.reader-bookshelf small { font-size: .75rem; font-weight: 600; margin-bottom: 4px; }
.reader-bookshelf strong { font: 1.1rem/1.25 var(--display); }
.reader-bookshelf strong + span { font-size: .78rem; line-height: 1.5; margin-top: 8px; color: #4b574c; }
.reader-shortcuts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 6px 0 26px; }
.reader-shortcuts a { display: inline-flex; min-height: 44px; align-items: center; font-size: .88rem; font-weight: 600; }
.reader-help { max-width: 940px; margin: 28px auto; padding: 28px var(--pad); border-block: 1px solid #c5cebe; }
.reader-help h2 { font-size: clamp(1.8rem,4vw,2.4rem); }
.reader-help details { border-top: 1px solid #c5cebe; padding: 8px 0; }
.reader-help summary { min-height: 48px; padding: 12px 4px; cursor: pointer; font-weight: 650; line-height: 1.5; }
.reader-help details p { max-width: 65ch; padding-inline: 4px; }
.reader-help-contact { margin-top: 24px; overflow-wrap: anywhere; }
.purchase-intent { max-width: 940px; margin: 28px auto; background: #fbf8f1; }
.purchase-intent h2 { font-size: clamp(1.8rem,4vw,2.4rem); line-height: 1.2; }
.purchase-intent p, .purchase-intent li { max-width: 68ch; }
.purchase-intent ol { padding-left: 1.5rem; }
.purchase-intent li { padding-left: .3rem; margin-bottom: 12px; }
.purchase-intent .reader-note { text-align: start; font-size: .95rem; line-height: 1.65; color: #4b574c; margin-bottom: 16px; }
[id^="purchase-"], #second-book, #featured-title, #reading-help { scroll-margin-top: 24px; }
@media(max-width:560px) {
  .reader-bookshelf { grid-template-columns: minmax(0,1fr); }
  .reader-bookshelf > a { padding: 14px; }
  .reader-first .book-card { grid-template-columns: minmax(0,1fr); }
  .reader-first .book-card .cover-link { max-width: 130px; }
  .reader-first .book-card h2 { font-size: 1.65rem; line-height: 1.2; }
  .reader-first .book-card p { font-size: 1rem; }
  .purchase-intent { margin: 20px 12px; padding: 20px; }
  .reader-help { margin: 20px 0; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } }

.audio-purchases{margin-block:1.5rem;padding:clamp(1rem,3vw,1.5rem);border:1px solid #bfa878;border-radius:12px;background:#f8f4ea;color:#29251e}.audio-purchases h3{margin-block:.4rem .8rem;font-size:1.35rem}.audio-purchases audio{display:block;width:100%;max-width:32rem;margin-block:.8rem 1.2rem}.audio-preview-label{display:block;line-height:1.6}.audio-purchase-choices{display:flex;flex-wrap:wrap;gap:.75rem}.audio-purchase-choices .button{white-space:normal;text-align:center;min-height:44px}.audio-purchases .reader-note{font-size:.92rem;line-height:1.6}@media(max-width:480px){.audio-purchase-choices{display:grid}.audio-purchase-choices .button{width:100%;box-sizing:border-box}}
