html {
  overscroll-behavior-x: none;
  /* Fallback if body background fails to paint (e.g. fixed layout + bad image URL) */
  background-color: #070a10;
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

/*
 * LA backgrounds — drop JPGs into static/images/la/ (see static/images/la/README.md).
 * Filenames: dawn.jpg, morning.jpg, day.jpg, golden.jpg, night.jpg — replace files only; no CSS edit needed.
 * Layers: gradient + photo applied in base.html to body::before (fixed viewport layer).
 * html[data-time-theme] is set in head before first paint; body stays transparent so the layer shows through.
 */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  overscroll-behavior-x: none;
  color: #f8fafc;
  min-height: 100vh;
  position: relative;
  background-color: #070a10;
}

/* Fixed full-viewport backdrop: stays visible for entire scroll (desktop + mobile; avoids buggy body background-attachment). */
html[data-time-theme] body {
  background-color: transparent;
  background-image: none;
}

html[data-time-theme] body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: auto, cover;
}

@media (prefers-reduced-motion: reduce) {
  body {
    transition: none !important;
  }
}

/* --- FULL TRANSPARENCY & LAYOUT (see nav/footer blocks below) --- */
:root {
  --yh-marigold: #38bdf8;
  --yh-gold: #a5b4fc;
  --yh-olive: #0f172a;
  /* Top nav + footer (fully transparent bars) */
  --yh-glass-bg: transparent;
  --yh-glass-line: transparent;
  --yh-nav-pad-y: clamp(8px, 2vmin, 24px);
  /* Same link colors top + bottom bar */
  --yh-nav-link-fg: rgba(226, 232, 240, 0.92);
  --yh-nav-text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  --yh-nav-link-hover: #e0f2fe;
  --yh-nav-link-active-fg: #f0f9ff;
  --yh-nav-link-accent: rgba(56, 189, 248, 0.75);
  /* Cluster behind Report | Sightings | … */
  --yh-nav-links-backdrop: rgba(15, 23, 42, 0.85);
  --yh-nav-links-border: rgba(148, 163, 184, 0.4); /* Made border more visible */
  --yh-nav-links-shadow: 0 10px 36px rgba(2, 6, 23, 0.55);
}

/* Bar transparency — nav + footer (no glass, no gloss) */
nav,
.site-footer {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
}

nav::before,
nav::after,
.site-footer::before,
.site-footer::after {
  display: none !important;
  content: none !important;
}

