﻿
@font-face {
  font-family: 'Inter';
  font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('fonts/Inter-Variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal; font-weight: 500 800; font-display: swap;
  src: url('fonts/Outfit-Variable.woff2') format('woff2');
}

:root {
  --ff-background:        210 40% 98%;   
  --ff-foreground:        215 25% 27%;   
  --ff-card:              0 0% 100%;
  --ff-primary:           200 80% 50%;   
  --ff-primary-foreground:0 0% 100%;
  --ff-secondary:         210 20% 90%;   
  --ff-muted:             210 20% 96%;
  --ff-muted-foreground:  215 15% 60%;
  --ff-accent:            45 90% 60%;     
  --ff-accent-foreground: 215 25% 27%;
  --ff-destructive:       0 84% 60%;
  --ff-border:            210 20% 90%;
  --ff-ring:              200 80% 50%;
  --ff-radius: 0.75rem;

  --bs-body-bg:            hsl(var(--ff-background));
  --bs-body-color:         hsl(var(--ff-foreground));
  --bs-body-font-family:   'Inter', system-ui, sans-serif;
  --bs-border-color:       hsl(var(--ff-border));
  --bs-border-radius:      var(--ff-radius);
  --bs-border-radius-sm:   calc(var(--ff-radius) - 0.25rem);
  --bs-border-radius-lg:   calc(var(--ff-radius) + 0.25rem);

  --bs-primary:            hsl(var(--ff-primary));
  --bs-primary-rgb:        26, 161, 230;
  --bs-secondary:          hsl(var(--ff-secondary));
  --bs-secondary-rgb:      222, 226, 230;
  --bs-danger:             hsl(var(--ff-destructive));
  --bs-danger-rgb:         239, 67, 67;

  --bs-link-color:         hsl(var(--ff-primary));
  --bs-link-hover-color:   hsl(200 80% 42%);
}

[data-bs-theme=dark] {
  --ff-background:        222 47% 11%;
  --ff-foreground:        210 40% 98%;
  --ff-card:              222 47% 13%;
  --ff-primary:           200 80% 60%;
  --ff-primary-foreground:222 47% 11%;
  --ff-secondary:         217 33% 17%;
  --ff-muted:             217 33% 17%;
  --ff-muted-foreground:  215 20% 65%;
  --ff-border:            217 33% 17%;

  --bs-body-bg:    hsl(var(--ff-background));
  --bs-body-color: hsl(var(--ff-foreground));
  --bs-border-color: hsl(var(--ff-border));
  --bs-primary:    hsl(var(--ff-primary));
  --bs-primary-rgb: 77, 182, 240;
}

body {
  background-color: hsl(var(--ff-background));
  color: hsl(var(--ff-foreground));
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .ff-heading {
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a { text-decoration: none; }

.btn { border-radius: var(--ff-radius); font-weight: 600; }
.btn-primary {
  --bs-btn-bg: hsl(var(--ff-primary));
  --bs-btn-border-color: hsl(var(--ff-primary));
  --bs-btn-color: hsl(var(--ff-primary-foreground));
  --bs-btn-hover-bg: hsl(200 80% 44%);
  --bs-btn-hover-border-color: hsl(200 80% 44%);
  --bs-btn-hover-color: hsl(var(--ff-primary-foreground));
  --bs-btn-active-bg: hsl(200 80% 40%);
  --bs-btn-active-border-color: hsl(200 80% 40%);
  --bs-btn-disabled-bg: hsl(var(--ff-primary));
  --bs-btn-disabled-border-color: hsl(var(--ff-primary));
}
.btn-accent {
  --bs-btn-bg: hsl(var(--ff-accent));
  --bs-btn-border-color: hsl(var(--ff-accent));
  --bs-btn-color: hsl(var(--ff-accent-foreground));
  --bs-btn-hover-bg: hsl(45 90% 54%);
  --bs-btn-hover-border-color: hsl(45 90% 54%);
  --bs-btn-hover-color: hsl(var(--ff-accent-foreground));
  color: hsl(var(--ff-accent-foreground));
}
.btn-outline-primary {
  --bs-btn-color: hsl(var(--ff-primary));
  --bs-btn-border-color: hsl(var(--ff-primary));
  --bs-btn-hover-bg: hsl(var(--ff-primary));
  --bs-btn-hover-border-color: hsl(var(--ff-primary));
  --bs-btn-hover-color: hsl(var(--ff-primary-foreground));
}

.btn:focus-visible,
.form-control:focus,
.form-select:focus,
.btn-check:focus-visible + .btn {
  border-color: hsl(var(--ff-primary));
  box-shadow: 0 0 0 0.2rem hsla(var(--ff-primary) / 0.35);
}

.ff-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  width: 100%;
  border-bottom: 1px solid hsla(var(--ff-border) / 0.6);
  background-color: hsla(var(--ff-background) / 0.85);
  backdrop-filter: saturate(180%) blur(8px);
}
.ff-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: hsl(var(--ff-primary));
}
.ff-brand img { height: 2rem; width: 2rem; object-fit: contain; }
.ff-navlink {
  font-size: 0.9rem;
  font-weight: 500;
  color: hsl(var(--ff-muted-foreground));
  transition: color 0.15s ease;
  padding: 0.25rem 0;
}
.ff-navlink:hover { color: hsl(var(--ff-primary)); }
.ff-navlink.active { color: hsl(var(--ff-primary)); }

.ff-avatar {
  height: 2rem; width: 2rem;
  border-radius: 50%;
  background: hsl(var(--ff-secondary));
  color: hsl(var(--ff-foreground));
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.85rem;
  overflow: hidden;
}
.ff-avatar img { height: 100%; width: 100%; object-fit: cover; }

.card {
  --bs-card-bg: hsl(var(--ff-card));
  --bs-card-border-color: hsl(var(--ff-border));
  --bs-card-border-radius: var(--ff-radius);
  box-shadow: 0 1px 3px hsla(215 25% 27% / 0.06), 0 1px 2px hsla(215 25% 27% / 0.04);
}
.ff-card-hover { transition: transform 0.15s ease, box-shadow 0.15s ease; }
.ff-card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px hsla(215 25% 27% / 0.10);
}

.ff-hero {
  position: relative;
  border-radius: calc(var(--ff-radius) + 0.5rem);
  overflow: hidden;
  background: linear-gradient(135deg, hsl(200 80% 50%) 0%, hsl(200 85% 62%) 55%, hsl(190 80% 70%) 100%);
  color: #fff;
}
.ff-hero-overlay {
  background: linear-gradient(180deg, hsla(215 40% 20% / 0.15), hsla(215 40% 20% / 0.45));
}

