/* Self-hosted fonts (from Fontsource, the Google Fonts files on npm).
   Latin + Latin Extended subsets; the browser only downloads a file
   when the page uses that weight and those characters. */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/newsreader-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/newsreader-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(fonts/newsreader-latin-ext-500-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(fonts/newsreader-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(fonts/newsreader-latin-ext-600-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(fonts/newsreader-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(fonts/newsreader-latin-ext-700-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(fonts/newsreader-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/newsreader-latin-ext-400-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/newsreader-latin-400-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-display: swap;
  font-weight: 500;
  src: url(fonts/newsreader-latin-ext-500-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-display: swap;
  font-weight: 500;
  src: url(fonts/newsreader-latin-500-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/public-sans-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/public-sans-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(fonts/public-sans-latin-ext-500-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(fonts/public-sans-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(fonts/public-sans-latin-ext-600-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(fonts/public-sans-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(fonts/public-sans-latin-ext-700-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(fonts/public-sans-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/ibm-plex-mono-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(fonts/ibm-plex-mono-latin-ext-500-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(fonts/ibm-plex-mono-latin-ext-600-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(fonts/ibm-plex-mono-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ============ SITE FOOTER ============
   Bio, Site links, Projects, and (on the register) the Sources chart.
   Everything is scoped to .site-footer (plus the floating .to-top button
   and .toast), so none of it leaks into the rest of the page. Colors and
   fonts come from the site's own tokens (style.less). Ported from the
   14ers site; this copy adds the overrides for this site's generic
   footer rules at the bottom. */
/* Footer palette, mapped onto this site's tokens (style.less). Set on
   body so they follow the day/night toggle (body.light) and also reach
   the toast and back-to-top button, which sit outside the footer. */
body {
  --ft-accent: var(--accent-text);
  --ft-accent-soft: color-mix(in srgb, var(--rust) 14%, transparent);
  --ft-text: var(--panel-label-color);
  --ft-muted: var(--text-color);
  --ft-line: var(--panel-border-color);
  --ft-surface: var(--panel-background-color);
  --ft-danger: #e0715f;
  --ft-live: #7fa36b;
}
/* light mode: a paler green so the Live badges stay readable */
body.light {
  --ft-live: #b5dca6;
}
.site-footer {
  display: block;
  /* the generic footer rule in style.css is a flex row */
  margin-top: 56px;
  padding: 32px 0 24px;
  border-top: 1px solid var(--ft-line);
  color: var(--ft-text);
  font-family: var(--font-body);
  font-style: normal;
  font-size: 15px;
}
.site-footer a {
  color: inherit;
  text-decoration: none;
}
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer svg {
  display: block;
}
.site-footer p {
  margin: 0;
}
.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px 40px;
  align-items: start;
  width: 100%;
  padding: 0 16px;
}
.footer-col h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ft-accent);
}
.footer-col h3::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--ft-line), transparent);
}
/* ---------- BIO ---------- */
.bio-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}
.avatar-wrap {
  position: relative;
  flex: none;
  width: 84px;
  height: 84px;
  padding: 3px;
  border-radius: 50%;
  isolation: isolate;
}
.avatar-wrap::before,
.avatar-wrap::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--rust), #f2c46d, var(--ft-live), var(--rust));
  animation: ft-spin 6s linear infinite;
}
.avatar-wrap::before {
  inset: 0;
}
.avatar-wrap::after {
  inset: -8px;
  filter: blur(14px);
  opacity: 0.3;
  z-index: -1;
}
.avatar {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border: 3px solid var(--ft-surface);
  border-radius: 50%;
  background: var(--ft-surface);
  object-fit: cover;
}
.status-dot {
  position: absolute;
  z-index: 2;
  right: 4px;
  bottom: 4px;
  width: 14px;
  height: 14px;
  border: 3px solid var(--ft-surface);
  border-radius: 50%;
  background: var(--ft-live);
}
.status-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 2px solid var(--ft-live);
  border-radius: 50%;
  animation: ft-ping 2s ease-out infinite;
}
.bio-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.bio-role {
  min-height: 1.4em;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  color: var(--ft-muted);
}
.bio-role .caret {
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--ft-accent);
  animation: ft-blink 1s steps(1) infinite;
}
.footer-bio p {
  max-width: 52ch;
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--ft-muted);
}
.email-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 9px 14px 9px 12px;
  border: 1px solid var(--ft-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ft-text);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.email-chip:hover,
.email-chip:focus-visible {
  border-color: var(--ft-accent);
  background: var(--ft-accent-soft);
  box-shadow: 0 0 24px color-mix(in srgb, var(--rust) 25%, transparent);
  outline: none;
}
.email-chip svg {
  width: 16px;
  height: 16px;
  stroke: var(--ft-accent);
}
.email-chip .copy-ico {
  opacity: 0.55;
  transition: opacity 0.2s;
}
.email-chip:hover .copy-ico {
  opacity: 1;
}
.coords {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  color: var(--ft-muted);
  opacity: 0.75;
}
.coords svg {
  width: 14px;
  height: 14px;
  stroke: var(--ft-accent);
}
/* ---------- LINK LISTS (Site, Projects) ---------- */
.link-list {
  /* the two project logos are full-colour flags, not line icons */
}
.link-list li + li {
  margin-top: 6px;
}
.link-list a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: -10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--ft-text);
  font-size: 0.95rem;
  transition: background 0.25s, color 0.25s;
}
.link-list a:hover,
.link-list a:focus-visible {
  background: var(--ft-accent-soft);
  outline: none;
}
.link-list .ico {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--ft-line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.25s, border-color 0.25s, transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.link-list .ico svg {
  width: 16px;
  height: 16px;
  stroke: var(--ft-accent);
}
.link-list a:hover .ico,
.link-list a:focus-visible .ico {
  border-color: var(--ft-accent);
  background: color-mix(in srgb, var(--rust) 18%, transparent);
  transform: rotate(-8deg) scale(1.08);
}
.link-list .arrow {
  width: 14px;
  height: 14px;
  margin-left: auto;
  stroke: var(--ft-accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s, transform 0.25s;
}
.link-list a:hover .arrow,
.link-list a:focus-visible .arrow {
  opacity: 1;
  transform: none;
}
.link-list a.alert .ico svg {
  stroke: var(--ft-danger);
}
.link-list a.alert:hover .ico {
  border-color: var(--ft-danger);
  background: color-mix(in srgb, var(--ft-danger) 15%, transparent);
}
.link-list a.fourteener .ico,
.link-list a.grand-canyon .ico {
  overflow: hidden;
  border: none;
  border-radius: 50%;
  background: none;
}
.link-list a.fourteener .ico svg {
  width: 32px;
  height: 32px;
}
.link-list a.grand-canyon .ico svg {
  width: 52px;
  height: 52px;
  margin: -10px 0 0 -9px;
}
.link-list a.timber-valley .ico svg {
  width: 32px;
  height: 32px;
}
.badge {
  padding: 4px 6px;
  border: 1px solid color-mix(in srgb, var(--rust) 40%, transparent);
  border-radius: 5px;
  background: var(--ft-accent-soft);
  color: var(--ft-accent);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.badge.live {
  border-color: color-mix(in srgb, var(--ft-live) 45%, transparent);
  background: color-mix(in srgb, var(--ft-live) 14%, transparent);
  color: var(--ft-live);
}
/* ---------- SEARCH & RESCUE NOTE (full width) ---------- */
.site-footer .sar {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px dotted var(--rust);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ft-muted);
}
.site-footer .sar svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  stroke: var(--ft-accent);
}
.site-footer .sar strong {
  color: var(--ft-text);
  font-weight: 600;
}
.site-footer .sar a {
  color: var(--ft-accent);
  border-bottom: 1px solid color-mix(in srgb, var(--rust) 45%, transparent);
}
.site-footer .sar a:hover {
  border-color: var(--ft-accent);
}
/* ---------- BOTTOM BAR ---------- */
.footer-bottom {
  margin-top: 24px;
  padding: 16px 16px 0;
  border-top: 1px solid var(--ft-line);
  font-size: 0.85rem;
  color: var(--ft-muted);
}
/* ---------- BACK TO TOP (floating; only if the page has #toTop) ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ft-surface) 85%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.to-top.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.to-top .ring {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}
.to-top .ring circle {
  fill: none;
  stroke-width: 2.5;
}
.to-top .ring .track {
  stroke: var(--ft-line);
}
.to-top .ring .bar {
  stroke: var(--rust);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear;
}
.to-top .chev {
  width: 20px;
  height: 20px;
  stroke: var(--ft-text);
  transition: transform 0.25s;
}
.to-top:hover .chev {
  transform: translateY(-3px);
}
.to-top:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}
/* ---------- TOAST ("Email copied") ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ft-text);
  color: var(--ft-surface);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 30px);
  transition: opacity 0.3s, transform 0.35s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@keyframes ft-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes ft-blink {
  50% {
    opacity: 0;
  }
}
@keyframes ft-ping {
  from {
    transform: scale(1);
    opacity: 0.9;
  }
  to {
    transform: scale(2.4);
    opacity: 0;
  }
}
/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
  .footer-bio {
    grid-column: 1 / -1;
  }
}
@media (max-width: 560px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-footer *,
  .site-footer *::before,
  .site-footer *::after,
  .to-top,
  .toast {
    animation: none !important;
    transition: none !important;
  }
}
/* ---------- THIS SITE ----------
   style.less has generic footer rules (a centred flex row whose first
   div is the 50%-wide bio) for the old footer. Undo them here. */
body footer.site-footer {
  /* body raises this above .doc footer in pages.less */
  display: block;
  text-align: left;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ft-text);
}
body footer.site-footer > .footer-container:first-child {
  display: grid;
  width: 100%;
}
/* the old bio rule (footer > div:first-child p) indents and shrinks it */
footer.site-footer .footer-bio p {
  margin-left: 0;
  font-size: 0.93rem;
  line-height: 1.6;
  text-align: left;
}
/* Sources chart (register page only), full width under the columns */
.footer-sources {
  grid-column: 1 / -1;
}
.footer-sources .bar-list {
  max-width: 480px;
}
:root {
  --aircraft-start: oklch(0.33 0.12 250);
  --aircraft: oklch(0.5 0.12 250);
  --aircraft-end: oklch(0.77 0.12 250);
  --fall-start: oklch(0.33 0.15 25);
  --fall: oklch(0.5 0.15 25);
  --fall-end: oklch(0.77 0.15 25);
  --intentional-start: oklch(0.33 0.14 305);
  --intentional: oklch(0.5 0.14 305);
  --intentional-end: oklch(0.77 0.14 305);
  --heat-start: oklch(0.33 0.14 65);
  --heat: oklch(0.5 0.14 65);
  --heat-end: oklch(0.77 0.14 65);
  --drowning-start: oklch(0.33 0.11 205);
  --drowning: oklch(0.5 0.11 205);
  --drowning-end: oklch(0.77 0.11 205);
  --medical-start: oklch(0.33 0.09 340);
  --medical: oklch(0.5 0.09 340);
  --medical-end: oklch(0.77 0.09 340);
  --flood-start: oklch(0.33 0.1 170);
  --flood: oklch(0.5 0.1 170);
  --flood-end: oklch(0.77 0.1 170);
  --exposure-start: oklch(0.33 0.06 230);
  --exposure: oklch(0.5 0.06 230);
  --exposure-end: oklch(0.77 0.06 230);
  --rockfall-start: oklch(0.33 0.08 80);
  --rockfall: oklch(0.5 0.08 80);
  --rockfall-end: oklch(0.77 0.08 80);
  --lightning-start: oklch(0.33 0.14 100);
  --lightning: oklch(0.5 0.14 100);
  --lightning-end: oklch(0.77 0.14 100);
}
/* Cause palette -- same fixed-lightness OKLCH approach as the 14ers
   swatches, so dark text stays legible in either theme. "Unknown"
   and "Other" keep the neutral .cause-tag fallback. */
.cause-tag[data-cause="Aircraft / vehicle"],
.cause-tag[data-cause="Fall"],
.cause-tag[data-cause="Intentional"],
.cause-tag[data-cause="paneliac / heat"],
.cause-tag[data-cause="Drowning"],
.cause-tag[data-cause="Other medical"],
.cause-tag[data-cause="Flash flood"],
.cause-tag[data-cause="Exposure"],
.cause-tag[data-cause="Rockfall"],
.cause-tag[data-cause="Lightning"] {
  border-color: transparent;
  color: #000;
}
.cause-tag[data-cause="Aircraft / vehicle"] {
  background: linear-gradient(0deg, var(--aircraft-start) 0%, var(--aircraft) 5%, var(--aircraft) 95%, var(--aircraft-end) 100%);
}
.cause-tag[data-cause="Fall"] {
  background: linear-gradient(0deg, var(--fall-start) 0%, var(--fall) 5%, var(--fall) 95%, var(--fall-end) 100%);
}
.cause-tag[data-cause="Intentional"] {
  background: linear-gradient(0deg, var(--intentional-start) 0%, var(--intentional) 5%, var(--intentional) 95%, var(--intentional-end) 100%);
}
.cause-tag[data-cause="paneliac / heat"] {
  background: linear-gradient(0deg, var(--heat-start) 0%, var(--heat) 5%, var(--heat) 95%, var(--heat-end) 100%);
}
.cause-tag[data-cause="Drowning"] {
  background: linear-gradient(0deg, var(--drowning-start) 0%, var(--drowning) 5%, var(--drowning) 95%, var(--drowning-end) 100%);
}
.cause-tag[data-cause="Other medical"] {
  background: linear-gradient(0deg, var(--medical-start) 0%, var(--medical) 5%, var(--medical) 95%, var(--medical-end) 100%);
}
.cause-tag[data-cause="Flash flood"] {
  background: linear-gradient(0deg, var(--flood-start) 0%, var(--flood) 5%, var(--flood) 95%, var(--flood-end) 100%);
}
.cause-tag[data-cause="Exposure"] {
  background: linear-gradient(0deg, var(--exposure-start) 0%, var(--exposure) 5%, var(--exposure) 95%, var(--exposure-end) 100%);
}
.cause-tag[data-cause="Rockfall"] {
  background: linear-gradient(0deg, var(--rockfall-start) 0%, var(--rockfall) 5%, var(--rockfall) 95%, var(--rockfall-end) 100%);
}
.cause-tag[data-cause="Lightning"] {
  background: linear-gradient(0deg, var(--lightning-start) 0%, var(--lightning) 5%, var(--lightning) 95%, var(--lightning-end) 100%);
}
.cause .bar-list button:nth-child(1) .bar-fill {
  background: linear-gradient(90deg, var(--aircraft-start) 0%, var(--aircraft) 50%, var(--aircraft-end) 100%);
}
.cause .bar-list button:nth-child(2) .bar-fill {
  background: linear-gradient(90deg, var(--fall-start) 0%, var(--fall) 50%, var(--fall-end) 100%);
}
.cause .bar-list button:nth-child(3) .bar-fill {
  background: linear-gradient(90deg, var(--intentional-start) 0%, var(--intentional) 50%, var(--intentional-end) 100%);
}
.cause .bar-list button:nth-child(4) .bar-fill {
  background: linear-gradient(90deg, var(--heat-start) 0%, var(--heat) 50%, var(--heat-end) 100%);
}
.cause .bar-list button:nth-child(5) .bar-fill {
  background: linear-gradient(90deg, var(--drowning-start) 0%, var(--drowning) 50%, var(--drowning-end) 100%);
}
.cause .bar-list button:nth-child(6) .bar-fill {
  background: linear-gradient(90deg, var(--medical-start) 0%, var(--medical) 50%, var(--medical-end) 100%);
}
.cause .bar-list button:nth-child(7) .bar-fill {
  background: linear-gradient(90deg, var(--flood-start) 0%, var(--flood) 50%, var(--flood-end) 100%);
}
.cause .bar-list button:nth-child(8) .bar-fill {
  background: linear-gradient(90deg, var(--exposure-start) 0%, var(--exposure) 50%, var(--exposure-end) 100%);
}
.cause .bar-list button:nth-child(9) .bar-fill {
  background: linear-gradient(90deg, var(--rockfall-start) 0%, var(--rockfall) 50%, var(--rockfall-end) 100%);
}
.cause .bar-list button:nth-child(10) .bar-fill {
  background: linear-gradient(90deg, var(--lightning-start) 0%, var(--lightning) 50%, var(--lightning-end) 100%);
}
:root {
  --male-start: oklch(0.33 0.13 246);
  --male: oklch(0.5 0.13 246);
  --male-end: oklch(0.77 0.13 246);
  --female-start: oklch(0.33 0.22 355);
  --female: oklch(0.5 0.22 355);
  --female-end: oklch(0.77 0.22 355);
  --unknown-start: oklch(0.33 0 0);
  --unknown: oklch(0.5 0 0);
  --unknown-end: oklch(0.77 0 0);
}
/*
.sex-tag[data-value="male"],
.sex-tag[data-value="female"],
.sex-tag[data-value="unknown"],
.sex-tag[data-value="35-44"],
.sex-tag[data-value="45-54"],
.sex-tag[data-value="55-64"],
.sex-tag[data-value="65+"] {
  border-color: transparent;
  color: #000;
}
.sex-tag[data-value="male"] {
  background: linear-gradient(
    0deg,
    var(--male-start) 0%,
    var(--male) 5%,
    var(--male) 95%,
    var(--male-end) 100%
  );
}
.sex-tag[data-value="female"] {
  background: linear-gradient(
    0deg,
    var(--female-start) 0%,
    var(--female) 5%,
    var(--female) 95%,
    var(--female-end) 100%
  );
}
.sex-tag[data-value="unknown"] {
  background: linear-gradient(
    0deg,
    var(--unknown-start) 0%,
    var(--unknown) 5%,
    var(--unknown) 95%,
    var(--unknown-end) 100%
  );
}
*/
.sex .bar-list button:nth-child(1) .bar-fill {
  background: linear-gradient(90deg, var(--male-start) 0%, var(--male) 50%, var(--male-end) 100%);
}
.sex .bar-list button:nth-child(2) .bar-fill {
  background: linear-gradient(90deg, var(--female-start) 0%, var(--female) 50%, var(--female-end) 100%);
}
.sex .bar-list button:nth-child(3) .bar-fill {
  background: linear-gradient(90deg, var(--unknown-start) 0%, var(--unknown) 50%, var(--unknown-end) 100%);
}
:root {
  --0-14-start: oklch(0.33 0.12 250);
  --0-14: oklch(0.5 0.12 250);
  --0-14-end: oklch(0.77 0.12 250);
  --15-24-start: oklch(0.33 0.15 25);
  --15-24: oklch(0.5 0.15 25);
  --15-24-end: oklch(0.77 0.15 25);
  --25-34-start: oklch(0.33 0.14 305);
  --25-34: oklch(0.5 0.14 305);
  --25-34-end: oklch(0.77 0.14 305);
  --35-44-start: oklch(0.33 0.14 65);
  --35-44: oklch(0.5 0.14 65);
  --35-44-end: oklch(0.77 0.14 65);
  --45-54-start: oklch(0.33 0.11 205);
  --45-54: oklch(0.5 0.11 205);
  --45-54-end: oklch(0.77 0.11 205);
  --55-64-start: oklch(0.33 0.09 340);
  --55-64: oklch(0.5 0.09 340);
  --55-64-end: oklch(0.77 0.09 340);
  --65-start: oklch(0.33 0.1 170);
  --65: oklch(0.5 0.1 170);
  --65-end: oklch(0.77 0.1 170);
}
/*
.age-tag[data-value="0-14"],
.age-tag[data-value="15-24"],
.age-tag[data-value="25-34"],
.age-tag[data-value="35-44"],
.age-tag[data-value="45-54"],
.age-tag[data-value="55-64"],
.age-tag[data-value="65+"] {
  border-color: transparent;
  color: #000;
}
.age-tag[data-value="0-14"] {
  background: linear-gradient(
    0deg,
    var(--0-14-start) 0%,
    var(--0-14) 5%,
    var(--0-14) 95%,
    var(--0-14-end) 100%
  );
}
.age-tag[data-value="15-24"] {
  background: linear-gradient(
    0deg,
    var(--15-24-start) 0%,
    var(--15-24) 5%,
    var(--15-24) 95%,
    var(--15-24-end) 100%
  );
}
.age-tag[data-value="25-34"] {
  background: linear-gradient(
    0deg,
    var(--25-34-start) 0%,
    var(--25-34) 5%,
    var(--25-34) 95%,
    var(--25-34-end) 100%
  );
}
.age-tag[data-value="35-44"] {
  background: linear-gradient(
    0deg,
    var(--35-44-start) 0%,
    var(--35-44) 5%,
    var(--35-44) 95%,
    var(--35-44-end) 100%
  );
}
.age-tag[data-value="45-54"] {
  background: linear-gradient(
    0deg,
    var(--45-54-start) 0%,
    var(--45-54) 5%,
    var(--45-54) 95%,
    var(--45-54-end) 100%
  );
}
.age-tag[data-value="55-64"] {
  background: linear-gradient(
    0deg,
    var(--55-64-start) 0%,
    var(--55-64) 5%,
    var(--55-64) 95%,
    var(--55-64-end) 100%
  );
}
.age-tag[data-value="65+"] {
  background: linear-gradient(
    0deg,
    var(--65-start) 0%,
    var(--65) 5%,
    var(--65) 95%,
    var(--65-end) 100%
  );
}
*/
.age .bar-list button:nth-child(1) .bar-fill {
  background: linear-gradient(90deg, var(--0-14-start) 0%, var(--0-14) 50%, var(--0-14-end) 100%);
}
.age .bar-list button:nth-child(2) .bar-fill {
  background: linear-gradient(90deg, var(--15-24-start) 0%, var(--15-24) 50%, var(--15-24-end) 100%);
}
.age .bar-list button:nth-child(3) .bar-fill {
  background: linear-gradient(90deg, var(--25-34-start) 0%, var(--25-34) 50%, var(--25-34-end) 100%);
}
.age .bar-list button:nth-child(4) .bar-fill {
  background: linear-gradient(90deg, var(--35-44-start) 0%, var(--35-44) 50%, var(--35-44-end) 100%);
}
.age .bar-list button:nth-child(5) .bar-fill {
  background: linear-gradient(90deg, var(--45-54-start) 0%, var(--45-54) 50%, var(--45-54-end) 100%);
}
.age .bar-list button:nth-child(6) .bar-fill {
  background: linear-gradient(90deg, var(--55-64-start) 0%, var(--55-64) 50%, var(--55-64-end) 100%);
}
.age .bar-list button:nth-child(7) .bar-fill {
  background: linear-gradient(90deg, var(--65-start) 0%, var(--65) 50%, var(--65-end) 100%);
}
/* ============ HERO ============ */
.hero {
  display: grid;
  height: 160px;
  grid-row: 1;
  grid-column: 1 / 3;
  align-items: center;
}
.hero > a {
  grid-row: 1;
  grid-column: 1;
  margin: auto;
  display: block;
}
.hero img {
  grid-row: 1;
  grid-column: 1;
  margin: auto;
  display: block;
}
.hero div {
  grid-row: 1;
  grid-column: 2;
  font-size: 4vw;
  color: white;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}
/*
.hero__inner {
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero .eyebrow {
  color: var(--clay);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.hero .eyebrow .line {
  width: 30px;
  height: 1px;
  background: var(--clay);
}
.hero h1 {
  margin-top: 1rem;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.hero__sub {
  margin-top: 1.2rem;
  max-width: 56ch;
  font-size: 1.1rem;
  line-height: 1.65;
  color: rgba(239, 227, 200, 0.85);
}
.hero__contour {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
}
*/
@layer base {
  html {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
  }
  * {
    box-sizing: inherit;
  }
  *:before,
  *:after {
    box-sizing: inherit;
  }
  * {
    box-sizing: border-box;
  }
  body {
    background: url(grand-canyon--bg.webp);
    background-size: 100vw;
    background-repeat: no-repeat;
    background-position: top center;
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    z-index: 50;
    position: relative;
  }
  body:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255, 132, 84, 0.1) 1px, #000 1px, transparent 1px), linear-gradient(90deg, rgba(255, 132, 84, 0.1) 1px, transparent 1px, transparent 1px);
    background-size: 40px 40px;
    width: 100%;
    height: 100%;
    z-index: -1;
  }
  ::selection {
    background: var(--sky);
    color: var(--panel-bg);
  }
  a {
    color: var(--sky-ink);
  }
  button {
    font-family: inherit;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
@layer table {
  .table-scroll tbody tr.has-story:hover td,
  .table-scroll tbody tr.has-story:hover th {
    transform: translateY(-1px);
    background-color: var(--panel-hover);
    transition: background-color 0.25s ease-in;
  }
  /* ============ LOG TABLE ============ */
  .log {
    margin-top: 22px;
  }
  .log-toolbar {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: space-between;
    font-family: var(--font-display);
  }
  .count-readout {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--ink-soft);
  }
  /*
.liquid-glass-button {
  cursor: pointer;
  font-size: 2rem;
  color: #fff;
  box-shadow: 0 6px 6px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 0, 0, 0.2);
  border-radius: 2rem;
  will-change: transform;
  transition: transform 450ms cubic-bezier(0.34, 1.56, 0.64, 1);

  &:hover {
transform: translateY(-3px);
  }

  .clear-btn {
    border-radius: 2rem;
    backdrop-filter: blur(3px);
    padding: 1rem 2rem;
    box-shadow: inset 2px 2px 1px 0 rgba(255, 255, 255, 0.4),
      inset -1px -1px 1px 1px rgba(255, 255, 255, 0.4);
  }
}
*/
  .clear-btn {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.02em;
    background: var(--rust);
    border: 0;
    color: #fff;
    padding: 0.75em 1em;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.12s ease;
  }
  .clear-btn:not(:disabled):hover {
    transform: translateY(-3px);
  }
  .clear-btn:disabled {
    opacity: 0.4;
    cursor: default;
    color: #666;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #666;
  }
  .submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--submit-btn-btn-color);
    color: var(--submit-btn-color);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 12.5px;
    letter-spacing: 0.02em;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--rust);
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.12s ease;
  }
  .submit-btn:hover {
    opacity: 0.88;
  }
  /* pushes the toolbar's copy of the button to the far right, past
	the title/count/clear-filter group */
  .log-toolbar .submit-btn {
    margin-left: auto;
  }
  .log-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
  }
  .table-scroll {
    overflow-x: auto;
    margin-top: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    font-family: var(--font-mono);
  }
  table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 680px;
    box-shadow: var(--shadow), 0 0 24px 0 rgba(255, 132, 84, 0.25);
  }
  thead th {
    position: sticky;
    top: 0;
    background: var(--paper-raised);
    text-align: left;
    padding: 0;
    border-bottom: 1px solid var(--line-strong);
    z-index: 1;
  }
  thead th button {
    all: unset;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 11px 14px;
    width: 100%;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--th-color);
  }
  thead th button:hover {
    color: var(--th-color-hover);
  }
  thead th .arrow {
    font-size: 9px;
    opacity: 0;
    transition: opacity 0.1s ease;
  }
  thead th.sorted .arrow {
    opacity: 1;
    color: var(--accent-text);
  }
  thead th.sorted button {
    color: var(--ink);
  }
  tbody td,
  tbody th[scope="row"] {
    padding: 9px 14px;
    border-bottom: 1px solid var(--line);
    color: var(--th-color);
    font-weight: 400;
    text-align: left;
  }
  tbody tr:last-child td,
  tbody tr:last-child th {
    border-bottom: none;
  }
  tbody tr:hover {
    background: var(--paper);
  }
  tbody tr.is-match {
    background: color-mix(in srgb, var(--rust) 8%, transparent);
  }
  td.num,
  th.num {
    font-variant-numeric: tabular-nums;
  }
  td.id-cell {
    color: var(--th-color);
    font-size: 12px;
  }
  .cause-tag {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--ink-soft);
    white-space: nowrap;
  }
  .muted-cell {
    color: var(--ink-soft);
    opacity: 0.6;
  }
  tbody tr.has-story {
    cursor: pointer;
  }
  .chevron {
    display: inline-block;
    font-size: 10px;
    color: var(--accent-text);
    margin-left: 4px;
    transition: transform 0.15s ease;
    opacity: 0.75;
  }
  tr.expanded .chevron {
    transform: rotate(90deg);
  }
  tr.story-row td {
    padding: 16px 20px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .story-body {
    font-family: var(--font-body);
    /* max-width: 68ch;*/
    width: 100%;
  }
  .story-headline {
    font-weight: 600;
    font-size: 16.5px;
    margin: 0 0 10px;
    color: var(--td-color);
  }
  .story-body p {
    margin: 0 0 10px;
    color: var(--td-color);
    font-size: 13.5px;
    line-height: 1.65;
  }
  .story-body p:last-child {
    margin-bottom: 0;
  }
  .story-list {
    margin: 4px 0 0;
    padding-left: 19px;
    display: flex;
    flex-direction: column;
    gap: 9px;
  }
  .story-list li {
    color: var(--td-color);
    font-size: 13.5px;
    line-height: 1.6;
  }
  .story-list li strong {
    color: var(--td-color);
  }
}
/* ============ RESPONSIVE TABLE ============
   From the CodePen prototype. Below 768px each record becomes a
   stacked card: the date (row header) leads, and every other cell
   shows its column name from data-title. The header row turns into
   a strip of sort buttons. At 768px and up it's a normal table.

   Kept outside @layer on purpose: style.less is unlayered, and
   unlayered rules beat layered ones, so these would otherwise
   lose to rules like td.loc-cell { max-width }. */
