/* =========================================================
   LaLa Go! Adventures & Travel - Steampunk Scrapbook Theme
   Shared Stylesheet (Single-Row Folder Tabs + Cutout UI)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&family=Fredoka:wght@500;600;700&family=Lora:ital,wght@0,400;0,600;1,400&family=Playfair+Display:ital,wght@0,700;1,600&display=swap');

:root {
  --bg-parchment: #efe5cf;
  --bg-paper: #fbf6eb;
  --bg-paper-alt: #f4ead6;
  --ink-dark: #241c15;
  --ink-muted: #5a4b3c;
  --brand-orange: #e8681a;
  --brand-orange-dark: #c44f0a;
  --brand-teal: #246885;
  --brand-teal-dark: #18495e;
  --brass: #c8963e;
  --brass-dark: #8c621d;
  --brass-light: #e7c57c;
  --tape-bg: rgba(246, 232, 189, 0.78);
  --shadow-paper: 0 8px 20px rgba(36, 28, 21, 0.16);
  --shadow-cutout: 0 6px 14px rgba(36, 28, 21, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-parchment);
  background-image:
    radial-gradient(rgba(140, 98, 29, 0.11) 1px, transparent 0),
    radial-gradient(rgba(36, 104, 133, 0.06) 1px, transparent 0);
  background-size: 28px 28px;
  background-position: 0 0, 14px 14px;
  color: var(--ink-dark);
  font-family: 'Lora', Georgia, serif;
  line-height: 1.65;
}

.page-wrapper {
  width: 94%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 14px 12px 40px;
}

/* =========================================================
   Single-Row Folder Tab Navigation
   ========================================================= */
.folder-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 5px;
  padding: 0 10px;
  margin-bottom: -2px;
  position: relative;
  z-index: 10;
  overflow-x: auto;
  scrollbar-width: thin;
}

.folder-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 13px 10px;
  background: linear-gradient(180deg, #e5d5b5 0%, #d4be94 100%);
  color: var(--ink-dark);
  text-decoration: none;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  border: 2px solid var(--ink-dark);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.folder-tab:hover {
  background: linear-gradient(180deg, #f6ebd4 0%, #e7d4ad 100%);
  transform: translateY(-2px);
  color: var(--brand-orange-dark);
}

.folder-tab.active {
  background: var(--bg-paper);
  color: var(--brand-orange);
  padding-bottom: 12px;
  margin-bottom: -2px;
  box-shadow: 0 -3px 10px rgba(36, 28, 21, 0.1);
}

/* =========================================================
   Main Scrapbook Sheet & Brass Rivets
   ========================================================= */
.scrapbook-sheet {
  position: relative;
  background: var(--bg-paper);
  border: 3px solid var(--ink-dark);
  border-radius: 14px;
  padding: 20px 24px 30px;
  box-shadow: var(--shadow-paper);
}

.rivet {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--brass-light), var(--brass) 60%, var(--brass-dark));
  border: 1.5px solid var(--ink-dark);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  z-index: 5;
}
.rivet.tl { top: 10px; left: 10px; }
.rivet.tr { top: 10px; right: 10px; }
.rivet.bl { bottom: 10px; left: 10px; }
.rivet.br { bottom: 10px; right: 10px; }

/* =========================================================
   Hero Cutout Banner & Headings
   ========================================================= */
.hero-cutout-frame {
  background: #ffffff;
  padding: 10px;
  border: 2px solid var(--ink-dark);
  border-radius: 10px;
  box-shadow: var(--shadow-cutout);
  margin-bottom: 16px;
  transform: rotate(-0.35deg);
}

.hero-cutout-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.page-header-banner {
  position: relative;
  background: linear-gradient(135deg, #fbf6eb 0%, #f1e3c6 100%);
  border: 2.5px dashed var(--brass-dark);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 26px;
  text-align: center;
}

.page-header-banner h1 {
  margin: 0 0 6px;
  font-family: 'Cinzel', serif;
  font-size: 2.1rem;
  color: var(--brand-orange);
  text-shadow: 1px 1px 0 var(--ink-dark);
  letter-spacing: 0.5px;
}

.page-header-banner p {
  margin: 0 auto;
  max-width: 740px;
  color: var(--ink-muted);
  font-size: 1.04rem;
}

/* =========================================================
   Scrapbook Cards, Masking Tape & Buttons
   ========================================================= */
.scrapbook-card {
  position: relative;
  background: #fffdf8;
  border: 2px solid var(--ink-dark);
  border-radius: 10px;
  padding: 18px 22px;
  box-shadow: var(--shadow-paper);
  margin-bottom: 18px;
}

.lined-paper {
  background-image: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 31px,
    rgba(36, 104, 133, 0.14) 32px
  );
}

