/*
 * BVNEMBA Trail Guide Stylesheet
 * ─────────────────────────────────────────────────────────────
 * File: wp-content/themes/go-child/assets/css/trail-guide.css
 *
 * All selectors are prefixed with .tg- (trail guide) or bvn-
 * to avoid conflicts with the Go theme or Gutenberg blocks.
 *
 * Enqueue via functions.php — see instructions in page-trail-guide.php.
 * Do NOT paste this into Appearance > Additional CSS; it's too large.
 * Additional CSS has a 20,000 character cap and is not cached.
 *
 * WCAG AA COMPLIANCE NOTES
 * ─────────────────────────────────────────────────────────────
 * --bvn-text-body  (#3A3530): 12.1:1 on white — AAA
 * --bvn-text-muted (#5C5550):  7.3:1 on white — AA+
 *                               6.6:1 on cream — AA
 *                               6.0:1 on lgray — AA
 * --bvn-ember      (#E97132):  only used for decorative rules,
 *                               borders, and icons — never for body text
 * --bvn-ember-dim  (#C4561A):  4.0:1 on cream — AA large/bold only
 * White on --bvn-slate-deep:  13.8:1 — AAA
 * Slate-deep on --bvn-ember:  13.0:1 — AAA (conditions bar)
 * ─────────────────────────────────────────────────────────────
 */

/* ── Brand tokens ────────────────────────────────────────── */
:root {
  --bvn-ember:       #E97132;
  --bvn-ember-dim:   #C4561A;
  --bvn-slate:       #38434E;
  --bvn-slate-deep:  #252E37;
  --bvn-forest:      #184045;
  --bvn-cream:       #F6F2EF;
  --bvn-lgray:       #E8E1DE;
  --bvn-bgblue:      #EAF0F6;
  --bvn-white:       #FFFFFF;
  --bvn-text-body:   #3A3530;
  --bvn-text-muted:  #5C5550;
  --bvn-rule:        #D8D0CA;
  --bvn-diff-green:  #2D6A4F;
  --bvn-diff-blue:   #1D52C4;
  --bvn-diff-black:  #1A1A1A;
  --bvn-diff-pro:    #5B21B6;
}

/* ── Wrap — resets Go theme interference ─────────────────── */
.tg-wrap {
  font-family: 'Karla', sans-serif;
  color: var(--bvn-text-body);
  line-height: 1.75;
  font-size: 16px;
  /* Break out of Go theme's entry-content max-width and padding */
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.tg-wrap *,
.tg-wrap *::before,
.tg-wrap *::after {
  box-sizing: border-box;
}

/* ── Skip link ───────────────────────────────────────────── */
.tg-skip-link {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.tg-skip-link:focus {
  position: fixed; top: 0; left: 0;
  width: auto; height: auto;
  padding: 12px 20px;
  background: var(--bvn-ember);
  color: var(--bvn-white);
  font-family: 'Work Sans', sans-serif;
  font-weight: 700; font-size: 14px;
  z-index: 9999; text-decoration: none;
}

/* ── Container ───────────────────────────────────────────── */
.tg-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Shared typography ───────────────────────────────────── */
.tg-section-label {
  font-family: 'Work Sans', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--bvn-ember);
  display: block; margin-bottom: 10px;
}
.tg-section-title {
  font-family: 'Work Sans', sans-serif;
  font-weight: 800; font-size: 32px;
  color: var(--bvn-slate-deep);
  letter-spacing: -0.5px; margin-bottom: 6px;
}
.tg-ember-rule {
  width: 40px; height: 3px;
  background: var(--bvn-ember);
  margin: 16px 0 28px;
}
.tg-body-link {
  color: var(--bvn-slate-deep);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--bvn-ember);
  text-underline-offset: 3px;
}
.tg-body-link:hover,
.tg-body-link:focus { color: var(--bvn-ember-dim); }