.responsive-table tr[hidden] {
  display: none !important;
}
@media (max-width: 767.98px) {
  .responsive-table {
    overflow-x: visible;
  }
  .responsive-table table {
    min-width: 0;
    display: block;
  }
  .responsive-table thead {
    display: block;
  }
  .responsive-table thead tr {
    display: flex;
    flex-wrap: wrap;
    gap: 0 2px;
    padding: 4px 6px;
    border-bottom: 1px solid var(--line-strong);
  }
  .responsive-table thead th {
    display: block;
    position: static;
    border-bottom: 0;
    background: transparent;
  }
  .responsive-table thead th button {
    width: auto;
    padding: 8px 8px;
    font-size: 10.5px;
  }
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table th,
  .responsive-table td {
    display: block;
    text-align: left;
    white-space: normal;
  }
  .responsive-table tbody tr.has-story {
    padding: 4px 0 8px;
    border-top: 1px dashed var(--rust);
  }
  .responsive-table tbody tr.has-story:first-child {
    border-top: 0;
  }
  .responsive-table tbody th[scope="row"] {
    padding: 10px 14px 6px;
    border-bottom: 0;
    color: var(--th-color);
    font-weight: 600;
    font-size: 14px;
  }
  .responsive-table tbody td {
    position: relative;
    padding: 6px 14px 6px 106px;
    border-bottom: 0;
    max-width: none;
  }
  .responsive-table tbody td:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.025);
  }
  .responsive-table tbody td[data-title]::before {
    content: attr(data-title);
    position: absolute;
    left: 14px;
    top: 6px;
    width: 92px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.9;
    color: var(--ink-soft);
  }
  .responsive-table tbody tr.has-story:hover td,
  .responsive-table tbody tr.has-story:hover th {
    transform: none;
  }
  .responsive-table tr.story-row td,
  .responsive-table .status-row td {
    padding: 14px 14px 18px;
  }
  .responsive-table tr.story-row td {
    border-bottom: 0;
  }
}
:root {
  /* Widest the site gets; every page is centred inside it. On the
     register this includes the decade sidebar. */
  --max-page-width: 1280px;
  --clay: #c97c4b;
  --sandstone: #d9b77c;
  --rim: #efe3c8;
  --plum: #4a3140;
  --plum-deep: #33222c;
  --sage: #6b7a5e;
  --sky: #5b84a0;
  --shadow: 0 18px 40px rgba(51, 34, 44, 0.28);
  --radius: 5px;
  /* same type as the 14ers site */
  --font-display: "Newsreader", Georgia, "Iowan Old Style", serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}
