/* Colorado Monitor — page styles (restored).
   The site shell around the map: glass header and pill navigation, the home-page
   sections, resource-page titles and the footer. Map, legend, alerts, cards and
   tables come from coop.css; this file builds on its colour and glass tokens. */

/* ===================== BACKDROP ===================== */
/* Glass needs something vivid behind it to refract: layered blooms that evoke
   Colorado — alpine sky, slate peaks, warm foothills, forest. */
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){html{scroll-behavior:auto;}}
body{
  min-height:100vh;
  line-height:1.5;
  background:
    radial-gradient(900px 620px at 12% 0%,   rgba(93,168,220,0.42) 0%, rgba(93,168,220,0) 62%),
    radial-gradient(760px 560px at 88% 8%,   rgba(122,79,163,0.24) 0%, rgba(122,79,163,0) 58%),
    radial-gradient(820px 640px at 72% 88%,  rgba(193,68,14,0.20)  0%, rgba(193,68,14,0)  60%),
    radial-gradient(700px 520px at 8%  92%,  rgba(47,125,79,0.22)  0%, rgba(47,125,79,0)  62%),
    linear-gradient(165deg, #e8f3fa 0%, #dbe8f3 45%, #e6edf3 100%);
  background-color:var(--paper);
  background-attachment:fixed;
}
.page{
  position:relative;
  min-height:100vh;
  overflow-x:clip;
}
/* Soft aurora sheen at the top of every page, so the field reads as luminous. */
.page::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:520px;
  background:radial-gradient(1100px 300px at 50% -5%, rgba(255,255,255,0.75), rgba(255,255,255,0) 70%);
  pointer-events:none;
  z-index:0;
}
main, #main{position:relative;z-index:1;}

img, svg{max-width:100%;}
h1, h2, h3{color:var(--ink);letter-spacing:-0.02em;line-height:1.2;}
p{color:var(--slate);}
a{text-underline-offset:2px;}
a:hover{color:var(--accent-deep);}
summary:focus-visible, .btn:focus-visible, .navlinks a:focus-visible{outline:2px solid var(--focus);outline-offset:2px;}