.tape-strip {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-1.5deg);
  width: 128px;
  height: 24px;
  background: var(--tape-bg);
  border-left: 1px dashed rgba(140, 98, 29, 0.45);
  border-right: 1px dashed rgba(140, 98, 29, 0.45);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.stamp-badge {
  display: inline-block;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 11px;
  border-radius: 6px;
  border: 2px solid var(--brand-teal);
  color: var(--brand-teal);
  background: rgba(36, 104, 133, 0.08);
  transform: rotate(-1.2deg);
}

.stamp-badge.orange {
  border-color: var(--brand-orange);
  color: var(--brand-orange-dark);
  background: rgba(232, 104, 26, 0.1);
}

.btn-scrapbook {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--brand-orange);
  border: 2px solid var(--ink-dark);
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--ink-dark);
  transition: transform 0.12s ease, background 0.15s ease;
}

.btn-scrapbook:hover {
  background: var(--brand-orange-dark);
  transform: translateY(-1px);
}

.btn-scrapbook.teal {
  background: var(--brand-teal);
}

.btn-scrapbook.teal:hover {
  background: var(--brand-teal-dark);
}

.doorway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.doorway-card {
  display: block;
  background: var(--bg-paper-alt);
  border: 2px solid var(--ink-dark);
  border-radius: 10px;
  padding: 18px;
  text-decoration: none;
  color: var(--ink-dark);
  box-shadow: 0 5px 12px rgba(36, 28, 21, 0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.doorway-card:nth-child(odd) { transform: rotate(-0.7deg); }
.doorway-card:nth-child(even) { transform: rotate(0.7deg); }

.doorway-card:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 10px 20px rgba(36, 28, 21, 0.22);
}

.doorway-card h3 {
  margin: 8px 0 6px;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--brand-teal-dark);
}

/* =========================================================
   Visitor Guestbook Specific Styles
   ========================================================= */
.guestbook-layout {
  display: grid;
  grid-template-columns: minmax(300px, 380px) 1fr;
  gap: 26px;
  align-items: start;
}

@media (max-width: 860px) {
  .guestbook-layout {
    grid-template-columns: 1fr;
  }
}

.gb-form-group {
  margin-bottom: 14px;
}

.gb-form-group label {
  display: block;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 0.94rem;
  margin-bottom: 5px;
  color: var(--ink-dark);
}

.gb-form-group input,
.gb-form-group select,
.gb-form-group textarea {
  width: 100%;
  padding: 10px 12px;
  font-family: 'Lora', Georgia, serif;
  font-size: 0.96rem;
  color: var(--ink-dark);
  background: #fffdf8;
  border: 2px solid var(--ink-dark);
  border-radius: 7px;
  box-shadow: inset 0 2px 4px rgba(36, 28, 21, 0.08);
}

.gb-form-group input:focus,
.gb-form-group select:focus,
.gb-form-group textarea:focus {
  outline: none;
  border-color: var(--brand-teal);
  background: #ffffff;
}

.gb-status-banner {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 2px solid var(--brand-teal);
  background: rgba(36, 104, 133, 0.1);
  font-size: 0.93rem;
}

.gb-status-banner.visible {
  display: block;
}

.postcard-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 20px;
}

.postcard-entry {
  position: relative;
  background: #fffef9;
  border: 2px solid var(--ink-dark);
  border-radius: 8px;
  padding: 20px 18px 16px;
  box-shadow: 0 6px 14px rgba(36, 28, 21, 0.16);
  transition: transform 0.18s ease;
}

.postcard-entry:nth-child(3n+1) { transform: rotate(-0.8deg); }
.postcard-entry:nth-child(3n+2) { transform: rotate(0.6deg); }
.postcard-entry:nth-child(3n)   { transform: rotate(-0.3deg); }

.postcard-entry:hover {
  transform: rotate(0deg) translateY(-3px);
}

.postcard-entry.pending-local {
  border-style: dashed;
  border-color: var(--brand-orange);
  background: #fff9f2;
}