.text-muted-2 { color: hsl(var(--ff-muted-foreground)) !important; }
.bg-muted-2 { background-color: hsl(var(--ff-muted)) !important; }
.text-primary-2 { color: hsl(var(--ff-primary)) !important; }
.text-accent { color: hsl(var(--ff-accent)) !important; }

.ff-badge-official {
  background: hsla(var(--ff-accent) / 0.18);
  color: hsl(40 90% 32%);
  border: 1px solid hsla(var(--ff-accent) / 0.4);
  font-weight: 600;
}

.wi-sunny  { color: hsl(45 90% 55%); }
.wi-cloudy { color: hsl(215 15% 60%); }
.wi-rain   { color: hsl(200 80% 50%); }
.wi-storm  { color: hsl(260 40% 55%); }
.wi-snow   { color: hsl(200 30% 75%); }

.ff-vote {
  border: 1px solid hsl(var(--ff-border));
  background: transparent;
  color: hsl(var(--ff-muted-foreground));
  border-radius: var(--ff-radius);
  padding: 0.25rem 0.6rem;
  font-weight: 600;
  transition: all 0.12s ease;
}
.ff-vote:hover { border-color: hsl(var(--ff-primary)); color: hsl(var(--ff-primary)); }
.ff-vote.up.active   { background: hsla(var(--ff-primary) / 0.12); border-color: hsl(var(--ff-primary)); color: hsl(var(--ff-primary)); }
.ff-vote.down.active { background: hsla(var(--ff-destructive) / 0.12); border-color: hsl(var(--ff-destructive)); color: hsl(var(--ff-destructive)); }

.ff-footer {
  border-top: 1px solid hsl(var(--ff-border));
  background: hsla(var(--ff-muted) / 0.4);
  color: hsl(var(--ff-muted-foreground));
}
.ff-footer a { color: hsl(var(--ff-muted-foreground)); }
.ff-footer a:hover { color: hsl(var(--ff-primary)); }

#ff-toasts {
  position: fixed;
  top: 4.5rem; right: 1rem;
  z-index: 1080;
  display: flex; flex-direction: column; gap: 0.5rem;
  max-width: 22rem;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

body {
  line-height: 1.6;
  letter-spacing: -0.006em;
}
h1 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); line-height: 1.15; }
h2 { line-height: 1.2; }
.small, small { letter-spacing: 0; }

.card {
  --bs-card-border-color: hsl(var(--ff-border) / 0.7);
  box-shadow: 0 1px 2px hsl(215 25% 27% / 0.04),
              0 2px 8px hsl(215 25% 27% / 0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  box-shadow: 0 4px 12px hsl(215 25% 27% / 0.08),
              0 12px 28px hsl(215 25% 27% / 0.07);
  border-color: hsl(var(--ff-primary) / 0.25);
}

.btn {
  transition: transform 0.12s ease, box-shadow 0.2s ease, background-color 0.15s ease;
}
.btn-primary {
  box-shadow: 0 1px 2px hsl(var(--ff-primary) / 0.25),
              0 4px 12px hsl(var(--ff-primary) / 0.18);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px hsl(var(--ff-primary) / 0.30),
              0 8px 20px hsl(var(--ff-primary) / 0.22);
}
.btn-primary:active { transform: translateY(0); }
.btn-outline-primary:hover { transform: translateY(-1px); }
.btn-sm { border-radius: calc(var(--ff-radius) - 0.2rem); }

.form-control, .form-select {
  border-color: hsl(var(--ff-border) / 0.9);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control::placeholder { color: hsl(var(--ff-muted-foreground) / 0.7); }
.form-label { font-weight: 500; margin-bottom: 0.35rem; }

.ff-navbar {
  box-shadow: 0 1px 0 hsl(var(--ff-border) / 0.5),
              0 2px 12px hsl(215 25% 27% / 0.04);
  backdrop-filter: saturate(180%) blur(12px);
}
.ff-navlink { position: relative; }
.ff-navlink.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.4rem;
  height: 2px; border-radius: 2px; background: hsl(var(--ff-primary));
}

.ff-avatar {
  background: linear-gradient(135deg, hsl(var(--ff-primary) / 0.9), hsl(200 85% 62%));
  color: #fff;
  box-shadow: inset 0 0 0 1px hsl(0 0% 100% / 0.15),
              0 1px 3px hsl(215 25% 27% / 0.15);
}

.badge { font-weight: 600; padding: 0.4em 0.7em; letter-spacing: 0.01em; }

.ff-vote {
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px hsl(215 25% 27% / 0.04);
}
.ff-vote:hover { transform: translateY(-1px); box-shadow: 0 2px 8px hsl(215 25% 27% / 0.08); }

.table > :not(caption) > * > * { padding: 0.9rem 0.75rem; }
.table-hover > tbody > tr { transition: background-color 0.12s ease; }

.nav-pills {
  background: hsl(var(--ff-muted));
  padding: 0.25rem;
  border-radius: var(--ff-radius);
  gap: 0.25rem;
}
.nav-pills .nav-link {
  color: hsl(var(--ff-muted-foreground));
  border-radius: calc(var(--ff-radius) - 0.25rem);
  font-weight: 600;
  padding: 0.4rem 0.9rem;
}
.nav-pills .nav-link.active {
  background: hsl(var(--ff-card));
  color: hsl(var(--ff-foreground));
  box-shadow: 0 1px 3px hsl(215 25% 27% / 0.10);
}

.bg-muted-2 { background-color: hsl(var(--ff-muted) / 0.6) !important; }

.spinner-border { color: hsl(var(--ff-primary)); }

.dropdown-menu {
  border-color: hsl(var(--ff-border) / 0.7);
  border-radius: var(--ff-radius);
  box-shadow: 0 4px 24px hsl(215 25% 27% / 0.12);
  padding: 0.35rem;
}
.dropdown-item { border-radius: calc(var(--ff-radius) - 0.3rem); padding: 0.5rem 0.75rem; }

a { transition: color 0.12s ease; }

.container { max-width: 72rem; }

.collapse.show, .collapsing { visibility: visible; }

.hover\:text-primary-foreground:hover { color: hsl(var(--primary-foreground)) !important; }

.ff-details-toggle { text-decoration: none; cursor: pointer; }
.ff-details-toggle .bi { transition: transform .2s; display: inline-block; }
.ff-details-toggle[aria-expanded=true] .bi { transform: rotate(180deg); }

.ff-night-sec { padding-top: .7rem; }

.ff-min0 { min-width: 0; }

.lb-list { display: block; }

.lb-head,
.lb-row {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1.5fr) minmax(0, 1fr) 5.5rem 5.5rem 5rem;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
}

