/* -------------------------------------------------------
   newsletter.css — Permanent Newsletter Section
   Brand palette:
     Olive Sprout  : #7d8704 (links, accents)
     Deep Olive    : #5f6603 (hover, dark band)
     Sage Line     : #cbd2a2 (card stroke)
-------------------------------------------------------- */

:root{
  --bg:#f6f7fb;
  --panel:#ffffff;
  --ink:#54562f;
  --muted:#54562f;
  --line:#e5e7eb;

  /* Links */
  --title-color:#7d8704;      /* Olive Sprout */
  --link-hover-color:#5f6603; /* Deep Olive   */

  /* Cards */
  --card-stroke:#7d8704;
  --figure-color:#7d8704;

  /* Accent */
  --interview:#7d8704;

  /* Fonts */
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "IBM Plex Serif", Georgia, serif;
  --overlay-font: "Rubik Dirt", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;

  /* Mobile top bar height */
  --mobile-topbar-h: 76px;

  /* Factbox (legacy tones kept in case we revert) */
  --factbox-bg:#8a7400;
  --factbox-sun:#f2d15b;
  --factbox-text:#ffffff;
}

/* ========== Base / Reset ========== */
*{ box-sizing:border-box }
html, body{ height:100%; overflow-x:hidden }
html{ font-synthesis-weight:none; font-synthesis-style:none }
body{
  margin:0; color:var(--ink); background:var(--bg);
  font-family:var(--font-sans);
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
}
img{ max-width:100%; height:auto; display:block }

/* ========== Links ========== */
a{
  color:var(--title-color);
  text-decoration:none;
  text-underline-offset:.15em;
  text-decoration-thickness:.08em;
  text-decoration-skip-ink:auto;
}
a:hover, a:focus{ color:var(--link-hover-color) }
a:visited{ color:var(--title-color) }

/* ========== Layout ========== */
.wrap{ max-width:1040px; margin:0 auto; padding:24px }
.shell{ display:grid; grid-template-columns:320px 1fr; gap:24px }
.panel{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:0 2px 10px rgba(0,0,0,.04);
}

/* Left column (nav) */
.panel.left{
  padding:20px;
  position:sticky; top:16px; align-self:start;
  border:2px solid var(--card-stroke);
  border-radius:12px;
}
.logo{ margin-bottom:14px }
.logo img{ width:100%; height:auto }

.month{ margin:6px 0 8px }
.month a{ font-weight:700; font-size:20px; color:var(--title-color) }
.month--year a{
  display:block; text-align:center; font-size:22px; color:var(--link-hover-color);
  padding:4px 8px 0; margin-bottom:6px;
}
.month--issue a{ display:block; padding:8px 8px; color:var(--title-color); margin-bottom:4px }

