/* ============================================
   TOOTIE'S BACKYARD — MASTER THEME
   ============================================ */

/* Google Fonts loaded via wp_enqueue_style in functions.php (with font-display:swap) */

:root {
  /* Core Palette */
  --navy:      #1A3A5F;
  --orange:    #F57C00;
  --sky:       #87CEEB;
  --sky-light: #D6F0FB;
  --green:     #2E7D32;
  --green-lt:  #C8E6C9;
  --yellow:    #FFD54F;
  --red:       #D32F2F;
  --tan:       #FFCC80;
  --white:     #FFFFFF;
  --bg:        #B0E0E6;

  /* Kids accent colors (no purple) */
  --coral:     #FF6B6B;
  --teal:      #00BCD4;
  --lime:      #8BC34A;
  --amber:     #FFC107;

  /* Typography */
  --font-display: 'Fredoka One', 'Nunito', system-ui, sans-serif;
  --font-body:    'Nunito', system-ui, -apple-system, sans-serif;
  --font-hand:    'Patrick Hand', 'Comic Sans MS', cursive, sans-serif;

  /* Radius & Shadow */
  --radius-sm:  12px;
  --radius-md:  24px;
  --radius-lg:  40px;
  --radius-xl:  60px;
  --shadow:     6px 6px 0px rgba(26,58,95,0.18);
  --shadow-lg:  10px 10px 0px rgba(26,58,95,0.2);
}

/* ── Reset & Base ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* ── Global image responsiveness ───────────────────────────────────────── */
img,
video,
svg:not([class]) {
  max-width: 100%;
  height: auto;
  display: block;
}

body {
  overflow-x: hidden;
  font-family: var(--font-body);
  background: linear-gradient(180deg, var(--sky) 0%, var(--bg) 100%);
  min-height: 100vh;
  margin: 0;
  color: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── TICKER BAR ───────────────────────────── */
.ticker-wrap {
  background: var(--navy);
  color: var(--tan);
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-hand);
  font-size: 1rem;
  font-weight: bold;
  border-bottom: 5px solid var(--orange);
}
.ticker-move {
  display: inline-block;
  animation: ticker 40s linear infinite;
}
@keyframes ticker {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ── HEADER ───────────────────────────────── */
.site-header {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  padding: 12px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 5px solid var(--orange);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-logo span { color: var(--orange); }

.site-nav {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-pill {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 7px 18px;
  border-radius: 50px;
  border: 3px solid var(--navy);
  background: white;
  color: var(--navy);
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}
.nav-pill:hover,
.nav-pill.active {
  background: var(--navy);
  color: white;
  font-weight: 700;
  box-shadow: inset 0 -3px 0 rgba(255,255,255,0.4);
}
.nav-pill.cta {
  background: #C25400;
  border-color: #C25400;
  color: white;
}
.nav-pill.cta:hover {
  background: #a34600;
  border-color: #a34600;
}

/* ── PAGE HERO BANNERS ────────────────────── */
.page-hero {
  background: var(--navy);
  color: white;
  text-align: center;
  padding: 60px 20px 50px;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  border: 5px solid var(--orange);
  border-top: none;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,193,7,0.08) 0%, transparent 70%),
              radial-gradient(ellipse at 70% 20%, rgba(0,188,212,0.07) 0%, transparent 60%);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 0 0 10px;
  position: relative;
}
.page-hero p {
  font-size: 1.15rem;
  color: var(--tan);
  margin: 0;
  font-family: var(--font-hand);
  position: relative;
}

/* ── CONTAINER ────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* ── SECTION TITLES ───────────────────────── */
.section-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--navy);
  margin: 40px 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── CARDS ────────────────────────────────── */