.postmark-stamp {
  float: right;
  margin: 0 0 8px 10px;
  padding: 5px 8px;
  border: 2px solid var(--brand-orange);
  border-radius: 5px;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--brand-orange-dark);
  text-align: center;
  line-height: 1.2;
  transform: rotate(4deg);
  background: rgba(232, 104, 26, 0.06);
}

.postcard-author {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-teal-dark);
  margin: 0 0 2px;
}

.postcard-meta {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.84rem;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.postcard-message {
  margin: 0;
  font-size: 0.97rem;
  color: var(--ink-dark);
  border-top: 1px dashed rgba(90, 75, 60, 0.35);
  padding-top: 10px;
}

.host-reply {
  margin-top: 10px;
  padding: 8px 10px;
  background: var(--bg-paper-alt);
  border-left: 3px solid var(--brass-dark);
  border-radius: 4px;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

/* =========================================================
   Footer
   ========================================================= */
.scrapbook-footer {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 2px dashed var(--brass-dark);
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* =========================================================
   Hero Steampunk Rocking Sign Overlay & Social Buttons
   ========================================================= */
.hero-cutout-frame {
  position: relative;
}

.hero-van-sign {
  position: absolute;
  top: 32%;
  left: 22.5%;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(180deg, #ff8d3b 0%, #e8681a 52%, #b84404 100%);
  color: #fffdf8;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 0.96rem;
  font-weight: 900;
  letter-spacing: 0.7px;
  text-shadow: 0 2px 2px rgba(36, 28, 21, 0.85);
  border: 3px solid #241c15;
  border-radius: 999px;
  outline: 3px solid #f5d384;
  outline-offset: -5px;
  box-shadow:
    0 0 0 3px rgba(255, 250, 235, 0.92),
    0 8px 18px rgba(36, 28, 21, 0.55),
    inset 0 2px 0 rgba(255, 238, 195, 0.75);
  transform-origin: 50% -20px;
  animation: steampunkRock 3.2s ease-in-out infinite;
  transition: filter 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

/* Brass hanging chain & pivot rivet above the rocking sign */
.hero-van-sign::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 19px;
  background: repeating-linear-gradient(
    to bottom,
    #241c15 0px,
    #241c15 3px,
    #f3d796 3px,
    #f3d796 6px
  );
}

.hero-van-sign::after {
  content: "";
  position: absolute;
  top: -27px;
  left: 50%;
  transform: translateX(-50%);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff5d6, #d99f38 65%, #6e4b12);
  border: 2px solid #241c15;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.hero-van-sign:hover {
  animation-play-state: paused;
  filter: brightness(1.08);
  box-shadow:
    0 0 0 4px #ffffff,
    0 10px 22px rgba(36, 28, 21, 0.65),
    inset 0 2px 0 rgba(255, 238, 195, 0.85);
}

.hero-van-sign.is-hidden {
  display: none;
}

@keyframes steampunkRock {
  0%, 100% { transform: translateX(-50%) rotate(-6deg); }
  50%      { transform: translateX(-50%) rotate(6deg); }
}

.sign-toggle-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 6;
  padding: 4px 10px;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-dark);
  background: rgba(251, 246, 235, 0.9);
  border: 1.5px solid var(--ink-dark);
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(36, 28, 21, 0.25);
}

.sign-toggle-btn:hover {
  background: #ffffff;
}

@media (max-width: 720px) {
  .hero-van-sign {
    top: 28%;
    left: 24%;
    font-size: 0.76rem;
    padding: 6px 12px;
  }
}

.social-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.btn-scrapbook.facebook {
  background: #2b5b84;
}

.btn-scrapbook.facebook:hover {
  background: #1f4464;
}

.btn-scrapbook.instagram {
  background: #b84a39;
}

.btn-scrapbook.instagram:hover {
  background: #963829;
}


/* =========================================================
   Stops & Stays (Interactive Leaflet Map + Side List)
   ========================================================= */
.stops-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 16px;
  background: var(--bg-paper-alt);
  border: 2px solid var(--ink-dark);
  border-radius: 10px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  padding: 6px 13px;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-dark);
  background: #fffdf8;
  border: 2px solid var(--ink-dark);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease, transform 0.12s ease;
}

.filter-pill:hover {
  background: #f6ebd4;
  transform: translateY(-1px);
}

.filter-pill.active {
  background: var(--brand-teal);
  color: #ffffff;
}

.stops-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 22px;
  align-items: start;
}

@media (max-width: 900px) {
  .stops-layout {
    grid-template-columns: 1fr;
  }
}