/* Line icons */
.ico{
  display:inline-block;
  flex-shrink:0;
  vertical-align:middle;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* Screen-reader only, with a visible skip link on keyboard focus */
.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
.skip:focus{
  position:fixed;
  top:12px;left:12px;
  width:auto;height:auto;
  margin:0;
  clip:auto;
  z-index:10000;
  padding:10px 18px;
  border-radius:999px;
  background:var(--glass-bg-strong);
  backdrop-filter:blur(20px) saturate(160%);
  -webkit-backdrop-filter:blur(20px) saturate(160%);
  border:1px solid var(--glass-border);
  box-shadow:var(--glass-rim), var(--glass-shadow);
  font-weight:600;
  color:var(--accent-deep);
}

/* ===================== HEADER & NAVIGATION ===================== */
/* Centered glass header: glass-peak icon + wordmark, glass pill tabs beneath. */
.site-head{
  position:relative;
  z-index:1100;
  padding:16px 20px 0;
}
.topnav__in{
  max-width:1400px;
  margin:0 auto;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding-bottom:12px;
}
.nav-brand{
  flex:1 0 100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:11px;
  margin-bottom:10px;
  text-decoration:none;
  color:var(--ink);
}
.nav-brand svg{
  flex-shrink:0;
  width:40px;height:40px;
  border-radius:11px;
  box-shadow:0 2px 8px rgba(28,95,143,0.28);
}
.nav-brand b{
  font-size:1.5rem;
  font-weight:700;
  letter-spacing:-0.02em;
}
.nav-brand:hover{color:var(--ink);}

/* Glass pills: the page tabs, the Menu button and the map shortcut */
.navlinks{display:flex;justify-content:center;gap:6px;}
.navlinks a,
.menu > summary,
.navcta{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:8px 18px;
  border-radius:999px;
  font-size:0.87rem;
  font-weight:600;
  line-height:1.2;
  white-space:nowrap;
  text-decoration:none;
  color:var(--slate);
  background:rgba(255,255,255,0.4);
  border:1px solid var(--glass-border);
  box-shadow:var(--glass-rim);
  cursor:pointer;
  transition:background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}
.navlinks a:hover,
.menu > summary:hover{color:var(--ink);background:rgba(255,255,255,0.7);}
.navlinks a:active,
.menu > summary:active,
.navcta:active{transform:scale(0.97);}
/* Selected tab: the blue glass pill */
.navlinks a[aria-current="page"],
.navcta{
  color:#fff;
  background:linear-gradient(180deg, rgba(43,127,184,0.95), rgba(28,95,143,0.95));
  border-color:rgba(255,255,255,0.5);
  box-shadow:var(--glass-rim), 0 4px 14px rgba(28,95,143,0.35);
}
.navlinks a[aria-current="page"]:hover{color:#fff;}
.navcta:hover{color:#fff;box-shadow:var(--glass-rim), 0 6px 20px rgba(28,95,143,0.45);}

/* Menu dropdown */
.menu{position:relative;}
.menu > summary{list-style:none;user-select:none;}
.menu > summary::-webkit-details-marker{display:none;}
.menu__chev{transition:transform 0.2s ease;opacity:0.7;}
.menu[open] > summary{color:var(--ink);background:rgba(255,255,255,0.75);}
.menu[open] .menu__chev{transform:rotate(180deg);}
.menu__panel{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  width:240px;
  max-width:calc(100vw - 24px);
  padding:8px;
  display:flex;
  flex-direction:column;
  gap:2px;
  text-align:left;
  border-radius:22px;
  /* Solid frosted tint: a panel nested inside the glass header can't blur the
     page behind it, and any see-through tint lets the page text show through. */
  background:linear-gradient(180deg, #fbfdfe 0%, #eef4f9 100%);
  border:1px solid rgba(255,255,255,0.9);
  box-shadow:inset 0 1px 1px rgba(255,255,255,1), 0 2px 6px rgba(15,34,49,0.1), 0 18px 44px rgba(15,34,49,0.24);
  animation:menuPop 0.18s ease;
}
@keyframes menuPop{from{transform:translateY(-4px);}to{transform:translateY(0);}}
.menu__panel a{
  display:block;
  padding:10px 14px;
  border-radius:999px;
  font-size:0.88rem;
  font-weight:500;
  color:var(--ink);
  text-decoration:none;
  border:1px solid transparent;
  transition:background 0.15s ease, border-color 0.15s ease;
}
.menu__panel a:hover{
  background:rgba(255,255,255,0.75);
  border-color:rgba(255,255,255,0.9);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.9), 0 2px 8px rgba(15,34,49,0.08);
  color:var(--ink);
}
/* Page links repeat inside the menu only when the pill tabs are hidden;
   a hairline separates them from the on-page links. */
@media (max-width: 1080px){
  .menu__panel a.lg-hide + a:not(.lg-hide){
    margin-top:6px;
    position:relative;
  }
  .menu__panel a.lg-hide + a:not(.lg-hide)::before{
    content:"";
    position:absolute;
    top:-5px;left:14px;right:14px;
    height:1px;
    background:rgba(15,34,49,0.1);
  }
}

@media (min-width: 1081px){
  .lg-hide{display:none !important;}
}
@media (max-width: 1080px){
  .navlinks{display:none;}
}

/* ===================== SHARED LAYOUT ===================== */
.wrap{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:0 20px;
  position:relative;
}
.w4{max-width:840px;}
.w5{max-width:960px;}
.w7{max-width:1240px;}
.center{text-align:center;}

.sec{padding:76px 0;}
.head{
  max-width:720px;
  margin:0 auto 34px;
  padding:0 20px;
  text-align:center;
}
.head p{font-size:1rem;margin:10px 0 0;}
.h2big{
  font-size:clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight:700;
  letter-spacing:-0.025em;
  margin:12px 0 0;
}

/* Small uppercase glass label above headings */
.eyebrow-pill{
  display:inline-block;
  font-size:0.68rem;
  text-transform:uppercase;
  letter-spacing:0.1em;
  font-weight:700;
  color:var(--accent-deep);
  padding:4px 12px;
  border-radius:999px;
  background:rgba(255,255,255,0.65);
  border:1px solid rgba(255,255,255,0.85);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.9);
}

/* Generic frosted glass surface */
.glass{
  position:relative;
  background:linear-gradient(180deg, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.52) 100%);
  backdrop-filter:blur(24px) saturate(180%);
  -webkit-backdrop-filter:blur(24px) saturate(180%);
  border:1px solid rgba(255,255,255,0.8);
  border-radius:24px;
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.95),
    0 2px 6px rgba(15,34,49,0.06),
    0 12px 32px rgba(15,34,49,0.12);
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:13px 24px;
  border-radius:999px;
  font-size:0.95rem;
  font-weight:700;
  line-height:1.2;
  text-decoration:none;
  cursor:pointer;
  transition:transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:active{transform:scale(0.97);}
.btn--blue{
  color:#fff;
  border:1px solid rgba(255,255,255,0.5);
  background:linear-gradient(180deg, #3d92c9, var(--accent-deep));
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.4), 0 4px 14px rgba(28,95,143,0.4);
}
.btn--blue:hover{color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,0.4), 0 6px 20px rgba(28,95,143,0.5);}
.btn--glass{
  color:var(--accent-deep);
  background:rgba(255,255,255,0.6);
  backdrop-filter:blur(20px) saturate(160%);
  -webkit-backdrop-filter:blur(20px) saturate(160%);
  border:1px solid rgba(255,255,255,0.85);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.95), 0 2px 10px rgba(15,34,49,0.08);
}
.btn--glass:hover{color:var(--ink);background:rgba(255,255,255,0.85);box-shadow:inset 0 1px 0 rgba(255,255,255,0.95), 0 4px 16px rgba(15,34,49,0.12);}

