/* The site header, in Forecast City's clothes.
 *
 * Forecast Flakes dresses as Forecast City does, the way Forecast Points already does
 * (forecast.city/theme/tokens.json): cream atlas paper, a white-bordered guide-sign
 * wordmark, a plain-text primary nav whose current page is green with a sign-yellow
 * underline, the 4 px sign-yellow rule under it, and a monospaced strip below that for
 * the rest of the network and the data's provenance.
 *
 * Green is the chrome. Blue — the six-inch band of the NWS snowfall scale — stays the
 * colour of the data, never of a button. The markup this styles is written into every
 * page by tools/chrome.py, from one template, and into every generated product page by
 * ingest/products.py through the same function. Light only, as every page on the
 * network is.
 */
:root {
  --fc-paper: #FBF8F1;
  --fc-paper-2: #F3EEE2;
  --fc-rule: #DDD2BE;
  --fc-rule-2: #E6DDCB;
  --fc-ink: #1F1B16;
  --fc-ink-3: #3A322A;
  --fc-mut: #7B736A;
  --fc-green: #00703C;
  --fc-green-dark: #004F2A;
  --fc-sign-yellow: #FFCE00;
  --fc-snow: #2f57bf;
  --fc-ice: #7a3fa8;
}

.fch { background: var(--fc-paper); color: var(--fc-ink); font-family: 'Overpass', system-ui, sans-serif; }
.fch-in { max-width: 1620px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center;
  gap: 10px 32px; flex-wrap: wrap; }
.fch > .fch-in { min-height: 72px; padding-top: 8px; padding-bottom: 8px; }

/* FORECAST [FLAKES]: the word, then the name on a guide sign with its white border. */
.fch-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fc-ink);
  text-decoration: none; flex: none; }
.fch-brand:hover { text-decoration: none; color: var(--fc-ink); }
.fch-word { font-size: 20px; font-weight: 900; letter-spacing: 3px; line-height: 1; }
.fch-sign { display: inline-flex; align-items: center; gap: 7px;
  background: var(--fc-green); color: #fff; font-size: 17px; font-weight: 800; letter-spacing: 2px;
  line-height: 1; padding: 6px 10px 5px 8px; border-radius: 5px; border: 2px solid #fff;
  box-shadow: 0 0 0 1.5px var(--fc-green); }
.fch-sign svg { width: 15px; height: 15px; display: block; }

.fch-nav { display: flex; gap: 6px 24px; flex-wrap: wrap; font-size: 15px; font-weight: 700; }
.fch-nav a { color: var(--fc-ink); text-decoration: none; padding: 4px 0 2px;
  border-bottom: 3px solid transparent; }
.fch-nav a:hover { color: var(--fc-green); text-decoration: none; }
.fch-nav a[aria-current="page"] { color: var(--fc-green); border-bottom-color: var(--fc-sign-yellow); }

.fch-rule { height: 4px; background: var(--fc-sign-yellow); }

/* The strip: the rest of the network on the left, what this page is drawn from on the right. */
.fch-sub { background: var(--fc-paper); border-bottom: 1px solid var(--fc-rule-2);
  font: 500 11px/1 'Overpass Mono', ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.fch-sub .fch-in { min-height: 30px; padding-top: 6px; padding-bottom: 5px; justify-content: space-between; gap: 6px 22px; }
.fch-sub nav { display: flex; gap: 4px 20px; flex-wrap: wrap; }
.fch-sub a { color: var(--fc-ink); text-decoration: none; }
.fch-sub a:hover { color: var(--fc-green); text-decoration: none; }
.fch-stamp { color: var(--fc-ink-3); }
.fch-stamp b { color: var(--fc-green); font-weight: 600; }

/* The footer, the same cloth. */
.fcf { background: var(--fc-paper); color: var(--fc-ink-3); border-top: 4px solid var(--fc-sign-yellow);
  margin-top: 40px; font-family: 'Overpass', system-ui, sans-serif; }
.fcf .fch-in { padding-top: 22px; padding-bottom: 26px; align-items: flex-start; gap: 14px 40px; }
.fcf-brand { font-size: 16px; font-weight: 900; letter-spacing: 3px; color: var(--fc-ink); }
.fcf-brand span { color: var(--fc-green); }
.fcf p { margin: 0; font-size: 13px; line-height: 1.55; max-width: 62ch; }
.fcf .fcf-fine { font: 500 10.5px/1.6 'Overpass Mono', ui-monospace, monospace; letter-spacing: .08em;
  text-transform: uppercase; color: var(--fc-mut); }
.fcf a { color: var(--fc-ink); text-decoration: none; border-bottom: 1px solid var(--fc-rule); }
.fcf a:hover { color: var(--fc-green); border-bottom-color: var(--fc-green); }

@media (max-width: 700px) {
  .fch-in { padding: 0 16px; }
  .fch > .fch-in { min-height: 0; padding-top: 12px; padding-bottom: 10px; gap: 10px 18px; }
  .fch-nav { gap: 4px 14px; font-size: 14px; }
  .fch-stamp { display: none; }
  /* the network strip is one line that scrolls, not three that push the page down */
  .fch-sub nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
  .fch-sub nav::-webkit-scrollbar { display: none; }
  .fch-sub .fch-in { flex-wrap: nowrap; }
  .fch-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; max-width: 100%; }
  .fch-nav::-webkit-scrollbar { display: none; }
}
@media print {
  .fch-sub, .fcf { display: none; }
}
