/* Document pages (/resources/). Deliberately plain and scannable — no scroll
   choreography, no parallax. Reads as a public-information page. */

body.doc {
  background: #0d1413;
  color: #ece5da;
}

.doc .site-header {
  max-width: 1120px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(253, 241, 225, 0.12);
}

.doc-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 96px;
}

.doc-head {
  padding: 40px 0 8px;
}

.doc-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: rgba(236, 229, 218, 0.72);
  font-size: 0.98rem;
  text-decoration: none;
}

.doc-back:hover {
  color: #ece5da;
}

.doc-head h1 {
  margin: 8px 0 0;
  font-family: "Ogg Medium", Georgia, serif;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.lede {
  max-width: 62ch;
  margin: 18px 0 0;
  color: rgba(236, 229, 218, 0.82);
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  line-height: 1.45;
}

.muted {
  color: rgba(236, 229, 218, 0.66);
  font-size: 0.96rem;
  line-height: 1.5;
}

/* ------------------------------------------------------------------- cards */

.card {
  margin-top: 28px;
  padding: clamp(20px, 3.4vw, 34px);
  border: 1px solid rgba(253, 241, 225, 0.14);
  border-radius: 22px;
  background: rgba(253, 241, 225, 0.04);
}

.card h2 {
  margin: 0 0 6px;
  font-family: "Ogg Medium", Georgia, serif;
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  font-weight: 500;
  line-height: 1.05;
}

.card h3 {
  margin: 26px 0 8px;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.3;
}

.card p {
  max-width: 68ch;
  margin: 12px 0 0;
  font-size: 1.02rem;
  line-height: 1.55;
}

.card-urgent {
  border-color: rgba(255, 150, 90, 0.4);
  background: rgba(255, 120, 60, 0.07);
}

/* ------------------------------------------------------------- live section */

.live-status {
  margin: 14px 0 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(253, 241, 225, 0.07);
  color: rgba(236, 229, 218, 0.8);
  font-size: 0.96rem;
}

.live-status[hidden] {
  display: none;
}

.live-grid {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
  margin-top: 22px;
}

.live-map:empty {
  display: none;
}

.fire-map {
  display: block;
  width: 100%;
  height: auto;
}

.fm-bg {
  fill: rgba(120, 150, 145, 0.1);
  stroke: rgba(253, 241, 225, 0.14);
}

.fm-halo {
  fill: currentColor;
  opacity: 0.16;
}

.fm-core {
  fill: currentColor;
  opacity: 0.85;
}

.fm-open {
  color: #ff6b3d;
}
.fm-partial {
  color: #ffb02e;
}
.fm-held {
  color: #63c08a;
}
.fm-unknown {
  color: #8fa3a0;
}

.fm-city circle {
  fill: #ece5da;
}

.fm-city text {
  fill: #ece5da;
  font-size: 20px;
  font-weight: 600;
  paint-order: stroke;
  stroke: rgba(13, 20, 19, 0.85);
  stroke-width: 5px;
}

/* --------------------------------------------------------------- fire table */

.table-scroll {
  overflow-x: auto;
}

.fire-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.fire-table th,
.fire-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(253, 241, 225, 0.12);
  white-space: nowrap;
}