.lb-head {
  border-bottom: 1px solid hsl(var(--ff-border));
  background: hsl(var(--ff-muted) / .4);
  font-size: .78rem;
  font-weight: 600;
  color: hsl(var(--ff-muted-foreground));
  text-transform: uppercase;
  letter-spacing: .04em;
}

.lb-row {
  border-top: 1px solid hsl(var(--ff-border));
  color: inherit;
  text-decoration: none;
  transition: background-color .12s ease;
}
.lb-row:first-child { border-top: 0; }
.lb-row:hover { background: hsl(var(--ff-muted) / .45); color: inherit; }
.lb-hidden { display: none; }

.lb-rank { font-weight: 700; color: hsl(var(--ff-muted-foreground)); }
.lb-rank .bi { font-size: 1.05rem; }

.lb-user { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.lb-avatar { width: 2rem; height: 2rem; font-size: .8rem; flex: 0 0 auto; }
.lb-name { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }

.lb-loc   { color: hsl(var(--ff-muted-foreground)); min-width: 0; overflow-wrap: anywhere; }
.lb-count { text-align: center; }
.lb-acc   { text-align: center; font-weight: 700; color: hsl(var(--ff-primary)); }
.lb-score { text-align: center; font-weight: 600; }

.lb-empty { padding: 2.5rem 1rem; text-align: center; color: hsl(var(--ff-muted-foreground)); }

@media (max-width: 767.98px) {
  .lb-head, .lb-row { grid-template-columns: 3rem minmax(0, 1fr) 5rem 4.5rem; }
  .lb-loc, .lb-score { display: none; }
}

@media (max-width: 575.98px) {
  .lb-head { display: none; }

  .lb-row {
    grid-template-columns: 1.9rem auto auto 1fr;
    grid-template-areas:
      "rank user  user user"
      "rank loc   loc  loc"
      "rank count acc  score";
    column-gap: .4rem;
    row-gap: .3rem;
    padding: .55rem .6rem;
  }

  .lb-rank {
    grid-area: rank;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: .4rem;
    background: hsl(var(--ff-muted) / .55);
    font-size: .72rem;
  }
  .lb-rank .bi { font-size: .95rem; }

  .lb-user { grid-area: user; gap: .5rem; }
  .lb-avatar { width: 1.7rem; height: 1.7rem; }
  .lb-name { font-size: .875rem; line-height: 1.2; }

  .lb-loc {
    grid-area: loc;
    display: block;
    justify-self: end;
    text-align: right;
    font-size: .72rem;
    line-height: 1.2;
  }
  .lb-loc:empty { display: none; }

  .lb-count, .lb-acc, .lb-score {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    padding: .15rem .5rem;
    border-radius: .4rem;
    line-height: 1.1;
    text-align: left;
    font-size: .8rem;
    font-weight: 700;
  }
  .lb-count::before,
  .lb-acc::before,
  .lb-score::before {
    content: attr(data-label);
    font-size: .52rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    opacity: .65;
  }
  .lb-count { grid-area: count; justify-self: start; background: hsl(var(--ff-muted) / .55); color: hsl(var(--ff-foreground)); }
  .lb-acc   { grid-area: acc;   justify-self: start; background: hsl(var(--ff-primary) / .10); }
  .lb-score { grid-area: score; justify-self: end;   background: hsl(var(--ff-muted) / .55); color: hsl(var(--ff-foreground)); }
}

.ff-legal { line-height: 1.65; }
.ff-legal h2 {
  margin: 2rem 0 .6rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.ff-legal h2:first-child { margin-top: 1rem; }
.ff-legal p { margin: 0 0 .9rem; }
.ff-legal ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.ff-legal li { margin-bottom: .35rem; }
.ff-legal a { color: hsl(var(--ff-primary)); text-decoration: underline; }

.ff-hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.ff-lb-row { flex-wrap: wrap; }
.ff-lb-rank { width: 2rem; height: 2rem; font-size: .85rem; }
.ff-lb-lbl { font-size: .72rem; }

@media (max-width: 575.98px) {
  .ff-lb-row { row-gap: .35rem; padding: .65rem !important; gap: .6rem; }
  .ff-lb-acc {
    width: 100%;
    text-align: left !important;
    
    padding-left: calc(2rem + 2rem + 1.2rem);
  }
  .ff-lb-acc .ff-lb-pct,
  .ff-lb-acc .ff-lb-lbl { display: inline; }
  .ff-lb-lbl { margin-left: .25rem; }

  .ff-lb-panel { padding: .85rem !important; gap: 1.25rem !important; }
}

.ff-lb-name { overflow-wrap: anywhere; }

.ff-byline { max-width: 100%; }
.ff-byline > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

button {
  -webkit-appearance: none;
  appearance: none;
  background-color: transparent;
  background-image: none;
  border: 0 solid hsl(var(--ff-border));
  color: inherit;
  font: inherit;
  line-height: inherit;
  margin: 0;
  cursor: pointer;
}
button:disabled { cursor: default; }

.ff-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem; height: 2.4rem;
  border-radius: .65rem;
  color: hsl(var(--ff-foreground));
  transition: background-color .15s ease, color .15s ease;
}
.ff-icon-btn:hover { background: hsl(var(--ff-primary) / .10); color: hsl(var(--ff-primary)); }
.ff-icon-btn:active { background: hsl(var(--ff-primary) / .18); }
.ff-icon-btn:focus-visible { outline: 2px solid hsl(var(--ff-primary)); outline-offset: 2px; }

.ff-icon-btn .bi { font-size: 1.5rem; line-height: 1; transition: transform .18s ease; }
.ff-icon-btn[aria-expanded=true] { background: hsl(var(--ff-primary) / .12); color: hsl(var(--ff-primary)); }
.ff-icon-btn[aria-expanded=true] .bi { transform: rotate(90deg); }

.ff-hourly-btn,
.ff-details-toggle {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .2rem .5rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 600;
  text-decoration: none;
  color: hsl(var(--ff-primary));
  background: hsl(var(--ff-primary) / .09);
  transition: background-color .15s ease, color .15s ease;
}
.ff-hourly-btn:hover,
.ff-details-toggle:hover { background: hsl(var(--ff-primary) / .18); color: hsl(var(--ff-primary)); }
.ff-hourly-btn:focus-visible,
.ff-details-toggle:focus-visible { outline: 2px solid hsl(var(--ff-primary)); outline-offset: 1px; }

.ff-wg-cell[data-night="1"] .ff-hourly-btn,
.ff-wg-cell[data-night="1"] .ff-details-toggle {
  background: hsl(200 80% 72% / .16);
  color: hsl(200 80% 78%) !important;
}
.ff-wg-cell[data-night="1"] .ff-hourly-btn:hover,
.ff-wg-cell[data-night="1"] .ff-details-toggle:hover { background: hsl(200 80% 72% / .28); }

.ff-phead {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding-bottom: .9rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid hsl(var(--ff-border));
  position: relative;
}

.ff-phead::after {
  content: "";
  position: absolute; left: 0; bottom: -1px;
  width: 4.5rem; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, hsl(var(--ff-primary)), hsl(var(--ff-primary) / 0));
}
.ff-phead-icon {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: .7rem;
  color: hsl(var(--ff-primary-foreground));
  background: linear-gradient(135deg, hsl(var(--ff-primary)), hsl(var(--ff-accent)));
  box-shadow: 0 4px 12px -4px hsl(var(--ff-primary) / .55);
  font-size: 1.15rem; line-height: 1;
}
.ff-phead-text { min-width: 0; }
.ff-phead-title {
  margin: 0;
  font-size: 1.35rem; font-weight: 700; line-height: 1.15;
  letter-spacing: -0.01em;
}
.ff-phead-sub {
  margin: .15rem 0 0;
  font-size: .8rem; line-height: 1.35;
  color: hsl(var(--ff-muted-foreground));
  
  display: -webkit-box; -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 640px) {
  .ff-phead { gap: 1rem; padding-bottom: 1.1rem; margin-bottom: 1.5rem; }
  .ff-phead-icon { width: 3rem; height: 3rem; border-radius: .8rem; font-size: 1.4rem; }
  .ff-phead-title { font-size: 1.75rem; }
  .ff-phead-sub { font-size: .9rem; -webkit-line-clamp: none; display: block; overflow: visible; }
}