/* Small pills */
.pill{
  display:inline-flex;
  align-items:center;
  padding:6px 14px;
  border-radius:999px;
  font-size:0.8rem;
  font-weight:600;
  color:var(--slate);
  text-decoration:none;
  background:rgba(255,255,255,0.55);
  border:1px solid rgba(255,255,255,0.8);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.9), 0 1px 4px rgba(15,34,49,0.06);
}
a.pill:hover{background:rgba(255,255,255,0.85);color:var(--accent-deep);}
.pill--warn{
  color:#8c2f08;
  background:rgba(193,68,14,0.1);
  border-color:rgba(255,255,255,0.75);
}

/* Live indicator dot */
@keyframes livePulse{
  0%{box-shadow:0 0 0 0 rgba(47,157,95,0.55);}
  70%{box-shadow:0 0 0 7px rgba(47,157,95,0);}
  100%{box-shadow:0 0 0 0 rgba(47,157,95,0);}
}

/* ===================== HOME: HERO ===================== */
.hero{padding:44px 0 20px;position:relative;}
.hero__eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 14px;
  border-radius:999px;
  font-size:0.78rem;
  font-weight:600;
  color:var(--slate);
  background:rgba(255,255,255,0.6);
  border:1px solid rgba(255,255,255,0.85);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.9), 0 2px 8px rgba(15,34,49,0.06);
}
.hero__eyebrow i{
  width:8px;height:8px;
  border-radius:50%;
  background:#2f9d5f;
  animation:livePulse 2s infinite;
}
.hero h1{
  font-size:clamp(2.1rem, 5.2vw, 3.6rem);
  font-weight:800;
  letter-spacing:-0.035em;
  line-height:1.06;
  margin:20px 0 0;
}
.hero h1 span{
  background:linear-gradient(100deg, var(--accent) 0%, var(--accent-deep) 55%, #375064 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.hero__sub{
  font-size:clamp(1rem, 1.6vw, 1.15rem);
  max-width:620px;
  margin:18px auto 0;
}
.hero__ctas{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:12px;
  margin-top:26px;
}
.hero__note{
  margin-top:16px;
  font-size:0.84rem;
  font-weight:600;
  color:var(--fire);
}

/* The live map, framed as a glass plate */
.plate{
  position:relative;
  z-index:1;
  isolation:isolate;
  max-width:1400px;
  margin:36px 20px 0;
  border-radius:28px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.8);
  background:rgba(255,255,255,0.4);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.95),
    0 4px 12px rgba(15,34,49,0.08),
    0 24px 60px rgba(15,34,49,0.2);
  scroll-margin-top:16px;
}
@media (min-width: 1441px){
  .plate{margin-left:auto;margin-right:auto;}
}
.plate .map-wrap{
  height:min(78vh, 820px);
  min-height:520px;
  isolation:isolate;
}
.plate .updated{border-radius:0;}
/* The floating legend sits top-left, so Leaflet's zoom buttons move top-right
   where they stay visible and tappable. */