/* ── Hero ────────────────────────────────────────────────── */
.tg-hero {
  background: var(--bvn-slate-deep);
  position: relative; overflow: hidden;
  min-height: 480px;
  display: flex; align-items: flex-end;
  width: 100%;
}

/* CSS-only hero — gradient + topo grid */
.tg-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 70% 40%, rgba(233,113,50,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(45,106,79,0.15) 0%, transparent 50%),
    linear-gradient(160deg, #1a2028 0%, #252E37 50%, #1c2830 100%);
}
.tg-hero-topo {
  position: absolute; inset: 0; opacity: 0.06;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 28px, rgba(255,255,255,0.8) 28px, rgba(255,255,255,0.8) 29px),
    repeating-linear-gradient(90deg, transparent, transparent 48px, rgba(255,255,255,0.4) 48px, rgba(255,255,255,0.4) 49px);
}

/* Photo hero — real image as background */
.tg-hero--photo {
  min-height: 560px;
}
.tg-hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
/* Dark overlay — ember-tinted at bottom for text legibility */
.tg-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 26, 32, 0.45) 0%,
    rgba(20, 26, 32, 0.65) 60%,
    rgba(20, 26, 32, 0.85) 100%
  );
}
/* CSS hero has no overlay div — the bg gradient serves that purpose */
.tg-hero:not(.tg-hero--photo) .tg-hero-overlay {
  display: none;
}

.tg-hero-inner {
  position: relative; z-index: 2;
  padding: 60px 40px 64px;
  max-width: 860px;
  width: 100%;
}
.tg-hero-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Work Sans', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--bvn-ember); margin-bottom: 20px;
}
.tg-hero-label::before {
  content: ''; display: block;
  width: 28px; height: 2px;
  background: var(--bvn-ember);
}
.tg-hero h1,
.tg-hero-inner h1 {
  font-family: 'Work Sans', sans-serif;
  font-weight: 900;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1; color: var(--bvn-white);
  letter-spacing: -1.5px; margin-bottom: 8px;
}
.tg-hero h1 span,
.tg-hero-inner h1 span { color: var(--bvn-ember); }
.tg-hero-sub {
  font-size: 18px; color: rgba(255,255,255,0.7); margin-bottom: 36px;
}
.tg-hero-stats {
  display: flex; gap: 32px; flex-wrap: wrap;
  margin-top: 8px;
}
.tg-hero-stat { display: flex; flex-direction: column; gap: 2px; }
.tg-hero-stat-num {
  font-family: 'Work Sans', sans-serif;
  font-size: 28px; font-weight: 800;
  color: var(--bvn-white); line-height: 1;
}
.tg-hero-stat-label {
  font-family: 'Work Sans', sans-serif;
  font-size: 11px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.tg-hero-divider {
  width: 1px; height: 40px;
  background: rgba(255,255,255,0.2);
  align-self: center;
}

/* ── Conditions bar ──────────────────────────────────────── */
.tg-conditions-bar {
  background: var(--bvn-ember);
  padding: 14px 40px;
  display: flex; align-items: center; gap: 12px;
  width: 100%;
}
.tg-conditions-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #1a6632; flex-shrink: 0;
}
.tg-conditions-label {
  font-family: 'Work Sans', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--bvn-slate-deep);
}
.tg-conditions-status {
  font-family: 'Work Sans', sans-serif;
  font-size: 14px; font-weight: 800;
  color: var(--bvn-slate-deep);
}
.tg-conditions-link {
  margin-left: auto;
  font-family: 'Work Sans', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--bvn-slate-deep);
  text-decoration: none;
  border: 1.5px solid var(--bvn-slate-deep);
  padding: 5px 14px; border-radius: 3px;
  transition: background 0.2s;
}
.tg-conditions-link:hover,
.tg-conditions-link:focus { background: rgba(0,0,0,0.1); }