/* Article list */
.nav{ list-style:none; margin:0 0 12px; padding:0; border-top:1px solid var(--line) }
.nav li{ border-bottom:1px solid var(--line) }
.nav li:last-child{ border-bottom:0 }
.nav a{ display:block; padding:12px 8px; font-size:15px; line-height:1.25 }
.nav a.active{ background:#eef5ff; font-weight:700 }
.nav a .nav-top{ display:block; font-weight:700; font-size:16px }
.nav a .nav-sub{ display:block; font-weight:500; font-size:16px }
.nav a:hover, .nav a:focus{ color:var(--link-hover-color) }

/* External links promo block */
.nav-external{
  background:var(--title-color); color:#fff;
  border-radius:0 0 12px 12px;
  padding:14px 20px 18px; margin:0 -20px -20px;
}
.nav-external .nav-ext-title{
  margin:0 0 8px; text-align:center; font-size:18px; font-weight:800; color:#fff;
  position:relative; padding-bottom:8px;
}
.nav-external .nav-ext-title::after{
  content:""; display:block; height:1px; background:rgba(255,255,255,.65);
  position:absolute; left:0; right:0; bottom:0;
}
.nav-external .nav-ext-links{ list-style:none; margin:10px 0 0; padding:0 }
.nav-external .nav-ext-links li a{
  display:block; padding:8px 6px; color:#fff; border-radius:8px;
}
.nav-external .nav-ext-links li a:hover{ background:rgba(255,255,255,.12) }

/* Right column (article/content) */
.right{ padding:24px }

/* Headings */
.article h1, .intro h1, .card h3, .article .content h3, .article .content h4{
  color:var(--title-color); letter-spacing:.01em; margin-top:0;
}
.article h1{ margin:.2em 0 .4em; font-size:28px; line-height:1.2 }

/* Band-style H2 (global) */
h2{
  background-color:#7f8602; color:#fff;
  padding:.6rem 1rem; margin:1rem 0; font-size:22px; line-height:1;
}
h2 a{ color:inherit }

/* Page-top headings (no band) */
.page-h1{ margin:0 0 4px; text-align:center; color:var(--link-hover-color) }
.page-h2{
  margin:0 0 14px; text-align:center; color:var(--link-hover-color);
  background:transparent !important; padding:0 !important;
}


/* Band-style H2 (global) — applies to most h2s, but NOT the special banded title */
h2:not(.banded-title){
  background-color:#7f8602;
  color:#fff;
  padding:.6rem 1rem;
  margin:1rem 0;
  font-size:22px;
  line-height:1;
}
h2:not(.banded-title) a{ color:inherit }

/* Special card “banded” header (e.g., Welcome) */
.card h2.banded-title{
  display:block;
  background:#7d8704;
  color:#fff;
  margin:-16px -16px 12px;
  padding:12px 16px;
  border-radius:9px 9px 0 0;
  font-weight:700;
  line-height:1.1;
}
/* Use the overlay font & larger size when .display-title is present */
.card h2.banded-title.display-title{
  font-family:var(--overlay-font);
  font-size:28px;
}




/* Card shell */
.card{
  border:2px solid var(--card-stroke);
  border-radius:12px; overflow:hidden; padding:16px; margin:12px 0; background:#fff;
}

/* Image card with overlay title */
.card.card-article .card-thumb{
  position:relative; display:block; margin:-16px -16px 12px; text-decoration:none; color:inherit;
}
.card.card-article .card-thumb img{ width:100%; height:auto }
.card.card-article .thumb-title{
  position:absolute; left:0; right:0; bottom:0; padding:14px 16px; color:#fff;
  font-family:var(--overlay-font); font-weight:700; font-size:28px; line-height:1.05; letter-spacing:.3px;
  text-shadow:0 2px 3px rgba(0,0,0,.5);
  background:linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.45) 70%, rgba(0,0,0,.65) 100%);
}
@media (max-width:600px){
  .card.card-article .thumb-title{ font-size:26px; padding:12px 14px }
}

.card h1.card-h1{
  margin:0 0 6px; font-size:28px; font-weight:800; color:var(--title-color);
}
.card h2.card-h2{
  background:transparent !important; padding:0 !important;
  margin:0 0 10px; font-size:16px; font-weight:600; color:var(--muted);
}
.card h1 a, .card h2 a{ color:inherit; text-decoration:none }
.card h1 a:hover, .card h2 a:hover{ color:var(--link-hover-color) }