nav {
  flex-shrink: 0;
  /* Nudge shared by brand + link pill (vertical alignment) */
  --yh-nav-links-nudge: -12px; /* Reduced nudge to add space above */
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  box-shadow: none;
  /* Allow nav-links chip shadow + backdrop to paint outside the bar */
  overflow: visible;
  /* Bar padding; link labels use extra nudge via .nav-links transform */
  padding-top: calc(var(--yh-nav-pad-y) + env(safe-area-inset-top, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-bottom: var(--yh-nav-pad-y);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  position: sticky;
  top: 0;
  z-index: 1000;
  box-sizing: border-box;
  width: 100%;
  /* Brand | centered pill | balance — full viewport width; brand stays in the corner */
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  column-gap: 10px;
  min-height: clamp(40px, 5vmin, 64px);
}

.leaflet-top,
.leaflet-bottom {
  z-index: 500;
}

.brand {
  text-shadow: var(--yh-nav-text-shadow);
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-self: center;
  position: relative;
  z-index: 2;
  font-size: clamp(0.62rem, 1.4vmin, 0.8rem);
  font-weight: bold;
  color: #f8fafc;
  text-decoration: none;
  opacity: 0.88;
  letter-spacing: 0.02em;
  white-space: nowrap;
  max-width: min(7.5rem, 28vw);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Report | Sightings | … — centered in the viewport column */
.nav-links {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(4px, 1.2vw, 10px);
  row-gap: 4px;
  max-width: min(100vw - 8rem, 720px);
  box-sizing: border-box;
  transform: translateY(var(--yh-nav-links-nudge));
  /* Backdrop behind the link cluster only (not the brand) */
  padding: 6px 12px;
  background: var(--yh-nav-links-backdrop);
  border: 1px solid var(--yh-nav-links-border);
  border-radius: 999px;
  box-shadow: var(--yh-nav-links-shadow);
  backdrop-filter: blur(12px) saturate(115%);
  -webkit-backdrop-filter: blur(12px) saturate(115%);
}

.nav-links a {
  text-shadow: var(--yh-nav-text-shadow);
  color: var(--yh-nav-link-fg);
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(0.76rem, 2.4vw, 0.95rem);
  transition: color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease,
    background 0.15s ease;
  padding: clamp(6px, 1.2vmin, 10px) clamp(8px, 2vw, 14px);
  border-radius: 999px;
  border: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links a:hover {
  color: var(--yh-nav-link-hover);
  opacity: 1;
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a.active {
  color: var(--yh-nav-link-active-fg);
  border-bottom-color: transparent;
  background: rgba(56, 189, 248, 0.12);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.28);
}

.page-content {
  flex: 1 0 auto;
  width: 100%;
  box-sizing: border-box;
  padding: 24px 24px 24px 24px;
  overscroll-behavior-x: none;
}

@keyframes yhFadeUp {
  from { opacity: 0; transform: translateY(18px) scale(0.995); filter: blur(3px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes yhFadeLeft {
  from { opacity: 0; transform: translateX(24px); filter: blur(3px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes yhFadeRight {
  from { opacity: 0; transform: translateX(-24px); filter: blur(3px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes yhFadeZoom {
  from { opacity: 0; transform: scale(0.975); filter: blur(2px); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes yhFadeDown {
  from { opacity: 0; transform: translateY(-18px); filter: blur(2px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes yhSightingsIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes yhMissingIn {
  from {
    opacity: 0;
    transform: translate3d(-36px, 14px, 0) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes yhBuildInSoft {
  0% { opacity: 0; transform: translateY(14px) scale(0.99); filter: blur(2px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes yhBuildInSide {
  0% { opacity: 0; transform: translateX(18px) scale(0.99); filter: blur(2px); }
  100% { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}
@keyframes yhBuildInZoom {
  0% { opacity: 0; transform: scale(0.975); filter: blur(2px); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); }
}
@keyframes yhBuildInType {
  0% { opacity: 0; transform: translateY(10px) rotate(-0.25deg); filter: blur(1.8px); }
  100% { opacity: 1; transform: translateY(0) rotate(0deg); filter: blur(0); }
}

body.page-report .page-content {
  animation: none !important;
}
body.page-sightings .page-content {
  animation: yhSightingsIn 560ms cubic-bezier(.2, 0.9, 0.2, 1) both;
  padding-top: 4px;
}
body.page-missing .page-content {
  animation: yhMissingIn 540ms cubic-bezier(0.25, 0.8, 0.25, 1) both;
  padding-top: 4px;
}
body.page-map .page-content { animation: yhFadeZoom 460ms cubic-bezier(.22,.84,.24,1) both; }
body.page-about .page-content,
body.page-default .page-content { animation: yhFadeDown 420ms cubic-bezier(.22,.84,.24,1) both; }

body .page-content > * {
  animation: yhFadeUp 480ms cubic-bezier(.22,.84,.24,1) both;
  animation-delay: 60ms;
}
body .page-content > *:nth-child(2) { animation-delay: 110ms; }
body .page-content > *:nth-child(3) { animation-delay: 160ms; }

body.page-report .page-content > * {
  animation: none !important;
  opacity: 1 !important;
}

body.page-sightings .sightings-container > * {
  opacity: 0;
  animation: yhBuildInSoft 520ms cubic-bezier(.22,.84,.24,1) both;
}
body.page-sightings .sightings-container > *:nth-child(1) { animation-delay: 40ms; }
body.page-sightings .sightings-container > *:nth-child(2) { animation-delay: 90ms; }
body.page-sightings .sightings-container > *:nth-child(3) { animation-delay: 140ms; }
body.page-sightings .sightings-container > *:nth-child(4) { animation-delay: 190ms; }
body.page-sightings .sightings-container > *:nth-child(5) { animation-delay: 240ms; }
body.page-sightings .sightings-grid .sighting-card {
  opacity: 0;
  animation: yhBuildInType 480ms cubic-bezier(.22,.84,.24,1) both;
}
body.page-sightings .sightings-grid .sighting-card:nth-child(-n+12) { animation-delay: 80ms; }
body.page-sightings .sightings-grid .sighting-card:nth-child(1) { animation-delay: 90ms; }
body.page-sightings .sightings-grid .sighting-card:nth-child(2) { animation-delay: 130ms; }
body.page-sightings .sightings-grid .sighting-card:nth-child(3) { animation-delay: 170ms; }
body.page-sightings .sightings-grid .sighting-card:nth-child(4) { animation-delay: 210ms; }
body.page-sightings .sightings-grid .sighting-card:nth-child(5) { animation-delay: 250ms; }
body.page-sightings .sightings-grid .sighting-card:nth-child(6) { animation-delay: 290ms; }
body.page-sightings .sightings-grid .sighting-card:nth-child(7) { animation-delay: 330ms; }
body.page-sightings .sightings-grid .sighting-card:nth-child(8) { animation-delay: 370ms; }
body.page-sightings .sightings-grid .sighting-card:nth-child(9) { animation-delay: 410ms; }
body.page-sightings .sightings-grid .sighting-card:nth-child(10) { animation-delay: 450ms; }
body.page-sightings .sightings-grid .sighting-card:nth-child(11) { animation-delay: 490ms; }
body.page-sightings .sightings-grid .sighting-card:nth-child(12) { animation-delay: 530ms; }

body.page-missing .sightings-container > * {
  opacity: 0;
  animation: yhBuildInSide 520ms cubic-bezier(.22,.84,.24,1) both;
}
body.page-missing .sightings-container > *:nth-child(1) { animation-delay: 40ms; }
body.page-missing .sightings-container > *:nth-child(2) { animation-delay: 90ms; }
body.page-missing .sightings-container > *:nth-child(3) { animation-delay: 140ms; }
body.page-missing .sightings-container > *:nth-child(4) { animation-delay: 190ms; }
body.page-missing .sightings-container > *:nth-child(5) { animation-delay: 240ms; }
body.page-missing .sightings-grid .sighting-card {
  opacity: 0;
  animation: yhBuildInSoft 480ms cubic-bezier(.22,.84,.24,1) both;
}
body.page-missing .sightings-grid .sighting-card:nth-child(1) { animation-delay: 90ms; }
body.page-missing .sightings-grid .sighting-card:nth-child(2) { animation-delay: 130ms; }
body.page-missing .sightings-grid .sighting-card:nth-child(3) { animation-delay: 170ms; }
body.page-missing .sightings-grid .sighting-card:nth-child(4) { animation-delay: 210ms; }
body.page-missing .sightings-grid .sighting-card:nth-child(5) { animation-delay: 250ms; }
body.page-missing .sightings-grid .sighting-card:nth-child(6) { animation-delay: 290ms; }
body.page-missing .sightings-grid .sighting-card:nth-child(7) { animation-delay: 330ms; }
body.page-missing .sightings-grid .sighting-card:nth-child(8) { animation-delay: 370ms; }
body.page-missing .sightings-grid .sighting-card:nth-child(9) { animation-delay: 410ms; }
body.page-missing .sightings-grid .sighting-card:nth-child(10) { animation-delay: 450ms; }
body.page-missing .sightings-grid .sighting-card:nth-child(11) { animation-delay: 490ms; }
body.page-missing .sightings-grid .sighting-card:nth-child(12) { animation-delay: 530ms; }

body.page-map .map-page .card > * {
  opacity: 0;
  animation: yhBuildInType 520ms cubic-bezier(.22,.84,.24,1) both;
}
body.page-map .map-page .card > *:nth-child(1) { animation-delay: 40ms; }
body.page-map .map-page .card > *:nth-child(2) { animation-delay: 90ms; }
body.page-map .map-page .card > *:nth-child(3) { animation-delay: 140ms; }
body.page-map .map-page .card > *:nth-child(4) { animation-delay: 190ms; }
body.page-map #sightings-map {
  opacity: 0;
  animation: yhBuildInZoom 560ms cubic-bezier(.22,.84,.24,1) both;
  animation-delay: 260ms;
}

body.page-about .sightings-container .card > * {
  opacity: 0;
  animation: yhBuildInType 540ms cubic-bezier(.22,.84,.24,1) both;
}
body.page-about .sightings-container .card > *:nth-child(1) { animation-delay: 40ms; }
body.page-about .sightings-container .card > *:nth-child(2) { animation-delay: 90ms; }
body.page-about .sightings-container .card > *:nth-child(3) { animation-delay: 140ms; }
body.page-about .sightings-container .card > *:nth-child(4) { animation-delay: 190ms; }
body.page-about .sightings-container .card > *:nth-child(5) { animation-delay: 240ms; }
body.page-about .sightings-container .card > *:nth-child(6) { animation-delay: 290ms; }
body.page-about .sightings-container .card > *:nth-child(7) { animation-delay: 340ms; }
body.page-about .sightings-container .card > *:nth-child(8) { animation-delay: 390ms; }
body.page-about .sightings-container .card > *:nth-child(n+9) { animation-delay: 440ms; }

@media (prefers-reduced-motion: reduce) {
  body.page-sightings .sightings-container > *,
  body.page-missing .sightings-container > *,
  body.page-map .map-page .card > *,
  body.page-about .sightings-container .card > *,
  body.page-sightings .sightings-grid .sighting-card,
  body.page-missing .sightings-grid .sighting-card,
  body.page-map #sightings-map {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
    filter: none !important;
  }
}

.flash-stack {
  max-width: 1100px;
  margin: 14px auto 0;
  padding: 0 24px;
  display: grid;
  gap: 10px;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.flash-stack-hide {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}
.flash {
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 900;
  letter-spacing: 0.01em;
  border: 1px solid rgba(148, 163, 184, 0.20);
  background: rgba(15, 23, 42, 0.6);
  color: #e5e7eb;
}
.flash-success {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
}
.flash-error {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
}
.flash-info {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.12);
  color: #bfdbfe;
}

/* Bottom bar: fully transparent (no glass layer) */
.site-footer {
  position: relative;
  z-index: 50;
  flex-shrink: 0;
  overflow: visible;
  border-top: none;
  box-shadow: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-sizing: border-box;
  width: 100%;
  padding-top: 50px !important; /* raise to lower content toward bottom edge */
  padding-bottom: calc(var(--yh-nav-pad-y) + env(safe-area-inset-bottom, 0px));
  /* Tighter to viewport corners for footer links */
  padding-left: max(8px, env(safe-area-inset-left, 0px));
  padding-right: max(8px, env(safe-area-inset-right, 0px));
}
.site-footer::before,
.site-footer::after {
  display: none !important;
}
.footer-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.footer-links {
  display: flex;
  visibility: visible;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  flex: 0 1 auto;
  max-width: 100%;
}
.footer-link {
  color: var(--yh-nav-link-fg);
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(0.76rem, 2.4vw, 0.95rem);
  transition:
    color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.footer-link:hover {
  color: var(--yh-nav-link-hover);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 4px 14px rgba(0, 0, 0, 0.12);
}
.footer-link:active {
  transform: scale(0.98);
}

/* Creator: frosted highlight (class on Creator link in base.html) */
.footer-link--creator {
  color: var(--yh-nav-link-active-fg) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  border-radius: 10px;
  padding: 8px 12px;
  box-shadow: none !important;
}

.footer-link--creator:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(125, 211, 252, 0.5) !important;
}
.footer-copyright {
  color: rgba(148, 163, 184, 0.9);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  flex: 0 0 auto;
  text-align: right;
  margin-left: auto;
  padding-left: 8px;
}

/* Report page: same legal strip as other pages (links + ©), stacked and centered */
body.page-report .footer-inner {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
body.page-report .footer-links {
  justify-content: center;
  width: 100%;
}
body.page-report .footer-copyright {
  margin-left: 0 !important;
  text-align: center;
  padding-left: 0;
  width: 100%;
}

@media (max-width: 900px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }
  .footer-links {
    min-width: 0;
    width: 100%;
    justify-content: center;
  }
  .footer-copyright {
    margin-left: 0;
    text-align: center;
    padding-left: 0;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .footer-inner {
    gap: 14px;
  }
  .footer-links {
    gap: 6px 10px;
    justify-content: center;
  }
  .footer-link {
    padding: 8px 10px;
    font-size: clamp(0.72rem, 3.2vw, 0.88rem);
  }
}

.card {
  background: rgba(17, 24, 39, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(165, 180, 252, 0.08) inset;
  backdrop-filter: blur(8px) saturate(112%);
  -webkit-backdrop-filter: blur(8px) saturate(112%);
  transition: border-color 180ms ease, box-shadow 200ms ease, transform 180ms ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 44%;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(186, 230, 253, 0.06) 32%,
    rgba(255, 255, 255, 0.00) 100%
  );
}

.card:hover {
  border-color: rgba(56, 189, 248, 0.42);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(165, 180, 252, 0.14) inset;
  transform: translateY(-3px);
}

/* Report form uses .card — disable hover lift so the panel doesn’t jump with the cursor */
body.page-report .card:hover {
  transform: none;
}

/* Report card: global .card has overflow:hidden + ::before gloss — clips/covers the “Report” title */
body.page-report .card.report-card {
  overflow: visible !important;
}
body.page-report .card.report-card::before {
  display: none !important;
  content: none !important;
}

/* Report: global form/button hovers use translateY — feels like the whole UI “breathes” with the cursor */
body.page-report .form-input:hover,
body.page-report .form-textarea:hover,
body.page-report select:hover {
  transform: none;
}

body.page-report button:not([disabled]):not(.yh-btn-static):hover,
body.page-report input[type="submit"]:not([disabled]):hover,
body.page-report input[type="button"]:not([disabled]):hover,
body.page-report input[type="reset"]:not([disabled]):hover {
  transform: none;
}

body.page-report .form-button:hover {
  transform: none;
  filter: brightness(1.08) saturate(1.04);
}

a.brand {
  transition:
    transform 0.22s cubic-bezier(0.34, 1.15, 0.52, 1),
    filter 0.2s ease,
    opacity 0.2s ease;
  transform: translateY(var(--yh-nav-links-nudge));
}
a.brand:hover {
  transform: translateY(var(--yh-nav-links-nudge)) scale(1.03);
  filter: brightness(1.08);
}

.page-content a[href]:not(.view-btn) {
  transition:
    color 0.18s ease,
    filter 0.2s ease,
    text-decoration-color 0.2s ease;
}
.page-content a[href]:not(.view-btn):hover {
  filter: brightness(1.12);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 120px);
}

.home-card {
  max-width: 700px;
  padding: 48px 32px;
  text-align: center;
}

.home-title { font-size: 3rem; margin-bottom: 12px; text-shadow: 0 2px 10px rgba(0,0,0,0.7); }

.tagline { font-size: 1.2rem; color: #cbd5e1; margin-bottom: 24px; text-shadow: 0 1px 8px rgba(0,0,0,0.8); }

.home-text { font-size: 1rem; line-height: 1.7; color: #e5e7eb; margin-bottom: 14px; }

.soon {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #1d4ed8;
  color: white;
  font-weight: bold;
}

.report-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
  align-items: stretch;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.form-column {
  overflow-y: visible;
  padding-right: 10px;
}

.report-card { width: 100%; max-width: 700px; padding: 24px 32px; margin: 0 auto; }

.form-label { display: block; margin-bottom: 8px; margin-top: 18px; font-weight: bold; }

.form-input, .form-textarea, select {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(71, 85, 105, 0.78);
  background: rgba(15, 23, 42, 0.84);
  color: #f8fafc;
  box-sizing: border-box;
  font-size: 1rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease, transform 120ms ease;
}

.form-input:hover, .form-textarea:hover, select:hover {
  border-color: rgba(56, 189, 248, 0.58);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.12);
  transform: translateY(-1px);
}

.form-input:focus, .form-textarea:focus, select:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.88);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.20);
  background: rgba(15, 23, 42, 0.95);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.behavior-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  background: #1e293b;
  padding: 15px;
  border-radius: 12px;
}

.privacy-box {
  background: #0f172a;
  border: 1px solid #3b82f6;
  padding: 12px;
  border-radius: 12px;
  margin-top: 15px;
}

.form-button {
  width: 100%;
  margin-top: 24px;
  padding: 14px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #38bdf8, #0ea5e9);
  color: #0b1222;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 180ms ease, filter 180ms ease;
  position: relative;
  overflow: hidden;
}
.form-button::before {
  content: "";
  position: absolute;
  inset: 2px 2px auto 2px;
  height: 52%;
  border-radius: 999px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.32) 0%,
    rgba(224, 242, 254, 0.20) 48%,
    rgba(255, 255, 255, 0.00) 100%
  );
}
.form-button:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.38);
  filter: brightness(1.07) saturate(1.04);
}

@keyframes yhBtnPop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(0.96);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes yhRingPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.36);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(56, 189, 248, 0);
  }
}

button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.form-button,
.locate-btn,
.view-btn {
  transform-origin: center;
}

button:not([disabled]):not(.yh-btn-static),
input[type="submit"]:not([disabled]),
input[type="button"]:not([disabled]),
input[type="reset"]:not([disabled]) {
  transition:
    transform 0.22s cubic-bezier(0.34, 1.15, 0.52, 1),
    box-shadow 0.22s ease,
    filter 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.18s ease,
    opacity 0.2s ease;
}

button:not([disabled]):not(.yh-btn-static):hover,
input[type="submit"]:not([disabled]):hover,
input[type="button"]:not([disabled]):hover,
input[type="reset"]:not([disabled]):hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.28);
}

button:not([disabled]):not(.yh-btn-static):not(.form-button):active,
input[type="submit"]:not([disabled]):not(.form-button):active,
input[type="button"]:not([disabled]):active,
input[type="reset"]:not([disabled]):active {
  animation: yhBtnPop 0.22s cubic-bezier(0.34, 1.2, 0.52, 1);
}

.form-button:active {
  animation: yhBtnPop 0.17s cubic-bezier(0.34, 1.2, 0.52, 1);
}

.nav-links a:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.55);
  outline-offset: 3px;
}

.leaflet-container button,
.leaflet-container .leaflet-control-zoom a {
  transition: none !important;
  transform: none !important;
  animation: none !important;
}
.leaflet-container button:hover,
.leaflet-container .leaflet-control-zoom a:hover {
  transform: none !important;
  filter: none !important;
}

.form-button,
#quick-submit-ok {
  box-shadow: 0 8px 18px rgba(14, 165, 233, 0.24), inset 0 -1px 0 rgba(2, 6, 23, 0.18);
}
.form-button:focus-visible,
#quick-submit-ok:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(56, 189, 248, 0.28),
    0 10px 22px rgba(14, 165, 233, 0.24);
  animation: yhRingPulse 420ms ease-out;
}

.locate-btn,
#quick-submit-btn {
  border-color: rgba(129, 140, 248, 0.55) !important;
  box-shadow: 0 8px 18px rgba(67, 56, 202, 0.20);
}
.locate-btn:hover,
#quick-submit-btn:hover {
  box-shadow: 0 10px 22px rgba(67, 56, 202, 0.30);
}
.locate-btn:focus-visible,
#quick-submit-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(129, 140, 248, 0.30),
    0 10px 22px rgba(67, 56, 202, 0.26);
}

#quick-submit-cancel {
  border-color: rgba(148, 163, 184, 0.42) !important;
  background: rgba(71, 85, 105, 0.24) !important;
  color: #e2e8f0 !important;
}
#quick-submit-cancel:hover {
  background: rgba(100, 116, 139, 0.28) !important;
}

.locate-btn {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  background: #1e293b;
  border: 1px solid rgba(56, 189, 248, 0.48);
  border-radius: 10px;
  color: #bae6fd;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.locate-btn:hover {
  background: rgba(56, 189, 248, 0.22);
  color: #f0f9ff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.28);
}

.sightings-container { max-width: 1100px; margin: 0 auto; padding: 20px; }

.stats-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

/* Community feed: four stat tiles — 2×2 on small screens, one row on wide */
.stats-dashboard--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
    max-width: 100%;
}

