/* ------------------------------------------------------------
   Filbert Press — responsive overrides for the Direction C pages.
   Strategy: pages stay built with inline styles for the desktop
   layout. These media queries reach in via class hooks (.fp-page,
   .fp-grid-*, .fp-pad-x, etc.) and override grid/padding/font-size
   below 1024 / 720 / 480.

   To Astro porters: every rule here maps cleanly to one Tailwind
   breakpoint (md/sm). The class names are deliberately stable.
------------------------------------------------------------- */

/* Page wrapper centres content > 1440 and never lets it go wider */
.fp-page { width: 100%; max-width: 1440px; margin: 0 auto; }

/* ============ TABLET — up to 1023 px =============================== */
@media (max-width: 1023px) {
  /* Section horizontal padding shrinks from 56 → 32 */
  .fp .fp-pad-x,
  .fp section[style*="padding: \"120px 56px"],
  .fp section[style*="padding: \"96px 56px"],
  .fp section[style*="padding: \"112px 56px"],
  .fp section[style*="padding: \"80px 56px"],
  .fp section[style*="padding: \"60px 56px"],
  .fp section[style*="padding: \"64px 56px"],
  .fp section[style*="padding: \"40px 56px"] {
    padding-left: 32px !important;
    padding-right: 32px !important;
  }

  /* All half-half grids → single column */
  .fp .fp-grid-half,
  .fp .fp-grid-5-7,
  .fp .fp-grid-7-5,
  .fp .fp-grid-1-2,
  .fp .fp-grid-2-1,
  .fp .fp-form-grid,
  .fp .fp-form-row {
    grid-template-columns: 1fr !important;
    gap: 48px !important;
  }

  /* 3-up grids (authors, press quotes) → 2-up */
  .fp .fp-grid-3,
  .fp .fp-author-notes-grid { grid-template-columns: 1fr 1fr !important; gap: 48px !important; }

  /* 4-up grids (also-on-the-list, related books) → 2-up */
  .fp .fp-grid-4 { grid-template-columns: 1fr 1fr !important; gap: 32px !important; }

  /* Two-column long-read drops to single column */
  .fp .fp-cols-2 { columns: 1 !important; }

  /* Journal long row → simpler layout */
  .fp .fp-journal-row {
    grid-template-columns: 90px 1fr !important;
    grid-template-areas:
      "kind  title"
      "kind  meta"
      ".     dek" !important;
    row-gap: 8px !important;
    column-gap: 24px !important;
  }
  .fp .fp-journal-row .fp-jr-kind  { grid-area: kind; }
  .fp .fp-journal-row .fp-jr-title { grid-area: title; }
  .fp .fp-journal-row .fp-jr-meta  { grid-area: meta;  }
  .fp .fp-journal-row .fp-jr-dek   { grid-area: dek;   }
  .fp .fp-journal-row .fp-jr-num   { display: none; }

  /* News index row — same idea, kind/title/dek/meta */
  .fp .fp-news-row {
    grid-template-columns: 110px 1fr !important;
    grid-template-areas:
      "kind  title"
      "kind  dek"
      ".     meta" !important;
    row-gap: 8px !important;
    column-gap: 24px !important;
  }
  .fp .fp-news-row .fp-nr-kind  { grid-area: kind; }
  .fp .fp-news-row .fp-nr-title { grid-area: title; }
  .fp .fp-news-row .fp-nr-dek   { grid-area: dek;   }
  .fp .fp-news-row .fp-nr-meta  { grid-area: meta; text-align: left !important; }

  /* Two-column listening list → single column on tablets and below */
  .fp .fp-listening-grid { grid-template-columns: 1fr !important; }

  /* Footer */
  .fp .fp-footer-grid { grid-template-columns: 1fr 1fr !important; gap: 48px !important; }

  /* Newsletter inner grid → stacked */
  .fp .fp-newsletter-grid { grid-template-columns: 1fr !important; gap: 40px !important; }

  /* Top bar → only volume + place; hide tagline */
  .fp .fp-topbar > :nth-child(3) { display: none; }

  /* Masthead nav: smaller gaps */
  .fp .fp-mast-nav { gap: 24px !important; }

  /* Display sizes shrink */
  .fp .fp-h1 { font-size: 72px !important; line-height: 1.04 !important; }
  .fp .fp-h2 { font-size: 56px !important; }
  .fp .fp-h3 { font-size: 40px !important; }

  /* Contact page — directory 4-up → 2-up; hero H1 trims */
  .fp .fp-contact-grid { grid-template-columns: 1fr 1fr !important; row-gap: 40px !important; }
  .fp .fp-contact-h1 { font-size: 64px !important; }

  /* Book hero floating cover: pull-up reduced + width-cap, weil grid auf 1fr
     kollabiert und das Cover sonst die volle Spaltenbreite einnimmt. */
  .fp .fp-book-cover-pullup { margin-top: -100px !important; max-width: 280px !important; margin-left: auto !important; margin-right: auto !important; }
  .fp .fp-book-scene { height: 440px !important; }
  .fp .fp-book-banner-typo { height: 280px !important; padding: 0 40px !important; }
  .fp .fp-book-banner-typo p { font-size: 28px !important; }

  /* Filter rows wrap */
  .fp .fp-filter-row { flex-wrap: wrap !important; gap: 16px !important; row-gap: 12px !important; }
  .fp .fp-filter-row > * { flex-shrink: 0; }

  /* Hide separate cover-story scene + use simpler flow */
  .fp .fp-mag-cover { min-height: 720px !important; }
}