.card {
  background: white;
  border: 4px solid var(--navy);
  border-radius: var(--radius-md);
  padding: 25px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* ── GRID ─────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

/* ── BUTTONS ──────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 11px 24px;
  border-radius: 50px;
  border: 3px solid currentColor;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.btn-orange { background: #C25400; color: white; border-color: #C25400; }  /* 4.60:1 — WCAG AA */
.btn-orange:hover { background: #a34600; }
.btn-navy   { background: var(--navy); color: white; border-color: var(--navy); }
.btn-navy:hover { background: #0d2640; }
.btn-green  { background: var(--green); color: white; border-color: var(--green); }
.btn-coral  { background: var(--coral); color: white; border-color: var(--coral); }
.btn-teal   { background: var(--teal); color: var(--navy); border-color: var(--teal); }
.btn-lime   { background: var(--lime); color: white; border-color: var(--lime); }
.btn-outline { background: white; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: white; }

.btn:active { transform: translate(2px, 2px); }

/* ── FILTER PILLS ─────────────────────────── */
.filter-bar {
  background: rgba(255,255,255,0.9);
  border: 3px solid var(--navy);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.filter-label {
  font-family: var(--font-hand);
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-right: 4px;
}
.f-pill {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 50px;
  border: 2px solid var(--navy);
  background: white;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.15s;
}
.f-pill.active,
.f-pill:hover {
  background: var(--navy);
  color: white;
  font-weight: 700;
  box-shadow: inset 0 -3px 0 rgba(255,255,255,0.4);
}

/* ── FILTER BUTTON (f-btn — used in Teacher Portal, Field Guide, archives) ── */
.f-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 7px 16px;
  border-radius: 50px;
  border: 2px solid var(--navy);
  background: white;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.15s;
}
.f-btn.active,
.f-btn:hover {
  background: var(--navy);
  color: white;
  font-weight: 700;
  box-shadow: inset 0 -3px 0 rgba(255,255,255,0.4);
}
.f-btn:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* ── SAFETY ZONE ──────────────────────────── */
.safety-zone {
  background: #FFF5F5;
  border: 5px solid var(--red);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 40px;
  position: relative;
}
.safety-label {
  background: var(--red);
  color: white;
  font-family: var(--font-display);
  font-size: 0.9rem;
  padding: 8px 20px;
  border-radius: 50px;
  position: absolute;
  top: -20px;
  left: 40px;
}
.grandma-quote {
  background: white;
  border-left: 8px solid var(--red);
  padding: 20px 25px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-hand);
  font-size: 1.1rem;
  color: #5a0000;
  margin: 20px 0;
}

/* ── BADGE ────────────────────────────────── */
.badge-ring {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 4px solid var(--amber);
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  filter: grayscale(1);
  opacity: 0.45;
  transition: all 0.4s;
  cursor: pointer;
}
.badge-ring.earned {
  filter: none;
  opacity: 1;
  background: var(--amber);
  box-shadow: 0 0 18px var(--amber);
}

/* ── FOOTER ───────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: white;
  text-align: center;
  padding: 40px 20px;
  font-family: var(--font-hand);
  font-size: 1rem;
  border-top: 6px solid var(--orange);
}
.site-footer a { color: var(--tan); }

/* ── 360px HARD FLOOR — absolute minimum (e.g. Galaxy Fold outer) ─────── */
@media (max-width: 360px) {
  .tb-container,
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .tb-page-hero,
  .mh-page-hero {
    padding: 20px 12px !important;
    margin: 6px !important;
  }
  .tb-btn,
  .tb-nav-pill {
    font-size: 0.8rem;
    padding: 10px 10px;
  }
}

/* ── PRINT UTILITY ────────────────────────── */

/* ── 360px SMALL PHONE (minimum supported viewport) ─────────────────────
   Covers 360px–400px: Galaxy A series, Moto G, budget Android devices.
   Uses max-width:400px to catch 360px and up to 400px cleanly.
   Explicit 360px sub-rules below override where layout needs extra care.
──────────────────────────────────────────────────────────────────────── */
@media (max-width: 400px) {

  /* Ensure site never forces horizontal scroll */
  body,
  .site-wrapper,
  .site-header,
  .site-footer {
    min-width: 0;
    overflow-x: hidden;
  }

  /* Game canvases — scale down to fit narrow viewports */
  #tb-maze-canvas,
  #tb-cw-grid,
  #tb-col-canvas,
  #tb-ws-grid {
    max-width: 100%;
    width: 100% !important;
    height: auto !important;
  }

  /* Hero banner margin tighter on very small phones */
  .tb-page-hero,
  .mh-page-hero {
    margin: 8px !important;
    border-radius: 24px !important;
    padding: 24px 16px !important;
  }

  /* Nav pills wrap cleanly */
  .tb-site-nav {
    gap: 6px;
  }

  .tb-nav-pill {
    font-size: 0.82rem;
    padding: 10px 12px;
  }

  /* Story spreads: stack at very narrow */
  .tb-story-spread > div {
    grid-template-columns: 1fr !important;
  }

  /* Crossword / wordsearch sidebars stack */
  .tb-cw-wrap,
  .tb-ws-wrap {
    flex-direction: column !important;
  }

}
@media print {
  .site-header, .ticker-wrap, .site-footer,
  .no-print { display: none !important; }
}

/* ── ANIMATIONS ───────────────────────────── */
@keyframes pop-in {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.pop-in { animation: pop-in 0.4s cubic-bezier(0.34,1.56,0.64,1) both; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.float { animation: float 3s ease-in-out infinite; }

/* ── SIGHTED BOX ──────────────────────────── */
.sighted-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #E0F7FA;
  border: 3px solid var(--teal);
  padding: 8px 22px;
  border-radius: 50px;
  font-weight: 800;
  color: #006064;
  cursor: pointer;
  transition: all 0.2s;
}
.sighted-box:has(input:checked) {
  background: #006978;  /* 6.38:1 with white — WCAG AA */
  color: white;
}

/* ── COLORFUL CARD VARIANTS ───────────────── */
.card-coral  { background: #FFE8E8; border-color: var(--coral); }
.card-teal   { background: #E0F7FA; border-color: var(--teal); }
.card-lime   { background: #F1F8E9; border-color: var(--lime); }
.card-amber  { background: #FFF8E1; border-color: var(--amber); }
.card-orange { background: #FFF3E0; border-color: var(--orange); }
.card-green  { background: var(--green-lt); border-color: var(--green); }
.card-sky    { background: var(--sky-light); border-color: var(--sky); }

/* ── ACCESSIBILITY: Focus Visible (WCAG 2.1 AA) ─────────────────────────── */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) {
  outline: none;
}


/* ── TOUCH & INTERACTION OPTIMISATION ────────────────────────────────────
   touch-action:manipulation eliminates the 300ms tap delay on mobile
   for users with motor impairments. Applied to all interactive elements.
──────────────────────────────────────────────────────────────────────── */
a,
button,
[role="button"],
input[type="submit"],
input[type="button"],
input[type="reset"],
input[type="checkbox"],
input[type="radio"],
select,
label,
.tb-btn,
.tb-nav-pill,
.tb-nav-card,
.tb-friend-card,
.mh-neighbor-tag,
.tb-id-choice,
.tb-season-card,
[data-hab],
[data-tf],
[data-dir] {
  touch-action: manipulation;
}

/* Footer links — ensure 44px touch target height */
.site-footer a {
  display: inline-block;
  padding: 8px 4px;
  min-height: 44px;
  line-height: 28px;
}

/* ── SR-ONLY (screen reader only) ───────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── SKIP LINK ───────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  background: var(--navy);   /* 11.57:1 with white — WCAG AAA */
  color: white;
  padding: 12px 24px;
  min-height: 44px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 800;
  font-size: 1rem;
  transition: top 0.2s;
  text-decoration: none;
  border: 3px solid var(--orange);
  touch-action: manipulation;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* ── REDUCED MOTION ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .ticker-move, .tb-ticker-move {
    animation: none !important;
  }
}

/* ── HIGH CONTRAST (forced-colors) ─────────────────────────────────────── */
@media (forced-colors: active) {
  .btn, .nav-pill, .tb-nav-pill, .f-pill, .f-btn {
    border: 2px solid ButtonText;
  }
  .card, .tb-friend-card {
    border: 1px solid CanvasText;
  }
}

/* ── LIVE SEARCH INPUT (archive-tb_friend) ──────────────────────────────── */
.tb-live-search-input:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}
.tb-live-search-input::placeholder {
  color: #767676;
  opacity: 1;
}

/* ── AFFILIATE DISCLOSURE ───────────────────────────────────────────────── */
.tb-affiliate-disclosure {
  background: #FFF9C4;
  border-left: 6px solid var(--amber);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-hand);
  font-size: .9rem;
  margin: 32px 0;
}

/* ── QUIZ BLOCK ─────────────────────────────────────────────────────────── */
.tb-quiz-answer:hover  { background: var(--sky-light); }
.tb-quiz-answer[data-correct="true"][aria-pressed="true"]  { background: var(--green-lt); border-color: var(--green); color: #1B5E20; }
.tb-quiz-answer[data-correct="false"][aria-pressed="true"] { background: #FFEBEE; border-color: var(--red); }

/* ── DOSSIER BLOCK ──────────────────────────────────────────────────────── */
.tb-dossier { margin-top: 48px; }
.tb-field-notes { margin-top: 48px; }

/* ── MEET OUR HEROES PAGE ────────────────────────────────────── */
.tb-hero-profile-inner {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.tb-hero-profile-reverse {
  flex-direction: row-reverse;
}
.tb-hero-bio { flex: 1; min-width: 240px; }
.tb-hero-stats { margin-top: 12px; }
.tb-backyard-map { margin-top: 8px; }
.tb-map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(180px,100%), 1fr));
  gap: 16px;
}
.tb-map-zone {
  text-align: center;
  padding: 20px 16px;
  cursor: default;
}
/* ════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS — covers all templates using shared classes
   ════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Layout */
  .tb-container,
  .container { padding-left: 16px; padding-right: 16px; }

  /* Hero */
  .page-hero { padding: 40px 20px 60px; }
  .page-hero h1 { font-size: clamp(1.8rem, 7vw, 3rem); }

  /* Grids */
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  /* Two-column layouts */
  .tb-two-col,
  .tb-hero-profile-inner,
  .tb-hero-profile-reverse { flex-direction: column; gap: 24px; }

  /* Cards */
  .card { padding: 20px 16px; }

  /* Filter bar */
  .filter-bar { flex-wrap: wrap; gap: 8px; }
  .f-pill,
  .f-btn { font-size: 0.8rem; padding: 6px 12px; }

  /* Story reader */
  .tb-story-reader { gap: 12px; }

  /* Friend / activity cards */
  .tb-friend-card { flex-direction: column; }
  .tb-hero-avatar { min-width: unset !important; width: 100%; max-width: 220px; }

  /* Teacher portal / field guide filter rows */
  .filter-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .filter-label { margin-bottom: 4px; }

  /* Safety zone */
  .safety-zone { padding: 24px 16px; }
  .grandma-quote { font-size: 1.1rem; padding: 20px 16px; }
}

@media (max-width: 600px) {
  .tb-hero-profile-inner,
  .tb-hero-profile-reverse { flex-direction: column; }
  .tb-hero-avatar { min-width: unset !important; width: 100%; }

  /* Site header */
  .site-logo span { font-size: 1.1rem; }

  /* Grids */
  .grid-4 { grid-template-columns: 1fr; }

  /* Buttons */
  .btn { font-size: 0.9rem; padding: 10px 18px; }

  /* Footer */
  .site-footer { text-align: center; }
}

/* ── MEMORY MATCH ────────────────────────────────────────────── */
.tb-memory-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: .95rem;
}
.tb-mem-card:hover:not(:disabled) {
  transform: scale(1.06);
}
.tb-mem-card:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* ── WORD SEARCH ──────────────────────────────────────────────── */
.tb-ws-table td:hover { background: #FFF9C4 !important; }
.tb-ws-sidebar { min-width: 180px; }

/* ── CROSSWORD ────────────────────────────────────────────────── */
.tb-cw-table input:focus {
  background: #E3F2FD;
  outline: 2px solid var(--orange);
  outline-offset: -2px;
}
.tb-cw-clues li:hover { background: #f5f5f5; border-radius: 4px; }

/* ── MAZE ─────────────────────────────────────────────────────── */
.tb-maze-btns button {
  width: 48px;
  height: 48px;
  font-size: 1.2rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── COLORING BOOK ────────────────────────────────────────────── */
#tb-col-palette button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* ══════════════════════════════════════════════════════════════════════════
   TB- COMPONENT SYSTEM
   All tb- prefixed classes used by header, footer, front-page, and partials
   ══════════════════════════════════════════════════════════════════════════ */

/* ── TICKER ───────────────────────────────────────────────────────────── */
.tb-ticker-wrap {
  background: var(--navy);
  color: var(--tan);
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-hand);
  font-size: 1rem;
  font-weight: bold;
  border-bottom: 5px solid var(--orange);
}
.tb-ticker-move {
  display: inline-block;
  animation: ticker 40s linear infinite;
}

/* ── SITE HEADER ──────────────────────────────────────────────────────── */
.tb-site-header {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 5px solid var(--orange);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.tb-site-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tb-site-logo span { color: var(--orange); }

/* ── PRIMARY NAV ──────────────────────────────────────────────────────── */
.tb-site-nav {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.tb-nav-pill {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 18px;
  min-height: 44px;
  border-radius: 50px;
  border: 3px solid var(--navy);
  background: white;
  color: var(--navy);
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  display: inline-block;
}
.tb-nav-pill:hover,
.tb-nav-pill.active {
  background: var(--navy);
  color: white;
  font-weight: 700;
  box-shadow: inset 0 -3px 0 rgba(255,255,255,0.4);
}
.tb-nav-pill.tb-cta,
.tb-nav-pill.cta {
  background: #C25400;
  border-color: #C25400;
  color: white;
}
.tb-nav-pill.tb-cta:hover,
.tb-nav-pill.cta:hover {
  background: #a34600;
  border-color: #a34600;
}

/* ── MOBILE MENU TOGGLE ───────────────────────────────────────────────── */
.tb-menu-toggle {
  display: none;
  background: white;
  border: 3px solid var(--navy);
  border-radius: var(--radius-sm);
  color: var(--navy);
  font-size: 1.4rem;
  padding: 6px 14px;
  cursor: pointer;
  font-weight: bold;
  min-height: 44px;
  min-width: 44px;
}
.tb-menu-toggle:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* ── CONTAINER ────────────────────────────────────────────────────────── */
.tb-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ── SECTION TITLE ────────────────────────────────────────────────────── */
.tb-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
  margin: 48px 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── HOMEPAGE BIG HERO ────────────────────────────────────────────────── */
.tb-big-hero {
  background: var(--navy);
  color: white;
  text-align: center;
  padding: 70px 24px 60px;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  border: 5px solid var(--orange);
  border-top: none;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}
.tb-big-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 50%, rgba(255,193,7,0.10) 0%, transparent 65%),
    radial-gradient(ellipse at 75% 20%, rgba(0,188,212,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.tb-big-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  margin: 0 0 12px;
  position: relative;
  line-height: 1.15;
}
.tb-highlight { color: var(--amber); }

.tb-hero-animals {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 8px;
  margin-bottom: 16px;
  position: relative;
}
.tb-hero-sub {
  font-family: var(--font-hand);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--tan);
  margin: 0 0 32px;
  position: relative;
}

/* ── HERO BUTTONS ─────────────────────────────────────────────────────── */
.tb-hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  margin-bottom: 40px;
}
.tb-hero-btn {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.15s;
  display: inline-block;
  min-height: 44px;
}
.tb-hero-btn.tb-primary {
  background: #C25400;  /* 4.60:1 with white — WCAG AA */
  color: white;
  border: 3px solid #C25400;
  box-shadow: 0 4px 0 #8a3a00;
}
.tb-hero-btn.tb-primary:hover {
  background: #a34600;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #8a3a00;
}
.tb-hero-btn.tb-secondary {
  background: white;
  color: var(--navy);
  border: 3px solid white;
  box-shadow: 0 4px 0 rgba(0,0,0,0.2);
}
.tb-hero-btn.tb-secondary:hover {
  background: var(--sky-light);
  transform: translateY(-2px);
}

/* ── TOOTIE CALLOUT (hero intro box) ─────────────────────────────────── */
.tb-tootie-callout {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(255,255,255,0.12);
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
  position: relative;
}
.tb-tootie-callout h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0 0 8px;
  color: var(--amber);
}
.tb-tootie-callout p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  color: rgba(255,255,255,0.92);
}
.tb-paw {
  font-size: 2.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── NAV CARDS (homepage grid) ────────────────────────────────────────── */
.tb-nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 22px;
  margin-bottom: 8px;
}
.tb-nav-card {
  background: white;
  border: 4px solid var(--navy);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.tb-nav-card:hover {
  transform: translate(-3px, -4px);
  box-shadow: var(--shadow-lg);
}
.tb-nav-card.friends  { border-color: var(--teal);   background: #E0F7FA; }
.tb-nav-card.guides   { border-color: var(--orange);  background: #FFF3E0; }
.tb-nav-card.activities { border-color: var(--green); background: #F1F8E9; }
.tb-nav-card.about    { border-color: var(--coral);   background: #FFF0F0; }
.tb-nav-card.parents  { border-color: var(--amber);   background: #FFF8E1; }
.tb-nav-card.print    { border-color: #9C27B0;        background: #F3E5F5; }

.tb-nav-card-icon {
  font-size: 2.8rem;
  line-height: 1;
}
.tb-nav-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
  margin: 0;
}
.tb-nav-card p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #444;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}
.tb-nav-card .go-btn {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--orange);
  margin-top: auto;
}

/* ── FRIENDS STRIP (horizontal scrolling chips) ───────────────────────── */
.tb-friends-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}
.tb-friend-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 3px solid var(--navy);
  border-radius: 50px;
  padding: 8px 18px;
  text-decoration: none;
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.15s;
  box-shadow: 3px 3px 0 rgba(26,58,95,0.12);
}
.tb-friend-chip:hover {
  background: var(--navy);
  color: white;
  transform: translateY(-2px);
}
.tb-friend-chip .icon { font-size: 1.3rem; }
.tb-friend-chip small {
  font-family: var(--font-hand);
  font-weight: 400;
  font-size: 0.78rem;
  opacity: 0.75;
  font-style: italic;
}

/* ── SEASON ROW ───────────────────────────────────────────────────────── */
.tb-season-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 8px;
}
.tb-season-card {
  background: white;
  border: 4px solid var(--navy);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  text-align: center;
  box-shadow: var(--shadow);
}
.tb-season-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
  margin: 10px 0 8px;
}
.tb-season-card p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: #444;
  line-height: 1.5;
  margin: 0;
}
.tb-season-card.spring { border-color: #E91E63; background: #FCE4EC; }
.tb-season-card.summer { border-color: var(--orange); background: #FFF3E0; }
.tb-season-card.fall   { border-color: #795548; background: #EFEBE9; }
.tb-season-card.winter { border-color: var(--teal); background: #E0F7FA; }

/* ── SAFETY CALLOUT ───────────────────────────────────────────────────── */
.tb-safety-callout {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #FFF5F5;
  border: 5px solid var(--red);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 0 0 20px;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}
.tb-sc-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  line-height: 1;
}
.tb-safety-callout h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--red);
  margin: 0 0 8px;
}
.tb-safety-callout p {
  font-family: var(--font-hand);
  font-size: .9rem;
  color: #5a0000;
  line-height: 1.6;
  margin: 0;
}

/* ── SITE FOOTER ──────────────────────────────────────────────────────── */
.tb-site-footer {
  background: var(--navy);
  color: white;
  text-align: center;
  padding: 48px 24px 32px;
  font-family: var(--font-hand);
  font-size: 1rem;
  border-top: 6px solid var(--orange);
  line-height: 1.7;
}
.tb-site-footer a {
  color: var(--tan);
  text-decoration: none;
}
.tb-site-footer a:hover {
  text-decoration: underline;
  color: white;
}
.tb-footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: left;
  margin-bottom: 32px;
}
.tb-footer-widget-area {
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.tb-footer-links-wrap {
  margin: 0 0 20px;
}
.tb-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.tb-footer-links li a {
  color: var(--tan);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
}
.tb-footer-links li a:hover { color: white; text-decoration: underline; }

/* ── RESPONSIVE: HEADER / NAV ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .tb-site-header {
    padding: 12px 20px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .tb-menu-toggle { display: flex; align-items: center; justify-content: center; }
  .tb-site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 0 4px;
    border-top: 2px solid var(--sky-light);
    margin-top: 4px;
  }
  .tb-site-nav.is-open { display: flex; }
  .tb-nav-pill {
    text-align: center;
    padding: 12px 20px;
    font-size: 1rem;
  }

  /* Hero */
  .tb-big-hero { padding: 48px 20px 44px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
  .tb-tootie-callout { flex-direction: column; text-align: center; }
  .tb-hero-btns { flex-direction: column; align-items: center; }
  .tb-hero-btn { width: 100%; max-width: 320px; text-align: center; }

  /* Season row */
  .tb-season-row { grid-template-columns: repeat(2, 1fr); }

  /* Safety callout */
  .tb-safety-callout { flex-direction: column; padding: 28px 24px; }

  /* Container */
  .tb-container { padding: 0 16px 60px; }

  /* Section title */
  .tb-section-title { font-size: 1.5rem; margin: 36px 0 16px; }
}

@media (max-width: 480px) {
  .tb-site-logo { font-size: 1.4rem; }
  .tb-season-row { grid-template-columns: 1fr; }
  .tb-nav-cards { grid-template-columns: 1fr; }
  .tb-friends-strip { gap: 8px; }
  .tb-friend-chip { font-size: 0.85rem; padding: 7px 14px; }
  .tb-safety-callout { padding: 20px 16px; }
  .tb-safety-callout p { font-size: 1rem; }
}

/* ── PRINT: hide non-content ──────────────────────────────────────────── */

/* ── 360px SMALL PHONE (minimum supported viewport) ─────────────────────
   Covers 360px–400px: Galaxy A series, Moto G, budget Android devices.
   Uses max-width:400px to catch 360px and up to 400px cleanly.
   Explicit 360px sub-rules below override where layout needs extra care.
──────────────────────────────────────────────────────────────────────── */
@media (max-width: 400px) {

  /* Ensure site never forces horizontal scroll */
  body,
  .site-wrapper,
  .site-header,
  .site-footer {
    min-width: 0;
    overflow-x: hidden;
  }

  /* Game canvases — scale down to fit narrow viewports */
  #tb-maze-canvas,
  #tb-cw-grid,
  #tb-col-canvas,
  #tb-ws-grid {
    max-width: 100%;
    width: 100% !important;
    height: auto !important;
  }

  /* Hero banner margin tighter on very small phones */
  .tb-page-hero,
  .mh-page-hero {
    margin: 8px !important;
    border-radius: 24px !important;
    padding: 24px 16px !important;
  }

  /* Nav pills wrap cleanly */
  .tb-site-nav {
    gap: 6px;
  }

  .tb-nav-pill {
    font-size: 0.82rem;
    padding: 10px 12px;
  }

  /* Story spreads: stack at very narrow */
  .tb-story-spread > div {
    grid-template-columns: 1fr !important;
  }

  /* Crossword / wordsearch sidebars stack */
  .tb-cw-wrap,
  .tb-ws-wrap {
    flex-direction: column !important;
  }

}
@media print {
  .tb-site-header, .tb-ticker-wrap, .tb-site-footer,
  .tb-hero-btns, .tb-menu-toggle { display: none !important; }
  .tb-big-hero { background: white !important; color: black !important; border: 1px solid #ccc; }
}

/* ── HIGH CONTRAST ────────────────────────────────────────────────────── */
@media (forced-colors: active) {
  .tb-nav-pill, .tb-hero-btn, .tb-nav-card, .tb-friend-chip,
  .tb-season-card, .tb-safety-callout {
    border: 2px solid ButtonText !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   TB- COMPLETE COMPONENT LIBRARY — Part 2
   All remaining tb- classes used across archives, singles, and page templates
   ══════════════════════════════════════════════════════════════════════════ */

/* ── TB BUTTONS (tb-btn-*) ────────────────────────────────────────────── */
.tb-btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 11px 24px;
  border-radius: 50px;
  border: 3px solid currentColor;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  min-height: 44px;
  line-height: 1.3;
}
.tb-btn-orange { background: #C25400; color: white; border-color: #C25400; }
.tb-btn-orange:hover { background: #a34600; border-color: #a34600; }
.tb-btn-navy   { background: var(--navy);   color: white; border-color: var(--navy); }
.tb-btn-navy:hover { background: #0d2640; }
.tb-btn-green  { background: var(--green);  color: white; border-color: var(--green); }
.tb-btn-green:hover { background: #1b5e20; }
.tb-btn-teal   { background: #006978; color: white; border-color: #006978; } /* 6.38:1 AA — dark teal, white text */
.tb-btn-teal:hover { background: #005262; border-color: #005262; } /* 8.81:1 AAA on hover */
.tb-btn-outline { background: white; color: var(--navy); border-color: var(--navy); }
.tb-btn-outline:hover { background: var(--navy); color: white; }
.tb-btn:hover { opacity: 0.88; transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0,0,0,0.12); }
.tb-btn:active { transform: translate(2px, 2px); box-shadow: none; }
.tb-btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ── READ BUTTON ──────────────────────────────────────────────────────── */
.tb-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 20px;
  border-radius: 50px;
  background: #C25400;  /* 4.60:1 with white — WCAG AA */
  color: white;
  text-decoration: none;
  border: 3px solid #C25400;
  transition: all 0.15s;
  min-height: 44px;
}
.tb-read-btn:hover { background: #a34600; border-color: #a34600; }

/* ── PAGE HERO (tb-page-hero — used on archive & page templates) ──────── */
.tb-page-hero {
  background: var(--navy);
  color: white;
  text-align: center;
  padding: 60px 24px 50px;
  border-radius: 48px;
  border: 5px solid var(--orange);
  margin: 32px 24px 40px;
  position: relative;
  overflow: hidden;
}
.tb-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,193,7,0.08) 0%, transparent 70%),
              radial-gradient(ellipse at 70% 20%, rgba(0,188,212,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.tb-page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin: 0 0 12px;
  position: relative;
}
.tb-page-hero p {
  font-size: 1.15rem;
  color: var(--tan);
  margin: 0;
  font-family: var(--font-hand);
  position: relative;
  opacity: .9;
}

/* ── SHARE HERO (story/activity single top) ───────────────────────────── */
.tb-share-hero {
  background: var(--navy);
  color: white;
  padding: 52px 24px 44px;
  border-radius: 48px;
  border: 5px solid var(--orange);
  margin: 32px 24px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tb-share-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,193,7,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.tb-share-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: 0 0 10px;
  position: relative;
}
.tb-share-hero p {
  font-family: var(--font-hand);
  font-size: 1.1rem;
  color: var(--tan);
  margin: 0;
  position: relative;
  opacity: .9;
}

/* ── FRIEND SINGLE — HERO LAYOUT ──────────────────────────────────────── */
.tb-friend-hero {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.tb-friend-hero-image {
  flex-shrink: 0;
  width: 220px;
}
.tb-friend-hero-image img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 4px solid var(--navy);
  box-shadow: var(--shadow);
}
.tb-friend-hero-text { flex: 1; min-width: 240px; }
.tb-sci-name {
  font-family: var(--font-hand);
  font-style: italic;
  color: #555;
  font-size: 1rem;
  margin: 0 0 12px;
}

/* ── FRIEND STATS / QUICK FACTS ───────────────────────────────────────── */
.tb-friend-stats,
.tb-quick-facts {
  background: var(--sky-light);
  border: 3px solid var(--teal);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 28px;
}
.tb-stat-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.tb-stat-item:last-child { border-bottom: none; }
.tb-stat-label {
  font-weight: 700;
  color: var(--navy);
  min-width: 100px;
  flex-shrink: 0;
}
.tb-stat-val { color: #333; }

/* ── TYPE TAG ─────────────────────────────────────────────────────────── */
.tb-type-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 4px 14px;
  border-radius: 50px;
  background: var(--navy);
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.tb-tag-bird   { background: var(--teal); color: var(--navy); }

/* ── FACT CHIP ────────────────────────────────────────────────────────── */
.tb-fact-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 2px solid var(--navy);
  border-radius: 50px;
  padding: 5px 14px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--navy);
  font-weight: 600;
}

/* ── FUN FACT BOX ─────────────────────────────────────────────────────── */
.tb-fun-fact-box {
  background: #FFF8E1;
  color: var(--navy);       /* explicit: ensures 4.5:1+ contrast on #FFF8E1 */
  border: 4px solid var(--amber);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 28px 0;
  position: relative;
}
.tb-fun-fact-box::before {
  content: '💡';
  position: absolute;
  top: -16px;
  left: 20px;
  font-size: 1.6rem;
}





/* ── BUTTON SIZE MODIFIER ─────────────────────────────────────────────────
   Replace ad-hoc inline style="padding:6px 16px;font-size:.85rem;" overrides.
──────────────────────────────────────────────────────────────────────── */
.tb-btn-sm {
  padding: 6px 16px;
  font-size: .85rem;
  min-height: 36px;
}

/* ── VISUAL BREADCRUMB ────────────────────────────────────────────────────
   Lightweight trail: Home › Archive › Current Page
──────────────────────────────────────────────────────────────────────── */
.tb-breadcrumb {
  background: var(--light, #F0F7FF);
  border-bottom: 1px solid rgba(26,58,95,.1);
  padding: 10px 20px;
}
.tb-breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  font-size: .85rem;
  font-family: var(--font-body);
}
.tb-breadcrumb-item { display: flex; align-items: center; gap: 4px; }
.tb-breadcrumb-item a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tb-breadcrumb-item a:hover { color: #a34600; }
.tb-breadcrumb-sep { color: #9aA; font-size: .8rem; }
.tb-breadcrumb-current span { color: var(--navy); font-weight: 600; }

/* ── CUSTOM SEARCH FORM ──────────────────────────────────────────────────
   Replaces WP default unstyled form. Used on search.php, 404.php, index.php.
──────────────────────────────────────────────────────────────────────── */
.tb-search-form { width: 100%; max-width: 560px; margin: 0 auto; }
.tb-search-wrap {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.tb-search-input {
  flex: 1;
  min-width: 0;
  padding: 12px 18px;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 3px solid var(--navy);
  border-radius: 50px;
  outline: none;
  min-height: 44px;
  background: white;
  color: var(--navy);
  touch-action: manipulation;
}
.tb-search-input:focus-visible {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(194,84,0,.20);
}
.tb-search-input::placeholder { color: #888; opacity: 1; }
.tb-search-btn { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 480px) {
  .tb-search-wrap { flex-direction: column; }
  .tb-search-input, .tb-search-btn { width: 100%; }
}

/* ── LOADING ANIMATION (REST field guide tool) ────────────────────────── */
.tb-loading-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-hand);
  font-size: 1rem;
  color: var(--navy);
}
.tb-loading-dots::after {
  content: '…';
  display: inline-block;
  animation: tb-dots 1.2s steps(3, end) infinite;
  letter-spacing: 2px;
}
@keyframes tb-dots {
  0%   { content: '.'; }
  33%  { content: '..'; }
  66%  { content: '...'; }
  100% { content: '.'; }
}
.tb-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(26,58,95,.2);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: tb-spin 0.75s linear infinite;
  vertical-align: middle;
}
@keyframes tb-spin { to { transform: rotate(360deg); } }

/* ── NO-RESULTS (search + animal tool) ────────────────────────────────── */
.tb-no-results-wrap {
  text-align: center;
  padding: 40px 20px;
}
.tb-no-results-emoji { font-size: 3rem; display: block; margin-bottom: 12px; }
.tb-no-results-wrap p { font-size: 1.1rem; color: var(--navy); margin-bottom: 20px; }
.tb-no-results-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── BROKEN IMAGE GRACEFUL DEGRADATION ──────────────────────────────────
   If an img src 404s, the container holds its shape (no layout collapse).
   The emoji character in .tb-card-avatar acts as primary text fallback.
   These rules preserve card grid integrity regardless of image load state.
──────────────────────────────────────────────────────────────────────── */
.tb-card-avatar img,
.tb-friend-hero-image img,
.tb-story-cover img,
.tb-post-thumbnail img {
  /* Neutral fallback background if image fails to load */
  background-color: var(--light, #F5F7FA);
  /* Prevent layout collapse: maintain minimum space */
  min-height: 40px;
}
/* Ensure containers don't collapse to zero height on broken images */
.tb-friend-hero-image {
  min-height: 80px;
}

/* ── GAME SPLASH SCREEN ───────────────────────────────────────────────── */
/* Shown before game assets load — defers all game DOM until user taps Play */
.tb-game-splash {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 48px 24px;
  text-align: center;
  background: #F0F7FF;
  border: 4px solid var(--navy);
  border-radius: var(--radius-lg);
  min-height: 280px;
}
.tb-game-splash-emoji {
  font-size: 4rem;
  line-height: 1;
}
.tb-game-splash-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--navy);
  margin: 0;
}
.tb-game-splash-desc {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--navy);
  max-width: 340px;
  margin: 0;
}
.tb-game-start-btn {
  margin-top: 8px;
  min-height: 48px;
  min-width: 160px;
  font-size: 1.1rem;
  touch-action: manipulation;
}

/* ── CARDS GRID / FRIEND CARDS ────────────────────────────────────────── */
.tb-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 22px;
}
.tb-friend-card {
  background: white;
  border: 4px solid var(--navy);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.tb-friend-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.tb-card-top {
  background: var(--sky-light);
  padding: 20px;
  text-align: center;
  border-bottom: 3px solid var(--navy);
}
.tb-card-avatar {
  font-size: 3.5rem;
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}
.tb-card-body {
  overflow-x: hidden;
  padding: 16px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tb-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--navy);
  margin: 0;
}
.tb-card-sci {
  font-family: var(--font-hand);
  font-style: italic;
  font-size: 0.82rem;
  color: #666;
  margin: 0;
}
.tb-card-info {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: #444;
  line-height: 1.5;
  margin: 4px 0 0;
}
.tb-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.tb-card-footer {
  padding: 12px 20px;
  border-top: 2px solid var(--sky-light);
  text-align: right;
}

/* ── ACTIVITY CARDS ───────────────────────────────────────────────────── */
.tb-activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 22px;
}
.tb-activity-card {
  background: white;
  border: 4px solid var(--navy);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.tb-activity-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.tb-activity-icon {
  font-size: 3rem;
  text-align: center;
  padding: 20px 20px 8px;
  background: var(--green-lt);
  display: block;
}
.tb-activity-row {
  padding: 16px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tb-activity-row h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--navy);
  margin: 0;
}

/* ── DOSSIER (friend single — detailed profile section) ───────────────── */
.tb-dossier {
  background: white;
  border: 4px solid var(--navy);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 48px;
}
.tb-dossier-image {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
}

/* ── FIELD NOTES ──────────────────────────────────────────────────────── */
.tb-field-notes {
  background: #FFFDE7;
  border: 4px solid var(--amber);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin-top: 48px;
  font-family: var(--font-hand);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ── FLORA / FAUNA ROWS ───────────────────────────────────────────────── */
.tb-flora-row,
.tb-fauna-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 20px;
}
.tb-ff-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-lt);
  border: 2px solid var(--green);
  border-radius: 50px;
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: #1B5E20;  /* 5.85:1 on green-lt — WCAG AA */
}
.tb-fauna-row .tb-ff-icon {
  background: var(--sky-light);
  border-color: var(--teal);
  color: #006064;
}

/* ── STORY READER ─────────────────────────────────────────────────────── */
.tb-story-reader {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}
.tb-story-spread {
  background: white;
  border: 4px solid var(--navy);
  border-radius: var(--radius-md);
  padding: 32px 36px;
  box-shadow: var(--shadow);
  font-family: var(--font-hand);
  font-size: 1.15rem;
  line-height: 1.85;
}
.tb-story-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* ── OWL EYES STEPS ───────────────────────────────────────────────────── */
.tb-owl-eyes-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  gap: 18px;
  margin: 24px 0;
}