@media (min-width: 960px) {
    .stats-dashboard--four {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }
}

/* Missing / Found tab: three tiles — balanced row, wraps on narrow viewports */
.stats-dashboard--three {
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    gap: 10px 12px;
    max-width: 100%;
}

@media (min-width: 720px) {
    .stats-dashboard--three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px 14px;
    }
}

/* Slightly smaller tallies on Missing/Found so half-width windows don’t feel huge */
.stats-dashboard--compact .stat-card {
    padding: 10px 12px 9px;
    border-radius: 10px;
}

.stats-dashboard--compact .stat-value {
    font-size: 1.55rem;
}

.stats-dashboard--compact .stat-label {
    font-size: 0.72rem;
    margin-top: 4px;
}

.stats-dashboard--compact .stat-hint {
    font-size: 0.6rem;
    margin-top: 3px;
}

/* Shared stat panel (Missing + Community Feed) */
.yh-stats-panel {
    margin-top: 14px;
    margin-bottom: 2px;
    margin-left: auto;
    margin-right: auto;
    max-width: 900px;
    width: 100%;
}

.yh-stats-panel__eyebrow {
    margin: 0 0 10px 2px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b;
}

.yh-stats-panel__grid {
    margin-bottom: 0;
}

/* Community Feed: keep hero below sticky nav (negative margin pulled titles into the bar) */
.sightings-container.yh-feed-layout {
    padding-top: 12px;
    margin-top: 0;
}

