/* DenFur TV shared theme - muted navy inspired by denfur.org / Carnival Nocturne */
:root {
  --page: #0c1220;
  --chrome: #1a2740;
  --chrome-2: #243550;
  --ink: #ebe8f2;
  --ink-soft: #a39db8;
  --purple: #3d5f9a; /* muted brand navy (denfur.org #1e4087 family) */
  --purple-2: #8fa4c8; /* dusty periwinkle highlight */
  --accent-warm: #c9a66b; /* soft carnival gold */
  --panel: #151d2e;
  --white: #1a2234;
  --line: #3a4660;
  --shadow: rgba(0, 0, 0, 0.5);
  --df-header-offset: 64px;
  --df-skyline: url('/assets/denfur/denver-skyline.webp');
}

* { box-sizing: border-box; }

html {
  background: #080c16;
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

body.df-theme {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.4;
  background-color: #080c16;
  background-image:
    linear-gradient(180deg, rgba(8, 12, 22, 0.68) 0%, rgba(8, 12, 22, 0.78) 45%, rgba(8, 12, 22, 0.88) 100%),
    url('/assets/denfur/denver-skyline.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow-x: hidden;
}

body.df-theme a { color: inherit; }

.df-stage {
  width: min(1540px, 100%);
  margin: 0 auto;
  background: rgba(12, 18, 32, 0.82);
  min-height: 100vh;
  box-shadow: 0 0 0 1px rgba(49, 89, 104, 0.18);
  backdrop-filter: blur(2px);
  overflow-x: clip;
}
.df-stage.has-fixed-header {
  min-height: calc(100vh - var(--df-header-offset));
}

/* Single fixed top bar: logos + links + hamburger */
.df-site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10040;
  background: linear-gradient(90deg, rgba(14, 20, 34, 0.98), rgba(26, 39, 64, 0.96));
  border-bottom: 1px solid rgba(143, 164, 200, 0.18);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.df-site-header-inner,
.df-solo-bar {
  width: min(1540px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 8px 16px;
  background: transparent;
}
html.df-has-fixed-header body,
body.df-has-fixed-header {
  padding-top: var(--df-header-offset);
}

.df-brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-width: auto;
  overflow: visible;
}

.df-logo-chip {
  display: flex;
  align-items: center;
  text-decoration: none;
  min-height: 0;
  flex: 0 0 auto;
  overflow: visible;
}

.df-logo-chip img {
  display: block;
  height: 40px;
  width: auto;
  max-height: 40px;
  max-width: none; /* beat global img{max-width:100%} which was clipping the wordmark */
  object-fit: contain;
  filter: drop-shadow(0 4px 9px rgba(143, 164, 200, 0.2));
}

.df-waterwolf-chip {
  display: flex;
  align-items: center;
  text-decoration: none;
  min-height: 0;
}

.df-top-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.df-top-links::-webkit-scrollbar {
  display: none;
}
.df-top-links a {
  flex: 0 0 auto;
  color: var(--purple-2);
  text-decoration: none;
  font-weight: 900;
  font-size: 0.84rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.df-top-links a:hover {
  border-color: rgba(143, 164, 200, 0.28);
  background: rgba(61, 95, 154, 0.12);
  color: #f0eef6;
}

/* Keep old class hooks harmless if referenced elsewhere */
.df-top-bar,
.df-search-row {
  display: contents;
}
.df-live-pill {
  display: none;
}

.df-waterwolf-chip img {
  display: block;
  width: 132px;
  max-width: 26vw;
  max-height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 4px 9px rgba(143, 164, 200, 0.18));
}

.df-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
  z-index: 2;
}
.df-header-actions-float {
  position: fixed;
  top: 10px;
  right: 12px;
  z-index: 2147483000;
}
.df-site-header .menu-wrap {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  flex: 0 0 auto;
  z-index: 2;
  margin-left: 0;
}
.df-site-header .hamburger-menu {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}
.df-share-btn {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(143, 164, 200, 0.45);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(26, 39, 64, 0.96), rgba(14, 20, 34, 0.98));
  color: #ebe8f2;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  -webkit-tap-highlight-color: transparent;
}
.df-share-btn:hover,
.df-share-btn:focus {
  border-color: rgba(143, 164, 200, 0.85);
  background: linear-gradient(145deg, #3d5f9a, #1a2740);
  outline: none;
}

/* Share modal — beat UA [hidden]{display:none!important} */
.df-share-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 8, 16, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.df-share-modal[hidden] {
  display: none !important;
}
.df-share-modal.open {
  display: flex !important;
}
.df-share-card {
  width: min(360px, 100%);
  border-radius: 16px;
  border: 1px solid rgba(143, 164, 200, 0.3);
  background: linear-gradient(165deg, rgba(22, 32, 52, 0.98), rgba(10, 16, 28, 0.98));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
  padding: 14px;
  color: #f1f5f9;
}
.df-share-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.df-share-head strong {
  font-size: 1.05rem;
}
.df-share-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.df-share-qr-wrap {
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  margin-bottom: 12px;
}
.df-share-qr {
  display: block;
  width: 220px;
  height: 220px;
  max-width: 70vw;
  max-height: 70vw;
}
.df-share-url-label {
  display: grid;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #94a3b8;
  margin-bottom: 12px;
}
.df-share-url {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid rgba(143, 164, 200, 0.28);
  background: #0a101c;
  color: #e2e8f0;
  padding: 0 12px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
}
.df-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.df-share-copy,
.df-share-native {
  min-height: 42px;
  flex: 1 1 auto;
  border: 0;
  border-radius: 10px;
  padding: 0 14px;
  background: #3d5f9a;
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.df-share-native {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(143, 164, 200, 0.3);
}
.df-share-hint {
  margin: 10px 0 0;
  font-size: 0.8rem;
  font-weight: 750;
  color: #86efac;
}
.df-share-hint[hidden] {
  display: none !important;
}

.df-main {
  padding: 20px 20px 28px;
  max-width: 1200px;
}
/* Full-bleed content (schedule uses entire stage width) */
.df-main.df-main-wide {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

.df-page-title {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 950;
  line-height: 1.15;
  color: var(--ink);
}

.df-page-sub {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 750;
  max-width: 62ch;
  line-height: 1.4;
}

.df-page-sub a {
  color: var(--purple-2);
  font-weight: 900;
  text-decoration: none;
}

.df-page-sub a:hover {
  text-decoration: underline;
}

.df-crumb {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.df-crumb a {
  color: var(--purple-2);
  text-decoration: none;
  font-weight: 900;
}

/* Panels / cards - homepage rail style */
.df-panel {
  margin: 0 0 14px;
  border: 2px solid rgba(143, 164, 200, 0.26);
  background: rgba(21, 29, 46, 0.88);
  border-radius: 0;
  overflow: hidden;
}

.df-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--chrome);
  color: #fff;
}

.df-panel-head strong {
  font-size: 1.02rem;
  font-weight: 950;
  line-height: 1.1;
}

.df-panel-head span {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}

.df-panel-body {
  padding: 12px;
}

.df-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 99px;
  border: 2px solid rgba(143, 164, 200, 0.22);
  background: rgba(61, 95, 154, 0.1);
  text-decoration: none;
  font-weight: 900;
  font-size: 0.84rem;
  color: var(--ink-soft);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.df-chip:hover,
.df-chip.on {
  background: rgba(61, 95, 154, 0.28);
  color: #fff;
  border-color: rgba(143, 164, 200, 0.5);
}

.df-chip small {
  opacity: 0.75;
  font-weight: 800;
}

.df-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 4px;
  background: var(--purple);
  color: #fff;
  font: inherit;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.df-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.df-btn.ghost {
  background: transparent;
  border: 2px solid rgba(143, 164, 200, 0.28);
  color: var(--ink);
}

/* Footer - matches homepage */
.site-footer {
  margin-top: 8px;
  border-top: 1px solid rgba(143, 164, 200, 0.16);
  background: linear-gradient(180deg, rgba(12, 18, 32, 0.2), rgba(10, 14, 24, 0.55));
}
.site-footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 22px;
  padding: 28px 20px 18px;
}
.site-footer h4 {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-2);
}
.site-footer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.45;
}
.site-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.site-footer-denfur-mark {
  height: 36px;
  width: auto;
  max-width: none;
  flex: 0 0 auto;
  object-fit: contain;
}
.site-footer-brand strong {
  font-size: 1.05rem;
  font-weight: 950;
  flex: 0 0 auto;
  white-space: nowrap;
}
.site-footer-waterwolf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 132px;
  min-height: 28px;
  margin-left: 4px;
  text-decoration: none;
}
.site-footer-waterwolf img {
  display: block;
  width: 132px;
  height: 28px;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 4px 9px rgba(143, 164, 200, 0.18));
}
.site-footer-links {
  display: grid;
  gap: 8px;
}
.site-footer-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 850;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.site-footer-links a:hover {
  color: var(--purple-2);
}
.site-footer-links a i {
  width: 1.1em;
  color: var(--purple-2);
  text-align: center;
}
.site-footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 20px 18px;
  border-top: 1px solid rgba(143, 164, 200, 0.1);
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 750;
}
.site-footer-bottom a {
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}
.site-footer-legal {
  margin: 0;
  max-width: 72ch;
  line-height: 1.45;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
}