/* ============ MOBILE — up to 720 px =============================== */
@media (max-width: 720px) {
  /* Tighter side padding */
  .fp .fp-pad-x,
  .fp section[style*="padding: \"120px 56px"],
  .fp section[style*="padding: \"96px 56px"],
  .fp section[style*="padding: \"112px 56px"],
  .fp section[style*="padding: \"80px 56px"],
  .fp section[style*="padding: \"60px 56px"],
  .fp section[style*="padding: \"64px 56px"],
  .fp section[style*="padding: \"40px 56px"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Section vertical rhythm tightens */
  .fp .fp-section-lg { padding-top: 64px !important; padding-bottom: 64px !important; }
  .fp .fp-section-md { padding-top: 48px !important; padding-bottom: 48px !important; }

  /* Grids collapse to one column */
  .fp .fp-grid-3,
  .fp .fp-grid-4,
  .fp .fp-author-notes-grid { grid-template-columns: 1fr !important; gap: 40px !important; }

  /* Authors index aside / book detail meta → stacked */
  .fp .fp-grid-1-2,
  .fp .fp-grid-2-1 { grid-template-columns: 1fr !important; gap: 32px !important; }

  /* About-Bio / Submissions / Autoren-Detail: 3-Spalten-Grid (1fr 760px 1fr)
     → einspaltig stacken. Auch Multi-Column-Articles (Authors-Detail-Extract)
     bekommen columns:1, sonst zwei zerquetschte Spalten auf Mobile. */
  .fp .fp-author-cols {
    display: block !important;
    grid-template-columns: 1fr !important;
    columns: 1 !important;
  }
  .fp .fp-author-cols > .eyebrow { margin-bottom: 18px !important; padding-top: 0 !important; }
  .fp .fp-author-cols > article p { font-size: 17px !important; line-height: 1.7 !important; }
  .fp .fp-author-cols > article p:first-of-type { font-size: 18px !important; }

  /* Footer: brand full-width on top, two link columns side by side below */
  .fp .fp-footer { padding: 40px 20px 24px !important; }
  .fp .fp-footer-grid { grid-template-columns: 1fr 1fr !important; gap: 28px 24px !important; padding-left: 0 !important; padding-right: 0 !important; }
  .fp .fp-footer-grid > :first-child { grid-column: 1 / -1 !important; }
  .fp .fp-footer-grid > div > div[style*="margin-bottom: 8px"] { margin-bottom: 4px !important; }
  .fp .fp-footer-legal { margin-top: 32px !important; padding-top: 20px !important; }

  /* Top bar — auf Mobile nur Brand-Statement + Sprach-Switcher, mit echtem Gap.
     :nth-child(3) ist der Wrapper, der tagline-r + den Lang-Switch enthält. Wir
     blenden die inneren Text-Nodes aus (font-size: 0) und liefern das Brand-
     Statement via ::before; das gap der inline-flex Box sorgt für Luft zum
     Sprach-Link. */
  .fp .fp-topbar { padding-left: 20px !important; padding-right: 20px !important; font-size: 10px !important; justify-content: center !important; }
  .fp .fp-topbar > :nth-child(1),
  .fp .fp-topbar > :nth-child(2) { display: none !important; }
  .fp .fp-topbar > :nth-child(3) {
    display: inline-flex !important;
    align-items: center !important;
    gap: 14px !important;
    font-size: 0 !important;
  }
  .fp .fp-topbar > :nth-child(3) > span { display: none !important; }
  .fp .fp-topbar > :nth-child(3)::before {
    content: "Independent garden books since 2015";
    font-size: 10px;
    letter-spacing: 0.16em;
  }

  /* Masthead — desktop nav stays here, hamburger handled in its own block */
  .fp .fp-mast {
    padding-top: 24px !important;
    padding-bottom: 16px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Breadcrumb */
  .fp .fp-breadcrumb {
    padding: 14px 20px !important;
    font-size: 10px !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
  }
  .fp .fp-breadcrumb > a,
  .fp .fp-breadcrumb > span:not([aria-current="page"]) {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }
  .fp .fp-breadcrumb > span:not([aria-current="page"]) { margin: 0 10px !important; }
  .fp .fp-breadcrumb > [aria-current="page"] {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  /* Display sizes — bigger jump down */
  .fp .fp-h1 { font-size: 48px !important; line-height: 1.06 !important; }
  .fp .fp-h2 { font-size: 38px !important; line-height: 1.1 !important; }
  .fp .fp-h3 { font-size: 30px !important; line-height: 1.15 !important; }

  /* Contact page on phones — single column, comfortable tap targets */
  .fp .fp-contact-grid { grid-template-columns: 1fr !important; row-gap: 32px !important; }
  .fp .fp-contact-h1 { font-size: 48px !important; line-height: 1.04 !important; }
  .fp .fp-company-grid { grid-template-columns: 1fr !important; row-gap: 18px !important; }
  .fp .fp-company-grid > dl > div { grid-template-columns: 1fr !important; row-gap: 2px !important; }
  .fp .fp-h4 { font-size: 24px !important; }
  .fp .fp-eyebrow-lg { font-size: 10px !important; }

  /* Drop cap shrinks */
  .fp .fp-dropcap { font-size: 64px !important; padding-right: 10px !important; padding-top: 4px !important; }

  /* Book hero — cover sits inline, not floating onto scene */
  .fp .fp-book-cover-pullup { margin-top: 24px !important; max-width: 240px; }
  .fp .fp-book-scene { height: 280px !important; margin-left: -20px !important; margin-right: -20px !important; }
  .fp .fp-book-banner-typo { height: 200px !important; padding: 0 20px !important; margin-left: -20px !important; margin-right: -20px !important; }
  .fp .fp-book-banner-typo p { font-size: 19px !important; line-height: 1.35 !important; }

  /* Authors grid: keep single column with portrait at full width */
  .fp .fp-author-card { grid-template-columns: 1fr !important; }

  /* Magazine cover masthead (homepage) — Mobile: hero wächst mit Content,
     statt absoluter Positionierung normaler Flow damit langer Text (DE-Variante)
     nicht beschnitten wird. */
  .fp .fp-mag-cover {
    min-height: 0 !important;
    padding: 0 20px !important;
  }
  .fp .fp-mag-cover-image {
    height: auto !important;
    min-height: 480px !important;
    aspect-ratio: auto !important;
    padding: 88px 20px 32px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    /* Image-Bleed an Mobile-Section-Padding anpassen (war auf Desktop -56px,
       Mobile-Padding ist 20px → -20px Bleed sonst überlappt das Bild den
       Viewport links und Text wird abgeschnitten). */
    margin-left: -20px !important;
    margin-right: -20px !important;
    position: relative !important;
  }
  .fp .fp-mag-cover-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.20) 0%, rgba(0,0,0,0.10) 30%, rgba(0,0,0,0.65) 80%, rgba(0,0,0,0.85) 100%);
    pointer-events: none;
    z-index: 0;
  }
  .fp .fp-mag-cover-image > * {
    position: relative;
    z-index: 1;
  }
  .fp .fp-mag-cover-eyebrow {
    position: absolute !important;
    top: 24px !important;
    left: 20px !important;
  }
  .fp .fp-mag-cover-grid {
    position: static !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    max-width: 100% !important;
  }
  .fp .fp-mag-cover-headline {
    font-size: 38px !important;
    line-height: 1.06 !important;
    margin-bottom: 16px !important;
    text-wrap: balance !important;
  }
  .fp .fp-mag-cover-sub {
    font-size: 16px !important;
    line-height: 1.45 !important;
  }
  /* Photo-Credit aus dem absolute-bottom-right (Desktop-Layout) in den Flow
     holen — sonst überlappt er den Sub-Text der auf Mobile am unteren Rand sitzt. */
  .fp .fp-mag-cover-image .scene-label {
    position: static !important;
    align-self: flex-end !important;
    margin-top: 16px !important;
    background: transparent !important;
    padding: 0 !important;
    color: oklch(0.85 0.02 80) !important;
    text-align: right;
  }

  /* Pull-quote bands (full bleed) */
  .fp .fp-pullquote { padding: 56px 20px !important; }
  .fp .fp-pullquote-text { font-size: 28px !important; line-height: 1.25 !important; }

  /* Newsletter band */
  .fp .fp-newsletter { padding: 56px 20px !important; }
  .fp .fp-newsletter-headline { font-size: 36px !important; }
  /* On mobile we override the underline-style row again so the submit
     becomes a clear, full-width button (44px+ tap target).
     The tablet rule above already stacks input + button. */
  .fp .fp-newsletter-field {
    flex-direction: column !important;
    align-items: stretch !important;
    border-bottom: none !important;
    gap: 12px !important;
  }
  .fp .fp-newsletter-field input {
    border: 1px solid oklch(0.85 0.04 110) !important;
    padding: 14px 14px !important;
    min-height: 48px;
    box-sizing: border-box;
  }
  .fp .fp-newsletter-submit {
    text-align: center !important;
    padding: 14px 18px !important;
    align-self: stretch;
    min-height: 48px;
    background: oklch(0.85 0.04 110) !important;
    color: oklch(0.2 0.04 130) !important;
    border: 1px solid oklch(0.85 0.04 110) !important;
    font-weight: 500;
  }
  .fp .fp-newsletter-trust { font-size: 11.5px !important; }

  /* Press / reviews quotes */
  .fp .fp-quote-text { font-size: 22px !important; line-height: 1.3 !important; }

  /* Tables (book detail, author detail) */
  .fp .fp-deflist { grid-template-columns: 1fr !important; }
  .fp .fp-deflist dt { padding: 12px 0 4px !important; border-top: 1px solid var(--rule) !important; }
  .fp .fp-deflist dd { padding: 0 0 14px !important; border-top: none !important; }

  /* Hide noisy decorative captions */
  .fp .fp-photo-label-hide-sm { display: none !important; }

  /* Author detail two-column extract */
  .fp .fp-author-cols { columns: 1 !important; }

  /* Buttons full width */
  .fp .fp-cta-row { flex-direction: column !important; align-items: stretch !important; gap: 16px !important; }
  .fp .fp-cta-row > a { text-align: center; }

  /* News-Detail Banner-Hero: 480px-Bühne ist auf Mobile zu hoch und die
     -56px Bleed-Negativmargen überlaufen den Viewport (Mobile-Padding ist 20px).
     Bild kleiner machen, Bleed an Mobile-Padding angleichen, Title-Block-
     Padding (war 56px 0 48px) deutlich reduzieren. */
  .fp section[style="padding: 0 56px; border-bottom: 1px solid var(--rule);"] > .scene {
    height: 280px !important;
    margin-left: -20px !important;
    margin-right: -20px !important;
  }
  .fp section[style="padding: 0 56px; border-bottom: 1px solid var(--rule);"] > div[style*="max-width: 920px"] {
    padding: 24px 0 28px !important;
  }
  .fp section[style="padding: 0 56px; border-bottom: 1px solid var(--rule);"] > div[style*="max-width: 920px"] h1.fp-h1 {
    margin-bottom: 14px !important;
  }

  /* News-Detail Editorial-Layout: schmale Spalte mit zentriertem Bild +
     Drop-Cap-Lead. Inline-Padding 64px 56px 96px → tighter; Figure-Bottom-Margin
     64px → 28px damit der Lead-Absatz schneller startet. */
  .fp .fp-news-editorial { padding: 32px 20px 48px !important; }
  .fp .fp-news-editorial > div > figure { margin-bottom: 28px !important; }
  .fp .fp-news-editorial > div > header { margin-bottom: 28px !important; }
  .fp .fp-news-editorial > div > header > .ui { margin-bottom: 14px !important; }

  /* ============ SUBMISSIONS-Seite — Mobile-Lesbarkeit ============
     Alle Multi-Column-Grids einspaltig stacken; Section-Paddings deutlich
     reduzieren; H2-Größen runter; Listen-Schrift kompakter. */
  .fp .fp-subs-intro { padding: 48px 20px 40px !important; }
  .fp .fp-subs-intro p:first-of-type { font-size: 17px !important; line-height: 1.65 !important; }
  .fp .fp-subs-intro p { font-size: 16px !important; line-height: 1.65 !important; margin-bottom: 20px !important; }
  .fp .fp-subs-intro .fp-dropcap { font-size: 60px !important; padding-right: 10px !important; padding-top: 4px !important; }

  .fp .fp-subs-yesno { padding: 48px 20px !important; }
  .fp .fp-subs-yesno-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
  .fp .fp-subs-yesno h2 { font-size: 26px !important; margin-bottom: 14px !important; }
  .fp .fp-subs-yesno ul { font-size: 15.5px !important; line-height: 1.6 !important; padding-left: 18px !important; }

  .fp .fp-subs-send { padding: 48px 20px !important; }
  .fp .fp-subs-send-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .fp .fp-subs-send h2 { font-size: 32px !important; }
  .fp .fp-subs-send ol li { grid-template-columns: 44px 1fr !important; gap: 16px !important; padding: 20px 0 !important; }
  .fp .fp-subs-send ol li > .display:first-child { font-size: 28px !important; }
  .fp .fp-subs-send ol li h3 { font-size: 18px !important; margin-bottom: 4px !important; }
  .fp .fp-subs-send ol li p { font-size: 14.5px !important; line-height: 1.55 !important; }

  .fp .fp-subs-next { padding: 48px 20px !important; }
  .fp .fp-subs-next-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .fp .fp-subs-next-grid > div { padding-top: 20px !important; }
  .fp .fp-subs-next-grid h3 { font-size: 18px !important; margin-bottom: 6px !important; }
  .fp .fp-subs-next-grid p { font-size: 14.5px !important; line-height: 1.55 !important; }
  .fp .fp-subs-next-grid > div > .display:first-child { font-size: 22px !important; margin-bottom: 8px !important; }

  .fp .fp-subs-quote { padding: 48px 20px !important; }
  .fp .fp-subs-quote blockquote { font-size: 20px !important; line-height: 1.4 !important; }

  /* ============ CONTACT-Seite — Mobile-Optimierung ============
     Directory: 3 Karten stacken zu 1 Spalte, kompaktere Paddings.
     Trade-Info: International-Liste 2-Spalten → 1-Spalte.
     Section-Paddings überall reduziert. */
  .fp .fp-contact-directory { padding: 48px 20px !important; }
  .fp .fp-contact-card { padding-top: 20px !important; }
  .fp .fp-contact-card h3 { font-size: 22px !important; margin-bottom: 8px !important; }
  .fp .fp-contact-card p { font-size: 14.5px !important; line-height: 1.55 !important; margin-bottom: 14px !important; }

  .fp .fp-trade-info { padding: 48px 20px !important; }
  .fp .fp-trade-intl-grid { grid-template-columns: 1fr !important; gap: 18px !important; }
  .fp .fp-trade-info h2 { font-size: 24px !important; margin-bottom: 14px !important; }
  .fp .fp-trade-info h3 { font-size: 20px !important; margin-bottom: 14px !important; }
  .fp .fp-trade-info > div > p { font-size: 14.5px !important; line-height: 1.6 !important; }
  .fp .fp-trade-info > div > p:nth-of-type(3) { margin-bottom: 36px !important; }
}