/* ── SAFETY ZONE / LABEL ──────────────────────────────────────────────── */
.tb-safety-zone {
  background: #FFF5F5;
  border: 5px solid var(--red);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 40px;
  position: relative;
}
.tb-safety-label {
  background: var(--red);
  color: white;
  font-family: var(--font-display);
  font-size: 0.9rem;
  padding: 8px 20px;
  border-radius: 50px;
  position: absolute;
  top: -20px;
  left: 40px;
}

/* ── SOUND PLAYER ─────────────────────────────────────────────────────── */
.tb-sound-player {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 3px solid var(--teal);
  border-radius: 50px;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  color: #006978;  /* 6.38:1 on white — WCAG AA */
  cursor: pointer;
  transition: all 0.15s;
  min-height: 44px;
}
.tb-sound-player:hover { background: #006978; color: white; }

/* ── ID TOOL ──────────────────────────────────────────────────────────── */
.tb-id-tool {
  background: white;
  border: 4px solid var(--orange);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin: 28px 0;
}
.tb-id-choice {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--sky-light);
  border: 3px solid var(--teal);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
  transition: all 0.15s;
  min-height: 44px;
}
.tb-id-choice:hover { background: #006978; color: white; border-color: #006978; }

/* ── QUIZ BLOCK ───────────────────────────────────────────────────────── */
.tb-quiz-block {
  background: white;
  border: 4px solid var(--navy);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin: 28px 0;
  box-shadow: var(--shadow);
}
.tb-quiz-result {
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-align: center;
  margin-top: 16px;
  min-height: 32px;
}

/* ── BADGE LABELS ─────────────────────────────────────────────────────── */
.tb-badge-icon {
  font-size: 2.5rem;
  display: block;
  line-height: 1;
}
.tb-badge-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  margin-top: 4px;
  color: var(--navy);
}