.map-frame {
  position: relative;
  background: #ffffff;
  padding: 10px;
  border: 2.5px solid var(--ink-dark);
  border-radius: 10px;
  box-shadow: var(--shadow-cutout);
}

#stops-map {
  width: 100%;
  height: 520px;
  border: 1.5px solid var(--ink-dark);
  border-radius: 6px;
  z-index: 1;
}

.stops-list-panel {
  max-height: 544px;
  overflow-y: auto;
  padding-right: 6px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stop-card {
  position: relative;
  background: #fffef9;
  border: 2px solid var(--ink-dark);
  border-radius: 9px;
  padding: 14px 16px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(36, 28, 21, 0.12);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.stop-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-teal);
}

.stop-card.active {
  background: #fff6ea;
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 2px rgba(232, 104, 26, 0.25), 0 6px 14px rgba(36, 28, 21, 0.18);
}

.stop-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 4px;
}

.stop-card h3 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.12rem;
  color: var(--brand-teal-dark);
}

.stop-type-tag {
  flex-shrink: 0;
  padding: 2px 8px;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 5px;
  border: 1.5px solid var(--ink-dark);
  background: var(--bg-paper-alt);
  color: var(--ink-dark);
}

.stop-type-tag.state-park { background: #dff0e4; color: #1e5631; border-color: #1e5631; }
.stop-type-tag.army-corps { background: #dceaf5; color: #18495e; border-color: #18495e; }
.stop-type-tag.harvest-hosts { background: #fce8d5; color: #b84404; border-color: #b84404; }
.stop-type-tag.national-forest { background: #e8eed9; color: #3d5219; border-color: #3d5219; }

.stop-meta {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.83rem;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.stop-notes {
  margin: 0;
  font-size: 0.93rem;
  color: var(--ink-dark);
}

.stop-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.stop-chip {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-paper-alt);
  color: var(--ink-muted);
  border: 1px solid rgba(90, 75, 60, 0.35);
}

/* Custom Steampunk Map Pin */
.steampunk-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--brand-orange);
  border: 2.5px solid #241c15;
  box-shadow: 0 3px 8px rgba(36, 28, 21, 0.45);
}

.steampunk-pin.teal {
  background: var(--brand-teal);
}

.steampunk-pin span {
  transform: rotate(45deg);
  font-size: 0.92rem;
  line-height: 1;
}

.leaflet-popup-content-wrapper {
  background: #fbf6eb;
  color: #241c15;
  border: 2px solid #241c15;
  border-radius: 8px;
  font-family: 'Lora', Georgia, serif;
}

.leaflet-popup-tip {
  background: #fbf6eb;
  border: 1px solid #241c15;
}

/* =========================================================
   Videos & Summaries Page (Compact Grid + Horizontal List)
   ========================================================= */
.featured-episode-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 430px) 1fr;
  gap: 22px;
  align-items: center;
  background: linear-gradient(135deg, #fffdf8 0%, #f6ebd4 100%);
  border: 2.5px solid var(--ink-dark);
  border-radius: 12px;
  padding: 18px 22px;
  box-shadow: var(--shadow-paper);
  margin-bottom: 20px;
}

@media (max-width: 860px) {
  .featured-episode-card {
    grid-template-columns: 1fr;
  }
}

.polaroid-thumb-link {
  position: relative;
  display: block;
  background: #ffffff;
  padding: 7px 7px 10px;
  border: 2px solid var(--ink-dark);
  border-radius: 8px;
  box-shadow: var(--shadow-cutout);
  text-decoration: none;
  transform: rotate(-0.6deg);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.polaroid-thumb-link:hover {
  transform: rotate(0deg) translateY(-2px);
  box-shadow: 0 8px 18px rgba(36, 28, 21, 0.25);
}

.polaroid-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(36, 28, 21, 0.25);
  background: #241c15;
}

.polaroid-thumb-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-medallion {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff8d3b, #e8681a 65%, #b84404);
  border: 2.5px solid #241c15;
  box-shadow: 0 0 0 2.5px rgba(255, 253, 248, 0.9), 0 5px 12px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fffdf8;
  font-size: 1.15rem;
  padding-left: 3px;
  transition: transform 0.15s ease;
}

.polaroid-thumb-link:hover .play-medallion {
  transform: translate(-50%, -50%) scale(1.08);
}

.duration-pill {
  position: absolute;
  bottom: 6px;
  right: 6px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(36, 28, 21, 0.88);
  color: #fffdf8;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  border: 1px solid #e7c57c;
}

.polaroid-caption {
  margin-top: 6px;
  text-align: center;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.videos-search-input {
  padding: 6px 12px;
  min-width: 210px;
  font-family: 'Lora', Georgia, serif;
  font-size: 0.88rem;
  color: var(--ink-dark);
  background: #fffdf8;
  border: 2px solid var(--ink-dark);
  border-radius: 999px;
}

.videos-search-input:focus {
  outline: none;
  border-color: var(--brand-teal);
}

.view-toggle-group {
  display: inline-flex;
  border: 2px solid var(--ink-dark);
  border-radius: 8px;
  overflow: hidden;
  background: #fffdf8;
}

.view-toggle-btn {
  padding: 5px 10px;
  border: none;
  background: transparent;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-dark);
  cursor: pointer;
}

.view-toggle-btn.active {
  background: var(--brand-orange);
  color: #ffffff;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}

.videos-grid.list-view {
  grid-template-columns: 1fr;
  gap: 14px;
}

.video-episode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fffdf8;
  border: 2px solid var(--ink-dark);
  border-radius: 10px;
  padding: 14px 15px 16px;
  box-shadow: var(--shadow-paper);
}

.videos-grid.list-view .video-episode-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
  align-items: start;
  padding: 14px 16px;
}