/* ============ NARROW MOBILE — up to 480 px ======================== */
@media (max-width: 480px) {
  .fp .fp-h1 { font-size: 34px !important; line-height: 1.05 !important; }
  .fp .fp-h2 { font-size: 28px !important; }
  .fp .fp-h3 { font-size: 24px !important; }
  .fp .fp-contact-h1 { font-size: 40px !important; }
  .fp .fp-eyebrow-lg { font-size: 9px !important; letter-spacing: 0.16em !important; }
  /* Hero (Cover) — engere Fonts für lange DE-Headlines */
  .fp .fp-mag-cover-headline { font-size: 32px !important; line-height: 1.08 !important; }
  .fp .fp-mag-cover-sub { font-size: 15px !important; }
  .fp .fp-mag-cover-image { min-height: 440px !important; padding: 80px 20px 28px !important; }
  .fp .fp-book-banner-typo { height: 170px !important; }
  .fp .fp-book-banner-typo p { font-size: 16px !important; line-height: 1.4 !important; }
}

/* ============ NOTES & NEWS · CFeatureLongread ===================== */
@media (max-width: 1023px) {
  .fp .fp-notes { padding: 64px 32px !important; }
  .fp .fp-notes-head {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    align-items: start !important;
    margin-bottom: 32px !important;
  }
  .fp .fp-notes-rule { display: none !important; }
  .fp .fp-notes-viewall { justify-self: start !important; }
  .fp .fp-notes-title { font-size: 32px !important; }
  .fp .fp-notes-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .fp .fp-notes-feature-img { aspect-ratio: auto !important; max-height: 320px !important; width: auto !important; max-width: 100% !important; height: auto !important; object-fit: contain; margin-left: auto !important; margin-right: auto !important; }
  .fp .fp-notes-feature-title { font-size: 26px !important; line-height: 1.18 !important; }
  .fp .fp-notes-feature-blurb { font-size: 14.5px !important; }
  .fp .fp-notes-item-title { font-size: 18px !important; line-height: 1.22 !important; }
  .fp .fp-notes-item { padding-top: 18px !important; padding-bottom: 18px !important; }
}
@media (max-width: 480px) {
  .fp .fp-notes { padding: 48px 20px !important; }
  .fp .fp-notes-title { font-size: 26px !important; }
  .fp .fp-notes-feature-title { font-size: 22px !important; }
  .fp .fp-notes-feature-img { max-height: 280px !important; }
}

