/* MITA website styles.
   Brand base: navy, gold, cream, matched to the approved logo.
   Accents are taken from Montana light: evening sky, lake water, summer grass.
   Strong color is kept to actions, links and small marks. Section backgrounds stay quiet. */

@font-face { font-family: "Aleo"; src: url("../fonts/aleo-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; 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: "Aleo"; src: url("../fonts/aleo-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; 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: "Aleo"; src: url("../fonts/aleo-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; 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: "Atkinson Hyperlegible Next"; src: url("../fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; 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: "Atkinson Hyperlegible Next"; src: url("../fonts/atkinson-hyperlegible-next-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; 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: "Atkinson Hyperlegible Next"; src: url("../fonts/atkinson-hyperlegible-next-latin-wght-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; 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; }

:root {
  /* Brand */
  --navy: #243D54;
  --gold: #C3944D;
  --cream: #FAF7F0;
  /* Derived neutrals */
  --night: #14253A;
  --paper: #FFFFFF;
  --ink: var(--navy);
  --ink-soft: #4A6076;
  --rule: #E6DFCE;
  --rule-night: #2E4560;
  /* Montana light. Each passes 4.5:1 as text on cream. */
  --alpenglow: #C92A5B;
  --dusk: #6A3FB0;
  --lake: #0B7A8C;
  --meadow: #1F7A4D;
  --sky: #1F6FC2;
  --ember: #F26A21; /* marks only, never text */
  /* The same light on a dark ground */
  --alpenglow-bright: #FF86A3;
  --dusk-bright: #BBA2F7;
  --lake-bright: #62D6D2;
  --meadow-bright: #7EDB9E;
  --sky-bright: #86C3FF;
  --gold-bright: #E4B872;

  --accent: var(--alpenglow);
  --accent-bright: var(--alpenglow-bright);

  --font-display: "Aleo", "Rockwell", "Roboto Slab", Georgia, serif;
  --font-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.9rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.25rem + 0.6vw, 1.7rem);
  --step-3: clamp(1.7rem, 1.4rem + 1.3vw, 2.3rem);
  --step-4: clamp(2.05rem, 1.5rem + 2.5vw, 3.3rem);
  --step-5: clamp(2.5rem, 1.4rem + 5.4vw, 5.4rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 2.4rem + 5vw, 7rem);
  --measure: 62ch;
  --radius: 6px;
}

.accent-alpenglow { --accent: var(--alpenglow); --accent-bright: var(--alpenglow-bright); }
.accent-dusk { --accent: var(--dusk); --accent-bright: var(--dusk-bright); }
.accent-lake { --accent: var(--lake); --accent-bright: var(--lake-bright); }
.accent-meadow { --accent: var(--meadow); --accent-bright: var(--meadow-bright); }
.accent-sky { --accent: var(--sky); --accent-bright: var(--sky-bright); }

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  html { scroll-behavior: smooth; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.08; letter-spacing: -0.012em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-5); line-height: 1; letter-spacing: -0.022em; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); font-weight: 700; line-height: 1.2; }
h4 { font-size: var(--step-1); font-weight: 700; line-height: 1.25; }
p, ul, ol, dl, blockquote, figure, address { margin: 0; }
p { text-wrap: pretty; }
address { font-style: normal; }
strong { font-weight: 700; }

a { color: inherit; text-decoration-line: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent); text-decoration-color: currentColor; text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.icon { display: inline-block; vertical-align: -0.12em; margin-inline-start: 0.3em; flex: none; }

.wrap { width: min(100% - 2 * var(--gutter), 76rem); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--night); color: var(--cream); padding: 0.7rem 1rem; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; color: var(--cream); }