.fire-table thead th {
  color: rgba(236, 229, 218, 0.62);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fire-table tbody th {
  font-weight: 600;
}

.fire-table tbody th a {
  /* Fills the cell so the tap target is the full row height, not the text box. */
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: -12px 0;
  color: #ece5da;
  text-decoration-color: rgba(236, 229, 218, 0.4);
  text-underline-offset: 3px;
}

.fire-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.pill {
  display: inline-block;
  min-width: 3.6em;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.pill-open {
  color: #40160a;
  background: #ff8a5c;
}
.pill-partial {
  color: #3a2600;
  background: #ffc45c;
}
.pill-held {
  color: #06301b;
  background: #7fd6a3;
}
.pill-unknown {
  color: #16201f;
  background: #b8c6c3;
}

.live-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin: 22px 0 0;
}

.live-meta dt {
  color: rgba(236, 229, 218, 0.62);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.live-meta dd {
  margin: 6px 0 0;
  font-size: 1.24rem;
  font-variant-numeric: tabular-nums;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(236, 229, 218, 0.7);
  font-size: 0.88rem;
}

.legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-open {
  background: #ff6b3d;
}
.dot-partial {
  background: #ffb02e;
}
.dot-held {
  background: #63c08a;
}

.alert-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.alert {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 12px 16px;
  border-radius: 12px;
  border-left: 4px solid #ffb02e;
  background: rgba(255, 176, 46, 0.12);
  font-size: 0.96rem;
}

.alert-severe,
.alert-extreme {
  border-left-color: #ff6b3d;
  background: rgba(255, 107, 61, 0.14);
}

.alert span {
  color: rgba(236, 229, 218, 0.74);
}

.alert-none {
  margin: 12px 0 0;
  color: rgba(236, 229, 218, 0.62);
  font-size: 0.96rem;
}

/* ---------------------------------------------------------- evacuation levels */

.levels {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.level {
  padding: 16px 18px;
  border-radius: 14px;
  border-left: 5px solid;
  background: rgba(253, 241, 225, 0.05);
}

.level h3 {
  margin: 0;
  font-size: 1.06rem;
}

.level p {
  margin: 6px 0 0;
  font-size: 1rem;
}

.level-1 {
  border-left-color: #ffd166;
}
.level-2 {
  border-left-color: #ff9d4d;
}
.level-3 {
  border-left-color: #ff5f45;
}

/* ------------------------------------------------------------------ buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  margin-top: 22px;
  padding: 0 24px;
  border-radius: 999px;
  color: var(--ink);
  background: #fdf1e1;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: #fff;
}

/* --------------------------------------------------------------- link lists */

.link-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.link-list a {
  display: grid;
  gap: 3px;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(253, 241, 225, 0.14);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
}

.link-list a:hover {
  border-color: rgba(253, 241, 225, 0.42);
  background: rgba(253, 241, 225, 0.05);
}

.link-label {
  font-size: 1rem;
  font-weight: 600;
}

.link-desc {
  color: rgba(236, 229, 218, 0.68);
  font-size: 0.9rem;
  line-height: 1.4;
}

.link-host {
  margin-top: 4px;
  color: rgba(236, 229, 218, 0.45);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

/* ----------------------------------------------------------------- contacts */

.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 18px 32px;
  margin: 20px 0 0;
}

.contacts dt {
  color: rgba(236, 229, 218, 0.62);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contacts dd {
  margin: 6px 0 0;
}

.contacts a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #ffd9a0;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.big-link {
  display: inline-block;
  min-height: 44px;
  font-family: "Ogg Medium", Georgia, serif;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  line-height: 1.2;
  text-decoration: none;
}

.big-link:hover {
  text-decoration: underline;
}

/* -------------------------------------------------------------------- footer */

.doc-foot {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(253, 241, 225, 0.12);
}

.doc-foot p {
  max-width: 78ch;
  margin: 0;
  color: rgba(236, 229, 218, 0.58);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ------------------------------------------------------------------- mobile */

@media (max-width: 900px) {
  .live-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .live-map {
    max-width: 420px;
  }
}

@media (max-width: 640px) {
  .doc-main {
    padding: 0 16px 72px;
  }
  .doc-head {
    padding-top: 24px;
  }
  .fire-table th,
  .fire-table td {
    padding: 11px 10px;
  }
  .live-meta {
    gap: 14px 24px;
  }
}

/* ------------------------------------------------- ALERT Spokane call-out */

/* The most useful thing this site can do is push people to the county system
   that can actually reach them, so it gets the loudest treatment on the page. */
.card-alert {
  border-color: rgba(255, 217, 160, 0.45);
  background: rgba(255, 217, 160, 0.09);
}

.button-loud {
  min-height: 56px;
  padding: 0 30px;
  font-size: 1.06rem;
}

.notice {
  margin: 24px 0 0;
  padding: 14px 18px;
  border-left: 4px solid #ffd9a0;
  border-radius: 12px;
  background: rgba(255, 217, 160, 0.1);
  color: rgba(236, 229, 218, 0.86);
  font-size: 0.98rem;
  line-height: 1.5;
}

/* -------------------------------------------------------------- conditions */

.cond-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 16px;
  margin: 20px 0 0;
}

.cond {
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(253, 241, 225, 0.05);
}

.cond dt {
  color: rgba(236, 229, 218, 0.62);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.cond dd {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px 0 0;
}

.cond dd strong {
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.cond-note {
  color: rgba(236, 229, 218, 0.7);
  font-size: 0.86rem;
  line-height: 1.3;
}

/* AQI bands carry the meaning of the number, not just its value. */
.cond-aqi-good strong { color: #7fd6a3; }
.cond-aqi-moderate strong { color: #ffe07a; }
.cond-aqi-sensitive strong { color: #ffc45c; }
.cond-aqi-unhealthy strong { color: #ff8a5c; }
.cond-aqi-very strong { color: #ff6b6b; }
.cond-aqi-hazardous strong { color: #e05a8a; }

.cond-aqi-unhealthy,
.cond-aqi-very,
.cond-aqi-hazardous,
.cond-warn {
  background: rgba(255, 107, 61, 0.12);
}

.cond-warn .cond-note {
  color: #ffb08c;
}

/* ------------------------------------------------------ changes since visit */

.chg-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.chg {
  padding: 12px 16px;
  border-radius: 12px;
  border-left: 4px solid rgba(236, 229, 218, 0.3);
  background: rgba(253, 241, 225, 0.05);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.chg-worse {
  border-left-color: #ff6b3d;
}
.chg-better {
  border-left-color: #63c08a;
}
.chg-new {
  border-left-color: #ffb02e;
}

/* ------------------------------------------------------------ updates feed */

.feed {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.feed-item {
  padding: 18px 20px;
  border: 1px solid rgba(253, 241, 225, 0.14);
  border-radius: 16px;
  background: rgba(253, 241, 225, 0.04);
}

.feed-when {
  display: block;
  color: rgba(236, 229, 218, 0.58);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.feed-title {
  margin: 6px 0 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.feed-body {
  max-width: 74ch;
  margin: 10px 0 0;
  color: rgba(236, 229, 218, 0.78);
  font-size: 0.98rem;
  line-height: 1.55;
}

.feed-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 6px;
  color: #ffd9a0;
  font-size: 0.96rem;
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------------- gallery */

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  gap: 22px;
  margin: 26px 0 0;
}

.shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(253, 241, 225, 0.14);
  border-radius: 18px;
  background: rgba(253, 241, 225, 0.04);
}

.shot > a {
  display: block;
  background: #05090a;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  /* Satellite frames are square-ish; keep the tile shape stable while loading. */
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.shot figcaption {
  padding: 16px 18px 18px;
}

.shot figcaption h2 {
  margin: 0;
  font-family: inherit;
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.3;
}

.shot figcaption p {
  max-width: none;
  margin: 8px 0 0;
  color: rgba(236, 229, 218, 0.76);
  font-size: 0.94rem;
  line-height: 1.5;
}

.shot-meta {
  color: rgba(236, 229, 218, 0.5) !important;
  font-size: 0.84rem !important;
}

.shot-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(255, 217, 160, 0.9);
  text-underline-offset: 3px;
}

/* ----------------------------------------------------------------- articles */

.emphasis {
  padding: 14px 18px;
  border-left: 4px solid #ffd9a0;
  border-radius: 12px;
  background: rgba(255, 217, 160, 0.09);
  font-weight: 500;
}

.plain,
.reasons {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 1.3em;
}

.plain {
  list-style: disc;
}

.plain li,
.reasons li {
  max-width: 70ch;
  font-size: 1.02rem;
  line-height: 1.55;
}

.cites {
  margin-top: 22px !important;
  padding-top: 16px;
  border-top: 1px solid rgba(253, 241, 225, 0.12);
  color: rgba(236, 229, 218, 0.6);
  font-size: 0.9rem !important;
}

.cites a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(255, 217, 160, 0.9);
  text-underline-offset: 3px;
}