/* ============ FROM THE SAME SHELF · CInThisIssue ================== */
@media (max-width: 1023px) {
  .fp .fp-shelf { padding: 72px 32px !important; }
  .fp .fp-shelf-head { grid-template-columns: 1fr !important; gap: 18px !important; align-items: start !important; margin-bottom: 36px !important; }
  .fp .fp-shelf-rule { display: none !important; }
  .fp .fp-shelf-title { font-size: 40px !important; }
  .fp .fp-shelf-grid { grid-template-columns: 1fr !important; column-gap: 0 !important; row-gap: 0 !important; }
  .fp .fp-shelf-card {
    grid-template-columns: 100px 1fr !important;
    gap: 22px !important;
    border-top: 1px solid var(--rule) !important;
    padding: 24px 0 !important;
  }
  .fp .fp-shelf-card img {
    width: 100px !important;
    height: 142px !important;
  }
  .fp .fp-shelf-title-card { font-size: 21px !important; line-height: 1.2 !important; }
  .fp .fp-shelf-author { font-size: 13px !important; margin-bottom: 10px !important; }
  .fp .fp-shelf-blurb { font-size: 13.5px !important; line-height: 1.5 !important; margin-bottom: 12px !important; }
  .fp .fp-shelf-cta { font-size: 10px !important; }
}
@media (max-width: 480px) {
  .fp .fp-shelf { padding: 48px 20px !important; }
  .fp .fp-shelf-title { font-size: 32px !important; }
  .fp .fp-shelf-card { grid-template-columns: 88px 1fr !important; gap: 18px !important; padding: 22px 0 !important; }
  .fp .fp-shelf-card img { width: 88px !important; height: 124px !important; }
  .fp .fp-shelf-title-card { font-size: 19px !important; }
}
/* Mobile order: eyebrow → cover → title → author → blurb → CTA       */
@media (max-width: 1023px) {
  .fp .fp-current {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    padding: 56px 32px !important;
    align-items: stretch !important;
  }
  .fp .fp-current-eyebrow { order: 1; margin-bottom: 0 !important; }
  .fp .fp-current-cover   { order: 2; max-width: 280px !important; justify-self: center !important; align-self: center; }
  .fp .fp-current-text    { order: 3; display: contents; }
  .fp .fp-current-title   { order: 4; font-size: 48px !important; line-height: 1.04 !important; margin: 8px 0 6px !important; }
  .fp .fp-current-author  { order: 5; font-size: 20px !important; margin: 0 0 12px !important; }
  .fp .fp-current-blurb   { order: 6; font-size: 16px !important; line-height: 1.55 !important; margin: 0 0 8px !important; }
  /* BuyDirect lives inside .fp-current-text — gets the next order naturally */
  .fp .fp-buy-direct      { order: 7; }
}
@media (max-width: 480px) {
  .fp .fp-current { padding: 40px 20px !important; }
  .fp .fp-current-title  { font-size: 38px !important; }
  .fp .fp-current-author { font-size: 18px !important; }
  .fp .fp-current-cover  { max-width: 240px !important; }
}