/* Flow spacing inside text blocks */
.flow > * + * { margin-block-start: 1.05em; }
.flow > h2 + *, .flow > h3 + * { margin-block-start: 0.7em; }
.flow > * + h2 { margin-block-start: 1.6em; }
.flow > * + h3 { margin-block-start: 1.7em; }
.flow ul, .flow ol { padding-inline-start: 1.2em; }
.flow li + li { margin-block-start: 0.4em; }
.flow li::marker { color: var(--gold); }
.measure { max-width: var(--measure); }
.lede { font-size: var(--step-1); line-height: 1.5; max-width: 52ch; }
.small { font-size: var(--step--1); color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35em;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.2;
  padding: 0.8em 1.35em; border-radius: var(--radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background-color 0.15s, color 0.15s, border-color 0.15s, translate 0.15s;
}
.button:hover { translate: 0 -1px; text-decoration: none; }
.button .icon { margin-inline-start: 0.1em; }
.button-join { background: var(--gold); color: var(--night); }
.button-join:hover { background: var(--gold-bright); color: var(--night); }
.button-give { background: var(--alpenglow); color: #fff; }
.button-give:hover { background: #A81F4A; color: #fff; }
.button-quiet { border-color: currentColor; color: var(--ink); background: transparent; }
.button-quiet:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.button-accent { background: var(--accent); color: #fff; }
.button-accent:hover { background: var(--night); color: #fff; }
.on-dark .button-quiet { color: var(--cream); }
.on-dark .button-quiet:hover { background: var(--cream); color: var(--night); border-color: var(--cream); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* ---------- Header and navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--cream) 94%, transparent); backdrop-filter: blur(8px); border-block-end: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; gap: clamp(0.5rem, 1.5vw, 1.5rem); min-height: 4.25rem; }
.header-inner > * { flex-shrink: 0; white-space: nowrap; }
.site-logo { display: block; padding-block: 0.4rem; }
.site-logo img { width: auto; height: 3rem; }
.site-nav { margin-inline-start: auto; order: 3; }
.header-actions { display: flex; gap: 0.5rem; order: 2; margin-inline-start: auto; }
.header-actions .button { padding: 0.55em 1em; font-size: 0.95rem; }
.site-nav { margin-inline-start: 0; }

.menu-button {
  anchor-name: --menu-button;
  display: inline-flex; align-items: center; gap: 0.45em; font: inherit; font-weight: 700; font-size: 0.95rem;
  color: var(--ink); background: transparent; border: 2px solid var(--ink); border-radius: var(--radius); padding: 0.45em 0.8em; cursor: pointer;
}
.menu-button .icon { margin: 0; }
.site-menu { list-style: none; margin: 0; padding: 0; }
.site-header .site-menu {
  position: fixed; inset: auto;
  inset-block-start: 4.75rem;
  inset-block-start: anchor(--menu-button bottom);
  inset-inline-end: 1rem;
  inline-size: min(80dvw, 24rem);
  max-inline-size: calc(100dvw - 2rem);
  block-size: fit-content;
  max-block-size: calc(100dvh - 6rem);
  margin-block-start: 0.5rem;
  overflow: auto;
  padding: 0.5rem;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--rule); border-radius: 10px;
  box-shadow: 0 18px 40px -12px rgb(20 37 58 / 0.35);
}
.site-menu a { display: block; padding: 0.7rem 0.9rem; font-weight: 600; text-decoration: none; border-radius: var(--radius); }
.site-menu a:hover { background: var(--cream); color: var(--accent); }
.site-menu a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--gold); }

.site-header.is-wide .menu-button { display: none; }
.site-header.is-wide .site-nav { order: 1; margin-inline-start: auto; }
.site-header.is-wide .header-actions { margin-inline-start: 0; }
.site-header.is-wide .site-menu {
  position: static; display: flex; align-items: center; gap: 0.1rem;
  inline-size: auto; max-inline-size: none; block-size: auto; max-block-size: none; overflow: visible;
  margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none;
}
.site-header.is-wide .site-menu::backdrop { display: none; }
.site-header.is-wide .site-menu a { padding: 0.5rem 0.65rem; font-size: 0.98rem; }
.site-header.is-wide .site-menu a:hover { background: transparent; }
.site-header.is-wide .site-menu a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--gold); border-radius: 0; }
.site-header.is-measuring * { transition: none !important; }
@media (max-width: 23.5rem) {
  .menu-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .header-actions .button { padding-inline: 0.75em; }
  .site-logo img { height: 2.6rem; }
}
@media (forced-colors: active) {
  .site-menu a[aria-current="page"] { outline: 2px solid CanvasText; outline-offset: -2px; }
}