.yh-feed-hero {
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
}

/* Page heading — in page content, below sticky nav */
.yh-feed-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

body.page-sightings .yh-stats-panel {
    margin-top: 1.25rem;
}

body.page-missing .yh-stats-panel {
    margin-top: 8px;
}

.yh-feed-toolbar {
    margin-bottom: 18px;
    margin-left: auto;
    margin-right: auto;
    max-width: 900px;
    width: 100%;
}

/* Missing Animals: same spacing as Community Feed — never overlap sticky nav */
.sightings-container.yh-missing-layout {
    padding-top: 12px;
    margin-top: 0;
}

.yh-missing-hero {
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
}

.yh-missing-title {
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
    margin: 0 0 6px;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.yh-missing-lede {
    text-shadow: 0 1px 8px rgba(0,0,0,0.8);
    margin: 0 auto;
    max-width: 42ch;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.45;
    color: #9ca3af;
}

.yh-missing-toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin: 12px auto 18px;
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
}

/* Missing page: iOS-style segmented control (Missing | Found) */
.yh-segmented {
    display: inline-flex;
    align-items: stretch;
    flex-shrink: 0;
    padding: 3px;
    gap: 2px;
    border-radius: 13px;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.65), rgba(15, 23, 42, 0.92));
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 6px 20px rgba(2, 6, 23, 0.35);
}

