/* ============================================================
   wl-mobile.css — WiseLeaf mobile layer. PHONES ONLY.
   Every rule below is inside @media (max-width:768px), except the
   single desktop guard that hides .wl-mobile-only elements.
   Loaded LAST on each page. Never edit other CSS files.
   Style: owner-approved "Desktop-true" (see mobile-responsive/DECISIONS.md).
   Naming: every new class is wl-m-* (zero collision with legacy CSS).
   ============================================================ */

/* THE ONLY desktop-side rule: elements added for mobile do not exist visually
   on desktop. Verified by tools/additive-check.py. */
@media (min-width: 769px) {
  .wl-mobile-only { display: none !important; }
}

@media (max-width: 768px) {

  /* ---------- tokens (self-contained; not all pages load wiseleaf-variables.css) ---------- */
  :root {
    --wlm-primary: #0c4a60;
    --wlm-secondary: #1a5c75;
    --wlm-accent: #005a8b;
    --wlm-orange: #e67e22;
    --wlm-text: #2c3e50;
    --wlm-muted: #5d6d7e;
    --wlm-bg: #f8f9fa;
    --wlm-line: #e9ecef;
    --wlm-grad: linear-gradient(135deg, #0c4a60 0%, #1a5c75 50%, #005a8b 100%);
    --wlm-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    --wlm-header-h: 80px;
  }

  .wl-mobile-only { display: block; }

  /* ---------- global comfort ---------- */
  html, body { overflow-x: hidden; }
  body { font-size: 16px; }
  input, select, textarea { font-size: 16px !important; } /* no iOS zoom */

  /* ---------- retire the always-open nav stack (the wall of links) ---------- */
  html body nav.nav-menu,
  html body .nav-menu { display: none !important; }

  /* ---------- hamburger button (inserted inside .header-container) ---------- */
  .wl-m-burger {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border: none; background: none; cursor: pointer;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 5px; z-index: 1101; padding: 0;
  }
  .wl-m-burger span {
    display: block; width: 24px; height: 2.5px; background: var(--wlm-primary);
    border-radius: 2px; transition: transform .25s ease, opacity .25s ease;
  }
  .wl-m-burger.wl-m-x span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .wl-m-burger.wl-m-x span:nth-child(2) { opacity: 0; }
  .wl-m-burger.wl-m-x span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  /* clean header edge: no shadow line under the logo (owner, 2026-08-02) */
  html body header.header, html body .header {
    box-shadow: none !important; border-bottom: none !important; }
  html body .header .header-container { position: relative; }

  /* ---------- slide-in nav overlay ---------- */
  .wl-m-nav {
    position: fixed; left: 0; right: 0; bottom: 0; top: var(--wlm-header-h);
    background: var(--wlm-grad); z-index: 1100;
    transform: translateX(100%); transition: transform .28s ease;
    overflow-y: auto; display: flex; flex-direction: column;
  }
  .wl-m-nav.wl-m-open { transform: translateX(0); }
  body.wl-m-noscroll { overflow: hidden !important; height: 100vh !important; }
  /* hardened against legacy !important link/list rules */
  .wl-m-nav ul { list-style: none !important; margin: 0 !important; padding: 12px 0 !important; }
  .wl-m-nav ul li { margin: 0 !important; padding: 0 !important; border: none !important;
    background: none !important; line-height: normal !important; }
  .wl-m-nav ul a {
    display: flex !important; align-items: center; justify-content: space-between;
    color: #fff !important; text-decoration: none !important;
    font-size: 1.05rem !important; font-weight: 600 !important;
    font-family: 'Source Sans Pro', sans-serif !important;
    padding: 15px 24px !important; margin: 0 !important;
    background: none !important; border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    line-height: 1.4 !important; opacity: 1 !important;
  }
  /* wiseleaf-text-links-readable.css paints all anchors with !important at
     ~(0,4,2) specificity; ID selectors (1,0,x) win without an arms race */
  #wlmNav ul a { color: #fff !important; }
  #wlmNav .wl-m-nav-cta { color: #fff !important; }
  #wlmSug a { color: var(--wlm-text) !important; }
  .wl-m-nav .wl-m-nav-cta {
    margin: 20px auto 28px auto !important; display: block !important;
    width: auto !important; max-width: 240px !important; text-align: center;
    background: var(--wlm-orange) !important; color: #fff !important;
    text-decoration: none !important; font-weight: 700 !important;
    padding: 12px 26px !important; border-radius: 8px !important;
    font-size: .95rem !important; opacity: 1 !important;
  }

  /* ---------- shared components (Desktop-true) ---------- */
  .wl-m-band {                       /* teal gradient band */
    background: var(--wlm-grad); color: #fff; padding: 28px 20px 32px;
  }
  .wl-m-band h1, .wl-m-band h2 {
    font-family: 'Merriweather', serif; font-weight: 700; color: #fff;
    font-size: clamp(1.4rem, 6vw, 1.9rem); line-height: 1.3; margin: 0;
  }
  .wl-m-band p { margin: 8px 0 0; font-size: .92rem; opacity: .87; line-height: 1.55; }

  .wl-m-card {                       /* the desktop card treatment */
    background: #fff; border: 1px solid var(--wlm-line); border-radius: 12px;
    box-shadow: var(--wlm-shadow);
  }
  .wl-m-title {                      /* centered serif section title */
    font-family: 'Merriweather', serif; color: var(--wlm-primary);
    font-size: 1.35rem; font-weight: 600; text-align: center; margin: 34px 0 14px;
  }
  .wl-m-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 46px; padding: 0 20px; border-radius: 8px; font-weight: 600;
    font-size: .92rem; text-decoration: none; border: none; cursor: pointer;
  }
  .wl-m-btn-solid { background: var(--wlm-primary); color: #fff; }
  .wl-m-btn-line { background: #fff; color: var(--wlm-primary); border: 1.5px solid var(--wlm-primary); }
  .wl-m-btn-orange { background: var(--wlm-orange); color: #fff; }
  .wl-m-badge {
    font-size: .7rem; font-weight: 600; border-radius: 5px; padding: 2px 8px;
    display: inline-block; border: 1px solid var(--wlm-line); background: #fff;
    color: var(--wlm-muted);
  }

  /* ---------- sticky search strip (catalog pages) ---------- */
  .wl-m-search-strip {
    position: sticky; top: var(--wlm-header-h); z-index: 500;
    background: var(--wlm-bg); display: flex; gap: 8px; padding: 12px 16px;
    border-bottom: 1px solid var(--wlm-line);
  }
  .wl-m-search-strip input {
    flex: 1; min-width: 0; height: 46px; border: 1px solid var(--wlm-line);
    border-radius: 8px; padding: 0 14px; background: #fff; color: var(--wlm-text);
  }
  .wl-m-search-strip input:focus { outline: 2px solid #3498db; border-color: transparent; }
  .wl-m-filter-btn {
    height: 46px; padding: 0 16px; border-radius: 8px;
    border: 1.5px solid var(--wlm-primary); background: #fff; color: var(--wlm-primary);
    font-weight: 600; font-size: .92rem; display: flex; align-items: center; gap: 7px;
  }
  .wl-m-sug {
    position: absolute; left: 16px; right: 16px; top: 62px; z-index: 600;
    background: #fff; border: 1px solid var(--wlm-line); border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12); overflow: hidden; display: none;
  }
  .wl-m-sug.wl-m-open { display: block; }
  .wl-m-sug a {
    display: block; padding: 11px 16px; text-decoration: none;
    color: var(--wlm-text); font-size: .88rem; font-weight: 600;
    border-bottom: 1px solid var(--wlm-line);
  }
  .wl-m-sug a:last-child { border-bottom: none; }

  /* ---------- filter bottom sheet ---------- */
  .wl-m-sheet-backdrop {
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); z-index: 1500;
    opacity: 0; pointer-events: none; transition: opacity .25s;
  }
  .wl-m-sheet-backdrop.wl-m-open { opacity: 1; pointer-events: auto; }
  .wl-m-sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1600; background: #fff;
    border-radius: 16px 16px 0 0; max-height: 78vh; overflow-y: auto;
    transform: translateY(105%); transition: transform .28s ease;
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.12);
  }
  .wl-m-sheet.wl-m-open { transform: translateY(0); }
  .wl-m-sheet-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px 6px;
  }
  .wl-m-sheet-head h3 {
    font-family: 'Merriweather', serif; color: var(--wlm-primary);
    font-size: 1.1rem; font-weight: 600; margin: 0;
  }
  .wl-m-sheet-actions {
    display: flex; gap: 10px; padding: 16px 20px 26px;
    border-top: 1px solid var(--wlm-line);
  }
  .wl-m-sheet-actions .wl-m-btn { flex: 1; }

  /* ============================================================
     PAGE SECTIONS — appended below by each page plan, wrapped in
     comments:  /* === PAGE: <name> START === * / ... END
     Do not add rules above this line except via a plan.
     ============================================================ */

  /* ---------- footer tidy (all pages): legal links + newsletter ---------- */
  html body .legal-links.legal-links { display: block !important;
    padding: 0 16px !important; text-align: center !important; }
  html body .legal-links.legal-links a { display: inline-block !important;
    width: auto !important; max-width: none !important;
    margin: 0 10px 6px 10px !important; padding: 6px 2px !important;
    border: none !important; border-radius: 0 !important; box-shadow: none !important;
    background: none !important; color: rgba(255,255,255,.8) !important;
    font-size: .8rem !important; font-weight: 400 !important;
    text-decoration: underline !important; text-underline-offset: 3px !important;
    line-height: 1.4 !important; float: none !important; }
  html body .newsletter-form.newsletter-form { display: flex !important;
    flex-direction: column !important; gap: 10px !important;
    align-items: stretch !important; margin: 0 !important; }
  html body .newsletter-form.newsletter-form .newsletter-input {
    width: 100% !important; box-sizing: border-box !important;
    height: 48px !important; border-radius: 8px !important; margin: 0 !important; }
  html body .newsletter-form.newsletter-form .newsletter-btn {
    width: 100% !important; max-width: none !important; align-self: stretch !important;
    box-sizing: border-box !important; min-height: 48px !important;
    border-radius: 8px !important; margin: 0 !important; font-weight: 700 !important; }

  /* ---------- footer compression: same content, half the scroll ---------- */
  html body .wiseleaf-footer { padding-top: 0 !important; }
  html body .wiseleaf-footer .footer-content { gap: 14px !important;
    padding: 30px 20px 22px !important; }
  html body .wiseleaf-footer .footer-section { margin: 0 !important; padding: 0 !important; }
  html body .wiseleaf-footer .footer-heading { font-size: .95rem !important;
    letter-spacing: 1px !important; margin: 0 0 10px 0 !important; }
  html body .wiseleaf-footer .footer-nav { margin: 0 !important; padding: 0 !important; }
  html body .wiseleaf-footer .footer-nav li { padding: 3px 0 !important; margin: 0 !important; }
  html body .wiseleaf-footer .footer-section .footer-heading { margin-top: 0 !important; }
  html body .wiseleaf-footer .footer-brand, html body .wiseleaf-footer .footer-contact,
  html body .wiseleaf-footer .footer-contact-item { margin-bottom: 10px !important; }
  html body .wiseleaf-footer p, html body .wiseleaf-footer .footer-tagline {
    margin-top: 4px !important; margin-bottom: 4px !important; }
  html body .wiseleaf-footer .footer-nav a,
  html body .wiseleaf-footer .footer-nav li { font-size: .88rem !important; line-height: 1.5 !important; }
  /* locations: one line instead of a tall list */
  html body .footer-section.footer-services .footer-nav { display: flex !important;
    flex-direction: row !important; flex-wrap: wrap !important; gap: 4px 18px !important; }
  html body .footer-section.footer-services .footer-nav li { padding: 0 !important; }
  /* resources: two columns instead of one long column */
  html body .footer-section.footer-resources .footer-nav { display: grid !important;
    grid-template-columns: 1fr 1fr !important; gap: 4px 14px !important; }
  html body .wiseleaf-footer .footer-brand-text h3 { font-size: 1rem !important; margin: 0 !important; }
  html body .wiseleaf-footer .footer-brand-text { gap: 2px !important; }
  html body .wiseleaf-footer .sf-social a,
  html body .wiseleaf-footer .social-icons a, html body .wiseleaf-footer .social-links a {
    width: 38px !important; height: 38px !important; }

  /* === PAGE: publish START === */
  .wl-m-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { max-width: 100%; }
  form input, form select, form textarea { width: 100%; box-sizing: border-box; }
  /* === PAGE: publish END === */

  /* === PAGE: journals START === */
  /* owner decision 2026-08-04: with only 2 journals, search/filter/sort earn
     no space on phones — hidden on mobile ONLY (desktop keeps them).
     REVISIT when the journal list grows (~6+): delete these two rules. */
  .journals-filters { display: none !important; }
  .journals-content .sort-select { display: none !important; }
  .journals-filters { order: 0 !important; }
  .journals-list { order: 1 !important; }
  /* journals banner: same treatment as books-catalog (owner bundle 4) — the
     baked image strip is unreadable on phones; light image + HTML why-block */
  html body section.journals-header.journals-header {
    background:
      linear-gradient(180deg, rgba(255,255,255,.30) 0%, rgba(255,255,255,.55) 100%),
      url('../images/heroes/vision-hero.jpg') center / cover no-repeat !important;
    height: auto !important; min-height: 0 !important; max-height: none !important;
    overflow: visible !important; padding: 26px 20px 28px !important; }
  /* journals-hero-final-fix.css force-hides EVERY child of .journals-header
     (display:none + visibility:hidden on *). Un-hide our why-block with
     higher class-specificity; wl-mobile.css also loads after it. */
  html body .journals-header .wl-m-why-wrap,
  html body .journals-header .wl-m-why-title {
    display: block !important; visibility: visible !important; }
  html body .journals-header .wl-m-why {
    display: grid !important; visibility: visible !important; }
  html body .journals-header .wl-m-why span {
    display: flex !important; visibility: visible !important; }
  html body .journals-header .wl-m-why span i {
    display: inline-flex !important; visibility: visible !important; }
  html body .journals-header .wl-m-why span img {
    display: inline-block !important; visibility: visible !important; }
  /* full-service hero: h1 + subtitle sat side by side in the collapsed flex
     row; stack and center them (scoped away from the homepage band hero) */
  body:not(:has(.wl-m-hero)) div.hero {
    flex-direction: column !important; text-align: center !important;
    justify-content: center !important; align-items: center !important;
    gap: 8px !important; }
  .journal-card { background: #fff !important; border: 1px solid var(--wlm-line) !important;
    border-radius: 12px !important; box-shadow: var(--wlm-shadow) !important;
    padding: 14px !important; }
  /* cover image (the page JS injects a real <img> here): centered above the
     content; owner 2026-08-04: keep the covers */
  .journal-card .journal-image { display: flex !important; justify-content: center;
    align-items: center; margin: 0 0 12px !important; }
  .journal-title { font-family: 'Merriweather', serif !important;
    font-size: 1.02rem !important; line-height: 1.35 !important; margin: 0 0 6px !important; }
  .journal-description { font-size: .85rem !important; line-height: 1.5 !important;
    margin: 0 0 10px !important; }
  .journal-meta { display: flex !important; flex-direction: row !important;
    flex-wrap: wrap !important; gap: 6px !important; margin: 0 0 12px !important; }
  .journal-meta-item { font-size: .72rem !important; padding: 3px 8px !important;
    background: #fff !important; border: 1px solid var(--wlm-line) !important;
    border-radius: 6px !important; display: flex !important; align-items: center;
    gap: 5px; margin: 0 !important; }
  .journal-actions { display: flex !important; gap: 8px !important; }
  .journal-actions .journal-btn { flex: 1; min-height: 42px !important;
    display: flex !important; align-items: center; justify-content: center;
    text-align: center; font-size: .85rem !important; border-radius: 9px !important; }
  /* about hero: universal-mobile-navigation-fix.css paints a heavy
     text-shadow at (0,3,2) specificity; match it, we load later (owner
     2026-08-04). Desktop copy lives in wl-desktop.css */
  html body .hero.about-hero .hero-title,
  html body .hero.about-hero .hero-subtitle,
  html body .hero.about-hero .hero-description,
  html body section.hero.about-hero .hero-title,
  html body section.hero.about-hero .hero-subtitle,
  html body section.hero.about-hero .hero-description { text-shadow: none !important; }
  /* about footer: a legacy rule paints the "Our Journals" resource link as a
     button (the site's "nuclear fix" reset it in the nav but not the footer);
     make it a plain link like its siblings (owner 2026-08-04, pre-existing) */
  html body .wiseleaf-footer a[href$="journals.html"] {
    background: transparent !important; padding: 0 !important;
    border-radius: 0 !important; box-shadow: none !important;
    border: none !important; display: inline-flex !important;
    margin: 0 !important; transform: none !important; }
  /* === PAGE: journals END === */

  /* === PAGE: book-detail START === */
  /* Owner-approved order (2026-08-02): breadcrumb, cover, title, authors,
     actions, facts, about, keywords, cite (collapsed), share.
     Title/authors live in a different container than cover/actions, so both
     containers become display:contents and every block gets an explicit order. */
  .book-detail-layout { display: flex !important; flex-direction: column !important;
    padding: 0 16px !important; }
  .book-detail-layout > .book-detail-cover,
  .book-detail-layout > .book-detail-content { display: contents !important; }
  /* cover block children; the image wrapper must be full-width so the
     cover can truly center */
  .book-detail-cover > * { order: 1; }
  .book-detail-cover > *:not(.book-detail-actions):not(.book-detail-meta) {
    width: 100% !important; max-width: 100% !important; display: flex !important;
    justify-content: center !important; margin: 0 !important; padding: 0 !important;
    float: none !important; }
  .book-detail-cover > .book-detail-actions { order: 5; margin: 4px 0 10px !important; }
  .book-detail-cover > .book-detail-meta { order: 6; }
  /* content block children */
  .book-detail-content > * { order: 10; }
  html body .book-detail-content > h1 { order: 3;
    font-family: 'Merriweather', serif !important; font-size: 1.55rem !important;
    font-weight: 700 !important; line-height: 1.3 !important;
    color: var(--wlm-primary) !important; margin: 16px 0 4px !important;
    text-align: center !important; }
  .book-detail-content > .book-authors { order: 4;
    font-size: .88rem !important; color: var(--wlm-muted) !important;
    font-style: italic !important; text-align: center !important;
    margin: 0 0 10px !important; }
  .book-detail-content > .book-description { order: 7; }
  .book-detail-content > .book-badges { order: 8; margin: 8px 0 !important; }
  .book-detail-content > .book-info-grid { order: 8;
    display: grid !important; grid-template-columns: 1fr 1fr !important;
    gap: 8px !important; width: 100% !important; margin: 6px 0 !important; }
  .book-info-grid > * { width: 100% !important; max-width: none !important;
    margin: 0 !important; padding: 10px 12px !important; box-sizing: border-box;
    border-radius: 8px !important; }
  .book-detail-content > .book-detail-section { order: 9;
    margin: 12px 0 !important; padding: 0 !important; }
  .book-detail-section h2 { font-size: 1.25rem !important; margin: 0 0 8px 0 !important; }
  .book-detail-content > .book-badges { gap: 6px !important; }
  .book-detail-content > .book-description { margin: 8px 0 !important; }
  .book-detail-layout > * { margin-top: 0 !important; }
  /* NON-BOOK pages on the book-detail template (no citation_isbn meta —
     today only call-for-chapters): the reorder above is for real book pages
     and scrambles this one. Neutralize it: plain full-width stack, poster
     edge-to-edge, tightened gaps. Same discriminator as the JS bookbar guard. */
  html:not(:has(meta[name="citation_isbn"])) .book-detail-layout > .book-detail-cover,
  html:not(:has(meta[name="citation_isbn"])) .book-detail-layout > .book-detail-content {
    display: block !important; width: 100% !important; min-width: 0 !important; }
  html:not(:has(meta[name="citation_isbn"])) .book-detail-cover > *:not(img),
  html:not(:has(meta[name="citation_isbn"])) .book-detail-content > *:not(img) {
    width: 100% !important; max-width: 100% !important; }
  html:not(:has(meta[name="citation_isbn"])) .book-detail-section,
  html:not(:has(meta[name="citation_isbn"])) .deadline-box,
  html:not(:has(meta[name="citation_isbn"])) .offer-grid,
  html:not(:has(meta[name="citation_isbn"])) .contact-cards {
    width: 100% !important; max-width: 100% !important;
    box-sizing: border-box; margin: 14px 0 !important; }
  html:not(:has(meta[name="citation_isbn"])) .contact-cards {
    display: grid !important; grid-template-columns: 1fr !important; gap: 10px; }
  html:not(:has(meta[name="citation_isbn"])) .offer-grid {
    display: grid !important; grid-template-columns: 1fr !important; gap: 8px; }
  html:not(:has(meta[name="citation_isbn"])) .book-detail-content > h1 {
    font-size: 1.5rem !important; line-height: 1.3 !important;
    margin: 14px 0 8px !important; }
  html:not(:has(meta[name="citation_isbn"])) .book-detail-actions {
    display: flex !important; flex-wrap: wrap !important; gap: 8px !important; }
  /* poster image: compact + centered like book covers, but with NO box — a
     site rule forces the img full-width, letterboxing it so its own bg/border
     painted a visible frame around the poster (owner 2026-08-04: remove it) */
  html:not(:has(meta[name="citation_isbn"])) body aside.book-detail-cover.book-detail-cover img {
    width: auto !important; max-width: min(58vw, 220px) !important;
    max-height: 42vh !important; height: auto !important;
    margin: 6px auto 0 !important; display: block !important;
    background: transparent !important; border: none !important;
    box-shadow: none !important; }
  /* cover image: whole, centered, defined edge */
  .book-cover img, .book-detail-cover img, .book-hero img {
    width: auto !important; max-width: min(58vw, 220px) !important;
    max-height: 40vh !important; height: auto !important;
    margin: 12px auto 0 !important; display: block !important; float: none !important;
    border: 1px solid rgba(12,74,96,.14); border-radius: 8px;
    box-shadow: 0 1px 2px rgba(12,74,96,.10), 0 12px 26px rgba(12,74,96,.20); }
  /* actions: side by side */
  .book-detail-actions { display: flex !important; flex-direction: row !important;
    flex-wrap: wrap !important; gap: 8px !important; justify-content: center !important;
    margin: 0 !important; }
  /* the always-on bottom bar carries the actions; inline buttons would repeat them */
  .book-detail-actions a, .book-detail-actions button { display: none !important; }
  .book-detail-actions p { flex-basis: 100% !important; text-align: center !important;
    font-size: .78rem !important; color: var(--wlm-muted) !important; margin: 2px 0 0 !important; }
  /* facts strip: quiet 2-column chips */
  .book-detail-meta { display: grid !important; grid-template-columns: 1fr 1fr !important;
    gap: 8px !important; margin: 6px 0 4px !important; }
  .book-detail-meta > * { background: #fff !important; border: 1px solid var(--wlm-line) !important;
    border-radius: 8px !important; padding: 8px 10px !important; margin: 0 !important;
    font-size: .78rem !important; line-height: 1.4 !important; color: var(--wlm-muted) !important;
    overflow-wrap: anywhere; }
  .book-detail-meta > * strong, .book-detail-meta > * b { color: var(--wlm-text) !important;
    display: block; font-size: .68rem !important; text-transform: uppercase;
    letter-spacing: .5px; }
  /* how-to-cite: collapsed by default (JS toggles) */
  .wl-m-collapsible { padding-bottom: 4px !important; margin-bottom: 10px !important; }
  .wl-m-collapsible > h2 { cursor: pointer; position: relative; display: block !important;
    padding-right: 30px !important; margin-bottom: 0 !important; }
  .wl-m-collapsible > h2::after { content: '+'; position: absolute; right: 6px; top: 0;
    color: var(--wlm-accent); font-weight: 600; }
  .wl-m-collapsible.wl-m-open-sec > h2::after { content: '\2013'; }
  .wl-m-collapsible > *:not(h2) { display: none !important; }
  .wl-m-collapsible.wl-m-open-sec > *:not(h2) { display: block !important; }
  .wl-m-copy-cite { margin-top: 8px; min-height: 40px; padding: 6px 16px;
    border: 1.5px solid var(--wlm-primary); border-radius: 8px; background: #fff;
    color: var(--wlm-primary); font-weight: 600; font-size: .82rem; }
  /* sticky action bar: refined, always present on book pages */
  .wl-m-bookbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    background: rgba(255,255,255,.97);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid var(--wlm-line);
    box-shadow: 0 -4px 20px rgba(12,74,96,.08); display: none; gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    align-items: stretch; }
  .wl-m-bookbar.wl-m-show { display: flex; }
  #wlmBookBar a, #wlmBookBar button { flex: 1; min-height: 50px;
    display: inline-flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 1px; border-radius: 12px;
    font-weight: 600 !important; font-size: .93rem !important;
    letter-spacing: .2px; text-decoration: none !important; border: none;
    transition: transform .12s ease, box-shadow .12s ease; }
  #wlmBookBar a:active { transform: scale(.97); }
  /* primary action: solid teal with depth */
  #wlmBookBar .wl-m-bb-primary { color: #fff !important;
    background: linear-gradient(180deg, #135a74 0%, #0c4a60 100%) !important;
    box-shadow: 0 3px 10px rgba(12,74,96,.28) !important; }
  /* buy when ACTIVE: the orange commerce primary */
  #wlmBookBar .wl-m-bb-buy { color: #fff !important;
    background: linear-gradient(180deg, #ef8c37 0%, #e67e22 100%) !important;
    box-shadow: 0 3px 10px rgba(230,126,34,.30) !important; }
  /* buy when DISABLED: present, honest, clearly inactive */
  #wlmBookBar .wl-m-bb-disabled { background: #eef1f3 !important;
    color: #8b98a0 !important; box-shadow: none !important;
    cursor: not-allowed; }
  #wlmBookBar .wl-m-bb-disabled small { font-size: .64rem; font-weight: 600;
    letter-spacing: .6px; text-transform: uppercase; color: #a5b0b6; }
  /* === PAGE: book-detail END === */

  /* === PAGE: books-catalog START === */
  /* grid blowout fix: a child's min-content forced the single column to 527px */
  .books-content { grid-template-columns: minmax(0, 1fr) !important; width: 100% !important; }
  .books-filters, .books-main, .books-list { min-width: 0 !important; max-width: 100% !important; box-sizing: border-box; }
  .filter-input, .filter-select { max-width: 100% !important; box-sizing: border-box; }
  .books-filters { order: 0 !important; padding: 16px !important; }
  .books-list { order: 1 !important; }
  /* header band: replace the unreadable baked banner strip with the teal band */
  html body section.books-header.books-header {
    background:
      linear-gradient(180deg, rgba(255,255,255,.30) 0%, rgba(255,255,255,.55) 100%),
      url('../images/heroes/vision-hero.jpg') center / cover no-repeat !important;
    height: auto !important; min-height: 0 !important; max-height: none !important;
    overflow: visible !important; padding: 26px 20px 28px !important; }
  html body .books-header.books-header > h1,
  html body .books-header.books-header > p { display: none !important; }
  /* why-publish feature list: the banner's own items, dark on the light image */
  .wl-m-why-wrap .wl-m-why-title { display: block !important;
    visibility: visible !important; opacity: 1 !important; }
  .wl-m-why-title { font-family: 'Merriweather', serif; color: var(--wlm-primary);
    font-size: 1.05rem; font-weight: 700; letter-spacing: 1.4px;
    text-transform: uppercase; margin: 0 0 12px; text-align: center; }
  .wl-m-why img { height: 22px; width: 22px; object-fit: contain; border-radius: 4px;
    flex: 0 0 22px; }
  .wl-m-why img.wl-m-wide { width: 46px; flex: 0 0 46px; border-radius: 3px; }
  .wl-m-why { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 14px; margin: 0; }
  .wl-m-why span { display: flex; align-items: center; gap: 8px;
    color: var(--wlm-text); font-size: .78rem; font-weight: 600; }
  .wl-m-why span i { width: 24px; height: 24px; border-radius: 6px;
    background: rgba(12,74,96,.10); color: var(--wlm-primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .7rem; flex: 0 0 24px; }

  .books-header::before, .books-header::after { display: none !important; }
  /* publisher list card, styled for the loader's REAL markup:
     .book-card > .book-content (first) + .book-image (second) -> row-reverse = cover left */
  .book-card { display: flex !important; flex-direction: row-reverse !important; gap: 12px;
    align-items: flex-start; background: #fff !important;
    border: 1px solid var(--wlm-line) !important; border-radius: 12px !important;
    box-shadow: var(--wlm-shadow) !important; padding: 12px !important;
    margin: 0 0 10px 0 !important; min-height: 0 !important; width: 100% !important;
    box-sizing: border-box; overflow: hidden; transform: none !important; }
  .book-card { flex-direction: row !important; }
  .book-card .book-image { order: -1 !important; /* cover on the LEFT (owner) */
    flex: 0 0 84px !important; width: 84px !important;
    min-width: 0 !important; max-width: 84px !important;
    height: auto !important; margin: 0 !important; padding: 0 !important; }
  .book-card .book-image img { width: 84px !important; height: 112px !important;
    object-fit: cover !important; border-radius: 6px !important; display: block !important;
    margin: 0 !important; }
  .book-card .book-content { flex: 1 1 auto !important; min-width: 0 !important;
    padding: 0 !important; display: block !important; }
  .book-card .book-card-header { display: block !important; margin: 0 !important; }
  .book-card .book-title { font-family: 'Merriweather', serif !important;
    font-size: .95rem !important; line-height: 1.35 !important;
    color: var(--wlm-text) !important; margin: 0 0 4px 0 !important; }
  .book-type-badge { display: inline-block !important; font-size: .62rem !important;
    font-weight: 600 !important; padding: 2px 7px !important; border-radius: 5px !important;
    margin: 0 4px 4px 0 !important; }
  /* quiet style only for non-premier, non-flagship badges */
  .book-type-badge:not(.badge-premier):not(.badge-flagship) {
    background: #fff !important; color: var(--wlm-muted) !important;
    border: 1px solid var(--wlm-line) !important; box-shadow: none !important;
    text-shadow: none !important; }
  /* premier/flagship keep their desktop colours; just size them for phones */
  .book-type-badge.badge-premier, .book-type-badge.badge-flagship {
    font-size: .62rem !important; padding: 3px 8px !important;
    border-width: 1px !important; box-shadow: none !important; }
  .book-type-badge i { display: none !important; }
  .book-author { font-size: .78rem !important; color: var(--wlm-muted) !important;
    font-style: italic !important; margin: 2px 0 6px 0 !important; }
  .book-meta { display: flex !important; flex-direction: row !important;
    flex-wrap: wrap !important; gap: 5px !important; margin: 0 0 8px 0 !important; }
  .book-meta-item { font-size: .7rem !important; padding: 2px 7px !important;
    background: var(--wlm-bg) !important; border: 1px solid var(--wlm-line) !important;
    border-radius: 5px !important; color: var(--wlm-muted) !important;
    display: inline-flex !important; gap: 4px; align-items: center;
    margin: 0 !important; width: auto !important; }
  .book-meta-item i { display: none !important; }
  .book-actions { display: flex !important; flex-direction: row !important;
    flex-wrap: wrap !important; gap: 8px !important; margin: 6px 0 0 0 !important;
    justify-content: flex-start !important; }
  .book-actions .book-btn { min-height: 38px !important; padding: 6px 10px !important;
    font-size: .78rem !important; font-weight: 600 !important;
    letter-spacing: 0 !important; text-transform: none !important;
    border-radius: 7px !important; width: auto !important;
    flex: 1 1 40% !important; min-width: 0 !important; max-width: none !important;
    margin: 0 !important; white-space: nowrap !important; overflow: hidden !important;
    display: inline-flex !important; align-items: center !important;
    justify-content: center !important; gap: 6px !important;
    box-shadow: none !important; }
  .book-actions .book-btn i { font-size: .72rem !important; }
  .book-actions .book-btn.primary { background: var(--wlm-primary) !important;
    color: #fff !important; border: none !important; }
  .book-actions .book-btn.secondary { background: #fff !important;
    color: var(--wlm-muted) !important; border: 1px solid var(--wlm-line) !important; }
  .book-actions p { flex-basis: 100% !important; font-size: .7rem !important;
    color: var(--wlm-muted) !important; margin: 2px 0 0 0 !important; }
  .book-card .book-image { align-items: flex-start !important;
    justify-content: flex-start !important; }
  .book-actions { justify-content: flex-start !important; }
  .book-actions .book-btn { margin: 0 !important; }
  .books-tabs, .tab-buttons { overflow-x: auto; flex-wrap: nowrap !important; }
  /* === PAGE: books-catalog END === */

  /* === PAGE: search-results === */
  /* the two search buttons wrapped unevenly on phones (owner bundle 5) */
  body:has(#advancedSearchBtn) #searchButton,
  body:has(#advancedSearchBtn) #advancedSearchBtn {
    display: flex !important; align-items: center; justify-content: center;
    width: 100% !important; min-height: 46px !important;
    margin: 0 0 8px 0 !important; }

  /* === PAGE: pricing/subscription family === */
  /* owner 2026-08-04: features-list items use display:flex, which splits each
     line into cramped term/description columns on phones; flow as prose. */
  .features-list li { display: block !important; }
  .features-list li i { margin-right: 7px; }

  /* === PAGE: ethics trio (human-subjects, animal-research, conflict-of-interest) === */
  /* owner 2026-08-03: hero title was slate-on-teal, unreadable; subtitle was
     already white. Mobile-only fix; desktop keeps its (pre-existing) colors. */
  .ethics-hero h1 { color: #fff !important; }

  /* === PAGE: publications listings (recent-publications, popular-articles) === */
  /* owner 2026-08-03: plain white header felt empty; owner's PPTX banner sits
     softly behind the title under a white wash so the heading stays readable. */
  body:has(.publication-card) .page-header,
  body:has(.article-card) .page-header {
    background: linear-gradient(rgba(255,255,255,.72), rgba(255,255,255,.72)),
      url('../images/heroes/wl-banner-clean-m.jpg') center bottom / cover no-repeat !important;
    border-radius: 12px; padding: 26px 14px !important; }

  /* === PAGE: homepage START === */
  /* The slider JS sets the baked-text image via inline !important styles which
     CSS cannot override. Strategy: COVER it. The hero-content block becomes an
     opaque full-size teal band; the image sits invisibly behind it. */
  /* The slider locks .hero via inline !important (height 200px, padding,
     background image). Unwinnable by CSS, so on phones the slider hero is
     hidden entirely and .wl-m-hero (same text, copied verbatim in the markup)
     renders the teal band instead. Desktop never sees either change. */
  /* HARDENING 2026-08-03: every .hero* rule in this section is scoped to the
     homepage via body:has(.wl-m-hero) — only the homepage has the band. Other
     pages (about, webinars, full-service) use the same .hero class and must
     keep their hero visible on phones; unscoped rules hid real content. */
  html body:has(.wl-m-hero) .hero,
  html body:has(.wl-m-hero) section.hero { display: none !important; }
  .wl-m-hero { background: none; padding: 0; margin: 0; line-height: 0; }
  .wl-m-hero img { width: 100%; height: auto; display: block;
    transition: opacity .45s ease; }
  .wl-m-hero img.wl-m-fade { opacity: 0; }
  body:has(.wl-m-hero) .hero-quote, body:has(.wl-m-hero) .hero-subtitle,
  body:has(.wl-m-hero) .hero-description, body:has(.wl-m-hero) .hero-content h1,
  body:has(.wl-m-hero) .hero-content p {
    display: block !important; visibility: visible !important; opacity: 1 !important;
    color: #fff !important; position: relative; z-index: 6; max-width: none !important; }
  body:has(.wl-m-hero) .hero-quote {
    font-family: 'Merriweather', serif !important; font-weight: 700 !important;
    font-size: clamp(1.4rem, 6vw, 1.9rem) !important; line-height: 1.3 !important;
    margin: 0 0 10px 0 !important; }
  body:has(.wl-m-hero) .hero-subtitle { font-size: .95rem !important; opacity: .9 !important; margin: 0 0 8px 0 !important; }
  body:has(.wl-m-hero) .hero-description { font-size: .88rem !important; opacity: .85 !important; margin: 0 !important; line-height: 1.55 !important; }
  body:has(.wl-m-hero) .hero-content .btn,
  body:has(.wl-m-hero) .hero-content .cta-buttons { display: none !important; }
  /* kill every slider control (JS-injected, inline styles are non-important) */
  body:has(.wl-m-hero) .force-slider-dots, body:has(.wl-m-hero) .hero-slider-dots,
  body:has(.wl-m-hero) .hero .hero-nav, body:has(.wl-m-hero) .hero .slider-dots,
  body:has(.wl-m-hero) .hero .hero-slider-nav { display: none !important; }
  body:has(.wl-m-hero) .hero::before,
  body:has(.wl-m-hero) .hero::after { display: none !important; }
  .wl-m-pillars { margin: 14px 16px 0; display: flex; flex-direction: column; gap: 10px; }
  .wl-m-pillar { display: flex; align-items: center; gap: 14px; background: #fff;
    border: 1px solid var(--wlm-line); border-radius: 12px; box-shadow: var(--wlm-shadow);
    padding: 14px; text-decoration: none; color: var(--wlm-text); }
  .wl-m-pillar .wl-m-pic { flex: 0 0 46px; height: 62px; border-radius: 6px; overflow: hidden; }
  .wl-m-pillar .wl-m-pic img { width: 100%; height: 100%; object-fit: cover; }
  .wl-m-pillar h2 { font-family: 'Merriweather', serif; font-size: 1.05rem;
    color: var(--wlm-primary); font-weight: 700; margin: 0; }
  .wl-m-pillar p { font-size: .82rem; color: var(--wlm-muted); margin: 3px 0 0; }
  .wl-m-pillar .wl-m-arr { margin-left: auto; color: #b9c4ca; font-size: 1.1rem; }
  body:has(.wl-m-hero) .section-title { text-align: center; }
  /* === PAGE: homepage END === */

}