/* Store product grid */
.df-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.df-product-card {
  display: flex;
  flex-direction: column;
  border: 2px solid rgba(143, 164, 200, 0.22);
  background: rgba(21, 29, 46, 0.92);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.df-product-card:hover {
  border-color: rgba(143, 164, 200, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.df-product-card .card-img {
  aspect-ratio: 1;
  background: #0c1220;
  overflow: hidden;
}

.df-product-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.df-product-card .card-body {
  padding: 10px 12px 12px;
  display: grid;
  gap: 6px;
  flex: 1;
}

.df-product-card h2 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.25;
  font-weight: 950;
  color: var(--ink);
}

.df-product-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.df-product-card .price {
  color: var(--purple-2);
  font-weight: 950;
  font-size: 0.95rem;
}

.df-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 99px;
  border: 1px solid rgba(143, 164, 200, 0.28);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--purple-2);
}

.df-empty {
  padding: 20px;
  border: 2px solid rgba(143, 164, 200, 0.22);
  background: rgba(21, 29, 46, 0.88);
  color: var(--ink-soft);
  font-weight: 800;
}

.df-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.df-muted {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 750;
}

@media (max-width: 1080px) {
  body.df-theme {
    background-attachment: scroll;
  }
}

/* Tablet / phone: drop the crowded top-link pills — hamburger already has them */
@media (max-width: 900px) {
  .df-top-links {
    display: none;
  }
  .df-solo-bar {
    justify-content: space-between;
    gap: 12px;
  }
  .df-brand-lockup {
    flex: 0 1 auto;
    min-width: 0;
    max-width: calc(100% - 110px);
  }
  .df-share-btn {
    display: inline-grid;
  }
  .df-site-header .menu-wrap {
    margin-left: 0;
  }
}