/* ============ OUR BOOKS — index page ============================== */
/* Card hover: lift the cover and dim slightly; underline the title.
   Keep this off touch devices to avoid sticky :hover states. */
@media (hover: hover) {
  .fp .fp-book-card { transition: color 0.2s ease; }
  .fp .fp-book-card .fp-book-card-cover img { transition: transform 0.5s ease, opacity 0.35s ease; }
  .fp .fp-book-card:hover .fp-book-card-cover img { transform: translateY(-4px); opacity: 0.92; }
  .fp .fp-book-card:hover .fp-book-card-title {
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 100% 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
  }
  .fp .fp-books-featured-cover img { transition: transform 0.5s ease, opacity 0.35s ease; }
  .fp .fp-books-featured-cover:hover img { transform: translateY(-4px); opacity: 0.94; }
}

/* ============ BOOKS GRID — 4-up on large desktops ================== */
/* Large desktop: 4 columns from 1440 up. Below that the catalogue stays at
   3 columns so cover artwork keeps a generous reading scale. */
@media (min-width: 1440px) {
  .fp .fp-books-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 56px 36px !important; }
}

/* Tablet ≤ 1023 — featured stacks; grid → 2 cols. */
@media (max-width: 1023px) {
  .fp .fp-books-h1 { font-size: 52px !important; }
  .fp .fp-books-featured-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .fp .fp-books-featured-cover { max-width: 320px; }
  .fp .fp-books-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 40px 32px !important;
  }
  .fp .fp-books-controls { padding: 12px 32px !important; }
  .fp .fp-books-grid-wrap { padding: 32px 32px 72px !important; }
}