.yh-segmented__opt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 118px;
    min-height: 44px;
    padding: 0 16px;
    box-sizing: border-box;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
    color: #94a3b8;
    border: 1px solid transparent;
    background: transparent;
    transition:
        background 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.yh-segmented__opt:hover:not(.is-selected) {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.05);
}

.yh-segmented__opt:focus-visible {
    outline: 2px solid rgba(56, 189, 248, 0.85);
    outline-offset: 2px;
    z-index: 1;
}

.yh-segmented__opt--missing.is-selected {
    color: #fff7ed;
    border-color: rgba(249, 115, 22, 0.5);
    background: linear-gradient(
        180deg,
        rgba(249, 115, 22, 0.42),
        rgba(234, 88, 12, 0.22)
    );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 4px 14px rgba(249, 115, 22, 0.18);
}

.yh-segmented__opt--found.is-selected {
    color: #ecfdf5;
    border-color: rgba(34, 197, 94, 0.5);
    background: linear-gradient(
        180deg,
        rgba(34, 197, 94, 0.4),
        rgba(22, 163, 74, 0.2)
    );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 4px 14px rgba(34, 197, 94, 0.16);
}

@media (prefers-reduced-motion: reduce) {
    .yh-segmented__opt {
        transition: none;
    }
}

/* Refined tiles: glass surface + accent stripe (replaces heavy bottom borders) */
.yh-stat-tile {
    position: relative;
    overflow: hidden;
    text-align: left;
    padding: 13px 14px 12px 15px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(148, 163, 184, 0.14) !important;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 42%),
      linear-gradient(180deg, rgba(30, 41, 59, 0.55) 0%, rgba(15, 23, 42, 0.88) 100%) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 8px 28px rgba(2, 6, 23, 0.28);
}