@media (prefers-reduced-motion: reduce) {
  .ff-phead-icon { box-shadow: none; }
}

.ff-wg-cell, .ff-wg-col { min-width: 0; }

.ff-wg-cell {
  --wg-accent: var(--ff-primary);
  --wg-tint: 200 80% 50%;
  position: relative;
  overflow: hidden;
  border: 1px solid hsl(var(--ff-border));
  background:
    linear-gradient(hsl(var(--wg-tint) / .10), hsl(var(--wg-tint) / .02) 60%),
    hsl(var(--ff-card));
  transition: transform .15s ease, box-shadow .15s ease;
}
.ff-wg-cell:hover { transform: translateY(-2px); box-shadow: 0 6px 18px -8px hsl(var(--wg-tint) / .45); }

.ff-wg-cell[data-cond=clear], .ff-hour-row[data-cond=clear]  { --wg-tint:  42 95% 55%; }
.ff-wg-cell[data-cond=partly], .ff-hour-row[data-cond=partly] { --wg-tint: 205 75% 55%; }
.ff-wg-cell[data-cond=cloud], .ff-hour-row[data-cond=cloud]  { --wg-tint: 213 18% 52%; }
.ff-wg-cell[data-cond=rain], .ff-hour-row[data-cond=rain]   { --wg-tint: 212 78% 48%; }
.ff-wg-cell[data-cond=storm], .ff-hour-row[data-cond=storm]  { --wg-tint: 265 62% 55%; }
.ff-wg-cell[data-cond=snow], .ff-hour-row[data-cond=snow]   { --wg-tint: 190 55% 62%; }
.ff-wg-cell[data-cond=fog], .ff-hour-row[data-cond=fog]    { --wg-tint: 210 12% 58%; }
.ff-wg-cell[data-cond=smoke], .ff-hour-row[data-cond=smoke]  { --wg-tint:  25 40% 50%; }
.ff-wg-cell[data-cond=wind], .ff-hour-row[data-cond=wind]   { --wg-tint: 175 45% 45%; }

.ff-wg-icon { font-size: 1.9rem; line-height: 1; color: hsl(var(--wg-tint)); }

.ff-wg-cell[data-night="1"] {
  background:
    linear-gradient(hsl(var(--wg-tint) / .22), transparent 70%),
    linear-gradient(hsl(222 47% 16%), hsl(222 47% 12%));
  border-color: hsl(222 30% 26%);
  color: hsl(210 40% 92%);
}
.ff-wg-cell[data-night="1"] .text-muted-foreground { color: hsl(215 20% 68%) !important; }
.ff-wg-cell[data-night="1"] .ff-wg-icon { color: hsl(var(--wg-tint) / .95); }

.ff-wg-cell.is-now { border-color: hsl(var(--ff-primary)); box-shadow: 0 0 0 2px hsl(var(--ff-primary) / .22); }
.ff-wg-now {
  position: absolute; top: .4rem; right: .4rem;
  font-size: .58rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .1rem .35rem; border-radius: .25rem;
  background: hsl(var(--ff-primary)); color: hsl(var(--ff-primary-foreground));
}