/* Mobile ≤ 720 — single column; quieter chips, sort wraps below. */
@media (max-width: 720px) {
  .fp .fp-books-h1 { font-size: 44px !important; }
  .fp .fp-books-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .fp .fp-books-grid-wrap { padding: 28px 20px 56px !important; }
  .fp .fp-books-controls {
    padding: 12px 20px !important;
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  .fp .fp-books-chips {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -20px;
    padding: 0 20px;
  }
  .fp .fp-books-chips::-webkit-scrollbar { display: none; }
  .fp .fp-books-chips button { white-space: nowrap; }
  .fp .fp-books-sort {
    flex-wrap: wrap;
    gap: 10px !important;
    width: 100%;
  }
  .fp .fp-books-featured { padding: 28px 20px 28px !important; }
  .fp .fp-books-featured-title { font-size: 30px !important; }
  .fp .fp-books-featured-cover { max-width: none; margin: 0 auto; }
}

@media (max-width: 480px) {
  .fp .fp-books-h1 { font-size: 38px !important; }
  .fp .fp-book-card-title { font-size: 19px !important; }
  .fp .fp-books-featured-title { font-size: 26px !important; }
}

/* ============ MASTHEAD HAMBURGER (≤1023px) ========================
   At tablet width the centred-row nav crowds the wordmark and the
   letter-spaced labels run into each other, so we swap to a hamburger
   that opens a full-screen panel from tablet down.
   The panel itself is rendered by JSX (CMasthead_Shared) and is fixed-
   position; this block only governs trigger visibility + nav hide. */
@media (max-width: 1023px) {
  .fp .fp-mast-nav-desktop { display: none !important; }
  .fp .fp-mast-burger      { display: flex !important; }
  /* Tighten masthead vertical rhythm when nav is hidden */
  .fp .fp-mast { padding-top: 20px !important; padding-bottom: 16px !important; }
}

/* ============ NEWSLETTER · STACK FROM TABLET (≤1023) ============= */
/* Below tablet we already drop the half-half grid (rule above), and
   we want the input row to stack at the same breakpoint so the field
   never gets squeezed against the headline. The MOBILE rule (≤720)
   later overrides this with the full-width button styling. */
@media (max-width: 1023px) {
  .fp .fp-newsletter-field {
    flex-direction: column !important;
    align-items: stretch !important;
    border-bottom: none !important;
    gap: 8px !important;
  }
  .fp .fp-newsletter-field input {
    border-bottom: 1px solid oklch(0.85 0.04 110) !important;
    padding: 14px 0 !important;
    min-height: 48px;
  }
  .fp .fp-newsletter-submit {
    text-align: left !important;
    padding: 14px 0 0 !important;
    align-self: flex-start;
    min-height: 44px;
  }
}

/* ============ NEWS INDEX — hero, filters, list (responsive) ====== */
/* The News page used the generic .fp-pad-x rules but its hero, filter
   row and list row needed dedicated overrides. Filter row scrolls
   horizontally on mobile (no wrap, no dropdown). */
@media (max-width: 1023px) {
  /* Hero — stack into one column, trim padding */
  .fp .fp-news-hero { padding: 64px 32px 40px !important; }
  .fp .fp-news-hero-grid { grid-template-columns: 1fr !important; gap: 24px !important; align-items: start !important; }
  .fp .fp-news-hero h1.fp-h1 { font-size: 96px !important; line-height: 0.94 !important; margin-left: -4px !important; }
  .fp .fp-news-hero-sub { font-size: 19px !important; }

  /* Featured — single column on tablet */
  .fp .fp-news-featured { padding: 64px 32px !important; }
  .fp .fp-news-featured-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .fp .fp-news-featured h2.fp-h2 { font-size: 44px !important; }
}
@media (max-width: 720px) {
  .fp .fp-news-hero { padding: 40px 20px 28px !important; }
  .fp .fp-news-hero h1.fp-h1 { font-size: 64px !important; margin-left: -2px !important; }
  .fp .fp-news-hero-sub { font-size: 16px !important; }

  .fp .fp-news-featured { padding: 48px 20px !important; }
  .fp .fp-news-featured h2.fp-h2 { font-size: 34px !important; }
  .fp .fp-news-list-wrap { padding: 32px 20px !important; }
}

/* News filter row — horizontal scroll, no wrap. Hide scrollbars on iOS;
   keep tap targets ≥44px high so chips remain comfortable. */
@media (max-width: 1023px) {
  .fp .fp-news-filters {
    padding: 12px 20px !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    gap: 22px !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .fp .fp-news-filters::-webkit-scrollbar { display: none; }
  .fp .fp-news-filters > button {
    flex-shrink: 0;
    min-height: 44px;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
}

/* News list row — already collapses via the generic .fp-news-row rule
   above (kind/title/dek/meta). Below 720 we tighten further: kind
   slides above, title is full width, dek + meta stack underneath. */
@media (max-width: 720px) {
  .fp .fp-news-row {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "kind"
      "title"
      "dek"
      "meta" !important;
    row-gap: 8px !important;
    padding: 24px 0 !important;
  }
  .fp .fp-news-row .fp-nr-title { font-size: 22px !important; line-height: 1.22 !important; }
  .fp .fp-news-row .fp-nr-dek   { font-size: 14px !important; }
  .fp .fp-news-row .fp-nr-meta  { text-align: left !important; }
}

/* ============ AUTHOR DETAIL — hero stack ========================= */
@media (max-width: 1023px) {
  /* The 5/7 hero collapses to a single column; portrait sits above the
     name and is capped so it doesn't dominate the screen. */
  .fp .fp-author-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    padding-top: 48px !important;
    padding-bottom: 56px !important;
    align-items: start !important;
  }
  .fp .fp-author-hero-grid > img {
    max-width: 360px;
    margin: 0 auto;
    aspect-ratio: 4/5 !important;
  }
  .fp .fp-author-hero-grid h1.fp-h1 { font-size: 88px !important; margin-bottom: 18px !important; }
}
@media (max-width: 720px) {
  .fp .fp-author-hero-grid {
    padding-top: 32px !important;
    padding-bottom: 40px !important;
    gap: 24px !important;
  }
  .fp .fp-author-hero-grid > img { max-width: 280px; }
  .fp .fp-author-hero-grid h1.fp-h1 { font-size: 56px !important; line-height: 0.96 !important; }
}

/* ============ BOOK DETAIL — H1 mobile scale ====================== */
@media (max-width: 1023px) {
  .fp .fp-book-title { font-size: 56px !important; line-height: 1.02 !important; }
  .fp .fp-book-subtitle { font-size: 20px !important; }
}
@media (max-width: 720px) {
  .fp .fp-book-title { font-size: 44px !important; line-height: 1.04 !important; }
  .fp .fp-book-subtitle { font-size: 18px !important; }
  .fp .fp-book-hero { grid-template-columns: 1fr !important; gap: 32px !important; padding: 32px 0 48px !important; }
}
@media (max-width: 480px) {
  .fp .fp-book-title { font-size: 36px !important; }
}

/* ============ TOUCH TARGETS (≤720) ============================== */
/* Buttons that double as nav/CTA in form contexts get a 44–48px floor.
   We do NOT touch inline .underlink usages in flowing prose — those
   stay as text underlines. Only the structural CTAs are bulked up. */
@media (max-width: 720px) {
  /* Books filter chips — already scroll horizontally; ensure tap height. */
  .fp .fp-books-chips button { min-height: 44px; padding-top: 10px; padding-bottom: 10px; }

  /* Books sort buttons */
  .fp .fp-books-sort button { min-height: 36px; padding: 6px 4px; }

  /* Contact form submit + directory CTA buttons */
  .fp .fp-contact-grid button.underlink { min-height: 44px; padding: 12px 0 !important; }
  .fp form.ui button[type="submit"] { min-height: 48px; padding: 14px 28px !important; width: 100%; }
  .fp form.ui input[type="text"],
  .fp form.ui input[type="email"],
  .fp form.ui select,
  .fp form.ui textarea { min-height: 44px; }

  /* CTA underlinks that act as primary buttons under the hero/cover */
  .fp .fp-cta-row > a,
  .fp .fp-cta-row > button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; }

  /* News filter buttons (already 44px from filters block — repeated here
     for clarity when the row also wraps). */
  .fp .fp-news-filters > button { min-height: 44px; }
}

/* ============ AUTHORS INDEX ====================================== */
/* Desktop default in JSX: 5 columns. Step down on smaller widths. */
@media (max-width: 1280px) {
  .fp .fp-authors-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    column-gap: 28px !important;
    row-gap: 48px !important;
  }
}
@media (max-width: 1023px) {
  .fp .fp-authors-grid-wrap { padding: 48px 32px 64px !important; }
  .fp .fp-authors-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    column-gap: 24px !important;
    row-gap: 40px !important;
  }
  .fp .fp-authors-indexbar { padding: 14px 32px !important; }
}
@media (max-width: 720px) {
  .fp .fp-authors-grid-wrap { padding: 28px 20px 48px !important; }
  .fp .fp-authors-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    column-gap: 20px !important;
    row-gap: 32px !important;
  }
  .fp .fp-author-card-name { font-size: 19px !important; }
  .fp .fp-author-card-role { font-size: 12.5px !important; }

  /* Authors-Hero — vertikal-Padding deutlich reduzieren, damit das Grid früher sichtbar wird */
  .fp section[style*="96px 56px 64px"] {
    padding-top: 48px !important;
    padding-bottom: 32px !important;
  }
  .fp section[style*="96px 56px 64px"] .fp-grid-half {
    gap: 24px !important;
  }
}
@media (max-width: 420px) {
  .fp .fp-authors-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    column-gap: 16px !important;
    row-gap: 28px !important;
  }
  .fp .fp-author-card img {
    aspect-ratio: 4/5 !important;
    object-position: top !important;
  }
}