.yh-stat-tile::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 14px 0 0 14px;
    background: var(--yh-stat-accent, #64748b);
}

.yh-stat-tile .stat-value {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

.yh-stat-tile .stat-label {
    text-transform: none;
    letter-spacing: 0.02em;
    font-weight: 700;
    color: #cbd5e1;
}

.yh-stat-tile .stat-hint {
    color: #94a3b8;
    font-weight: 500;
    max-width: 22ch;
}

.yh-stat-tile--missing {
    --yh-stat-accent: #fb923c;
}
.yh-stat-tile--missing .stat-value {
    color: #fed7aa;
}

.yh-stat-tile--missing-week {
    --yh-stat-accent: #ea580c;
}
.yh-stat-tile--missing-week .stat-value {
    color: #fdba74;
}

.yh-stat-tile--found {
    --yh-stat-accent: #34d399;
}
.yh-stat-tile--found .stat-value {
    color: #a7f3d0;
}

.yh-stat-tile--found-week {
    --yh-stat-accent: #059669;
}
.yh-stat-tile--found-week .stat-value {
    color: #6ee7b7;
}

.yh-stat-tile--today {
    --yh-stat-accent: #38bdf8;
}
.yh-stat-tile--today .stat-value {
    color: #bae6fd;
}

/* Community Feed — week / prey / high-alert accents */
.yh-stat-tile--report-week {
    --yh-stat-accent: #14b8a6;
}
.yh-stat-tile--report-week .stat-value {
    color: #5eead4;
}

.yh-stat-tile--prey {
    --yh-stat-accent: #c026d3;
}
.yh-stat-tile--prey .stat-value {
    color: #e879f9;
}

.yh-stat-tile--high-alert {
    --yh-stat-accent: #ef4444;
}
.yh-stat-tile--high-alert .stat-value {
    color: #fca5a5;
}

/* Missing (3-up) + Community Feed (4-up): same compact tile density */
.stats-dashboard--four.stats-dashboard--compact,
.stats-dashboard--three.stats-dashboard--compact {
    gap: 8px 10px;
    margin-bottom: 12px;
}

@media (min-width: 720px) {
    .stats-dashboard--three.stats-dashboard--compact {
        gap: 10px 12px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: min(100%, 900px);
    }
}

@media (min-width: 960px) {
    .stats-dashboard--four.stats-dashboard--compact {
        gap: 10px 12px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        max-width: min(100%, 900px);
    }
}

.stats-dashboard--four.stats-dashboard--compact .yh-stat-tile,
.stats-dashboard--three.stats-dashboard--compact .yh-stat-tile {
    padding: 10px 11px 8px 12px !important;
    border-radius: 12px !important;
}

.stats-dashboard--four.stats-dashboard--compact .yh-stat-tile::before,
.stats-dashboard--three.stats-dashboard--compact .yh-stat-tile::before {
    width: 3px;
    border-radius: 12px 0 0 12px;
}

.stats-dashboard--four.stats-dashboard--compact .yh-stat-tile .stat-value,
.stats-dashboard--three.stats-dashboard--compact .yh-stat-tile .stat-value {
    font-size: 1.35rem;
    line-height: 1.08;
}

.stats-dashboard--four.stats-dashboard--compact .yh-stat-tile .stat-label,
.stats-dashboard--three.stats-dashboard--compact .yh-stat-tile .stat-label {
    font-size: 0.7rem;
    margin-top: 4px;
}

.stats-dashboard--four.stats-dashboard--compact .yh-stat-tile .stat-hint,
.stats-dashboard--three.stats-dashboard--compact .yh-stat-tile .stat-hint {
    font-size: 0.56rem;
    margin-top: 2px;
    line-height: 1.3;
}

.stat-card {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.88), rgba(17, 24, 39, 0.92));
    padding: 14px 14px 12px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(56, 189, 248, 0.28);
    transition:
      transform 0.22s cubic-bezier(0.34, 1.15, 0.52, 1),
      border-color 0.2s ease,
      box-shadow 0.22s ease,
      filter 0.2s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.48);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.35);
  filter: brightness(1.04);
}