@media (min-width: 320px) {
  .container {
    display: grid;
    grid-template-columns: 100%;
    margin-bottom: 22px;
  }
  .container > div {
    padding: 16px 18px 18px;
    font-size: 0.9rem;
    line-height: 0;
    color: var(--text-color);
  }
  .container > div span {
    font-size: 2rem;
  }
  .container > div span:last-child {
    font-size: 0.9rem;
  }
  /* ============ CHARTS ============ */
  .charts {
    grid-template-columns: 100%;
  }
  .charts > div:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }
  .charts > div:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }
  .charts > div:nth-child(3) {
    grid-column: 1;
    grid-row: 3;
  }
  .charts > div:nth-child(4) {
    grid-column: 1;
    grid-row: 4;
  }
}
@media (min-width: 540px) {
  .container {
    grid-template-columns: repeat(6, calc(16% - 11px));
    grid-template-rows: repeat(2, calc(50% - 11px));
    justify-content: space-between;
    gap: 22px 11px;
  }
  .container > div:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1;
  }
  .container > div:nth-child(2) {
    grid-column: 3 / 5;
    grid-row: 1;
  }
  .container > div:nth-child(3) {
    grid-column: 5 / 7;
    grid-row: 1;
  }
  .container > div:nth-child(4) {
    grid-column: 1 / 4;
    grid-row: 2;
  }
  .container > div:nth-child(5) {
    grid-column: 4 / 7;
    grid-row: 2;
  }
}
@media (min-width: 860px) {
  .charts {
    grid-template-columns: repeat(2, calc(50% - 11px));
    grid-template-rows: repeat(3, auto);
    gap: 22px;
    margin-top: 22px;
  }
  .charts > div:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / 3;
  }
  .charts > div:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }
  .charts > div:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }
  .charts > div:nth-child(4) {
    grid-column: 1 / 3;
    grid-row: 4;
  }
}
.item-0 {
  flex-grow: 1;
}
.item-1 {
  flex-grow: 1;
}
.item-2 {
  flex-grow: 1;
}
.item-3 {
  flex-grow: 1;
}
.item-4 {
  flex-grow: 1;
}
body {
  /* text colours follow the theme's panel text (were red/orange placeholders) */
  --ink: var(--panel-label-color);
  --ink-soft: var(--text-color);
  --rust: #a6512c;
  --submit-btn-background-color: var(--rust);
  --submit-btn-color: #fff;
  --th-color: #eee;
  --th-color-hover: #fff;
  --bg-light: #3b2121;
  --bg-dark: #1f1612;
  --text-color: #a1a1aa;
  --panel-background-color: oklch(0.2591 0.0164 58.82);
  --panel-border-color: rgba(255, 255, 255, 0.1);
  --panel-box-shadow-1: rgba(0, 0, 0, 0.05);
  --panel-box-shadow-1-y: 3px;
  --panel-box-shadow-1-blur: 6px;
  --panel-box-shadow-2: rgba(0, 0, 0, 0.1);
  --panel-box-shadow-2-y: 8px;
  --panel-box-shadow-2-blur: 15px;
  --panel-label-color: #ffffff;
  --panel-icon-color: #d4d4d8;
  --panel-icon-background-color: rgba(255, 255, 255, 0.08);
  --panel-icon-border-color: rgba(255, 255, 255, 0.12);
  --panel-shine-opacity: 0.1;
  --panel-shine-gradient: conic-gradient(from 205deg at 50% 50%, rgba(16, 185, 129, 0) 0deg, #10b981 25deg, rgba(52, 211, 153, 0.18) 295deg, rgba(16, 185, 129, 0) 360deg);
  --panel-line-color: #2a2b2c;
  --panel-tile-color: rgba(16, 185, 129, 0.05);
  --blur-opacity: 0.01;
  --panel-surface: #2a221c;
  --accent-text: var(--rust);
  --panel-hover: oklch(0.33 0.0164 58.82);
  --control-bg: #333;
  --control-bg-hover: #444;
  --control-text: #999;
}
body.light {
  /* Light mode: terracotta panels (#93554d) with light text. Text colours
	   are checked for contrast against #93554d (body text >= 4.5:1). */
  --panel-surface: #93554d;
  --accent-text: #ffe2b8;
  --panel-hover: #a0625a;
  --control-bg: rgba(0, 0, 0, 0.18);
  --control-bg-hover: rgba(0, 0, 0, 0.28);
  --control-text: #f6e4de;
  --ink: var(--panel-label-color);
  --ink-soft: var(--text-color);
  --rust: #a6512c;
  --submit-btn-background-color: var(--rust);
  --submit-btn-color: #fff;
  --td-color: #ffffff;
  --bg-dark: #593434;
  --bg-light: #1f1212;
  --background-color: #fafafa;
  --text-color: #f6e4de;
  --panel-background-color: #93554d;
  --panel-border-color: rgba(255, 255, 255, 0.14);
  --panel-box-shadow-1: rgba(24, 24, 27, 0.02);
  --panel-box-shadow-1-y: 3px;
  --panel-box-shadow-1-blur: 6px;
  --panel-box-shadow-2: rgba(24, 24, 27, 0.04);
  --panel-box-shadow-2-y: 2px;
  --panel-box-shadow-2-blur: 7px;
  --panel-label-color: #fff8f2;
  --panel-icon-color: #fff8f2;
  --panel-icon-background-color: rgba(255, 255, 255, 0.1);
  --panel-icon-border-color: rgba(255, 255, 255, 0.2);
  --panel-shine-opacity: 0.3;
  --panel-shine-gradient: conic-gradient(from 225deg at 50% 50%, rgba(16, 185, 129, 0) 0deg, #10b981 25deg, #edfaf6 285deg, #ffffff 345deg, rgba(16, 185, 129, 0) 360deg);
  --panel-line-color: rgba(255, 255, 255, 0.18);
  --panel-tile-color: rgba(16, 185, 129, 0.08);
  --blur-opacity: 0.1;
}
.panel {
  background-color: var(--panel-surface);
  background-color: linear-gradient(171deg, rgba(42, 34, 28, 0.75) 0%, #2a221c 20px, #2a221c 20%, #2a221c 100%);
  box-shadow: 0px var(--panel-box-shadow-1-y) var(--panel-box-shadow-1-blur) var(--panel-box-shadow-1), 0px var(--panel-box-shadow-2-y) var(--panel-box-shadow-2-blur) var(--panel-box-shadow-2), 0 0 0 1px var(--panel-border-color);
  padding: 56px 16px 16px 16px;
  border-radius: var(--radius);
  z-index: 100;
}
.panel h4 {
  z-index: 2;
  position: relative;
  margin: 12px 0 4px 0;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  line-height: 2;
  color: var(--panel-label-color);
}
.panel p,
.panel span {
  z-index: 2;
  position: relative;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-color);
}
.panel .shine {
  border-radius: inherit;
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.5s;
}
.panel .shine:before {
  content: "";
  width: 150%;
  padding-bottom: 150%;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  bottom: 55%;
  filter: blur(35px);
  opacity: var(--panel-shine-opacity);
  transform: translateX(-50%);
  background-image: var(--panel-shine-gradient);
}
.panel .background {
  border-radius: inherit;
  position: absolute;
  inset: 0;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(circle at 60% 5%, black 0%, black 15%, transparent 60%);
  mask-image: radial-gradient(circle at 60% 5%, black 0%, black 15%, transparent 60%);
}
@media (min-width: 320px) {
  .page-shell {
    display: grid;
    grid-template-columns: 100%;
    max-width: var(--max-page-width);
    margin: 0 auto;
  }
  .page-shell .peak-sidebar {
    display: none;
  }
  .page-shell .peak-dropdown-wrap {
    display: block;
    margin: 0 0 20px;
  }
  .page-shell .peak-sidebar {
    width: 0;
    padding: 0;
    display: block;
    transition: width padding 0.25s ease-in-out;
  }
  .page-shell .peak-dropdown-wrap {
    display: none;
  }
  .page-shell .wrap {
    grid-row: 2;
    grid-column: 1;
  }
}
@media (min-width: 860px) {
  .page-shell {
    grid-template-columns: 25% 75%;
  }
  .page-shell .peak-sidebar {
    width: 100%;
    padding: 20px 14px 24px;
    transition: width padding 0.25s ease-in-out;
    grid-row: 2;
    grid-column: 1;
  }
  .page-shell .wrap {
    grid-column: 2;
  }
}
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--text-color);
}
p {
  margin: 0;
}
a {
  color: inherit;
}
/* ============ CATEGORY FILTER CHIPS ============ */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}
.category-chip {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  border: 1.5px solid var(--chip-color, var(--rust));
  background: transparent;
  color: var(--chip-color, var(--rust));
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.category-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--chip-color, var(--rust));
}
.category-chip:hover {
  background: color-mix(in srgb, var(--chip-color, var(--rust)) 12%, transparent);
}
.category-chip.is-active {
  background: var(--chip-color, var(--rust));
  color: #fff;
}
.category-chip.is-active::before {
  background: #fff;
}
.timeline-section {
  max-width: 920px;
  margin: 0 auto;
  padding: 3.5rem 1.6rem 5rem;
}
.timeline-section .section-head {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-bottom: 2.2rem;
}
.timeline-section .section-head h2 {
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-text);
}
.timeline-section .section-head .rule {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--sandstone) 0 8px, transparent 8px 14px);
}
.strata {
  position: relative;
  border-left: 3px solid var(--rust);
  padding-left: 1px;
}
.stratum {
  position: relative;
  padding: 1.6rem 1.6rem 1.6rem 2.4rem;
  margin-bottom: 0.5rem;
  border-radius: 0 4px 4px 0;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.stratum.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.stratum::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 1.9rem;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--marker-color, var(--rust));
  border: 3px solid var(--rim);
  box-shadow: 0 0 0 2px var(--marker-color, var(--rust));
}
.stratum__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.stratum__date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--plum);
  opacity: 0.8;
}
.stratum__type {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  color: #fff;
  background: var(--marker-color, var(--rust));
}
.stratum__tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.stratum__deaths {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--plum-deep);
  background: var(--sandstone);
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
}
.stratum__cause {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  color: var(--accent-text);
  opacity: 0.8;
}
.stratum__cause::before {
  content: "· ";
}
.stratum__category {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cat-color, var(--rust));
}
.stratum__category::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cat-color, var(--rust));
}
.stratum__title {
  margin-top: 0.5rem;
  font-size: 1.3rem;
  color: var(--ink);
}
.stratum__location {
  margin-top: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--sky);
}
.stratum__location::before {
  content: "⛰ ";
}
.stratum__desc {
  margin-top: 0.7rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  opacity: 0.88;
}
/* rock-band background tint, subtle, keyed to type */
.stratum {
  background: linear-gradient(90deg, color-mix(in srgb, var(--marker-color, var(--rust)) 8%, transparent), transparent 60%);
}
footer {
  padding: 2.4rem 1.6rem 3rem;
  text-align: center;
  color: rgba(239, 227, 200, 0.55);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}