/* ========== Buttons ========== */
.btn-row{ display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; justify-content:center }
.btn{
  display:inline-block;
  font-weight:800;
  padding:12px 18px;
  border-radius:12px;
  background:var(--title-color);
  color:#fff !important;
  border:1px solid var(--title-color);
  box-shadow:0 2px 6px rgba(0,0,0,.12);
  transition:background .15s ease, border-color .15s ease,
             box-shadow .15s ease, transform .04s ease;
}
.btn:visited{ color:#fff }
.btn:hover,.btn:focus{
  background:var(--link-hover-color);
  border-color:var(--link-hover-color);
  color:#fff;
  box-shadow:0 4px 12px rgba(0,0,0,.18);
}
.btn:active{ transform:translateY(1px) }
.card .btn{ display:table; margin:14px auto 0 }

/* ========== Article content ========== */
.article .meta{ color:var(--muted); font-size:14px; margin-bottom:16px }
.article .content, .intro, .card p{ font-size:18px; font-weight:500; line-height:1.75 }
.article .content p{ margin:0 0 1em }
.article .content{ overflow-wrap:anywhere; word-break:break-word }
.article .content img,
.article .content video,
.article .content iframe,
.article .content embed{
  max-width:100% !important; width:100% !important; height:auto; display:block;
}
.article .content table{
  width:100%; max-width:100%; display:block; overflow-x:auto; -webkit-overflow-scrolling:touch;
}
.article .content pre, .article .content code{ white-space:pre-wrap; word-break:break-word }
.wrap, .right{ overflow-x:hidden }

/* Guest Voice */
.article .content .voice-guest{
  margin:.75em 0; padding-left:1rem; font-weight:500; color:var(--interview);
}
.article .content .voice-guest p{ margin:.4em 0; font:inherit; color:inherit }
.article .content .voice-guest a{
  color:inherit; text-underline-offset:.15em; text-decoration-thickness:.08em;
}

/* ========== Responsive shell tweaks ========== */
@media (min-width:901px){
  .shell{ align-items:start }
  .panel.left{ position:sticky; top:16px; height:fit-content; overflow:visible }
}

/* Mobile topbar + slide-in nav */
.mobile-topbar{ display:none }
.menu-btn{
  background:none; border:0; padding:6px 10px;
  font-size:28px; line-height:1; color:var(--title-color); cursor:pointer;
}
.mobile-logo img{ height:36px }
.nav-backdrop{ display:none }

@media (max-width:900px){
  body{ background:#fff }
  .wrap{ padding:0; padding-top:calc(var(--mobile-topbar-h) + env(safe-area-inset-top)) }
  .shell{ grid-template-columns:1fr }

  .mobile-topbar{
    position:fixed; top:0; left:0; right:0; z-index:1100;
    display:flex; align-items:center; justify-content:space-between;
    background:#fff; border-bottom:1px solid var(--line);
    padding:12px 16px;
    padding-top:calc(12px + env(safe-area-inset-top));
    min-height:var(--mobile-topbar-h);
  }
  .mobile-logo img{ height:70px }
  .panel.left .logo{ display:none }
  .menu-btn{ font-size:50px; padding:8px 12px }

  .panel.left{
    position:fixed; left:0;
    top:calc(var(--mobile-topbar-h) + env(safe-area-inset-top));
    height:calc(100% - (var(--mobile-topbar-h) + env(safe-area-inset-top)));
    width:min(86%, 360px);
    padding:16px;
    overflow-y:auto; overflow-x:hidden;
    touch-action:pan-y; overscroll-behavior:contain; -webkit-overflow-scrolling:touch;
    transform:translateX(-100%); transition:transform .2s ease;
    z-index:1001; border-radius:0; border:0; border-right:1px solid var(--line);
    background:var(--panel);
  }
  body.nav-open .panel.left{ transform:translateX(0) }
  body.nav-open{ overflow:hidden }
  .nav-backdrop{
    display:block; position:fixed; inset:0; background:rgba(0,0,0,.35);
    opacity:0; visibility:hidden; transition:opacity .2s ease; z-index:1000;
  }
  body.nav-open .nav-backdrop{ opacity:1; visibility:visible }
  .panel{ border:0; border-radius:0; box-shadow:none }
  .right{ padding:16px }
}

@media (min-width:720px){
  .card.card-article{ display:block }
  .card.card-article > *{ grid-column:auto; grid-row:auto }
}


/* ===== External links promo block (left sidebar) ===== */
.panel.left .nav-external{
  background: var(--title-color);
  color:#fff;
  border-radius: 0 0 12px 12px;
  padding: 14px 20px 18px;
  margin: 0 -20px -20px; /* bleed to panel edges at bottom */
}

.panel.left .nav-external .nav-ext-title{
  margin: 0 0 8px;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color:#fff;
  position: relative;
  padding-bottom: 8px;
}
.panel.left .nav-external .nav-ext-title::after{
  content:"";
  display:block;
  height:1px;
  background: rgba(255,255,255,.65);
  position:absolute; left:0; right:0; bottom:0;
}

.panel.left .nav-external .nav-ext-links{
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}
.panel.left .nav-external .nav-ext-links li + li{ margin-top: 2px; }

.panel.left .nav-external .nav-ext-links a,
.panel.left .nav-external .nav-ext-links a:visited{
  display:block;
  padding: 8px 6px;
  color:#fff !important;           /* beat global link color */
  text-decoration: none;
  border-radius: 8px;
}
.panel.left .nav-external .nav-ext-links a:hover,
.panel.left .nav-external .nav-ext-links a:focus{
  background: rgba(255,255,255,.12);
  color:#fff !important;
}

.panel.left .nav-external .nav-top{
  display:block;
  font-weight:800;
  font-size:16px;
  color:#fff;
}
.panel.left .nav-external .nav-sub{
  display:block;
  font-weight:500;
  font-size:14px;
  color:#fff;
  opacity:.95;
}



/* ==========================================================
   Trail Factbox — Deep Olive header + white body
========================================================== */

.trail-factbox{
  background:#fff;
  color:var(--title-color);
  border:2px solid var(--card-stroke);
  border-radius:0;
  box-shadow:0 22px 45px rgba(0,0,0,.35), 0 6px 18px rgba(0,0,0,.22);
  padding:18px 20px;
  margin:clamp(12px,3vh,20px) 8% clamp(18px,3vh,24px);
  background-image:none; /* ensure old wash is gone */
}
.trail-factbox .tfb-hr--fade{ display:none !important }

.trail-factbox .tfb-title{
  margin:-18px -20px 16px;
  padding:14px 20px;
  background:var(--link-hover-color);
  color:#fff;
  font-weight:800;
  font-size:clamp(24px, 2.4vw, 32px);
  line-height:1.1;
  border-bottom:6px solid #fff;
  text-shadow:0 1px 0 rgba(0,0,0,.25), 0 2px 10px rgba(0,0,0,.18);
}

/* Factbox grid */
.trail-factbox .tfb-grid{
  display:grid;
  grid-template-columns:minmax(160px, 30%) 1fr;
  column-gap:12px;
  row-gap:10px;
}
.trail-factbox .tfb-row{ display:contents }
.trail-factbox dt,
.trail-factbox dd{
  color:var(--title-color);
  font-size:15px;
  margin:0;
  font-weight:800;
}
.trail-factbox dt{ text-transform:uppercase; letter-spacing:.03em }
.trail-factbox .tfb-metric dd{ text-transform:none; font-weight:700 }

/* Attractions ticks */
.trail-factbox .tfb-row--stack dd{ font-weight:700 }
.trail-factbox .tfb-list{ list-style:none; margin:0; padding:0; display:grid; gap:8px }
.trail-factbox .tfb-list--ticks li{
  position:relative; padding-left:24px;
}
.trail-factbox .tfb-list--ticks li::before{
  content:"✓"; position:absolute; left:0; top:0; line-height:1;
  font-weight:900; color:var(--title-color);
}

/* Optional author block inside the factbox */
.trail-factbox .tfb-author{
  margin-top:12px; padding:12px;
  background:rgba(125,135,4,.08);
  border-radius:8px; display:flex; align-items:center; gap:12px;
  color:var(--title-color);
}
.trail-factbox .tfb-author-name{ font-weight:800; color:var(--title-color) }
.trail-factbox .tfb-author-role{ font-weight:600; opacity:.95 }
.trail-factbox .tfb-author-photo{
  width:56px; height:56px; border-radius:50%; object-fit:cover; flex:0 0 auto;
  border:2px solid rgba(125,135,4,.35);
}

@media (max-width:640px){
  .trail-factbox .tfb-grid{ grid-template-columns:1fr }
  .trail-factbox .tfb-grid dt{ margin-top:8px }
  .trail-factbox .tfb-grid .tfb-row:first-child dt{ margin-top:0 }
}

/* Wider panel & tighter labels on large screens */
@media (min-width:1024px){
  .trail-factbox{
    width:100%;
    max-width:1000px;
    margin-left:auto; margin-right:auto;
  }
  .trail-factbox .tfb-grid{
    grid-template-columns:minmax(150px, 28%) 1fr;
    column-gap:12px;
  }
}

/* ==========================================================
   Author bio strip (beneath hero)
   - circular avatar with olive frame
   - bold, left-aligned 3-line meta
   - **bulletproof image size reset**
========================================================== */

/* ==== Author bio strip — simple, bulletproof ==== */
.author-band{
  display:flex;
  align-items:center;
  gap:16px;
  padding:14px 0;             /* sits under the <hr> comfortably */
}

.author-avatar{
  width:96px;
  height:96px;
  flex:0 0 96px;              /* fixed square */
  border-radius:50%;
  overflow:hidden;            /* make the image clip to the circle */
  border:3px solid var(--link-hover-color);
  box-shadow:0 4px 10px rgba(0,0,0,.18);
}

/* beat the global img { max-width:100% } */
.author-avatar img{
  display:block;
  width:100%;
  height:100%;
  max-width:none;
  object-fit:cover;           /* crop nicely inside the circle */
}

.author-meta{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.author-line{
  font-weight:800;
  line-height:1.25;
  color:var(--title-color);
}

/* optional: a little spacing helper for the divider above */
.interview-divider{ margin:18px 0; }


/* ===== BUY NOW button (punchy gold) ===== */
:root{
  /* if not already defined */
  --buy-bg: var(--factbox-sun, #f2d15b);
  --buy-ink: var(--link-hover-color, #5f6603); /* deep olive text */
  --buy-bg-hover: #e6c23e;                     /* slightly deeper gold */
  --buy-stroke: #c9a734;                       /* darker gold border */
}

/* Base style */
.btn-buy{
  display:inline-flex;
  align-items:center;
  gap:.5ch;

  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.03em;

  padding:12px 18px;
  border-radius:12px;

  background: var(--buy-bg);
  color: var(--buy-ink) !important;
  border:1px solid var(--buy-stroke);
  box-shadow: 0 3px 10px rgba(0,0,0,.16), inset 0 -2px 0 rgba(0,0,0,.08);

  transition: transform .04s ease,
              background .15s ease,
              box-shadow .15s ease,
              border-color .15s ease;
}
.btn-buy:visited{ color: var(--buy-ink) }

.btn-buy:hover,
.btn-buy:focus{
  background: var(--buy-bg-hover);
  border-color: var(--buy-bg-hover);
  box-shadow: 0 6px 16px rgba(0,0,0,.2);
  text-decoration:none;
}

.btn-buy:active{ transform: translateY(1px) }


/* Optional: full-width version inside card rows */
.btn-buy--block{ display:flex; justify-content:center; width:100% }

/* Keep it centered when used in a .card */
.card .btn-buy{ display:table; margin:14px auto 0 }




/* ==========================================================
   Footer (right-aligned, bold)
========================================================== */
.right footer{
  text-align:right;
  font-weight:800;
  margin-top:16px;
}
.right footer p{ margin:0 }
.right footer a{ color:var(--title-color) }
.right footer a:hover,.right footer a:focus{
  color:var(--link-hover-color);
  text-decoration:underline;
}