/* ── FILTER SECTION ───────────────────────────────────────────────────── */
.tb-filter-section {
  background: rgba(255,255,255,0.92);
  border: 3px solid var(--navy);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ── LIVE SEARCH ──────────────────────────────────────────────────────── */
.tb-live-search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.tb-live-search-wrap input {
  width: 100%;
  padding: 9px 16px 9px 40px;
  border: 2px solid var(--navy);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  min-height: 44px;
}

/* ── COMPARISON GRID ──────────────────────────────────────────────────── */
.tb-comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 20px;
  margin: 24px 0;
}

/* ── LESSON GRID / CARD ───────────────────────────────────────────────── */
.tb-lesson-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 22px;
  margin: 24px 0;
}
.tb-lesson-card {
  background: white;
  border: 4px solid var(--navy);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── NGSS GRID ────────────────────────────────────────────────────────── */
.tb-ngss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 16px;
  margin: 20px 0;
}

/* ── REP ROWS (repeatable meta rows in admin) ─────────────────────────── */
.tb-rep-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

/* ── SIDEBAR ──────────────────────────────────────────────────────────── */
.tb-sidebar {
  width: clamp(220px, 28%, 300px);   /* fluid, not fixed */
  flex-shrink: 0;
  min-width: 0;
}
.tb-widget {
  background: white;
  border: 3px solid var(--navy);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.tb-widget-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--navy);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--sky-light);
}

/* ── TWO COL LAYOUT ───────────────────────────────────────────────────── */
.tb-two-col {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

/* ── POST NAV / RELATED LINKS ─────────────────────────────────────────── */
.tb-post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  flex-wrap: wrap;
  border-top: 3px solid var(--sky-light);
  padding-top: 24px;
}
.tb-related-link {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
  font-size: 0.9rem;
}
.tb-related-link:hover { text-decoration: underline; }

/* ── ENTRY CONTENT (story/activity body text) ─────────────────────────── */
.tb-entry-content {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: #222;
  max-width: 720px;
}
.tb-entry-content h2,
.tb-entry-content h3,
.tb-entry-content h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 28px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--sky-light);
  line-height: 1.25;
}
.tb-entry-content h2 { font-size: 1.4rem; }
.tb-entry-content h3 { font-size: 1.2rem; }
.tb-entry-content h4 { font-size: 1rem; border-bottom: none; }
.tb-entry-content p  { margin-bottom: 14px; }
.tb-entry-content ul,
.tb-entry-content ol { padding-left: 24px; margin-bottom: 16px; }
.tb-entry-content li { margin-bottom: 6px; line-height: 1.65; }
.tb-entry-content strong { color: var(--navy); font-weight: 700; }
.tb-entry-content a {
  color: #C25400;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tb-entry-content a:hover {
  color: #a34600;
  text-decoration-thickness: 2px;
}

/* ── POST THUMBNAIL ───────────────────────────────────────────────────── */
.tb-post-thumbnail {
  width: 100%;
  border-radius: var(--radius-md);
  border: 4px solid var(--navy);
  box-shadow: var(--shadow);
  display: block;
  object-fit: cover;
}

/* ── PAGINATION ───────────────────────────────────────────────────────── */
.tb-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 3px solid var(--sky-light);
}
.tb-pagination a,
.tb-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 50px;
  border: 3px solid var(--navy);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
  text-decoration: none;
  background: white;
  transition: all 0.15s;
}
.tb-pagination a:hover,
.tb-pagination .current {
  background: var(--navy);
  color: white;
}

/* ── NO RESULTS ───────────────────────────────────────────────────────── */
.tb-no-results {
  text-align: center;
  padding: 60px 24px;
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: #555;
}
.tb-no-results p { margin: 8px 0; }

/* ── COMMENTS ─────────────────────────────────────────────────────────── */
.tb-comments-area {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 3px solid var(--sky-light);
}
.tb-comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tb-comment-list li {
  background: white;
  border: 3px solid var(--sky-light);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 12px;
}

/* ── GAME WRAP ────────────────────────────────────────────────────────── */
.tb-game-wrap {
  background: white;
  border: 4px solid var(--navy);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* ── FONT UTILITY ─────────────────────────────────────────────────────── */
.tb-font-hand { font-family: var(--font-hand) !important; }

/* ── RESPONSIVE PART 2 ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .tb-friend-hero { flex-direction: column; }
  .tb-friend-hero-image { width: 100%; max-width: 240px; }
  .tb-two-col { flex-direction: column; }
  .tb-sidebar { width: 100%; }
  .tb-story-spread { padding: 24px 20px; font-size: 1.05rem; }
  .tb-dossier, .tb-field-notes { margin-top: 32px; }
  .tb-safety-zone { padding: 28px 20px; }
  .tb-safety-label { left: 20px; }
  .tb-page-hero { margin: 16px; padding: 40px 20px; border-radius: 32px; }
  .tb-page-hero h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); }
  .tb-game-wrap { padding: 18px 14px; }
}

@media (max-width: 480px) {
  .tb-story-spread { padding: 18px 16px; }
  .tb-quiz-block { padding: 20px 16px; }
  .tb-stat-label { min-width: 80px; }
}

/* ── FOOTER — Contact + Legal + Copyright ─────────────────────────────── */
.tb-footer-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-hand);
  font-size: 1rem;
  margin: 8px 0 16px;
}
.tb-footer-owl { font-size: 1.3rem; }
.tb-footer-grandma-link {
  color: var(--amber);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s;
}
.tb-footer-grandma-link:hover {
  border-bottom-color: var(--amber);
}

.tb-footer-legal-nav { margin: 0 0 12px; }
.tb-footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.tb-footer-legal li a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.8rem;
  transition: color 0.15s;
}
.tb-footer-legal li a:hover { color: white; }

/* Separator dots between legal items */
.tb-footer-legal li + li::before {
  content: '·';
  margin-right: 20px;
  color: rgba(255,255,255,0.3);
  pointer-events: none;
}

.tb-footer-copy {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin: 4px 0 0;
  line-height: 1.8;
}

@media (max-width: 480px) {
  .tb-footer-contact { flex-wrap: wrap; justify-content: center; }
  .tb-footer-legal { gap: 6px 14px; }
  .tb-footer-legal li + li::before { display: none; }
  .tb-footer-copy { font-size: 0.78rem; }
}

/* ── FOOTER WORDMARK ──────────────────────────────────────────────────── */
.tb-footer-wordmark {
  padding: 48px 24px 32px;
  text-align: center;
  border-bottom: 2px solid rgba(255,255,255,0.1);
  margin-bottom: 28px;
}
.tb-footer-wm-text {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}
.tb-wm-tooties {
  color: white;
}
.tb-wm-backyard {
  color: var(--orange);
  margin-left: 0.18em;
}
.tb-footer-wm-tag {
  font-family: var(--font-hand);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.65);
  margin: 0;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

@media (max-width: 480px) {
  .tb-footer-wordmark { padding: 36px 20px 24px; }
  .tb-footer-wm-text  { font-size: clamp(2.2rem, 10vw, 3.5rem); }
}

/* ── FOOTER NAV GROUPS (Progressive layout) ───────────────────────────── */
.tb-footer-nav-groups {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
  max-width: 900px;
  margin: 0 auto 36px;
  padding: 0 24px;
  text-align: left;
}
.tb-footer-col-heading {
  font-family: var(--font-display);
  font-size: 1rem;
  color: white;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(255,255,255,0.15);
  letter-spacing: 0.3px;
}
.tb-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.tb-footer-col ul li a {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.15s;
  display: flex;
  align-items: center;
  min-height: 44px; /* WCAG 2.5.5 touch target */
}
.tb-footer-col ul li a:hover { color: white; }
.tb-footer-grandma-link {
  color: var(--amber) !important;
  font-weight: 700;
}
.tb-footer-grandma-link:hover { color: white !important; }

/* Collapse to 2 columns on tablet */
@media (max-width: 768px) {
  .tb-footer-nav-groups {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
  }
}

/* Stack to single column on mobile */
@media (max-width: 480px) {
  .tb-footer-nav-groups {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  .tb-footer-col-heading {
    border-bottom: none;
    margin-bottom: 8px;
  }
  .tb-footer-col ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 16px;
  }
}


/* ══════════════════════════════════════════════════════════════════
   RELOCATED FROM INLINE STYLE BLOCKS — clean code audit pass
══════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   ZONE LOCATION (single-tb_location.php) — moved from inline
   ═══════════════════════════════════════════════════════════ */


