/* Filter chip a11y — chip is a <button> for keyboard focus + Enter/Space.
   Per-leaf inline `.filter-chip` CSS continues to supply the visual styling;
   these resets just stop the browser default button font/appearance from
   leaking through. */
button.filter-chip {
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}
button.filter-chip:focus-visible {
  outline: 2px solid var(--terracotta, #9E4D2A);
  outline-offset: 2px;
}

/* Author byline — E-E-A-T signal shared across sections */
.page-byline {
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  margin: 1rem 0 1.5rem; padding: 0.75rem 0;
}
.page-byline img.byline-photo {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--sand, #E8DFD0);
}
.page-byline .byline-info { line-height: 1.35; min-width: 0; }
.page-byline .byline-name {
  font-size: 0.95rem; font-weight: 700;
  color: var(--indigo, #2D3A5C);
}
.page-byline .byline-name a {
  color: inherit; text-decoration: none;
  border-bottom: 1px dotted var(--sand, #E8DFD0);
}
.page-byline .byline-name a:hover,
.page-byline .byline-name a:focus-visible {
  border-bottom-color: var(--terracotta, #9E4D2A);
}
.page-byline .byline-title {
  font-size: 0.82rem; color: var(--muted, #6B5D4F);
  margin-top: 1px;
}
@media (max-width: 600px) {
  .page-byline { margin: 0.75rem 0 1rem; padding: 0.6rem 0; }
  .page-byline img.byline-photo { width: 38px; height: 38px; }
  .page-byline .byline-name { font-size: 0.9rem; }
  .page-byline .byline-title { font-size: 0.78rem; }
}

/* Skip-to-content link — visible only when focused via keyboard */
.skip-link {
  position: absolute;
  top: -50px;
  left: 0;
  z-index: 10000;
  padding: 0.6rem 1.1rem;
  background: var(--indigo, #2D3A5C);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 0 0 8px 0;
  transition: top 0.15s ease-out;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--terracotta, #9E4D2A);
  outline-offset: -2px;
}

/* Page breadcrumbs — rendered by shared-shell.js from BreadcrumbList JSON-LD.
   Style mirrors body.editorial-v2 .breadcrumb on /scams/country/ pages.
   Explicit resets guard against per-page inline `nav { position:fixed; ... }`
   rules that would otherwise apply to this <nav class="page-breadcrumbs">. */
.page-breadcrumbs {
  position: static;
  top: auto;
  width: auto;
  z-index: auto;
  display: block;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  padding: 5.25rem 2rem 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted, var(--muted, #6B5D4F));
  max-width: 1160px;
  margin: 0 auto;
}
.page-breadcrumbs ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.page-breadcrumbs li {
  display: inline-flex;
  align-items: center;
}
.page-breadcrumbs li + li::before {
  content: '›';
  margin: 0 0.5rem;
  color: var(--sand, #E8DFD0);
}
.page-breadcrumbs a {
  color: var(--earth, #7A6343);
  text-decoration: none;
  transition: color 0.15s ease;
}
.page-breadcrumbs a:hover,
.page-breadcrumbs a:focus-visible {
  color: var(--terracotta, #9E4D2A);
}
.page-breadcrumbs li[aria-current="page"] {
  color: var(--text-muted, var(--muted, #6B5D4F));
}
@media (max-width: 600px) {
  .page-breadcrumbs {
    padding: 4.75rem 1rem 0.4rem;
    font-size: 0.78rem;
  }
}

body > nav:not(.page-breadcrumbs) {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(254, 252, 249, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--sand, #E8DFD0);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--indigo, #2D3A5C);
  text-decoration: none;
  letter-spacing: -0.02em;
  padding-left: 38px;
}

.logo span {
  color: var(--terracotta, #9E4D2A);
}

.logo .owl-default,
.logo .owl-fly {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.15s ease;
}

.logo .owl-fly {
  opacity: 0;
}

.logo:hover .owl-default {
  opacity: 0;
}

.logo:hover .owl-fly {
  opacity: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--indigo, #2D3A5C);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

nav a.cta-nav {
  background: var(--terracotta, #9E4D2A);
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s ease;
}

nav a.cta-nav:hover {
  background: #b5633f;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--indigo, #2D3A5C);
  cursor: pointer;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  background: none;
  border: none;
  color: var(--indigo, #2D3A5C);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.nav-dropdown-toggle::after {
  content: ' ▾';
  font-size: 1.1rem;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--sand, #E8DFD0);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 200;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text, #2C2419);
  text-decoration: none;
  font-size: 0.85rem;
}

.nav-dropdown-menu a:hover {
  background: var(--warm-cream, #F5F0E8);
}

/* ============================================================
   FOOTER — standardised across all pages (managed by build-partials).
   These rules live in shared-shell.css (loaded after per-page inline
   <style>) so they override legacy `footer { padding: 3rem; ... }`
   rules on older pages without requiring a site-wide HTML rewrite.
   ============================================================ */
footer {
  background: var(--warm-cream, #F5F0E8);
  border-top: 1px solid var(--sand, #E8DFD0);
  padding: 4rem 2rem 2rem;
  margin-top: 0;
  color: var(--earth, #7A6343);
  font-size: 0.9rem;
  text-align: left;
  line-height: 1.6;
}

footer .footer-inner {
  max-width: 1160px;
  margin: 0 auto;
}

footer .footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--sand, #E8DFD0);
}

footer .footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

footer .footer-logo {
  font-family: 'Newsreader', Georgia, 'Iowan Old Style', Palatino, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--indigo, #2D3A5C);
  letter-spacing: -0.015em;
  text-decoration: none;
  line-height: 1.1;
}

footer .footer-logo span {
  color: var(--terracotta, #9E4D2A);
}

footer .footer-tagline {
  font-family: 'Newsreader', Georgia, 'Iowan Old Style', Palatino, serif;
  font-style: italic;
  color: var(--text-muted, #6B5D4F);
  font-size: 0.98rem;
  line-height: 1.45;
  max-width: 240px;
  margin: 0;
}

footer .footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--terracotta, #9E4D2A);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  line-height: 1.4;
}

footer .footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer .footer-col li {
  margin-bottom: 0.55rem;
  line-height: 1.4;
}

footer .footer-col a {
  color: var(--indigo, #2D3A5C);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

footer .footer-col a:hover {
  color: var(--terracotta, #9E4D2A);
}

footer .footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 1.75rem;
  font-size: 0.82rem;
  color: var(--earth, #7A6343);
}

footer .footer-copyright {
  margin: 0;
  color: var(--earth, #7A6343);
  font-size: 0.82rem;
  font-weight: 500;
}

footer .footer-legal-links a {
  color: var(--earth, #7A6343);
  text-decoration: none;
  transition: color 0.15s ease;
}

footer .footer-legal-links a:hover {
  color: var(--terracotta, #9E4D2A);
}

footer .footer-sep {
  color: var(--sand, #E8DFD0);
  margin: 0 0.35rem;
  user-select: none;
}

footer a {
  text-underline-offset: 2px;
}

@media (max-width: 900px) {
  footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem;
  }
  footer .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 540px) {
  footer {
    padding: 3rem 1.5rem 1.75rem;
  }
  footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
  }
  footer .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 768px) {
  body > nav:not(.page-breadcrumbs) {
    position: fixed;
  }

  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(254, 252, 249, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--sand, #E8DFD0);
    padding: 1rem 2rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
  }

  .nav-dropdown,
  .nav-dropdown-menu {
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    margin-top: 0.5rem;
    box-shadow: none;
    background: transparent;
  }
}


/* ==== Book-lander reviews (cross-page) ==== */
.book-reviews { background: #faf7f2; border-top: 1px solid #e0d6c8; border-bottom: 1px solid #e0d6c8; padding: 4rem 1.5rem; }
.book-reviews-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.book-reviews-eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 700; color: #9E4D2A; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 1rem; }
.book-reviews h2 { font-family: 'Newsreader', Georgia, serif; font-size: clamp(1.6rem, 3vw, 2.1rem); color: #2D3A5C; font-weight: 500; margin: 0 0 0.7rem; line-height: 1.2; letter-spacing: -0.005em; }
.book-reviews h2 em { font-style: italic; color: #9E4D2A; }
.book-reviews-sub { color: #6B5D4F; font-size: 0.95rem; margin: 0 auto 2.5rem; max-width: 540px; }
.book-reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; text-align: left; max-width: 1000px; margin: 0 auto; }
.book-reviews-grid.single { max-width: 560px; }
.book-review-card { background: #fff; border: 1px solid #e0d6c8; border-radius: 10px; padding: 1.5rem 1.4rem; display: flex; flex-direction: column; }
.book-review-stars { color: #9E4D2A; font-size: 0.9rem; letter-spacing: 0.18em; margin-bottom: 0.7rem; line-height: 1; }
.book-review-quote { font-family: 'Newsreader', Georgia, serif; font-size: 1rem; line-height: 1.55; color: #2C2419; margin: 0 0 1.25rem; flex: 1; }
.book-review-attr { border-top: 1px solid #e0d6c8; padding-top: 0.85rem; font-size: 0.83rem; color: #6B5D4F; line-height: 1.45; }
.book-review-name { font-weight: 600; color: #2D3A5C; }
.book-review-verified { display: inline-block; margin-left: 0.5rem; font-size: 0.68rem; color: #9E4D2A; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; vertical-align: 1px; }
.book-review-format { margin-top: 0.18rem; font-style: italic; color: #7a6f63; }
@media (max-width: 720px) { .book-reviews { padding: 3rem 1.25rem; } .book-reviews-grid { grid-template-columns: 1fr; max-width: 500px; } }

/* ==== Per-book star rating (hub cards + country page hero) ==== */
.book-card-readmore { text-align: left; }
.book-card-rating { font-size: .82rem; color: #6B5D4F; line-height: 1.3; text-align: right; padding: 0 0 .25rem; }
.book-card-rating .star { color: #9E4D2A; font-weight: 700; letter-spacing: .04em; margin-right: .15rem; }
.book-card-rating .rating-count { color: #7a6f63; }
.cta-rating { display: inline-block; margin-left: .35rem; font-size: .85rem; color: #6B5D4F; }
.cta-rating .star { color: #9E4D2A; font-weight: 700; letter-spacing: .04em; margin-right: .15rem; }
.cta-rating .rating-count { color: #7a6f63; }
@media (max-width: 600px) {
  .book-card-rating { text-align: center; }
  .cta-rating { display: block; margin: .35rem 0 0; }
}

/* Global keyboard-focus outline — applied only on keyboard navigation
   (not mouse clicks) via :focus-visible. Per a11y audit 2026-05-01. */
*:focus-visible {
  outline: 2px solid var(--terracotta, #9E4D2A);
  outline-offset: 2px;
}