@media (max-width: 680px) {
  .videos-grid.list-view .video-episode-card {
    grid-template-columns: 1fr;
  }
}

.video-episode-card .polaroid-thumb-link {
  transform: rotate(0.3deg);
  margin-bottom: 10px;
}

.videos-grid.list-view .video-episode-card .polaroid-thumb-link {
  margin-bottom: 0;
  transform: none;
}

.video-episode-card:nth-child(even) .polaroid-thumb-link {
  transform: rotate(-0.4deg);
}

.videos-grid.list-view .video-episode-card:nth-child(even) .polaroid-thumb-link {
  transform: none;
}

.video-episode-card:hover .polaroid-thumb-link {
  transform: rotate(0deg) translateY(-2px);
}

.video-card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.video-card-title {
  margin: 6px 0 4px;
  font-family: 'Playfair Display', serif;
  font-size: 1.08rem;
  line-height: 1.3;
}

.video-card-title a {
  color: var(--brand-teal-dark);
  text-decoration: none;
}

.video-card-title a:hover {
  color: var(--brand-orange-dark);
  text-decoration: underline;
}

.video-card-meta {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.video-summary-text {
  margin: 0 0 8px;
  font-size: 0.9rem;
  line-height: 1.52;
  color: var(--ink-dark);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-episode-card.expanded .video-summary-text,
.videos-grid.list-view .video-summary-text {
  -webkit-line-clamp: unset;
  display: block;
}

.video-extended-notes {
  display: none;
  margin: 0 0 10px;
  padding: 8px 10px;
  background: var(--bg-paper-alt);
  border-left: 3px solid var(--brass-dark);
  border-radius: 4px;
  font-size: 0.88rem;
  color: var(--ink-dark);
}

.video-extended-notes.open {
  display: block;
}

.notes-toggle-link {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 8px;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-teal);
  cursor: pointer;
  text-decoration: underline;
}

.notes-toggle-link:hover {
  color: var(--brand-orange-dark);
}

.video-card-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed rgba(90, 75, 60, 0.35);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

/* =========================================================
   Retirement Progress Page
   ========================================================= */
.countdown-meter-card {
  position: relative;
  background: linear-gradient(135deg, #fffdf8 0%, #f4ead6 100%);
  border: 2.5px solid var(--ink-dark);
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: var(--shadow-paper);
  margin-bottom: 24px;
}

.brass-progress-track {
  width: 100%;
  height: 26px;
  background: #e5d5b5;
  border: 2px solid var(--ink-dark);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 2px 5px rgba(36, 28, 21, 0.25);
  margin: 12px 0 8px;
}

.brass-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-teal) 0%, var(--brand-orange) 100%);
  border-right: 2px solid var(--ink-dark);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  color: #ffffff;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  transition: width 0.5s ease;
}

.retirement-two-col {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 880px) {
  .retirement-two-col {
    grid-template-columns: 1fr;
  }
}

.milestone-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: #fffef9;
  border: 2px solid var(--ink-dark);
  border-radius: 9px;
  margin-bottom: 12px;
  box-shadow: 0 3px 8px rgba(36, 28, 21, 0.1);
}

