/* South Platte Renew - redesign prototype theme
   Built by Stoa for RFP 26-022. Self-contained with local open-license fonts. */

@font-face {
  font-family: "Oxanium";
  src: url("/southplatterenew/assets/fonts/oxanium-latin-var.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("/southplatterenew/assets/fonts/ibm-plex-sans-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #13212b;
  --slate: #33505f;
  --teal: #0a5d63;
  --teal-dk: #073f43;
  --teal-deep: #052e31;
  --navy: #13212b;
  --sky: #e7f1f0;
  --sky-2: #d4e8e6;
  --mist: #f2fbf8;
  --sand: #f6f4ee;
  --paper: #ffffff;
  --line: #cdd8d4;
  --line-soft: #e3eae7;
  --moss: #3f7d4f;
  --moss-dk: #2f6a3f;
  --gold: #9a6b15;
  --gold-soft: #f3ead0;
  --copper: #9f5127;
  --aeration: #8df5d7;
  --aeration-soft: #d6fff0;
  --reactor-orange: #ff7a2f;
  --reactor-orange-dk: #5d2eea;
  --lab-violet: #4f46e5;
  --maxw: 1120px;
  --display: "Oxanium", "Avenir Next", system-ui, sans-serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); color: var(--teal-deep); line-height: 1.15; letter-spacing: 0; }
h1 { font-size: 2.85rem; margin: 0 0 1rem; }
h2 { font-size: 2rem; margin: 0 0 0.85rem; }
h3 { font-size: 1.2rem; margin: 0 0 0.5rem; }

p { margin: 0 0 1rem; }
a { color: var(--teal-dk); }
a:hover { color: var(--teal-deep); }

img { max-width: 100%; height: auto; display: block; }

/* Visible focus everywhere (focus rings don't render in this stack; use outline) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--teal-dk);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.1rem;
  z-index: 100;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 8px; top: 8px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---- Prototype banner ---- */