.ff-wg-temp { font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.ff-wg-name { font-size: .8rem; font-weight: 600; line-height: 1.15; }

.ff-wg-precip { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: hsl(var(--ff-border) / .5); }
.ff-wg-precip > span { display: block; height: 100%; width: var(--p, 0%); background: hsl(212 85% 52%); }
.ff-wg-precip-label { font-size: .68rem; font-weight: 600; color: hsl(212 80% 45%); }
.ff-wg-cell[data-night="1"] .ff-wg-precip-label { color: hsl(205 85% 72%); }

.ff-wg-cell[data-night="1"] .text-muted-2 { color: hsl(215 20% 68%) !important; }
.ff-wg-cell[data-night="1"] .text-primary-2,
.ff-wg-cell[data-night="1"] .ff-details-toggle,
.ff-wg-cell[data-night="1"] .ff-hourly-btn { color: hsl(200 80% 72%) !important; }
.ff-wg-cell[data-night="1"] .btn-outline-primary {
  color: hsl(200 80% 78%); border-color: hsl(200 60% 55%);
}
.ff-wg-cell[data-night="1"] .btn-outline-primary:hover {
  background: hsl(200 80% 55%); border-color: hsl(200 80% 55%); color: hsl(222 47% 12%);
}

.ff-wg-row { flex-wrap: wrap; }
@media (min-width: 992px) {
  .ff-wg-col { flex: 0 0 20%; max-width: 20%; }
}

@media (prefers-reduced-motion: reduce) {
  .ff-wg-cell, .ff-wg-cell:hover { transition: none; transform: none; }
}

.ff-hour-list { text-align: left; }
.ff-hour-row {
  --wg-tint: 213 18% 52%;
  display: flex; align-items: flex-start; gap: .3rem;
  padding: .3rem .35rem .3rem .4rem;
  font-size: .72rem; line-height: 1.2;
  border-top: 1px solid hsl(var(--border));
  border-left: 3px solid hsl(var(--wg-tint));
  border-radius: .25rem;
  background: linear-gradient(90deg, hsl(var(--wg-tint) / .10), transparent 55%);
}
.ff-hour-row:first-child { border-top: 0; }
.ff-hour-row[data-night="1"] { background: linear-gradient(90deg, hsl(var(--wg-tint) / .16), hsl(222 47% 30% / .08) 55%); }

.ff-hr-time { width: 2.1rem; flex: 0 0 auto; color: hsl(var(--muted-foreground)); }
.ff-hr-i { width: 1rem; flex: 0 0 auto; color: hsl(var(--wg-tint)); text-align: center; font-size: .9rem; }
.ff-hr-cond { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }
.ff-hr-deg { width: 2rem; flex: 0 0 auto; font-weight: 700; }
.ff-hr-w { width: 3.6rem; flex: 0 0 auto; white-space: nowrap; color: hsl(var(--muted-foreground)); }
.ff-hr-h { width: 2.5rem; flex: 0 0 auto; white-space: nowrap; color: hsl(var(--muted-foreground)); }
.ff-hr-p { width: 2.75rem; flex: 0 0 auto; white-space: nowrap; color: hsl(var(--muted-foreground)); }
.ff-hr-p.is-wet { color: hsl(212 85% 52%); font-weight: 600; }
.ff-hour-row[data-night="1"] .ff-hr-p.is-wet { color: hsl(205 85% 72%); }

.ff-hour-head {
  display: flex; align-items: flex-start; gap: .3rem;
  padding: .2rem .35rem .3rem .4rem;
  font-size: .72rem; line-height: 1.2; font-weight: 700;
  letter-spacing: .02em;
  color: hsl(var(--muted-foreground));
  border-bottom: 1px solid hsl(var(--border));
  margin-bottom: .15rem;
}
.ff-hour-head span { flex: 0 0 auto; white-space: nowrap; overflow: hidden; }
.ff-hour-head .ff-hr-cond { flex: 1 1 0; min-width: 0; }

@media (max-width: 480px) {
  .ff-hour-row { gap: .28rem; }
}
@media (max-width: 400px) {
  .ff-hour-row { gap: .22rem; font-size: .69rem; }
}

.ff-current {
  --wg-tint: 213 18% 52%;
  position: relative;
  overflow: hidden;
  border-left: 3px solid hsl(var(--wg-tint));
  background: linear-gradient(90deg, hsl(var(--wg-tint) / .16), transparent 60%), hsl(var(--card));
}
.ff-current[data-cond=clear]  { --wg-tint:  42 95% 55%; }
.ff-current[data-cond=partly] { --wg-tint: 205 75% 55%; }
.ff-current[data-cond=cloud]  { --wg-tint: 213 18% 52%; }
.ff-current[data-cond=rain]   { --wg-tint: 212 78% 48%; }
.ff-current[data-cond=storm]  { --wg-tint: 265 62% 55%; }
.ff-current[data-cond=snow]   { --wg-tint: 190 55% 62%; }
.ff-current[data-cond=fog]    { --wg-tint: 210 12% 58%; }
.ff-current[data-cond=smoke]  { --wg-tint:  25 40% 50%; }
.ff-current[data-cond=wind]   { --wg-tint: 175 45% 45%; }
.ff-current[data-night="1"] {
  background: linear-gradient(90deg, hsl(var(--wg-tint) / .22), hsl(222 47% 30% / .10) 60%), hsl(var(--card));
}
.ff-current h2 { color: hsl(var(--wg-tint)); position: relative; z-index: 1; }
.ff-current-head {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: .6rem;
  margin-bottom: .75rem;
}
.ff-current-head h2 { margin: 0; }

.ff-current-hourly { font-size: .78rem; padding: .3rem .7rem; margin-left: auto; flex: 0 0 auto; }
@media (min-width: 768px) { .ff-current-hourly { margin-left: .25rem; } }
.ff-current-bg {
  position: absolute;
  right: -.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 8rem;
  line-height: 1;
  color: hsl(var(--wg-tint) / .14);
  pointer-events: none;
  z-index: 0;
}
.ff-current-body { position: relative; z-index: 1; }
.ff-current-icon { font-size: 2.6rem; color: hsl(var(--wg-tint)); line-height: 1; }
.ff-current-temp { font-size: 2.1rem; font-weight: 800; line-height: 1; color: hsl(var(--wg-tint)); }
.ff-current-meta { min-width: 0; }
.ff-current-cond { font-weight: 600; color: hsl(var(--wg-tint)); }
.ff-current-detail { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin-top: .2rem;
  font-size: .8rem; color: hsl(var(--muted-foreground)); }
.ff-current-detail i { color: hsl(var(--wg-tint)); }
.ff-current-when { margin-top: .5rem; font-size: .72rem; color: hsl(var(--muted-foreground)); position: relative; z-index: 1; }

.ff-pw-wrap { position: relative; display: block; }
.ff-pw-eye { position: absolute; top: 50%; right: .5rem; transform: translateY(-50%);
  border: 0; background: transparent; padding: .15rem; line-height: 1; cursor: pointer;
  color: hsl(var(--muted-foreground)); }
.ff-pw-eye:hover { color: hsl(var(--primary)); }

.ff-aq {
  --aq-tint: 213 12% 55%;
  position: relative;
  overflow: hidden;
  border-left: 3px solid hsl(var(--aq-tint));
  background: linear-gradient(90deg, hsl(var(--aq-tint) / .16), transparent 60%), hsl(var(--card));
}
.ff-aq[data-aqi=good]       { --aq-tint: 122 45% 42%; }
.ff-aq[data-aqi=moderate]   { --aq-tint:  48 90% 46%; }
.ff-aq[data-aqi=usg]        { --aq-tint:  30 90% 50%; }
.ff-aq[data-aqi=unhealthy]  { --aq-tint:   4 75% 52%; }
.ff-aq[data-aqi=vunhealthy] { --aq-tint: 280 50% 52%; }
.ff-aq[data-aqi=hazardous]  { --aq-tint: 340 60% 40%; }
.ff-aq[data-aqi=na]         { --aq-tint: 213 12% 55%; }
.ff-aq h2 { color: hsl(var(--aq-tint)); position: relative; z-index: 1; }
.ff-aq-bg {
  position: absolute; right: -.5rem; top: 50%; transform: translateY(-50%);
  font-size: 8rem; line-height: 1; color: hsl(var(--aq-tint) / .12);
  pointer-events: none; z-index: 0;
}
.ff-aq-body { position: relative; z-index: 1; }
.ff-aq-index { text-align: center; line-height: 1; }
.ff-aq-num { font-size: 2.4rem; font-weight: 800; color: hsl(var(--aq-tint)); }
.ff-aq-scale { font-size: .62rem; letter-spacing: .04em; text-transform: uppercase;
  color: hsl(var(--muted-foreground)); }
.ff-aq-meta { min-width: 0; }
.ff-aq-cat { font-weight: 700; color: hsl(var(--aq-tint)); }
.ff-aq-detail { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin-top: .2rem;
  font-size: .8rem; color: hsl(var(--muted-foreground)); }
.ff-aq-fc { position: relative; z-index: 1; display: flex; gap: .4rem; margin-top: .7rem; }
.ff-aq-fc-day {
  --aq-tint: 213 12% 55%;
  flex: 1; text-align: center; padding: .3rem .2rem; border-radius: .5rem;
  background: hsl(var(--aq-tint) / .14); border: 1px solid hsl(var(--aq-tint) / .35);
}
.ff-aq-fc-day[data-aqi=good]       { --aq-tint: 122 45% 42%; }
.ff-aq-fc-day[data-aqi=moderate]   { --aq-tint:  48 90% 46%; }
.ff-aq-fc-day[data-aqi=usg]        { --aq-tint:  30 90% 50%; }
.ff-aq-fc-day[data-aqi=unhealthy]  { --aq-tint:   4 75% 52%; }
.ff-aq-fc-day[data-aqi=vunhealthy] { --aq-tint: 280 50% 52%; }
.ff-aq-fc-day[data-aqi=hazardous]  { --aq-tint: 340 60% 40%; }
.ff-aq-fc-day { display: flex; flex-direction: column; align-items: center; }
.ff-aq-fc-dow { font-size: .68rem; color: hsl(var(--muted-foreground)); }
.ff-aq-fc-detail { margin-top: .25rem; display: flex; flex-direction: column; gap: .05rem; width: 100%; }
.ff-aq-fc-detail span { font-size: .58rem; line-height: 1.25; color: hsl(var(--muted-foreground)); white-space: nowrap; }
.ff-aq-fc-val { font-size: 1.05rem; font-weight: 700; color: hsl(var(--aq-tint)); }

.ff-pollen {
  position: relative; overflow: hidden;
  border-left: 3px solid hsl(150 40% 45%);
  background: linear-gradient(90deg, hsl(150 40% 45% / .14), transparent 60%), hsl(var(--card));
}
.ff-pollen h2 { color: hsl(150 40% 38%); position: relative; z-index: 1; }
.ff-pollen-bg {
  position: absolute; right: -.5rem; top: 50%; transform: translateY(-50%);
  font-size: 8rem; line-height: 1; color: hsl(150 40% 45% / .12);
  pointer-events: none; z-index: 0;
}
.ff-pollen-grid { position: relative; z-index: 1; display: flex; gap: .5rem; }
.ff-pollen-day {
  flex: 1; min-width: 0; padding: .4rem .3rem; border-radius: .6rem;
  border: 1px solid hsl(var(--border)); background: hsl(var(--muted) / .35);
}
.ff-pollen-dow { text-align: center; font-weight: 700; font-size: .74rem;
  color: hsl(var(--muted-foreground)); margin-bottom: .35rem; }
.ff-pollen-type {
  --upi-tint: 213 12% 60%;
  display: flex; align-items: center; gap: .35rem; font-size: .74rem; padding: .12rem 0;
}
.ff-pollen-type[data-upi=none]  { --upi-tint: 122 30% 55%; }
.ff-pollen-type[data-upi=vlow]  { --upi-tint: 122 45% 45%; }
.ff-pollen-type[data-upi=low]   { --upi-tint:  90 45% 42%; }
.ff-pollen-type[data-upi=mod]   { --upi-tint:  48 90% 45%; }
.ff-pollen-type[data-upi=high]  { --upi-tint:  30 88% 50%; }
.ff-pollen-type[data-upi=vhigh] { --upi-tint:   4 75% 52%; }
.ff-pollen-type[data-upi=na]    { --upi-tint: 213 12% 60%; }
.ff-pollen-name { flex: 1; min-width: 0; color: hsl(var(--foreground)); }
.ff-pollen-dot { width: .6rem; height: .6rem; border-radius: 50%; flex: none;
  background: hsl(var(--upi-tint)); }
.ff-pollen-val { font-weight: 700; font-size: .72rem; color: hsl(var(--upi-tint)); white-space: nowrap; text-align: right; }

@media (max-width: 480px) {
  .ff-pollen-name { font-size: .68rem; }
  .ff-aq-detail { font-size: .72rem; }
}

.ff-pollen-day {
  --upi-tint: 213 12% 60%;
  text-align: center;
  border-color: hsl(var(--upi-tint) / .4);
  background: hsl(var(--upi-tint) / .12);
}
.ff-pollen-day[data-upi=low]   { --upi-tint: 122 45% 45%; }
.ff-pollen-day[data-upi=mod]   { --upi-tint:  40 90% 46%; }
.ff-pollen-day[data-upi=high]  { --upi-tint:  28 88% 50%; }
.ff-pollen-day[data-upi=vhigh] { --upi-tint:   4 75% 52%; }
.ff-pollen-day[data-upi=na]    { --upi-tint: 213 12% 60%; }
.ff-pollen-idx { font-size: 1.35rem; font-weight: 800; line-height: 1.1; color: hsl(var(--upi-tint)); }
.ff-pollen-rank { font-size: .72rem; font-weight: 700; color: hsl(var(--upi-tint)); }
.ff-pollen-trig { margin-top: .2rem; font-size: .62rem; line-height: 1.2; color: hsl(var(--muted-foreground)); }
.ff-pollen-src { position: relative; z-index: 1; margin-top: .5rem; font-size: .62rem; color: hsl(var(--muted-foreground)); text-align: right; }

.ff-pollen-trig-lbl { display: block; font-size: .56rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .03em; color: hsl(var(--foreground)); margin-bottom: .1rem; }

@media (min-width: 768px) {
  .ff-aq-fc { gap: .6rem; margin-top: .9rem; }
  .ff-aq-fc-day { padding: .6rem .75rem; }
  .ff-aq-fc-dow { font-size: .8rem; }
  .ff-aq-fc-val { font-size: 1.7rem; }
  .ff-aq-fc-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .1rem .75rem;
    margin-top: .4rem;
    width: 100%;
  }
  .ff-aq-fc-detail span { font-size: .72rem; text-align: left; }
}