.milestone-item.done {
  background: #f3faf5;
  border-color: #2c6e49;
}

.milestone-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  border: 2px solid var(--ink-dark);
  background: var(--brass-light);
}

.milestone-item.done .milestone-icon {
  background: #2c6e49;
  color: #ffffff;
}

.scouting-card {
  background: #fffef9;
  border: 2px solid var(--ink-dark);
  border-radius: 9px;
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 10px rgba(36, 28, 21, 0.12);
}

/* =========================================================
   Latest News / Road Dispatches Page
   ========================================================= */
.news-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 22px;
}

@media (max-width: 480px) {
  .news-feed {
    grid-template-columns: 1fr;
  }
}

.news-dispatch-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fffef9;
  border: 2px solid var(--ink-dark);
  border-radius: 10px;
  padding: 20px 22px;
  box-shadow: var(--shadow-paper);
}

.news-dispatch-card.pinned {
  background: linear-gradient(135deg, #fffdf8 0%, #f7ecd6 100%);
  border-width: 2.5px;
}

.news-dispatch-card h2 {
  margin: 8px 0 4px;
  font-family: 'Playfair Display', serif;
  font-size: 1.28rem;
  color: var(--brand-teal-dark);
}

/* =========================================================
   Mobile Phone Breakpoint Polish (< 640px)
   ========================================================= */
@media (max-width: 640px) {
  .page-wrapper {
    width: 100%;
    padding: 10px 10px 24px;
  }

  .folder-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 6px;
    padding: 0;
    margin-bottom: 10px;
    overflow: visible;
  }

  .folder-tab,
  .folder-tab.active {
    min-height: 44px;
    padding: 6px 8px;
    margin: 0;
    border-bottom: 2px solid var(--ink-dark);
    border-radius: 9px;
    font-size: 0.84rem;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
  }

  .folder-tab.active {
    color: var(--brand-orange-dark);
    box-shadow: inset 0 -3px var(--brand-orange);
  }

  .scrapbook-sheet {
    min-width: 0;
    padding: 14px 10px 22px;
    border-width: 2px;
  }

  .page-header-banner {
    padding: 14px 10px;
    margin-bottom: 18px;
  }

  .page-header-banner h1 {
    font-size: clamp(1.25rem, 5.6vw, 1.55rem);
    line-height: 1.25;
  }

  .page-header-banner p {
    font-size: 0.94rem;
  }

  .hero-cutout-frame {
    padding: 5px;
    transform: none;
  }

  .hero-van-sign {
    position: static;
    width: fit-content;
    min-height: 44px;
    justify-content: center;
    margin: 8px auto 3px;
    display: flex;
    padding: 6px 13px;
    font-size: 0.76rem;
    animation: none;
  }

  .hero-van-sign::before,
  .hero-van-sign::after,
  .sign-toggle-btn {
    display: none;
  }

  .doorway-grid,
  .videos-grid,
  .videos-grid.list-view,
  .videos-grid.list-view .video-episode-card,
  .guestbook-layout,
  .retirement-two-col {
    grid-template-columns: minmax(0, 1fr);
  }

  .social-btn-row .btn-scrapbook {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    text-align: center;
  }

  .videos-search-input,
  .gb-form-group :is(input, select, textarea) {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    font-size: 1rem;
  }

  .filter-pill,
  .view-toggle-btn {
    min-height: 44px;
  }
}

@media (max-width: 640px) and (min-width: 450px) {
  .folder-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-van-sign {
    animation: none;
  }

  @media (min-width: 641px) {
    .hero-van-sign {
      transform: translateX(-50%);
    }
  }
}

/* =========================================================
   Top Folder Bar Quick Social Icons
   ========================================================= */
.folder-nav-socials {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 6px;
}

.nav-social-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--ink-dark);
  background: #fffdf8;
  color: var(--ink-dark);
  text-decoration: none;
  font-size: 0.92rem;
  box-shadow: 0 2px 0 var(--ink-dark);
  transition: transform 0.14s ease, background 0.14s ease, color 0.14s ease;
}

.nav-social-pill:hover {
  transform: translateY(-2px);
  color: #ffffff;
}

.nav-social-pill.yt:hover { background: var(--brand-orange); }
.nav-social-pill.fb:hover { background: #2b5b84; }
.nav-social-pill.ig:hover { background: #b84a39; }

@media (max-width: 860px) {
  .folder-nav-socials {
    display: none;
  }
}