/* Missing page tiles: softer hover (wins over .stat-card:hover) */
.stat-card.yh-stat-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(148, 163, 184, 0.28) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 32px rgba(2, 6, 23, 0.38);
  filter: none;
}

.stat-value { font-size: 2.0rem; font-weight: 900; margin: 0; }

.stat-label { font-size: 0.78rem; color: #9ca3af; text-transform: uppercase; margin-top: 6px; letter-spacing: 0.04em; }

.stat-hint {
    font-size: 0.65rem;
    color: #64748b;
    margin: 4px 0 0;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.25;
}

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

.sighting-card {
    background: rgba(17, 24, 39, 0.78);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    backdrop-filter: blur(8px) saturate(112%);
    -webkit-backdrop-filter: blur(8px) saturate(112%);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sighting-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.50);
  box-shadow: 0 12px 22px rgba(2, 6, 23, 0.32);
}

.view-btn {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 700;
  margin-top: 15px;
  display: inline-block;
  transition: transform 140ms ease, color 140ms ease;
}
.view-btn:hover {
  color: #bae6fd;
  transform: translateX(2px);
}
.view-btn:active {
  animation: yhBtnPop 0.2s ease-out;
}

@media (prefers-reduced-transparency: reduce) {
  .nav-links {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(15, 23, 42, 0.96);
  }
}

@media (prefers-reduced-motion: reduce) {
  nav,
  .nav-links,
  .card,
  .stat-card,
  a.brand,
  .footer-link,
  .page-content a[href],
  .form-input, .form-textarea, select,
  .form-button,
  button,
  input[type="submit"],
  input[type="button"],
  input[type="reset"],
  .locate-btn,
  .sighting-card,
  .view-btn,
  .nav-links a {
    transition: none !important;
    transform: none !important;
    animation: none !important;
    filter: none !important;
  }
  .news-card,
  .news-read,
  .news-g2k {
    transition: none !important;
    transform: none !important;
  }
}

#sightings-map {
  width: 100%;
  height: 600px;
  border-radius: 18px;
  margin-top: 20px;
  border: 1px solid #1f2937;
}

/* Short windows: don’t let the nav eat the whole screen */
@media (max-height: 520px) {
  :root {
    --yh-nav-pad-y: 6px;
  }
  nav {
    min-height: 40px;
    --yh-nav-links-nudge: -12px;
  }
}