@media (max-width: 680px) {
  body.df-theme {
    background-attachment: scroll;
  }
  .df-stage {
    width: 100%;
  }
  :root {
    --df-header-offset: 56px;
  }
  .df-solo-bar {
    min-height: 56px;
    padding: 8px 12px;
    gap: 10px;
  }
  .df-brand-lockup {
    gap: 10px;
  }
  .df-logo-chip img {
    height: 34px;
    width: auto;
    max-height: 34px;
    max-width: min(168px, 58vw);
  }
  .df-waterwolf-chip img {
    width: auto;
    max-width: min(108px, 30vw);
    max-height: 26px;
  }
  .df-site-header .hamburger-menu,
  .df-share-btn {
    width: 42px;
    height: 42px;
  }
  .df-main {
    padding: 14px 12px 20px;
  }
  .df-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .df-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .df-chip {
    flex: 0 0 auto;
    min-height: 40px;
  }
  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px 12px 14px;
  }
  .site-footer-bottom {
    padding: 12px;
    font-size: 0.76rem;
  }
}

@media (max-width: 420px) {
  .df-waterwolf-chip {
    display: none;
  }
  .df-logo-chip img {
    height: 36px;
    width: auto;
    max-height: 36px;
    max-width: min(180px, 62vw);
  }
  .df-product-grid {
    grid-template-columns: 1fr;
  }
}

/* Utility classes - prefer these over inline styles */
.u-m-0 { margin: 0; }
.u-mt-4 { margin-top: 4px; }
.u-mt-8 { margin-top: 8px; }
.u-mt-12 { margin-top: 12px; }
.u-mb-8 { margin-bottom: 8px; }
.u-mb-10 { margin-bottom: 10px; }
.u-p-0 { padding: 0; }
.u-p-12 { padding: 12px; }
.u-px-8 { padding-left: 8px; padding-right: 8px; }
.u-pb-8 { padding-bottom: 8px; }
.u-flex { display: flex; }
.u-inline { display: inline; }
.u-flex-1 { flex: 1; }
.u-flex-end { align-items: flex-end; }
.u-justify-center { justify-content: center; }
.u-wrap { flex-wrap: wrap; }
.u-gap-10 { gap: 10px; }
.u-break-all { word-break: break-all; }
.u-text-xs { font-size: 0.72rem; }
.u-text-sm { font-size: 0.78rem; }
.u-text-md { font-size: 0.8rem; }
.u-overflow-auto { overflow: auto; }
.u-min-h-textarea { min-height: 220px; }
.u-btn-compact { min-height: 32px; padding: 0 10px; font-size: 0.78rem; }
.u-row-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.u-panel-flush { padding: 0; overflow: auto; }
.u-panel-head-row {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.u-label-grow { flex: 1; margin: 0; }
.u-label-grow-sm { flex: 1 1 140px; }
.u-label-grow-md { flex: 1 1 160px; margin: 0; }
.u-label-grow-lg { flex: 1 1 180px; margin: 0; }
.u-label-grow-xl { flex: 1 1 200px; margin: 0; }
.u-label-grow-2xl { flex: 2 1 260px; margin: 0; }
.u-label-grow-3xl { flex: 2 1 280px; margin: 0; }
.u-btn-add-word { margin-top: 18px; }
.u-row-tight { margin-bottom: 8px; }
.u-row-spaced { margin-bottom: 10px; }
.u-muted-note {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 700;
}
.u-form-flush { margin: 0; }
.df-panel-body.flush { padding: 0; }
.df-page-title .df-title-date {
  font-weight: 800;
  color: var(--ink-soft);
  font-size: 0.55em;
}
.u-blocked-row { background: rgba(168, 50, 80, 0.08); }
.u-panel-deep { background: #0a101c; }
.u-fw-700 { font-weight: 700; }
.u-label-title { flex: 1 1 220px; margin: 0; }
.u-label-desc { flex: 2 1 280px; margin: 0; }
.u-note-tight { margin: 4px 0 8px; font-size: 0.8rem; }