.map-wrap .leaflet-top.leaflet-left{left:auto;right:0;}
.map-wrap .leaflet-top.leaflet-left .leaflet-control{margin-left:0;margin-right:14px;margin-top:14px;}
.map-wrap .leaflet-bar{
  border:1px solid rgba(255,255,255,0.8) !important;
  border-radius:14px;
  overflow:hidden;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.9), 0 4px 16px rgba(15,34,49,0.18);
}
.map-wrap .leaflet-bar a{
  background:rgba(255,255,255,0.78);
  backdrop-filter:blur(20px) saturate(180%);
  -webkit-backdrop-filter:blur(20px) saturate(180%);
  color:var(--ink);
  border-bottom-color:rgba(15,34,49,0.08);
}
.map-wrap .leaflet-bar a:hover{background:rgba(255,255,255,0.95);}
.plate footer.map-footer{
  margin:0;
  border-radius:0;
  line-height:1.5;
}

/* Live counts */
.stats{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:14px;
  margin-top:34px;
}
.stat{
  padding:18px 16px;
  text-align:center;
  border-radius:22px;
  background:linear-gradient(180deg, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.52) 100%);
  backdrop-filter:blur(24px) saturate(180%);
  -webkit-backdrop-filter:blur(24px) saturate(180%);
  border:1px solid rgba(255,255,255,0.8);
  box-shadow:inset 0 1px 1px rgba(255,255,255,0.95), 0 8px 24px rgba(15,34,49,0.1);
}
.stat b{
  display:block;
  font-size:2rem;
  font-weight:800;
  letter-spacing:-0.03em;
  line-height:1.1;
  color:var(--accent-deep);
}
.stat.fire b{color:var(--fire);}
.stat.weather b{color:var(--weather);}
.stat.flood b{color:var(--flood);}
.stat span{display:block;margin-top:6px;font-size:0.8rem;font-weight:500;color:var(--slate);}
.stats__note{margin:12px 0 0;font-size:0.78rem;color:var(--slate-soft);}

.proof{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
  margin-top:22px;
}

.whatis{
  margin:30px 0 0;
  padding:26px 30px;
  text-align:left;
  border-radius:28px;
  background:linear-gradient(180deg, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.52) 100%);
  backdrop-filter:blur(24px) saturate(180%);
  -webkit-backdrop-filter:blur(24px) saturate(180%);
  border:1px solid rgba(255,255,255,0.8);
  box-shadow:inset 0 1px 1px rgba(255,255,255,0.95), 0 12px 32px rgba(15,34,49,0.12);
}
.whatis h2{margin:0 0 10px;font-size:1.3rem;}
.whatis p{margin:0 0 10px;font-size:0.95rem;line-height:1.6;}
.whatis p:last-child{margin-bottom:0;}

/* ===================== HOME: TASK ROUTES ===================== */
.routes{padding:76px 20px;}
.routes__grid{
  max-width:1240px;
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0, 0.8fr) minmax(0, 2fr);
  gap:34px;
  align-items:start;
}
.routes__intro h2{font-size:clamp(1.6rem, 3vw, 2.2rem);margin:14px 0 12px;}
.routes__intro p{margin:0;font-size:0.98rem;line-height:1.6;}
.routes__cards{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
}
.route{
  display:flex;
  flex-direction:column;
  padding:20px 20px 18px;
  overflow:hidden;
  text-decoration:none;
  color:var(--ink);
  transition:transform 0.18s ease, box-shadow 0.18s ease;
}
.route::before, .feat::before, .panel::before, .steps::before, .qa::before{
  content:"";
  position:absolute;
  top:0;left:0;right:0;height:50%;
  border-radius:inherit;
  background:linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0) 100%);
  pointer-events:none;
}
.route > *, .feat > *, .panel > *, .steps > *, .qa > *{position:relative;}
.route:hover{
  color:var(--ink);
  transform:translateY(-3px);
  box-shadow:inset 0 1px 1px rgba(255,255,255,0.95), 0 4px 10px rgba(15,34,49,0.08), 0 20px 44px rgba(15,34,49,0.18);
}
.route__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:0.68rem;
  text-transform:uppercase;
  letter-spacing:0.08em;
  font-weight:700;
  color:var(--slate-soft);
}
.route h3{font-size:1.08rem;margin:12px 0 8px;}
.route p{margin:0 0 16px;font-size:0.86rem;line-height:1.55;flex:1;}
.route__go{
  display:inline-flex;
  align-items:center;
  gap:6px;
  align-self:flex-start;
  font-size:0.82rem;
  font-weight:700;
  color:var(--accent-deep);
  padding:6px 13px;
  border-radius:999px;
  background:rgba(43,127,184,0.1);
  border:1px solid rgba(255,255,255,0.7);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.85);
}
.route:hover .route__go{background:rgba(43,127,184,0.16);}

