/* ═══════════════════════════════════════════════════════════
   FORUM PLAYBOOK - styles.css
   Design: Schematic Light (locked)
   Fonts: Big Shoulders Display / DM Mono / DM Sans
   ═══════════════════════════════════════════════════════════ */

/* ── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; }
button { background: none; border: none; font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* ── CSS TOKENS ─────────────────────────────────────────── */
:root {
  --pitch:       #0E0E0C;
  --burn:        #E8521A;
  --brick:       #B83A14;
  --gold:        #D4A832;
  --teal:        #3A8A8A;
  --blue:        #2A6E9A;
  --linen:       #F0EBE0;
  --linen-dark:  #E8E2D6;
  --dust:        #C4B8A8;
  --deep-dust:   #4A4038;
  --border:      #C8C0B4;
  --white:       #FFFFFF;

  --font-display: 'Big Shoulders Display', sans-serif;
  --font-mono:    'DM Mono', monospace;
  --font-body:    'DM Sans', sans-serif;
}

/* ── BASE ───────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  background: var(--linen);
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--pitch);
  min-height: 100vh;
}

/* NO SIDEWAYS PANNING, EVER (Colton, 2026-09-22: on his phone the page scrolled
   sideways off the content). The real cause was the resource rail (fixed at the
   rail rules below); this locks the page to the screen width so nothing can do
   it again. clip on body, never hidden: hidden would make body a scroll box and
   unstick the sticky nav and rail. html's value moves to the viewport; hidden is
   listed first only for browsers too old to know clip. */
html { overflow-x: hidden; overflow-x: clip; }
body { overflow-x: clip; }

/* ── STRIPE HOVER SYSTEM ────────────────────────────────── */
@keyframes wave1 { 0% { transform: translateX(-100%); } 100% { transform: translateX(0%); } }
@keyframes wave2 { 0% { transform: translateX(-100%); } 100% { transform: translateX(0%); } }

.sh {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: inline-block;
  transition: box-shadow 0.5s ease, transform 0.3s ease;
}
.sh::before,
.sh::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
}
.sh::before { z-index: 0; }
.sh::after  { z-index: 1; }
.sh:hover::before { animation: wave1 0.5s cubic-bezier(0.4,0,0.2,1) 0s    forwards; }
.sh:hover::after  { animation: wave2 0.5s cubic-bezier(0.4,0,0.2,1) 0.32s forwards; }
.sh > span { position: relative; z-index: 2; transition: color 0.12s ease 0.32s; }