/* ============ FADE INDICATOR — News filter scroll (≤1023) ========
   Subtle right-edge fade that hints there's more to scroll. The
   filter row is wrapped by .fp-news-filters-wrap (added in JSX).
   We position a sticky pseudo-element on the wrap so it stays in
   place over the scrolling chips. */
@media (max-width: 1023px) {
  .fp .fp-news-filters-wrap {
    position: relative;
  }
  .fp .fp-news-filters-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 36px;
    pointer-events: none;
    background: linear-gradient(
      to right,
      oklch(0.955 0.022 78 / 0) 0%,
      oklch(0.955 0.022 78 / 0.85) 70%,
      oklch(0.955 0.022 78) 100%
    );
  }
}

/* ============ TOUCH TARGETS — footer + card CTAs (≤720) =========
   Per editorial decision: bulk up structural CTAs only. Inline
   prose links stay as text. */
@media (max-width: 720px) {
  /* Footer section links (Our Books / Authors / About columns) */
  .fp .fp-footer-grid .ui a.underlink {
    display: inline-block;
    min-height: 44px;
    line-height: 44px;
    padding: 0 2px;
  }
  /* Footer legal row */
  .fp .fp-footer-legal a.underlink {
    display: inline-block;
    min-height: 44px;
    line-height: 44px;
    padding: 0 2px;
  }
  /* Wrap the legal nav so 44px tall pills don't crash into the © line */
  .fp .fp-footer-legal { gap: 12px !important; }

  /* Books index — card title link wraps the whole card already; no
     change. The "View book →" CTA inside cards: */
  .fp .fp-book-card .fp-book-card-cta {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 0;
  }

  /* News list — full row is the link with 32px vertical padding +
     content, comfortably > 44px. No change needed. */

  /* Author Notes / Shelf cards — make any "Read on →" / "Read more"
     CTA tap-comfortable */
  .fp .fp-shelf-cta,
  .fp .fp-notes-feature-cta,
  .fp .fp-notes-item-cta {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 0;
  }

  /* Featured news article CTA */
  .fp .fp-news-featured a.underlink {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 0;
  }
}