/* ===================== HOME: LIVE LISTS ===================== */
.live{padding:40px 0 76px;}
.live__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
  margin-bottom:24px;
}
.live__head h2{font-size:clamp(1.5rem, 2.8vw, 2rem);margin:12px 0 0;}
.live__head p{margin:0;font-size:0.9rem;color:var(--slate-soft);}
.live__grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
}
.panel{
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.panel__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:15px 18px 13px;
  font-weight:700;
  font-size:0.92rem;
  border-bottom:1px solid rgba(255,255,255,0.6);
}
.livetag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:0.66rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.08em;
  color:#23784a;
  padding:3px 10px;
  border-radius:999px;
  background:rgba(47,157,95,0.12);
  border:1px solid rgba(255,255,255,0.75);
}
.livetag i{
  width:7px;height:7px;
  border-radius:50%;
  background:#2f9d5f;
  animation:livePulse 2s infinite;
}
.panel__body{
  padding:12px 12px 14px;
  max-height:360px;
  overflow-y:auto;
  overscroll-behavior:contain;
}
.panel__body::-webkit-scrollbar{width:6px;}
.panel__body::-webkit-scrollbar-thumb{background:rgba(15,34,49,0.18);border-radius:99px;}
.panel__body .feed-item{background:rgba(255,255,255,0.55);}
.live__more{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:20px;
  font-size:0.9rem;
  font-weight:700;
  color:var(--accent-deep);
  text-decoration:none;
}
.live__more:hover{text-decoration:underline;}

/* ===================== HOME: MAP LAYERS ===================== */
.feats{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
}
.feat{
  padding:20px 20px 18px;
  overflow:hidden;
  border-left:5px solid rgba(255,255,255,0.8);
}
.feat__k{display:flex;align-items:center;gap:10px;}
.feat__k .swatch{width:14px;height:14px;}
.feat h3{font-size:1rem;margin:0;}
.feat p{margin:10px 0 12px;font-size:0.86rem;line-height:1.55;}
.feat small{
  display:inline-block;
  font-size:0.72rem;
  font-weight:600;
  color:var(--slate-soft);
  padding:3px 10px;
  border-radius:999px;
  background:rgba(255,255,255,0.55);
  border:1px solid rgba(255,255,255,0.8);
}

/* ===================== HOME: FIRST FIVE MINUTES ===================== */
.steps{
  padding:10px 28px;
  overflow:hidden;
  border-radius:28px;
}
.step{
  display:flex;
  gap:16px;
  padding:20px 0;
  border-top:1px solid rgba(255,255,255,0.75);
}
.step:first-child{border-top:none;}
.step > span{
  flex-shrink:0;
  width:34px;height:34px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:0.9rem;
  font-weight:700;
  color:#fff;
  background:linear-gradient(180deg, #3d92c9, var(--accent-deep));
  border:1px solid rgba(255,255,255,0.5);
  box-shadow:inset 0 1px 1px rgba(255,255,255,0.55), 0 2px 8px rgba(28,95,143,0.4);
}
.step h3{font-size:1rem;margin:5px 0 6px;}
.step p{margin:0;font-size:0.9rem;line-height:1.55;}

/* ===================== HOME: FAQ ===================== */
.faq{padding:76px 20px;}
.faq .head{padding:0;}
.faq__list{
  max-width:820px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.qa{
  border-radius:22px;
  overflow:hidden;
}
.qa summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:17px 22px;
  font-weight:600;
  font-size:0.98rem;
  color:var(--ink);
  cursor:pointer;
  list-style:none;
  transition:background 0.15s ease;
}
.qa summary::-webkit-details-marker{display:none;}
.qa summary:hover{background:rgba(255,255,255,0.35);}
.qa summary .ico{
  width:28px;height:28px;
  padding:5px;
  border-radius:999px;
  color:var(--slate-soft);
  background:rgba(255,255,255,0.55);
  border:1px solid rgba(255,255,255,0.75);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.9);
  transition:transform 0.25s cubic-bezier(0.4,0,0.2,1);
}
.qa[open] summary .ico{transform:rotate(180deg);}
.qa__a{
  padding:0 22px 18px;
  font-size:0.92rem;
  line-height:1.6;
  color:var(--slate);
}