/* Warm family: Gold → Teal */
.warm::before { background: var(--gold); }
.warm::after  { background: var(--teal); }
.warm:hover   { box-shadow: 0 8px 28px rgba(58,138,138,0.5), 0 2px 8px rgba(58,138,138,0.25); transform: translateY(-2px); }
.warm:hover > span { color: #fff; }

/* Cool family: Teal → Blue */
.cool::before { background: var(--teal); }
.cool::after  { background: var(--blue); }
.cool:hover   { box-shadow: 0 8px 28px rgba(42,110,154,0.5), 0 2px 8px rgba(42,110,154,0.25); transform: translateY(-2px); }
.cool:hover > span { color: #fff; }

/* Dark pill: Gold → Teal */
.dp::before { background: var(--gold); }
.dp::after  { background: var(--teal); }
.dp:hover   { box-shadow: 0 8px 28px rgba(58,138,138,0.5), 0 2px 8px rgba(58,138,138,0.25); transform: translateY(-2px); }
.dp:hover > span { color: #fff; }


/* ══════════════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--linen);
  border-bottom: 0.5px solid var(--border);
  padding: 0 40px;
  height: 54px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav nav {
  display: flex;
  gap: 28px;
  margin-right: auto;
}

.logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: var(--pitch);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 32px;
}

.logo-mark {
  font-family: 'Consolas', monospace;
  font-size: 16px;
  font-weight: 400;
  color: var(--burn);
  flex-shrink: 0;
  line-height: 1;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #8A8070;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--brick), var(--burn), var(--gold), var(--teal));
  transition: width 0.4s cubic-bezier(0.4,0,0.2,1);
}
.nav-link:hover { color: var(--pitch); }
.nav-link:hover::after { width: 100%; }

.nav-cta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 18px;
  border: 0.5px solid var(--pitch);
  color: var(--pitch);
}
.nav-cta:hover { border-color: var(--teal); }


/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hero {
  background: var(--linen);
  padding: 40px 40px 0;
  position: relative;
  overflow: hidden;
  min-height: 300px;
}

.hero-stripe {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 33.333%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}
.hs { flex: 1; align-self: flex-end; width: 100%; }

.hero-inner { position: relative; z-index: 1; }

.annot {
  font-family: var(--font-mono);
  font-size: 9px;
  color: #A89880;
  letter-spacing: 0.18em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.annot-box {
  border: 0.5px solid var(--dust);
  padding: 2px 7px;
  font-size: 9px;
  color: #A89880;
  transition: border-color 0.2s, color 0.2s;
  cursor: default;
}
.annot-box:hover { border-color: var(--burn); color: var(--burn); }
.annot-line { flex: 1; height: 0.5px; background: var(--dust); max-width: 60px; }

.h1 {
  font-family: var(--font-display);
  font-size: 88px;
  font-weight: 900;
  color: var(--pitch);
  line-height: 0.88;
  letter-spacing: -1px;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.h1 .accent { color: var(--burn); }
.h1 .accent-gold { color: var(--gold); }

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 24px 0 0;
  border-top: 0.5px solid var(--dust);
  margin-top: 32px;
}

.hero-sub {
  font-size: 13px;
  color: #7A7060;
  max-width: 320px;
  line-height: 1.65;
  font-weight: 300;
}

.stats { display: flex; gap: 36px; padding-bottom: 4px; }
.stat { cursor: default; }
.stat-num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 900;
  color: var(--pitch);
  line-height: 1;
  transition: color 0.2s;
}
.stat:hover .stat-num { color: var(--burn); }
.stat-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: #A89880;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2px;
}


/* ══════════════════════════════════════════════════════════
   SEARCH + FILTER ROW
══════════════════════════════════════════════════════════ */
.search-row {
  background: var(--linen-dark);
  padding: 18px 40px;
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.search-wrap {
  flex: 1;
  min-width: 200px;
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 12px;
  font-size: 16px;
  color: #A89880;
  pointer-events: none;
  line-height: 1;
}
.search-input {
  width: 100%;
  background: var(--linen);
  border: 0.5px solid var(--dust);
  height: 40px;
  padding: 0 14px 0 34px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--pitch);
  letter-spacing: 0.04em;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.search-input::placeholder { color: #A89880; }
.search-input:hover { border-color: #8A8070; }
.search-input:focus { border-color: var(--teal); }

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

.pill {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 0.5px solid var(--dust);
  color: #5A5048;
  cursor: pointer;
  transition: border-color 0.2s;
}
.pill.active {
  background: var(--pitch);
  color: var(--linen);
  border-color: var(--pitch);
}


/* ══════════════════════════════════════════════════════════
   SECTION HEADERS
══════════════════════════════════════════════════════════ */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 20px 40px 0;
}

.resources-header {
  background: var(--linen);
  padding-bottom: 16px;
  border-bottom: 0.5px solid var(--border);
}

.section-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  color: var(--pitch);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.section-count {
  font-family: var(--font-mono);
  font-size: 9px;
  color: #A89880;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}


/* ══════════════════════════════════════════════════════════
   RESOURCE CARDS
══════════════════════════════════════════════════════════ */
.cards {
  padding: 24px 40px 40px;
  background: var(--linen);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.card {
  background: var(--white);
  border: 0.5px solid #D4CCC0;
  position: relative;
  padding: 20px;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.4s, transform 0.3s;
}
.card:hover {
  border-color: var(--burn);
  box-shadow: 0 10px 32px rgba(58,138,138,0.18), 0 2px 8px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    #B83A14 0%, #B83A14 16%,
    #D4611A 16%, #D4611A 32%,
    #E8521A 32%, #E8521A 48%,
    #D4A832 48%, #D4A832 64%,
    #3A8A8A 64%, #3A8A8A 80%,
    #2A6E9A 80%, #2A6E9A 100%
  );
  background-size: 300% 100%;
  background-position: 200% center;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: opacity 0.1s;
}
.card:hover::after {
  opacity: 1;
  animation: wave1 0.55s cubic-bezier(0.4,0,0.2,1) forwards;
}

.corner-tl {
  position: absolute;
  top: -1px; left: -1px;
  width: 12px; height: 12px;
  border-top: 1px solid var(--burn);
  border-left: 1px solid var(--burn);
}
.corner-br {
  position: absolute;
  bottom: -1px; right: -1px;
  width: 12px; height: 12px;
  border-bottom: 1px solid var(--dust);
  border-right: 1px solid var(--dust);
  transition: border-color 0.25s;
}
.card:hover .corner-br { border-color: var(--burn); }

.card-id {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--dust);
  letter-spacing: 0.14em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}
.card-id-box {
  border: 0.5px solid #D4CCC0;
  padding: 1px 6px;
  font-size: 8px;
  color: var(--burn);
  letter-spacing: 0.1em;
}

.card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--pitch);
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.card-meta {
  font-family: var(--font-mono);
  font-size: 9px;
  color: #A89880;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.card-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 11px;
  border: 0.5px solid var(--dust);
  color: #5A5048;
  cursor: pointer;
  display: inline-block;
}

.btn-primary {
  background: var(--burn);
  border-color: var(--burn);
  color: var(--white);
}

.btn-ghost {
  border-color: #8A8070;
  color: var(--deep-dust);
}

.skeleton { pointer-events: none; }
.skel-line {
  background: linear-gradient(90deg, #E8E2D6 25%, #F0EBE0 50%, #E8E2D6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 2px;
  margin-bottom: 8px;
  height: 10px;
}
.skel-short { width: 40%; }
.skel-title { height: 18px; width: 80%; }
.skel-meta  { width: 60%; }
.skel-btns  { display: flex; gap: 6px; margin-top: 12px; }
.skel-btn   { height: 28px; width: 64px; background: #E8E2D6; border-radius: 2px; }

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.empty-state {
  padding: 60px 40px;
  text-align: center;
  background: var(--linen);
}
.empty-icon {
  font-size: 32px;
  color: var(--dust);
  margin-bottom: 12px;
}
.empty-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--pitch);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.empty-msg {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #A89880;
  letter-spacing: 0.08em;
}


/* ══════════════════════════════════════════════════════════
   CORE RESOURCES SECTION
══════════════════════════════════════════════════════════ */
.core-section {
  background: var(--linen);
  border-top: 0.5px solid var(--border);
  padding-bottom: 0;
}

.core-section-header {
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--burn);
  text-transform: uppercase;
  border: 0.5px solid var(--burn);
  padding: 2px 7px;
  flex-shrink: 0;
}

.section-rule {
  flex: 1;
  height: 0.5px;
  background: var(--border);
}

/* 4-column grid on linen-dark */
.core-grid {
  background: var(--linen-dark);
  border-top: 0.5px solid var(--border);
  padding: 24px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

/* Centered white card with burn top border */
.core-card {
  background: var(--white);
  border: 0.5px solid #D4CCC0;
  border-top: 2px solid var(--burn);
  border-left: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.core-badge {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--burn);
  border: 0.5px solid var(--burn);
  padding: 2px 6px;
  display: inline-block;
  margin-bottom: 16px;
}

.core-icon-wrap {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Equal-width buttons, no wrap */
.core-card .card-btns {
  justify-content: center;
  flex-wrap: nowrap;
  width: 100%;
}

.core-card .card-btns .btn {
  flex: 1;
  text-align: center;
  padding: 6px 4px;
  font-size: 8px;
}

/* Links-type core card: stack buttons vertically so longer labels fit */
.core-card-links .core-links-btns {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 6px;
}
.core-card-links .core-links-btns .btn {
  width: 100%;
  flex: none;
  padding: 8px 6px;
  font-size: 9px;
}


/* ══════════════════════════════════════════════════════════
   VIDEO HUB
══════════════════════════════════════════════════════════ */
.videos-section {
  background: var(--linen-dark);
  border-top: 0.5px solid var(--border);
  padding-bottom: 40px;
}

.videos-section .section-header {
  padding-bottom: 16px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 40px;
}

.video-card {
  background: var(--white);
  border: 0.5px solid #D4CCC0;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.4s, transform 0.3s;
}
.video-card:hover {
  border-color: var(--teal);
  box-shadow: 0 10px 32px rgba(42,110,154,0.18), 0 2px 8px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.video-thumb {
  height: 90px;
  background: #2A3028;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.3s;
}
.video-card:hover .video-thumb img { opacity: 1; }

.play-btn {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(232,82,26,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
}
.video-card:hover .play-btn { background: var(--burn); transform: scale(1.1); }

.play-triangle {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 10px;
  border-color: transparent transparent transparent #fff;
  margin-left: 2px;
}

.yt-badge {
  position: absolute;
  bottom: 5px;
  right: 7px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 8px;
  padding: 2px 5px;
  letter-spacing: 0.08em;
}

.video-info { padding: 10px 14px 12px; }

.video-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--pitch);
  line-height: 1.5;
  margin-bottom: 5px;
  letter-spacing: 0.02em;
}

.video-meta {
  font-family: var(--font-mono);
  font-size: 9px;
  color: #8A8070;
  letter-spacing: 0.06em;
}

.skeleton-video { pointer-events: none; }
.video-thumb-skel {
  height: 90px;
  background: linear-gradient(90deg, #D4CCC0 25%, #E8E2D6 50%, #D4CCC0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}


/* ══════════════════════════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14,14,12,0.85);
  cursor: pointer;
}

.lightbox-inner {
  position: relative;
  z-index: 1;
  width: 90vw;
  max-width: 900px;
  aspect-ratio: 16/9;
  background: var(--pitch);
}

.lightbox-embed { width: 100%; height: 100%; }
.lightbox-embed iframe { width: 100%; height: 100%; border: none; }

.lightbox-close {
  position: absolute;
  top: -36px;
  right: 0;
  color: var(--linen);
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.1em;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }


/* ══════════════════════════════════════════════════════════
   ABOUT SECTION
══════════════════════════════════════════════════════════ */
.about-section {
  background: var(--linen);
  border-top: 0.5px solid var(--border);
  padding: 48px 40px;
}
.about-link {
  color: var(--burn);
  text-decoration: none;
  border-bottom: 0.5px solid var(--burn);
  transition: color 0.2s, border-color 0.2s;
}
.about-link:hover {
  color: var(--teal);
  border-color: var(--teal);
}

.about-title {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 900;
  color: var(--pitch);
  line-height: 0.9;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  margin: 16px 0 24px;
}
.about-title .accent { color: var(--burn); }

.about-body {
  font-size: 15px;
  color: #7A7060;
  max-width: 560px;
  line-height: 1.7;
  font-weight: 300;
}

.footer-links { display: flex; gap: 20px; }
.footer-link {
  font-family: var(--font-mono);
  font-size: 9px;
  color: #4A4A38;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer-link:hover { color: #A8A494; }


/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.footer {
  background: var(--pitch);
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: 'Consolas', monospace;
  font-size: 14px;
  font-weight: 700;
  color: #A8A494;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-logo-mark {
  color: var(--burn);
  font-weight: 400;
  line-height: 1;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 9px;
  color: #4A4A38;
  letter-spacing: 0.1em;
}


/* ══════════════════════════════════════════════════════════
   RESPONSIVE - TABLET / MOBILE
══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .core-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .nav { padding: 0 20px; gap: 16px; }
  .hero { padding: 28px 20px 0; }
  .h1 { font-size: 60px; }
  .hero-stripe { width: 120px; }
  .hero-bottom { flex-direction: column; gap: 20px; align-items: flex-start; }
  .search-row { padding: 14px 20px; }
  .section-header { padding: 16px 20px 0; }
  .cards { padding: 16px 20px 24px; grid-template-columns: 1fr 1fr; gap: 8px; }
  .core-grid { padding: 16px 20px; }
  .video-grid { grid-template-columns: 1fr; padding: 0 20px; }
  .about-section { padding: 32px 20px; }
  .about-title { font-size: 44px; }
  .footer { padding: 16px 20px; flex-wrap: wrap; gap: 10px 20px; }  /* wraps, never runs off a 320px phone */

  /* ── Mobile readability bump ── */

  /* Nav */
  .nav-link { font-size: 12px; }
  .nav-cta  { font-size: 11px; padding: 9px 16px; }

  /* Hero stats: two by two, so the fourth never runs off the right edge */
  .stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; width: 100%; }
  .stat-num   { font-size: 38px; }
  .stat-label { font-size: 11px; }
  .hero-sub   { font-size: 14px; }

  /* Section labels */
  .section-title { font-size: 22px; }
  .section-count { font-size: 11px; }
  .section-tag   { font-size: 10px; }

  /* Search */
  .search-input { font-size: 14px; height: 44px; }

  /* Resource cards */
  .card-title { font-size: 18px; }
  .card-meta  { font-size: 11px; }
  .btn        { font-size: 11px; padding: 9px 12px; }

  /* Accordion headers - taller tap target */
  .acc-header { padding: 16px; min-height: 52px; }
  .acc-cat-name { font-size: 15px; }
  .acc-count    { font-size: 11px; }

  /* Doc rows - stack name above buttons to prevent overlap */
  .doc-row {
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    min-height: 44px;
  }
  .doc-name {
    width: 100%;
    font-size: 12px;
  }
  .doc-meta { display: none; }
  .doc-btns { width: 100%; }
  .doc-btns .btn { font-size: 11px; padding: 8px 12px; }

  /* Sub-folder headers */
  .sub-header { padding: 12px 16px 12px 28px; min-height: 44px; }
  .sub-folder-name { font-size: 12px; }

  /* Video cards */
  .video-title { font-size: 13px; }
  .video-meta  { font-size: 11px; }

  /* About */
  .about-body { font-size: 15px; }
}

@media (max-width: 480px) {
  .cards { grid-template-columns: 1fr; }
  .core-grid { grid-template-columns: repeat(2, 1fr); }
  .h1 { font-size: 48px; }
  .nav nav { display: none; }
}

/* ══════════════════════════════════════════════════════════
   ACCORDION - RESOURCE LIBRARY
══════════════════════════════════════════════════════════ */
.accordion-wrap {
  background: var(--linen);
  padding: 16px 40px 40px;
}

.acc-category {
  border: 0.5px solid var(--border);
  margin-bottom: 6px;
  background: var(--white);
}

.acc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}
.acc-header:hover { background: #F8F4EE; }
.acc-header.open  { border-left-color: var(--burn); background: #F8F4EE; }

.acc-header-left { display: flex; align-items: center; gap: 12px; }

.acc-cat-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--pitch);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.acc-count {
  font-family: var(--font-mono);
  font-size: 8px;
  color: #A89880;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.acc-caret {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--dust);
  transition: transform 0.25s;
  display: inline-block;
  flex-shrink: 0;
}
.acc-header.open .acc-caret { transform: rotate(180deg); color: var(--burn); }

.acc-body {
  display: none;
  border-top: 0.5px solid var(--linen-dark);
}
.acc-body.open { display: block; }

.acc-empty {
  font-family: var(--font-mono);
  font-size: 9px;
  color: #A89880;
  letter-spacing: 0.08em;
  padding: 14px 16px;
}

/* Document rows */
.doc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 0.5px solid #F4F0EA;
  transition: background 0.15s;
}
.doc-row:last-child { border-bottom: none; }
.doc-row:hover { background: #FAFAF8; }

.doc-name {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--pitch);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex: 1;
  min-width: 0;
}

.doc-meta {
  font-family: var(--font-mono);
  font-size: 8px;
  color: #A89880;
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
}

.doc-btns {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

/* Subfolder rows */
.sub-folder {
  border-top: 0.5px solid var(--linen-dark);
  background: #F8F4EE;
}

.sub-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 28px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}
.sub-header:hover { background: #F2EDE4; }
.sub-header.open .sub-caret { transform: rotate(180deg); color: var(--burn); }

.sub-folder-name {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--deep-dust);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex: 1;
}

.sub-folder-count {
  font-family: var(--font-mono);
  font-size: 8px;
  color: #A89880;
  letter-spacing: 0.08em;
}

.sub-caret {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--dust);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.sub-body { display: none; }
.sub-body.open { display: block; }

/* Restricted accordion variant */
.acc-restricted .acc-header { opacity: 0.6; }
.acc-restricted .acc-header:hover { background: transparent; }

.restricted-body {
  padding: 16px 20px;
  color: #8A8070;
}
.restricted-copy {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: #6E6458;
  margin-bottom: 10px;
}
.restricted-links {
  list-style: none;
  margin: 8px 0 12px;
  padding: 0;
}
.restricted-links li {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 4px 0;
}
.restricted-links a {
  color: var(--burn);
  border-bottom: 0.5px solid rgba(232, 82, 26, 0.35);
  transition: border-color 0.15s, color 0.15s;
}
.restricted-links a:hover {
  color: var(--brick);
  border-bottom-color: var(--brick);
}
.restricted-note {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #A89880;
  margin-left: 6px;
  text-transform: uppercase;
}
.restricted-fineprint {
  font-size: 11px;
  color: #A89880;
  margin-bottom: 0;
  font-style: italic;
}

/* Responsive */
@media (max-width: 680px) {
  .accordion-wrap { padding: 12px 20px 24px; }
}

/* ── VIDEO THUMBNAIL - true 16:9 ratio ─────────────────── */
.video-thumb-16x9 {
  position: relative;
  width: 100%;
  padding-bottom: 42%;
  background: #2A3028;
  overflow: hidden;
}

.video-thumb-16x9 img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 0.3s;
}
.video-card:hover .video-thumb-16x9 img { opacity: 1; }

.video-thumb-placeholder {
  position: absolute;
  inset: 0;
  background: #2A3028;
}

.video-thumb-16x9 .play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.video-thumb-16x9 .yt-badge {
  position: absolute;
  bottom: 6px; right: 8px;
  z-index: 2;
}

/* ── VIDEO INFO ROW - icon + text ───────────────────────── */
.video-info {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px 14px;
}

.video-type-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

.video-text { flex: 1; min-width: 0; }

/* ── FOLDER ICONS ───────────────────────────────────────── */
.folder-icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════
   V2 SPLIT FINDER (locked 2026-08-10) - bucket rail + preview rows.
   Namespaced fx- so nothing above is disturbed. Wave keyframes reused
   from the button system; the full-bar wave is Colton's 8/10 spec.
   ═══════════════════════════════════════════════════════════ */
.finder { display: grid; grid-template-columns: 250px 1fr; gap: 20px; align-items: start; }
.fx-rail { position: sticky; top: 20px; background: var(--white); border: 0.5px solid #D4CCC0; padding: 10px; }
.fx-rail-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: transparent; border: 0; border-left: 3px solid transparent; padding: 11px 10px;
  cursor: pointer; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--deep-dust); min-height: 44px; text-decoration: none; }
.fx-rail-item:hover { background: var(--linen); color: var(--burn); }
.fx-rail-item.on { border-left-color: var(--burn); background: var(--linen); color: var(--pitch); font-weight: 500; }
.fx-rail-ic { flex: 0 0 auto; display: inline-flex; }
.fx-rail-label { flex: 1 1 auto; min-width: 0; }
.fx-rail-count { color: #5A5048; font-size: 10px; }
.fx-rail-split { height: 0.5px; background: var(--border); margin: 8px 0; }
.fx-panewrap { min-width: 0; }

.fx-row { background: var(--white); border: 0.5px solid #D4CCC0; position: relative; margin-bottom: 9px; overflow: hidden; }
.fx-tick-tl { position: absolute; top: -1px; left: -1px; width: 12px; height: 12px;
  border-top: 1px solid var(--burn); border-left: 1px solid var(--burn); z-index: 3; }
.fx-row-main { display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; position: relative; z-index: 2; }
.fx-ic { flex: 0 0 auto; width: 36px; height: 36px; border: 0.5px solid var(--border);
  background: var(--linen); display: flex; align-items: center; justify-content: center; }
.fx-grow { flex: 1 1 auto; min-width: 0; }
.fx-name { font-family: var(--font-body); font-size: 16px; font-weight: 500; color: var(--pitch); line-height: 1.3; }
.fx-meta { font-family: var(--font-mono); font-size: 10.5px; color: #5A5048; letter-spacing: 0.07em;
  text-transform: uppercase; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-btns { display: flex; gap: 7px; flex: 0 0 auto; }
.fx-caret { flex: 0 0 auto; color: #5A5048; font-size: 12px; transition: transform 0.3s; }
.fx-row.open .fx-caret { transform: rotate(180deg); }

/* full-bar wave: gold sweeps, teal lands, content flips white, buttons pop */
.fx-row.wv::before, .fx-row.wv::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); pointer-events: none; z-index: 1; }
.fx-row.wv::before { background: var(--gold); }
.fx-row.wv::after { background: var(--teal); }
.fx-row.wv:hover::before, .fx-row.wv:active::before { animation: wave1 0.6s cubic-bezier(0.4,0,0.2,1) 0s forwards; }
.fx-row.wv:hover::after, .fx-row.wv:active::after { animation: wave2 0.6s cubic-bezier(0.4,0,0.2,1) 0.4s forwards; }
.fx-row.wv:hover { box-shadow: 0 8px 26px rgba(58,138,138,0.42); transform: translateY(-2px); }
.fx-row.wv, .fx-row.wv .fx-name, .fx-row.wv .fx-meta, .fx-row.wv .fx-caret, .fx-row.wv .fx-ic,
.fx-row.wv .btn { transition-property: color, background-color, border-color, transform, box-shadow; transition-duration: 0.25s; }
.fx-row.wv:hover .fx-name, .fx-row.wv:hover .fx-meta, .fx-row.wv:hover .fx-caret { color: #fff; transition-delay: 0.4s; }
.fx-row.wv:hover .fx-ic { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.45); transition-delay: 0.4s; }
.fx-row.wv:hover .btn { border-color: rgba(255,255,255,0.75); color: #fff; transition-delay: 0.4s; }
.fx-row.wv:hover .btn-primary { background: #fff; border-color: #fff; color: var(--pitch); }
.fx-row.wv:hover .btn-ghost { color: #fff; }
/* an open row is a reading surface: no wave */
.fx-row.open::before, .fx-row.open::after { display: none; }
.fx-row.open:hover { transform: none; box-shadow: 0 6px 20px rgba(14,14,12,0.10); }
.fx-row.open:hover .fx-name, .fx-row.open:hover .fx-meta, .fx-row.open:hover .fx-caret { color: inherit; transition-delay: 0s; }
.fx-row.open:hover .fx-ic { background: var(--linen); border-color: var(--border); transition-delay: 0s; }
.fx-row.open:hover .btn { border-color: var(--border); color: inherit; transition-delay: 0s; }
.fx-row.open:hover .btn-primary { background: var(--burn); border-color: var(--burn); color: #fff; }

.fx-expand { max-height: 0; overflow: hidden; transition: max-height 0.45s cubic-bezier(0.4,0,0.2,1); position: relative; z-index: 2; }
.fx-row.open .fx-expand { max-height: 540px; }
.fx-prev { display: grid; grid-template-columns: 280px 1fr; gap: 20px; padding: 4px 16px 18px 66px; align-items: start; }
.fx-thumb { border: 0.5px solid var(--border); background: var(--white); height: 200px; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: #5A5048; }
.fx-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.fx-thumb.noimg { background: var(--linen); }
.fx-thumb-cap { font-family: var(--font-mono); font-size: 9.5px; color: #5A5048; letter-spacing: 0.09em; text-transform: uppercase; margin-top: 6px; }
.fx-prev-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; text-transform: uppercase; color: var(--pitch); margin-bottom: 5px; }
.fx-prev-desc { font-family: var(--font-body); font-size: 13.5px; font-weight: 300; color: var(--deep-dust); margin-bottom: 12px; max-width: 52ch; }
.fx-btns-big { display: flex; gap: 9px; flex-wrap: wrap; }
.fx-restricted { background: var(--white); border: 0.5px solid #D4CCC0; padding: 6px 4px; }

@media (max-width: 880px) {
  /* minmax(0, 1fr), not 1fr: a plain 1fr track grows to fit its widest child,
     which is how the rail once pushed the whole page to 8,545px wide. */
  .finder { grid-template-columns: minmax(0, 1fr); }
  .fx-rail { position: static; display: flex; overflow-x: auto; gap: 4px; padding: 8px; }
  .fx-rail-item { flex: 0 0 auto; width: auto; border-left: 0; border-bottom: 3px solid transparent; min-height: 40px; }
  .fx-rail-item.on { border-bottom-color: var(--burn); }
  .fx-rail-split { display: none; }
  .fx-btns { display: none; }
  .fx-prev { grid-template-columns: 1fr; padding-left: 16px; }
}

/* ═══════════════════════════════════════════════════════════
   HERO RELAYOUT (Colton, 2026-08-10 evening): the polaroid reel card
   was pinned over the stats numbers. Now: headline left, polaroid in
   flow, the three big numbers vertical and right-justified on wide
   screens. Grid lives on .hero because the reel card is a sibling of
   .hero-inner; both wrappers become display:contents. CSS only, no
   markup changes, beta anchors untouched. Under 981px: old behavior.
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 981px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
    grid-template-areas: "annot annot" "h1 reel" "sub stats";
    column-gap: 44px;
    align-items: start;
  }
  .hero-inner, .hero-bottom { display: contents; }
  .hero .annot { grid-area: annot; position: relative; z-index: 1; }
  .hero .h1 { grid-area: h1; position: relative; z-index: 1; }
  .hero .hero-sub { grid-area: sub; align-self: end; margin-top: 28px; padding-top: 22px;
    border-top: 0.5px solid var(--dust); position: relative; z-index: 1; }
  .hero .stats { grid-area: stats; align-self: end; justify-content: flex-end;
    padding: 22px 0 6px; position: relative; z-index: 1; }
  .hero .reel-card { position: relative; top: auto; right: auto; grid-area: reel;
    justify-self: end; align-self: start; width: min(400px, 100%); max-width: 100%; margin: 0; z-index: 3; }
}
@media (min-width: 1240px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 470px) max-content;
    grid-template-areas: "annot annot annot" "h1 reel stats" "sub reel stats";
  }
  .hero .stats { flex-direction: column; align-items: flex-end; text-align: right;
    gap: 30px; align-self: center; padding: 0 4px 0 10px; }
  .hero .stats .stat-num { font-size: 46px; }
  .hero .reel-card { justify-self: center; }
}

/* ═══════════════════════════════════════════════════════════
   HOURS IN THE ROOM (graduated from the beta lane 2026-08-10 evening,
   Colton's corrections: retreats 6-10/yr x 8 yrs; trainings merged to
   one row). Stat button + the ledger panel. Constants live in the
   inline stats script in index.html.
   ═══════════════════════════════════════════════════════════ */
.stat-hours { text-align: inherit; cursor: pointer; background: none; border: 0; padding: 0; font: inherit; }
.stat-hours sup { font-size: 16px; color: var(--burn); }
.stat-hours:hover .stat-num { color: var(--burn); }
.hours-ledger {
  max-width: 560px;
  background: #fff;
  border: 0.5px solid #D4CCC0;
  box-shadow: 0 18px 50px rgba(14, 14, 12, 0.16);
  padding: 18px 18px 16px;
  position: relative;
  text-align: left;
  margin: 16px 0 8px auto;
}
.hours-ledger::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 14px; height: 14px;
  border-top: 3px solid var(--burn);
  border-left: 3px solid var(--burn);
}
.ledger-close { position: absolute; top: 8px; right: 10px; font-size: 13px;
  color: var(--deep-dust); cursor: pointer; background: none; border: 0; }
.ledger-title { font-family: var(--font-display); font-weight: 900; font-size: 21px;
  text-transform: uppercase; letter-spacing: 0.02em; color: var(--pitch); }
.ledger-title sup { color: var(--burn); font-size: 13px; }
.ledger-sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--deep-dust); margin: 4px 0 12px; }
.ledger-row { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0;
  border-bottom: 0.5px solid #E4DDD0; font-size: 12.5px; line-height: 1.45; color: var(--deep-dust); }
.ledger-row strong { font-family: var(--font-mono); font-size: 12.5px; color: var(--pitch); white-space: nowrap; }
.ledger-row.ledger-total { border-bottom: none; color: var(--pitch); font-weight: 500; }
.ledger-row.ledger-total strong { color: var(--burn); font-size: 15px; }
.ledger-foot { margin-top: 10px; font-size: 11.5px; line-height: 1.6; color: var(--deep-dust); font-style: italic; }

/* slot the ledger into the hero grid as its own full-width bottom row */
@media (min-width: 981px) {
  .hero { grid-template-areas: "annot annot" "h1 reel" "sub stats" "ledger ledger"; }
  .hero .hours-ledger { grid-area: ledger; justify-self: end; z-index: 2; }
  .hero .stats { flex-wrap: wrap; row-gap: 18px; }
}
@media (min-width: 1240px) {
  .hero { grid-template-areas: "annot annot annot" "h1 reel stats" "sub reel stats" "ledger ledger ledger"; }
  .hero .stats { flex-wrap: nowrap; }
}

/* ═══════════════════════════════════════════════════════════
   RESOURCE LIBRARY UX ROUND 2 (Colton, 2026-08-10 night):
   rail locks at the Resource Library header and stays fully visible
   (scrolls inside itself when tall), row meta cut to the file type,
   hover the icon to peek the real document, and a list/cards/icons
   view switch like a file picker.
   ═══════════════════════════════════════════════════════════ */
.resources-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.fx-viewswitch { display: flex; gap: 0; border: 0.5px solid var(--border); background: var(--white); }
.fx-view { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0;
  border-right: 0.5px solid var(--border); padding: 9px 13px; min-height: 40px; cursor: pointer;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--deep-dust); transition: background-color 0.2s, color 0.2s; }
.fx-view:last-child { border-right: 0; }
.fx-view:hover { background: var(--linen); color: var(--burn); }
.fx-view.on { background: var(--pitch); color: #fff; }

/* the rail: sticks below the sticky nav, never clipped */
.fx-rail { top: 88px; max-height: calc(100vh - 108px); overflow-y: auto; overscroll-behavior: contain; }
.fx-rail::-webkit-scrollbar { width: 6px; }
.fx-rail::-webkit-scrollbar-thumb { background: var(--dust); }

/* icon hint + peek popover */
.fx-ic { position: relative; }
.fx-ic-hint { position: absolute; bottom: -13px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--dust); opacity: 0; transition: opacity 0.2s; pointer-events: none; white-space: nowrap; }
.fx-row:hover .fx-ic-hint { opacity: 1; color: rgba(255,255,255,0.85); }
.fx-peek { position: fixed; z-index: 200; width: 300px; background: #fff; border: 0.5px solid var(--border);
  box-shadow: 0 22px 60px rgba(14,14,12,0.28); padding: 10px; opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s; pointer-events: none; }
.fx-peek.on { opacity: 1; visibility: visible; transform: translateY(0); }
.fx-peek-shot { height: 330px; overflow: hidden; background: var(--linen); display: flex;
  align-items: center; justify-content: center; }
.fx-peek-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.fx-peek-load { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--deep-dust); }
.fx-peek-name { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--deep-dust); margin-top: 8px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }

/* CARDS view */
.fx-list.view-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; }
.fx-card { background: #fff; border: 0.5px solid #D4CCC0; position: relative; display: flex;
  flex-direction: column; overflow: hidden; }
.fx-card-shot { height: 190px; background: var(--linen); overflow: hidden; border-bottom: 0.5px solid var(--border); }
.fx-card-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.fx-card-shot.noimg::after { content: 'No preview'; font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--deep-dust); display: flex;
  align-items: center; justify-content: center; height: 100%; }
.fx-card-body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 2; }
.fx-card .fx-name { font-size: 15px; }
.fx-card .fx-btns-big { gap: 7px; }
.fx-card.wv::before, .fx-card.wv::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); pointer-events: none; z-index: 1; }
.fx-card.wv::before { background: var(--gold); }
.fx-card.wv::after { background: var(--teal); }
.fx-card.wv:hover::before { animation: wave1 0.6s cubic-bezier(0.4,0,0.2,1) 0s forwards; }
.fx-card.wv:hover::after { animation: wave2 0.6s cubic-bezier(0.4,0,0.2,1) 0.4s forwards; }
.fx-card.wv:hover { box-shadow: 0 10px 30px rgba(58,138,138,0.4); transform: translateY(-2px); }
.fx-card.wv, .fx-card.wv .fx-name, .fx-card.wv .fx-meta, .fx-card.wv .btn { transition-property: color, background-color, border-color, transform, box-shadow; transition-duration: 0.25s; }
.fx-card.wv:hover .fx-name, .fx-card.wv:hover .fx-meta { color: #fff; transition-delay: 0.4s; }
.fx-card.wv:hover .btn { border-color: rgba(255,255,255,0.75); color: #fff; transition-delay: 0.4s; }
.fx-card.wv:hover .btn-primary { background: #fff; border-color: #fff; color: var(--pitch); }

/* ICONS view */
.fx-list.view-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.fx-tile { background: none; border: 0; padding: 0; cursor: pointer; display: flex; flex-direction: column;
  gap: 7px; text-align: left; font: inherit; }
.fx-tile-shot { display: block; height: 150px; background: var(--linen); border: 0.5px solid #D4CCC0;
  overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.fx-tile-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.fx-tile-shot.noimg::after { content: 'No preview'; font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--deep-dust); display: flex;
  align-items: center; justify-content: center; height: 100%; }
.fx-tile:hover .fx-tile-shot { border-color: var(--burn); box-shadow: 0 10px 26px rgba(14,14,12,0.16); transform: translateY(-2px); }
.fx-tile-name { font-family: var(--font-body); font-size: 12.5px; line-height: 1.35; color: var(--pitch);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fx-tile:hover .fx-tile-name { color: var(--burn); }

/* preview sheet for icons view */
.fx-sheet { position: fixed; inset: 0; z-index: 210; background: rgba(14,14,12,0.55);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s; }
.fx-sheet.on { opacity: 1; visibility: visible; }
.fx-sheet-panel { background: #fff; border: 0.5px solid var(--border); box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  padding: 26px 26px 22px; max-width: 780px; width: 100%; position: relative; max-height: 90vh; overflow: auto; }
.fx-sheet-close { position: absolute; top: 10px; right: 12px; background: none; border: 0;
  font-size: 15px; color: var(--deep-dust); cursor: pointer; min-height: 32px; min-width: 32px; }
.fx-sheet .fx-prev { padding: 0; }

@media (max-width: 880px) {
  /* Phones and tablets: the rail is a sideways strip that scrolls inside itself.
     This line said overflow: visible from 2026-08-11 to 2026-09-22, which undid
     the strip's own scrolling and let its buttons stretch the page sideways. */
  .fx-rail { max-height: none; overflow-x: auto; overflow-y: hidden; top: 0; }
  .fx-peek { display: none; }
  .fx-list.view-icons { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); }
}

/* long unbroken filenames must not spill out of tiles or rows */
.fx-tile-name, .fx-card .fx-name, .fx-row .fx-name, .fx-prev-title { overflow-wrap: anywhere; }