/* ============ LISTENING CARDS — quiet hover, all viewports ======== */
.fp .fp-listen-card { text-decoration: none; }
.fp .fp-listen-card:hover {
  background: oklch(0.98 0.012 80) !important;
  transform: translateY(-1px);
}
.fp .fp-listen-card:hover .display { text-decoration: underline; text-underline-offset: 4px; }

/* ============ MOBILE OVERRIDES — author redesign 2026-05-15 ====== */
@media (max-width: 1023px) {
  .fp .fp-author-books-grid { grid-template-columns: 1fr !important; row-gap: 32px !important; }
  .fp .fp-author-books-grid > a { grid-template-columns: 96px 1fr !important; gap: 20px !important; }
  .fp .fp-listening-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
  .fp .fp-sample-slide { flex: 0 0 calc(100% - 48px) !important; max-width: 480px; }
  .fp .fp-review-slide { flex: 0 0 calc(100% - 48px) !important; max-width: 460px; }
}

@media (max-width: 720px) {
  .fp .fp-pad-x { padding-left: 20px !important; padding-right: 20px !important; }
  .fp .fp-author-hero-grid > div h1.fp-h1 { font-size: 48px !important; }
  .fp .fp-author-hero-grid > img,
  .fp .fp-author-hero-grid > div[aria-hidden="true"] {
    width: 100% !important;
    max-width: 280px !important;
    height: auto !important;
    aspect-ratio: 4/5 !important;
  }
  .fp .fp-about-author-row { grid-template-columns: 72px 1fr !important; gap: 16px !important; }
  .fp .fp-about-author-row > a > img,
  .fp .fp-about-author-row > div[aria-hidden="true"] { width: 72px !important; height: 90px !important; }
  .fp .fp-author-books-grid > a > img { width: 96px !important; }
}

@media (max-width: 480px) {
  .fp .fp-author-cols { columns: 1 !important; column-rule: none !important; }
}