@media (max-width: 560px) {
  .timeline-section {
    padding: 2.6rem 1.1rem 3.5rem;
  }
  .stratum {
    padding: 1.3rem 1rem 1.3rem 1.8rem;
  }
}
:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}
.stat {
  flex: 1;
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}
.stat:last-child {
  border-right: none;
}
.stat-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 6px;
}
.stat-value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1.1;
}
.stat-sub {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 3px;
}
/* ============ PEAK SIDEBAR ============ */
.peak-sidebar-head {
  position: sticky;
  top: 0;
  background: var(--paper-raised);
  padding-bottom: 12px;
}
.peak-sidebar-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  margin: 0 0 10px;
}
.peak-sort {
  display: flex;
  border-radius: var(--radius);
  overflow: hidden;
}
.peak-sort-btn {
  flex: 1;
  border: 1px solid var(--line);
  background-color: var(--control-bg);
  color: var(--control-text);
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 6px 3px;
  border-radius: var(--radius-s);
  cursor: pointer;
  text-align: center;
}
.peak-sort-btn:hover {
  background: var(--control-bg-hover);
  color: #fff;
  border-color: var(--line-strong);
}
.peak-sort-btn.is-active {
  background: var(--rust);
  color: #fff;
}
.peak-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.peak-item {
  display: flex;
  flex-direction: column;
}
.peak-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border-radius: var(--radius-s);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
}
.peak-row:hover,
.peak-row:focus-visible {
  background: var(--paper);
}
.peak-row.is-active {
  background: var(--rust);
}
.peak-row.is-active .peak-row-name,
.peak-row.is-active .peak-row-elev {
  color: #fff;
}
.peak-icon {
  flex: none;
  color: var(--line-strong);
}
.peak-icon polygon {
  fill: currentColor;
}
.peak-icon[data-range="orange"] {
  color: var(--range-orange);
}
.peak-icon[data-range="blue"] {
  color: var(--range-blue);
}
.peak-icon[data-range="red"] {
  color: var(--range-red);
}
.peak-icon[data-range="green"] {
  color: var(--range-green);
}
.peak-icon[data-range="yellow"] {
  color: var(--range-yellow);
}
.peak-icon[data-range="purple"] {
  color: var(--range-purple);
}
.peak-row-name {
  flex: 1;
  font-size: 12.5px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.peak-row-elev {
  flex: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-soft);
}
.peak-dropdown-wrap {
  display: none;
}
.peak-dropdown-label {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.peak-dropdown {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--paper-raised);
  color: var(--ink);
  font-family: inherit;
  font-size: 13.5px;
}
.peak-context {
  fill: var(--line-strong);
  opacity: 0.55;
}
.peak-death {
  fill: var(--ink);
  stroke: var(--paper-raised);
  stroke-width: 1px;
}
.peak-death.is-dim {
  opacity: 0.28;
}
.peak-hit {
  fill: transparent;
}
.peak-death,
.peak-context {
  transform-box: fill-box;
  transform-origin: center;
  transition: fill 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}