.ff-aq-fc-date, .ff-pollen-date { font-size: .6rem; line-height: 1.2; color: hsl(var(--muted-foreground)); }
@media (min-width: 768px) {
  .ff-aq-fc-date { font-size: .68rem; }
}

.ff-pws-map { height: 340px; width: 100%; border-radius: .6rem; overflow: hidden; background: hsl(var(--muted) / .4); }

.leaflet-ffRadar-pane img { image-rendering: auto; }

@media (min-width: 768px) {
  .ff-pws-map { height: auto; aspect-ratio: 16 / 9; }
}
.ff-pws-loading { display: flex; height: 100%; align-items: center; justify-content: center; }
.ff-pws-attr { margin-top: .4rem; font-size: .62rem; color: hsl(var(--muted-foreground)); text-align: right; }

.ff-pws-pin span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 22px; padding: 0 .3rem;
  font-size: .72rem; font-weight: 800; color: #fff;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 1px 3px rgba(0,0,0,.4); white-space: nowrap;
}
.ff-pws-pop { font-size: .8rem; min-width: 8rem; }
.ff-pws-pop-t { font-size: .68rem; color: #666; }
.ff-pws-pop a { display: inline-block; margin-top: .35rem; font-weight: 600; }

[data-bs-theme=dark] .leaflet-popup-content-wrapper, [data-bs-theme=dark] .leaflet-popup-tip { background: hsl(var(--card)); color: hsl(var(--foreground)); }
[data-bs-theme=dark] .ff-pws-pop-t { color: hsl(var(--muted-foreground)); }

.ff-pws-search {
  flex: none; display: inline-flex; align-items: center;
  padding: .45rem .85rem; font-size: .8rem; font-weight: 700; white-space: nowrap;
  color: hsl(var(--primary-foreground)); background: hsl(var(--primary));
  border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: 0 2px 8px hsl(0 0% 0% / .25);
  transition: background .15s, transform .1s;
}
.ff-pws-search:hover { background: hsl(var(--primary) / .9); }
.ff-pws-search:active { transform: translateY(1px); }
.ff-pws-search.hidden { display: none; }

.ff-pws-use {
  flex: none; display: inline-flex; align-items: center;
  padding: .45rem .85rem; font-size: .8rem; font-weight: 700; white-space: nowrap;
  color: hsl(var(--foreground)); background: hsl(var(--card));
  border: 1px solid hsl(var(--border)); border-radius: 999px; cursor: pointer;
  box-shadow: 0 2px 8px hsl(0 0% 0% / .25);
  transition: border-color .15s, color .15s, transform .1s;
}
.ff-pws-use:hover { border-color: hsl(var(--primary)); color: hsl(var(--primary)); }
.ff-pws-use:active { transform: translateY(1px); }
.ff-pws-use:disabled { opacity: .6; cursor: default; }
.ff-pws-use.hidden { display: none; }
.ff-pws-use-ctl { margin: 10px !important; opacity: 1 !important; }

.ff-pws-search-ctl { margin: 10px !important; opacity: 1 !important; }
.ff-pws-search { opacity: 1 !important; background-color: hsl(var(--primary)) !important; }
@media (max-width: 767px) {
  
  .ff-pws-search-ctl { margin-bottom: 24px !important; }
  .ff-pws-map .leaflet-control-attribution { font-size: 9px; padding: 0 4px; opacity: .8; }
}

.ff-pws-map { position: relative; z-index: 0 !important; isolation: isolate; }
.ff-pws-overlay {
  position: absolute; inset: 0; z-index: 600;
  display: flex; align-items: center; justify-content: center;
  background: hsl(var(--card) / .6); backdrop-filter: blur(1px);
}

.ff-pws-pop-p { margin-top: .2rem; font-size: .74rem; font-weight: 600; color: hsl(var(--primary)); }

.ff-install {
  position: fixed; z-index: 1090; left: 50%; bottom: 1rem; transform: translateX(-50%);
  display: flex; align-items: center; gap: .6rem;
  width: calc(100% - 2rem); max-width: 30rem;
  padding: .6rem .8rem; border-radius: .8rem;
  background: hsl(var(--card)); color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border)); box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.ff-install.hidden { display: none; }
