/*
Theme Name: Charli Outdoors
Theme URI: https://charlioutdoors.co.uk
Author: Charli Outdoors
Description: A soft, earthy WordPress theme for an outdoors / hiking blog. Fully editable walks, guides and kit lists with honest ratings, a 3-day forecast and a map. Colours are Customizer-editable.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: charli-outdoors
*/

/* ============================================================
   PALETTE — overridable from Appearance ▸ Customize ▸ Colours
   ============================================================ */
:root{
  --co-bg:#f3efe6;
  --co-ink:#26251f;
  --co-ink-soft:#3d3c35;
  --co-muted:#55544c;
  --co-green:#567355;      /* primary: panels, buttons, links, pins */
  --co-green-band:#70976F; /* lighter band (kit "most used") */
  --co-green-mid:#63805f;
  --co-sand:#cdb488;       /* highlight buttons / badges */
  --co-sand-ink:#b08d4c;   /* hover ink */
  --co-rose:#b0897a;       /* section labels */
  --co-card:#fbfaf4;
  --co-line:#e2ddce;
  --co-line-2:#ddd5c4;
  --co-chip:#e8e7d2;
  --co-cream-2:#eae4d6;
  --font-head:'Schibsted Grotesk',system-ui,sans-serif;
  --font-body:'Hanken Grotesk',system-ui,sans-serif;
  --wrap:1240px;
  /* Page heading sizes — one place to nudge every page title up or down. */
  --co-h1:clamp(30px,4.4vw,48px);         /* archive + page titles */
  --co-h1-article:clamp(28px,4vw,46px);   /* single guide / kit titles */
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--co-bg);
  color:var(--co-ink);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  /* clip, not hidden: overflow-x:hidden on body turns it into a scroll
     container, which breaks position:sticky (the About photo, the Kit
     filter on phones). overflow:clip stops the same sideways overflow
     without creating that scroll container. */
  overflow-x:clip;
}
img{max-width:100%;height:auto;display:block;}