/* ── Intro section ───────────────────────────────────────── */
.tg-intro-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px; align-items: start;
  padding: 64px 0;
}
.tg-intro-body p {
  font-size: 17px; line-height: 1.8;
  color: var(--bvn-text-body); margin-bottom: 18px;
}
.tg-intro-body h3 {
  font-family: 'Work Sans', sans-serif;
  font-weight: 700; font-size: 18px;
  color: var(--bvn-slate-deep); margin: 32px 0 10px;
}
.tg-spine-callout {
  background: var(--bvn-lgray);
  border-left: 4px solid var(--bvn-ember);
  padding: 20px 24px;
  border-radius: 0 4px 4px 0;
  margin: 24px 0;
}
.tg-spine-callout p {
  font-size: 15px; color: var(--bvn-text-body);
  line-height: 1.7; margin: 0;
}
.tg-spine-callout strong { color: var(--bvn-slate-deep); }

/* ── Sidebar ─────────────────────────────────────────────── */
.tg-sidebar {
  background: var(--bvn-slate-deep);
  border-radius: 4px; overflow: hidden;
  position: sticky; top: 80px;
}
.tg-sidebar-head {
  background: var(--bvn-ember); padding: 18px 24px;
}
.tg-sidebar-head h3 {
  font-family: 'Work Sans', sans-serif;
  font-weight: 800; font-size: 13px;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--bvn-slate-deep); margin: 0;
}
.tg-sidebar-body { padding: 20px 24px; }
.tg-sidebar-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.tg-sidebar-row:last-of-type { border-bottom: none; }
.tg-sidebar-key {
  font-family: 'Work Sans', sans-serif;
  font-size: 10px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.tg-sidebar-val {
  font-family: 'Karla', sans-serif;
  font-size: 14px; font-weight: 600;
  color: var(--bvn-white); text-align: right;
}
.tg-diff-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; margin-top: 4px; }
.tg-chip {
  font-family: 'Work Sans', sans-serif;
  font-size: 9px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 8px; border-radius: 2px; color: white;
}
.tg-chip-green { background: var(--bvn-diff-green); }
.tg-chip-blue  { background: var(--bvn-diff-blue); }
.tg-chip-black { background: var(--bvn-diff-black); }
.tg-chip-pro   { background: var(--bvn-diff-pro); }
.tg-sidebar-cta {
  display: block;
  background: var(--bvn-ember); color: var(--bvn-slate-deep);
  text-decoration: none; text-align: center;
  font-family: 'Work Sans', sans-serif;
  font-weight: 800; font-size: 11px;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 14px; margin: 16px 0 0;
  border-radius: 3px; transition: background 0.2s;
}
.tg-sidebar-cta:hover,
.tg-sidebar-cta:focus { background: var(--bvn-ember-dim); color: var(--bvn-white); }
.tg-sidebar-cta:focus-visible { outline: 2px solid var(--bvn-white); outline-offset: 3px; }

/* ── Sidebar link override ──────────────────────────────────
   .tg-body-link is defined for light backgrounds elsewhere.
   Inside the dark sidebar, override to white text + ember underline.
   ──────────────────────────────────────────────────────────── */
.tg-sidebar .tg-body-link {
    color: var(--bvn-white);
    text-decoration-color: var(--bvn-ember);
}

.tg-sidebar .tg-body-link:hover {
    color: var(--bvn-ember);
    text-decoration-color: var(--bvn-ember);
}

/* ── Parking ─────────────────────────────────────────────── */
.tg-parking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px; margin-top: 8px;
}
.tg-parking-card {
  background: var(--bvn-white);
  border: 1px solid var(--bvn-rule);
  border-top: 3px solid var(--bvn-ember);
  border-radius: 4px; padding: 20px;
}
.tg-parking-num {
  font-family: 'Work Sans', sans-serif;
  font-weight: 900; font-size: 28px;
  color: rgba(233,113,50,0.25); line-height: 1; margin-bottom: 6px;
}
.tg-parking-name {
  font-family: 'Work Sans', sans-serif;
  font-weight: 700; font-size: 14px;
  color: var(--bvn-slate-deep); margin-bottom: 2px;
}
.tg-parking-addr {
  font-family: 'Karla', sans-serif;
  font-size: 12px; color: var(--bvn-ember-dim);
  margin-bottom: 8px; font-weight: 600;
}
.tg-parking-desc {
  font-family: 'Karla', sans-serif;
  font-size: 13px; color: var(--bvn-text-body); line-height: 1.65;
}