.ff-install img { flex: none; border-radius: .3rem; }
.ff-install-text { flex: 1; min-width: 0; font-size: .82rem; line-height: 1.3; }
.ff-install-go {
  flex: none; padding: .35rem .8rem; font-size: .8rem; font-weight: 600;
  color: hsl(var(--primary-foreground)); background: hsl(var(--primary));
  border: none; border-radius: 999px; cursor: pointer;
}
.ff-install-go:hover { background: hsl(var(--primary) / .9); }
.ff-install-x {
  flex: none; width: 1.6rem; height: 1.6rem; line-height: 1; font-size: 1.2rem;
  color: hsl(var(--muted-foreground)); background: transparent; border: none; cursor: pointer;
}

.ff-notify .ff-notify-unsupported,
.ff-notify .ff-notify-off,
.ff-notify .ff-notify-on { display: none; }
.ff-notify[data-state=unsupported] .ff-notify-unsupported { display: block; }
.ff-notify[data-state=off] .ff-notify-off { display: block; }
.ff-notify[data-state=on] .ff-notify-on { display: block; }
.ff-n-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid hsl(var(--border)); }
.ff-n-row:last-of-type { border-bottom: none; }
.ff-n-label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 500; margin: 0; cursor: pointer; }
.ff-n-label input { width: 1.1rem; height: 1.1rem; accent-color: hsl(var(--primary)); }
.ff-n-hour { border: 1px solid hsl(var(--input)); background: hsl(var(--card)); color: hsl(var(--foreground));
  border-radius: .4rem; padding: .25rem .5rem; font-size: .8rem; }
.ff-n-note { margin: .6rem 0 0; }