.proto-banner {
  background: var(--gold-soft);
  color: #4a3508;
  border-bottom: 1px solid #e3d3a6;
  font-size: 0.84rem;
  padding: 0.55rem 1.25rem;
  text-align: center;
}
.proto-banner strong { color: #3a2906; }
.proto-banner a { color: #6a4a0c; }

/* ---- Utility bar ---- */
.util-bar { background: var(--teal-deep); color: #cfe6e4; font-size: 0.82rem; }
.util-bar .wrap { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; justify-content: space-between; padding-top: 0.5rem; padding-bottom: 0.5rem; }
.util-bar a { color: #9fe0dd; text-decoration: none; font-weight: 600; }
.util-bar a:hover { color: #fff; text-decoration: underline; }
.util-bar .util-links { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; }

/* ---- Site header ---- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.brand-row { display: flex; align-items: center; gap: 1rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.brand-mark {
  width: 3.55rem;
  height: 3.55rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 24%, rgba(255,255,255,0.96) 0 16%, rgba(255,255,255,0) 17%),
    linear-gradient(145deg, #d9f2ee 0%, #f0fbf8 52%, #c7e7db 100%);
  box-shadow: 0 0 0 1px rgba(5, 72, 73, 0.12), 0 10px 28px rgba(5, 72, 73, 0.18);
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-mark__drop { fill: rgba(16, 121, 119, 0.12); stroke: var(--teal-deep); stroke-width: 2.8; stroke-linejoin: round; }
.brand-mark__river { fill: none; stroke: var(--moss); stroke-width: 3.1; stroke-linecap: round; }
.brand-link { display: flex; align-items: center; gap: 0.9rem; text-decoration: none; min-width: 0; }
.brand-text { display: block; min-width: 0; }
.brand-text .brand-name { display: block; font-family: var(--display); font-size: 1.62rem; color: var(--teal-deep); font-weight: 700; line-height: 1.02; letter-spacing: 0; }
.brand-text .brand-sub { display: block; font-size: 0.78rem; color: var(--slate); text-transform: uppercase; letter-spacing: 0; font-weight: 700; margin-top: 0.22rem; }

/* ---- Primary nav ---- */
.primary-nav { background: var(--teal); border-bottom: 3px solid var(--moss); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-list { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: block;
  color: #f1f8f7;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  padding: 0.8rem 0.95rem;
}
.nav-list a:hover { background: var(--teal-dk); color: #fff; }
.nav-list a[aria-current="page"] { background: var(--teal-deep); color: #fff; box-shadow: inset 0 -3px 0 var(--gold-soft); }
.menu-btn {
  display: none;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--teal-dk);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 7px;
  padding: 0.5rem 0.85rem;
  margin: 0.5rem 0;
  cursor: pointer;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5,46,49,0.94) 0%, rgba(5,46,49,0.82) 44%, rgba(5,46,49,0.35) 100%),
    url("/southplatterenew/assets/img/river-outfall.jpg") center / cover no-repeat;
  border-bottom: 1px solid var(--line-soft);
  color: #f4fbfa;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(20rem, 0.75fr); gap: 2.5rem; align-items: end; min-height: 560px; padding-top: 4rem; padding-bottom: 3.2rem; }
.eyebrow { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0; font-weight: 700; color: var(--teal); margin: 0 0 0.6rem; }
.hero .eyebrow { color: #8df5d7; }
.hero h1 { color: #fff; max-width: 42rem; font-size: 4.1rem; line-height: 1.08; }
.hero .lede { font-size: 1.18rem; color: #e0f1ef; max-width: 40rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.btn {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.8rem 1.35rem;
  border-radius: 8px;
  border: 2px solid var(--teal);
}
.btn:hover { background: var(--teal-dk); border-color: var(--teal-dk); color: #fff; }
.btn-ghost { background: transparent; color: var(--teal-dk); }
.btn-ghost:hover { background: var(--teal); color: #fff; }
.hero .btn { background: #8df5d7; border-color: #8df5d7; color: var(--teal-deep); }
.hero .btn:hover { background: var(--aeration-soft); border-color: var(--aeration-soft); color: var(--teal-deep); }
.hero .btn-ghost { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.55); color: #fff; }
.hero .btn-ghost:hover { background: rgba(255,255,255,0.2); border-color: #fff; color: #fff; }

/* ---- Side panel / cards ---- */
.panel { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: 8px; padding: 1.4rem 1.5rem; box-shadow: 0 6px 20px rgba(7,63,67,0.07); }
.hero .panel { background: rgba(255,255,255,0.95); border-color: rgba(255,255,255,0.72); box-shadow: 0 18px 44px rgba(0,0,0,0.22); }
.panel h2 { font-size: 1.15rem; margin: 0 0 0.7rem; }
.panel ul { margin: 0; padding-left: 1.1rem; }
.panel li { margin-bottom: 0.45rem; }

.hero-search { margin-top: 1.4rem; max-width: 40rem; }
.hero-search label { display: block; font-weight: 700; color: #f4fbfa; margin-bottom: 0.35rem; }
.hero-search .search-form { margin: 0; max-width: none; flex-wrap: nowrap; }
.hero-search input[type="search"] { min-width: 0; border-color: rgba(255,255,255,0.75); }
.hero-source { font-size: 0.78rem; color: #cae6e3; margin-top: 0.8rem; }

.hero-stage {
  min-height: 650px;
  background:
    radial-gradient(680px 360px at 82% 24%, rgba(183,97,49,0.28), rgba(183,97,49,0) 62%),
    linear-gradient(90deg, rgba(4,34,39,0.98) 0%, rgba(5,46,49,0.9) 42%, rgba(5,46,49,0.48) 72%, rgba(4,34,39,0.9) 100%),
    url("/southplatterenew/assets/img/river-outfall.jpg") center / cover no-repeat;
  border-bottom: 4px solid var(--copper);
}
.hero-stage::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 8rem;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(4,34,39,0.9), rgba(4,34,39,0));
}
.hero-stage__inner {
  grid-template-columns: minmax(0, 1fr) minmax(21rem, 0.72fr);
  align-items: center;
  min-height: 650px;
  gap: 3rem;
  padding-top: 2.1rem;
  padding-bottom: 2.1rem;
}
.hero-stage__copy { max-width: 48rem; }
.hero-stage h1 {
  max-width: 11ch;
  font-size: 4.7rem;
  line-height: 1.06;
}
.hero-stage .lede {
  max-width: 43rem;
  font-size: 1.14rem;
}
.hero-rush {
  position: absolute;
  inset: 0 0 0 40%;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(8rem, 1fr));
  grid-auto-rows: minmax(9rem, 1fr);
  gap: 0.55rem;
  padding: 1rem;
  opacity: 0.62;
  transform: skewX(-5deg) translateX(3vw);
  filter: saturate(1.1) contrast(1.08);
}
.hero-rush img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 22px 56px rgba(0,0,0,0.32);
}
.hero-rush img:nth-child(1),
.hero-rush img:nth-child(4) { grid-row: span 2; }
.hero-rush img:nth-child(2) { grid-column: span 2; }
.hero-stage__search {
  max-width: 48rem;
  margin-top: 1.55rem;
  padding: 0.55rem;
  border: 1px solid rgba(191,232,201,0.38);
  border-radius: 12px;
  background: rgba(4,34,39,0.82);
  box-shadow: 0 18px 42px rgba(0,0,0,0.28);
}
.hero-stage__search .search-form { gap: 0.55rem; }
.hero-stage__search input[type="search"] {
  border: 2px solid rgba(255,255,255,0.72);
  font-size: 1.02rem;
}
.hero-stage__search button {
  background: var(--copper);
  border-color: var(--copper);
}
.hero-stage__search button:hover {
  background: #5d2eea;
  border-color: #5d2eea;
}
.hero-stage__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}
.hero-stage__chips button {
  border: 1px solid rgba(255,255,255,0.34);
  border-radius: 999px;
  background: rgba(255,255,255,0.09);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.32rem 0.7rem;
  cursor: pointer;
}
.hero-stage__chips button:hover {
  background: rgba(183,97,49,0.32);
  border-color: #ff7a2f;
}
.hero-stage__signal {
  min-height: 1.35rem;
  margin: 0.7rem 0 0;
  color: #dcefeb;
  font-size: 0.9rem;
}
.hero-credit {
  position: absolute;
  right: 0.65rem;
  bottom: 0.45rem;
  z-index: 2;
  font-size: 0.66rem;
  color: rgba(255,255,255,0.86);
  text-shadow: 0 1px 8px rgba(0,0,0,0.72);
}

.renewal-console {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(191,232,201,0.32);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03)),
    rgba(4,34,39,0.82);
  color: #f4fbfa;
  padding: 0.9rem;
  box-shadow: 0 24px 68px rgba(0,0,0,0.34);
}
.renewal-console::before {
  content: "";
  position: absolute;
  right: 1.1rem;
  top: 1.1rem;
  width: 4rem;
  height: 4rem;
  opacity: 0.24;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 30%, rgba(191,232,201,0.62) 0 10%, transparent 11%),
    conic-gradient(from 160deg, rgba(191,232,201,0), rgba(191,232,201,0.58), rgba(183,97,49,0.52), rgba(191,232,201,0));
}
.renewal-console__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  padding-right: 3.7rem;
}
.renewal-console__head .label {
  margin: 0;
  color: #ff7a2f;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}
.renewal-console__head span {
  max-width: 13rem;
  color: #cfe6e3;
  font-size: 0.78rem;
  text-align: right;
}
.renewal-console__head strong {
  color: #fff;
  font-family: var(--display);
  font-size: 1.35rem;
}
.renewal-preview {
  display: grid;
  gap: 0.55rem;
}
.preview-row {
  display: grid;
  gap: 0.12rem;
  padding: 0.72rem 0.8rem;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  text-decoration: none;
}
.preview-row:hover {
  border-color: #ff7a2f;
  background: rgba(255,255,255,0.14);
  color: #fff;
}
.preview-row--lead {
  min-height: 7.6rem;
  align-content: end;
  background:
    linear-gradient(90deg, rgba(4,34,39,0.86), rgba(4,34,39,0.44)),
    url("/southplatterenew/assets/img/waterfest.jpg") center / cover no-repeat;
}
.preview-type {
  width: max-content;
  color: var(--teal-deep);
  background: #8df5d7;
  border-radius: 999px;
  padding: 0.08rem 0.5rem;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}
.preview-row strong {
  display: block;
  color: #fff;
  font-size: 1.02rem;
  line-height: 1.12;
}
.preview-row small {
  color: #dcefeb;
  font-size: 0.76rem;
  line-height: 1.36;
}
.renewal-console__routes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: 0.78rem;
}
.renewal-console__routes a {
  color: #ff7a2f;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
  border: 1px solid rgba(239,188,143,0.4);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
}
.renewal-console__routes a:hover {
  background: rgba(183,97,49,0.22);
}

.kicker { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0; font-weight: 700; color: var(--slate); margin: 0 0 0.3rem; }

.section { padding-top: 3rem; padding-bottom: 3rem; }
.section-tight { padding-top: 1.65rem; padding-bottom: 1.65rem; }
.section-sand { background: var(--sand); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head--spread {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}
.section-head--spread p:last-child {
  max-width: 36rem;
  color: var(--slate);
  margin: 0;
}

.request-rail {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
}
.request-rail a {
  display: grid;
  align-content: start;
  min-height: 6.8rem;
  gap: 0.35rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line-soft);
  border-left: 4px solid var(--copper);
  border-radius: 8px;
  background: #fff;
  color: var(--teal-deep);
  font-weight: 700;
  text-decoration: none;
}
.request-rail a:hover {
  border-left-color: var(--moss);
  box-shadow: 0 8px 20px rgba(7,63,67,0.09);
}
.request-rail span {
  color: var(--copper);
  font-size: 0.66rem;
  text-transform: uppercase;
  font-weight: 800;
}

.cards { list-style: none; margin: 1.3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1rem; }
.card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  padding: 1.15rem 1.25rem;
  text-decoration: none;
  color: var(--ink);
  height: 100%;
}
.card:hover { border-left-color: var(--moss); box-shadow: 0 10px 24px rgba(7,63,67,0.13); border-color: var(--teal); }
@media (prefers-reduced-motion: no-preference) {
  .card { transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease; }
  .card:hover, .card:focus-visible { transform: translateY(-3px); }
}
.card .card-title { display: block; font-weight: 700; color: var(--teal-deep); font-size: 1.04rem; margin-bottom: 0.25rem; }
.card .card-desc { display: block; font-size: 0.92rem; color: var(--slate); }

/* ---- Stats strip ---- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1.25rem; margin: 1.4rem 0 0; list-style: none; padding: 0; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 1.2rem 1.25rem; }
.stat .num { font-family: var(--display); font-size: 2.1rem; color: var(--teal); font-weight: 700; line-height: 1; }
.stat .lbl { font-size: 0.88rem; color: var(--slate); margin-top: 0.35rem; }

/* ---- Feature (dark) band ---- */
.feature { background: var(--teal-deep); color: #d7eeeb; border-top: 4px solid var(--moss); }
.feature .wrap { padding-top: 3.3rem; padding-bottom: 3.3rem; }
.feature-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.feature h2 { color: #8df5d7; }
.feature p { color: #cfe6e3; }
.feature .eyebrow { color: #7fd0a0; }
.feature .btn { background: #8df5d7; color: var(--teal-deep); border-color: #8df5d7; }
.feature .btn:hover { background: var(--aeration-soft); border-color: var(--aeration-soft); }
.feature-emblem { text-align: center; border-left: 1px solid #1c4a4d; padding-left: 2.5rem; }
.feature-emblem .big { font-family: var(--display); font-weight: 700; font-size: 3.6rem; color: #8df5d7; line-height: 1; letter-spacing: 0; }
.feature-emblem .small { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0; color: #7fd0a0; font-weight: 700; margin-top: 0.6rem; }

/* ---- Source-backed image and event blocks ---- */
.split-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr); gap: 2rem; align-items: center; }
.split-grid > *,
.feature-grid > *,
.cards > *,
.stats > * { min-width: 0; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.photo-card { overflow: hidden; background: var(--paper); border: 1px solid var(--line-soft); border-radius: 8px; box-shadow: 0 5px 18px rgba(7,63,67,0.07); }
.photo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-card .photo-copy { padding: 0.9rem 1rem; }
.photo-card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.photo-card p { color: var(--slate); font-size: 0.9rem; margin: 0; }
.source-note { font-size: 0.78rem; color: var(--slate); margin-top: 0.8rem; }

.event-grid { display: grid; gap: 0.75rem; margin: 1.1rem 0 0; }
.event-card { display: grid; grid-template-columns: minmax(9.5rem, auto) minmax(0, 1fr); gap: 1.25rem; align-items: start; background: #fff; border: 1px solid var(--line-soft); border-left: 5px solid var(--moss); border-radius: 8px; padding: 1.22rem 1.35rem; }
.event-date { color: var(--teal-deep); font-weight: 800; line-height: 1.18; white-space: nowrap; }
.event-date span { display: block; font-size: 0.78rem; color: var(--slate); font-weight: 700; text-transform: uppercase; letter-spacing: 0; }
.event-card h3 { font-size: 1.14rem; margin-bottom: 0.32rem; }
.event-card p { margin: 0; font-size: 0.95rem; color: var(--slate); line-height: 1.55; }

.recovery-loop {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: stretch;
  background: linear-gradient(135deg, #ecf6f5, #fbf8ec);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem;
  margin: 1.3rem 0;
}
.loop-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 0.9rem;
  min-height: 11rem;
}
.loop-step::after {
  content: "";
  position: absolute;
  top: 2.1rem;
  right: -0.62rem;
  width: 0.48rem;
  height: 0.48rem;
  border-top: 2px solid var(--moss);
  border-right: 2px solid var(--moss);
  transform: rotate(45deg);
  background: transparent;
}
.loop-step:last-child::after { display: none; }
.loop-icon {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--teal);
  background: var(--sky);
  margin-bottom: 0.65rem;
}
.loop-icon svg { width: 1.9rem; height: 1.9rem; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.loop-title { display: block; font-family: var(--display); color: var(--teal-deep); line-height: 1.15; font-size: 1rem; font-weight: 700; margin: 0 0 0.35rem; }
.loop-step p { color: var(--slate); font-size: 0.88rem; margin: 0; line-height: 1.45; }
.recovery-loop--dark {
  background: rgba(255,255,255,0.07);
  border-color: rgba(191,232,201,0.32);
}
.recovery-loop--dark .loop-step {
  background: rgba(255,255,255,0.08);
  border-color: rgba(191,232,201,0.25);
}
.recovery-loop--dark .loop-icon { background: rgba(141,245,215,0.18); color: #8df5d7; }
.recovery-loop--dark .loop-title { color: #eaf7eb; }
.recovery-loop--dark .loop-step p { color: #cfe6e3; }
.recovery-loop--compact { grid-template-columns: 1fr; margin: 0; }
.recovery-loop--compact .loop-step { min-height: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem; align-items: start; }
.recovery-loop--compact .loop-icon { margin: 0; }
.recovery-loop--compact .loop-step::after { top: auto; right: auto; left: 1.45rem; bottom: -0.62rem; transform: rotate(135deg); }

/* ---- News list ---- */
.news-item { border-bottom: 1px solid var(--line-soft); padding: 1.2rem 0; }
.news-item:last-child { border-bottom: 0; }
.news-meta { display: flex; gap: 0.7rem; align-items: center; font-size: 0.8rem; color: var(--slate); margin: 0 0 0.35rem; }
.tag { background: var(--sky); color: var(--teal-deep); padding: 0.12rem 0.5rem; border-radius: 3px; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0; font-weight: 700; }
.news-item h3 { margin: 0 0 0.4rem; }
.news-item h3 a { color: var(--teal-deep); text-decoration: none; }
.news-item h3 a:hover { text-decoration: underline; }

/* ---- Generic content page ---- */
.page-head { background: var(--sky); border-bottom: 1px solid var(--line-soft); }
.page-head .wrap { padding-top: 2.4rem; padding-bottom: 2.4rem; }
.page-head h1 { font-size: clamp(2.5rem, 1.9rem + 1.9vw, 3.4rem); max-width: 24ch; }
.page-head--photo .wrap { padding-top: 3rem; padding-bottom: 3rem; }
.page-head--search {
  position: relative;
  overflow: hidden;
  color: #f4fbfa;
  background:
    radial-gradient(620px 320px at 84% 18%, rgba(183,97,49,0.28), rgba(183,97,49,0) 64%),
    linear-gradient(110deg, rgba(4,34,39,0.96), rgba(7,63,67,0.9) 62%, rgba(47,106,63,0.88)),
    url("/southplatterenew/assets/img/podcast-hero.png") center / cover no-repeat;
  border-bottom: 4px solid var(--copper);
}
.page-head--search .wrap { padding-top: 3.1rem; padding-bottom: 3.1rem; }
.page-head--search h1 {
  color: #fff;
  max-width: 12ch;
  font-size: 4.1rem;
}
.page-head--search .lede {
  color: #dcefeb;
  max-width: 48rem;
  font-size: 1.08rem;
}
.page-head--search .search-form--hero {
  max-width: 50rem;
  margin: 1.25rem 0 0.45rem;
  border-color: rgba(255,255,255,0.22);
  background: rgba(4,34,39,0.76);
  box-shadow: 0 18px 46px rgba(0,0,0,0.24);
}
.page-head--search .search-form--hero input[type="search"] {
  border-color: rgba(255,255,255,0.78);
}
.page-head--search .search-help--hero {
  color: #dcefeb;
  margin: 0 0 0.9rem;
  max-width: 48rem;
}
.page-head--search .breadcrumb,
.page-head--search .breadcrumb a { color: #cce4e0; }
.page-head--search .eyebrow { color: #ff7a2f; }
.search-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  max-width: 48rem;
  margin-top: 1.35rem;
}
.search-proof-grid span {
  display: grid;
  gap: 0.04rem;
  padding: 0.72rem 0.8rem;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #dcefeb;
  font-size: 0.78rem;
}
.search-proof-grid strong {
  color: #fff;
  font-family: var(--display);
  font-size: 1.3rem;
  line-height: 1;
}
.page-head--photo {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5,46,49,0.9), rgba(5,46,49,0.62)),
    var(--page-photo, url("/southplatterenew/assets/img/parc-projects.jpg")) center / cover no-repeat;
  color: #f4fbfa;
}
.page-head--photo h1,
.page-head--photo .breadcrumb,
.page-head--photo .breadcrumb a,
.page-head--photo .lede { color: #f4fbfa; }
.breadcrumb { font-size: 0.82rem; color: var(--slate); margin: 0 0 0.6rem; }
.breadcrumb a { color: var(--teal-dk); }
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.45rem; }

.callout { background: var(--sky); border-left: 4px solid var(--teal); border-radius: 0 8px 8px 0; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.callout-moss { background: #eaf4ec; border-left-color: var(--moss); }

.def-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 1.3rem 0; }
.def-grid .term { font-weight: 700; color: var(--teal-deep); display: block; margin-bottom: 0.2rem; }
.def-grid li { background: var(--sand); border: 1px solid var(--line-soft); border-radius: 8px; padding: 1rem 1.1rem; margin: 0; }

/* ---- Forms ---- */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.35rem; color: var(--ink); }
.field .hint { font-weight: 400; color: var(--slate); font-size: 0.86rem; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--slate);
  border-radius: 7px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}
.field textarea { min-height: 7rem; resize: vertical; }
.req { color: #9a2218; }
.form-panel { background: var(--sand); border: 1px solid var(--line-soft); border-radius: 8px; padding: 1.35rem 1.5rem; max-width: 40rem; margin: 1.2rem 0; }

.form-status { border-radius: 8px; padding: 0.9rem 1.1rem; margin-top: 1rem; font-weight: 600; }
.form-status.ok { background: #eaf4ec; border: 1px solid var(--moss); color: var(--moss-dk); }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: #c6d3d1; margin-top: 3rem; }
.site-footer a { color: #9fe0dd; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 2rem; padding-top: 2.6rem; padding-bottom: 1.6rem; }
.footer-grid h3 { color: #eaf3f1; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0; margin: 0 0 0.7rem; font-family: var(--sans); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.4rem; }
.footer-grid p { color: #aebfbc; font-size: 0.92rem; }
.footer-legal { border-top: 1px solid #2a3a40; padding-top: 1.1rem; padding-bottom: 2rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; font-size: 0.82rem; color: #93a6a3; }

/* ---- Search demo ---- */
.search-section { background: linear-gradient(180deg, var(--mist), #fff 22rem); }
.search-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18rem;
  gap: 1.4rem;
  align-items: start;
}
.search-workbench {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.98), rgba(242,251,248,0.98)),
    radial-gradient(520px 280px at 80% 0%, rgba(191,232,201,0.5), rgba(191,232,201,0));
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: 8px;
  padding: 1.35rem 1.45rem;
  box-shadow: 0 14px 36px rgba(7,63,67,0.08);
}
.search-workbench h2 { font-size: 1.8rem; }
.search-intro,
.search-help {
  color: var(--slate);
  font-size: 0.94rem;
  max-width: 48rem;
}
.search-help {
  margin: 0.3rem 0 0.7rem;
  font-size: 0.82rem;
}
.search-scope {
  border: 1px solid var(--line);
  border-top: 4px solid var(--copper);
  border-radius: 8px;
  background: var(--navy);
  color: #dcefeb;
  padding: 1.15rem 1.2rem;
  box-shadow: 0 14px 36px rgba(7,63,67,0.12);
}
.search-scope h2 {
  color: #fff;
  font-size: 1.28rem;
}
.search-scope p,
.search-scope dd {
  color: #c7d8d5;
  font-size: 0.86rem;
}
.search-scope .eyebrow { color: #ff7a2f; }
.scope-list {
  display: grid;
  gap: 0.72rem;
  margin: 1rem 0 0;
}
.scope-list div {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 0.62rem;
}
.scope-list dt {
  color: #fff;
  font-weight: 800;
  font-size: 0.76rem;
  text-transform: uppercase;
}
.scope-list dd {
  margin: 0.1rem 0 0;
}
.results-shell {
  grid-column: 1 / 2;
}
.search-method {
  grid-column: 1 / -1;
  max-width: 52rem;
  border-top: 1px solid var(--line-soft);
  color: var(--slate);
  font-size: 0.8rem;
  padding-top: 0.85rem;
  margin-top: 0.4rem;
}
.search-method strong { color: var(--teal-deep); }

.search-form { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: stretch; max-width: 46rem; margin: 1.3rem 0 0.7rem; }
.search-form input[type="search"] {
  flex: 1; min-width: 14rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--slate);
  border-radius: 8px;
  font-size: 1.02rem;
  font-family: inherit;
  background: #fff;
}
.search-form button { background: var(--teal); color: #fff; border: 1.5px solid var(--teal); padding: 0 1.5rem; font-weight: 700; font-size: 0.95rem; border-radius: 8px; cursor: pointer; font-family: inherit; }
.search-form button:hover { background: var(--teal-dk); border-color: var(--teal-dk); }
.search-form--large {
  max-width: 54rem;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(7,63,67,0.08);
}
.search-form--large input[type="search"] {
  border-width: 2px;
  font-size: 1.05rem;
}
.search-form--large button {
  background: var(--copper);
  border-color: var(--copper);
}
.search-form--large button:hover {
  background: #5d2eea;
  border-color: #5d2eea;
}

.facets { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.2rem 0 0.4rem; max-width: 46rem; list-style: none; padding: 0; }
.facet {
  background: #fff; border: 1.5px solid var(--line); color: var(--slate);
  padding: 0.35rem 0.8rem; font-size: 0.84rem; border-radius: 99px; cursor: pointer; font-family: inherit; font-weight: 600;
}
.facet[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.2rem 0 0.6rem; max-width: 46rem; list-style: none; padding: 0; }
.chip { background: var(--gold-soft); border: 1px solid #e0cd9a; color: #5a4108; padding: 0.32rem 0.7rem; font-size: 0.8rem; border-radius: 99px; cursor: pointer; font-family: inherit; }
.chip:hover { background: #efe1bc; }

.results { max-width: 62rem; margin-top: 0.65rem; }
.results-summary { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0; color: var(--slate); font-weight: 700; margin: 0.8rem 0 0.5rem; }
.result {
  background: #fff; border: 1px solid var(--line-soft); border-left: 5px solid var(--teal);
  padding: 1.15rem 1.25rem; border-radius: 8px; margin-bottom: 0.75rem;
}
.result .r-meta { font-size: 0.72rem; color: var(--slate); letter-spacing: 0; text-transform: uppercase; margin: 0 0 0.45rem; font-weight: 700; display: flex; flex-wrap: wrap; gap: 0.55rem 0.75rem; align-items: center; }
.result h2 { font-size: 1.14rem; margin: 0 0 0.35rem; }
.result h2 a { color: var(--teal-deep); text-decoration: none; }
.result h2 a:hover { text-decoration: underline; }
.result p { margin: 0; font-size: 0.95rem; color: var(--slate); line-height: 1.55; }
.result mark { background: #fdeeb8; color: inherit; padding: 0 0.1em; border-radius: 2px; }
.type-badge { padding: 0.16rem 0.52rem; border-radius: 4px; font-size: 0.66rem; letter-spacing: 0; color: #fff; }
.type-page { background: var(--teal); }
.type-pdf { background: #9a2218; }
.type-event { background: var(--moss-dk); }
.type-podcast { background: #4f46e5; }
.type-news { background: var(--gold); }
.match { color: var(--gold); }
.no-results { color: var(--slate); font-style: italic; margin-top: 1rem; }
.answer-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(7,63,67,0.2);
  border-left: 4px solid var(--copper);
  border-radius: 10px;
  background:
    radial-gradient(420px 220px at 88% 12%, rgba(191,232,201,0.62), rgba(191,232,201,0)),
    linear-gradient(135deg, #fff, var(--mist));
  padding: 1.15rem 1.25rem;
  margin: 0.85rem 0 0.75rem;
  box-shadow: 0 12px 32px rgba(7,63,67,0.08);
}
.answer-card::after {
  content: "";
  position: absolute;
  right: 1rem;
  bottom: 0.9rem;
  width: 5rem;
  height: 5rem;
  opacity: 0.11;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--teal), var(--moss), var(--copper), var(--teal));
}
.answer-card > * { position: relative; z-index: 1; }
.answer-kicker {
  color: var(--copper);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 0.28rem;
}
.answer-card h2 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}
.answer-card p {
  max-width: 42rem;
  color: var(--slate);
  font-size: 0.94rem;
}
.answer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.8rem;
}
.answer-actions a {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.32rem 0.68rem;
  color: var(--teal-deep);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}
.answer-actions a:hover { border-color: var(--teal); background: var(--sky); }

/* ---- Responsive ---- */
@media (max-width: 880px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.65rem; }
  .hero h1 { font-size: 2.7rem; }
  .hero-stage h1 { font-size: 3.2rem; }
  .hero-inner, .feature-grid, .split-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .hero-inner { min-height: 0; }
  .hero-stage { min-height: 0; }
  .hero-stage__inner { min-height: 0; grid-template-columns: 1fr; padding-top: 3.2rem; padding-bottom: 3.2rem; }
  .hero-rush { inset: 0; opacity: 0.28; transform: none; grid-template-columns: repeat(2, 1fr); }
  .renewal-console { max-width: 34rem; }
  .request-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head--spread { display: block; }
  .section-head--spread p:last-child { margin-top: 0.4rem; }
  .search-layout { grid-template-columns: 1fr; }
  .results-shell,
  .search-method { grid-column: auto; }
  .search-scope { order: -1; }
  .page-head--search h1 { font-size: 3rem; max-width: none; }
  .search-proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-emblem { border-left: 0; border-top: 1px solid #1c4a4d; padding-left: 0; padding-top: 1.6rem; }
  .recovery-loop { grid-template-columns: 1fr; }
  .loop-step { min-height: 0; }
  .loop-step::after { top: auto; right: 50%; bottom: -0.62rem; transform: translateX(50%) rotate(135deg); }
}
@media (max-width: 720px) {
  .menu-btn { display: inline-block; }
  .nav-inner { flex-wrap: wrap; }
  .nav-list { display: none; flex-direction: column; width: 100%; }
  .nav-list.open { display: flex; }
  .nav-list a { padding: 0.85rem 0.5rem; border-top: 1px solid rgba(255,255,255,0.12); }
  .util-bar .wrap { justify-content: flex-start; }
  .util-bar .util-address { display: none; }
  .hero-search .search-form { flex-wrap: wrap; }
  .event-card { grid-template-columns: 1fr; gap: 0.8rem; padding: 1rem; }
  .event-date { white-space: normal; }
  .event-date span { white-space: nowrap; }
  .hero-stage__search { padding: 0.5rem; }
  .hero-stage__search .search-form { gap: 0.45rem; }
  .hero-stage__search input[type="search"],
  .search-form--large input[type="search"] { min-width: 0; flex-basis: 100%; }
  .hero-stage__search button,
  .search-form--large button { width: 100%; min-height: 3rem; }
  .renewal-console__head { display: block; padding-right: 3.4rem; }
  .renewal-console__head span { display: block; text-align: left; max-width: none; margin-top: 0.35rem; }
  .search-form--large { display: grid; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding-left: 1rem; padding-right: 1rem; }
  .brand-row { padding-top: 0.9rem; padding-bottom: 0.9rem; }
  .brand-mark { width: 3rem; height: 3rem; }
  .brand-link { align-items: flex-start; }
  .brand-text .brand-name { font-size: 1.34rem; }
  .brand-text .brand-sub { font-size: 0.7rem; line-height: 1.25; max-width: 13rem; }
  .hero-stage__inner { padding-top: 2.4rem; padding-bottom: 2.6rem; }
  .hero-stage h1 { font-size: 3rem; }
  .hero-stage .lede { font-size: 1rem; }
  .request-rail { grid-template-columns: 1fr; }
  .request-rail a { min-height: 0; }
  .page-head--search .wrap { padding-top: 2.1rem; padding-bottom: 2.25rem; }
  .page-head--search h1 { font-size: 2.55rem; }
  .search-proof-grid { grid-template-columns: 1fr; }
  .search-workbench,
  .search-scope { padding: 1.05rem; }
  .answer-card { padding: 1rem; }
  .result { padding: 1rem; }
  .event-card .event-actions { gap: 0.45rem 0.6rem; }
  .event-card .event-actions a,
  .ics-btn { min-height: 2.4rem; }
}

/* ==================================================================
   PARC hub, podcast, story, events, forms, and Spanish pages
   (June 2026 expansion). Same palette, same system fonts, no deps.
   ================================================================== */

/* ---- PARC pilot map ---- */
.parc-intro-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(19rem, 0.78fr); gap: 2rem; align-items: start; }
.parc-map-shell {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 36px rgba(7,63,67,0.10);
}
.parc-map-stage { position: relative; background: linear-gradient(180deg, #eef7f4, #f7fbf2); }
.parc-map-base { display: block; width: 100%; height: auto; }
.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--teal);
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(5,46,49,0.35);
}
.map-pin:hover { background: var(--teal-dk); }
.map-pin[aria-pressed="true"] {
  background: var(--copper);
  border-color: #ffe9d6;
  box-shadow: 0 0 0 4px rgba(159,81,39,0.28), 0 6px 16px rgba(5,46,49,0.35);
}
.map-pin[hidden] { display: none; }
.parc-map-caption { font-size: 0.78rem; color: var(--slate); padding: 0.75rem 0.95rem; border-top: 1px solid var(--line-soft); background: #fff; margin: 0; }
.parc-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1.25rem 0 0.4rem; padding: 0; list-style: none; }
.parc-signal { min-height: 1.35rem; font-size: 0.9rem; color: var(--slate); margin: 0.4rem 0 0.9rem; }
.parc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; margin: 0.5rem 0 0; padding: 0; list-style: none; }
.parc-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: 8px;
  padding: 1.05rem 1.15rem;
  display: grid;
  align-content: start;
  gap: 0.5rem;
}
.parc-card.is-active {
  border-color: var(--copper);
  border-top-color: var(--copper);
  box-shadow: 0 10px 26px rgba(159,81,39,0.18);
}
.parc-card[hidden] { display: none; }
.parc-card h3 { font-size: 1.05rem; margin: 0; padding-right: 2.3rem; }
.pin-num {
  position: absolute;
  top: 0.85rem;
  right: 0.9rem;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sky);
  color: var(--teal-deep);
  font-size: 0.8rem;
  font-weight: 800;
}
.partner-chip {
  width: max-content;
  max-width: 100%;
  background: var(--gold-soft);
  border: 1px solid #e0cd9a;
  color: #5a4108;
  border-radius: 999px;
  padding: 0.14rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
}
.parc-card p { margin: 0; font-size: 0.9rem; color: var(--slate); }
.parc-card .focus-tag { font-size: 0.64rem; text-transform: uppercase; font-weight: 800; color: var(--copper); }
.parc-card .episode-link { font-size: 0.84rem; font-weight: 700; }
.parc-aside-list { list-style: none; margin: 0.9rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.parc-aside-list a {
  display: grid;
  gap: 0.1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line-soft);
  border-left: 3px solid #4f46e5;
  border-radius: 7px;
  background: #fff;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.88rem;
}
.parc-aside-list a:hover { border-left-color: var(--copper); box-shadow: 0 6px 16px rgba(7,63,67,0.08); }
.parc-aside-list strong { color: var(--teal-deep); }
.parc-aside-list span { color: var(--slate); font-size: 0.78rem; }

/* ---- Podcast episode browser ---- */
.podcast-tools { max-width: 54rem; }
.episode-list { display: grid; gap: 0.85rem; margin: 1rem 0 0; padding: 0; list-style: none; max-width: 54rem; }
.episode {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-left: 4px solid #4f46e5;
  border-radius: 8px;
  padding: 1rem 1.2rem 1.1rem;
}
.episode[hidden] { display: none; }
.episode-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
  align-items: center;
  font-size: 0.72rem;
  color: var(--slate);
  font-weight: 700;
  text-transform: uppercase;
}
.episode-badge {
  background: #4f46e5;
  color: #fff;
  border-radius: 4px;
  padding: 0.12rem 0.5rem;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0;
}
.episode h3 { margin: 0.5rem 0 0.35rem; font-size: 1.12rem; }
.episode .episode-desc { margin: 0 0 0.75rem; font-size: 0.92rem; color: var(--slate); }
.episode audio { width: 100%; display: block; }
.episode-actions { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; margin: 0.65rem 0 0; font-size: 0.82rem; font-weight: 700; }

/* ---- PARC story (scroll-driven) ---- */
.story-wrap { max-width: 46rem; margin: 0 auto; }
.story-chapter { padding: 3.2rem 0 2.5rem; border-bottom: 1px solid var(--line-soft); }
.story-chapter:last-of-type { border-bottom: 0; }
.story-num {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 4.4rem;
  line-height: 1;
  color: #5f8f95; /* 3.6:1 on white — passes large-text contrast */
  margin-bottom: 0.4rem;
}
.story-chapter h2 { margin-bottom: 0.7rem; }
.story-quote {
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--teal-deep);
  border-left: 4px solid var(--copper);
  padding-left: 1.1rem;
  margin: 1.4rem 0 1.1rem;
  line-height: 1.32;
}
.story-source { font-size: 0.8rem; color: var(--slate); }
.story-source a { font-weight: 700; }
.story-js .story-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.story-js .story-reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .story-js .story-reveal { opacity: 1; transform: none; transition: none; }
}
.story-progress {
  position: fixed;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 0.2rem;
  z-index: 5;
}
.story-progress a {
  /* 24px hit target (WCAG 2.5.8) around a smaller visual dot */
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.story-progress a::after {
  content: "";
  width: 0.78rem;
  height: 0.78rem;
  border-radius: 50%;
  background: var(--sky-2);
  border: 1px solid var(--line);
  display: block;
}
.story-progress a.active::after { background: var(--copper); border-color: var(--copper); }

/* ---- Events ---- */
.event-cat {
  width: max-content;
  background: var(--sky);
  color: var(--teal-deep);
  border-radius: 3px;
  padding: 0.1rem 0.5rem;
  font-size: 0.64rem;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 0.3rem;
}
.event-card[hidden] { display: none; }
.event-card .event-actions { margin-top: 0.8rem; font-size: 0.88rem; font-weight: 700; display: flex; flex-wrap: wrap; gap: 0.55rem 0.7rem; align-items: center; }
.event-card .event-actions a {
  min-height: 2.35rem;
  display: inline-flex;
  align-items: center;
  color: var(--teal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.ics-btn {
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--teal-deep);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 2.35rem;
  padding: 0.42rem 0.78rem;
  cursor: pointer;
}
.ics-btn:hover { border-color: var(--teal); background: var(--sky); }

/* ---- Forms center ---- */
.view-tabs { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1.2rem 0 0; }
.view-tab {
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.55rem 1.05rem;
  border-radius: 8px 8px 0 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: var(--sand);
  color: var(--slate);
  cursor: pointer;
}
.view-tab[aria-pressed="true"] {
  background: #fff;
  color: var(--teal-deep);
  border-top: 3px solid var(--copper);
}
.view-panel { border: 1px solid var(--line); border-radius: 0 8px 8px 8px; background: #fff; padding: 1.3rem 1.4rem; }
.view-panel[hidden] { display: none; }
.table-scroll { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 42rem; }
.admin-table caption { text-align: left; font-weight: 700; color: var(--teal-deep); padding: 0 0 0.7rem; }
.admin-table th {
  text-align: left;
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--slate);
  padding: 0.55rem 0.85rem;
  border-bottom: 2px solid var(--line);
  background: var(--sand);
}
.admin-table td { padding: 0.65rem 0.85rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.status-chip { display: inline-block; border-radius: 999px; padding: 0.1rem 0.6rem; font-size: 0.72rem; font-weight: 800; white-space: nowrap; }
.status-new { background: var(--gold-soft); color: #5a4108; }
.status-review { background: var(--sky); color: var(--teal-deep); }
.status-assigned { background: #ece4f5; color: #43275f; }
.status-resolved { background: #eaf4ec; color: var(--moss-dk); }

/* ---- Spanish page ---- */
.lang-switch {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--teal-deep);
  font-weight: 800;
  font-size: 0.8rem;
  text-decoration: none;
  padding: 0.3rem 0.75rem;
}
.lang-switch:hover { background: var(--sky); }

@media (max-width: 880px) {
  .parc-intro-grid { grid-template-columns: 1fr; }
  .story-progress { display: none; }
  .map-pin { width: 2.1rem; height: 2.1rem; font-size: 0.8rem; }
}
@media (max-width: 520px) {
  .story-num { font-size: 3.4rem; }
  .story-quote { font-size: 1.18rem; }
  .view-panel { padding: 1.05rem; }
  .episode { padding: 0.9rem 1rem 1rem; }
}