/* ── Difficulty nav ──────────────────────────────────────── */
.tg-diff-nav {
  background: var(--bvn-lgray);
  border-top: 3px solid var(--bvn-ember);
}
.tg-diff-nav-inner { display: flex; overflow-x: auto; }
.tg-diff-tab {
  flex: 1; min-width: 140px; padding: 20px 24px;
  border-right: 1px solid var(--bvn-rule);
  background: transparent; transition: background 0.2s;
  text-align: left; text-decoration: none; display: block;
}
.tg-diff-tab:last-child { border-right: none; }
.tg-diff-tab:hover,
.tg-diff-tab:focus { background: rgba(233,113,50,0.07); outline: none; }
.tg-diff-tab:focus-visible { outline: 2px solid var(--bvn-ember); outline-offset: -2px; }
.tg-diff-tab-icon { width: 18px; height: 18px; border-radius: 50%; margin-bottom: 8px; }
.tg-diff-tab-icon.green { background: var(--bvn-diff-green); }
.tg-diff-tab-icon.blue  { background: var(--bvn-diff-blue); }
.tg-diff-tab-icon.black { background: var(--bvn-diff-black); }
.tg-diff-tab-icon.dbl   { background: var(--bvn-diff-black); border: 2px solid #666; }
.tg-diff-tab-icon.pro   { background: var(--bvn-diff-pro); }
.tg-diff-tab-name {
  font-family: 'Work Sans', sans-serif;
  font-weight: 700; font-size: 12px;
  color: var(--bvn-slate); display: block;
}
.tg-diff-tab-count {
  font-family: 'Karla', sans-serif;
  font-size: 12px; color: var(--bvn-text-muted);
}

/* ── Trail sections ──────────────────────────────────────── */
.tg-trails-section { padding: 56px 0; }
.tg-trails-section.cream { background: var(--bvn-cream); }
.tg-trails-section.dark  { background: var(--bvn-slate-deep); }
.tg-section-header-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 32px; gap: 20px;
}
.tg-tf-link-small {
  font-family: 'Work Sans', sans-serif;
  font-size: 10px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--bvn-ember-dim);
  text-decoration: underline; text-underline-offset: 3px;
  white-space: nowrap;
}
.tg-tf-link-small:hover,
.tg-tf-link-small:focus { color: var(--bvn-ember); }
.tg-diff-header { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.tg-diff-badge { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; }
.tg-diff-badge.green { background: var(--bvn-diff-green); }
.tg-diff-badge.blue  { background: var(--bvn-diff-blue); }
.tg-diff-badge.black { background: var(--bvn-diff-black); }
.tg-diff-badge.dbl   { background: var(--bvn-diff-black); border: 2px solid #666; }
.tg-diff-badge.pro   { background: var(--bvn-diff-pro); }
.tg-tier-intro {
  font-family: 'Karla', sans-serif;
  font-size: 16px; color: var(--bvn-text-muted);
  line-height: 1.7; margin-bottom: 28px; max-width: 680px;
}
.tg-tier-intro.on-dark { color: rgba(255,255,255,0.65); }

/* ── Trail cards ─────────────────────────────────────────── */
.tg-trail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.trail-card {
  background: var(--bvn-white);
  border-radius: 4px; border: 1px solid var(--bvn-rule);
  padding: 20px 22px; position: relative;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none; display: block; color: inherit;
}
.trail-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(38,43,49,0.1); }
.trail-card:focus-visible { outline: 2px solid var(--bvn-ember); outline-offset: 2px; border-radius: 4px; }
.trail-card.dark-card { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
.trail-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.trail-name {
  font-family: 'Work Sans', sans-serif;
  font-weight: 700; font-size: 15px;
  color: var(--bvn-slate-deep); line-height: 1.3;
  flex: 1; padding-right: 12px;
}
.trail-name.on-dark { color: var(--bvn-white); }
.trail-rating { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.trail-rating-num {
  font-family: 'Work Sans', sans-serif;
  font-weight: 700; font-size: 13px;
  color: var(--bvn-ember-dim);
}
.trail-rating-star { color: var(--bvn-ember-dim); font-size: 12px; }
.trail-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.trail-meta-item { font-family: 'Karla', sans-serif; font-size: 13px; color: var(--bvn-text-muted); }
.trail-meta-item strong { color: var(--bvn-text-body); font-weight: 600; }
.trail-meta-item.on-dark { color: rgba(255,255,255,0.55); }
.trail-meta-item.on-dark strong { color: rgba(255,255,255,0.8); }
.trail-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.trail-tag {
  font-family: 'Work Sans', sans-serif;
  font-size: 9px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 3px 8px; border-radius: 2px;
  background: var(--bvn-lgray); color: var(--bvn-text-muted);
}
.tg-trails-section.cream .trail-tag { background: var(--bvn-rule); }
.trail-tag.popular { background: rgba(196,86,26,0.12); color: #7A3210; }
.trail-tag.ideal   { background: rgba(24,64,69,0.1); color: #0D3035; }
.trail-tag.dark-tag { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.65); }
.trail-tag.pro-tag  { background: rgba(91,33,182,0.35); color: #DDD6FE; }

/* ── Featured card ───────────────────────────────────────── */
.featured-card {
  background: var(--bvn-slate-deep);
  border-radius: 4px; padding: 32px 36px;
  margin-bottom: 24px; position: relative; overflow: hidden;
}
.featured-label {
  position: absolute; top: 24px; right: 28px;
  font-family: 'Work Sans', sans-serif;
  font-size: 9px; font-weight: 800; letter-spacing: 3px;
  color: var(--bvn-ember); border: 1px solid var(--bvn-ember); padding: 3px 10px;
}
.featured-card .trail-name { color: var(--bvn-white); font-size: 22px; margin-bottom: 8px; }
.featured-card .trail-rating-num,
.featured-card .trail-rating-star { color: var(--bvn-ember); }
.featured-card .trail-meta-item { color: rgba(255,255,255,0.55); }
.featured-card .trail-meta-item strong { color: rgba(255,255,255,0.85); }
.featured-desc {
  font-family: 'Karla', sans-serif; font-size: 15px;
  color: rgba(255,255,255,0.7); line-height: 1.75; margin-top: 14px;
}
.featured-tf-link {
  display: inline-block; margin-top: 16px;
  font-family: 'Work Sans', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--bvn-ember);
  text-decoration: underline; text-underline-offset: 3px;
}
.featured-tf-link:hover,
.featured-tf-link:focus { color: #f0955a; }

/* ── Etiquette ───────────────────────────────────────────── */
.tg-etiquette { background: var(--bvn-slate-deep); padding: 64px 0; }
.tg-etiquette .tg-section-title { color: var(--bvn-white); }
.tg-etiquette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px; margin-top: 32px;
}
.tg-etiquette-num {
  font-family: 'Work Sans', sans-serif;
  font-weight: 900; font-size: 40px;
  color: rgba(233,113,50,0.25); line-height: 1; margin-bottom: 8px;
}
.tg-etiquette-body {
  font-family: 'Karla', sans-serif;
  font-size: 15px; color: rgba(255,255,255,0.7); line-height: 1.65;
}
.tg-etiquette-body strong {
  color: var(--bvn-white); display: block;
  font-size: 14px; margin-bottom: 4px;
  font-family: 'Work Sans', sans-serif; font-weight: 700;
}

/* ── CTA banner ──────────────────────────────────────────── */
.tg-cta-banner { background: var(--bvn-ember); padding: 48px 0; text-align: center; }
.tg-cta-banner h2 {
  font-family: 'Work Sans', sans-serif;
  font-weight: 900; font-size: 28px;
  color: var(--bvn-white); margin-bottom: 8px; letter-spacing: -0.5px;
}
.tg-cta-banner p {
  font-size: 16px; color: var(--bvn-slate-deep);
  margin-bottom: 24px; font-weight: 500;
}
.tg-cta-btn {
  display: inline-block;
  background: var(--bvn-white); color: var(--bvn-slate-deep);
  font-family: 'Work Sans', sans-serif; font-weight: 800; font-size: 13px;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 14px 32px; border-radius: 3px;
  text-decoration: none; transition: opacity 0.2s; margin: 0 8px;
}
.tg-cta-btn:hover { opacity: 0.88; }
.tg-cta-btn:focus-visible { outline: 3px solid var(--bvn-slate-deep); outline-offset: 3px; }
.tg-cta-btn.tg-outline {
  background: transparent; color: var(--bvn-slate-deep);
  border: 2px solid var(--bvn-slate-deep);
}

/* ── Trailforks credit ───────────────────────────────────── */
.tg-tf-credit {
  background: var(--bvn-lgray);
  padding: 24px 0; border-top: 1px solid var(--bvn-rule);
}
.tg-tf-credit-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.tg-tf-credit-logo { height: 28px; width: auto; }
.tg-tf-credit-text {
  font-family: 'Karla', sans-serif;
  font-size: 13px; color: var(--bvn-text-muted); line-height: 1.5;
}
.tg-tf-credit-text a {
  color: var(--bvn-slate-deep); font-weight: 600;
  text-decoration: underline; text-underline-offset: 2px;
}
.tg-tf-credit-text a:hover { color: var(--bvn-ember-dim); }

/* ── Focus ring: global within wrap ─────────────────────── */
.tg-wrap a:focus-visible,
.tg-wrap button:focus-visible {
  outline: 2px solid var(--bvn-ember);
  outline-offset: 3px; border-radius: 2px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .tg-intro-grid { grid-template-columns: 1fr; }
  .tg-sidebar { position: static; }
}
@media (max-width: 768px) {
  .tg-container { padding: 0 24px; }
  .tg-hero-inner { padding: 40px 24px 48px; max-width: 100%; }
  .tg-hero-stats { gap: 24px; }
  .tg-hero-divider { display: none; }
  .tg-conditions-bar { padding: 12px 24px; flex-wrap: wrap; gap: 8px; }
  .tg-conditions-link { margin-left: 0; }
  .tg-trails-section { padding: 40px 0; }
  .tg-intro-grid { padding: 48px 0; }
  .featured-label { display: none; }
  .tg-section-header-row { flex-direction: column; align-items: flex-start; }
}

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .tg-wrap * { transition: none !important; }
  html { scroll-behavior: auto !important; }
}


/* ============================================================
   LIVE CONDITIONS & ROUTES SECTION
   Two-column: conditions widget left, routes iframe right.
   The TrailforksWidgetReports div renders its own iframe
   via widget.js — we control the wrapper, not the internals.
   ============================================================ */

.tg-live-section {
  padding: 64px 0;
  background: var(--bvn-white);
  border-top: 1px solid var(--bvn-rule, #E8E1DE);
}

.tg-live-header {
  margin-bottom: 40px;
}

.tg-reports-wrap {
  max-width: 800px;
}

/* Trailforks widget div — constrain and give it breathing room */
.TrailforksWidgetReports {
  width: 100% !important;
  min-height: 280px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bvn-bgblue, #EAF0F6);
}

/* The widget injects an iframe — make it fill the container */
.TrailforksWidgetReports iframe {
  width: 100% !important;
  border: none;
  display: block;
}



/* Attribution line under each widget */
.tg-live-attr {
  font-family: 'Karla', Georgia, sans-serif;
  font-size: 12px;
  color: var(--bvn-text-muted, #7A7268);
  margin: 0;
}

.tg-live-attr a {
  color: var(--bvn-ember);
  text-decoration: none;
}

.tg-live-attr a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .tg-live-section {
    padding: 48px 0;
  }
  .tg-reports-wrap {
    max-width: 100%;
  }
}


/* ============================================================
   TRAIL MAP SECTION
   Full-bleed interactive Trailforks map widget.
   The TrailforksWidgetMap div is injected by widget.js into
   an iframe — we control width/height via data-w/data-h attrs.
   Setting data-w="100%" enables responsive auto-height.
   ============================================================ */

.tg-map-section {
  padding: 64px 0 0;
  background: var(--bvn-bgblue);
  border-top: 1px solid var(--bvn-rule);
}

.tg-map-header {
  margin-bottom: 32px;
}

/* Full-bleed wrapper — no max-width constraint */
.tg-map-wrap {
  width: 100%;
  line-height: 0; /* removes phantom gap below iframe */
  background: var(--bvn-lgray);
  min-height: 400px;
}

/* The widget injects an iframe — fill the wrapper */
.TrailforksWidgetMap {
  width: 100% !important;
  display: block;
}

.TrailforksWidgetMap iframe {
  width: 100% !important;
  border: none;
  display: block;
}

/* Noscript iframe fallback */
.tg-map-wrap noscript iframe {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
}

/* Legend dots under map */
.tg-map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Work Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  margin: 0 8px;
}
.tg-map-legend-item::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tg-map-legend-item.green::before { background: var(--bvn-diff-green); }
.tg-map-legend-item.blue::before  { background: var(--bvn-diff-blue); }
.tg-map-legend-item.black::before { background: var(--bvn-diff-black); }
.tg-map-legend-item.dbl::before   { background: var(--bvn-diff-black); border: 2px solid #666; }

@media (max-width: 768px) {
  .tg-map-section {
    padding: 48px 0 0;
  }
}


/* ============================================================
   SUGGESTED ROUTES SECTION
   ============================================================ */

.tg-routes-section {
  padding: 64px 0;
  background: var(--bvn-cream);
  border-top: 1px solid var(--bvn-rule);
}

.tg-route-card { margin-top: 36px; }

.tg-route-card + .tg-route-card {
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid var(--bvn-rule);
}

.tg-route-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.tg-route-title {
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--bvn-slate-deep);
  margin: 0 0 8px;
}

.tg-route-desc {
  font-family: 'Karla', sans-serif;
  font-size: 15px;
  color: var(--bvn-text-muted);
  line-height: 1.65;
  margin: 0;
  max-width: 640px;
}

.tg-route-tf-link {
  font-family: 'Work Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--bvn-ember-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}
.tg-route-tf-link:hover,
.tg-route-tf-link:focus { color: var(--bvn-ember); }

.tg-route-embed {
  border-radius: 4px;
  overflow: hidden;
  line-height: 0;
  border: 1px solid var(--bvn-rule);
}
.tg-route-embed iframe {
  display: block;
  width: 100%;
  border: none;
}

@media (max-width: 768px) {
  .tg-routes-section { padding: 48px 0; }
  .tg-route-card-header { flex-direction: column; gap: 12px; }
  .tg-route-embed iframe { height: 380px; }
}


/* ============================================================
   ATMOSPHERIC PHOTO BREAK
   Full-bleed image between Etiquette and CTA banner.
   Fixed height with object-fit:cover — no captions, no labels.
   Functions as a visual exhale before the final CTA.
   ============================================================ */

.tg-photo-break {
  width: 100%;
  height: 420px;
  overflow: hidden;
  position: relative;
}

.tg-photo-break img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

@media (max-width: 768px) {
  .tg-photo-break { height: 260px; }
}