/* Default marker color follows the mountain's range, same palette
	as the .peak-icon glyphs in the sidebar -- peak-death (has a
	recorded death) is fully opaque, peak-context (no recorded
	death) stays a quieter, more transparent echo of the same hue,
	so size/opacity still carries that distinction now that color
	doesn't. 
.peak-death[data-range="orange"],
.peak-context[data-range="orange"] {
  fill: var(--range-orange);
}

.peak-death[data-range="blue"],
.peak-context[data-range="blue"] {
  fill: var(--range-blue);
}

.peak-death[data-range="red"],
.peak-context[data-range="red"] {
  fill: var(--range-red);
}

.peak-death[data-range="green"],
.peak-context[data-range="green"] {
  fill: var(--range-green);
}

.peak-death[data-range="yellow"],
.peak-context[data-range="yellow"] {
  fill: var(--range-yellow);
}

.peak-death[data-range="purple"],
.peak-context[data-range="purple"] {
  fill: var(--range-purple);
}

.peak-death.is-hover,
.peak-context.is-hover {
  fill: #fff;
  opacity: 1;
  transform: scale(1.01);
}

.heat-circle {
  fill: var(--rust);
  pointer-events: none;
  transition:
    opacity 0.15s ease,
    stroke-width 0.15s ease;
}

.heat-circle.is-hover {
  opacity: 0.95;
  stroke: var(--ink);
  stroke-width: 2px;
}

.range-label {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  fill: var(--ink-soft);
  opacity: 0.85;
  text-transform: uppercase;
}

.range-label[data-range="orange"] {
  fill: var(--range-orange);
}

.range-label[data-range="blue"] {
  fill: var(--range-blue);
}

.range-label[data-range="red"] {
  fill: var(--range-red);
}

.range-label[data-range="green"] {
  fill: var(--range-green);
}

.range-label[data-range="yellow"] {
  fill: var(--range-yellow);
}

.range-label[data-range="purple"] {
  fill: var(--range-purple);
}

.map-caption {
  font-family: var(--font-body);
  font-size: 10px;
  fill: var(--ink-soft);
  opacity: 0.6;
  letter-spacing: 0.04em;
}
*/
/* ============ PEAK LIST DETAIL (was the Selection panel) ============ */
.peak-row-detail {
  padding: 2px 8px 10px 31px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.peak-detail-summary {
  font-size: 12px;
  color: var(--ink-soft);
}
.peak-detail-summary b {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink);
}
.breakdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
}
.breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink-soft);
}
.breakdown-row b {
  color: var(--ink);
  font-weight: 600;
}
/* ============ CHARTS ============ */
.charts {
  display: grid;
  margin-top: 22px;
}
.chart-panel {
  padding: 16px 18px 18px;
}
.bar-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 12px;
}
.bar-row {
  display: grid;
  grid-template-columns: 74px 1fr 24px;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 2px 0;
  text-align: left;
  width: 100%;
  font-family: inherit;
  color: inherit;
}
.bar-label {
  font-size: 11.5px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar-track {
  height: 9px;
  background: var(--line);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  height: 9px;
  border-radius: 2px;
  opacity: 0.85;
  transition: opacity 0.15s ease, width 0.2s ease;
}
.bar-row.is-active .bar-fill {
  opacity: 1;
}
.bar-row.is-dim .bar-fill {
  opacity: 0.28;
}
.bar-count {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-align: right;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.bar-row.is-active .bar-count {
  color: var(--accent-text);
  font-weight: 600;
}
.year-panel {
  grid-column: span 4;
  padding: 18px 18px 8px;
  /* Grid items default to a content-based min-width, which
		overrides a descendant's overflow-x:auto and lets the year
		chart force this whole panel (and the grid track) wider than
		the viewport. min-width:0 lets it shrink to the track's
		actual width so #chartYear's own scroller can do its job. */
  min-width: 0;
}
.year-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
/* Year pager (ported from the 14ers site): the arrows and range label
	beside "Fatalities by Year". Colors use this site's panel tokens so
	they follow the day/night toggle.
	The chart shows as many years as fit its width; the arrows page
	through the rest (see yearPager in script.js). */
.year-pager {
  display: flex;
  align-items: center;
  gap: 6px;
}
.year-pager[hidden] {
  display: none;
}
.year-pager-btn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--panel-icon-border-color);
  border-radius: 50%;
  background: var(--panel-icon-background-color);
  color: var(--panel-icon-color);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}