/* ---------- Full-bleed breakout (works inside any max-width/padded container) ---------- */
.full-bleed{width:auto;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);}
.yt-embed{position:relative;aspect-ratio:16/9;overflow:hidden;background:#000;}
.yt-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0;}
/* Click-to-play YouTube thumbnail (co_youtube_embed); main.js swaps in the player. */
.yt-lite{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;cursor:pointer;background:#000;}
.yt-lite picture,.yt-lite-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.yt-lite::after{content:"";position:absolute;inset:auto 0 0;height:40%;background:linear-gradient(to top,rgba(0,0,0,.35),rgba(0,0,0,0));pointer-events:none;}
/* Play pill sits in the corner so it doesn't cover the thumbnail's own title. */
.yt-lite-play{position:absolute;left:16px;bottom:16px;z-index:1;display:inline-flex;align-items:center;gap:10px;padding:8px 16px 8px 8px;border-radius:999px;color:#fff;font:600 14.5px/1 var(--font-body);background:rgba(38,37,32,.55);border:1px solid rgba(255,255,255,.35);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 4px 16px rgba(0,0,0,.25);transition:background .2s,transform .2s;}
.yt-lite-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#fff;color:var(--co-ink);padding-left:2px;}
.yt-lite:hover .yt-lite-play,.yt-lite:focus-visible .yt-lite-play{background:var(--co-green);transform:translateY(-1px);}
.yt-lite:focus-visible{outline:3px solid var(--co-sand);outline-offset:-3px;}
@media(max-width:600px){.yt-lite-play{left:12px;bottom:12px;font-size:13.5px;}}
a{color:var(--co-green);text-decoration:none;transition:color .18s;}
a:hover{color:var(--co-sand-ink);}
h1,h2,h3,h4{font-family:var(--font-head);letter-spacing:-0.025em;line-height:1.05;margin:0;}
::selection{background:var(--co-sand);color:var(--co-ink);}
.wrap{max-width:var(--wrap);margin:0 auto;padding-left:32px;padding-right:32px;}
.lbl{font-family:var(--font-body);font-size:12px;font-weight:600;letter-spacing:0.14em;text-transform:uppercase;color:var(--co-rose);}

/* ---------- Buttons ---------- */
.btn{display:inline-block;font-weight:600;font-size:15px;padding:13px 22px;border-radius:999px;cursor:pointer;border:none;font-family:inherit;transition:background .18s,color .18s;}
.btn-sand{background:var(--co-sand);color:var(--co-ink);}
.btn-sand:hover{background:var(--co-cream-2);color:var(--co-ink);}
.btn-green{background:var(--co-green);color:var(--co-bg);}
.btn-green:hover{background:var(--co-sand);color:var(--co-ink);}
.btn-cream{background:var(--co-bg);color:var(--co-ink);}
.btn-cream:hover{background:var(--co-sand);color:var(--co-ink);}
.btn-ghost{background:rgba(243,239,230,0.14);border:1px solid rgba(243,239,230,0.6);color:#f6f2e8;}
.btn-ghost:hover{background:rgba(243,239,230,0.26);color:#fff;}
.btn-outline{background:var(--co-card);border:1px solid var(--co-green);color:var(--co-green);}
.btn-outline:hover{background:var(--co-green);color:var(--co-bg);}

/* ---------- Header / nav ---------- */
/* Scrolls away with the page rather than staying pinned at the top. */
.site-header{position:relative;z-index:50;background:var(--co-bg);border-bottom:1px solid var(--co-line-2);}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-top:16px;padding-bottom:16px;}
.brand{font-family:var(--font-head);font-size:21px;font-weight:700;color:var(--co-ink);}
.main-nav{display:flex;align-items:center;gap:26px;font-size:15px;font-weight:500;flex-wrap:wrap;list-style:none;margin:0;padding:0;}
.main-nav li{list-style:none;margin:0;padding:0;}
.main-nav a{color:var(--co-ink-soft);}
.main-nav a:hover{color:var(--co-sand-ink);}
/* Contact button. Styled the same whether "nav-cta" is on the link itself
   (the built-in default menu) or on the menu item (Appearance ▸ Menus ▸
   CSS Classes), where WordPress puts it on the <li> instead — previously
   that case gave a green pill with dark/green text on top that blended in. */
.main-nav a.nav-cta,
.main-nav li.nav-cta > a{display:inline-flex;align-items:center;gap:8px;background:var(--co-green);color:#fff;padding:10px 18px;border-radius:999px;font-weight:600;}
.main-nav a.nav-cta svg,
.main-nav li.nav-cta > a svg{flex-shrink:0;}
.main-nav a.nav-cta:hover,
.main-nav li.nav-cta > a:hover{background:#3f5a3e;color:#fff;}
.main-nav li{position:relative;}
.main-nav li.current-menu-item > a:not(.nav-cta),
.main-nav li.current-menu-parent > a:not(.nav-cta),
.main-nav li.current_page_item > a:not(.nav-cta),
.main-nav li.current_page_parent > a:not(.nav-cta){
  color:var(--co-green);
  font-weight:700;
}
.main-nav li.current-menu-item > a:not(.nav-cta)::after,
.main-nav li.current-menu-parent > a:not(.nav-cta)::after,
.main-nav li.current_page_item > a:not(.nav-cta)::after,
.main-nav li.current_page_parent > a:not(.nav-cta)::after{
  content:'';
  position:absolute;
  left:0;right:0;bottom:-8px;
  height:2px;
  border-radius:2px;
  background:var(--co-green);
}
/* On the Contact page itself: a solid charcoal pill — clearly "you are here",
   rather than sand, which melted into the cream header. */
.main-nav a.nav-cta.is-current,
.main-nav li.current-menu-item > a.nav-cta,
.main-nav li.current_page_item > a.nav-cta,
.main-nav li.nav-cta.current-menu-item > a,
.main-nav li.nav-cta.current_page_item > a{
  background:var(--co-ink);
  color:#f3efe6;
  font-weight:600;
}
.main-nav li.nav-cta.current-menu-item > a::after,
.main-nav li.nav-cta.current_page_item > a::after{display:none;}
/* ---------- Sections & labels ---------- */
.section{padding:76px 0;}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:28px;flex-wrap:wrap;}
.section h2.title{font-weight:700;font-size:clamp(26px,3.4vw,38px);letter-spacing:-0.025em;}
.section .lbl{display:block;margin-bottom:12px;}

/* ---------- Hero ---------- */
.hero{position:relative;height:min(56vh,480px);min-height:360px;display:flex;flex-direction:column;justify-content:flex-end;border-radius:0 0 28px 28px;overflow:hidden;background:var(--co-cream-2);}
.hero .hero-media{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.hero .hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(20,19,15,0.12) 0%,rgba(20,19,15,0.05) 30%,rgba(20,19,15,0.25) 62%,rgba(20,19,15,0.55) 100%);}
.hero .hero-inner{position:relative;width:100%;padding-bottom:44px;}
.hero .hero-textbg{display:inline-block;max-width:100%;}
.hero .lbl{
  color:#f1ede2;
  margin-bottom:16px;
  text-shadow:0 1px 3px rgba(0,0,0,0.85),0 0 14px rgba(0,0,0,0.5);
  -webkit-text-stroke:0.5px rgba(15,14,11,0.55);
}
.hero h1{
  font-weight:700;
  color:#fff;
  font-size:clamp(28px,3.9vw,44px);
  line-height:1.08;
  letter-spacing:-0.03em;
  max-width:23ch;
  text-wrap:balance;
  text-shadow:0 2px 10px rgba(0,0,0,0.7),0 6px 26px rgba(0,0,0,0.45);
  -webkit-text-stroke:1px rgba(15,14,11,0.45);
  paint-order:stroke fill;
}
.hero .hero-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:24px;}

/* Mobile: keep the text on top of the photo, centred, and sitting in the
   upper part of the image rather than at the bottom (so it doesn't sit
   over Charli in the shot). */
@media(max-width:640px){
  .hero .hero-inner{
    position:absolute;inset:0;
    display:flex;flex-direction:column;justify-content:space-between;
    width:auto;padding:36px 20px 28px;
    text-align:center;
  }
  .hero .hero-overlay{background:linear-gradient(180deg,rgba(20,19,15,0.75) 0%,rgba(20,19,15,0.25) 32%,rgba(20,19,15,0.15) 58%,rgba(20,19,15,0.6) 100%);}
  .hero .hero-textbg{display:block;margin:0 auto;}
  .hero h1{max-width:20ch;margin:0 auto;}
  .hero .hero-actions{justify-content:center;margin-top:0;}
}

/* ---------- Cards grid ---------- */
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:52px;align-items:center;}
/* display:flex + height:100% makes every card in a grid row fill that row's
   full height (the .grid-3 wrapper already stretches grid items by default —
   .card just needs to actually use that height instead of sizing to its own
   content). Combined with .chips{margin-top:auto} below, this keeps every
   card's overall box the same height and its chip row pinned to the same
   bottom edge, whether that card's title/excerpt/chips wrap onto one line
   or two. */
.card{display:flex;flex-direction:column;height:100%;background:var(--co-card);border:1px solid var(--co-line);border-radius:20px;overflow:hidden;color:var(--co-ink);transition:border-color .18s,transform .18s,box-shadow .18s;}
.card:hover{border-color:var(--co-sand);transform:translateY(-3px);box-shadow:0 12px 28px rgba(38,37,32,0.10);}
.card .thumb{position:relative;flex-shrink:0;aspect-ratio:3/2;background:repeating-linear-gradient(46deg,#ddd4c1,#ddd4c1 12px,#e4dccb 12px,#e4dccb 24px);background-size:cover;background-position:center;overflow:hidden;}
.card .thumb.wide{aspect-ratio:16/10;}
.card .thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;}
.card .body{display:flex;flex-direction:column;flex:1;padding:20px 22px 22px;}
.card h3{font-weight:600;font-size:22px;line-height:1.12;letter-spacing:-0.01em;margin:0 0 14px;}
.card-excerpt{font-size:14px;line-height:1.5;color:var(--co-muted);margin:0 0 14px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
/* Pinned to the bottom-right of the card body via margin-top:auto — same
   "sits at the bottom regardless of how much text is above it" trick used
   for the .chips row on walk cards. */
.card-readmore{margin-top:auto;padding-top:14px;text-align:right;font-size:13.5px;font-weight:600;color:var(--co-green);}
/* Compact card — homepage teaser grids (walks/guides/kit). Smaller photo,
   tighter type, so three cards read as a preview row, not a full listing. */
.card-compact .thumb,.card-compact .thumb.wide{aspect-ratio:16/10;}
.card-compact .body{padding:16px 18px 18px;}
.card-compact h3{font-size:18px;margin:0 0 8px;}
.card-compact .card-excerpt{font-size:13.5px;margin:0 0 10px;}
/* Tight card — walks archive. Lighter reduction than compact, keeps the
   fuller chip row but trims the photo and heading down a notch. */
.card-tight .thumb{aspect-ratio:16/11;}
.card-tight .body{padding:18px 20px 20px;}
.card-tight h3{font-size:19px;margin:0 0 10px;}
.badge-region{position:absolute;top:12px;left:12px;background:rgba(86,115,85,0.92);color:#f3efe6;font-size:12px;font-weight:600;padding:6px 12px;border-radius:999px;}
.badge-rating{position:absolute;top:12px;right:12px;background:var(--co-sand);color:var(--co-ink);font-size:13px;font-weight:700;padding:6px 12px;border-radius:999px;}
.chips{display:flex;flex-wrap:wrap;gap:8px;font-size:13px;font-weight:500;color:var(--co-muted);margin-top:auto;padding-top:14px;}
.chips span{background:var(--co-chip);padding:5px 11px;border-radius:999px;}

/* "Good for" badges on a single walk — always wraps, never scrolls (unlike .chips
   on cards, which intentionally scrolls horizontally on mobile — see below). */
.feature-chips{display:flex;flex-wrap:wrap;gap:8px;font-size:13px;font-weight:500;color:var(--co-muted);}
.feature-chips span{background:var(--co-chip);padding:5px 11px;border-radius:999px;}

.thumb-note{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:10px;color:#6d6656;text-transform:uppercase;letter-spacing:0.14em;}

/* Mobile: cards (walks/guides/kit) keep photo-on-top, text-underneath —
   same shape as desktop, just resized. A compact horizontal row (photo
   left, text right) was tried here before but a fixed-height row left
   no room for the chip line, which pushed content past the row and
   made stats overlap each other / neighbouring cards. */
@media(max-width:640px){
  .grid-3{gap:14px;}
  .card{display:flex;flex-direction:column;}
  .card .thumb,.card .thumb.wide{width:100%;aspect-ratio:16/10;}
  .card .body{padding:14px 16px 16px;}
  .card .body p{margin:0 0 8px;}
  .card h3{font-size:17px;line-height:1.2;letter-spacing:-0.005em;margin:0 0 8px;}
  .card .body > .lbl{margin-bottom:6px !important;font-size:10.5px;}
  .badge-region{font-size:11px;padding:5px 10px;}
  .badge-rating{font-size:12px;padding:5px 10px;}
  .chips{gap:6px;font-size:11.5px;}
  .chips span{padding:4px 10px;}
}

/* ---------- Index rows (map list) ---------- */
.rowlink{display:grid;grid-template-columns:auto auto 1fr auto;gap:14px;align-items:center;padding:12px;border-top:1px solid var(--co-line-2);color:var(--co-ink);border-radius:14px;transition:background .15s;}
.rowlink:hover{background:#efe8d8;}
.rowlink .num{width:24px;height:24px;border-radius:50%;background:var(--co-green);color:#f3efe6;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.rowlink .row-thumb{width:48px;height:48px;border-radius:11px;flex-shrink:0;background:repeating-linear-gradient(46deg,#dbe0c2,#dbe0c2 7px,#e4e7cf 7px,#e4e7cf 14px);background-size:cover;background-position:center;}
.rowlink .pill{background:var(--co-chip);color:var(--co-green);font-size:12px;font-weight:700;padding:5px 10px;border-radius:999px;}

/* ---------- Filter chips ---------- */
.filters{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:30px;}
.filters .chip{background:var(--co-card);border:1px solid var(--co-line-2);padding:9px 16px;border-radius:999px;font-size:14px;font-weight:500;color:var(--co-ink);}
.filters .chip.active,.filters .chip:hover{background:var(--co-green);color:#f3efe6;border-color:var(--co-green);}
/* Guides archive — "Where to go" dropdown sits in the chip row and looks like a chip. */
.guide-filters{align-items:center;}
.guide-where .fselect-btn{width:auto;padding:9px 16px;}
.guide-where.active .fselect-btn,.guide-where .fselect-btn:hover{background-color:var(--co-green);color:#f3efe6;border-color:var(--co-green);}
.guide-where.active .fselect-chev,.guide-where .fselect-btn:hover .fselect-chev{color:#f3efe6;}
.guide-where .fselect-menu{right:auto;min-width:220px;}
.searchbar{flex:1;min-width:260px;display:flex;align-items:center;gap:10px;background:var(--co-card);border:1px solid var(--co-line-2);border-radius:999px;padding:12px 18px;margin-bottom:0;}
.searchbar input{flex:1;border:none;background:transparent;outline:none;font-family:inherit;font-size:15px;color:var(--co-ink);}
.search-row{display:flex;gap:12px;align-items:stretch;margin-bottom:16px;}
.near-me-btn{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;}
.near-me-btn.active{background:var(--co-green);color:#f3efe6;border-color:var(--co-green);}
.near-me-panel{display:flex;flex-wrap:wrap;align-items:center;gap:14px;background:var(--co-card);border:1px solid var(--co-line-2);border-radius:14px;padding:14px 18px;margin-bottom:20px;font-size:14px;}
.near-me-panel[hidden]{display:none;}
.near-me-panel input[type=range]{flex:1;max-width:240px;accent-color:var(--co-green);}
.near-me-status{color:#a4574a;font-size:13px;}
.near-me-empty{font-size:15px;color:var(--co-muted);text-align:center;padding:40px 0;}
.near-me-empty[hidden]{display:none;}

/* Filter panel — one tidy bordered bar with grouped, divided pill rows,
   instead of loose stacked chip lists. */
/* Grid, not flex-wrap: with 4 groups of very different content length
   (Region can wrap to several lines, Dog friendly is one short row),
   flex-wrap let them fall onto ragged, unevenly-wrapped rows instead of
   lining up cleanly. Grid keeps every group's label starting on the
   same line regardless of how tall its own chip list gets. */
.filter-panel{background:var(--co-card);border:1px solid var(--co-line-2);border-radius:18px;padding:22px 26px;margin-bottom:30px;display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));align-items:start;gap:22px 34px;}
.filter-panel .filter-group{min-width:0;}
.filter-panel .filters{margin-bottom:0;}

/* ---------- Green panels ---------- */
.gpx-card{display:flex;align-items:center;gap:20px;background:var(--co-green);color:#f1ede2;border-radius:22px;padding:26px 30px;margin-bottom:40px;flex-wrap:wrap;}
.gpx-card .gpx-icon{width:52px;height:52px;border-radius:50%;background:rgba(255,255,255,0.15);display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.gpx-card .gpx-text{flex:1;min-width:200px;}
.panel-green{background:var(--co-green);color:#f1ede2;border-radius:28px;margin:0 20px;}
.panel-band{background:var(--co-green-band);color:#f6f2e8;border-radius:28px;margin:0 20px;}
.panel-green .lbl,.panel-band .lbl{color:#cfd8c8;}
.panel-green h2,.panel-band h2{color:#f6f2e8;}

/* ---------- Scorecard ---------- */
.scorecard{background:var(--co-card);border:1px solid var(--co-line);border-radius:22px;padding:30px;}
.scorecard .head{display:flex;justify-content:space-between;align-items:baseline;border-bottom:1px solid var(--co-line);padding-bottom:16px;margin-bottom:20px;}
.scorecard .big{font-family:var(--font-head);font-size:46px;font-weight:700;line-height:1;color:var(--co-green);}
.rating{margin-bottom:15px;}
.rating .top{display:flex;justify-content:space-between;gap:10px;font-size:13.5px;font-weight:600;margin-bottom:7px;}
.rating .top span:last-child{text-align:right;}
.rating .track{height:6px;border-radius:6px;background:#e8e1d1;}
.rating .fill{height:100%;border-radius:6px;background:var(--co-green-band);}
.rating.moderate .fill{background:var(--co-sand);}
.rating.moderate .top span:last-child{color:var(--co-sand-ink);}
.rating .top span:last-child{color:var(--co-green);}

/* ---------- Forecast ---------- */
/* A angled gradient (rather than one flat green) plus a subtle top sheen
   gives the panel some depth instead of reading as a single block of colour;
   the day cards get their own soft shadow + inner highlight so they sit up
   off the panel like small tiles rather than flush rectangles. */
.forecast{background:linear-gradient(155deg,#6c8a67 0%,#567355 45%,#455f45 100%);border-radius:22px;padding:24px 28px;color:#f1ede2;position:relative;overflow:hidden;}
.forecast::before{content:"";position:absolute;inset:0;background:radial-gradient(120% 90% at 15% -10%,rgba(255,255,255,0.14),transparent 60%);pointer-events:none;}
.forecast .days{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;position:relative;}
/* The big temperature acts as the card's anchor on the right (margin-left:auto
   pushes it there) instead of the icon+text hugging the left edge and leaving
   the rest of a wide card empty. */
.forecast .day{background:linear-gradient(165deg,#6f8f6a 0%,#5a7856 100%);border-radius:16px;padding:18px 20px;display:flex;align-items:center;gap:14px;min-width:0;box-shadow:0 6px 14px rgba(20,25,15,0.22),inset 0 1px 0 rgba(255,255,255,0.12);}
.forecast .day-icon{flex-shrink:0;}
.forecast .day-info{min-width:0;}
.forecast .day-name{font-family:var(--font-head);font-weight:600;font-size:17px;}
.forecast .day-cond{font-size:13.5px;color:#cfd8c8;margin-top:2px;}
.forecast .day-temp{margin-left:auto;flex-shrink:0;font-family:var(--font-head);font-weight:700;font-size:28px;line-height:1;text-align:right;}
.forecast .day-temp-lo{font-size:15px;font-weight:500;opacity:.68;margin-left:1px;}
.forecast .day svg{flex-shrink:0;}

/* ---------- Kit rows ---------- */
.kit-row{display:flex;align-items:center;gap:14px;background:var(--co-card);border:1px solid var(--co-line);border-radius:16px;padding:16px 18px;color:var(--co-ink);margin-bottom:12px;transition:border-color .18s,transform .18s;}
.kit-row:hover{border-color:var(--co-sand);transform:translateY(-2px);}
.kit-row-main{display:flex;align-items:center;gap:18px;flex:1;min-width:0;color:inherit;}
.kit-row .kit-thumb{width:56px;height:56px;flex-shrink:0;border-radius:12px;background:repeating-linear-gradient(46deg,#ddd4c1,#ddd4c1 7px,#e4dccb 7px,#e4dccb 14px);background-size:cover;background-position:center;}
.kit-row-actions{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex-shrink:0;}
.kit-row-actions .kit-readmore{font-weight:600;font-size:13.5px;color:var(--co-sand-ink);white-space:nowrap;}
.kit-row-actions .kit-shop{font-weight:600;font-size:14px;color:var(--co-green);white-space:nowrap;}
.kit-group-title{font-family:var(--font-head);font-weight:600;font-size:27px;letter-spacing:-0.02em;margin:0 0 18px;}
.kit-row-name{display:block;font-family:var(--font-head);font-weight:600;font-size:18px;}
.kit-row-badge{display:inline-block;vertical-align:middle;margin-left:6px;padding:2px 8px;border-radius:999px;background:#e1eadc;color:#3b5539;font-family:var(--font-body);font-size:11px;font-weight:600;letter-spacing:0.04em;}
.kit-row-note{display:block;font-size:14px;color:var(--co-muted);margin-top:3px;}
div.kit-row:hover{transform:none;border-color:var(--co-line);}

/* Kit page — product grid (shop style) with a category filter menu */
.kit-filter{margin:0 0 28px;}
.kit-filter-toggle{display:none;}
.kit-filter-opts{display:flex;flex-wrap:wrap;gap:8px;}
.kit-filter-opt{appearance:none;border:1px solid var(--co-line);background:var(--co-card);color:var(--co-ink);border-radius:999px;padding:9px 16px;font:600 14px/1 var(--font-body);cursor:pointer;transition:background .15s,border-color .15s,color .15s;}
.kit-filter-opt .count{font-weight:500;color:var(--co-muted);margin-left:2px;}
.kit-filter-opt:hover{border-color:var(--co-sand);}
.kit-filter-opt.is-active{background:var(--co-green);border-color:var(--co-green);color:#fff;}
.kit-filter-opt.is-active .count{color:rgba(255,255,255,.75);}
.kit-shop-group{margin-bottom:48px;}
.kit-shop-group[hidden]{display:none;}
.kit-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:22px 18px;}
.kit-card{display:flex;flex-direction:column;color:var(--co-ink);}
.kit-card-photo{position:relative;display:block;aspect-ratio:1/1;border-radius:14px;overflow:hidden;background:repeating-linear-gradient(46deg,#ddd4c1,#ddd4c1 7px,#e4dccb 7px,#e4dccb 14px);background-size:cover;background-position:center;transition:transform .25s,box-shadow .25s;}
a.kit-card:hover .kit-card-photo{transform:translateY(-3px);box-shadow:0 10px 24px rgba(38,37,32,.16);}
.kit-card-badge{position:absolute;left:8px;right:8px;bottom:8px;width:fit-content;max-width:calc(100% - 16px);padding:5px 9px;border-radius:8px;background:rgba(251,250,244,.94);color:#3b5539;font-size:11.5px;font-weight:600;line-height:1.3;letter-spacing:.02em;box-shadow:0 2px 8px rgba(38,37,32,.15);}
.kit-card-body{display:flex;flex-direction:column;padding:12px 2px 0;flex:1;}
.kit-card-name{font-family:var(--font-head);font-weight:600;font-size:16.5px;line-height:1.25;letter-spacing:-0.01em;}
.kit-card-note{font-size:13.5px;color:var(--co-muted);margin-top:4px;line-height:1.4;}
.kit-card-shop{margin-top:8px;font-weight:600;font-size:13.5px;color:var(--co-green);}
a.kit-card:hover .kit-card-name{color:var(--co-sand-ink);}
@media(max-width:1180px){.kit-grid{grid-template-columns:repeat(4,minmax(0,1fr));}}
@media(max-width:900px){.kit-grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:640px){
  .kit-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px;}
  .kit-card-name{font-size:15px;}
  .kit-card-note{font-size:12.5px;}
  .kit-card-badge{font-size:10.5px;left:6px;bottom:6px;max-width:calc(100% - 12px);padding:4px 7px;}
  /* the menu folds away behind a "Showing: …" button on phones */
  .kit-filter{position:sticky;top:10px;z-index:20;}
  .kit-filter-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;appearance:none;border:1px solid var(--co-line);background:var(--co-card);color:var(--co-ink);border-radius:14px;padding:13px 16px;font:500 15px/1 var(--font-body);cursor:pointer;box-shadow:0 4px 14px rgba(38,37,32,.08);}
  .kit-filter-toggle svg{transition:transform .2s;}
  .kit-filter.is-open .kit-filter-toggle{border-radius:14px 14px 0 0;}
  .kit-filter.is-open .kit-filter-toggle svg{transform:rotate(180deg);}
  .kit-filter-opts{display:none;flex-direction:column;gap:0;background:var(--co-card);border:1px solid var(--co-line);border-top:0;border-radius:0 0 14px 14px;overflow:hidden;box-shadow:0 10px 24px rgba(38,37,32,.12);}
  .kit-filter.is-open .kit-filter-opts{display:flex;}
  .kit-filter-opt{border:0;border-radius:0;background:none;text-align:left;padding:14px 16px;font-size:15px;border-top:1px solid var(--co-line);}
  .kit-filter-opt:first-child{border-top:0;}
  .kit-filter-opt.is-active{background:#e1eadc;color:#3b5539;}
  .kit-filter-opt.is-active .count{color:#3b5539;}
}

/* ---------- Discount codes banner (Kit page) ---------- */
/* The literal code is deliberately not shown as text — it's kept in
   data-code for the click handler (assets/js/main.js) which copies it
   to the clipboard and, when a link is set, opens it straight after.
   Chip only needs to be big enough for the brand name + hint. */
.discount-band{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:34px;}
/* Light sage tint + dark green text rather than solid green + pale text —
   the small "Tap to copy" line was hard to read on the darker green. */
.discount-chip{position:relative;display:flex;align-items:center;gap:8px;background:#e1eadc;color:#3b5539;border-radius:12px;padding:9px 14px;cursor:pointer;border:1px dashed #93ab90;transition:background .15s,border-color .15s;}
.discount-chip:hover{background:#d2dfcb;border-color:var(--co-green);}
.discount-chip .brand{font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:0.06em;}
.discount-chip .copy-hint{font-size:11px;color:#4f6a4d;}
.discount-chip .copy-icon{flex-shrink:0;opacity:0.85;}

@media(max-width:640px){
  /* Two per row instead of one wide chip stretching edge to edge —
     brand + hint stack vertically inside each chip since there's no
     longer room for them side by side at half the width. */
  .discount-band{display:grid;grid-template-columns:1fr 1fr;gap:8px;}
  .discount-chip{flex-direction:column;align-items:flex-start;gap:2px;padding:10px 26px 10px 12px;}
  .discount-chip .brand{font-size:10.5px;}
  .discount-chip .copy-hint{font-size:10px;}
  .discount-chip .copy-icon{position:absolute;top:10px;right:10px;}
}

/* ---------- Vinted callout (Kit page) ---------- */
.vinted-card{display:flex;align-items:center;gap:20px;background:var(--co-card);border:1px solid var(--co-line);border-radius:20px;padding:22px 26px;margin-bottom:34px;flex-wrap:wrap;}
.vinted-card .vinted-icon{width:48px;height:48px;border-radius:50%;background:var(--co-chip);display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.vinted-card .vinted-text{flex:1;min-width:220px;}
.vinted-card .heading{font-family:var(--font-head);font-weight:600;font-size:18px;}
.vinted-card .sub{font-size:14.5px;color:var(--co-muted);margin-top:3px;}

/* ---------- Copy confirmation modal ---------- */
.copy-modal{position:fixed;left:50%;bottom:32px;transform:translateX(-50%) translateY(20px);z-index:200;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;}
.copy-modal.show{opacity:1;transform:translateX(-50%) translateY(0);}
.copy-modal-inner{display:flex;align-items:center;gap:10px;background:var(--co-ink);color:#f3efe6;padding:14px 22px;border-radius:999px;box-shadow:0 12px 30px rgba(0,0,0,0.25);font-weight:600;font-size:14.5px;white-space:nowrap;}
.copy-modal .check{width:22px;height:22px;border-radius:50%;background:var(--co-green);display:flex;align-items:center;justify-content:center;font-size:13px;flex-shrink:0;}

/* ---------- Stat chips (walk header) ---------- */
/* Sized to comfortably fit all 8 possible stats on one row at typical desktop
   widths; flex-wrap stays on as a safety net (never overflows the page) but
   shouldn't be needed in practice. */
.statline{display:flex;flex-wrap:wrap;gap:8px;margin:26px 0 30px;}
.statline .stat{background:var(--co-card);border:1px solid var(--co-line);border-radius:14px;padding:11px 14px;}
.statline .stat b{font-family:var(--font-head);font-size:19px;font-weight:700;display:block;white-space:nowrap;}
/* Single walk: short stats in one even row, long descriptions in a wider row below. */
.walk-stats{display:grid;gap:10px;margin:26px 0 30px;}
.walk-stats .statline{margin:0;}
.statline--grid{display:grid;grid-template-columns:repeat(var(--stat-cols,4),minmax(0,1fr));gap:10px;}
.statline--grid .stat{display:flex;flex-direction:column;justify-content:space-between;gap:4px;min-width:0;}
.statline--grid .stat b{white-space:normal;line-height:1.2;overflow-wrap:anywhere;}
.statline--wide .stat b{font-size:17px;}
/* Wide screens: everything on one line. Short stats keep their natural
   width, the longer descriptions share what's left and wrap inside their box. */
@media(min-width:1100px){
  .walk-stats{display:flex;gap:8px;align-items:stretch;}
  .walk-stats .statline{display:contents;}
  .walk-stats .stat{flex:0 1 auto;padding:10px 13px;}
  .walk-stats .stat b{font-size:17px;white-space:nowrap;}
  .walk-stats .statline:only-child .stat{flex-grow:1;}
  .walk-stats .statline--wide .stat{flex:1 1 0;min-width:0;}
  .walk-stats .statline--wide .stat b{white-space:normal;}
}
@media(max-width:860px){
  .statline--grid:not(.statline--wide){grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(max-width:640px){
  .statline.statline--wide{grid-template-columns:repeat(var(--stat-cols,2),minmax(0,1fr));}
  .statline--wide .stat b{font-size:14px;}
}

@media(max-width:640px){
  /* Denser mobile layout for the stat cards / forecast / rating block —
     same information as desktop, just tighter boxes so it doesn't take
     several screens of scrolling to get past the walk's header info. */
  .statline{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;}
  .statline .stat{padding:9px 6px;text-align:center;}
  .statline .stat b{font-size:14.5px;white-space:normal;line-height:1.15;}
  .statline .stat .lbl{font-size:9px !important;}

  /* Weather: all 3 days stay on one row (was one per row) — smaller icon,
     same text, so it reads as a quick strip instead of a long stack. */
  .forecast{padding:16px 14px;}
  .forecast .days{grid-template-columns:repeat(3,1fr);gap:8px;}
  .forecast .day{padding:12px 8px;flex-direction:column;align-items:center;text-align:center;gap:6px;}
  .forecast .day svg{width:26px;height:26px;}
  /* No room for the desktop "big temp on the right" treatment at 3-across
     on a phone — keep it as a small centred line under the condition text. */
  .forecast .day-name{font-size:13px;}
  .forecast .day-cond{font-size:11px;}
  .forecast .day-temp{margin-left:0;font-size:15px;text-align:center;}

  /* Rating card: two ratings per row instead of one — this overrides the
     generic .grid-collapse{1fr} mobile rule for just the scorecard, via
     higher selector specificity, since both carry !important. */
  .scorecard{padding:20px;}
  .scorecard .head{padding-bottom:12px;margin-bottom:14px;}
  .scorecard .big{font-size:34px;}
  .scorecard .grid-collapse{grid-template-columns:1fr 1fr !important;gap:14px 18px !important;}
  .scorecard .rating{margin-bottom:0;}
}

/* ---------- Single walk: forecast + rating ("at a glance") ---------- */
.walk-glance{display:grid;grid-template-columns:1fr;gap:20px;margin-bottom:36px;}
.forecast-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;position:relative;}
.forecast-nav{display:none;gap:6px;}
.forecast-arrow{width:32px;height:32px;border-radius:50%;border:1px solid rgba(243,239,230,0.45);background:rgba(243,239,230,0.12);color:#f3efe6;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;transition:background .15s,opacity .15s;}
.forecast-arrow:hover{background:rgba(243,239,230,0.26);}
.forecast-arrow:disabled{opacity:.35;cursor:default;background:rgba(243,239,230,0.12);}
@media(min-width:761px){
  /* Side by side: weather left, rating right, same height. */
  .walk-glance--split{grid-template-columns:1fr 1fr;align-items:stretch;}
  .walk-glance--split .forecast{display:flex;flex-direction:column;}
  .walk-glance--split .forecast-nav{display:flex;}
  /* One day at a time — a sideways strip that snaps to each day; the
     arrows (or a swipe / trackpad) move between them. */
  .walk-glance--split .forecast .days{display:flex;flex:1;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;}
  .walk-glance--split .forecast .days::-webkit-scrollbar{display:none;}
  .walk-glance--split .forecast .day{flex:0 0 100%;scroll-snap-align:start;padding:22px 24px;gap:18px;}
  .walk-glance--split .forecast .day svg{width:52px;height:52px;}
  .walk-glance--split .forecast .day-name{font-size:21px;}
  .walk-glance--split .forecast .day-cond{font-size:15px;}
  .walk-glance--split .forecast .day-temp{font-size:40px;}
  .walk-glance--split .forecast .day-temp-lo{font-size:19px;}
  /* Rating made more compact to sit beside it. */
  .walk-glance--split .scorecard{padding:22px 24px;}
  .walk-glance--split .scorecard .head{padding-bottom:12px;margin-bottom:14px;}
  .walk-glance--split .scorecard .big{font-size:36px;}
  .walk-glance--split .scorecard .grid-collapse{grid-template-columns:1fr !important;gap:11px !important;}
  .walk-glance--split .scorecard .rating{margin-bottom:0;}
  .walk-glance--split .scorecard .rating .top{font-size:13px;margin-bottom:5px;}
}

/* ---------- Single walk: kit I used (cards, picked from the Kit list) ---------- */
.walk-kit{border-top:2px solid var(--co-ink);padding-top:30px;margin:40px 0;}
.walk-kit-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;margin-bottom:20px;}
.walk-kit-head h2{font-family:var(--font-head);font-weight:600;font-size:26px;margin:0 0 4px;}
.walk-kit-head .lbl{color:#8a8471;margin:0;font-size:11px;}
.walk-kit-all{font-weight:600;font-size:14px;white-space:nowrap;}
.walk-kit-intro{font-size:17px;line-height:1.65;color:#2b2a24;margin:0 0 18px;}
.walk-kit-intro p{margin:0 0 12px;}
.walk-kit-intro p:last-child{margin-bottom:0;}
/* Compact rows, two columns on desktop, so a long kit list stays tidy. */
.walk-kit-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:10px 14px;}
.walk-kit-list li[hidden]{display:none;}
.walk-kit-item{display:flex;align-items:center;gap:14px;height:100%;background:var(--co-card);border:1px solid var(--co-line);border-radius:14px;padding:8px 14px 8px 8px;color:var(--co-ink);transition:border-color .18s;}
a.walk-kit-item:hover{border-color:var(--co-sand);color:var(--co-ink);}
.walk-kit-item .thumb{position:relative;flex-shrink:0;width:60px;height:60px;border-radius:10px;background-color:#ebe5d6;background-size:cover;background-repeat:no-repeat;background-position:center;border:1px solid var(--co-line);}
/* green tick on each item: "I took this" */
.walk-kit-item .thumb::after{content:'';position:absolute;top:-6px;left:-6px;width:20px;height:20px;border-radius:50%;background:var(--co-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat;box-shadow:0 0 0 2px var(--co-card);}
.walk-kit-item .thumb.no-photo{background-image:repeating-linear-gradient(46deg,#e4dccb,#e4dccb 7px,#ebe5d6 7px,#ebe5d6 14px);}
.walk-kit-item .body{display:flex;flex-direction:column;min-width:0;flex:1;}
.walk-kit-item .name{font-family:var(--font-head);font-weight:600;font-size:16px;line-height:1.25;}
.walk-kit-item .kit-brand{color:var(--co-green);font-weight:500;}
.walk-kit-item .note{font-size:13.5px;line-height:1.4;color:var(--co-muted);margin-top:2px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.walk-kit-item .shop{flex-shrink:0;font-weight:600;font-size:14px;color:var(--co-green);white-space:nowrap;}
.walk-kit-more{margin-top:16px;}
/* shop the look — kit photo with dots */
.kit-look{margin:0 0 18px;text-align:center;}
.kit-look-frame{position:relative;display:inline-block;max-width:100%;vertical-align:top;text-align:left;}
.kit-look-img{display:block;max-width:100%;width:auto;height:auto;max-height:min(80vh,760px);border-radius:18px;margin:0;}
/* Dots: a small white dot drawn by ::before, inside a bigger invisible button
   so it's still easy to tap. They pulse twice when the photo first comes into
   view (.is-seen, set in main.js), and grow a little while the pointer is over
   the photo, so they stay out of the way while you look at it. */
.kit-spot{position:absolute;transform:translate(-50%,-50%);width:40px;height:40px;padding:0;border:0;border-radius:50%;background:none;cursor:pointer;-webkit-tap-highlight-color:transparent;}
.kit-spot span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);}
.kit-spot::before,.kit-spot::after{content:'';position:absolute;left:50%;top:50%;width:13px;height:13px;margin:-6.5px 0 0 -6.5px;border-radius:50%;pointer-events:none;}
.kit-spot::before{background:#fff;box-shadow:0 0 0 1.5px rgba(38,37,32,.22),0 2px 6px rgba(0,0,0,.4);transition:transform .2s ease,background .2s ease,box-shadow .2s ease;}
.kit-spot::after{border:2px solid rgba(255,255,255,.85);opacity:0;}
.kit-look.is-seen .kit-spot::after{animation:kit-pulse 1.5s ease-out 2;}
@media(hover:hover){.kit-look-frame:hover .kit-spot::before{transform:scale(1.3);}}
.kit-spot:hover::before,.kit-spot.is-open::before,.kit-spot:focus-visible::before{transform:scale(1.55);background:var(--co-green);box-shadow:0 0 0 2px #fff,0 2px 8px rgba(0,0,0,.4);}
.kit-spot:focus-visible{outline:none;}
.kit-spot.is-open::after{animation:none;}
@keyframes kit-pulse{0%{transform:scale(1);opacity:.9}100%{transform:scale(2.8);opacity:0}}
@media (prefers-reduced-motion:reduce){.kit-look.is-seen .kit-spot::after{animation:none;}.kit-spot::before{transition:none;}}
.kit-spot-card{position:absolute;z-index:5;width:min(300px,calc(100% - 16px));border-radius:14px;box-shadow:0 12px 32px rgba(38,37,32,.28);}
.kit-spot-card[hidden]{display:none;}
.kit-look-cap{margin-top:10px;font-size:13px;color:#8a8471;}
.walk-kit-sub{font-family:var(--font-head);font-weight:600;font-size:19px;margin:22px 0 12px;}
@media(max-width:760px){
  .walk-kit-list{grid-template-columns:1fr;gap:8px;}
  .walk-kit-item{gap:12px;padding:7px 12px 7px 7px;}
  .walk-kit-item .thumb{width:52px;height:52px;}
  .walk-kit-item .name{font-size:15px;}
}

/* ---------- Walk / guide / kit hero (title overlaid on the featured image) ---------- */
.walk-hero{position:relative;border-radius:22px;overflow:hidden;aspect-ratio:16/9;margin-bottom:30px;}
/* Desktop: a letterbox strip (~half the old 16:9 height) so the stats and
   write-up start higher up. Phones keep 16:9 — 3:1 would be a sliver there. */
@media(min-width:641px){
  .walk-hero{aspect-ratio:3/1;min-height:280px;}
}
.walk-hero-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 25%;display:block;margin:0;}
.walk-hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(20,19,15,0.05) 0%,rgba(20,19,15,0.1) 35%,rgba(20,19,15,0.72) 100%);}
.walk-hero-text{position:absolute;left:0;right:0;bottom:0;padding:34px 36px;}
.walk-hero-text h1{font-size:clamp(26px,3.6vw,42px);margin:0;color:#fff;line-height:1.05;}
@media(max-width:640px){
  .walk-hero{margin-bottom:22px;}
  .walk-hero-text{padding:20px 20px 22px;}
}

/* ---------- Article ---------- */
.article{max-width:1160px;margin:0 auto;padding:44px 32px 80px;}

/* Single walk — YouTube + map row. 50/50 when a walk has both; the map is
   given the video's 16:9 shape so the two line up. */
.walk-media{display:grid;grid-template-columns:1fr;gap:28px;border-top:1px solid var(--co-line-2);padding-top:30px;margin:40px 0;}
.walk-media--split{grid-template-columns:1fr 1fr;align-items:start;}
.walk-media--split .map-canvas{height:auto;aspect-ratio:16/9;border-radius:20px;}
@media(max-width:760px){ .walk-media--split{grid-template-columns:1fr;} }

/* Single walk — "Liked this walk?" panel: newsletter, or newsletter | or | Ko-fi. */
/* "More walks" at the end of a walk */
.walk-related{border-top:1px solid var(--co-line-2);padding-top:34px;margin:0 0 56px;}
.walk-related .section-head{margin-bottom:22px;}
.walk-related-title{font-weight:600;font-size:26px;letter-spacing:-0.02em;}
.walk-related .section-head a{font-weight:600;font-size:15px;}
.walk-cta{padding:34px;text-align:center;}
.walk-cta h3{font-family:var(--font-head);font-weight:600;font-size:24px;margin:0 0 8px;}
.walk-cta p{font-size:16px;color:#e2e6d6;margin:0 auto 22px;max-width:46ch;}
.walk-cta-action{max-width:440px;margin:0 auto;}
.walk-cta--split{display:grid;grid-template-columns:1fr auto 1fr;gap:28px;align-items:stretch;}
.walk-cta--split .walk-cta-col{display:flex;flex-direction:column;}
.walk-cta--split .walk-cta-action{margin-top:auto;width:100%;}
.walk-cta-or{display:flex;flex-direction:column;align-items:center;gap:10px;color:#cfd8c8;font-size:12px;font-weight:600;letter-spacing:0.14em;text-transform:uppercase;}
.walk-cta-or::before,.walk-cta-or::after{content:'';flex:1;width:1px;background:rgba(243,239,230,0.25);}
@media(max-width:760px){
  .walk-cta{padding:28px 18px;}
  .walk-cta--split{grid-template-columns:1fr;gap:22px;}
  .walk-cta-or{flex-direction:row;}
  .walk-cta-or::before,.walk-cta-or::after{width:auto;height:1px;}
}
.article .lead{font-size:20px;line-height:1.55;color:var(--co-ink-soft);margin:0 0 30px;max-width:100%;}
.article .prose{font-size:19px;line-height:1.75;color:#2b2a24;max-width:100%;counter-reset:section;}
.article .prose h2{counter-increment:section;position:relative;font-weight:600;font-size:26px;letter-spacing:-0.02em;margin:48px 0 22px;padding-top:32px;border-top:1px solid var(--co-line-2);display:flex;align-items:center;gap:16px;}
.article .prose h2::before{content:counter(section, decimal-leading-zero);flex-shrink:0;position:relative;z-index:1;width:30px;height:30px;border-radius:50%;background:var(--co-green);color:#f3efe6;font-family:var(--font-head);font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;box-shadow:0 3px 8px rgba(38,37,32,0.22);}
.article .prose h2::after{content:'';position:absolute;left:9px;top:58px;width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-top:9px solid var(--co-green);}
.article .prose > h2:first-of-type{margin-top:0;padding-top:0;border-top:none;}
.article .prose > h2:first-of-type::after{top:26px;}
.article .prose h3{font-weight:600;font-size:21px;letter-spacing:-0.01em;color:var(--co-ink);line-height:1.35;margin:36px 0 14px;}
.article .prose h2 + h3,.article .prose > h3:first-child{margin-top:0;}
.article .prose p{margin:0 0 24px;}
/* Unscoped (not .article-only) since main.js wires the lightbox click handler
   to every .prose img on the site, including the About/Work-with-me/Contact
   pages' .prose blocks, not just the article templates. */
.prose img{max-width:100%;height:auto;border-radius:16px;display:block;margin:0 auto 24px;cursor:zoom-in;transition:opacity .15s;}
.prose img:hover{opacity:0.92;}
.prose figure{margin:0 0 24px;}
.prose figure img{margin-bottom:0;}

/* Click-to-enlarge overlay for photos inside the article body. */
.co-lightbox{position:fixed;inset:0;z-index:300;background:rgba(20,19,15,0.92);display:none;align-items:center;justify-content:center;padding:32px;}
.co-lightbox.open{display:flex;}
.co-lightbox img{max-width:100%;max-height:100%;border-radius:10px;box-shadow:0 24px 60px rgba(0,0,0,0.45);cursor:default;}
.co-lightbox-close{position:absolute;top:20px;right:22px;width:42px;height:42px;border-radius:50%;background:rgba(255,255,255,0.12);border:none;color:#fff;font-size:24px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;}
.co-lightbox-close:hover{background:rgba(255,255,255,0.22);}
@media (max-width:640px){
  .article .prose h2{font-size:22px;margin:38px 0 18px;padding-top:26px;gap:13px;}
  .article .prose h2::before{width:26px;height:26px;font-size:11px;}
  .article .prose h2::after{left:8px;top:49px;border-left-width:5px;border-right-width:5px;border-top-width:7px;}
  .article .prose > h2:first-of-type::after{top:23px;}
  .article .prose h3{font-size:19px;margin:28px 0 12px;}
}
.article figure{margin:0 0 28px;}
.article figure img,.article .figph{border-radius:20px;}
.article blockquote{border-left:3px solid var(--co-green-band);padding:4px 0 4px 22px;margin:0 0 30px;font-style:italic;font-size:24px;line-height:1.4;color:var(--co-ink-soft);}

/* ---------- Newsletter ---------- */
.newsletter-form{background:var(--co-card);border:1px solid var(--co-line);border-radius:22px;padding:28px;}
.newsletter-form input[type=email]{display:block;width:100%;background:var(--co-bg);border:1px solid var(--co-line-2);color:var(--co-ink);padding:14px 16px;border-radius:12px;font-size:16px;font-family:inherit;outline:none;margin:12px 0;}
.newsletter-form-compact{display:flex;gap:10px;flex-wrap:wrap;}
/* Consent line under the newsletter forms (co_newsletter_privacy_note) */
.nl-note{flex-basis:100%;margin:4px 0 0;font-size:13px;line-height:1.45;color:var(--co-muted);}
.nl-note a{color:inherit;text-decoration:underline;text-underline-offset:2px;}
.panel-green .nl-note{color:#cfd8c8;}
.newsletter-form .nl-note{margin-top:12px;}
.newsletter-form-compact input[type=email]{flex:1;min-width:200px;background:var(--co-green-mid);border:1px solid #7a9276;color:#f7f4ea;padding:13px 16px;border-radius:12px;font-size:15px;font-family:inherit;outline:none;}
.newsletter-form-compact input[type=email]::placeholder{color:#d9e0d0;}
.newsletter-thanks{background:var(--co-card);border:1px solid var(--co-line);border-radius:22px;padding:28px;font-weight:600;font-size:16px;color:var(--co-ink);margin:0;}
.panel-green .newsletter-thanks,.panel-band .newsletter-thanks{background:rgba(255,255,255,0.12);border-color:rgba(255,255,255,0.25);color:#f3efe6;padding:16px 18px;border-radius:14px;}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap;}

/* ---------- Map ---------- */
.map-wrap{position:relative;height:660px;border-radius:22px;border:1px solid var(--co-line);overflow:hidden;background:linear-gradient(135deg,#eaecd8 0%,#eef0e1 55%,#e7ecdf 100%);}
.map-list{max-height:600px;overflow-y:auto;padding-right:4px;}
.pin{position:absolute;transform:translate(-50%,-100%);}
.pin span{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50% 50% 50% 0;background:var(--co-green);transform:rotate(-45deg);box-shadow:0 4px 10px rgba(38,37,32,0.3);}
.pin span b{transform:rotate(45deg);color:#f3efe6;font-size:12px;font-weight:700;}

/* ---------- Footer ---------- */
.site-footer{background:var(--co-ink);color:#c9c3b3;border-radius:28px 28px 0 0;margin-top:20px;}
.site-footer .cols{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:40px;padding-top:60px;padding-bottom:36px;}
.site-footer .brand{color:#f3efe6;}
.site-footer .lbl{color:#726c5e;margin-bottom:16px;display:block;}
.site-footer a{color:#c9c3b3;}
.site-footer a:hover{color:var(--co-sand);}
.site-footer .fcol{display:flex;flex-direction:column;gap:11px;font-size:15px;font-weight:500;}
.site-footer .fkofi{display:inline-flex;align-items:center;gap:8px;color:var(--co-sand);margin-top:4px;white-space:nowrap;}
.site-footer .fkofi svg{width:16px;height:16px;flex-shrink:0;}
.site-footer .legal{border-top:1px solid #3a382f;}
.site-footer .legal .wrap{padding-top:20px;padding-bottom:20px;font-size:13px;color:#726c5e;}
.site-footer .legal a{color:inherit;text-decoration:underline;text-underline-offset:2px;}
.site-footer .legal a:hover{color:var(--co-sand);}
.site-footer .legal .co-cookie-settings{background:none;border:0;padding:0;margin:0;font:inherit;color:inherit;text-decoration:underline;text-underline-offset:2px;cursor:pointer;}
.site-footer .legal .co-cookie-settings:hover{color:var(--co-sand);}

/* ---------- Responsive ---------- */
@media(max-width:900px){
  .grid-3{grid-template-columns:1fr 1fr;}
  .grid-2{grid-template-columns:1fr;gap:32px;}
  .site-footer .cols{grid-template-columns:1fr 1fr;}
}
/* Sections using an inline grid-template-columns for a custom desktop ratio
   (About / Work with me / Contact intros, walk scorecard) — force single
   column on mobile since the inline style otherwise overrides .grid-2. */
@media(max-width:880px){
  .grid-collapse{grid-template-columns:1fr !important;}
}
@media(max-width:640px){
  .grid-3{grid-template-columns:1fr;}
  /* !important is deliberate here: dozens of templates set inline
     style="padding:...32px..." on .wrap sections for their vertical
     spacing, which (being inline) would otherwise always beat this
     class rule and keep the wide desktop side-padding on narrow phones
     — squeezing components like the walks search bar until they
     overflow the viewport edge. This is the one rule that has to win. */
  .wrap{padding-left:20px !important;padding-right:20px !important;}
}

/* ---------- Mobile bottom tab bar ---------- */
.bottom-nav{display:none;position:fixed;left:0;right:0;bottom:0;z-index:60;background:rgba(243,239,230,0.97);backdrop-filter:blur(10px);border-top:1px solid var(--co-line-2);justify-content:space-around;align-items:stretch;padding:6px 4px calc(6px + env(safe-area-inset-bottom));}
.bottom-nav .tab{flex:1;background:none;border:none;font-family:inherit;display:flex;flex-direction:column;align-items:center;gap:3px;padding:7px 2px;color:#8a8471;font-size:11px;font-weight:600;cursor:pointer;text-decoration:none;}
.bottom-nav .tab svg{width:22px;height:22px;}
.bottom-nav .tab.active{color:var(--co-green);}
.more-pop{display:none;position:fixed;left:12px;right:12px;bottom:76px;z-index:61;background:#fff;border:1px solid var(--co-line-2);border-radius:18px;box-shadow:0 16px 36px rgba(38,37,32,0.18);padding:8px;}
.more-pop.open{display:block;}
.more-pop a{display:block;padding:14px 16px;border-radius:12px;font-weight:600;font-size:15px;color:var(--co-ink);}
.more-pop a:hover{background:#efe8d8;}
.more-pop a.more-kofi{display:flex;align-items:center;gap:10px;color:var(--co-green);border-top:1px solid var(--co-line-2);border-radius:0 0 12px 12px;margin-top:4px;}
.more-pop a.more-kofi svg{width:18px;height:18px;flex-shrink:0;}
@media(max-width:900px){
  /* The bottom tab bar is the only nav on mobile now — the top "Charli
     Outdoors" header bar is redundant on top of it, so it's hidden
     entirely rather than just losing its (already-hidden) nav links. */
  .site-header{display:none;}
  .bottom-nav{display:flex;}
  body{padding-bottom:74px;}
  /* Complianz's floating "Manage consent" tab covers content on phones; hide it.
     The "Cookie settings" link in the footer does the same job. */
  #cmplz-manage-consent{display:none !important;}
  /* Map + Guides are already one tap away in the bottom tab bar, so the
     hero's secondary pills are redundant here — keep just the primary CTA. */
  .hero .hero-actions .btn-ghost{display:none;}
}

/* ---------- Accessibility: skip link + focus states ---------- */
.skip-link{position:absolute;top:-100px;left:12px;z-index:9999;background:var(--co-ink);color:var(--co-bg);padding:12px 18px;border-radius:10px;font-weight:600;font-size:14px;transition:top .15s;}
.skip-link:focus{top:12px;color:var(--co-bg);}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible,[tabindex]:focus-visible{
  outline:3px solid var(--co-sand-ink);outline-offset:2px;border-radius:6px;
}
.card:focus-within{border-color:var(--co-sand);}

/* ============================================================
   MAP PAGE
   ============================================================ */
.map-shell{max-width:var(--wrap);margin:0 auto;padding:0 32px 80px;}
.map-canvas{position:relative;height:clamp(340px,46vh,460px);border-radius:22px;border:1px solid var(--co-line);overflow:hidden;background:linear-gradient(135deg,#eaecd8 0%,#eef0e1 55%,#e7ecdf 100%);}
.map-canvas #co-map{position:absolute;inset:0;width:100%;height:100%;}
.map-canvas .leaflet-container{font-family:var(--font-body);background:transparent;}

/* Theme Leaflet's pin popup — by default it's a plain white box that clashes
   with the site's cream/green palette. */
.map-canvas .leaflet-popup-content-wrapper{background:var(--co-card);color:var(--co-ink);border:1px solid var(--co-line);border-radius:16px;box-shadow:0 12px 28px rgba(38,37,32,0.2);overflow:hidden;}
.map-canvas .leaflet-popup-content{margin:0 14px 11px;font-size:14px;line-height:1.5;color:var(--co-ink);min-width:186px;}
.map-canvas .leaflet-popup-tip{background:var(--co-card);box-shadow:none;border:1px solid var(--co-line);border-top:none;border-left:none;}
.map-canvas .leaflet-popup-close-button{color:var(--co-muted) !important;font-size:20px !important;font-weight:400 !important;padding:8px 10px 0 0 !important;}
.map-canvas .leaflet-popup-close-button:hover{color:var(--co-sand-ink) !important;}

/* Popup card — editorial layout: a full-width photo banner up top (Char
   wanted a bigger picture — 2026-07-22), then region kicker + title, a
   stats row (whatever's available: distance / time / rating / dogs)
   sandwiched between two hairlines, then a single text CTA. Kept compact
   (wider photo crop, two-line title) so the whole card fits on the map. */
.map-canvas .wp-photo{aspect-ratio:2/1;background-size:cover;background-position:center;background-color:#e4e7cf;margin:0 -14px 10px;border-radius:16px 16px 0 0;}
.map-canvas .wp-photo.no-photo{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='7' cy='7' r='2.3' fill='%23fff' fill-opacity='.6'/%3E%3Cpath d='M1 19l6.5-9 5 6.5L15.5 12l6.5 7z' fill='%23fff' fill-opacity='.6'/%3E%3C/svg%3E"),repeating-linear-gradient(46deg,#dbe0c2,#dbe0c2 9px,#e4e7cf 9px,#e4e7cf 18px);background-repeat:no-repeat,repeat;background-position:center,top left;background-size:30px 30px,auto;}
.map-canvas .wp-kicker{font-size:9.5px;font-weight:600;letter-spacing:0.09em;text-transform:uppercase;color:var(--co-rose);margin-bottom:3px;}
.map-canvas .wp-title{font-family:var(--font-head);font-weight:700;font-size:14.5px;color:var(--co-ink);line-height:1.2;margin-bottom:2px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.map-canvas .wp-stats{display:flex;justify-content:space-between;gap:8px;padding:7px 0;border-top:1px solid var(--co-line);border-bottom:1px solid var(--co-line);margin:8px 0;}
.map-canvas .wp-stats b{font-family:var(--font-head);font-weight:700;font-size:12.5px;color:var(--co-ink);display:block;white-space:nowrap;}
.map-canvas .wp-stats span{font-size:9px;color:#8a8471;}
.map-canvas .wp-cta{display:inline-block;margin-top:1px;font-weight:700;font-size:13px;color:var(--co-green);}
.map-empty-note{position:absolute;top:14px;left:14px;z-index:1000;font-size:10px;color:#6b6a4d;background:var(--co-bg);padding:6px 12px;border-radius:999px;}

/* Theme Leaflet's zoom +/- control — by default it's a plain white square,
   the one element on the map that still looked completely unstyled. */
.map-canvas .leaflet-control-zoom{border:none;box-shadow:0 4px 12px rgba(38,37,32,0.18);border-radius:12px;overflow:hidden;}
.map-canvas .leaflet-control-zoom a{background:var(--co-card);color:var(--co-ink);width:32px;height:32px;line-height:32px;font-size:18px;font-weight:700;border-bottom:1px solid var(--co-line) !important;}
.map-canvas .leaflet-control-zoom a:last-child{border-bottom:none !important;}
.map-canvas .leaflet-control-zoom a:hover{background:var(--co-sand);color:var(--co-ink);}

.co-pin{display:block;width:32px;height:32px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);box-shadow:0 4px 10px rgba(38,37,32,0.3);border:2px solid rgba(255,255,255,0.85);}
.co-pin.gold{width:38px;height:38px;box-shadow:0 5px 12px rgba(38,37,32,0.35);}
.co-pin-you{display:block;width:16px;height:16px;border-radius:50%;background:#2b6cb0;border:3px solid #fff;box-shadow:0 2px 8px rgba(0,0,0,0.4);}

.map-nearme{position:absolute;bottom:14px;left:14px;z-index:1000;display:flex;align-items:center;gap:7px;background:var(--co-ink);color:var(--co-bg);font-size:13px;font-weight:600;padding:10px 16px;border-radius:999px;box-shadow:0 4px 12px rgba(38,37,32,0.2);border:none;cursor:pointer;font-family:inherit;}
.map-nearme:hover{background:var(--co-green);color:#fff;}
.map-nearme.active{background:var(--co-green);color:#fff;}
.map-nearme-panel{position:absolute;bottom:14px;left:150px;right:14px;z-index:1000;display:flex;align-items:center;gap:12px;background:rgba(243,239,230,0.96);border-radius:999px;padding:9px 18px;box-shadow:0 4px 12px rgba(38,37,32,0.15);font-size:12.5px;font-weight:600;color:#45443e;max-width:280px;}
.map-nearme-panel[hidden]{display:none;}
.map-nearme-panel input[type=range]{flex:1;accent-color:var(--co-green);}
.co-cluster{display:flex;align-items:center;justify-content:center;border-radius:50%;background:var(--co-green);color:#f3efe6;font-weight:700;font-size:13px;box-shadow:0 3px 10px rgba(38,37,32,0.3);border:3px solid rgba(255,255,255,0.85);}

.co-guide-pin{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50% 50% 50% 0;background:var(--co-green);transform:rotate(-45deg);box-shadow:0 4px 10px rgba(38,37,32,0.3);border:2px solid rgba(255,255,255,0.85);}
.co-guide-pin-n{transform:rotate(45deg);color:#f3efe6;font-weight:700;font-size:12px;font-family:var(--font-head);}

.map-key{position:absolute;top:14px;right:14px;z-index:1000;background:rgba(243,239,230,0.96);border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;gap:8px;box-shadow:0 4px 14px rgba(38,37,32,0.12);}
/* While a walk's card is open the key steps aside (on phones it covered the card), and
   touches on the card can't zoom the page. */
.map-key{transition:opacity .2s;}
.map-canvas.has-card .map-key{opacity:0;pointer-events:none;}
.map-canvas .leaflet-popup{touch-action:none;}
.map-key .heading{font-size:9.5px;color:#8a8471;letter-spacing:0.12em;}
.map-key .row{display:flex;align-items:center;gap:9px;font-size:12.5px;font-weight:700;color:#2b2a24;}
.map-key .dot{width:14px;height:14px;border-radius:50%;flex-shrink:0;border:2px solid rgba(255,255,255,0.9);box-shadow:0 1px 4px rgba(38,37,32,0.25);}

.map-sheet{margin-top:22px;}
.sheet-handle{display:none;}
.sheet-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px;}
.sheet-stats .box{background:var(--co-card);border:1px solid var(--co-line);border-radius:16px;padding:18px 16px;}
.sheet-stats .box b{font-family:var(--font-head);font-size:28px;font-weight:700;display:block;}
.sheet-stats .box.done{background:var(--co-green);color:#f1ede2;}
.sheet-stats .box.done b{font-size:19px;}
.sheet-stats .box .lbl{font-size:10px;color:#8a8471;margin-top:2px;}
.sheet-stats .box.done .lbl{color:#cfd8c8;}

.sheet-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px;}
.sheet-chips button{background:var(--co-card);border:1px solid var(--co-line-2);padding:8px 14px;border-radius:999px;font-size:13px;font-weight:500;color:var(--co-ink);cursor:pointer;font-family:inherit;}
.sheet-chips button.active{background:var(--co-green);color:#f3efe6;border-color:var(--co-green);}

.map-region{border-top:1px solid var(--co-line-2);}
.map-region summary{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:18px 4px;cursor:pointer;list-style:none;}
.map-region summary::-webkit-details-marker{display:none;}
.map-region summary::marker{content:'';}
.map-region .name{display:flex;align-items:center;gap:12px;}
.map-region .name b{font-family:var(--font-head);font-weight:600;font-size:22px;letter-spacing:-0.015em;}
.map-region .chev{width:30px;height:30px;border-radius:50%;background:var(--co-cream-2);color:var(--co-green);display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:transform .2s;}
.map-region[open] > summary .chev{transform:rotate(180deg);}
.region-walks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:start;padding:2px 0 22px;}
@media(max-width:1100px){ .region-walks{grid-template-columns:repeat(3,minmax(0,1fr));} }
@media(max-width:880px){ .region-walks{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;} }

.map-walk-card{background:var(--co-card);border:1px solid var(--co-line);border-radius:16px;overflow:hidden;}
.map-walk-card summary{display:block;position:relative;cursor:pointer;list-style:none;padding:8px 8px 0;}
.map-walk-card summary::-webkit-details-marker{display:none;}
.map-walk-card summary::marker{content:'';}
.map-walk-card .thumb{display:block;position:relative;width:100%;aspect-ratio:4/3;border-radius:11px;background-size:cover;background-position:center;background-color:#e4e7cf;}
.map-walk-card .rate-badge{position:absolute;top:10px;left:10px;background:var(--co-card);color:var(--co-green);font-size:12px;font-weight:700;padding:4px 10px;border-radius:999px;box-shadow:0 2px 8px rgba(38,37,32,0.18);}
/* Title is held to exactly two lines (clamped, with the space reserved even
   for one-line titles) so every closed card in a row is the same height. */
.map-walk-card .info{display:block;padding:11px 46px 13px 5px;}
.map-walk-card .info .title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:calc(2 * 1.18em);font-family:var(--font-head);font-weight:600;font-size:16px;line-height:1.18;color:var(--co-ink);}
.map-walk-card .info .meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.map-walk-card .info .meta{display:block;font-size:10px;color:#8a8471;margin-top:4px;}
/* No-photo state: a soft, low-contrast texture plus a small watermark icon so it
   reads as "photo coming soon" rather than a broken/loading state — important
   here since several of these can appear stacked in the walk list at once. */
.map-walk-card .thumb.no-photo{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='7' cy='7' r='2.3' fill='%23fff' fill-opacity='.6'/%3E%3Cpath d='M1 19l6.5-9 5 6.5L15.5 12l6.5 7z' fill='%23fff' fill-opacity='.6'/%3E%3C/svg%3E"),repeating-linear-gradient(46deg,#dbe0c2,#dbe0c2 9px,#e4e7cf 9px,#e4e7cf 18px);background-repeat:no-repeat,repeat;background-position:center,top left;background-size:20px 20px,auto;}
.map-walk-card .chev{position:absolute;right:11px;bottom:12px;width:28px;height:28px;border-radius:50%;background:var(--co-cream-2);color:var(--co-green);display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:transform .2s;}
.map-walk-card[open] .chev{transform:rotate(180deg);}
.map-walk-card .detail{padding:0 13px 13px;}
.map-walk-card .detail p{font-size:14px !important;line-height:1.5 !important;margin:0 0 12px !important;}
.map-walk-card .mini-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(72px,1fr));gap:6px;margin-bottom:12px;}
.map-walk-card .mini-stats div{background:var(--co-bg);border-radius:10px;padding:9px 6px;text-align:center;}
.map-walk-card .mini-stats b{font-family:var(--font-head);font-weight:700;font-size:14px;display:block;}
.map-walk-card .foot{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;font-weight:600;font-size:14px;}
.map-walk-card .foot a{margin-left:auto;}
.map-show{background:none;border:1px solid var(--co-line-2);border-radius:999px;padding:6px 12px;font:inherit;font-size:13px;font-weight:600;color:var(--co-green);cursor:pointer;}
.map-show:hover{background:var(--co-cream-2);}
.map-walk-card .rate{background:var(--co-chip);color:var(--co-green);font-size:13px;font-weight:700;padding:6px 12px;border-radius:999px;}

/* Mobile: map on top, the walk list underneath in the normal page scroll.
   (This used to be a fixed full-screen map with a pull-up sheet, but on iPhones
   the home bar and Safari's toolbar pushed the sheet behind the tab bar.) */
@media(max-width:880px){
  .map-intro{padding:28px 20px 16px !important;}
  .map-intro p{font-size:16px !important;}
  .map-shell{padding:0 0 32px;}
  /* Short enough that the top of the list peeks out above the tab bar. */
  .map-shell .map-canvas{height:46vh;height:46svh;min-height:340px;max-height:460px;border-radius:0;border-left:0;border-right:0;}
  /* Shorter photo in the map pop-up so the whole card fits on a phone-sized map. */
  .map-canvas .wp-photo{aspect-ratio:5/2;}
  .map-sheet{margin-top:0;padding:16px 20px 0;}

  /* Stats: one slim row of three (the "Based" tile is dropped on phones). */
  .sheet-stats{grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:14px;}
  .sheet-stats .box{padding:10px 8px;border-radius:12px;text-align:center;}
  .sheet-stats .box:nth-child(3){display:none;}
  .sheet-stats .box b,.sheet-stats .box.done b{font-size:18px !important;}
  .sheet-stats .box .lbl{font-size:9px;}

  /* Filters: a single row you swipe sideways, instead of wrapping into a wall of buttons. */
  .sheet-chips{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;margin:0 -20px 10px;padding:0 20px 4px;gap:6px;}
  .sheet-chips::-webkit-scrollbar{display:none;}
  .sheet-chips button{flex-shrink:0;padding:7px 13px;font-size:13px;}

  .map-region summary{padding:14px 2px;}
  .map-region .name{gap:8px;}
  .map-region .name b{font-size:18px;}
  .map-region .chev{width:26px;height:26px;}

  /* Walks: a compact list — small photo, name, distance — that opens up when tapped. */
  .region-walks{grid-template-columns:1fr;gap:8px;padding:0 0 18px;}
  .map-walk-card{border-radius:14px;}
  .map-walk-card summary{display:flex;align-items:center;gap:12px;padding:8px 46px 8px 8px;}
  .map-walk-card .thumb{flex:0 0 76px;width:76px;aspect-ratio:1;border-radius:10px;}
  .map-walk-card .rate-badge{top:auto;bottom:4px;left:4px;font-size:10px;padding:2px 6px;}
  .map-walk-card .info{flex:1;min-width:0;padding:0;}
  .map-walk-card .info .title{min-height:0;font-size:15.5px;}
  .map-walk-card .info .meta{font-size:10.5px;}
  .map-walk-card .chev{bottom:auto;top:50%;right:10px;width:26px;height:26px;transform:translateY(-50%);}
  /* Flip the arrow itself, so its centring transform stays untouched. */
  .map-walk-card[open] .chev{transform:translateY(-50%);}
  .map-walk-card .chev svg{transition:transform .2s;}
  .map-walk-card[open] .chev svg{transform:rotate(180deg);}
  .map-walk-card .detail{padding:4px 12px 12px;}
}

/* ============================================================
   WALKS ARCHIVE — mobile filter panel
   ============================================================ */
.filter-toggle{display:none;}
@media(max-width:640px){
  .filter-toggle{display:flex !important;width:100%;align-items:center;justify-content:center;gap:12px;background:var(--co-card);border:1px solid var(--co-line-2);border-radius:999px;padding:13px 18px;font-size:14px;font-weight:600;font-family:inherit;color:var(--co-ink);cursor:pointer;margin-bottom:18px;}
  .filter-panel{display:none;padding:18px 20px;}
  .filter-panel.open{display:block;}
  .filter-panel .filter-group + .filter-group{margin-top:16px;}
  .search-row{flex-wrap:wrap;}
  /* Let the search bar shrink to fit instead of holding a fixed 260px
     minimum, which was tight enough to overflow the smallest phone
     widths even after the .wrap padding fix above. */
  .searchbar{min-width:0;flex-basis:100%;}
  .near-me-btn{flex:1;justify-content:center;}
}
.filter-group .lbl{font-size:10px;color:#8a8471;margin-bottom:8px;display:block;}

/* Region/Distance/Route type/Dog friendly dropdowns — a custom button+menu
   widget rather than a native <select>. Safari/macOS ignores CSS styling on
   a native select's open popup list, so a real <select> can't be themed to
   match the site; this button/list pair can be, in every browser. Built as
   plain <button>s (not <select>/<option>) so all four filter-group boxes
   share one identical box model — no more of the native control's per-
   browser sizing quirks that could throw off alignment between groups. */
.fselect{position:relative;}
.fselect-btn{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;background-color:var(--co-card);border:1px solid var(--co-line-2);border-radius:999px;padding:11px 16px;font-family:inherit;font-size:14px;font-weight:500;color:var(--co-ink);cursor:pointer;text-align:left;}
.fselect-btn:hover{border-color:var(--co-sand);}
.fselect-btn:focus{outline:2px solid var(--co-green);outline-offset:1px;}
.fselect-btn[aria-expanded="true"]{border-color:var(--co-green);}
.fselect-chev{display:flex;flex-shrink:0;color:#567355;transition:transform .18s ease;}
.fselect-chev svg{width:14px;height:14px;}
.fselect-btn[aria-expanded="true"] .fselect-chev{transform:rotate(180deg);}
.fselect-menu{position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:45;background:var(--co-card);border:1px solid var(--co-line-2);border-radius:16px;box-shadow:0 14px 30px rgba(38,37,32,0.18);padding:6px;max-height:280px;overflow-y:auto;display:none;}
.fselect-menu.open{display:block;}
.fselect-opt{display:block;width:100%;text-align:left;background:none;border:none;padding:10px 12px;border-radius:10px;font-family:inherit;font-size:14px;color:var(--co-ink);cursor:pointer;}
.fselect-opt:hover{background:var(--co-bg);}
.fselect-opt.active{background:var(--co-green);color:#f3efe6;font-weight:600;}

/* ============================================================
   ABOUT / WORK / CONTACT
   ============================================================ */
.about-hero{position:sticky;top:32px;}
.social-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px;}
.social-row a{border:1px solid #cfc8b6;padding:9px 16px;border-radius:999px;font-size:14px;font-weight:500;color:#45443e;}
.social-row a:hover{border-color:var(--co-sand);color:var(--co-sand-ink);}
.about-block{border-top:1px solid var(--co-line-2);padding:26px 0;}
.about-block p{font-size:19px;line-height:1.65;color:#2b2a24;margin:0;}
.reach-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;}
.reach-grid .box{background:var(--co-card);border:1px solid var(--co-line);border-radius:16px;padding:18px;}
.reach-grid .box b{font-family:var(--font-head);font-size:28px;font-weight:700;display:block;}
.reach-grid .box .lbl{font-size:10px;color:#8a8471;margin-top:4px;display:block;}
/* Work with me — services as a numbered list (two columns on desktop). */
.services-list{list-style:none;margin:0;padding:8px 30px;background:var(--co-card);border:1px solid var(--co-line);border-radius:22px;display:grid;grid-template-columns:1fr 1fr;column-gap:48px;}
.services-list li{display:flex;gap:18px;align-items:flex-start;padding:22px 0;border-top:1px solid var(--co-line);}
.services-list li:nth-child(-n+2){border-top:none;}
.services-list .n{flex-shrink:0;width:34px;font-family:var(--font-head);font-size:20px;font-weight:700;color:var(--co-sand);line-height:1.2;}
.services-list h3{font-weight:600;font-size:19px;letter-spacing:-0.01em;margin:0 0 6px;}
.services-list p{font-size:15px;line-height:1.55;color:var(--co-muted);margin:0;}
/* Work with me — brand logos box. Logos are fitted into equal tiles so
   different shapes/sizes of logo file still line up neatly. */
.brands-box{background:var(--co-card);border:1px solid var(--co-line);border-radius:22px;padding:28px 30px 30px;}
.brands-box .lbl{display:block;margin-bottom:18px;}
.brands-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px;}
.brand-logo{display:flex;align-items:center;justify-content:center;height:96px;padding:16px 18px;background:#fff;border:1px solid var(--co-line);border-radius:14px;transition:border-color .18s;}
a.brand-logo:hover{border-color:var(--co-sand);}
.brand-logo img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;}
.cta-band{background:var(--co-green);border-radius:28px;padding:60px 32px;text-align:center;color:#f1ede2;}
.contact-form{background:var(--co-card);border:1px solid var(--co-line);border-radius:22px;padding:32px;}
.contact-form h2{font-weight:600;font-size:24px;margin:0 0 4px;}
.contact-form p.hint{font-size:14.5px;color:var(--co-muted);margin:0 0 24px;}
.contact-form .field{background:var(--co-bg);border:1px solid var(--co-line-2);color:var(--co-ink);padding:13px 16px;border-radius:12px;font-size:15px;font-family:inherit;outline:none;width:100%;margin-bottom:14px;display:block;}
@media(max-width:880px){
  .about-hero{position:static;top:auto;}
  .services-list{grid-template-columns:1fr;padding:4px 22px;}
  .services-list li:nth-child(2){border-top:1px solid var(--co-line);}
  .reach-grid{grid-template-columns:1fr 1fr;}
}
@media(max-width:640px){
  .brands-box{padding:22px 20px 22px;}
  .brands-grid{grid-template-columns:repeat(2,1fr);gap:10px;}
  .brand-logo{height:80px;padding:12px 14px;}
}


/* ============================================================
   PHONE TYPE SCALE (2026-11-10)
   Brings text on phones down to about the size Roaming With Us uses
   (body ~16px, section headings ~22px). Desktop is untouched.
   Kept last so it wins. Some sizes are inline styles in the
   templates, so those are matched by their style attribute and
   need !important to override.
   ============================================================ */
@media(max-width:640px){
  :root{--co-h1:clamp(26px,7.4vw,30px);--co-h1-article:clamp(25px,7vw,28px);}

  /* Article body: walks, guides, kit */
  .article .prose{font-size:16.5px;line-height:1.7;}
  .article .prose p{margin-bottom:20px;}
  .article .prose h2{font-size:21px;}
  .article .prose h3{font-size:18px;}
  .article blockquote{font-size:19px;}

  /* Section headings */
  .section h2.title,.panel-band h2.title,.panel-green h2.title{font-size:23px;}
  .walk-kit-head h2,.walk-related-title{font-size:22px;}
  .walk-cta h3,.contact-form h2{font-size:20px;}
  .walk-kit-sub{font-size:17px;}
  .walk-kit-intro{font-size:15.5px;}

  /* Cards and lists */
  .card h3,.card-compact h3,.card-tight h3{font-size:16px;}
  .kit-row-name{font-size:16px;}
  .services-list h3{font-size:17px;}
  .about-block p{font-size:16px;}

  /* Inline sizes in the templates (intro paragraphs, card titles, CTA headings) */
  main [style*="font-size:17px"],
  main [style*="font-size:17.5px"],
  main [style*="font-size:18px"],
  main [style*="font-size:19px"]{font-size:16px !important;}
  main [style*="font-size:20px"],
  main [style*="font-size:22px"],
  main [style*="font-size:23px"]{font-size:18px !important;}
  main [style*="font-size:24px"],
  main [style*="font-size:26px"]{font-size:21px !important;}
}

/* ============================================================
   PHONE SPACING (2026-11-10)
   Halves the gaps between sections on phones, to about what
   Roaming With Us uses (around 80px from one section to the
   next, where it was around 150px). Desktop is untouched.
   Many templates set vertical padding inline on their .wrap
   sections, so those are matched by their style attribute and
   need !important to override.
   ============================================================ */
@media(max-width:640px){
  .section{padding:40px 0;}
  .section-head,
  .section-head[style*="margin-bottom:28px"]{margin-bottom:20px !important;}
  .section .lbl{margin-bottom:8px;}

  /* Page intros and banded panels (inline "padding:64px 32px …" etc.) */
  main [style*="padding:64px 32px"],
  main [style*="padding:72px 32px"],
  main [style*="padding:96px 32px"]{padding-top:36px !important;}
  main [style*="padding:64px 32px;"],
  main [style*="padding:72px 32px;"]{padding-bottom:36px !important;}
  main [style*="32px 120px"],
  main [style*="32px 80px"],
  main [style*="32px 72px"]{padding-bottom:48px !important;}
  main [style*="32px 56px"],
  main [style*="32px 48px"],
  main [style*="32px 44px"]{padding-bottom:32px !important;}
  main [style*="margin-top:80px"]{margin-top:40px !important;}
  main [style*="margin-bottom:48px"]{margin-bottom:32px !important;}
  main [style*="margin-top:40px"]{margin-top:28px !important;}
  main [style*="margin-bottom:40px"]{margin-bottom:28px !important;}

  /* Walks, guides, kit */
  .article{padding-top:28px;padding-bottom:48px;}
  .article .lead{font-size:17px;margin-bottom:22px;}
  .article figure{margin-bottom:20px;}
  .walk-related{padding-top:26px;margin-bottom:36px;}

  /* Call-to-action band and footer */
  .cta-band{padding:40px 22px;}
  .site-footer .cols{padding-top:40px;gap:28px;}
}

/* =========================================================
   KO-FI (2026-11-10): homepage strip under the scorecard,
   kit page line. The end-of-post panels reuse .walk-cta.
   ========================================================= */
.kofi-strip{display:flex;align-items:center;gap:20px;margin-top:40px;background:var(--co-card);border:1px solid var(--co-line);border-radius:22px;padding:22px 26px;}
.kofi-strip-icon{flex-shrink:0;width:48px;height:48px;border-radius:50%;background:var(--co-chip);color:var(--co-green);display:flex;align-items:center;justify-content:center;}
.kofi-strip-icon svg{width:24px;height:24px;}
.kofi-strip p{flex:1;margin:0;font-size:16px;line-height:1.55;color:var(--co-ink-soft);}
.kofi-strip p strong{color:var(--co-ink);font-weight:600;}
.kofi-strip .btn{flex-shrink:0;}
.kit-kofi{font-size:14px;color:var(--co-ink-soft);line-height:1.6;max-width:70ch;margin-top:-4px;}
.kit-kofi a{font-weight:600;}
@media(max-width:640px){
  .kofi-strip{flex-wrap:wrap;gap:14px 16px;margin-top:24px;padding:20px;}
  .kofi-strip p{flex:1 1 calc(100% - 64px);font-size:15px;}
  .kofi-strip .btn{width:100%;text-align:center;}
}

/* End-of-post panel (walks, guides, kit posts) when it's split newsletter | or | Ko-fi:
   line the two halves up row by row (heading, text, button) instead of pushing the
   Ko-fi button to the bottom. Older browsers without subgrid keep the old layout. */
@supports (grid-template-rows:subgrid){
  @media(min-width:761px){
    .walk-cta--split{grid-template-rows:auto auto auto;row-gap:0;}
    .walk-cta--split > .walk-cta-col{display:grid;grid-template-rows:subgrid;}
    .walk-cta--split > .walk-cta-col:first-child{grid-column:1;grid-row:1 / span 3;}
    .walk-cta--split > .walk-cta-or{grid-column:2;grid-row:1 / span 3;}
    .walk-cta--split > .walk-cta-col:last-child{grid-column:3;grid-row:1 / span 3;}
    .walk-cta--split .walk-cta-action{margin-top:0;align-self:start;}
  }
}

/* End-of-post panel on phones: use the full article width, full-width buttons
   so both halves read the same, and tighter text. */
@media(max-width:760px){
  .article .walk-cta{margin-left:0;margin-right:0;border-radius:22px;}
  .walk-cta{padding:26px 20px;}
  .walk-cta p{font-size:15px;line-height:1.5;margin-bottom:16px;}
  .walk-cta--split{gap:18px;}
  .walk-cta .newsletter-form-compact input[type=email]{min-width:0;flex-basis:100%;}
  .walk-cta .newsletter-form-compact .btn,
  .walk-cta-action > .btn{width:100%;text-align:center;}
  .walk-cta .nl-note{font-size:12.5px;text-align:center;}
}

/* Ko-fi card on About and Contact: text beside the cup, button underneath. */
.kofi-strip--stack{flex-wrap:wrap;align-items:flex-start;row-gap:16px;}
.kofi-strip--stack p{flex:1 1 calc(100% - 68px);}
.kofi-strip--stack .btn{margin-left:68px;}
@media(max-width:640px){
  .kofi-strip--stack .btn{margin-left:0;}
}

/* ============================================================
   HOMEPAGE PINS (2026-11-10)
   A walk / guide with "Pin to homepage" on goes first in its row.
   ============================================================ */
.card.card-pinned{border:2px solid var(--co-sand);box-shadow:0 0 0 4px rgba(205,180,136,0.22);}
.badge-pinned{position:absolute;left:12px;bottom:12px;display:inline-flex;align-items:center;gap:6px;background:var(--co-sand);color:var(--co-ink);font-size:12.5px;font-weight:700;letter-spacing:.02em;padding:6px 12px 6px 10px;border-radius:999px;box-shadow:0 2px 8px rgba(38,37,32,0.18);}
.badge-pinned svg{width:14px;height:14px;flex-shrink:0;}
@media(max-width:640px){ .badge-pinned{font-size:11.5px;padding:5px 10px 5px 8px;} }