/* ===================== FINAL CALL / 404 ===================== */
.final{padding:30px 20px 80px;}
.final__in{
  position:relative;
  max-width:860px;
  margin:0 auto;
  padding:44px 34px;
  text-align:center;
  border-radius:32px;
  overflow:hidden;
  background:linear-gradient(180deg, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.5) 100%);
  backdrop-filter:blur(30px) saturate(190%);
  -webkit-backdrop-filter:blur(30px) saturate(190%);
  border:1px solid rgba(255,255,255,0.85);
  box-shadow:inset 0 1px 1px rgba(255,255,255,0.95), 0 4px 12px rgba(15,34,49,0.08), 0 24px 56px rgba(15,34,49,0.16);
}
.final__in::before{
  content:"";
  position:absolute;
  top:0;left:0;right:0;height:50%;
  background:linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0) 100%);
  pointer-events:none;
}
.final__in > *{position:relative;}
.final__in .h2big{margin-top:0;}
.m{max-width:600px;margin:14px auto 0;font-size:1rem;line-height:1.6;}
.final__cta{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
  margin-top:26px;
}
.emerg{
  margin:22px 0 0;
  font-weight:700;
  font-size:0.95rem;
  color:var(--fire);
}

/* ===================== RESOURCE PAGES ===================== */
.inner-top{
  position:relative;
  z-index:1;
  max-width:920px;
  margin:0 auto;
  padding:30px 20px 0;
  text-align:center;
}
.inner-top h1{
  margin:0;
  font-size:clamp(1.9rem, 4vw, 2.7rem);
  font-weight:800;
  letter-spacing:-0.03em;
}
main.resources{padding-top:26px;}
.resources h2{margin-top:0;}
.resources > section > p.ui{line-height:1.55;}
.card ol{
  margin:8px 0 12px;
  padding-left:20px;
  font-size:0.84rem;
  line-height:1.5;
  color:var(--slate);
}
.card ol li{margin-bottom:4px;}
.card ol li::marker{color:var(--accent);font-weight:700;}
.card .go{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:0.8rem;
  font-weight:700;
  color:var(--accent-deep);
  text-decoration:none;
  padding:5px 13px;
  border-radius:999px;
  background:rgba(43,127,184,0.1);
  border:1px solid rgba(255,255,255,0.7);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.85);
  transition:background 0.15s ease;
}
.card .go::after{content:"→";}
.card .go[target="_blank"]::after{content:"";}
.card .go:hover{background:rgba(43,127,184,0.18);}
.card .name a, .card .detail a{font-weight:600;}

.table-scroll{
  width:100%;
  overflow-x:auto;
  border-radius:22px;
  -webkit-overflow-scrolling:touch;
}
.table-scroll table.simple{min-width:560px;}
.table-scroll table.srcs{min-width:760px;}
table.srcs td:last-child{width:44%;}
table.simple code{
  font-family:"SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size:0.74rem;
  background:rgba(43,127,184,0.1);
  padding:2px 6px;
  border-radius:6px;
  word-break:break-word;
}
table.simple td{vertical-align:top;color:var(--ink);}
table.srcs td:first-child{font-weight:600;white-space:nowrap;}