.year-pager-btn:hover:not(:disabled) {
  border-color: var(--accent-text);
  color: var(--accent-text);
}
.year-pager-btn:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 2px;
}
.year-pager-btn:disabled {
  opacity: 0.3;
  cursor: default;
}
.year-pager-btn svg {
  width: 14px;
  height: 14px;
}
.year-pager-range {
  min-width: 92px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--text-color);
}
.year-chart {
  height: 150px;
  margin-top: 16px;
  padding: 0 0 10px;
  /* A fixed window onto the year columns: no scrollbar. The pager
		slides .year-chart-inner left/right a page at a time, and
		swipes are handled in JS, so only vertical panning is left to
		the browser. */
  overflow: hidden;
  touch-action: pan-y;
  outline: none;
}
.year-chart:focus-visible {
  box-shadow: 0 0 0 2px var(--rust);
  border-radius: 4px;
}
.year-chart-inner {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 100%;
  width: max-content;
  position: relative;
  /* gap is overwritten by the pager so a page fills the width exactly */
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .year-chart-inner {
    transition: none;
  }
}
.year-chart-inner::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;
  height: 1px;
  background: var(--line);
}
.year-col {
  flex: 0 0 34px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 6px;
  cursor: pointer;
}
.year-bar-value {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}
.year-bar {
  width: 100%;
  max-width: 22px;
  background: var(--rust);
  border-radius: 3px 3px 2px 2px;
  opacity: 0.85;
  transition: opacity 0.15s ease, height 0.2s ease;
}
.year-col.is-active .year-bar {
  opacity: 1;
}
.year-col.is-dim .year-bar {
  opacity: 0.25;
}
.year-col.is-active .year-bar-value {
  color: var(--accent-text);
}
.year-label {
  font-size: 10.5px;
  color: var(--ink-soft);
  margin-top: 2px;
  white-space: nowrap;
}
footer {
  margin-top: 56px;
  padding-top: 20px;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: nowrap;
  font-family: var(--font-display);
  justify-content: space-between;
}
footer > div:first-child {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 50%;
}
footer > div:first-child p {
  text-align: left;
  font-size: 0.8rem;
  line-height: 1.3;
  margin-left: 2em;
}
footer img {
  border-radius: 99em;
}
footer .src {
  font-style: normal;
  font-size: 11.5px;
  max-width: 52ch;
}
/* shared footer (src/partials/footer.html): stack it on narrow screens */
@media (max-width: 700px) {
  footer {
    flex-direction: column;
    align-items: stretch;
  }
  footer > div:first-child {
    width: 100%;
  }
  footer iframe {
    max-width: 100%;
  }
}
.story-body h3 {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.65;
}
@media (max-width: 860px) {
  .year-panel {
    grid-column: span 2;
  }
  .stat {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .stat:last-child {
    border-bottom: none;
  }
}
@media (max-width: 520px) {
  .year-panel {
    grid-column: span 1;
  }
  .lede {
    max-width: 32ch;
  }
}
html {
  scrollbar-color: var(--rust) var(--line);
  /* var(--paper-raised) */
  scrollbar-width: thin;
}
@media (min-width: 320px) {
  .wrap {
    box-sizing: border-box;
    width: 100%;
    padding: 0 28px 64px;
    min-width: 320px;
  }
  .masthead {
    padding: 3em 0 0 0;
    /* border-bottom: 1px solid var(--line); */
    align-items: end;
    padding: 16px 0 0;
  }
  .masthead-sub {
    padding: 16px;
  }
  .stat-panel {
    display: flex;
    flex-direction: column;
    margin-top: 22px;
  }
  h1 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(26px, 5.4vw, 56px);
    line-height: 1.02;
    margin: 0 0 8px;
    text-wrap: balance;
    letter-spacing: -0.01em;
    grid-column: 1 / -1;
    grid-row: 1;
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
  }
  h1 em {
    font-style: italic;
    font-weight: 500;
    color: #eee;
    /* var(--rust); */
  }
  h1 img {
    width: 75px;
    aspect-ratio: 1;
    margin-right: 32px;
  }
  .atlas {
    margin-top: 22px;
  }
}
@media (min-width: 801px) {
  .masthead {
    padding: 16px 0 32px;
    margin: 0;
  }
  .stat-panel {
    margin-top: 0;
  }
  .atlas {
    margin-top: 40px;
  }
}
@media (min-width: 1024px) {
  .wrap {
    max-width: 1180px;
    padding: 0 28px 64px;
  }
  h1 img {
    width: 100px;
  }
}
/* ============ LOADING / EMPTY STATE ============ */
.status-row td {
  padding: 28px 14px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
}
.is-loading .stat-value,
.is-loading .status-row td,
.is-loading .count-readout {
  animation: data-pulse 1.4s ease-in-out infinite;
}
@keyframes data-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
@media (prefers-reduced-motion: reduce) {
  .is-loading .stat-value,
  .is-loading .status-row td,
  .is-loading .count-readout {
    animation: none;
  }
}
/* =========================================================
   GRAND CANYON OVERRIDES
   Everything above is shared with the 14ers stylesheet; the
   rules below adapt it for this site (no map, no submit, decade
   sidebar, Grand Canyon cause list).
   ========================================================= */