.ff-n-loc { margin-top: .8rem; padding-top: .7rem; border-top: 1px solid hsl(var(--border)); }
.ff-n-loc-head { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.ff-n-loc-title { font-size: .9rem; font-weight: 500; }
.ff-n-loc-current { font-size: .9rem; font-weight: 700; color: hsl(var(--primary)); text-align: right; }
.ff-n-loc-edit { display: flex; gap: .4rem; margin-top: .5rem; }
.ff-n-loc-input { flex: 1 1 auto; min-width: 0; border: 1px solid hsl(var(--input)); border-radius: .4rem;
  background: hsl(var(--card)); color: hsl(var(--foreground)); padding: .35rem .6rem; font-size: .85rem; }
.ff-n-loc-btn { flex: 0 0 auto; border: 0; border-radius: .4rem; background: hsl(var(--primary));
  color: hsl(var(--primary-foreground)); font-size: .85rem; font-weight: 600; padding: .35rem .9rem; cursor: pointer; }
.ff-n-loc-btn:hover { background: hsl(var(--primary) / .9); }
.ff-n-loc-recent { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.ff-n-loc-chip { border: 1px solid hsl(var(--border)); border-radius: 999px; background: hsl(var(--muted) / .4);
  color: hsl(var(--foreground)); font-size: .75rem; padding: .2rem .6rem; cursor: pointer; }
.ff-n-loc-chip:hover { background: hsl(var(--primary) / .12); border-color: hsl(var(--primary) / .4); }
.ff-n-loc-msg { margin-top: .4rem; font-size: .75rem; color: hsl(var(--muted-foreground)); }

.ff-wg-sun .bi-sunset { margin-left: .4rem; }

.ff-nav-desktop { display: none; }
.ff-nav-toggle { display: inline-flex; }
@media (min-width: 1024px) {
  .ff-nav-desktop { display: flex; }
  .ff-nav-toggle { display: none; }
  .ff-nav-mobile { display: none !important; }
}

.ff-set-tabs { flex-wrap: nowrap; gap: .4rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ff-set-tabs::-webkit-scrollbar { height: 0; }
.ff-set-tabs .nav-link { white-space: nowrap; padding: .4rem .8rem; font-size: .85rem; }
.ff-set-tabs .nav-item { flex: none; }
@media (max-width: 400px) {
  .ff-set-tabs .nav-link { padding: .4rem .6rem; font-size: .8rem; }
  .ff-set-tabs .nav-link i { display: none; }
}

#ff-hero-quick { max-width: 42rem; }
.ff-hero-cta {
  display: inline-flex; align-items: center; padding: .6rem 1.2rem;
  font-weight: 700; color: hsl(var(--primary-foreground)); background: hsl(var(--primary));
  border-radius: 999px; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.25);
  transition: background .15s, transform .15s;
}
.ff-hero-cta:hover { background: hsl(var(--primary) / .9); transform: translateY(-1px); color: hsl(var(--primary-foreground)); }
.ff-hero-chip {
  display: inline-flex; align-items: center; padding: .45rem .9rem;
  font-size: .85rem; font-weight: 600; color: #fff; text-decoration: none;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px; backdrop-filter: blur(4px); transition: background .15s;
}
.ff-hero-chip:hover { background: rgba(255,255,255,.28); color: #fff; }
.ff-hero-clear {
  font-size: .8rem; color: rgba(255,255,255,.7); background: transparent; border: none;
  text-decoration: underline; cursor: pointer; padding: .3rem .5rem;
}
.ff-hero-clear:hover { color: #fff; }

#ff-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 2000;
  background: transparent; opacity: 0; transition: opacity .2s; pointer-events: none;
}
.ff-loading #ff-progress { opacity: 1; }
#ff-progress span {
  display: block; height: 100%; width: 40%;
  background: hsl(var(--primary));
  box-shadow: 0 0 8px hsl(var(--primary) / .6);
  animation: ff-progress-slide 1.1s ease-in-out infinite;
}
@keyframes ff-progress-slide {
  0%   { margin-left: -40%; }
  50%  { margin-left: 60%; }
  100% { margin-left: 100%; }
}

#ff-current, #ff-official, #ff-aq, #ff-pollen, #ff-alerts { position: relative; }
.ff-busy { min-height: 5rem; }
.ff-card-load {
  position: absolute; inset: 0; z-index: 20;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
  background: hsl(var(--card) / .72); backdrop-filter: blur(2px);
  border-radius: .75rem; font-size: .8rem; font-weight: 600; color: hsl(var(--primary));
}
.ff-card-load .spinner-border { width: 1.8rem; height: 1.8rem; }

@media (max-width: 767px) {
  .ff-home-hero { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
}

.ff-alerts-banner {
  border: 1px solid; border-left-width: 4px; border-radius: .75rem;
  padding: .75rem 1rem; overflow: hidden;
}
.ff-alerts-head {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: .95rem; margin-bottom: .25rem;
}
.ff-alerts-head i { font-size: 1.05rem; }

.ff-sev-moderate { background: #fffbeb; border-color: #f59e0b; color: #7c4a03; }
.ff-sev-severe   { background: #fff7ed; border-color: #ea580c; color: #7c2d12; }
.ff-sev-extreme  { background: #fef2f2; border-color: #dc2626; color: #7f1d1d; }
.dark .ff-sev-moderate { background: rgba(245,158,11,.12);  color: #fde68a; }
.dark .ff-sev-severe   { background: rgba(234,88,12,.14);   color: #fed7aa; }
.dark .ff-sev-extreme  { background: rgba(220,38,38,.16);   color: #fecaca; }

.ff-alert { border-top: 1px solid rgba(0,0,0,.10); }
.dark .ff-alert { border-top-color: rgba(255,255,255,.12); }
.ff-alerts-banner > .ff-alert:first-of-type { border-top: 0; }

.ff-alert-sum {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: .5rem; padding: .5rem 0;
}
.ff-alert-sum::-webkit-details-marker { display: none; }
.ff-alert-badge {
  flex: none; font-size: .68rem; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase; padding: .1rem .4rem; border-radius: .3rem;
  background: rgba(0,0,0,.12);
}
.dark .ff-alert-badge { background: rgba(255,255,255,.16); }
.ff-alert-event { font-weight: 600; }
.ff-alert-state {
  flex: none; font-size: .62rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; padding: .1rem .4rem; border-radius: .3rem;
  border: 1px solid currentColor;
}
.ff-alert-state-active { opacity: .95; }
.ff-alert-state-upcoming { opacity: .7; font-style: normal; }
.ff-alert-when { flex: none; font-size: .72rem; opacity: .75; }
.ff-alert-exp { margin-left: auto; flex: none; font-size: .72rem; opacity: .8; }
.ff-alert-caret { flex: none; font-size: .75rem; opacity: .7; transition: transform .15s ease; }
.ff-alert[open] .ff-alert-caret { transform: rotate(180deg); }
.ff-alert-exp + .ff-alert-caret { margin-left: .35rem; }
.ff-alert-caret:first-child { margin-left: auto; }
.ff-alert-body {
  white-space: pre-line; font-size: .85rem; opacity: .92;
  padding: 0 0 .75rem; line-height: 1.45;
}

.ff-alerts-head { align-items: flex-start; }
.ff-alerts-head span { line-height: 1.2; }
.ff-alerts-head i { line-height: 1.2; }
.ff-alert-sum { flex-wrap: wrap; }
.ff-alert-event { flex: 1 1 auto; min-width: 0; }
@media (max-width: 480px) {

  .ff-alert-caret { order: 1; margin-left: auto; }
  .ff-alert-exp { order: 2; flex-basis: 100%; margin-left: 0; text-align: left; }
  .ff-alert-when { order: 3; flex-basis: 100%; }
}

.ff-voted {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; white-space: nowrap;
  color: hsl(var(--primary));
}
.ff-rated .ff-vote-up, .ff-rated .ff-vote-down { opacity: .85; }

.ff-prose { max-width: 48rem; }

#lb-filter .lb-pill.active { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
#lb-scope .lb-scope-btn.active { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
