/* Lato, self-hosted, the same two weights and the same files as the app. This
   page loads no other stylesheet, so it declares the faces itself. */
@font-face {
  font-family: Lato;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("Lato Regular"), local("Lato-Regular"),
       url(../fonts/lato-latin-400.woff2) format("woff2");
}
@font-face {
  font-family: Lato;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local("Lato Bold"), local("Lato-Bold"),
       url(../fonts/lato-latin-700.woff2) format("woff2");
}

/* Standalone about page. Same arrangement as the terms page: it does not import the
   story shell, and the palette mirrors src/styles.css. */
:root {
  --ink: #292928;
  --muted: #696967;
  --paper: #fffef9;
  --line: #dcdcd8;
  --blue: #003c65;
  --gold: #c89b14;
}

.locale-pending body { visibility: hidden; }

* { box-sizing: border-box; }

/* The app's skip link: first in the page, shown only once focused, above the sticky
   header. */
.skip-link {
  position: fixed; z-index: 900; top: 0; left: 0;
  padding: 10px 16px; border-bottom-right-radius: 8px;
  color: white; background: var(--blue); font-weight: 700; text-decoration: none;
  transform: translateY(-110%);
}
.skip-link:focus { transform: translateY(0); }

html { scroll-behavior: smooth; scroll-padding-top: 98px; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: white;
  font-family: Lato, Arial, sans-serif;
  font-synthesis: none;
}

.about-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 82px;
  padding: 0 max(24px, calc((100% - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgb(255 255 255 / 96%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

/* Brand lockup, language switch and climate-data button. These match the app
   masthead in src/styles.css rule for rule: one mark, one wordmark, one pair of
   controls, so the header reads the same on every surface of the service. */
.about-brand, .about-back { color: inherit; text-decoration: none; }
.about-brand { display: flex; align-items: center; gap: 12px; font-size: 1.05rem; font-weight: 700; }
.about-brand-mark { width: 42px; height: 42px; display: inline-flex; flex: 0 0 auto; }
.about-brand-mark svg { width: 100%; height: 100%; overflow: visible; }
.brand-mark__place { fill: var(--blue); }
.brand-mark__future { fill: none; stroke: var(--gold); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.about-brand-text { display: flex; flex-direction: column; gap: 1px; line-height: 1.15; }
.about-brand-name { color: var(--blue); }
.about-brand-tagline { color: var(--muted); font-size: .68rem; font-weight: 400; letter-spacing: .01em; }

.about-header-actions { display: flex; align-items: center; gap: 14px; }
.locale-switch { display: flex; padding: 2px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
.locale-switch button { padding: 5px 8px; border: 0; border-radius: 5px; color: var(--muted); background: transparent; font: inherit; font-size: .72rem; font-weight: 700; cursor: pointer; }
.locale-switch button[aria-pressed="true"] { color: white; background: var(--blue); }
.about-back {
  padding: 8px 12px; border-radius: 7px; color: white; background: var(--blue);
  font-size: .72rem; font-weight: 700; white-space: nowrap;
}

.about-page {
  width: min(820px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 64px;
  line-height: 1.65;
}

.about-eyebrow {
  margin: 0 0 12px; color: var(--blue); font-size: .75rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}
.about-page h1 { margin: 0 0 16px; font-size: 2rem; font-weight: 700; line-height: 1.2; }
.about-page h2 {
  margin: 40px 0 10px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 1.2rem; font-weight: 700;
}
.about-page h3 { margin: 24px 0 8px; font-size: 1rem; font-weight: 700; color: var(--ink); }
.about-page h4 { margin: 18px 0 6px; font-size: .88rem; font-weight: 700; color: var(--muted); }
.about-page p { margin: 0 0 14px; text-wrap: pretty; }
.about-page ul { margin: 0 0 14px; padding-left: 22px; }
.about-page li { margin-bottom: 8px; }
.about-page a {
  color: var(--blue); font-weight: 700; text-decoration-color: var(--gold);
  text-decoration-thickness: 2px; text-underline-offset: 3px;
}

.about-notice {
  margin: 0 0 22px; padding: 10px 14px; border-left: 4px solid #e6c766;
  background: #fff4d6; font-size: .92rem;
}

.about-infobox {
  margin: 18px 0 24px; padding: 20px 22px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
}
.about-infobox h3 { margin: 0 0 10px; }
.about-infobox blockquote {
  margin: 0 0 14px; padding: 0 0 0 2px;
  color: var(--muted); font-style: italic;
}
.about-infobox > :last-child { margin-bottom: 0; }

.about-nav {
  display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 8px;
  font-size: .82rem; font-weight: 700;
}
.about-nav a { text-decoration: none; }
.about-nav a:hover, .about-nav a:focus-visible { text-decoration: underline; }

.about-badge {
  display: inline-block; vertical-align: middle; margin-left: 8px; padding: 2px 8px;
  border-radius: 999px; background: #fff4d6; border: 1px solid #e6c766;
  color: var(--ink); font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase;
}

.about-table-wrap { overflow-x: auto; margin: 0 0 14px; }
.about-sources { width: 100%; border-collapse: collapse; font-size: .88rem; line-height: 1.5; }
.about-sources th, .about-sources td {
  padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line);
  text-align: left; vertical-align: top;
}
.about-sources th { color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.about-sources td:first-child { font-weight: 700; white-space: nowrap; }
.about-sources td:last-child { color: var(--muted); }

.about-refs li { font-size: .92rem; }
.about-refs i { font-style: italic; }

/* Same shape as the app footer in src/styles.css: the product and its developer on
   one side, the cross-links on the other. */
.about-footer {
  width: min(820px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
}
.about-footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.about-footer a {
  color: var(--blue); font-weight: 700; text-decoration-color: var(--gold);
  text-decoration-thickness: 2px; text-underline-offset: 3px;
}

/* Same breakpoint as the app masthead: the tagline is the first thing to go when
   the header narrows, so the lockup collapses identically on every surface. */
@media (max-width: 850px) {
  .about-brand-tagline { display: none; }
}

@media (max-width: 640px) {
  .about-header { min-height: 72px; padding-inline: 16px; gap: 12px; }
  .about-header-actions { gap: 8px; }
  .about-brand { gap: 8px; font-size: .95rem; }
  .about-brand-mark { width: 34px; height: 34px; }
  .locale-switch button { padding-inline: 5px; font-size: .64rem; }
  .about-page { width: calc(100% - 32px); padding-top: 32px; }
  .about-page h1 { font-size: 1.6rem; }
  .about-sources td:first-child { white-space: normal; }
  .about-footer { width: calc(100% - 32px); flex-direction: column; gap: 10px; }
  .about-footer-links { align-items: flex-start; flex-direction: column; gap: 8px; }
}