@media (min-width: 320px) {
  .wrap {
    background-image: none;
  }
}
/* Decade sidebar icon (canyon-step glyph) */
.peak-icon {
  color: var(--accent-text);
}
.peak-icon path {
  fill: currentColor;
}
.peak-row.is-active .peak-icon {
  color: var(--tequila-sunrise);
}
/* Table */
td.loc-cell {
  max-width: 28ch;
  color: var(--ink-soft);
}
/* Story extras */
.story-note {
  font-size: 13.5px;
  color: var(--ink-soft);
}
.incident-link {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--accent-text);
  padding: 3px 10px;
  border-radius: 20px;
  cursor: pointer;
  margin-left: 6px;
}
.incident-link:hover {
  border-color: var(--accent-text);
}
.story-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  opacity: 0.7;
  margin: 14px 0 0;
}
.story-list li a {
  color: var(--sky-ink);
}
/* Show-more button under the log */
.log-footer {
  justify-content: center;
}
.show-more-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
}
.show-more-btn:hover {
  border-color: var(--accent-text);
  color: var(--accent-text);
}
.show-more-btn[hidden] {
  display: none;
}
.day-night {
  cursor: pointer;
  position: absolute;
  /* top-right corner of the centred page, not of a wide window */
  right: max(20px, calc((100% - var(--max-page-width)) / 2 + 20px));
  top: 20px;
  opacity: 0.3;
}
.day-night input {
  display: none;
}
.day-night input + div {
  border-radius: 50%;
  width: 20px;
  height: 20px;
  position: relative;
  box-shadow: inset 8px -8px 0 0 var(--text-color);
  transform: scale(1) rotate(-2deg);
  transition: box-shadow 0.5s ease 0s, transform 0.4s ease 0.1s;
}
.day-night input + div:before {
  content: "";
  width: inherit;
  height: inherit;
  border-radius: inherit;
  position: absolute;
  left: 0;
  top: 0;
  transition: background-color 0.3s ease;
}
.day-night input + div:after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin: -3px 0 0 -3px;
  position: absolute;
  top: 50%;
  left: 50%;
  box-shadow: 0 -23px 0 var(--text-color), 0 23px 0 var(--text-color), 23px 0 0 var(--text-color), -23px 0 0 var(--text-color), 15px 15px 0 var(--text-color), -15px 15px 0 var(--text-color), 15px -15px 0 var(--text-color), -15px -15px 0 var(--text-color);
  transform: scale(0);
  transition: all 0.3s ease;
}
.day-night input:checked + div {
  box-shadow: inset 20px -20px 0 0 var(--text-color);
  transform: scale(0.5) rotate(0deg);
  transition: transform 0.3s ease 0.1s, box-shadow 0.2s ease 0s;
}
.day-night input:checked + div:before {
  background: var(--text-color);
  transition: background-color 0.3s ease 0.1s;
}
.day-night input:checked + div:after {
  transform: scale(1);
  transition: transform 0.5s ease 0.15s;
}