/* Phones only: stack brand + links; tablets keep 3-column bar so nothing feels “broken” in landscape */
@media (max-width: 640px) {
  nav {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    justify-items: center;
    row-gap: 6px;
    column-gap: 0;
    min-height: 0;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    align-self: center;
    max-width: min(11rem, 88vw);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  a.brand {
    transform: none;
    display: inline-block;
  }

  a.brand:hover {
    transform: scale(1.03);
  }

  .nav-links {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    align-self: center;
    transform: none;
    gap: 5px 6px;
    row-gap: 4px;
    max-width: min(100vw - 20px, 720px);
    padding: 5px 8px;
  }

  .nav-links a {
    padding: clamp(5px, 1vmin, 8px) clamp(6px, 1.5vw, 10px);
    font-size: clamp(0.7rem, 3.1vw, 0.88rem);
  }

  .report-grid { max-width: 100%; }
  .sightings-grid { grid-template-columns: 1fr; }
}

@media (min-width: 641px) and (max-width: 900px) {
  .report-grid { max-width: 100%; }
  .sightings-grid { grid-template-columns: 1fr; }
}

body.page-news .page-content {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.news-page {
  padding-bottom: 32px;
}

.news-hero {
  margin-bottom: 20px;
  text-align: center;
}

.news-hero-kicker {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5eead4;
}

.news-hero-title {
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
  margin: 0 0 10px;
  font-size: 1.45rem;
  font-weight: 900;
  color: #f8fafc;
  letter-spacing: 0.02em;
}

.news-hero-lede {
  color: #cbd5e1; /* Darker text for readability inside the bubble */
  margin: 0 auto;
  max-width: 52ch;
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.55;
}

.news-hero-note {
  display: block;
  margin-top: 10px;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.45;
}

.news-legal-links {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.78rem;
}

.news-legal-links a {
  color: #64748b;
  font-weight: 700;
  text-decoration: none;
}

.news-legal-links a:hover {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-legal-sep {
  margin: 0 6px;
  color: #475569;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  padding: 0 !important;
  overflow: hidden;
  border-color: rgba(45, 212, 191, 0.22);
}

.news-card:hover {
  border-color: rgba(45, 212, 191, 0.45);
}

.news-card--featured {
  border-style: dashed;
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow:
    0 12px 36px rgba(245, 158, 11, 0.08),
    0 0 0 1px rgba(245, 158, 11, 0.12) inset;
}

.news-card--featured:hover {
  border-color: rgba(251, 191, 36, 0.55);
}

.news-card--featured .news-accent {
  background: linear-gradient(
    180deg,
    rgba(251, 191, 36, 0.95),
    rgba(245, 158, 11, 0.55)
  );
}

.news-accent {
  width: 5px;
  flex-shrink: 0;
  background: linear-gradient(
    180deg,
    rgba(45, 212, 191, 0.95),
    rgba(20, 184, 166, 0.45)
  );
}

.news-card-body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 16px 18px 17px 16px;
}

.news-meta-line {
  margin: 0 0 8px;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.35;
}

.news-distance {
  font-weight: 800;
  color: #a5f3fc;
}

.news-meta-sep {
  margin: 0 4px;
  opacity: 0.65;
}

.news-place {
  color: #cbd5e1;
}

.news-headline {
  margin: 0 0 10px;
  font-size: 1.08rem;
  font-weight: 900;
  color: #f1f5f9;
  line-height: 1.3;
}

.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}

.news-tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #99f6e4;
  border: 1px solid rgba(45, 212, 191, 0.35);
  background: rgba(15, 23, 42, 0.5);
}

.news-summary {
  margin: 0 0 12px;
  color: #e2e8f0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.news-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-bottom: 12px;
  font-size: 0.76rem;
  color: #64748b;
}

.news-time {
  font-weight: 700;
  color: #64748b;
}

.news-source {
  font-style: italic;
  color: #64748b;
}

.news-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: 2px;
}

.news-read {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  color: #ccfbf1;
  border: 1px solid rgba(45, 212, 191, 0.45);
  background: rgba(15, 23, 42, 0.65);
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.news-read-icon {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.95;
  transform: translateY(-0.5px);
}

.news-read:hover {
  color: #f0fdfa;
  border-color: rgba(45, 212, 191, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.news-g2k {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  cursor: pointer;
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(30, 41, 59, 0.55);
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.news-g2k-count {
  min-width: 1.5rem;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.news-g2k:hover {
  color: #e2e8f0;
  border-color: rgba(186, 230, 253, 0.4);
  transform: translateY(-2px);
}

.news-g2k.is-marked {
  color: #0f172a;
  border-color: rgba(45, 212, 191, 0.65);
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.92), rgba(20, 184, 166, 0.78));
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.25);
}

.news-g2k.is-marked .news-g2k-count {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(15, 23, 42, 0.15);
}

.news-g2k.is-marked:hover {
  color: #0f172a;
  filter: brightness(1.05);
}

.news-empty {
  text-align: center;
  color: #94a3b8;
  padding: 28px 16px;
  font-size: 0.95rem;
}