/* ---------- The open gold line (from the logo) and the horizon ---------- */
.photo { position: relative; }
.photo img { width: 100%; border-radius: 3px; background: var(--rule); }
.photo figcaption { margin-block-start: 0.55rem; font-size: 0.82rem; color: var(--ink-soft); }
.photo-framed { padding: 0.9rem 0 0 0.9rem; }
.photo-framed::before {
  content: ""; position: absolute; inset: 0 24% 34% 0; pointer-events: none;
  border-block-start: 4px solid var(--gold); border-inline-start: 4px solid var(--gold); border-start-start-radius: 4px;
}
.on-dark .photo figcaption { color: #B9C6D3; }
.horizon { height: 6px; background: linear-gradient(90deg, var(--dusk) 0%, var(--alpenglow) 34%, var(--ember) 68%, var(--gold) 100%); }

/* ---------- Home hero ---------- */
.hero { position: relative; isolation: isolate; background: var(--night); color: var(--cream); display: grid; min-height: min(88svh, 50rem); }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(20 37 58 / 0.72) 0%, rgb(20 37 58 / 0.35) 46%, rgb(20 37 58 / 0) 70%); }
.hero-inner { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(9rem, 22vw, 16rem); }
.hero h1 { color: var(--cream); max-width: 12ch; text-shadow: 0 2px 30px rgb(20 37 58 / 0.5); }
.hero .lede { margin-block-start: 1.5rem; max-width: 44ch; color: #F1ECDF; }
.hero .actions { margin-block-start: 2rem; }
.hero-credit { position: absolute; inset-inline-end: var(--gutter); inset-block-end: 0.6rem; font-size: 0.78rem; color: rgb(250 247 240 / 0.85); text-shadow: 0 1px 6px rgb(0 0 0 / 0.6); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-tight { padding-block: calc(var(--section) * 0.6); }
.section-paper { background: var(--paper); border-block: 1px solid var(--rule); }
.section-head { max-width: 46rem; margin-block-end: clamp(1.75rem, 4vw, 3rem); }
.section-head p { margin-block-start: 1rem; }

.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 56rem) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split-wide-text { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .split-wide-media { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .split-flip > :first-child { order: 2; }
  .split-top { align-items: start; }
}

/* Three plain statements of what MITA does */
.work { display: grid; gap: 2.25rem clamp(1.5rem, 4vw, 3.5rem); }
@media (min-width: 52rem) { .work { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.work > div { border-block-start: 4px solid var(--work-color, var(--gold)); padding-block-start: 1.1rem; }
.work h3 { margin-block-end: 0.6rem; }
.work > :nth-child(1) { --work-color: var(--lake); }
.work > :nth-child(2) { --work-color: var(--meadow); }
.work > :nth-child(3) { --work-color: var(--alpenglow); }

/* ---------- Map of communities ---------- */
.map { width: 100%; height: auto; overflow: visible; }
.map-outline { fill: none; stroke: var(--gold); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
.map-place circle { fill: var(--navy); stroke: var(--cream); stroke-width: 3; transition: r 0.15s, fill 0.15s; }
.map-place text { font-family: var(--font-body); font-weight: 700; font-size: 17px; fill: var(--navy); }
.map-place:hover circle, .map-place.is-active circle, .map-place:focus-visible circle { fill: var(--accent); r: 11; }
.map-place:hover text, .map-place.is-active text { fill: var(--accent); }
.map-place { cursor: pointer; text-decoration: none; }
.map-place:focus-visible { outline: none; }
.map-place:focus-visible text { text-decoration: underline; }
@media (max-width: 40rem) { .map-place text { display: none; } .map-place circle { r: 11; } }

.community-list { list-style: none; padding: 0; display: grid; gap: 0; border-block-start: 1px solid var(--rule); }
.community-list li { border-block-end: 1px solid var(--rule); }
.community-list a { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: 0.8rem 0.25rem; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); }
.community-list a span { font-family: var(--font-body); font-weight: 400; font-size: var(--step--1); color: var(--ink-soft); text-align: end; }
.community-list a:hover, .community-list a.is-active { color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); padding-inline-start: 0.9rem; }
.community-list a { transition: padding 0.15s, box-shadow 0.15s; }
@media (min-width: 36rem) and (max-width: 55.99rem) { .community-list { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }

/* ---------- Bands (membership, give) ---------- */
.band { background: var(--night); color: var(--cream); }
.band h2, .band h3 { color: var(--cream); }
.band a:not(.button) { text-decoration-color: var(--accent-bright); }
.band a:not(.button):hover { color: var(--accent-bright); }
.band .lede { color: #E9E3D4; }
.band-mark { color: var(--accent-bright); font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); margin-block-end: 0.75rem; }

/* Founding member badge */
.badge { display: inline-flex; align-items: center; gap: 0.5em; padding: 0.4em 0.85em 0.4em 0.5em; border-radius: 999px; background: var(--gold); color: var(--night); font-weight: 700; font-size: 0.95rem; }
.badge svg { width: 1.35em; height: 1.35em; }

/* ---------- Rows: news, events, resources, episodes ---------- */
.rows { list-style: none; padding: 0; border-block-start: 2px solid var(--ink); }
.rows > li { display: grid; gap: 0.35rem 2rem; padding-block: 1.4rem; border-block-end: 1px solid var(--rule); }
@media (min-width: 48rem) { .rows > li { grid-template-columns: 11rem minmax(0, 1fr) auto; align-items: start; } }
.rows .when { font-weight: 700; color: var(--accent); }
.rows h3 a { text-decoration: none; }
.rows h3 a:hover { text-decoration: underline; }
.rows p { margin-block-start: 0.4rem; max-width: 60ch; }
.rows .row-action { align-self: center; }
.tag { display: inline-block; font-size: 0.82rem; font-weight: 700; padding: 0.15em 0.6em; border-radius: 999px; border: 1.5px solid currentColor; color: var(--accent); }
.empty-note { padding: 1.5rem; border: 2px dashed var(--rule); border-radius: 10px; background: var(--paper); max-width: 46rem; }

/* ---------- Page heads (interior pages) ---------- */
.page-head { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 5vw, 3.5rem); border-block-end: 1px solid var(--rule); }
.page-head h1 { font-size: var(--step-5); max-width: 16ch; }
.page-head .lede { margin-block-start: 1.4rem; }
.page-head h1::after { content: ""; display: block; width: 4.5rem; height: 6px; margin-block-start: 1.25rem; background: var(--accent); border-radius: 3px; }
.page-head-photo { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: end; }
@media (min-width: 56rem) { .page-head-photo { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.subnav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-block-start: 1.75rem; padding: 0; list-style: none; font-weight: 700; }
.subnav a[aria-current="page"] { text-decoration-color: var(--accent); text-decoration-thickness: 4px; }

/* ---------- Statement ---------- */
.statement { font-family: var(--font-display); font-weight: 700; font-size: var(--step-3); line-height: 1.22; letter-spacing: -0.01em; max-width: 26ch; text-wrap: balance; }
.statement-source { margin-block-start: 1rem; font-size: var(--step--1); color: var(--ink-soft); }
.values { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.values li { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); padding: 0.35em 0.85em; border: 2px solid var(--ink); border-radius: 999px; }

/* ---------- People ---------- */
.people { list-style: none; padding: 0; display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.person { display: grid; gap: 1.25rem 2rem; }
@media (min-width: 44rem) { .person { grid-template-columns: 13rem minmax(0, 1fr); align-items: start; } }
.person .photo { max-width: 13rem; }
.person .role { color: var(--accent); font-weight: 700; margin-block: 0.3rem 0.9rem; }
.people-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.people-grid .person { grid-template-columns: 1fr; gap: 0.9rem; }

/* ---------- Steps (a real sequence) ---------- */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; } }
.steps li { counter-increment: step; padding-block-start: 1rem; border-block-start: 4px solid var(--accent-bright, var(--gold)); }
.steps li::before { content: counter(step); display: block; font-family: var(--font-display); font-weight: 800; font-size: var(--step-4); line-height: 1; color: var(--accent-bright); margin-block-end: 0.5rem; }
.section:not(.band) .steps li { border-color: var(--accent); }
.section:not(.band) .steps li::before { color: var(--accent); }

/* Benefits and plain lists in two columns */
.pairs { display: grid; gap: 1.75rem clamp(1.5rem, 4vw, 3.5rem); }
@media (min-width: 44rem) { .pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 68rem) { .pairs-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pairs > div { border-inline-start: 4px solid var(--gold); padding-inline-start: 1rem; }
.pairs h3 { font-size: var(--step-1); margin-block-end: 0.3rem; }

/* Ways to give */
.ways { display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.way { background: var(--paper); border: 1px solid var(--rule); border-block-start: 6px solid var(--accent); border-radius: 0 0 10px 10px; padding: clamp(1.25rem, 3vw, 2rem); }
.way h3 { margin-block-end: 0.6rem; }
.way .button { margin-block-start: 1.1rem; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1.25rem; margin-block-start: 1rem; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }

/* First Peoples Montana panel. The FPM logo sits on white only. */
.fpm-panel { background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: clamp(1.25rem, 4vw, 2.5rem); display: grid; place-items: center; }
.fpm-panel img { width: min(100%, 30rem); min-width: min(100%, 20rem); }

/* Podcast */
.embed { background: var(--night); color: var(--cream); border-radius: 10px; padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1rem; }
.embed iframe { width: 100%; border: 0; border-radius: 12px; }
.embed button { justify-self: start; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #DCE4EC; margin-block-start: 0; }
.site-footer a { text-decoration-color: transparent; }
.site-footer a:hover { color: var(--gold-bright); text-decoration-color: currentColor; }
.footer-grid { display: grid; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem; }
@media (min-width: 60rem) { .footer-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr) minmax(0, 0.9fr); } }
.footer-brand img { width: min(100%, 17rem); height: auto; }
.footer-brand p { margin-block-start: 1.1rem; font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); color: var(--cream); }
.footer-brand .footer-small { font-family: var(--font-body); font-weight: 400; font-size: var(--step--1); color: #B9C6D3; max-width: 34ch; }
.footer-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 1.5rem; }
.footer-nav ul { list-style: none; padding: 0; display: grid; gap: 0.55rem; align-content: start; }
.footer-contact { line-height: 1.75; }
.footer-contact strong { color: var(--cream); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-block: 1.25rem 2rem; border-block-start: 1px solid var(--rule-night); font-size: var(--step--1); color: #B9C6D3; }
.footer-legal a { margin-inline-start: 1rem; }
.footer-legal p:last-child a:first-child { margin-inline-start: 0; }

/* ---------- Additions: hero sizing, lists of links, read-more, stories ---------- */
.hero h1 { max-width: none; font-size: clamp(1.75rem, 8.3vw, 5.4rem); }
.community-grid { margin-block-start: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 56rem) { .community-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 2rem; } .community-grid a { flex-direction: column; gap: 0.15rem; } .community-grid a span { text-align: start; } }
.map-wrap { width: 100%; max-width: 46rem; margin-inline: auto; }
.wrap.narrow > * { max-width: var(--measure); }
.page-head-photo .photo img { aspect-ratio: 4 / 3; object-fit: cover; }

.notice { border-inline-start: 6px solid var(--accent); background: var(--paper); padding: 1.1rem 1.3rem; border-radius: 0 10px 10px 0; max-width: 46rem; }
.notice h2, .notice h3 { font-size: var(--step-1); margin-block-end: 0.35rem; }
.band .notice, .on-dark .notice { background: rgb(250 247 240 / 0.08); }
.preview-flag { background: var(--gold); color: var(--night); font-weight: 700; padding: 0.6rem var(--gutter); text-align: center; }

.link-list { list-style: none; padding: 0; border-block-start: 2px solid var(--ink); }
.link-list li { padding-block: 1.05rem; border-block-end: 1px solid var(--rule); display: grid; gap: 0.2rem 2rem; }
@media (min-width: 48rem) { .link-list li { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); align-items: baseline; } }
.link-list a { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); }
.link-list p { color: var(--ink-soft); }
.link-group + .link-group { margin-block-start: clamp(2.5rem, 6vw, 4rem); }
.link-group > h2 { font-size: var(--step-3); }
.link-group > p { margin-block: 0.5rem 1.25rem; }

details.more { margin-block-start: 1rem; }
details.more summary { cursor: pointer; font-weight: 700; color: var(--accent); width: fit-content; padding-block: 0.35rem; text-decoration: underline; text-underline-offset: 0.2em; }
details.more summary:hover { color: var(--ink); }
details.more[open] summary { margin-block-end: 0.9rem; }
.person h2, .person h3 { font-size: var(--step-3); }
.person .affiliation { color: var(--ink-soft); margin-block-end: 1rem; }
.person .role span { display: block; }
.people-grid .person h3 { font-size: var(--step-2); }
.people-grid .person .role { margin-block: 0.15rem 0; }
.people-grid .photo img { aspect-ratio: 1; object-fit: cover; }

.community-entries { display: grid; gap: 0; border-block-start: 2px solid var(--ink); }
.community-entry { display: grid; gap: 0.5rem 2.5rem; padding-block: 1.6rem; border-block-end: 1px solid var(--rule); scroll-margin-block-start: 6rem; }
@media (min-width: 52rem) { .community-entry { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: start; } }
.community-entry:target { box-shadow: inset 6px 0 0 var(--accent); padding-inline-start: 1.25rem; }
.community-entry h2 { font-size: var(--step-3); }
.community-entry ul { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.community-entry li span { color: var(--ink-soft); font-size: var(--step--1); margin-inline-start: 0.5rem; }

.story-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem); }
.story-head h1 { font-size: var(--step-4); max-width: 22ch; line-height: 1.08; }
.story-meta { color: var(--ink-soft); margin-block-start: 1.1rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: center; }
.story-body { padding-block-end: var(--section); }
.story-body .photo { margin-block-end: clamp(1.75rem, 4vw, 2.75rem); max-width: 60rem; }
.story-body .flow { font-size: var(--step-1); line-height: 1.6; }
.story-back { margin-block-start: 2.5rem; font-weight: 700; }

.episode { display: grid; gap: 1.25rem; }
.episode h3 { font-size: var(--step-3); }
.embed p { color: #E9E3D4; }
.embed .small { color: #B9C6D3; }
.embed .actions a:not(.button) { color: var(--cream); }

.contact-grid { display: grid; gap: 2rem clamp(2rem, 5vw, 4rem); }
@media (min-width: 52rem) { .contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.contact-grid > div { border-block-start: 4px solid var(--accent); padding-block-start: 1rem; }
.contact-grid h2 { font-size: var(--step-2); margin-block-end: 0.5rem; }
.contact-big { font-family: var(--font-display); font-weight: 700; font-size: var(--step-2); overflow-wrap: anywhere; }

@media print {
  .site-header, .site-footer, .hero picture, .actions { display: none; }
  body { background: #fff; }
}