/* ── MAP SECTION ── */
.loc-map-section {
  background: linear-gradient(135deg,rgba(255,255,255,.88),rgba(255,204,128,.25));
  border-bottom: 5px solid var(--orange,#F57C00);
  padding: 24px 0 0;
  position: sticky; top: 65px; z-index: 100;
  box-shadow: 0 8px 30px rgba(26,58,95,.1);
}
.loc-map-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: flex-end; gap: 28px;
}
.loc-map-label { flex-shrink: 0; padding-bottom: 16px; }
.loc-yah {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--zone-color); color: white;
  padding: 9px 18px; border-radius: 30px;
  font-family: 'Fredoka One',cursive; font-size: .95rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.2); margin-bottom: 10px;
}
.loc-yah-dot {
  width: 12px; height: 12px; background: white; border-radius: 50%;
  animation: yah-pulse 1.5s ease-in-out infinite;
}
@keyframes yah-pulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.5);opacity:.6} }
.loc-zone-name {
  font-family: 'Fredoka One',cursive; font-size: 1.3rem; color: var(--navy,#1A3A5F); line-height: 1.2;
}
.loc-zone-name small { display:block; font-family:'Nunito',sans-serif; font-size:.78rem; font-weight:600; opacity:.55; margin-top:2px; }
.loc-map-svg-wrap { flex:1; min-width:0; }
.loc-backyard-map { width:100%; max-width:700px; height:195px; display:block; }
.loc-map-zone-group { cursor:pointer; transition:opacity .2s; }
.loc-map-zone-group:hover { opacity:.82; }
.loc-zone-tab:focus-visible { outline:3px solid var(--zone-color); outline-offset:2px; }
.loc-fauna-card:focus-visible,.loc-flora-card:focus-visible,.loc-act-card:focus-visible { outline:3px solid var(--navy,#1A3A5F); outline-offset:3px; }
.loc-cta-btn:focus-visible,.loc-act-btn:focus-visible { outline:3px solid var(--orange,#F57C00); outline-offset:2px; }
.loc-map-pin { animation:pin-bob 1.3s ease-in-out infinite; transform-origin:center bottom; }
@keyframes pin-bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-7px)} }
.loc-zone-tabs {
  display:flex; gap:5px; overflow-x:auto; padding:12px 24px 0;
  scrollbar-width:none; max-width:1100px; margin:0 auto;
}
.loc-zone-tabs::-webkit-scrollbar{display:none}
.loc-zone-tab {
  flex-shrink:0; padding:7px 15px; min-height:44px; border-radius:14px 14px 0 0;
  border:3px solid transparent; border-bottom:none;
  font-family:'Fredoka One',cursive; font-size:.82rem;
  text-decoration:none; color:var(--navy,#1A3A5F);
  background:rgba(255,255,255,.45); transition:background .2s;
  white-space:nowrap;
}
.loc-zone-tab:hover { background:rgba(255,255,255,.75); }
.loc-zone-tab.current { background:white; border-color:var(--zone-color); color:var(--zone-color); }

/* ── HERO BANNER ── */
.loc-hero {
  background: linear-gradient(135deg,var(--zone-color),rgba(255,255,255,0.35));
  color:white; padding:64px 24px 80px; text-align:center;
  position:relative; overflow:hidden;
}
.loc-hero-floaties { position:absolute;inset:0;pointer-events:none;overflow:hidden; }
.loc-floaty {
  position:absolute; font-size:2rem; opacity:.22;
  animation:floaty-drift 8s ease-in-out infinite;
}
.loc-floaty:nth-child(1){top:12%;left:7%;animation-delay:0s;font-size:2.6rem}
.loc-floaty:nth-child(2){top:58%;left:14%;animation-delay:1.3s;font-size:1.6rem}
.loc-floaty:nth-child(3){top:18%;right:9%;animation-delay:2.1s}
.loc-floaty:nth-child(4){top:68%;right:7%;animation-delay:.8s;font-size:1.9rem}
.loc-floaty:nth-child(5){top:38%;left:42%;animation-delay:3.2s;font-size:1.3rem}
@keyframes floaty-drift{0%,100%{transform:translateY(0) rotate(0deg)}33%{transform:translateY(-14px) rotate(6deg)}66%{transform:translateY(7px) rotate(-4deg)}}
.loc-hero-emoji { font-size:5rem;display:block;margin-bottom:14px;filter:drop-shadow(0 4px 10px rgba(0,0,0,.2)); }
.loc-hero h1 { font-family:'Fredoka One',cursive;font-size:clamp(2.4rem,6vw,4rem);text-shadow:3px 3px 0 rgba(0,0,0,.12);margin-bottom:10px; }
.loc-hero-tagline { font-size:1.1rem;opacity:.93;max-width:560px;margin:0 auto;font-weight:700; }
.loc-hero-desc { font-size:1rem;opacity:.85;max-width:600px;margin:10px auto 0;line-height:1.6; }

/* ── CONTENT ── */
.loc-content { max-width:1100px;margin:0 auto;padding:52px 24px 80px;display:flex;flex-direction:column;gap:56px; }

.loc-sec-header { display:flex;align-items:center;gap:14px;margin-bottom:26px; }
.loc-sec-header h2 { font-family:'Fredoka One',cursive;font-size:1.85rem;color:var(--navy,#1A3A5F); }
.loc-sec-line { flex:1;height:3px;background:linear-gradient(90deg,var(--zone-color),transparent);border-radius:2px; }

/* Fauna cards */
.loc-fauna-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:18px; }
.loc-fauna-card {
  background:white;border:3px solid var(--navy,#1A3A5F);border-radius:28px;padding:24px 18px;text-align:center;
  box-shadow:4px 4px 0 var(--navy,#1A3A5F);transition:transform .2s,box-shadow .2s;
}
.loc-fauna-card:hover{transform:translate(-2px,-2px);box-shadow:6px 6px 0 var(--navy,#1A3A5F)}
.loc-fauna-emoji{font-size:2.8rem;display:block;margin-bottom:10px}
.loc-fauna-card h3{font-family:'Fredoka One',cursive;font-size:1.05rem;color:var(--navy,#1A3A5F);margin-bottom:5px}
.loc-fauna-card p{font-size:.82rem;line-height:1.5;color:#555;margin-bottom:8px}
.loc-fauna-badge{display:inline-block;background:var(--zone-color);color:var(--zone-text,white);font-size:.7rem;font-weight:800;padding:3px 10px;border-radius:10px;font-family:'Nunito',sans-serif}

/* Flora cards */
.loc-flora-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:15px}
.loc-flora-card{background:linear-gradient(135deg,#f0fff4,#e8f5e9);border:3px solid #2E7D32;border-radius:22px;padding:18px 14px;text-align:center;box-shadow:3px 3px 0 #2E7D32}
.loc-flora-emoji{font-size:2.2rem;display:block;margin-bottom:8px}
.loc-flora-card h3{font-family:'Fredoka One',cursive;font-size:.95rem;color:#2E7D32;margin-bottom:4px}
.loc-flora-card p{font-size:.78rem;line-height:1.45;color:#555}

/* Story Corner */
.loc-story{background:var(--navy,#1A3A5F);border-radius:48px;padding:48px;color:white;position:relative;overflow:hidden}
.loc-story::before{content:'"';position:absolute;top:-24px;left:20px;font-family:'Fredoka One',cursive;font-size:14rem;color:rgba(255,255,255,.05);line-height:1;pointer-events:none}
.loc-story-header{display:flex;align-items:center;gap:16px;margin-bottom:26px}
.loc-grandma-avatar{width:62px;height:62px;background:var(--sand,#FFCC80);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:2rem;border:4px solid var(--orange,#F57C00);flex-shrink:0}
.loc-story-header h2{font-family:'Fredoka One',cursive;font-size:1.6rem;color:var(--sand,#FFCC80)}
.loc-story-header p{font-size:.84rem;opacity:.65;margin-top:2px}
.loc-story-body{font-family:'Patrick Hand',cursive;font-size:1.18rem;line-height:1.9;color:rgba(255,255,255,.92);max-width:720px}
.loc-story-body .highlight{color:var(--sand,#FFCC80);font-weight:700}
.loc-story-quote{margin:26px 0;padding:18px 26px;border-left:5px solid var(--orange,#F57C00);background:rgba(255,255,255,.07);border-radius:0 18px 18px 0;font-family:'Fredoka One',cursive;font-size:1.1rem;color:var(--sand,#FFCC80);font-style:italic}

/* Activities */
.loc-act-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:22px}
.loc-act-card{background:white;border:4px solid var(--orange,#F57C00);border-radius:32px;padding:30px;box-shadow:5px 5px 0 var(--orange,#F57C00);transition:transform .2s,box-shadow .2s}
.loc-act-card:hover{transform:translate(-3px,-3px);box-shadow:8px 8px 0 var(--orange,#F57C00)}
.loc-act-num{background:var(--navy,#1A3A5F);color:white;font-family:'Fredoka One',cursive;font-size:1.1rem;width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-bottom:12px}
.loc-act-card h3{font-family:'Fredoka One',cursive;font-size:1.2rem;color:var(--navy,#1A3A5F);margin-bottom:8px}
.loc-act-card p{font-size:.9rem;line-height:1.6;color:#555;margin-bottom:14px}
.loc-act-tag{display:inline-block;background:#f0f4f8;color:var(--navy,#1A3A5F);font-size:.72rem;font-weight:800;padding:3px 10px;border-radius:10px;margin-right:5px;font-family:'Nunito',sans-serif}
.loc-act-btn{display:inline-block;margin-top:12px;background:var(--navy,#1A3A5F);color:white;padding:9px 20px;border-radius:28px;font-family:'Fredoka One',cursive;font-size:.9rem;text-decoration:none;transition:background .2s}
.loc-act-btn:hover{background:var(--orange,#F57C00)}

/* CTA */
.loc-cta{background:linear-gradient(135deg,var(--zone-color),rgba(255,255,255,0.25));border-radius:48px;padding:48px;text-align:center;color:white;border:5px solid var(--navy,#1A3A5F)}
.loc-cta h2{font-family:'Fredoka One',cursive;font-size:2rem;margin-bottom:12px;text-shadow:2px 2px 0 rgba(0,0,0,.12)}
.loc-cta p{font-size:1rem;max-width:480px;margin:0 auto 22px;opacity:.95}
.loc-cta-btns{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.loc-cta-btn{background:var(--navy,#1A3A5F);color:white;padding:12px 26px;border-radius:40px;font-family:'Fredoka One',cursive;font-size:.95rem;text-decoration:none;border:3px solid white;transition:transform .15s}
.loc-cta-btn:hover{transform:scale(1.04)}
.loc-cta-btn.sec{background:white;color:var(--navy,#1A3A5F)}

/* Breadcrumb */
.loc-breadcrumb{max-width:1100px;margin:16px auto 0;padding:0 24px;font-size:.84rem;opacity:.7}
.loc-breadcrumb a{color:var(--navy,#1A3A5F);font-weight:700;text-decoration:none}
.loc-breadcrumb a:hover{text-decoration:underline}

/* Wave */
.loc-wave{display:block;margin-top:-2px}

@media(max-width:768px){
  .loc-map-inner{flex-direction:column;align-items:stretch}
  .loc-backyard-map{height:150px}
  .loc-story{padding:30px 22px}
  .loc-story::before{font-size:7rem}
  .loc-hero{padding:42px 20px 60px}
  .loc-fauna-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}
  .loc-flora-grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr))}
  .loc-act-grid{grid-template-columns:1fr}
  .loc-cta{padding:32px 20px;border-radius:28px}
  .loc-zone-tabs{padding:10px 16px 0}
  .loc-content{padding:36px 16px 60px;gap:40px}
}
@media(max-width:480px){
  .loc-map-section{top:56px}
  .loc-hero-emoji{font-size:3.5rem}
  .loc-sec-header h2{font-size:1.5rem}
  .loc-story-body{font-size:1.05rem}
  .loc-zone-name{font-size:1.1rem}
  .loc-zone-tab{font-size:.76rem;padding:6px 11px}
}
@media print{
  .loc-map-section,.loc-hero-floaties,.loc-zone-tabs,.loc-cta,.site-footer,.ticker-wrap,.site-header,.loc-breadcrumb{display:none!important}
  .loc-story{background:white!important;color:black!important;border:2px solid #ccc;border-radius:8px}
  .loc-story-body,.loc-story-quote{color:black!important}
  .loc-fauna-card,.loc-flora-card,.loc-act-card{box-shadow:none!important;border-width:1px!important}
  .loc-hero{background:white!important;color:black!important;padding:16px}
  .loc-hero h1{text-shadow:none!important}
}
@media(forced-colors:active){
  .loc-fauna-card,.loc-flora-card,.loc-act-card{border:2px solid ButtonText}
  .loc-fauna-badge,.loc-act-tag{border:1px solid ButtonText;background:transparent;color:ButtonText}
  .loc-zone-tab.current{border:2px solid Highlight;color:Highlight}
  .loc-yah{background:Highlight;color:HighlightText}
  .loc-cta-btn,.loc-act-btn{border:2px solid ButtonText}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}


/* ═══════════════════════════════════════════════════════════
   BACKYARD ZONES ARCHIVE (archive-tb_location.php) — moved from inline
   ═══════════════════════════════════════════════════════════ */

.bya-hero{background:var(--navy,#1A3A5F);color:white;text-align:center;padding:56px 24px;border-radius:48px;border:5px solid var(--orange,#F57C00);margin:28px 24px}
.bya-hero h1{font-family:'Fredoka One',cursive;font-size:clamp(2rem,5vw,3.2rem);margin:0 0 10px}
.bya-hero p{font-family:'Nunito',sans-serif;font-size:1.1rem;opacity:.9;margin:0}
.bya-container{max-width:1100px;margin:0 auto;padding:0 24px 60px}
.bya-map-wrap{background:linear-gradient(135deg,rgba(255,255,255,.9),rgba(255,204,128,.2));border:4px solid var(--orange,#F57C00);border-radius:32px;padding:28px;margin:36px 0;box-shadow:0 8px 24px rgba(0,0,0,.08)}
.bya-map-wrap h2{font-family:'Fredoka One',cursive;color:var(--navy,#1A3A5F);font-size:1.6rem;text-align:center;margin:0 0 18px}
.bya-map-svg{width:100%;max-width:800px;height:220px;display:block;margin:0 auto}
.bya-map-zone-group{cursor:pointer;transition:opacity .2s}
.bya-map-zone-group:hover{opacity:.82}
.bya-zones-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:22px;margin-top:36px}
.bya-zone-card{background:white;border-width:4px;border-style:solid;border-radius:32px;padding:28px;text-decoration:none;display:block;color:inherit;box-shadow:4px 4px 0 rgba(0,0,0,.08);transition:transform .2s,box-shadow .2s}
.bya-zone-card:hover{transform:translate(-2px,-3px);box-shadow:6px 7px 0 rgba(0,0,0,.12)}
.bya-zone-emoji{font-size:2.8rem;display:block;margin-bottom:10px}
.bya-zone-card h3{font-family:'Fredoka One',cursive;font-size:1.3rem;margin:0 0 8px}
.bya-zone-card p{font-family:'Nunito',sans-serif;font-size:.88rem;line-height:1.5;color:#555;margin:0 0 14px}
.bya-zone-cta{font-family:'Fredoka One',cursive;font-size:.9rem;color:var(--orange,#F57C00)}
@media(max-width:768px){
  .bya-zones-grid{grid-template-columns:1fr 1fr}
  .bya-map-svg{height:175px}
}
@media(max-width:600px){
  .bya-hero{margin:16px;padding:36px 18px}
  .bya-map-svg{height:150px}
  .bya-zones-grid{grid-template-columns:1fr}
}
@media(forced-colors:active){
  .bya-zone-card{border:2px solid ButtonText!important}
  .bya-zone-cta{color:Highlight}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
@media print{
  .bya-hero{background:white!important;color:black!important;border:1px solid #ccc}
  .bya-zone-card{box-shadow:none!important;break-inside:avoid}
}


/* ═══════════════════════════════════════════════════════════
   MEET OUR HEROES (page-meet-heroes.php) — moved from inline
   ═══════════════════════════════════════════════════════════ */

.mh-page-hero{background:#1A3A5F;color:#fff;text-align:center;padding:60px 24px;border-radius:48px;border:5px solid #F57C00;margin:32px 24px}
.mh-page-hero h1{font-family:'Fredoka One',cursive;font-size:clamp(2.2rem,5vw,3.5rem);margin:0 0 12px}
.mh-page-hero p{font-family:'Nunito',sans-serif;font-size:1.2rem;margin:0;opacity:.9}
.mh-container{max-width:1100px;margin:0 auto;padding:0 24px 60px}
.mh-section{margin-bottom:60px}
.mh-section-title{font-family:'Fredoka One',cursive;font-size:2rem;color:#1A3A5F;text-align:center;margin-bottom:32px}
.mh-bio-card{display:flex;gap:28px;align-items:center;background:#fff;border:4px solid #1A3A5F;border-radius:40px;padding:36px;margin-bottom:24px;box-shadow:0 6px 20px rgba(0,0,0,.07)}
.mh-bio-avatar{width:160px;height:160px;flex-shrink:0;background:#FFCC80;border-radius:50%;border:5px solid #1A3A5F;display:flex;align-items:center;justify-content:center;font-size:4.5rem}
.mh-role-tag{display:inline-block;background:#FFCC80;color:#1A3A5F;font-family:'Nunito',sans-serif;font-weight:800;font-size:.85rem;padding:4px 14px;border-radius:14px;margin-bottom:8px}
.mh-bio-body h2{font-family:'Fredoka One',cursive;font-size:2rem;color:#1A3A5F;margin:0 0 8px}
.mh-bio-body p{font-family:'Nunito',sans-serif;line-height:1.6;margin:0 0 12px}
.mh-traits{display:flex;flex-wrap:wrap;gap:8px}
.mh-trait{background:#f0f4f8;border:1px solid #d1d9e0;border-radius:10px;padding:4px 12px;font-family:'Nunito',sans-serif;font-weight:700;font-size:.85rem}
.mh-challenge-box{background:#1A3A5F;color:#fff;text-align:center;padding:36px;border-radius:30px;border:4px solid #F57C00;margin:40px 0}
.mh-challenge-box h2{font-family:'Fredoka One',cursive;font-size:1.8rem;color:#FFCC80;margin:0 0 12px}
.mh-challenge-box p{font-family:'Nunito',sans-serif;font-size:1.15rem;margin:0}
.mh-map-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px}
.mh-map-zone{background:#fff;border-width:4px;border-style:solid;border-radius:28px;padding:24px;transition:transform .2s,box-shadow .2s}
.mh-map-zone-link{text-decoration:none;color:inherit;display:block}
.mh-map-zone-link:hover{transform:translateY(-4px);box-shadow:0 12px 30px rgba(0,0,0,.12)}
.mh-map-zone h3{font-family:'Fredoka One',cursive;font-size:1.2rem;margin:0 0 8px}
.mh-map-zone p{font-family:'Nunito',sans-serif;font-size:.95rem;line-height:1.5;margin:0 0 10px}
.mh-zone-explore{font-family:'Fredoka One',cursive;font-size:.85rem;opacity:.7}
.mh-map-zone-link:hover .mh-zone-explore{opacity:1}
.mh-neighbors-block{background:#fdf2e9;border:3px solid #FFCC80;border-radius:40px;padding:36px;margin:40px 0;text-align:center}
.mh-neighbors-block h2{font-family:'Fredoka One',cursive;font-size:1.8rem;color:#1A3A5F;margin:0 0 20px}
.mh-neighbor-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px}
.mh-neighbor-tag{background:#1A3A5F;color:#fff;padding:10px;border-radius:14px;font-family:'Nunito',sans-serif;font-weight:700;font-size:.9rem;text-align:center;line-height:1.4;display:flex;flex-direction:column;gap:2px}
.mh-neighbor-tag small{font-weight:400;font-size:.8rem;opacity:.85}
.mh-seasonal{background:#fff;border:4px solid #2E7D32;border-radius:40px;padding:36px;margin:40px 0}
.mh-seasonal h2{font-family:'Fredoka One',cursive;color:#2E7D32;text-align:center;margin:0 0 24px}
.mh-seasons-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:28px}
.mh-seasons-grid h4{font-family:'Fredoka One',cursive;font-size:1.1rem;margin:0 0 8px}
.mh-seasons-grid p{font-family:'Nunito',sans-serif;line-height:1.6;margin:0}
.mh-safety-rules{background:#fff;border:5px dashed #F57C00;border-radius:40px;padding:40px;margin:40px 0;text-align:center}
.mh-safety-rules h2{font-family:'Fredoka One',cursive;color:#F57C00;font-size:2rem;margin:0 0 20px}
.mh-safety-rules ul{list-style:none;padding:0;text-align:left;max-width:600px;margin:0 auto 24px}
.mh-safety-rules li{font-family:'Nunito',sans-serif;font-size:1.1rem;padding:8px 0;border-bottom:1px dashed #eee;color:#1A3A5F}
.mh-safety-rules li::before{content:"✔️ "}
.mh-safety-badge{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;background:#fff;border:5px solid #F57C00;border-radius:50%;width:130px;height:130px;font-family:'Patrick Hand',cursive;font-weight:700;font-size:.95rem;color:#1A3A5F;line-height:1.3;box-shadow:0 8px 20px rgba(0,0,0,.1);margin-top:12px}
.mh-safety-badge-label{font-family:'Nunito',sans-serif;font-weight:700;color:#1A3A5F;margin-top:8px}
.mh-explorer-station{background:#fff;border:4px solid #1A3A5F;border-radius:40px;padding:40px;margin:40px 0;box-shadow:0 10px 30px rgba(0,0,0,.08)}
.mh-explorer-station h2{font-family:'Fredoka One',cursive;color:#1A3A5F;font-size:2rem;text-align:center;margin:0 0 8px}
.mh-explorer-intro{font-family:'Nunito',sans-serif;text-align:center;margin-bottom:28px}
.mh-explorer-intro em{display:block;color:#F57C00;font-size:.9rem;margin-top:6px}
.mh-station-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:28px}
.mh-checklist-card{background:#f0f4f8;border:2px solid #87CEEB;border-radius:24px;padding:24px}
.mh-checklist-card h3{font-family:'Fredoka One',cursive;color:#1A3A5F;margin:0 0 6px}
.mh-checklist-note{font-family:'Nunito',sans-serif;font-size:.9rem;margin-bottom:16px}
.mh-checklist-items{display:flex;flex-direction:column;gap:10px}
.mh-checklist-items label{display:flex;align-items:center;gap:10px;font-family:'Nunito',sans-serif;font-size:1rem;cursor:pointer}
.mh-checklist-items input[type="checkbox"]{width:20px;height:20px;accent-color:#1A3A5F;cursor:pointer;flex-shrink:0}
.mh-status-badge{margin-top:18px;font-family:'Fredoka One',cursive;font-size:1rem;color:#2E7D32;text-align:center;background:#fff;border-radius:12px;padding:8px}
.mh-reset-btn{display:block;width:100%;margin-top:12px;background:transparent;border:2px solid #1A3A5F;border-radius:20px;padding:8px;font-family:'Nunito',sans-serif;font-weight:700;color:#1A3A5F;cursor:pointer;font-size:.85rem;transition:background .2s}
.mh-reset-btn:hover{background:#1A3A5F;color:#fff}
.mh-reset-btn:focus-visible{outline:3px solid #F57C00;outline-offset:2px}
.mh-print-card{background:#fff8e1;border:2px dashed #F57C00;border-radius:24px;padding:24px;text-align:center;display:flex;flex-direction:column;align-items:center}
.mh-print-card h3{font-family:'Fredoka One',cursive;color:#F57C00;margin:0 0 8px}
.mh-print-card p{font-family:'Nunito',sans-serif;font-size:.95rem;margin-bottom:16px}
.mh-print-btn{background:#F57C00;color:#fff;border:none;border-radius:50px;padding:14px 28px;font-family:'Fredoka One',cursive;font-size:1rem;cursor:pointer}
.mh-print-sketch,.mh-print-signature{display:none}
.mh-mission-footer{background:#2E7D32;color:#fff;text-align:center;padding:50px 36px;border-radius:50px;margin-top:60px}
.mh-mission-footer h2{font-family:'Fredoka One',cursive;font-size:2rem;margin:0 0 14px}
.mh-mission-footer p{font-family:'Nunito',sans-serif;font-size:1.1rem;max-width:600px;margin:0 auto}
@media(max-width:768px){
  .mh-bio-card{flex-direction:column;text-align:center}
  .mh-bio-avatar{width:120px;height:120px;font-size:3.5rem}
  .mh-traits{justify-content:center}
  .mh-page-hero{margin:16px;padding:40px 20px}
}
@media print{
  body *{visibility:hidden}
  #explorer-station,#explorer-station *{visibility:visible}
  #explorer-station{position:absolute;left:0;top:0;width:100%;border:none;box-shadow:none}
  .mh-print-sketch{display:block!important;border:2px solid #333;height:160px;margin:20px 0}
  .mh-print-signature{display:block!important;margin-top:30px;border-top:2px solid #000;padding-top:10px}
  .mh-print-btn,.mh-reset-btn{display:none!important}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}


/* ══════════════════════════════════════════════════════════════════
   COOKIE CONSENT BANNER
══════════════════════════════════════════════════════════════════ */
.tb-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--navy, #1A3A5F);
  color: #fff;
  padding: 16px 24px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
  transform: translateY(100%);
  animation: tb-cookie-slide-in 0.4s ease forwards;
}

.tb-cookie-banner[hidden] {
  display: none;
}

@keyframes tb-cookie-slide-in {
  to { transform: translateY(0); }
}

.tb-cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.tb-cookie-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.tb-cookie-msg {
  flex: 1;
  font-family: var(--font-body, 'Nunito', sans-serif);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  color: rgba(255,255,255,0.92);
  min-width: 200px;
}

.tb-cookie-link {
  color: var(--orange, #F57C00);
  text-decoration: underline;
  margin-left: 6px;
  white-space: nowrap;
}

.tb-cookie-link:hover {
  color: #FFCC80;
}

.tb-cookie-accept {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .tb-cookie-inner {
    flex-direction: column;
    text-align: center;
  }
  .tb-cookie-accept {
    width: 100%;
  }
}

/* ══════════════════════════════════════════════════════════════════
   BACK TO TOP BUTTON
══════════════════════════════════════════════════════════════════ */
.tb-back-to-top {
  position: fixed;
  bottom: 32px;
  right: 28px;
  z-index: 9990;
  width: 50px;
  height: 50px;
  min-height: 44px;
  background: var(--navy, #1A3A5F);
  color: #fff;
  border: 3px solid var(--orange, #F57C00);
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: background 0.2s, transform 0.2s;
  touch-action: manipulation;
}

.tb-back-to-top[hidden] {
  display: none;
}

.tb-back-to-top:hover,
.tb-back-to-top:focus-visible {
  background: var(--orange, #C25400);
  transform: translateY(-3px);
  outline: 3px solid var(--orange, #F57C00);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .tb-back-to-top {
    bottom: 80px; /* above cookie banner on mobile */
    right: 16px;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   AUDIT-FIX ADDITIONS (merged from audit-fixes.css)
══════════════════════════════════════════════════════════════════════ */
/**
 * Tootie's Backyard — Audit Fix Stylesheet
 * Addresses every FAIL and WARN from the ADA/SEO/Responsive audit.
 * Import this at the end of assets/css/theme.css:
 *
 * WCAG 2.1 AA fixes applied:
 *  R2  — 360px breakpoint (Category Home + Interior overflow)
 *  R3  — 44px minimum touch targets on nav-pill, f-pill, btn, filter buttons
 *  R4  — overflow-x: hidden on html + body
 *  R5  — clamp() padding on .container
 *  Contrast — Forest green #154D11 and Gold #FFD700 usage notes
 */

/* ── R4: Prevent horizontal scroll on all screen sizes ─────────────────── */
html, body {
  overflow-x: hidden;
}

/* ── R3: 44×44px minimum touch targets (WCAG 2.5.5) ────────────────────── */
.nav-pill,
.tb-nav-pill,
.f-pill,
.f-btn,
.btn,
.tb-btn,
.tb-read-btn,
.sighted-btn,
.tb-sighted-btn {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Pagination links */
.tb-pagination a,
.tb-pagination span {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Menu toggle */
.tb-menu-toggle {
  min-height: 44px;
  min-width: 44px;
}

/* ── R2: Sub-360px breakpoint — Category Home + Interior fixes ──────────── */
@media (max-width: 360px) {

  /* Prevent card grid overflow */
  .tb-cards-grid,
  .cards-grid,
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  /* Container: use full width with minimal padding */
  .container,
  .tb-container {
    padding: 0 clamp(10px, 3vw, 16px) 60px;
  }

  /* Hero text: prevent overflow */
  .page-hero h1,
  .tb-page-hero h1,
  .big-hero h1 {
    font-size: clamp(1.4rem, 8vw, 2rem) !important;
    word-break: break-word;
  }

  /* Nav pills: wrap gracefully */
  .site-nav,
  .tb-site-nav {
    flex-direction: column;
    gap: 4px;
    width: 100%;
  }
  .nav-pill,
  .tb-nav-pill {
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    padding: 10px 12px;
  }

  /* Friend cards: stack avatar above text */
  .tb-card-top,
  .card-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Season row: 1 column */
  .tb-season-row,
  .season-row {
    grid-template-columns: 1fr !important;
  }

  /* Activities grid: 1 column */
  .tb-activities-grid {
    grid-template-columns: 1fr !important;
  }

  /* Prevent canvas overflow */
  canvas {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* Safety callout: stack */
  .tb-safety-callout,
  .safety-callout,
  .safety-zone {
    flex-direction: column;
    padding: 20px 16px;
  }

  /* Hide decorative emoji strip on very small screens */
  .hero-animals {
    font-size: 1.5rem;
    letter-spacing: 2px;
  }

  /* Footer: single column */
  .tb-footer-links,
  .footer-links {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
}

/* ── R5: Fluid container padding using clamp() ──────────────────────────── */
.container,
.tb-container {
  padding-left:  clamp(12px, 4vw, 40px);
  padding-right: clamp(12px, 4vw, 40px);
}

/* ── ADA: Improved grid for sub-360 (minmax safe value) ─────────────────── */
.tb-cards-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
}

/* ── ADA: Color usage guidance (Forest + Gold) ──────────────────────────── */
/*
   COLOR CONTRAST AUDIT RESULTS:
   ─────────────────────────────────────────────────────────────
   Forest #154D11 on white #FFFFFF : ratio 9.5:1  ✅ AAA (all text)
   Forest #154D11 on sky   #87CEEB : ratio 4.8:1  ✅ AA (small text)
   Gold   #FFD700 on white #FFFFFF : ratio 1.28:1 ❌ FAIL (any text size)
   Gold   #FFD700 on navy  #1A3A5F : ratio 8.3:1  ✅ AAA (all text)
   Gold   #FFD700 on black #000000 : ratio 16.4:1 ✅ AAA (all text)
   ─────────────────────────────────────────────────────────────
   RULE: NEVER use Gold #FFD700 as TEXT COLOR on white or light backgrounds.
         Gold #FFD700 is ONLY safe as a BACKGROUND with dark text on top.
         Forest #154D11 is safe on white in all sizes.
*/

/* Force-safe Gold usage — only as background with navy text */
.tb-gold-badge,
.gold-highlight,
[data-color="gold"] {
  background-color: #FFD700;
  color: #1A3A5F;   /* navy — 8.3:1 contrast ✅ */
  padding: 2px 8px;
}
/* Ensure Gold is never used as foreground text color */
.tb-gold-text {
  color: #1A3A5F !important; /* Override any accidental gold text */
}

/* Forest green — safe everywhere */
.tb-forest {
  color: #154D11;
}
.tb-forest-bg {
  background: #154D11;
  color: white; /* 9.5:1 ✅ */
}

/* ── ADA: SVG inline defaults ───────────────────────────────────────────── */
svg:not([aria-label]):not([aria-hidden]) {
  /* Force hidden on decorative SVGs that have no accessibility attr */
  /* In practice: always add aria-hidden="true" or aria-label="..." explicitly */
}

/* ── Print additions ────────────────────────────────────────────────────── */
@media print {
  .tb-menu-toggle,
  .tb-ticker-wrap,
  .ticker-wrap,
  .tb-site-nav,
  .site-nav,
  .tb-site-footer,
  .site-footer,
  .tb-filter-section,
  .filter-bar,
  .filter-section,
  .tb-sighted-btn,
  .sighted-btn,
  .tb-pagination,
  .no-print { display: none !important; }
  body { background: white; font-size: 12pt; }
  .tb-friend-card, .card { break-inside: avoid; border: 1px solid #ccc; box-shadow: none; }
  h1, h2, h3 { page-break-after: avoid; }
  img { max-width: 100%; }
}

/* ── Story reader page spread ─────────────────────────────────────────── */
.tb-story-pages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border: 4px solid var(--navy);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: white;
}
@media (max-width: 600px) {
  .tb-story-pages-grid {
    grid-template-columns: 1fr;
  }
  .tb-story-pages-grid > div + div {
    border-left: none;
    border-top: 3px solid #eee;
  }
}

/* ── Utility classes (replacing repeated inline styles) ───────────────── */
.tb-section-gap    { margin-bottom: 48px; }
.tb-section-gap-lg { margin-top: 56px; }
.tb-mt-32          { margin-top: 32px; }
.tb-mt-24          { margin-top: 24px; }
.tb-emoji-hero     { font-size: 4rem; margin-bottom: 8px; }
.tb-emoji-lg       { font-size: 1.5rem; }
.tb-font-hand      { font-family: var(--font-hand); }
.tb-font-display   { font-family: var(--font-display); }
.tb-two-col-main   {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}
.tb-two-col-main > * {
  min-width: 0;
  overflow-wrap: break-word;
}
@media (max-width: 700px) {
  .tb-two-col-main { grid-template-columns: 1fr; }
}
.tb-hand-intro {
  font-family: var(--font-hand);
  font-size: 1.05rem;
  max-width: 700px;
  margin-bottom: 24px;
}
.tb-hand-small {
  font-family: var(--font-hand);
  font-size: .88rem;
  margin: 0;
  color: #3a5a7a;
}


/* ═══════════════════════════════════════════════════════════════════════
   INDOORS HUB
═══════════════════════════════════════════════════════════════════════ */

/* Hero */
.tb-indoors-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0a1a3a 100%);
  border-bottom: 4px solid var(--orange);
  text-align: center;
}
.tb-indoors-hero__badge {
  font-size: clamp(2.5rem, 8vw, 4rem);
  margin-bottom: .5rem;
}
.tb-indoors-hero__desc {
  font-size: 1.05rem;
  opacity: .92;
  max-width: 620px;
  margin: 0 auto .75rem;
  line-height: 1.7;
}
.tb-indoors-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-top: .75rem;
}
.tb-ih-tag {
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.22);
  color: #fff;
  border-radius: 20px;
  padding: .3rem .85rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .4px;
}

/* Wrap */
.tb-indoors-wrap {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

/* Section header */
.tb-ih-section {
  margin-bottom: 2.5rem;
}
.tb-ih-section__header {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid #e8eef8;
}
.tb-ih-section__emoji {
  font-size: 1.5rem;
}
.tb-ih-section__title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--navy);
  margin: 0;
}
.tb-ih-section__count {
  margin-left: auto;
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  padding: .15rem .6rem;
  font-size: .72rem;
  font-weight: 800;
}

/* Card grid */
.tb-ih-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.tb-ih-grid--featured {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Card */
.tb-ih-card {
  background: #fff;
  border-radius: 18px;
  border: 2px solid rgba(var(--card-rgb), .25);
  box-shadow: 0 3px 16px rgba(var(--card-rgb), .08);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  transition: transform .18s, box-shadow .18s;
  position: relative;
}
.tb-ih-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(var(--card-rgb), .16);
}
.tb-ih-card--featured {
  border-color: rgba(var(--card-rgb), .45);
  background: linear-gradient(135deg, rgba(var(--card-rgb), .04), #fff 60%);
}
.tb-ih-card__type-badge {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: rgba(var(--card-rgb), .12);
  color: rgb(var(--card-rgb));
  border-radius: 10px;
  padding: .2rem .55rem;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .4px;
}
.tb-ih-card__emoji {
  font-size: 2.4rem;
  line-height: 1;
}
.tb-ih-card__title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--navy);
  margin: 0;
  line-height: 1.25;
}
.tb-ih-card__desc {
  font-size: .85rem;
  color: #4a5568;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.tb-ih-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .25rem;
}
.tb-ih-meta-chip {
  background: rgba(var(--card-rgb), .1);
  color: rgb(var(--card-rgb));
  border-radius: 10px;
  padding: .2rem .55rem;
  font-size: .72rem;
  font-weight: 700;
}
.tb-ih-card__fact {
  font-size: .78rem;
  color: #2d5a3a;
  background: #f0faf0;
  border-left: 3px solid rgba(var(--card-rgb), .4);
  border-radius: 0 8px 8px 0;
  padding: .45rem .65rem;
  line-height: 1.5;
}
.tb-ih-card__fact-label {
  font-weight: 800;
  margin-right: .25rem;
}
.tb-ih-card__grandma {
  font-size: .78rem;
  color: #5a4a2a;
  background: #fffbef;
  border: 1px solid #e8d080;
  border-radius: 8px;
  padding: .4rem .65rem;
  line-height: 1.5;
}
.tb-ih-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: .55rem 1rem;
  min-height: 44px;           /* ADA touch target */
  background: rgb(var(--card-rgb));
  color: #fff;
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  letter-spacing: .3px;
  touch-action: manipulation;  /* remove 300ms mobile tap delay */
  transition: opacity .15s, transform .12s;
}
.tb-ih-card__btn:hover {
  opacity: .88;
  transform: translateY(-1px);
  color: #fff;
}

/* Empty state */
.tb-empty-hub {
  text-align: center;
  padding: 4rem 1rem;
  color: #6a7a8a;
}
.tb-empty-hub__emoji { font-size: 3.5rem; margin-bottom: 1rem; }
.tb-empty-hub h2 { font-family: var(--font-head); color: var(--navy); margin-bottom: .5rem; }


/* ═══════════════════════════════════════════════════════════════════════
   OUTDOORS HUB
═══════════════════════════════════════════════════════════════════════ */

/* Hero */
.tb-outdoors-hero {
  background: linear-gradient(135deg, #1a4010 0%, #0a2008 100%);
  border-bottom: 4px solid var(--orange);
  text-align: center;
}
.tb-outdoors-hero__badge {
  font-size: clamp(2.5rem, 8vw, 4rem);
  margin-bottom: .5rem;
}
.tb-outdoors-hero__desc {
  font-size: 1.05rem;
  opacity: .92;
  max-width: 620px;
  margin: 0 auto .75rem;
  line-height: 1.7;
}
.tb-outdoors-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-top: .75rem;
}
.tb-oh-tag {
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.22);
  color: #fff;
  border-radius: 20px;
  padding: .3rem .85rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .4px;
}

/* Wrap */
.tb-outdoors-wrap {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

/* Section header */
.tb-oh-section {
  margin-bottom: 2.5rem;
}
.tb-oh-section__header {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid #ddeedd;
}
.tb-oh-section__emoji { font-size: 1.5rem; }
.tb-oh-section__title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: #1a4010;
  margin: 0;
}
.tb-oh-section__count {
  margin-left: auto;
  background: #1a4010;
  color: #fff;
  border-radius: 12px;
  padding: .15rem .6rem;
  font-size: .72rem;
  font-weight: 800;
}

/* Featured grid */
.tb-oh-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1rem;
}

/* Collapsible activity card */
.tb-oh-card {
  background: #fff;
  border-radius: 16px;
  border: 2px solid rgba(var(--oa-rgb), .25);
  box-shadow: 0 2px 12px rgba(var(--oa-rgb), .07);
  overflow: hidden;
  margin-bottom: .75rem;
  transition: box-shadow .18s;
}
.tb-oh-card:hover {
  box-shadow: 0 5px 20px rgba(var(--oa-rgb), .14);
}
.tb-oh-card--expanded {
  border-color: rgba(var(--oa-rgb), .4);
}

/* Card header (collapsed) */
.tb-oh-card__header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1rem;
  min-height: 44px;            /* ADA touch target */
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;   /* remove 300ms mobile tap delay */
  background: linear-gradient(135deg, rgba(var(--oa-rgb), .05), transparent);
}
.tb-oh-card__header:hover {
  background: rgba(var(--oa-rgb), .08);
}
.tb-oh-card__header-emoji {
  font-size: 1.8rem;
  flex-shrink: 0;
  line-height: 1;
}
.tb-oh-card__header-text {
  flex: 1;
  min-width: 0;
}
.tb-oh-card__header-title {
  display: block;
  font-family: var(--font-head);
  font-size: .98rem;
  color: #1a3010;
  font-weight: 700;
  line-height: 1.25;
}
.tb-oh-card__header-sub {
  display: block;
  font-size: .75rem;
  color: #6a8a6a;
  margin-top: .15rem;
}
.tb-oh-card__chevron {
  font-size: 1.4rem;
  color: rgba(var(--oa-rgb), .6);
  flex-shrink: 0;
  transition: transform .2s;
  line-height: 1;
}

/* Expanded body */
.tb-oh-card__body {
  padding: 1.25rem;
  border-top: 1.5px solid rgba(var(--oa-rgb), .15);
}

/* Body internals */
.tb-oh-body__hero {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.tb-oh-body__emoji {
  font-size: 2.8rem;
  flex-shrink: 0;
  line-height: 1;
}
.tb-oh-body__title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: #1a3010;
  margin: 0 0 .4rem;
  line-height: 1.25;
}
.tb-oh-body__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-bottom: .4rem;
}
.tb-oh-chip {
  background: rgba(var(--oa-rgb), .12);
  color: rgb(var(--oa-rgb));
  border-radius: 10px;
  padding: .18rem .55rem;
  font-size: .72rem;
  font-weight: 700;
}
.tb-oh-body__excerpt {
  font-size: .85rem;
  color: #4a5a4a;
  line-height: 1.6;
  margin: 0;
}

/* Two-column layout for materials + steps */
.tb-oh-body__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (max-width: 560px) {
  .tb-oh-body__cols { grid-template-columns: 1fr; }
  .tb-oh-body__hero { flex-direction: column; gap: .5rem; }
}

/* Panels */
.tb-oh-body__panel {
  background: #f8fdf8;
  border: 1.5px solid rgba(var(--oa-rgb), .2);
  border-radius: 12px;
  padding: .9rem 1rem;
}
.tb-oh-panel__title {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: rgb(var(--oa-rgb));
  margin-bottom: .65rem;
}

/* Materials checklist */
.tb-oh-mat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tb-oh-mat-list li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .83rem;
  color: #2a3a2a;
  line-height: 1.5;
  padding: .25rem 0;
  border-bottom: 1px solid rgba(var(--oa-rgb), .1);
}
.tb-oh-mat-list li:last-child { border-bottom: none; }
.tb-oh-mat-check {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(var(--oa-rgb), .45);
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Steps list */
.tb-oh-steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tb-oh-step {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  font-size: .83rem;
  color: #2a3a2a;
  line-height: 1.55;
  margin-bottom: .6rem;
}
.tb-oh-step:last-child { margin-bottom: 0; }
.tb-oh-step__num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgb(var(--oa-rgb));
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.tb-oh-step__body { color: #3a4a3a; }

/* Safety box */
.tb-oh-safety-box {
  background: linear-gradient(135deg, #fffbec, #fff8d8);
  border: 2px solid #e8c840;
  border-radius: 12px;
  padding: .85rem 1rem;
  margin-bottom: .85rem;
  font-size: .83rem;
  color: #5a4000;
  line-height: 1.6;
}
.tb-oh-safety-box__title {
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #7a5800;
  margin-bottom: .45rem;
}

/* What to watch */
.tb-oh-body__watch {
  margin-bottom: .85rem;
  background: #f8fff8;
}
.tb-oh-watch-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tb-oh-watch-list li {
  font-size: .83rem;
  color: #2a4a2a;
  padding: .22rem 0 .22rem .9rem;
  position: relative;
  line-height: 1.5;
  border-bottom: 1px solid rgba(var(--oa-rgb), .08);
}
.tb-oh-watch-list li:last-child { border-bottom: none; }
.tb-oh-watch-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: rgb(var(--oa-rgb));
  font-weight: 800;
}

/* Grandma tip */
.tb-oh-grandma-tip {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  background: #fffbef;
  border: 1.5px solid #e8d070;
  border-radius: 10px;
  padding: .7rem .9rem;
  font-size: .83rem;
  color: #5a4a20;
  line-height: 1.55;
}
.tb-oh-grandma-tip__owl {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: .05rem;
}

/* Featured outdoors section heading */
.tb-oh-featured-section .tb-oh-section__header {
  border-bottom-color: #c4e890;
}
.tb-oh-featured-section .tb-oh-section__title { color: #1a5010; }


/* ═══════════════════════════════════════════════════════════════════════
   SINGLE INDOORS ACTIVITY
═══════════════════════════════════════════════════════════════════════ */
.tb-single-ia__badge {
  display: inline-block;
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.3);
  color: #fff;
  border-radius: 20px;
  padding: .3rem 1rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .5px;
  margin-bottom: .5rem;
}
.tb-single-ia__emoji {
  font-size: clamp(3rem,10vw,5rem);
  line-height: 1;
  margin-bottom: .5rem;
}
.tb-single-ia__excerpt {
  font-size: 1.05rem;
  opacity: .92;
  max-width: 600px;
  margin: .5rem auto 0;
  line-height: 1.7;
}
.tb-single-ia__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: center;
  margin-top: .75rem;
}
.tb-single-ia__chip {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  border-radius: 16px;
  padding: .25rem .75rem;
  font-size: .75rem;
  font-weight: 700;
}
.tb-single-ia__cta {
  margin-top: 1.25rem;
  font-size: 1rem;
  padding: .75rem 2rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  touch-action: manipulation;
}
.tb-single-ia__wrap { padding-top: 2rem; padding-bottom: 3rem; }
.tb-single-ia__body { margin-bottom: 1.5rem; }
.tb-single-ia__funfact {
  background: #f0faf0;
  border-left: 4px solid #2d8a4a;
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.tb-single-ia__funfact-label {
  font-weight: 800;
  color: #1a5a2a;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: .4rem;
}
.tb-single-ia__funfact p { margin: 0; color: #2a4a2a; font-size: .9rem; line-height: 1.65; }
.tb-single-ia__grandma {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  background: #fffbef;
  border: 1.5px solid #e8d070;
  border-radius: 10px;
  padding: .85rem 1rem;
  font-size: .88rem;
  color: #5a4a20;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.tb-single-ia__grandma-owl { font-size: 1.4rem; flex-shrink: 0; }
.tb-single-ia__bottom-cta { margin: 1.5rem 0; text-align: center; }

/* ═══════════════════════════════════════════════════════════════════════
   SINGLE OUTDOORS ACTIVITY
═══════════════════════════════════════════════════════════════════════ */
.tb-single-oa__badge {
  display: inline-block;
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.3);
  color: #fff;
  border-radius: 20px;
  padding: .3rem 1rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .5px;
  margin-bottom: .5rem;
}
.tb-single-oa__emoji {
  font-size: clamp(3rem,10vw,5rem);
  line-height: 1;
  margin-bottom: .5rem;
}
.tb-single-oa__excerpt {
  font-size: 1.05rem;
  opacity: .92;
  max-width: 620px;
  margin: .5rem auto 0;
  line-height: 1.7;
}
.tb-single-oa__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: center;
  margin-top: .75rem;
}
.tb-single-oa__chip {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  border-radius: 16px;
  padding: .25rem .75rem;
  font-size: .75rem;
  font-weight: 700;
}
.tb-single-oa__wrap { padding-top: 2rem; padding-bottom: 3rem; }
.tb-single-oa__panel {
  background: #f8fdf8;
  border: 1.5px solid rgba(45,106,26,.2);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.tb-single-oa__panel-title {
  font-family: var(--font-head);
  font-size: 1rem;
  color: #1a4010;
  margin: 0 0 .85rem;
}
.tb-oa-mat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tb-oa-mat-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .88rem;
  color: #2a3a2a;
  line-height: 1.55;
  padding: .3rem 0;
  border-bottom: 1px solid rgba(45,106,26,.1);
}
.tb-oa-mat-list li:last-child { border-bottom: none; }
.tb-oa-mat-check {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(45,106,26,.4);
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 2px;
}
.tb-oa-steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tb-oa-step {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  font-size: .88rem;
  color: #2a3a2a;
  line-height: 1.6;
  margin-bottom: .85rem;
}
.tb-oa-step:last-child { margin-bottom: 0; }
.tb-oa-step__num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2d6a1a;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.tb-oa-step__body { color: #3a4a3a; }
.tb-single-oa__safety {
  background: linear-gradient(135deg, #fffbec, #fff8d8);
  border: 2px solid #e8c840;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: .88rem;
  color: #5a4000;
  line-height: 1.65;
}
.tb-single-oa__safety-title {
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #7a5800;
  margin-bottom: .5rem;
}
.tb-oa-watch-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tb-oa-watch-list li {
  font-size: .88rem;
  color: #2a4a2a;
  padding: .28rem 0 .28rem 1rem;
  position: relative;
  line-height: 1.55;
  border-bottom: 1px solid rgba(45,106,26,.08);
}
.tb-oa-watch-list li:last-child { border-bottom: none; }
.tb-oa-watch-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: #2d6a1a;
  font-weight: 800;
}
.tb-single-oa__grandma {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  background: #fffbef;
  border: 1.5px solid #e8d070;
  border-radius: 10px;
  padding: .85rem 1rem;
  font-size: .88rem;
  color: #5a4a20;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.tb-single-oa__grandma-owl { font-size: 1.4rem; flex-shrink: 0; }
.tb-single-oa__body { margin: 1.25rem 0; }
.tb-single-oa__back { margin-top: 2rem; padding-top: 1.5rem; border-top: 2px solid #ddeedd; }

/* Outdoors hub card header title as link */
a.tb-oh-card__header-title {
  color: inherit;
  text-decoration: none;
}
a.tb-oh-card__header-title:hover,
a.tb-oh-card__header-title:focus-visible {
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.5);
  outline: none;
}

/* ═══════════════════════════════════════════════════════════════════════
   ACTIVITIES PAGE — TWO-SECTION LAYOUT
═══════════════════════════════════════════════════════════════════════ */
.tb-acts-wrap {
  padding-top: 2rem;
  padding-bottom: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tb-acts-section {
  padding: 2.5rem 0;
}
.tb-acts-section--indoors {
  border-bottom: 3px solid var(--sky-light);
  padding-bottom: 3rem;
  margin-bottom: 1rem;
}
.tb-acts-section--outdoors {
  padding-top: 2.5rem;
}
.tb-acts-section__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.tb-acts-section__title-group {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.tb-acts-section__icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: .25rem;
}
.tb-acts-section__title-group h2 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  color: var(--navy);
  margin: 0;
}
.tb-acts-section__title-group p {
  font-size: .9rem;
  color: #555;
  margin: 0;
}
.tb-acts-section__more {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .85rem;
  color: var(--navy);
  text-decoration: none;
  border: 2px solid var(--navy);
  border-radius: 50px;
  padding: .4rem 1rem;
  white-space: nowrap;
  align-self: center;
  min-height: 44px;
  display: flex;
  align-items: center;
  touch-action: manipulation;
  transition: background .15s, color .15s;
}
.tb-acts-section__more:hover,
.tb-acts-section__more:focus-visible {
  background: var(--navy);
  color: #fff;
}
.tb-acts-section--outdoors .tb-acts-section__more {
  border-color: #2e7d32;
  color: #2e7d32;
}
.tb-acts-section--outdoors .tb-acts-section__more:hover,
.tb-acts-section--outdoors .tb-acts-section__more:focus-visible {
  background: #2e7d32;
  color: #fff;
}
.tb-acts-section__footer {
  margin-top: 1.75rem;
  text-align: center;
}
.tb-btn-green {
  background: #2e7d32;
  color: #fff;
  border-color: #2e7d32;
}
.tb-btn-green:hover,
.tb-btn-green:focus-visible {
  background: #1b5e20;
  border-color: #1b5e20;
}

/* ═══════════════════════════════════════════════════════════════════════
   ACTIVITIES PAGE — INDOORS / OUTDOORS BANDS
═══════════════════════════════════════════════════════════════════════ */
.tb-acts-band {
  border-radius: 20px;
  padding: 2rem 2rem 2.25rem;
  margin: 2rem 0;
}
.tb-acts-band--indoors {
  background: #e8f4fd;
  border: 3px solid #90caf9;
}
.tb-acts-band--outdoors {
  background: #e8f5e9;
  border: 3px solid #a5d6a7;
}
.tb-acts-band__hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.tb-acts-band__eyebrow {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #555;
  margin-bottom: .3rem;
}
.tb-acts-band--indoors .tb-acts-band__eyebrow { color: #1565c0; }
.tb-acts-band--outdoors .tb-acts-band__eyebrow { color: #2e7d32; }
.tb-acts-band__title {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  color: var(--navy);
  margin: 0 0 .25rem;
}
.tb-acts-band__sub {
  font-size: .88rem;
  color: #555;
  margin: 0;
}
.tb-acts-band__all-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .4rem 1.1rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .83rem;
  text-decoration: none;
  white-space: nowrap;
  align-self: center;
  touch-action: manipulation;
  border: 2px solid var(--navy);
  color: var(--navy);
  background: white;
  transition: background .15s, color .15s;
}
.tb-acts-band__all-link:hover,
.tb-acts-band__all-link:focus-visible {
  background: var(--navy);
  color: #fff;
}
.tb-acts-band__all-link--green {
  border-color: #2e7d32;
  color: #2e7d32;
}
.tb-acts-band__all-link--green:hover,
.tb-acts-band__all-link--green:focus-visible {
  background: #2e7d32;
  color: #fff;
}
.tb-acts-band__footer {
  margin-top: 1.75rem;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════
   FEATURED GAMES STRIP — homepage
═══════════════════════════════════════════════════════════════════════ */
.tb-featured-games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: 18px;
  margin-bottom: .5rem;
}
.tb-fg-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 3.5px solid var(--navy);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s;
}
.tb-fg-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.tb-fg-card__top {
  padding: 1.25rem 1rem .75rem;
  text-align: center;
  border-bottom: 2.5px solid var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}
.tb-fg-card__icon {
  font-size: 2.5rem;
  line-height: 1;
  display: block;
}
.tb-fg-card__badge {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: .2rem .7rem;
  border-radius: 50px;
  color: #fff;
}
.tb-fg-card__body {
  padding: .75rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.tb-fg-card__title {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--navy);
  margin: 0;
  line-height: 1.25;
}
.tb-fg-card__desc {
  font-size: .78rem;
  color: #555;
  line-height: 1.5;
  margin: 0;
}
.tb-fg-card__footer {
  padding: .6rem 1rem .85rem;
  text-align: center;
}
.tb-fg-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: .5rem 1rem;
  border-radius: 50px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: .82rem;
  min-height: 38px;
}
.tb-fg-card:hover .tb-fg-card__btn {
  background: #c45508;
}

/* ── Hub hero inner wrapper ───────────────────────────────────────────── */
.tb-page-hero__inner {
  text-align: center;
  position: relative;
  z-index: 1;
  width: 100%;
}
.tb-page-hero__inner h1,
.tb-page-hero__inner p,
.tb-page-hero__inner div {
  text-align: center;
}
.tb-outdoors-hero__badge,
.tb-indoors-hero__badge {
  font-size: clamp(2.5rem, 8vw, 4rem);
  display: block;
  margin-bottom: .5rem;
}
.tb-outdoors-hero__desc {
  font-size: 1.05rem;
  opacity: .92;
  max-width: 620px;
  margin: 0 auto .75rem;
  line-height: 1.7;
  text-align: center;
}

/* ── Plugin not installed notice ──────────────────────────────────────── */
.tb-plugin-notice {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 500px;
  margin: 0 auto;
}
.tb-plugin-notice__emoji { font-size: 4rem; display: block; margin-bottom: 1rem; }
.tb-plugin-notice h2 { font-family: var(--font-head); color: var(--navy); margin-bottom: .5rem; }
.tb-plugin-notice p { color: #555; font-size: .95rem; line-height: 1.6; }

/* ── Game Page Layout ─────────────────────────────────────────── */
.tb-game-page { background: var(--sky-light, #b3e5fc); }

.tb-game-hero {
    background: var(--navy);
    color: white;
    text-align: center;
    padding: 20px 32px 18px;
    margin: 20px 20px 0;
    border-radius: 28px;
    border: 4px solid var(--orange);
}
.tb-game-hero h1 {
    font-family: var(--font-head);
    font-size: 1.8rem;
    margin: 0;
}
.tb-game-back {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    color: rgba(255,255,255,.6);
    text-decoration: none;
    margin-bottom: 6px;
}
.tb-game-back:hover { color: var(--orange); }

.tb-game-container {
    margin: 16px 20px 24px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,.2);
}

/* Ensure game wrap fills container and doesn't burst out */
.tby-game-wrap {
    width: 100%;
    display: block;
    position: relative;
}
.tby-game-iframe {
    display: block;
    width: 100%;
    height: 700px;
    border: none;
    border-radius: 24px;
}
@media (max-width: 768px) {
    .tby-game-iframe { height: 560px; }
}
@media (max-width: 480px) {
    .tby-game-iframe { height: 480px; }
}