/* ===================== FOOTER ===================== */
footer.foot{
  max-width:none;
  margin:0;
  padding:0 20px 34px;
  border-top:none;
  font-size:0.8rem;
}
.foot__in{
  max-width:1240px;
  margin:0 auto;
  padding:26px 28px;
  border-radius:28px;
  background:rgba(255,255,255,0.5);
  backdrop-filter:blur(24px) saturate(170%);
  -webkit-backdrop-filter:blur(24px) saturate(170%);
  border:1px solid rgba(255,255,255,0.8);
  box-shadow:inset 0 1px 1px rgba(255,255,255,0.95), 0 10px 30px rgba(15,34,49,0.1);
}
.foot__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px 24px;
  flex-wrap:wrap;
  padding-bottom:16px;
  margin-bottom:14px;
  border-bottom:1px solid rgba(255,255,255,0.75);
}
.foot__brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:1rem;
  font-weight:700;
  letter-spacing:-0.01em;
  color:var(--ink);
}
.foot__brand svg{border-radius:8px;box-shadow:0 2px 6px rgba(28,95,143,0.25);}
.foot__links{display:flex;flex-wrap:wrap;gap:4px;}
.foot__links a{
  padding:6px 12px;
  border-radius:999px;
  font-size:0.8rem;
  font-weight:600;
  color:var(--slate);
  text-decoration:none;
  border:1px solid transparent;
  transition:background 0.15s ease, border-color 0.15s ease;
}
.foot__links a:hover{
  color:var(--ink);
  background:rgba(255,255,255,0.65);
  border-color:rgba(255,255,255,0.85);
}
.foot__disc{
  margin:0 0 8px;
  font-size:0.75rem;
  line-height:1.6;
  color:var(--slate-soft);
}
.foot__disc:last-child{margin-bottom:0;}
.foot__disc b{color:var(--slate);}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1080px){
  .routes__grid{grid-template-columns:1fr;gap:24px;}
  .routes__intro{text-align:center;max-width:640px;margin:0 auto;}
  .feats{grid-template-columns:repeat(2, minmax(0, 1fr));}
  .live__grid{grid-template-columns:1fr;}
  .panel__body{max-height:300px;}
}
@media (max-width: 860px){
  .stats{grid-template-columns:repeat(2, 1fr);}
  .routes__cards{grid-template-columns:1fr;}
  .plate .map-wrap{height:80vh;min-height:460px;}
}
@media (max-width: 640px){
  .site-head{padding:12px 14px 0;}
  .nav-brand{margin-bottom:8px;gap:9px;}
  .nav-brand svg{width:36px;height:36px;}
  .nav-brand b{font-size:1.25rem;}
  .topnav__in{padding-bottom:10px;gap:5px;}
  .menu > summary, .navcta{padding:7px 14px;font-size:0.82rem;}

  .hero{padding:26px 0 10px;}
  .hero h1{margin-top:16px;}
  .hero__ctas{flex-direction:column;align-items:stretch;}
  .hero__ctas .btn{width:100%;}
  .plate{margin:26px 0 0;border-radius:0;border-left:none;border-right:none;}
  .plate .map-wrap{height:calc(100vh - 150px);min-height:400px;}
  .stats{gap:10px;margin-top:24px;}
  .stat{padding:14px 10px;border-radius:18px;}
  .stat b{font-size:1.6rem;}
  .whatis{padding:20px 18px;border-radius:22px;}

  .sec, .routes, .faq{padding-top:54px;padding-bottom:54px;}
  .routes{padding-left:14px;padding-right:14px;}
  .wrap{padding:0 14px;}
  .feats{grid-template-columns:1fr;}
  .steps{padding:4px 18px;border-radius:22px;}
  .faq{padding-left:14px;padding-right:14px;}
  .qa summary{padding:15px 16px;font-size:0.94rem;}
  .qa__a{padding:0 16px 16px;}
  .final{padding:20px 14px 60px;}
  .final__in{padding:32px 20px;border-radius:24px;}
  .final__cta{flex-direction:column;align-items:stretch;}

  .inner-top{padding:22px 14px 0;}
  main.resources{padding-top:20px;}

  footer.foot{padding:0 14px 24px;}
  .foot__in{padding:20px 18px;border-radius:22px;}
  .foot__row{flex-direction:column;align-items:flex-start;}
}
@media (max-width: 380px){
  .nav-brand b{font-size:1.12rem;}
  .menu > summary, .navcta{padding:6px 11px;font-size:0.76rem;}
  .stats{grid-template-columns:1fr 1fr;}
}
