:root {
  --forest: #1f3d2b;
  --forest-dark: #162d1f;
  --river: #2f6f7e;
  --olive: #69784f;
  --paper: #f7f8f4;
  --surface: #ffffff;
  --surface-soft: #eef3e9;
  --ink: #1d2522;
  --muted: #5b6762;
  --line: #d9dfd2;
  --warning: #946200;
  --danger: #9f2f2f;
  --shadow: 0 8px 24px rgba(31, 61, 43, 0.08);
  --radius: 8px;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: contain;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 20;
  background: var(--forest);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

.pull-refresh-indicator {
  position: fixed;
  top: 0.45rem;
  left: 50%;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.34rem 0.85rem;
  border: 1px solid rgba(31, 61, 43, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(31, 61, 43, 0.14);
  color: var(--forest);
  font-size: 0.76rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -120%);
  transition: opacity 0.16s ease, transform 0.18s ease, background 0.16s ease;
}

.pull-refresh-indicator.visible {
  opacity: 1;
}

.pull-refresh-indicator.ready {
  background: var(--surface-soft);
}

.pull-refresh-indicator.holding {
  background: var(--surface-soft);
}

.pull-refresh-indicator.refreshing {
  background: var(--forest);
  color: #fff;
}

.volunteer-tab-description {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.registration-unavailable {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(247, 248, 244, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand img {
  width: min(190px, 56vw);
  max-height: 58px;
  height: auto;
  object-fit: contain;
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: var(--forest);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}

/* Universal search */
.global-search-page {
  width: min(1040px, 100%);
  margin: 0 auto;
}

.global-search-fixed {
  position: relative;
}

.global-search-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.global-search-close {
  display: none;
}

.global-search-scroll-region {
  min-width: 0;
}

.global-search-header {
  max-width: 720px;
  margin-bottom: 1.25rem;
}

.global-search-header h1 {
  margin: 0.12rem 0 0.35rem;
  color: var(--forest);
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.05;
}

.global-search-header p,
.search-result-meta,
.search-result-summary {
  color: var(--muted);
}

.global-search-form > label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--forest);
  font-weight: 800;
}

.global-search-input-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.45rem 0.45rem 0.45rem 0.8rem;
  border: 1px solid #bfcbbd;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.global-search-input-wrap:focus-within {
  border-color: var(--river);
  outline: 3px solid rgba(47, 111, 126, 0.18);
}

.global-search-input-wrap input {
  width: 100%;
  min-width: 0;
  padding: 0.65rem 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.05rem;
}

.global-search-input-wrap button {
  min-height: 42px;
  padding: 0.55rem 1rem;
  border: 0;
  border-radius: 6px;
  background: var(--forest);
  color: white;
  cursor: pointer;
  font-weight: 800;
}

.search-filters {
  margin: 0.85rem 0 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.search-filters summary {
  padding: 0.75rem 0.9rem;
  color: var(--forest);
  cursor: pointer;
  font-weight: 800;
}

.search-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  padding: 0 0.9rem 0.9rem;
  border-top: 1px solid var(--line);
}

.search-filter-grid > label,
.search-index-workbench label,
.search-index-workbench form {
  display: grid;
  gap: 0.3rem;
}

.search-filter-grid > label > span,
.search-index-workbench label > span {
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 800;
}

.search-filter-grid select,
.search-filter-grid input,
.search-index-workbench input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.search-filter-grid fieldset {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem 0.8rem;
  margin: 0.8rem 0 0;
  padding: 0;
  border: 0;
}

.search-filter-grid legend {
  margin-bottom: 0.35rem;
  color: var(--forest);
  font-weight: 800;
}

.search-check {
  display: flex !important;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.search-check input {
  width: 1rem;
  min-height: auto;
  accent-color: var(--forest);
}

.search-check span {
  min-width: 0;
  font-size: 0.85rem;
}

.search-check small {
  color: var(--muted);
}

.search-custom-dates {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.search-custom-dates.visible {
  display: grid;
}

.search-results-heading,
.search-group-heading,
.search-index-actions,
.search-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.search-results-heading h2,
.search-group-heading h2 {
  margin: 0;
  color: var(--forest);
}

.search-results-heading h2 {
  font-size: 1.15rem;
}

.search-result-groups {
  display: grid;
  gap: 1.5rem;
  margin-top: 1rem;
}

.search-group-heading {
  margin-bottom: 0.55rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--forest);
}

.search-group-heading h2 {
  font-size: 1.25rem;
}

.search-result-list {
  display: grid;
  gap: 0.55rem;
}

.search-result-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.search-result-card:hover {
  border-color: #b7c5b3;
  box-shadow: 0 6px 18px rgba(31, 61, 43, 0.08);
  transform: translateY(-1px);
}

.search-result-card > a {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  min-height: 88px;
  padding: 0.7rem;
  color: inherit;
  text-decoration: none;
}

.search-result-card > a:focus-visible {
  outline: 3px solid var(--river);
  outline-offset: -3px;
}

.search-result-image,
.search-result-icon {
  width: 72px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
}

.search-result-icon {
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  color: var(--forest);
}

.search-result-icon .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.search-result-copy {
  display: grid;
  min-width: 0;
}

.search-result-copy strong {
  color: var(--forest);
  font-size: 1rem;
  line-height: 1.25;
}

.search-result-type {
  color: var(--river);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.search-result-meta,
.search-result-summary {
  font-size: 0.82rem;
}

.search-result-arrow {
  color: var(--river);
}

.search-pagination {
  margin-top: 1rem;
}

.search-index-summary {
  margin: 1rem 0;
}

.search-index-actions {
  justify-content: flex-start;
  margin-bottom: 1rem;
}

.search-index-counts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.search-index-counts section,
.search-index-workbench {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.search-index-counts h4 {
  margin: 0 0 0.6rem;
}

.search-index-counts ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.search-index-counts li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--line);
}

.search-index-workbench {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.search-index-workbench form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.search-index-workbench pre {
  max-height: 300px;
  overflow: auto;
  margin: 0;
  padding: 0.8rem;
  border-radius: 6px;
  background: var(--forest-dark);
  color: white;
  font-size: 0.75rem;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 720px) {
  body.search-overlay-open {
    overscroll-behavior: none;
  }

  .global-search-page {
    position: fixed;
    top: var(--search-viewport-offset, 0px);
    right: 0;
    left: 0;
    z-index: 40;
    width: 100%;
    height: var(--search-viewport-height, 100dvh);
    margin: 0;
    background: var(--paper);
  }

  .global-search-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100%;
  }

  .global-search-fixed {
    z-index: 1;
    padding: max(0.75rem, env(safe-area-inset-top)) 1rem 0.8rem;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 8px 18px rgba(31, 61, 43, 0.06);
  }

  .global-search-header {
    margin-bottom: 0.65rem;
  }

  .global-search-header h1 {
    font-size: 1.45rem;
    line-height: 1.12;
  }

  .global-search-header p {
    display: none;
  }

  .global-search-close {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    margin: -0.25rem -0.25rem 0 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--forest);
  }

  .global-search-close .icon {
    width: 1.2rem;
    height: 1.2rem;
  }

  .global-search-scroll-region {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 0.8rem 1rem calc(1.5rem + env(safe-area-inset-bottom));
  }

  .global-search-input-wrap {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding-right: 0.35rem;
  }

  .global-search-input-wrap button {
    grid-column: auto;
    width: auto;
    min-height: 40px;
    padding: 0.45rem 0.72rem;
  }

  .search-filter-grid,
  .search-index-counts {
    grid-template-columns: 1fr;
  }

  .search-filter-grid fieldset {
    grid-template-columns: 1fr 1fr;
  }

  .search-custom-dates {
    grid-template-columns: 1fr;
  }

  .search-results-heading,
  .search-group-heading {
    align-items: flex-start;
  }

  .search-result-card > a {
    grid-template-columns: 52px minmax(0, 1fr) auto;
  }

  .search-result-image,
  .search-result-icon {
    width: 52px;
    height: 52px;
  }

  .search-result-summary {
    display: none;
  }

  .search-index-workbench form {
    grid-template-columns: 1fr;
  }
}

.icon {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
}

.page-shell {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 1.2rem 0 4rem;
}

.place-header {
  padding: clamp(2rem, 8vw, 4.5rem) 0 1.4rem;
  scroll-margin-top: 96px;
}

.platform-beta-chip {
  border: 1px solid rgba(37, 126, 142, 0.22);
  border-radius: 999px;
  color: var(--river);
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
  padding: 0.12rem 0.45rem;
  text-transform: uppercase;
}

.eyebrow,
.card-label {
  color: var(--river);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 0.85rem;
  font-size: clamp(2.2rem, 12vw, 5rem);
  line-height: 1;
  letter-spacing: 0;
}

.place-header p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.status-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin: 0.8rem 0 1.3rem;
}

.status-card,
.hub-card,
.content-card,
.org-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.status-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 0.8rem;
  padding: 1rem;
}

.status-card h2 {
  margin: 0.1rem 0 0;
  font-size: 1rem;
}

.status-card p,
.status-card small {
  grid-column: 1 / -1;
}

.status-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.status-card small {
  color: var(--muted);
  font-size: 0.78rem;
}

.status-pill {
  align-self: start;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--forest);
  font-size: 0.74rem;
  font-weight: 800;
}

.status-watch,
.status-delay {
  background: #fff4d8;
  color: var(--warning);
}

.section,
.section-tight,
.portal {
  padding: 2rem 0 0;
}

.section-heading {
  margin-bottom: 1rem;
}

.section-heading h2,
.portal-header h2 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.45rem, 5vw, 2.2rem);
}

.section-heading p,
.portal-header p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
}

.updates-list {
  display: grid;
  gap: 0.8rem;
}

.hub-grid,
.content-grid,
.org-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.hub-card {
  display: grid;
  gap: 0.95rem;
  padding: 1rem;
}

.hub-card h3 {
  margin: 0.1rem 0 0.35rem;
  font-size: 1.2rem;
}

.hub-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.mini-list {
  display: grid;
  gap: 0.32rem;
  color: #263832;
  font-size: 0.88rem;
}

.mini-list span,
.mini-list-link {
  display: block;
  min-height: 1.65rem;
  padding: 0.32rem 0.55rem 0.32rem 0.72rem;
  border-left: 3px solid rgba(43, 111, 90, 0.42);
  border-radius: 5px;
  background: rgba(237, 241, 233, 0.92);
  box-shadow: inset 0 0 0 1px rgba(31, 61, 43, 0.08);
  line-height: 1.25;
}

.card-link,
.text-link,
.portal-home-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  color: var(--forest);
  font-weight: 800;
  text-decoration: none;
}

.card-link {
  min-height: 42px;
}

.portal {
  scroll-margin-top: 88px;
}

.portal-header {
  display: grid;
  gap: 0.8rem;
  padding: 1.25rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.portal-tools {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 0.85rem 0;
}

.portal-tools label {
  display: grid;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.portal-tools input,
.portal-tools select {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.date-filter-control {
  position: relative;
  display: block;
}

.date-filter-control input {
  padding-right: 2.7rem;
}

.date-filter-clear {
  position: absolute;
  right: 0.38rem;
  top: 50%;
  width: 32px;
  height: 32px;
  transform: translateY(-50%);
  color: var(--forest);
  background: rgba(31, 61, 43, 0.08);
  border: 0;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.date-filter-clear:hover,
.date-filter-clear:focus-visible {
  background: rgba(31, 61, 43, 0.16);
}

.content-card {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  border-left: 4px solid var(--river);
  min-width: 0;
  overflow: hidden;
}

.content-alert {
  border-left-color: var(--danger);
}

.content-condition {
  border-left-color: var(--warning);
}

.content-card-compact {
  border-left-color: var(--danger);
}

.content-card-top,
.meta-row,
.tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.type-chip,
.severity-chip,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--forest);
  font-size: 0.74rem;
  font-weight: 800;
}

.severity-chip {
  background: #fff4d8;
  color: var(--warning);
}

.content-card h3,
.org-card h3 {
  margin-bottom: 0;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
  word-break: normal;
}

.content-card p,
.org-card p {
  margin-bottom: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: normal;
}

.source-line {
  font-size: 0.86rem;
  font-weight: 700;
}

.meta-row {
  color: var(--muted);
  font-size: 0.84rem;
}

.meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.content-card .text-link,
.content-card .source-line {
  min-width: 0;
  overflow-wrap: anywhere;
}

.content-title-link {
  color: inherit;
  text-decoration-color: rgba(31, 61, 43, 0.35);
  text-underline-offset: 0.16em;
}

.content-card .source-link {
  color: var(--forest);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration-color: rgba(31, 61, 43, 0.35);
  text-underline-offset: 0.16em;
}

.text-button {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0;
  color: var(--forest);
  background: transparent;
  border: 0;
  font-weight: 850;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(31, 61, 43, 0.3);
  text-underline-offset: 0.18em;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  color: #ffffff;
  background: var(--forest);
  border: 1px solid var(--forest);
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.primary-action:disabled {
  opacity: 0.65;
  cursor: wait;
}

.org-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

@media (min-width: 700px) {
  .site-header {
    padding: 0.85rem max(1.5rem, calc((100vw - 1120px) / 2));
  }

  .brand img {
    width: 230px;
    max-height: 66px;
  }

  .page-shell {
    padding-top: 2rem;
  }

  .status-grid,
  .portal-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-grid,
  .content-grid,
  .org-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-header {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

@media (min-width: 980px) {
  .hub-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .content-grid,
  .org-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Home dashboard visual pass */
:root {
  --navy: #071d3a;
  --blue-link: #0058c7;
  --sky: #6ec6ea;
  --orange: #f05a1a;
  --green: #2b9348;
  --purple: #7e4bb5;
  --teal: #178f9c;
  --magenta: #c12a71;
  --soft-line: #d7dee8;
}

body {
  background: #ffffff;
  color: var(--navy);
}

.site-header {
  min-height: 82px;
  padding: 1rem max(1.1rem, env(safe-area-inset-left));
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--soft-line);
}

.brand-wordmark {
  gap: 0.7rem;
  color: var(--navy);
  text-decoration: none;
  text-transform: uppercase;
}

.brand-wordmark span:last-child {
  display: grid;
  gap: 0.03rem;
  line-height: 1;
}

.brand-wordmark small {
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.brand-wordmark strong {
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.brand-waves {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--sky);
}

.brand-waves .icon {
  width: 42px;
  height: 42px;
  stroke-width: 2.8;
}

.icon-button {
  width: 44px;
  height: 44px;
  color: var(--navy);
  background: transparent;
  border: 0;
  border-radius: 8px;
}

.icon-button .icon {
  width: 1.75rem;
  height: 1.75rem;
}

.page-shell {
  width: min(1120px, calc(100% - 36px));
  padding-top: 1.35rem;
}

.overview {
  display: grid;
  gap: 1.15rem;
  align-items: center;
  padding: 0.3rem 0 0.65rem;
  scroll-margin-top: 100px;
}

.place-header {
  padding: 0;
  scroll-margin-top: 100px;
}

.place-header h1 {
  max-width: 8ch;
  margin: 0 0 0.35rem;
  color: var(--navy);
  font-size: clamp(3rem, 17vw, 5.1rem);
  font-weight: 800;
  line-height: 0.98;
}

.place-header p {
  max-width: none;
  margin: 0 0 1.35rem;
  color: var(--navy);
  font-size: clamp(1.35rem, 7vw, 2.1rem);
  font-weight: 700;
  line-height: 1.15;
}

.place-date {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--navy);
  font-weight: 600;
}

.place-date .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.status-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
}

.status-card {
  min-height: 198px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1rem 0.7rem;
  text-align: center;
  border-color: var(--soft-line);
  border-radius: 16px;
  box-shadow: none;
}

.status-river {
  border-color: #b9dcc3;
}

.status-icon {
  color: var(--navy);
}

.status-icon .icon {
  width: 2.4rem;
  height: 2.4rem;
}

.sun-icon {
  color: #ffb000;
}

.river-icon {
  order: 5;
  color: #70c4d7;
}

.status-river::before {
  content: "";
  width: 1.6rem;
  height: 1.6rem;
  margin-bottom: 0.3rem;
  border-radius: 50%;
  background: #35ad50;
  box-shadow: inset 0 0 0 2px rgba(7, 29, 58, 0.08);
}

.status-card .card-label {
  color: var(--navy);
  font-size: 0.8rem;
}

.status-river .card-label {
  color: #106f2c;
}

.status-card h2 {
  color: var(--navy);
  font-size: clamp(1.45rem, 8vw, 3rem);
  line-height: 1;
}

.status-river h2 {
  max-width: 7ch;
  font-size: clamp(1rem, 5.8vw, 1.6rem);
  line-height: 1.05;
}

.status-card p {
  color: var(--navy);
  font-size: 0.9rem;
}

.weather-range {
  display: flex;
  gap: 0.85rem;
  color: var(--navy);
  font-size: 0.78rem;
}

.weather-range strong {
  color: var(--blue-link);
}

.weather-range span:first-child strong {
  color: #e43715;
}

.status-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.35rem;
  color: var(--blue-link);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.status-river .status-link {
  color: #10732f;
}

.status-link .icon {
  width: 0.9rem;
  height: 0.9rem;
}

.updates-panel {
  margin-top: 1rem;
  padding: 1.05rem 1rem 0.45rem;
  background: #fffaf8;
  border: 1px solid #f4cbbd;
  border-radius: 16px;
}

.updates-panel .section-heading {
  margin-bottom: 0.35rem;
}

.updates-panel h2 {
  color: #f02a13;
  font-size: 1rem;
  text-transform: uppercase;
}

.updates-list {
  gap: 0;
}

.update-row {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  gap: 0.7rem;
  align-items: center;
  min-height: 58px;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  border-top: 1px solid #f2d7ce;
}

.update-row:first-child {
  border-top: 0;
}

.update-icon {
  display: inline-grid;
  place-items: center;
  color: var(--orange);
}

.update-icon .icon {
  width: 1.6rem;
  height: 1.6rem;
  fill: var(--orange);
  stroke: white;
}

.update-row > .icon {
  color: var(--navy);
}

.section {
  padding-top: 2.25rem;
}

.hub-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hub-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hub-heading a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--blue-link);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.hub-grid {
  gap: 0.75rem;
}

.hub-card {
  min-height: 230px;
  align-content: start;
  gap: 0.85rem;
  padding: 1rem;
  border-color: var(--soft-line);
  border-radius: 16px;
  box-shadow: none;
}

.hub-card-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  min-width: 0;
}

.hub-card-main > div:last-child,
.hub-card h3,
.hub-card .card-label,
.mini-list,
.mini-list span,
.card-link {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.hub-icon {
  display: inline-grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  color: #ffffff;
  border-radius: 50%;
  background: var(--river);
  box-shadow: inset 0 0 0 2px rgba(7, 29, 58, 0.1), 0 2px 5px rgba(7, 29, 58, 0.12);
}

.hub-icon .icon {
  width: 1.8rem;
  height: 1.8rem;
}

.hub-news {
  background: var(--purple);
}

.hub-volunteer {
  background: var(--green);
}

.hub-municipal {
  background: var(--teal);
}

.hub-transportation {
  background: var(--blue-link);
}

.hub-arts {
  background: var(--magenta);
}

.hub-elections {
  background: #1d73c9;
}

.hub-card .card-label {
  color: var(--navy);
  font-size: 0.88rem;
}

.hub-card h3 {
  margin: 0.25rem 0 0;
  color: var(--blue-link);
  font-size: clamp(1.2rem, 5vw, 1.65rem);
  line-height: 1.1;
}

.hub-volunteer + div h3,
.hub-card:has(.hub-volunteer) h3 {
  color: var(--green);
}

.hub-card:has(.hub-municipal) h3 {
  color: var(--teal);
}

.hub-card:has(.hub-transportation) h3,
.hub-card:has(.hub-elections) h3 {
  color: var(--blue-link);
}

.hub-card:has(.hub-news) h3 {
  color: var(--purple);
}

.hub-stat-label {
  display: inline;
  margin-left: 0.35rem;
  color: var(--navy) !important;
  font-weight: 500;
}

.mini-list {
  padding-left: calc(3.25rem + 0.8rem);
  gap: 0.28rem;
  color: var(--navy);
  font-size: 0.86rem;
}

.mini-list span {
  position: relative;
  padding-left: 0.85rem;
  border-left: 0;
}

.mini-list span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.22rem;
  height: 0.22rem;
  border-radius: 50%;
  background: currentColor;
}

.card-link {
  margin-left: calc(3.25rem + 0.8rem);
  min-height: auto;
  color: var(--blue-link);
  font-weight: 800;
  white-space: normal;
}

.card-link .icon {
  width: 0.9rem;
  height: 0.9rem;
}

@media (min-width: 380px) {
  .hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .site-header {
    min-height: 104px;
    padding: 1.3rem max(2.3rem, calc((100vw - 1120px) / 2));
  }

  .brand-waves,
  .brand-waves .icon {
    width: 50px;
    height: 50px;
  }

  .brand-wordmark small {
    font-size: 1rem;
  }

  .brand-wordmark strong {
    font-size: 1.55rem;
  }

  .page-shell {
    width: min(1120px, calc(100% - 74px));
    padding-top: 1.8rem;
  }

  .overview {
    grid-template-columns: 1fr minmax(330px, 0.9fr);
    gap: 2.2rem;
  }

  .status-grid {
    gap: 1rem;
  }

  .status-card {
    min-height: 248px;
    padding: 1.2rem;
  }

  .updates-panel {
    margin-top: 1.4rem;
    padding: 1.25rem 1.6rem 0.75rem;
  }

  .update-row {
    min-height: 72px;
    grid-template-columns: 2.4rem 1fr auto;
    font-size: 1.05rem;
  }

  .hub-grid {
    gap: 1rem;
  }

  .hub-card {
    min-height: 280px;
    padding: 1.25rem;
  }

  .hub-icon {
    width: 4rem;
    height: 4rem;
  }

  .hub-icon .icon {
    width: 2.2rem;
    height: 2.2rem;
  }

  .mini-list,
  .card-link {
    margin-left: calc(4rem + 0.8rem);
    padding-left: 0;
  }
}

/* Portal framework */
.portal-page {
  padding-top: 1.1rem;
}

.portal-page .portal-header {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(31, 61, 43, 0.14);
  box-shadow: none;
}

.portal-page .portal-header h2 {
  color: var(--forest);
  font-size: clamp(1.65rem, 8vw, 2.6rem);
  line-height: 1;
}

.portal-page .portal-home-link {
  color: var(--river);
  font-size: 0.9rem;
}

.portal-tools {
  margin: 1rem 0;
}

.portal-tools input,
.portal-tools select {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(31, 61, 43, 0.16);
}

.content-grid {
  gap: 0.85rem;
}

.content-card {
  box-shadow: none;
  border-color: rgba(31, 61, 43, 0.14);
  border-radius: 12px;
}

.content-card h3 {
  color: var(--forest);
}

.content-article,
.content-condition {
  border-left-color: var(--river);
}

.content-event,
.content-resource {
  border-left-color: var(--olive);
}

.content-announcement {
  border-left-color: #2a8a8f;
}

.portal-state {
  display: grid;
  gap: 0.35rem;
  place-items: start;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 61, 43, 0.14);
  border-radius: 12px;
}

.portal-state h3,
.portal-state h2,
.portal-state p {
  margin-bottom: 0;
}

.portal-state p {
  color: var(--muted);
}

.municipal-date-group {
  margin-top: 1.5rem;
}

.municipal-date-group > h3 {
  margin: 0 0 0.7rem;
  color: var(--green);
  font-size: 1rem;
}

.municipal-filter-panel {
  justify-self: start;
  width: fit-content;
  max-width: 100%;
}

.municipal-filter-panel[open] {
  width: 100%;
}

.municipal-archive {
  margin-top: 2rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbf8;
}

.municipal-archive > summary {
  cursor: pointer;
  color: var(--green);
  font-weight: 800;
}

.municipal-archive > p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.portal-state-error {
  border-color: rgba(159, 47, 47, 0.25);
}

.river-portal {
  display: grid;
  gap: 1rem;
}

.river-context-note {
  padding: 0.8rem 1rem;
  color: var(--muted);
  background: rgba(47, 111, 126, 0.08);
  border: 1px solid rgba(47, 111, 126, 0.14);
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.river-section {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 61, 43, 0.14);
  border-radius: 12px;
}

.river-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.river-section-heading h3,
.river-current-card h3,
.river-observation-card h4 {
  margin-bottom: 0;
  color: var(--forest);
}

.river-current-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface);
  border-left: 5px solid var(--river);
  border-radius: 10px;
}

.river-current-card.status-state-normal {
  border-left-color: var(--olive);
}

.river-current-card.status-state-advisory,
.river-current-card.status-state-warning {
  border-left-color: var(--warning);
}

.river-current-card.status-state-critical {
  border-left-color: var(--danger);
}

.river-current-card p,
.river-observation-card p,
.river-section > p {
  margin-bottom: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.river-confidence {
  display: grid;
  gap: 0.2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.river-confidence strong {
  color: var(--forest);
  text-transform: capitalize;
}

.river-reason-list {
  display: grid;
  gap: 0.55rem;
  padding-left: 1.1rem;
  color: var(--ink);
}

.river-observation-list {
  display: grid;
  gap: 0.8rem;
}

.river-observation-card {
  display: grid;
  gap: 0.8rem;
  padding: 0.95rem;
  background: var(--surface);
  border: 1px solid rgba(31, 61, 43, 0.12);
  border-radius: 10px;
}

.river-metric-grid,
.river-ops-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.river-metric {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
  padding: 0.6rem;
  background: rgba(31, 61, 43, 0.06);
  border-radius: 8px;
}

.river-metric span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.river-metric strong {
  color: var(--forest);
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}

.river-source-grid {
  display: grid;
  gap: 0.55rem;
}

.river-resource-list {
  display: grid;
  gap: 0.75rem;
}

.river-resource-card {
  display: grid;
  gap: 0.6rem;
  padding: 0.9rem;
  background: var(--surface);
  border: 1px solid rgba(31, 61, 43, 0.12);
  border-radius: 10px;
}

.river-resource-card h4,
.river-resource-card p {
  margin-bottom: 0;
}

.river-resource-card h4 {
  color: var(--forest);
}

.river-resource-card p,
.river-resource-note,
.river-resource-unavailable {
  color: var(--muted);
}

.river-resource-note,
.river-resource-unavailable {
  font-size: 0.88rem;
  font-weight: 700;
}

.river-source-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  color: var(--forest);
  background: var(--surface);
  border: 1px solid rgba(31, 61, 43, 0.12);
  border-radius: 9px;
  font-weight: 800;
  text-decoration: none;
}

.river-source-link:hover,
.river-source-link:focus-visible {
  border-color: rgba(47, 111, 126, 0.35);
}

.volunteer-portal {
  display: grid;
  gap: 1rem;
}

.volunteer-portal-header h2 {
  color: var(--forest);
}

.volunteer-portal-header p {
  color: var(--muted);
  font-weight: 800;
}

.volunteer-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.volunteer-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  padding: 0.45rem 0.75rem;
  color: var(--forest);
  background: var(--surface);
  border: 1px solid rgba(31, 61, 43, 0.16);
  border-radius: 999px;
  font-weight: 850;
}

.volunteer-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  min-height: 1.35rem;
  padding: 0 0.3rem;
  color: var(--surface);
  background: var(--river);
  border-radius: 999px;
  font-size: 0.72rem;
}

.municipal-tab-unseen {
  flex: 0 0 auto;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 2px var(--surface);
}

.municipal-tabs .volunteer-tab.active .municipal-tab-unseen {
  background: #f2bd5e;
  box-shadow: 0 0 0 2px var(--forest);
}

.volunteer-tab-label-short { display: none; }

.volunteer-tab.active {
  color: var(--surface);
  background: var(--forest);
  border-color: var(--forest);
}

.volunteer-tab.active .volunteer-tab-count {
  color: var(--forest);
  background: var(--surface);
}

.volunteer-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: start;
}

.volunteer-search-field {
  position: relative;
  display: block;
  width: min(100%, 18rem);
  transition: width 160ms ease;
}

.volunteer-search-field:focus-within {
  width: min(100%, 34rem);
}

.volunteer-search-field .icon {
  position: absolute;
  left: 0.82rem;
  top: 50%;
  width: 1rem;
  height: 1rem;
  color: var(--river);
  transform: translateY(-50%);
  pointer-events: none;
}

.volunteer-search-field input {
  min-height: 2.55rem;
  padding-left: 2.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;
}

.volunteer-search-note {
  margin: -0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.volunteer-filter-panel {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(31, 61, 43, 0.14);
  border-radius: 999px;
  padding: 0;
  flex: 0 0 auto;
}

.volunteer-filter-panel[open] {
  flex-basis: 100%;
  border-radius: 14px;
}

.volunteer-filter-panel summary {
  display: flex;
  align-items: center;
  min-height: 2.55rem;
  padding: 0 0.9rem;
  color: var(--forest);
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.volunteer-filter-panel summary::-webkit-details-marker {
  display: none;
}

.volunteer-filter-grid {
  display: grid;
  gap: 0.7rem;
  width: 100%;
  padding: 0 0.85rem 0.85rem;
  background: #fff;
}

.volunteer-clear-filters {
  justify-self: start;
}

.volunteer-view-toggle {
  display: inline-flex;
  justify-self: start;
  width: fit-content;
  padding: 0.18rem;
  background: var(--surface);
  border: 1px solid rgba(31, 61, 43, 0.14);
  border-radius: 999px;
}

.volunteer-view-toggle button {
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  color: var(--forest);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-weight: 850;
}

.volunteer-view-toggle button.active {
  color: var(--surface);
  background: var(--forest);
}

.volunteer-date-search {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.55rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.65rem;
  background: #ffffff;
  border: 1px solid rgba(31, 61, 43, 0.12);
  border-radius: 12px;
}

.volunteer-date-search label {
  display: grid;
  gap: 0.22rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.volunteer-date-search input {
  min-height: 2.25rem;
  padding: 0.45rem 0.55rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid rgba(31, 61, 43, 0.16);
  border-radius: 8px;
  font-weight: 800;
}

.volunteer-calendar-view {
  display: grid;
  gap: 1rem;
}

.volunteer-calendar-month {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid rgba(31, 61, 43, 0.12);
  border-radius: 14px;
}

.volunteer-calendar-month h3 {
  margin: 0;
  color: var(--forest);
  font-size: 1rem;
}

.volunteer-calendar-header {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr) 2.2rem;
  align-items: center;
  gap: 0.5rem;
}

.volunteer-calendar-header h3 {
  text-align: center;
}

.volunteer-calendar-header button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  color: var(--forest);
  background: var(--surface);
  border: 1px solid rgba(31, 61, 43, 0.14);
  border-radius: 999px;
  font-size: 1.35rem;
  font-weight: 900;
}

.volunteer-calendar-header button:hover,
.volunteer-calendar-header button:focus-visible {
  border-color: rgba(47, 111, 126, 0.35);
  outline: 2px solid rgba(47, 111, 126, 0.2);
  outline-offset: 1px;
}

.volunteer-calendar-weekdays,
.volunteer-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.volunteer-calendar-weekdays span {
  padding: 0 0.35rem 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.volunteer-calendar-day {
  min-height: 7.5rem;
  padding: 0.45rem;
  background: rgba(246, 248, 244, 0.68);
  border: 1px solid rgba(31, 61, 43, 0.1);
}

.volunteer-calendar-day.is-empty {
  background: transparent;
  border-color: transparent;
}

.volunteer-calendar-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.45rem;
  min-height: 1.45rem;
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 900;
}

.volunteer-calendar-events {
  display: grid;
  gap: 0.28rem;
  margin-top: 0.25rem;
}

.volunteer-calendar-event {
  width: 100%;
  padding: 0.28rem 0.35rem;
  overflow: hidden;
  color: var(--forest);
  background: #ffffff;
  border: 1px solid rgba(31, 61, 43, 0.12);
  border-left: 3px solid rgba(47, 111, 126, 0.6);
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 800;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.volunteer-calendar-event:hover,
.volunteer-calendar-event:focus-visible {
  border-color: rgba(47, 111, 126, 0.34);
  outline: 2px solid rgba(47, 111, 126, 0.2);
  outline-offset: 1px;
}

.volunteer-calendar-more {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.volunteer-filter-grid label,
.registration-form label {
  display: grid;
  gap: 0.25rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.volunteer-filter-grid select,
.registration-form input,
.registration-form textarea {
  width: 100%;
  min-height: 2.65rem;
  padding: 0.6rem 0.7rem;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(31, 61, 43, 0.18);
  border-radius: 8px;
  font-weight: 600;
}

.sports-portal .portal-header p {
  max-width: 580px;
}

.sports-tabs {
  overflow-x: auto;
  padding-bottom: 0.15rem;
}

.sports-tabs .volunteer-tab {
  white-space: nowrap;
}

.sports-card .source-line {
  margin-bottom: 0.35rem;
}

.sports-card-river-hawks-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.5rem;
  padding: 0.35rem;
  background: #fff;
  border-bottom: 1px solid rgba(31, 61, 43, 0.1);
}

.sports-card-river-hawks-logo img {
  display: block;
  width: auto;
  max-width: min(100%, 10rem);
  height: auto;
  max-height: 4rem;
  object-fit: contain;
}

.sports-card .meta-row {
  align-items: flex-start;
}

.sports-card .text-link {
  margin-top: 0.35rem;
}

.sports-filter-grid {
  grid-template-columns: 1fr;
}

.volunteer-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.volunteer-register-button {
  color: var(--river);
}

.volunteer-card-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.volunteer-card-heading .content-card-top {
  flex: 1 1 auto;
}

.volunteer-org-logo {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  flex: 0 0 3rem;
  overflow: hidden;
  color: var(--forest);
  background: var(--surface-soft);
  border: 1px solid rgba(31, 61, 43, 0.14);
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 900;
}

.volunteer-org-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.detail-logo-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-right: 3rem;
  color: var(--forest);
  font-weight: 900;
}

.detail-modal {
  width: min(100%, 760px);
}

.detail-navigation {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  box-sizing: border-box;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0.55rem;
  background: rgba(247, 248, 244, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.detail-navigation-back {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.3rem;
  color: var(--river);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 850;
  cursor: pointer;
}

.detail-navigation-back .icon { width: 1rem; height: 1rem; }
.detail-navigation-back:hover { color: var(--forest); }
.detail-navigation-back:focus-visible { outline: 3px solid rgba(45, 129, 150, 0.55); outline-offset: 2px; }
.detail-navigation-section { min-width: 0; overflow: hidden; color: var(--muted); font-size: 0.75rem; font-weight: 850; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.municipal-detail > .detail-navigation { top: 96px; }
.event-detail-page > .detail-navigation,
.organization-detail-page > .detail-navigation,
.volunteer-org-profile > .detail-navigation { top: 96px; }
.detail-modal > .detail-navigation { margin: -0.4rem -0.4rem 0; }
.civic-quickview-modal .municipal-detail > .detail-navigation { top: 0; }
.detail-modal .detail-logo-row,
.detail-modal .volunteer-detail h3 { padding-right: 0; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.breadcrumbs a {
  color: var(--river);
  text-decoration: none;
}

.volunteer-detail {
  display: grid;
  gap: 1rem;
}

.volunteer-parent-page {
  max-width: 980px;
  margin-inline: auto;
}

.volunteer-parent-page-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 220px);
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid rgba(31, 61, 43, 0.14);
  border-radius: 12px;
}

.volunteer-parent-page-copy {
  min-width: 0;
}

.volunteer-parent-page-copy h2 {
  margin: 0.35rem 0;
  color: var(--forest);
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  line-height: 1.08;
}

.volunteer-parent-page-copy p {
  margin: 0.75rem 0;
  color: var(--muted);
}

.volunteer-parent-page-image {
  display: grid;
  place-items: center;
  min-height: 150px;
}

.volunteer-parent-page-image img {
  display: block;
  width: 100%;
  max-height: 190px;
  object-fit: contain;
}

.volunteer-parent-card-image {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
}

.volunteer-parent-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.volunteer-detail-header {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
  background: var(--surface);
  border: 1px solid rgba(31, 61, 43, 0.14);
  border-radius: 12px;
}

.volunteer-detail-header h3 {
  margin-bottom: 0.45rem;
  color: var(--forest);
  font-size: clamp(1.5rem, 7vw, 2.35rem);
  line-height: 1.05;
}

.volunteer-detail-header p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.volunteer-detail-grid {
  display: grid;
  gap: 0.85rem;
}

.volunteer-detail-list {
  display: grid;
  gap: 0.65rem;
}

.volunteer-detail-list div {
  display: grid;
  gap: 0.1rem;
}

.volunteer-detail-list span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.volunteer-detail-list strong {
  color: var(--ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.event-detail-page .volunteer-detail-list {
  gap: 0.9rem;
}

.event-detail-page .volunteer-detail-list div {
  gap: 0.2rem;
}

.event-detail-page .volunteer-detail-list span {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
}

.event-detail-page .volunteer-detail-list strong {
  font-weight: 400;
  line-height: 1.5;
  white-space: pre-line;
}

.organization-detail-page .volunteer-detail-list {
  gap: 0.9rem;
}

.organization-detail-page .volunteer-detail-list div {
  gap: 0.2rem;
}

.organization-detail-page .volunteer-detail-list span {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
}

.organization-detail-page .volunteer-detail-list strong {
  font-weight: 400;
  line-height: 1.5;
}

.organization-detail-page .volunteer-detail-list a {
  color: var(--river);
  font-weight: 650;
}

.organization-detail-logo {
  display: grid;
  place-items: center;
  grid-template-rows: minmax(0, 1fr);
  width: min(100%, 220px);
  height: 130px;
  justify-self: end;
}

.organization-detail-logo img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
}

.organization-details-panel h3,
.organization-about-panel h3,
.resource-description-panel h3,
.resource-details-panel h3,
.resource-provider-panel h3,
.resource-source-panel h3 {
  margin: 0;
  color: var(--forest);
  font-size: 1.05rem;
}

.organization-related-section {
  display: grid;
  gap: 0.75rem;
}

.organization-related-section .section-heading h3 {
  margin: 0;
}

.volunteer-role-detail-page .event-detail-hero {
  grid-template-columns: minmax(0, 1fr);
}

.volunteer-role-details-panel h3,
.volunteer-role-organization-panel h3 {
  margin: 0;
  color: var(--forest);
  font-size: 1.05rem;
}

.volunteer-detail-tags {
  padding: 0 0.1rem;
}

.volunteer-parent-page .grouped-volunteer-roles {
  margin-top: 1.25rem;
}

.event-detail-page {
  max-width: 980px;
  margin-inline: auto;
}

.event-detail-panel {
  display: grid;
  gap: 1rem;
}

.event-detail-hero {
  display: grid;
  gap: 1rem;
}

.event-detail-summary {
  display: grid;
  gap: 1rem;
}

.event-detail-image-preview {
  display: grid;
  place-items: center;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.5rem;
  width: 100%;
  height: clamp(12rem, 45vw, 18rem);
  padding: 0.65rem;
  background: rgba(31, 61, 43, 0.06);
  border: 1px solid rgba(31, 61, 43, 0.14);
  border-radius: 12px;
  color: var(--forest);
  cursor: pointer;
}

.event-detail-image-preview img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.event-detail-image-preview span {
  font-size: 0.78rem;
  font-weight: 850;
}

.event-detail-body {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(31, 61, 43, 0.14);
  border-radius: 12px;
}

.event-detail-body h2 {
  margin: 0;
  max-width: 780px;
  color: var(--forest);
  font-size: clamp(1.8rem, 7vw, 3.2rem);
  line-height: 1.02;
}

.event-detail-meta {
  font-size: 0.95rem;
}

.event-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.share-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
}

.share-action .icon {
  width: 1rem;
  height: 1rem;
}

.share-overlay {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.share-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(11, 24, 18, 0.68);
}

.share-modal {
  position: relative;
  display: grid;
  gap: 0.9rem;
  width: min(100%, 28rem);
  padding: 1.25rem;
  background: #fff;
  border: 1px solid rgba(31, 61, 43, 0.16);
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(11, 24, 18, 0.32);
}

.share-modal h2,
.share-modal p {
  margin: 0;
}

.share-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
}

.share-actions {
  display: grid;
  gap: 0.6rem;
  justify-items: start;
}

.share-status {
  min-height: 1.25rem;
  color: var(--forest);
  font-weight: 700;
}

.news-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: 0.75rem;
  align-items: end;
  margin: 0 0 0.75rem;
}

.news-filter-grid label {
  display: grid;
  gap: 0.35rem;
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 800;
}

.news-filter-grid input,
.news-filter-grid select {
  min-height: 2.75rem;
}

.news-search-note {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.event-detail-actions .calendar-download-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

button.calendar-download-link {
  appearance: none;
  padding: 0;
  color: var(--teal);
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button.calendar-download-link:disabled {
  cursor: wait;
  opacity: 0.72;
}

.event-detail-description {
  max-width: 760px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  white-space: pre-line;
}

.event-timeslot-list {
  display: grid;
  gap: 0.55rem;
}

.event-timeslot-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
}

.event-timeslot-list > div:first-child {
  padding-top: 0;
  border-top: 0;
}

.event-timeslot-list span {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem;
}

@media (max-width: 540px) {
  .event-timeslot-list > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .event-timeslot-list span {
    justify-content: flex-start;
  }
}

.event-source-link {
  justify-self: start;
}

.event-image-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1rem;
  overflow: hidden;
}

.event-image-overlay[hidden] {
  display: none !important;
}

.event-image-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 24, 18, 0.72);
  border: 0;
}

.event-image-modal {
  position: relative;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: auto;
  max-width: min(100%, 980px);
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  padding: 1rem;
  overflow: hidden;
  background: #f8faf6;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(11, 24, 18, 0.34);
}

.event-image-modal img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 4rem);
  max-height: calc(100dvh - 4rem);
  object-fit: contain;
}

.event-image-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.92);
}

@media (min-width: 760px) {
  .event-detail-hero {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 32%);
    align-items: start;
  }

  .organization-detail-page .event-detail-hero:not(.organization-detail-hero-has-logo) {
    grid-template-columns: minmax(0, 1fr);
  }
}

.related-opportunity-list {
  display: grid;
  gap: 0.65rem;
}

.related-opportunity-card {
  display: grid;
  gap: 0.65rem;
  align-items: center;
  width: 100%;
  padding: 0.85rem;
  background: var(--surface);
  border: 1px solid rgba(31, 61, 43, 0.14);
  border-radius: 12px;
}

.related-opportunity-card span {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--river);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.related-opportunity-card h4 {
  margin: 0;
  color: var(--forest);
  font-size: 1rem;
  line-height: 1.25;
}

.hub-card .hub-card-header-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.hub-card .hub-card-header-arrow {
  display: inline-grid;
  place-items: center;
  color: var(--river);
  opacity: 0.95;
}

.hub-card .hub-card-header-arrow .icon {
  width: 1rem;
  height: 1rem;
}

.hub-card .hub-card-header-link:hover .hub-card-header-arrow,
.hub-card .hub-card-header-link:focus-visible .hub-card-header-arrow {
  transform: translateX(2px);
}

.hub-card .card-link {
  display: none;
}

.registration-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: end center;
  padding: 1rem;
  background: rgba(22, 45, 31, 0.42);
}

.detail-overlay.is-background-detail {
  pointer-events: none;
}

.detail-overlay.is-stacked-detail {
  z-index: 31;
}

.registration-modal {
  position: relative;
  width: min(100%, 620px);
  max-height: min(86vh, 720px);
  overflow: auto;
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 22px 80px rgba(22, 45, 31, 0.28);
}

.registration-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
}

.registration-modal h3 {
  margin: 0;
  padding-right: 3rem;
  color: var(--forest);
  font-size: 1.35rem;
  line-height: 1.1;
}

.registration-form,
.registration-grid {
  display: grid;
  gap: 0.8rem;
}

.registration-checkbox {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  color: var(--ink) !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
}

.registration-checkbox input {
  width: 1.2rem;
  min-height: 1.2rem;
  margin-top: 0.1rem;
}

.registration-message {
  margin: 0;
  padding: 0.75rem;
  border-radius: 8px;
  font-weight: 800;
}

.registration-success {
  color: var(--forest);
  background: var(--surface-soft);
}

.registration-error {
  color: var(--danger);
  background: #fff0ed;
}

.volunteer-org-profile {
  display: grid;
  gap: 1rem;
}

.org-profile-back {
  margin-top: -0.25rem;
}

.org-profile-header,
.org-profile-panel {
  background: var(--surface);
  border: 1px solid rgba(31, 61, 43, 0.14);
  border-radius: 12px;
  box-shadow: none;
}

.org-profile-header {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(9rem, 1fr);
  align-items: start;
  gap: 1rem;
  padding: 1.1rem;
}

.org-profile-copy {
  min-width: 0;
}

.org-profile-side {
  display: grid;
  align-items: center;
  justify-items: end;
  gap: 0.7rem;
  min-width: 0;
}

.org-profile-side .volunteer-org-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 190px;
  height: 90px;
  padding: 0;
  flex: 0 0 auto;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.org-profile-side .volunteer-org-logo img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.org-profile-header h3 {
  margin-bottom: 0.45rem;
  color: var(--forest);
  font-size: clamp(1.45rem, 6vw, 2.15rem);
  line-height: 1.05;
}

.org-profile-header p,
.org-profile-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.org-profile-grid {
  display: grid;
  gap: 0.85rem;
}

.org-profile-panel {
  display: grid;
  gap: 0.6rem;
  padding: 1rem;
}

.org-profile-panel h4 {
  margin: 0;
  color: var(--forest);
  font-size: 0.95rem;
}

.org-profile-contact-row {
  display: grid;
  gap: 0.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.org-profile-contact-row span {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.org-profile-contact-row strong {
  color: var(--ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.org-profile-related {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 700px) {
  .volunteer-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .volunteer-detail-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .volunteer-detail-grid,
  .org-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-opportunity-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .registration-overlay {
    place-items: center;
  }

  .registration-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .river-current-card {
    grid-template-columns: minmax(0, 1fr) 12rem;
    align-items: start;
  }

  .river-metric-grid,
  .river-ops-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .river-source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .org-profile-header {
    grid-template-columns: 1fr;
  }

  .org-profile-side {
    justify-items: start;
  }

  .org-profile-side .volunteer-org-logo {
    width: 150px;
    height: 76px;
  }

  .volunteer-tools {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .volunteer-search-field,
  .volunteer-search-field:focus-within {
    width: 100%;
  }

  .volunteer-filter-panel {
    justify-self: start;
  }

  .volunteer-calendar-month {
    padding: 0.75rem;
    overflow-x: auto;
  }

  .volunteer-calendar-weekdays,
  .volunteer-calendar-grid {
    min-width: 42rem;
  }

  .volunteer-calendar-day {
    min-height: 6.6rem;
  }
}

.spinner {
  width: 1.5rem;
  height: 1.5rem;
  border: 3px solid rgba(47, 111, 126, 0.2);
  border-top-color: var(--river);
  border-radius: 50%;
  animation: pm-spin 0.8s linear infinite;
}

@keyframes pm-spin {
  to {
    transform: rotate(360deg);
  }
}

/* True EOF CSO status card fit. */
.status-grid .status-card.status-river {
  min-height: 132px !important;
  aspect-ratio: auto !important;
}

/* Final CSO status card overrides. Keep after historical status-card passes. */
.status-grid .status-river {
  align-items: center;
  justify-content: center;
  min-height: 132px !important;
  aspect-ratio: auto;
  padding: 0.62rem;
  text-align: center;
  border-left-width: 4px;
  border-left-style: solid;
}

.status-grid .status-river::before,
.status-grid .river-icon {
  display: none;
}

.status-grid .status-river .card-label,
.status-grid .status-river h2,
.status-grid .status-river p,
.status-grid .status-river .status-link {
  max-width: none;
}

.status-grid .status-river .card-label {
  color: #24473b;
  font-size: 0.52rem;
}

.status-grid .status-river h2 {
  color: #1f3d2b;
  font-size: clamp(0.64rem, 2.7vw, 0.82rem);
  line-height: 1.18;
}

.status-grid .status-river p {
  color: #334842;
  font-size: 0.55rem;
  line-height: 1.18;
}

.status-detail-list {
  display: grid;
  gap: 0.12rem;
  margin: 0.04rem 0 0;
  padding: 0;
  color: #334842;
  font-size: 0.5rem;
  line-height: 1.16;
  list-style: none;
}

.status-detail-list li {
  padding-left: 0.46rem;
  border-left: 2px solid rgba(31, 61, 43, 0.14);
}

.status-card-link {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  color: #1f3d2b;
  font-size: 0.58rem;
  font-weight: 850;
  line-height: 1.1;
}

.status-card-link .icon {
  width: 0.72rem;
  height: 0.72rem;
  flex: 0 0 auto;
}

.status-grid .status-river .status-link {
  color: #1f3d2b;
  font-size: 0.58rem;
}

.status-grid .status-river-state-red {
  background: #f8dddd;
  border-color: #b4232f;
}

.status-grid .status-river-state-yellow {
  background: #fff3cf;
  border-color: #b7791f;
}

.status-grid .status-river-state-green,
.status-grid .status-river-state-none {
  background: #e8f4ea;
  border-color: #2f7d47;
}

.status-grid .status-river-state-unavailable,
.status-grid .status-river-state-loading {
  background: #eef4f7;
  border-color: #2f6f7e;
}

/* Final hub content object casing. Keep after historical layout overrides. */
.hub-card .mini-list {
  display: grid;
  gap: 0.3rem;
  padding-left: 0 !important;
}

.hub-card .mini-list span,
.hub-card .mini-list-link {
  display: block;
  min-height: 1.62rem;
  padding: 0.31rem 0.56rem 0.32rem 0.72rem;
  border-left: 3px solid rgba(43, 111, 90, 0.42);
  border-radius: 5px;
  background: rgba(237, 241, 233, 0.94);
  box-shadow: inset 0 0 0 1px rgba(31, 61, 43, 0.08);
  color: #263832;
  line-height: 1.24;
}

.hub-card .mini-list-link {
  text-decoration: none;
}

.hub-card .mini-list-link:hover,
.hub-card .mini-list-link:focus-visible {
  background: rgba(226, 235, 225, 0.98);
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.hub-card:has(.hub-stat-label) h3 {
  display: inline;
  margin-right: 0.35rem;
}

.hub-card .hub-stat-label {
  display: inline;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1;
  vertical-align: baseline;
}

/* EOF final-fit overrides: these intentionally win over earlier prototype passes. */
.page-shell {
  width: min(940px, calc(100% - 28px));
}

.overview {
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.place-header h1 {
  font-size: clamp(1.78rem, 7.1vw, 2.75rem);
}

.place-header p {
  font-size: clamp(0.95rem, 4.1vw, 1.3rem);
}

.status-grid {
  gap: 0.38rem;
}

.status-grid .status-card {
  min-height: 0 !important;
  aspect-ratio: 1 / 1.06;
  padding: 0.42rem 0.34rem;
  gap: 0.12rem;
  border-radius: 12px;
}

.status-grid .status-icon .icon {
  width: 1.05rem;
  height: 1.05rem;
}

.status-grid .river-icon .icon {
  width: 1.2rem;
}

.status-grid .status-river::before {
  width: 0.68rem;
  height: 0.68rem;
}

.status-grid .status-card .card-label {
  font-size: 0.5rem;
  line-height: 1.05;
}

.status-grid .status-card h2 {
  font-size: clamp(0.95rem, 4.4vw, 1.36rem);
  line-height: 0.98;
}

.status-grid .status-river h2 {
  font-size: clamp(0.7rem, 2.9vw, 0.9rem);
  max-width: 7.2ch;
}

.status-grid .status-card p,
.status-grid .weather-range,
.status-grid .status-link {
  font-size: 0.54rem;
  line-height: 1.1;
}

.status-grid .weather-range {
  gap: 0.34rem;
}

.hub-card .mini-list {
  margin-left: 0 !important;
  padding-left: 0 !important;
  text-align: left;
}

.hub-card .card-link {
  margin-left: 0 !important;
  overflow-wrap: normal;
  word-break: normal;
}

@media (min-width: 390px) {
  .overview {
    grid-template-columns: minmax(0, 0.92fr) minmax(164px, 0.88fr);
    gap: 0.65rem;
  }
}

@media (min-width: 760px) {
  .page-shell {
    width: min(940px, calc(100% - 70px));
  }

  .overview {
    grid-template-columns: minmax(0, 0.95fr) minmax(290px, 0.78fr);
    gap: 1.5rem;
  }
}

/* Final homepage fit pass: prevent title/card overlap and reclaim Hub text space. */
.site-header {
  min-height: 74px;
}

.brand img {
  width: min(210px, 50vw);
  max-height: 58px;
}

.page-shell {
  width: min(940px, calc(100% - 28px));
  padding-top: 1rem;
  padding-bottom: 2rem;
}

.overview {
  grid-template-columns: 1fr;
  gap: 0.85rem;
  align-items: center;
}

.place-header h1 {
  max-width: none;
  margin-bottom: 0.22rem;
  font-size: clamp(1.85rem, 7.4vw, 2.85rem);
}

.place-header p {
  margin-bottom: 0.72rem;
  font-size: clamp(0.98rem, 4.3vw, 1.38rem);
}

.place-date {
  font-size: 0.84rem;
}

.status-grid {
  gap: 0.42rem;
}

.status-card {
  min-height: 0;
  aspect-ratio: 1 / 1.12;
  gap: 0.16rem;
  padding: 0.48rem 0.38rem;
  border-radius: 12px;
}

.status-icon .icon {
  width: 1.15rem;
  height: 1.15rem;
}

.river-icon .icon {
  width: 1.28rem;
}

.status-river::before {
  width: 0.72rem;
  height: 0.72rem;
  margin-bottom: 0;
}

.status-card .card-label {
  font-size: 0.54rem;
  line-height: 1.1;
}

.status-card h2 {
  font-size: clamp(1rem, 4.8vw, 1.48rem);
  line-height: 0.98;
}

.status-river h2 {
  max-width: 7.5ch;
  font-size: clamp(0.76rem, 3.2vw, 0.98rem);
}

.status-card p,
.weather-range,
.status-link {
  font-size: 0.58rem;
  line-height: 1.15;
}

.weather-range {
  gap: 0.42rem;
}

.status-link {
  margin-top: 0.04rem;
}

.hub-card {
  min-height: 0;
  padding: 0.82rem;
}

.hub-card-main {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.62rem;
}

.hub-icon {
  width: 2.45rem;
  height: 2.45rem;
}

.hub-icon .icon {
  width: 1.28rem;
  height: 1.28rem;
}

.hub-card .card-label {
  font-size: 0.65rem;
  overflow-wrap: normal;
  word-break: normal;
}

.hub-card h3 {
  font-size: clamp(0.96rem, 3.6vw, 1.12rem);
}

.hub-stat-label {
  display: block;
  margin: 0.06rem 0 0;
  font-size: 0.78rem;
}

.mini-list {
  padding-left: 0.95rem;
  margin-left: 0;
  color: #34463f;
  font-size: 0.76rem;
  text-align: left;
}

.card-link {
  margin-left: 0;
  font-size: 0.8rem;
  overflow-wrap: normal;
  word-break: normal;
}

@media (min-width: 390px) {
  .overview {
    grid-template-columns: minmax(0, 0.9fr) minmax(176px, 0.92fr);
    gap: 0.7rem;
  }
}

@media (min-width: 760px) {
  .site-header {
    min-height: 88px;
  }

  .brand img {
    width: 280px;
    max-height: 66px;
  }

  .page-shell {
    width: min(940px, calc(100% - 70px));
  }

  .overview {
    grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.78fr);
    gap: 1.5rem;
  }

  .status-card {
    aspect-ratio: 1 / 1.05;
    padding: 0.8rem;
  }

  .mini-list,
  .card-link {
    margin-left: 0;
  }
}

/* Homepage scope and alignment refinements */
.site-header {
  min-height: 74px;
}

.brand img {
  width: min(210px, 50vw);
  max-height: 58px;
}

.page-shell {
  width: min(940px, calc(100% - 28px));
  padding-top: 1rem;
  padding-bottom: 2rem;
}

.overview {
  gap: 0.85rem;
  align-items: center;
}

.place-header h1 {
  max-width: none;
  margin-bottom: 0.22rem;
  font-size: clamp(1.95rem, 8.4vw, 3.25rem);
}

.place-header p {
  margin-bottom: 0.75rem;
  font-size: clamp(1rem, 4.8vw, 1.55rem);
}

.place-date {
  font-size: 0.86rem;
}

.status-card {
  min-height: 124px;
  padding: 0.7rem 0.5rem;
  border-radius: 12px;
}

.status-icon .icon {
  width: 1.45rem;
  height: 1.45rem;
}

.river-icon .icon {
  width: 1.65rem;
}

.status-river::before {
  width: 0.9rem;
  height: 0.9rem;
  margin-bottom: 0.05rem;
}

.status-card .card-label {
  font-size: 0.63rem;
}

.status-card h2 {
  font-size: clamp(1.15rem, 5.8vw, 2rem);
}

.status-river h2 {
  max-width: 8ch;
  font-size: clamp(0.86rem, 4vw, 1.15rem);
}

.status-card p,
.weather-range,
.status-link {
  font-size: 0.68rem;
}

.status-link {
  margin-top: 0.12rem;
}

.updates-panel {
  margin-top: 1rem;
}

.hub-card {
  min-height: 166px;
  padding: 0.82rem;
}

.hub-icon {
  width: 2.55rem;
  height: 2.55rem;
}

.hub-icon .icon {
  width: 1.35rem;
  height: 1.35rem;
}

.hub-card .card-label {
  font-size: 0.66rem;
  overflow-wrap: normal;
  word-break: normal;
}

.hub-card h3 {
  font-size: clamp(0.98rem, 4vw, 1.18rem);
}

.hub-stat-label {
  display: block;
  margin: 0.08rem 0 0;
  font-size: 0.8rem;
}

.mini-list {
  padding-left: 0.95rem;
  color: #34463f;
  font-size: 0.76rem;
  text-align: left;
}

.card-link {
  margin-left: 0;
  font-size: 0.8rem;
  overflow-wrap: normal;
  word-break: normal;
}

@media (min-width: 390px) {
  .overview {
    grid-template-columns: minmax(0, 0.86fr) minmax(204px, 1.04fr);
    gap: 0.75rem;
  }

  .status-grid {
    gap: 0.45rem;
  }
}

@media (min-width: 760px) {
  .site-header {
    min-height: 88px;
  }

  .brand img {
    width: 280px;
    max-height: 66px;
  }

  .page-shell {
    width: min(940px, calc(100% - 70px));
  }

  .overview {
    grid-template-columns: minmax(0, 0.9fr) minmax(330px, 0.9fr);
    gap: 1.5rem;
  }

  .status-card {
    min-height: 176px;
  }

  .hub-card {
    min-height: 205px;
  }

  .mini-list,
  .card-link {
    margin-left: 0;
  }
}

@media (min-width: 1100px) {
  .hub-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Calmer mockup-aligned homepage pass */
:root {
  --navy: #1d2522;
  --blue-link: var(--river);
  --soft-line: #dbe3d8;
}

body {
  background: var(--paper);
}

.site-header {
  background: rgba(247, 248, 244, 0.96);
}

.page-shell {
  width: min(960px, calc(100% - 34px));
}

.overview {
  gap: 1rem;
}

.place-header h1 {
  font-size: clamp(2.7rem, 15vw, 4.6rem);
}

.place-header p {
  margin-bottom: 1rem;
  font-size: clamp(1.25rem, 6vw, 1.9rem);
}

.status-grid {
  gap: 0.7rem;
}

.status-card {
  min-height: 164px;
  gap: 0.25rem;
  padding: 0.95rem 0.75rem;
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(31, 61, 43, 0.15);
  border-radius: 14px;
}

.status-river {
  border-color: rgba(47, 111, 126, 0.25);
}

.status-icon .icon {
  width: 2rem;
  height: 2rem;
}

.river-icon .icon {
  width: 2.25rem;
}

.status-river::before {
  width: 1.25rem;
  height: 1.25rem;
}

.status-card .card-label {
  font-size: 0.72rem;
  letter-spacing: 0.07em;
}

.status-card h2 {
  font-size: clamp(1.35rem, 7vw, 2.55rem);
}

.status-river h2 {
  max-width: 8ch;
  font-size: clamp(1rem, 5vw, 1.35rem);
}

.status-card p,
.weather-range,
.status-link {
  font-size: 0.78rem;
}

.updates-panel {
  margin-top: 0.85rem;
  padding: 0.95rem 0.95rem 0.35rem;
  background: rgba(255, 255, 255, 0.64);
  border-color: rgba(240, 90, 26, 0.2);
  border-radius: 14px;
  box-shadow: none;
}

.updates-panel h2 {
  color: #b63d16;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
}

.update-row {
  min-height: 42px;
  grid-template-columns: 1.55rem 1fr auto;
  gap: 0.55rem;
  border-top-color: rgba(240, 90, 26, 0.14);
  font-size: 0.93rem;
}

.update-icon .icon {
  width: 1.15rem;
  height: 1.15rem;
}

.section {
  padding-top: 1.8rem;
}

.hub-heading {
  margin-bottom: 0.8rem;
}

.hub-heading h2 {
  font-size: 0.96rem;
}

.hub-heading a {
  color: var(--river);
  font-size: 0.9rem;
}

.hub-grid {
  gap: 0.7rem;
}

.hub-card {
  min-height: 190px;
  gap: 0.65rem;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(31, 61, 43, 0.14);
  border-radius: 14px;
}

.hub-card-main {
  gap: 0.65rem;
}

.hub-icon {
  width: 2.85rem;
  height: 2.85rem;
  box-shadow: none;
}

.hub-icon .icon {
  width: 1.55rem;
  height: 1.55rem;
}

.hub-news,
.hub-transportation {
  background: var(--river);
}

.hub-volunteer,
.hub-elections {
  background: var(--forest);
}

.hub-municipal {
  background: #2a8a8f;
}

.hub-arts {
  background: var(--olive);
}

.hub-card .card-label {
  font-size: 0.78rem;
}

.hub-card h3 {
  margin-top: 0.18rem;
  color: var(--forest);
  font-size: clamp(1.05rem, 4.4vw, 1.35rem);
}

.hub-card:has(.hub-news) h3,
.hub-card:has(.hub-transportation) h3 {
  color: var(--river);
}

.hub-card:has(.hub-municipal) h3 {
  color: #2a8a8f;
}

.hub-card:has(.hub-arts) h3 {
  color: var(--olive);
}

.hub-stat-label {
  font-size: 0.9rem;
}

.mini-list {
  padding-left: calc(2.85rem + 0.65rem);
  gap: 0.28rem;
  color: #30413b;
  font-size: 0.8rem;
}

.mini-list span::before,
.mini-list-link::before {
  display: none;
}

.mini-list-link {
  color: inherit;
  text-decoration: none;
}

.mini-list-link:hover,
.mini-list-link:focus-visible {
  color: var(--river);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.card-link {
  margin-left: calc(2.85rem + 0.65rem);
  color: var(--river);
  font-size: 0.86rem;
}

@media (min-width: 760px) {
  .page-shell {
    width: min(960px, calc(100% - 70px));
  }

  .overview {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
    gap: 1.5rem;
  }

  .status-card {
    min-height: 210px;
  }

  .updates-panel {
    padding: 1.1rem 1.45rem 0.55rem;
  }

  .update-row {
    min-height: 60px;
    font-size: 0.98rem;
  }

  .hub-card {
    min-height: 232px;
    padding: 1rem;
  }

  .hub-icon {
    width: 3.35rem;
    height: 3.35rem;
  }

  .mini-list,
  .card-link {
    margin-left: calc(3.35rem + 0.65rem);
    padding-left: 0;
  }
}

/* True EOF final-fit overrides: keep these after all historical prototype passes. */
.page-shell {
  width: min(940px, calc(100% - 28px));
}

.overview {
  grid-template-columns: 1fr;
  gap: 0.85rem;
  align-items: center;
}

.place-header h1 {
  max-width: none;
  margin-bottom: 0.22rem;
  font-size: clamp(1.78rem, 7.1vw, 2.75rem);
}

.place-header p {
  margin-bottom: 0.72rem;
  font-size: clamp(0.95rem, 4.1vw, 1.3rem);
}

.place-date {
  font-size: 0.84rem;
}

.status-grid {
  gap: 0.38rem;
}

.status-grid .status-card {
  min-height: 0 !important;
  aspect-ratio: 1 / 1.06;
  gap: 0.12rem;
  padding: 0.42rem 0.34rem;
  border-radius: 12px;
}

.status-grid .status-icon .icon {
  width: 1.05rem;
  height: 1.05rem;
}

.status-grid .river-icon .icon {
  width: 1.2rem;
}

.status-grid .status-river::before {
  width: 0.68rem;
  height: 0.68rem;
  margin-bottom: 0;
}

.status-grid .status-card .card-label {
  font-size: 0.5rem;
  line-height: 1.05;
}

.status-grid .status-card h2 {
  font-size: clamp(0.95rem, 4.4vw, 1.36rem);
  line-height: 0.98;
}

.status-grid .status-river h2 {
  max-width: 7.2ch;
  font-size: clamp(0.7rem, 2.9vw, 0.9rem);
}

.status-grid .status-card p,
.status-grid .weather-range,
.status-grid .status-link {
  font-size: 0.54rem;
  line-height: 1.1;
}

.status-grid .weather-range {
  gap: 0.34rem;
}

.hub-card .mini-list {
  margin-left: 0 !important;
  padding-left: 0.95rem !important;
  text-align: left;
}

.hub-card .card-link {
  margin-left: 0 !important;
  overflow-wrap: normal;
  word-break: normal;
}

@media (min-width: 390px) {
  .overview {
    grid-template-columns: minmax(0, 0.92fr) minmax(164px, 0.88fr);
    gap: 0.65rem;
  }
}

@media (min-width: 760px) {
  .page-shell {
    width: min(940px, calc(100% - 70px));
  }

  .overview {
    grid-template-columns: minmax(0, 0.95fr) minmax(290px, 0.78fr);
    gap: 1.5rem;
  }

  .status-grid .status-card {
    aspect-ratio: 1 / 1.05;
    padding: 0.8rem;
  }
}

/* True EOF portal framework styles. */
.portal-page {
  padding-top: 1.1rem;
}

.portal-page .portal-header {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(31, 61, 43, 0.14);
  box-shadow: none;
}

.portal-page .portal-header h2 {
  color: var(--forest);
  font-size: clamp(1.65rem, 8vw, 2.6rem);
  line-height: 1;
}

.portal-page .portal-home-link {
  color: var(--river);
  font-size: 0.9rem;
}

.portal-page .portal-tools {
  margin: 1rem 0;
}

.portal-page .portal-tools input,
.portal-page .portal-tools select {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(31, 61, 43, 0.16);
}

.portal-page .content-grid {
  gap: 0.85rem;
}

.portal-page .content-card {
  box-shadow: none;
  border-color: rgba(31, 61, 43, 0.14);
  border-radius: 12px;
}

.portal-page .content-card-focused {
  border-color: rgba(43, 111, 90, 0.55);
  box-shadow: 0 0 0 3px rgba(43, 111, 90, 0.14);
}

/* Shared portal cards keep media useful without assuming source images share an aspect ratio. */
.portal-content-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.portal-content-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-left: 4px solid var(--river);
}

.portal-event-card {
  border-left-color: var(--olive);
  container-type: inline-size;
}

.portal-event-card .portal-card-main {
  flex: 1 1 auto;
  grid-template-rows: auto 1fr;
}

.portal-news-card .portal-card-main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.portal-news-card .portal-card-copy {
  flex: 1 1 auto;
}

.portal-card-main {
  display: grid;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.portal-card-main:focus-visible {
  outline: 3px solid rgba(42, 138, 143, 0.48);
  outline-offset: -3px;
}

.portal-card-media {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: rgba(31, 61, 43, 0.06);
}

.portal-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
}

.portal-card-media-event img {
  object-fit: contain;
}

.portal-card-media-news img {
  object-fit: cover;
}

.portal-card-media-publisher {
  padding: 1.5rem;
  background: #fff;
}

.portal-card-media-publisher img {
  object-fit: contain;
}

.portal-card-media-organization {
  padding: 0.8rem;
  background: #fff;
}

.portal-card-media-organization img {
  object-fit: contain;
}

.portal-card-media-fallback,
.portal-card-media.is-unavailable {
  color: var(--river);
}

.portal-card-media-fallback {
  min-height: 7rem;
  aspect-ratio: auto;
}

.portal-card-media-fallback .icon,
.portal-card-media.is-unavailable::after {
  width: 2.5rem;
  height: 2.5rem;
}

.portal-card-media.is-unavailable::after {
  content: "Image unavailable";
  display: grid;
  place-items: center;
  width: auto;
  height: auto;
  padding: 0.5rem 0.8rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.portal-card-copy {
  display: grid;
  min-width: 0;
  gap: 0.65rem;
  padding: 1rem;
}

.portal-card-copy h3 {
  margin: 0;
}

.portal-event-times {
  color: var(--river);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
}

.portal-card-summary {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.portal-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  padding: 0 1rem 1rem;
}

.portal-card-actions .calendar-download-link {
  margin-left: auto;
}

.portal-event-card .portal-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(2.3rem, auto));
  align-items: center;
  gap: 0.15rem 0.5rem;
  min-height: 5.5rem;
  margin-top: auto;
}

.portal-event-card-primary-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  min-width: 0;
  text-align: right;
}

.portal-event-card .calendar-download-link {
  justify-self: end;
  margin-left: 0;
}

.portal-event-card .share-action {
  justify-self: start;
  min-height: 2.3rem;
  font-size: 0.86rem;
}

@container (max-width: 280px) {
  .portal-event-card .portal-card-actions {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(4, minmax(2.3rem, auto));
  }

  .portal-event-card-primary-actions {
    justify-self: end;
  }
}

.portal-news-card-footer {
  padding: 0 1rem 0.7rem;
}

.portal-news-card-footer .meta-row {
  display: block;
  flex: 1 1 auto;
  font-size: 0.84rem;
}

.portal-news-card-footer .meta-row > span {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-detail-page .event-detail-description {
  font-size: 1.05rem;
}

@media (min-width: 760px) {
  .portal-content-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .portal-card-media {
    min-height: 8.5rem;
  }

  .portal-card-actions .calendar-download-link {
    margin-left: 0;
  }
}

.portal-page .content-card h3 {
  color: var(--forest);
}

.portal-page .content-article,
.portal-page .content-condition {
  border-left-color: var(--river);
}

.portal-page .content-event,
.portal-page .content-resource {
  border-left-color: var(--olive);
}

.portal-page .content-announcement {
  border-left-color: #2a8a8f;
}

.portal-state {
  display: grid;
  gap: 0.35rem;
  place-items: start;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 61, 43, 0.14);
  border-radius: 12px;
}

.portal-state h3,
.portal-state h2,
.portal-state p {
  margin-bottom: 0;
}

.portal-state p {
  color: var(--muted);
}

.portal-state-error {
  border-color: rgba(159, 47, 47, 0.25);
}

.spinner {
  width: 1.5rem;
  height: 1.5rem;
  border: 3px solid rgba(47, 111, 126, 0.2);
  border-top-color: var(--river);
  border-radius: 50%;
  animation: pm-spin 0.8s linear infinite;
}

@keyframes pm-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Final Important Updates notification density override. */
.updates-panel {
  margin-top: 0.55rem;
  padding: 0.45rem 0 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.updates-panel .updates-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.3rem;
}

.updates-panel .updates-heading h2 {
  margin: 0;
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.updates-panel .updates-heading > a {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  color: var(--river);
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.updates-panel .updates-heading > a .icon {
  width: 0.78rem;
  height: 0.78rem;
}

.notification-updates-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(31, 61, 43, 0.1);
  border-radius: 9px;
}

.notification-updates-list .update-row {
  display: grid;
  grid-template-columns: 1.45rem minmax(0, 1fr) 0.9rem;
  gap: 0.6rem;
  align-items: center;
  min-height: 46px;
  padding: 0.42rem 0.66rem;
  color: var(--forest);
  text-decoration: none;
  border-top: 1px solid rgba(31, 61, 43, 0.09);
}

.notification-updates-list .update-row:first-child {
  border-top: 0;
}

.notification-updates-list .update-row:hover {
  background: rgba(238, 243, 233, 0.72);
}

.notification-updates-list .update-row:focus-visible {
  position: relative;
  z-index: 1;
  outline: 3px solid rgba(47, 111, 126, 0.34);
  outline-offset: -3px;
}

.notification-updates-list .update-icon {
  display: inline-grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  margin: 0;
  border-radius: 999px;
  background: rgba(31, 61, 43, 0.08);
  color: var(--river);
}

.notification-updates-list .update-icon .icon {
  width: 0.84rem;
  height: 0.84rem;
}

.notification-updates-list .update-title {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--forest);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-updates-list .update-copy,
.notification-updates-list .update-meta,
.notification-updates-list .update-row h3 {
  display: none;
}

.notification-updates-list .update-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--river);
}

.notification-updates-list .update-chevron .icon {
  width: 0.82rem;
  height: 0.82rem;
}

.notification-updates-list .update-critical .update-icon {
  background: rgba(159, 47, 47, 0.12);
  color: #9f2f2f;
}

.notification-updates-list .update-warning .update-icon {
  background: rgba(148, 98, 0, 0.13);
  color: #946200;
}

.notification-updates-list .update-advisory .update-icon {
  background: rgba(47, 111, 126, 0.13);
  color: var(--river);
}

@media (max-width: 520px) {
  .notification-updates-list .update-row {
    min-height: 44px;
    grid-template-columns: 1.34rem minmax(0, 1fr) 0.84rem;
    gap: 0.5rem;
    padding: 0.4rem 0.56rem;
  }

  .notification-updates-list .update-icon {
    width: 1.34rem;
    height: 1.34rem;
  }

  .notification-updates-list .update-title {
    font-size: 0.82rem;
  }
}

/* Homepage compact layout utilities and final mobile fit. */
.truncate,
.line-clamp-1 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.platform-initial-loading {
  display: grid;
  min-height: 100dvh;
  place-content: center;
  justify-items: center;
  gap: 0.7rem;
  padding: 1.5rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}
.platform-initial-loading img { width: min(250px, 68vw); height: auto; }

.compact-list {
  display: grid;
  gap: 0.18rem;
}

#home.overview,
.overview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  align-items: center;
  margin: 0;
  padding: 0.65rem 0 0;
}

.place-header {
  display: grid;
  gap: 0.18rem;
  padding: 0.15rem 0 0;
}

.place-header h1 {
  margin: 0;
  font-size: clamp(1.85rem, 9vw, 3.15rem);
  line-height: 0.95;
}

.place-header p {
  margin: 0;
  font-size: clamp(0.88rem, 3.8vw, 1.02rem);
  line-height: 1.15;
}

.place-date {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.place-date .icon {
  width: 0.82rem;
  height: 0.82rem;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0;
}

.status-grid .status-card {
  min-height: 104px !important;
  max-height: 112px;
  aspect-ratio: auto !important;
  gap: 0.12rem;
  padding: 0.62rem;
  border-radius: 12px;
  box-shadow: none;
}

.status-grid .status-card.status-river {
  min-height: 104px !important;
  max-height: 112px;
  overflow: hidden;
}

.status-grid .status-icon .icon,
.status-grid .river-icon .icon {
  width: 0.95rem;
  height: 0.95rem;
}

.status-grid .status-river::before {
  width: 0.58rem;
  height: 0.58rem;
  margin-bottom: 0.02rem;
}

.status-grid .status-card .card-label {
  font-size: 0.52rem;
  line-height: 1;
}

.status-grid .status-card h2 {
  margin: 0;
  font-size: clamp(0.88rem, 4vw, 1.35rem);
  line-height: 1.04;
}

.status-grid .status-river h2 {
  max-width: 14ch;
  font-size: clamp(0.78rem, 3.6vw, 1.08rem);
}

.status-grid .status-card p,
.status-grid .weather-range,
.status-grid .status-link {
  font-size: 0.58rem;
  line-height: 1.12;
}

.status-grid .status-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.status-grid .weather-range {
  gap: 0.35rem;
}

.status-grid .status-link {
  margin-top: 0.05rem;
}

.updates-panel {
  margin-top: 0.55rem;
}

.section:has(.hub-grid) {
  padding-top: 1rem;
}

.hub-heading {
  margin-bottom: 0.55rem;
}

.hub-heading h2 {
  font-size: 0.86rem;
}

.hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.hub-card {
  display: grid;
  grid-template-rows: auto minmax(2.75rem, 1fr) auto;
  gap: 0.45rem;
  min-height: 162px;
  max-height: 162px;
  padding: 0.68rem;
  overflow: hidden;
  box-shadow: none;
}

.hub-card-main {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
}

.hub-icon {
  width: 2rem;
  height: 2rem;
}

.hub-icon .icon {
  width: 1.05rem;
  height: 1.05rem;
}

.hub-card .card-label {
  font-size: 0.57rem;
  line-height: 1.05;
}

.hub-card h3 {
  margin: 0.04rem 0 0;
  font-size: clamp(1rem, 4.6vw, 1.34rem);
  line-height: 1;
}

.hub-card .hub-stat-label {
  display: block;
  margin-top: 0.08rem;
  font-size: 0.62rem;
  line-height: 1;
}

.hub-card__items,
.mini-list {
  align-self: start;
  gap: 0.16rem;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}

.mini-list span,
.mini-list-link {
  position: relative;
  display: block;
  min-height: 0;
  padding: 0 0 0 0.62rem;
  color: var(--ink);
  font-size: 0.7rem;
  line-height: 1.12;
  text-align: left;
  text-decoration: none;
}

.hub-card .mini-list span,
.hub-card .mini-list-link {
  min-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0.62rem !important;
}

.mini-list span::before,
.mini-list-link::before {
  content: "";
  position: absolute;
  left: 0.06rem;
  top: 0.45em;
  width: 0.2rem;
  height: 0.2rem;
  border-radius: 999px;
  background: var(--river);
}

.hub-card .card-link {
  align-self: end;
  margin: 0 !important;
  color: var(--forest);
  font-size: 0.68rem;
  line-height: 1.1;
}

@media (min-width: 600px) {
  .hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 700px) {
  #home.overview,
  .overview {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
    gap: 1rem;
    padding-top: 0.8rem;
  }

  .status-grid .status-card {
    min-height: 118px !important;
    padding: 0.72rem;
  }

  .hub-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hub-card {
    min-height: 172px;
    max-height: 172px;
  }
}

@media (max-width: 360px) {
  .status-grid {
    grid-template-columns: 1fr;
  }

  .hub-card {
    min-height: 158px;
    max-height: 158px;
  }
}

/* Final mobile hero compression: keep status cards beside the Lowell heading. */
@media (max-width: 699px) {
  #home.overview,
  .overview {
    grid-template-columns: minmax(0, 0.78fr) minmax(178px, 1fr);
    gap: 0.5rem;
    align-items: start;
    padding-top: 0.45rem;
  }

  .place-header {
    gap: 0.1rem;
    padding-top: 0.18rem;
  }

  .place-header h1 {
    font-size: clamp(1.12rem, 6.8vw, 1.95rem);
    line-height: 0.95;
  }

  .place-header p {
    max-width: 11ch;
    font-size: clamp(0.64rem, 3.1vw, 0.82rem);
    font-weight: 800;
    line-height: 1.05;
  }

  .place-date {
    gap: 0.22rem;
    margin-top: 0.2rem;
    font-size: 0.58rem;
    line-height: 1;
  }

  .place-date .icon {
    width: 0.66rem;
    height: 0.66rem;
  }

  .status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.28rem;
    align-self: start;
  }

  .status-grid .status-card,
  .status-grid .status-card.status-river {
    min-height: 78px !important;
    max-height: 86px;
    padding: 0.38rem 0.32rem;
    border-radius: 10px;
  }

  .status-grid .status-icon .icon,
  .status-grid .river-icon .icon {
    width: 0.72rem;
    height: 0.72rem;
  }

  .status-grid .status-river::before {
    width: 0.42rem;
    height: 0.42rem;
  }

  .status-grid .status-card .card-label {
    font-size: 0.42rem;
    line-height: 1;
  }

  .status-grid .status-card h2 {
    font-size: clamp(0.72rem, 4.2vw, 1rem);
    line-height: 0.98;
  }

  .status-grid .status-river h2 {
    max-width: 11ch;
    font-size: clamp(0.64rem, 3.4vw, 0.86rem);
  }

  .status-grid .status-card p,
  .status-grid .weather-range,
  .status-grid .status-link {
    font-size: 0.44rem;
    line-height: 1;
  }

  .status-grid .weather-range {
    gap: 0.18rem;
  }

  .status-grid .status-link {
    margin-top: 0.02rem;
  }

  .updates-panel {
    margin-top: 0.4rem;
  }
}

@media (max-width: 370px) {
  #home.overview,
  .overview {
    grid-template-columns: minmax(0, 0.72fr) minmax(164px, 1fr);
    gap: 0.36rem;
  }

  .status-grid .status-card,
  .status-grid .status-card.status-river {
    min-height: 74px !important;
    padding: 0.34rem 0.28rem;
  }
}

/* Reusable status-card visual states. */
.status-grid .status-card {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(31, 61, 43, 0.14);
}

.status-grid a.status-card {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.status-grid a.status-card:hover {
  transform: translateY(-1px);
}

.status-grid a.status-card:focus-visible {
  outline: 3px solid rgba(38, 125, 137, 0.36);
  outline-offset: 3px;
}

.status-grid .status-state-normal {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(31, 61, 43, 0.14);
}

.status-grid .status-state-advisory {
  background: #fff7da;
  border-color: rgba(189, 121, 20, 0.78);
}

.status-grid .status-state-warning {
  background: #fff2e8;
  border-color: rgba(199, 92, 22, 0.72);
}

.status-grid .status-state-critical {
  background: #fff0ee;
  border-color: rgba(159, 47, 47, 0.78);
}

.status-grid .status-state-loading,
.status-grid .status-state-unavailable {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(91, 103, 98, 0.22);
}

.status-grid .status-card h2 {
  text-wrap: balance;
}

.status-grid .status-weather p {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-grid .weather-icon {
  color: #d99400;
}

.status-grid .weather-icon img {
  display: block;
  width: 1.28rem;
  height: 1.28rem;
  object-fit: contain;
}

.status-grid .weather-icon-fallback {
  display: block;
}

.status-grid .weather-icon-fallback[hidden] {
  display: none;
}

.status-grid .river-icon {
  order: 0;
  color: var(--river);
}

.status-grid .river-icon .icon {
  width: 0.92rem;
  height: 0.92rem;
}

.status-grid .status-river::before {
  display: none;
}

.status-grid .weather-icon-rain,
.status-grid .weather-icon-storm {
  color: var(--river);
}

.status-grid .weather-icon-snow,
.status-grid .weather-icon-fog,
.status-grid .weather-icon-cloud,
.status-grid .weather-icon-cloudSun {
  color: var(--muted);
}

/* Final hub widget polish: iOS-style content rows instead of input-like pills. */
.hub-card {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(31, 61, 43, 0.12);
}

.hub-card .card-label {
  color: var(--ink);
  font-weight: 850;
  letter-spacing: 0.035em;
}

.hub-card h3 {
  color: var(--blue-link);
  font-weight: 850;
}

.hub-card .hub-stat-label {
  color: rgba(28, 37, 34, 0.72);
  font-weight: 550;
}

.hub-card__items,
.mini-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  padding-bottom: 0.34rem !important;
  border-top: 1px solid rgba(31, 61, 43, 0.1);
  border-bottom: 1px solid rgba(31, 61, 43, 0.1);
}

.hub-card .mini-list span,
.hub-card .mini-list-link,
.mini-list span,
.mini-list-link {
  min-height: 1.78rem !important;
  padding: 0.44rem 0 !important;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 560;
  line-height: 1.18;
  border-top: 1px solid rgba(31, 61, 43, 0.1);
  border-right: 0 !important;
  border-left: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.hub-card .mini-list span:first-child,
.hub-card .mini-list-link:first-child,
.mini-list span:first-child,
.mini-list-link:first-child {
  border-top: 0;
}

.mini-list span::before,
.mini-list-link::before {
  display: none !important;
}

.hub-card .mini-list-link:hover,
.hub-card .mini-list-link:focus-visible {
  color: var(--blue-link);
  text-decoration: none;
}

.hub-card .card-link {
  font-weight: 800;
}

@media (max-width: 699px) {
  .hub-card {
    grid-template-rows: auto auto auto;
    min-height: 204px;
    max-height: 204px;
    gap: 0.62rem;
    padding: 0.78rem;
  }

  .hub-card-main {
    grid-template-columns: 2.18rem minmax(0, 1fr);
  }

  .hub-icon {
    width: 2.18rem;
    height: 2.18rem;
  }

  .hub-card__items,
  .mini-list {
    align-self: stretch;
    padding-bottom: 0.42rem !important;
  }

  .hub-card .mini-list span,
  .hub-card .mini-list-link,
  .mini-list span,
  .mini-list-link {
    font-size: 0.74rem;
    min-height: 1.68rem !important;
    padding-top: 0.38rem !important;
    padding-bottom: 0.38rem !important;
  }

  .hub-card .card-link {
    margin-top: 0.08rem !important;
  }
}

/* Final hub stat line: keep count and descriptor together. */
.hub-card:has(.hub-stat-label) h3 {
  display: inline;
  margin-right: 0.22rem;
  vertical-align: baseline;
}

.hub-card .hub-stat-label {
  display: inline;
  margin: 0;
  position: relative;
  top: 0;
  vertical-align: baseline;
  white-space: nowrap;
}

@media (max-width: 699px) {
  .hub-card:has(.hub-stat-label) h3 {
    margin-right: 0.16rem;
  }

  .hub-card .hub-stat-label {
    font-size: 0.7rem;
    line-height: 1;
    top: 0;
  }
}

/* Secondary navigation drawer. */
body.menu-open {
  overflow: hidden;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: stretch;
  justify-items: stretch;
}

.menu-overlay[hidden] {
  display: none;
}

.menu-backdrop {
  position: absolute;
  inset: 0;
  padding: 0;
  background: rgba(13, 28, 24, 0.34);
  border: 0;
  cursor: pointer;
}

.menu-drawer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 100dvh;
  align-self: stretch;
  justify-self: end;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: rgba(250, 251, 247, 0.98);
  border-left: 1px solid rgba(31, 61, 43, 0.12);
  box-shadow: -18px 0 36px rgba(13, 28, 24, 0.14);
}

.menu-drawer-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: calc(1rem + env(safe-area-inset-top)) 1rem 0.85rem;
  border-bottom: 1px solid rgba(31, 61, 43, 0.1);
}

.menu-drawer-header p {
  margin: 0 0 0.2rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.menu-drawer-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.65rem;
  line-height: 1;
}

.menu-close {
  background: rgba(255, 255, 255, 0.72);
}

.menu-drawer-body {
  display: grid;
  gap: 1.2rem;
  align-content: start;
  overflow-y: auto;
  padding: 1rem 1rem calc(1.25rem + env(safe-area-inset-bottom));
}

.menu-section {
  display: grid;
  gap: 0.45rem;
}

.menu-section h3 {
  margin: 0;
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.menu-section nav {
  display: grid;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(31, 61, 43, 0.1);
  border-radius: 14px;
}

.menu-link {
  min-height: 3.15rem;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.72rem 0.82rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 760;
  text-decoration: none;
  border-top: 1px solid rgba(31, 61, 43, 0.08);
}

.menu-link:first-child {
  border-top: 0;
}

.menu-link:hover,
.menu-link:focus-visible {
  color: var(--blue-link);
  background: rgba(237, 244, 239, 0.92);
  outline: none;
}

.menu-link:focus-visible {
  box-shadow: inset 0 0 0 3px rgba(38, 125, 137, 0.24);
}

.menu-link-icon {
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  color: var(--forest);
  background: rgba(43, 111, 90, 0.1);
  border-radius: 10px;
}

.menu-link-icon .icon,
.menu-link > .icon {
  width: 1rem;
  height: 1rem;
}

.menu-link > .icon {
  color: var(--blue-link);
}

.menu-link-disabled {
  color: rgba(28, 37, 34, 0.42);
  cursor: not-allowed;
}

.menu-link-disabled .menu-link-icon {
  color: rgba(28, 37, 34, 0.42);
  background: rgba(91, 103, 98, 0.08);
}

@media (min-width: 560px) {
  .menu-drawer {
    width: min(390px, calc(100vw - 2rem));
  }
}

/* Developer Integration Status */
.integration-status-page {
  display: grid;
  gap: 1rem;
  padding-bottom: 2rem;
}

.integration-status-header {
  margin-bottom: 0;
}

.integration-overall {
  align-self: start;
}

.integration-dev-note {
  padding: 0.7rem 0.85rem;
  color: #5b5141;
  background: #fff7da;
  border: 1px solid rgba(189, 121, 20, 0.35);
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 650;
}

.devtools-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.3rem;
  background: rgba(31, 61, 43, 0.06);
  border: 1px solid rgba(31, 61, 43, 0.09);
  border-radius: 14px;
}

.devtools-tab {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.75rem;
  color: var(--forest);
  text-decoration: none;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 800;
}

.devtools-tab:hover,
.devtools-tab:focus-visible,
.devtools-tab.active {
  color: #fff;
  background: var(--forest);
}

.devtools-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 0.65rem;
  align-items: end;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(31, 61, 43, 0.1);
  border-radius: 14px;
}

.devtools-filters label {
  display: grid;
  gap: 0.28rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.devtools-filters input,
.devtools-filters select {
  width: 100%;
  min-height: 2.35rem;
  padding: 0.45rem 0.55rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(31, 61, 43, 0.16);
  border-radius: 9px;
  font: inherit;
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: none;
}

.devtools-filters label:first-child {
  grid-column: span 2;
}

.source-detail {
  display: grid;
  gap: 0.8rem;
  padding: 0.95rem;
  background: #fff;
  border: 1px solid rgba(31, 61, 43, 0.13);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(31, 61, 43, 0.05);
}

.source-detail-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.9rem;
}

.source-detail-heading h3 {
  margin: 0.15rem 0 0;
  color: var(--ink);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
}

.source-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.65rem;
  margin: 0;
}

.source-detail-grid div {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
  padding: 0.65rem;
  background: rgba(246, 248, 244, 0.9);
  border: 1px solid rgba(31, 61, 43, 0.07);
  border-radius: 10px;
}

.source-detail-grid dt {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.source-detail-grid dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 0.83rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.source-detail-wide {
  grid-column: 1 / -1;
}

.source-actions,
.source-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.small-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
  color: #fff;
  background: var(--forest);
  border: 1px solid var(--forest);
  border-radius: 999px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 850;
  cursor: pointer;
}

.small-action.secondary {
  color: var(--forest);
  background: #fff;
}

.small-action:hover,
.small-action:focus-visible {
  transform: translateY(-1px);
}

.small-action:disabled {
  color: rgba(91, 103, 98, 0.65);
  background: rgba(91, 103, 98, 0.12);
  border-color: rgba(91, 103, 98, 0.18);
  cursor: not-allowed;
  transform: none;
}

.source-action-note {
  color: var(--muted);
  font-size: 0.76rem;
}

.source-registry-table {
  min-width: 1250px;
}

.source-registry-table a {
  color: var(--forest);
}

.taxonomy-grid,
.system-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.taxonomy-card,
.system-summary-card {
  padding: 0.9rem;
  background: #fff;
  border: 1px solid rgba(31, 61, 43, 0.1);
  border-radius: 14px;
}

.taxonomy-card h3 {
  margin: 0 0 0.75rem;
  color: var(--ink);
  font-size: 1rem;
}

.taxonomy-list {
  display: grid;
  gap: 0.4rem;
}

.taxonomy-list div,
.system-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.taxonomy-list span,
.system-summary-card span {
  color: var(--muted);
  font-size: 0.82rem;
}

.taxonomy-list strong,
.system-summary-card strong {
  color: var(--forest);
  font-size: 1rem;
}

.system-summary-card {
  min-height: 4.4rem;
}

.system-summary-card strong {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.integration-group {
  display: grid;
  gap: 0.65rem;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(31, 61, 43, 0.11);
  border-radius: 14px;
}

.integration-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.integration-group-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

.integration-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(31, 61, 43, 0.1);
  border-radius: 10px;
}

.integration-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: #ffffff;
}

.integration-table th,
.integration-table td {
  padding: 0.62rem 0.7rem;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid rgba(31, 61, 43, 0.09);
  font-size: 0.78rem;
  line-height: 1.28;
}

.integration-table th {
  color: var(--forest);
  background: rgba(237, 244, 239, 0.72);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-top: 0;
}

.integration-table td strong,
.integration-table td span {
  display: block;
}

.integration-table td span {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.65rem;
  padding: 0.22rem 0.52rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 850;
  white-space: nowrap;
}

.status-pill-healthy {
  color: #155f32;
  background: #e6f5eb;
}

.status-pill-warning {
  color: #8a5200;
  background: #fff0c2;
}

.status-pill-error {
  color: #9b1c1c;
  background: #ffe1de;
}

.status-pill-manual,
.status-pill-notIntegrated {
  color: #49514d;
  background: #edf0ec;
}

.status-pill-unknown {
  color: var(--muted);
  background: rgba(91, 103, 98, 0.12);
}

.integration-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.community-coverage {
  display: grid;
  gap: 0.85rem;
}

.coverage-intro {
  padding: 0.95rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(31, 61, 43, 0.1);
  border-radius: 14px;
}

.coverage-intro h3 {
  margin: 0.15rem 0 0.35rem;
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.coverage-intro p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.coverage-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.coverage-metric {
  min-height: 4rem;
}

.coverage-detail {
  border-color: rgba(43, 127, 141, 0.18);
}

.coverage-table {
  min-width: 1380px;
}

.coverage-table .status-pill {
  justify-content: flex-start;
}

.coverage-table td {
  vertical-align: middle;
}

.coverage-operations-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.coverage-panel {
  min-width: 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(31, 61, 43, 0.12);
  border-radius: 12px;
}

.coverage-panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.coverage-panel h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

.coverage-panel p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.coverage-panel-note,
.coverage-panel-foot {
  color: var(--muted);
  font-size: 0.76rem;
}

.coverage-list,
.coverage-relationship-list,
.coverage-priority-queue {
  margin: 0;
  padding: 0;
  list-style: none;
}

.coverage-list li,
.coverage-relationship-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.42rem 0;
  border-top: 1px solid rgba(31, 61, 43, 0.1);
  font-size: 0.84rem;
}

.coverage-list strong,
.coverage-relationship-list strong {
  color: var(--green);
}

.coverage-gap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.coverage-gap-grid li {
  min-height: 4rem;
  padding: 0.55rem;
  border: 1px solid rgba(31, 61, 43, 0.1);
  background: rgba(238, 242, 233, 0.58);
}

.coverage-gap-grid strong,
.coverage-gap-grid span {
  display: block;
}

.coverage-gap-grid strong {
  color: var(--green);
  font-size: 1.25rem;
}

.coverage-gap-grid span {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.2;
}

.coverage-priority-queue {
  counter-reset: coverage-queue;
}

.coverage-priority-queue li {
  counter-increment: coverage-queue;
  position: relative;
  padding: 0.48rem 0 0.48rem 1.65rem;
  border-top: 1px solid rgba(31, 61, 43, 0.1);
}

.coverage-priority-queue li::before {
  content: counter(coverage-queue);
  position: absolute;
  left: 0;
  top: 0.55rem;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
}

.coverage-priority-queue a {
  display: grid;
  gap: 0.15rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.84rem;
}

.coverage-priority-queue span {
  color: var(--muted);
  font-size: 0.76rem;
}

.coverage-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.7rem;
}

.coverage-methods span {
  padding: 0.2rem 0.42rem;
  border-radius: 99px;
  background: #edf0ec;
  color: var(--muted);
  font-size: 0.72rem;
}

.coverage-methods b {
  color: var(--green);
}

.coverage-pipeline {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, auto);
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(31, 61, 43, 0.1);
  color: var(--muted);
  font-size: 0.77rem;
}

.coverage-pipeline strong { color: var(--ink); }

.coverage-heatmap-panel { grid-column: 1 / -1; }

.coverage-heatmap-wrap {
  overflow-x: auto;
}

.coverage-heatmap {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.76rem;
}

.coverage-heatmap th,
.coverage-heatmap td {
  padding: 0.38rem;
  border-top: 1px solid rgba(31, 61, 43, 0.1);
  text-align: center;
}

.coverage-heatmap th:first-child {
  min-width: 180px;
  text-align: left;
}

.coverage-heatmap th a { color: var(--ink); }

.heat-cell {
  display: block;
  min-width: 2.5rem;
  padding: 0.35rem 0.25rem;
  border-radius: 4px;
  color: var(--ink);
  font-size: 0.66rem;
  line-height: 1.15;
  text-decoration: none;
}

.heat-cell span { display: block; }
.heat-complete { background: #dbe9d7; }
.heat-partial { background: #fff0c7; }
.heat-missing { background: #f4ded9; }

.coverage-score { color: var(--green); }

@media (max-width: 720px) {
  .coverage-operations-grid { grid-template-columns: 1fr; }
  .coverage-gap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coverage-pipeline { grid-template-columns: 1fr 1fr; }
  .coverage-pipeline strong { grid-column: 1 / -1; }
}

/* Main Project Merrimack header inside the Platform app. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: block;
  min-height: 0;
  padding: 0;
  background: rgba(247, 248, 244, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  font-weight: 800;
  color: var(--forest);
}

.site-header .brand img {
  width: 320px;
  max-width: none;
  max-height: none;
  height: auto;
  object-fit: contain;
  padding: 0.45rem 0;
}

.nav-links {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a {
  color: inherit;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--forest);
}

.nav-links a.active {
  border: 1px solid var(--forest);
  border-radius: 6px;
  background: var(--forest);
  color: #ffffff;
  padding: 0.55rem 0.8rem;
}

.nav-links a.active:hover {
  background: var(--forest-dark);
  color: #ffffff;
}

.nav-links .donate-link {
  border: 1px solid var(--forest);
  border-radius: 6px;
  color: var(--forest);
  padding: 0.55rem 0.8rem;
}

.site-header .header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-header .icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--forest);
  cursor: pointer;
}

.site-header .icon-button:hover {
  border-color: rgba(31, 61, 43, 0.35);
  background: var(--cream);
}

.beta-label {
  border: 1px solid rgba(31, 61, 43, 0.2);
  border-radius: 999px;
  color: var(--forest);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-left: 0.25rem;
  padding: 0.08rem 0.32rem;
  text-transform: uppercase;
  vertical-align: middle;
}

.nav-links a.active .beta-label {
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
}

.menu-link-label {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.platform-footer {
  background: var(--forest);
  color: #e8eee3;
  margin-top: clamp(2rem, 5vw, 4rem);
  padding: 2rem 0;
  text-align: center;
}

.platform-footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.platform-footer a {
  color: #ffffff;
  font-weight: 800;
}

.platform-footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  justify-content: center;
}

.platform-nonprofit-id {
  max-width: 760px;
  margin: 0.75rem auto 0;
  color: rgba(232, 238, 227, 0.82);
  font-size: 0.86rem;
  line-height: 1.5;
}

/* Internal component gallery. This route is intentionally not linked in navigation. */
.design-system-page {
  padding-top: 1.5rem;
}

.design-system-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.design-system-sample {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.design-system-sample > h2 {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .design-system-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .nav {
    align-items: center;
    padding: 0.75rem 0;
  }

  .site-header .brand img {
    width: 220px;
  }

  .municipal-detail > .detail-navigation { top: 120px; }
  .event-detail-page > .detail-navigation,
  .organization-detail-page > .detail-navigation,
  .volunteer-org-profile > .detail-navigation { top: 120px; }
  .civic-quickview-modal .municipal-detail > .detail-navigation { top: 0; }
}

/* Community Dashboard V2 feed prototype. Enabled only by the development route. */
.dashboard-v2-status,
.dashboard-v2-layout {
  width: min(1280px, calc(100% - 40px));
  margin-inline: auto;
}

.dashboard-v2-status {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(0, 2.2fr);
  gap: 1.25rem;
  align-items: stretch;
  padding: 1.5rem 0 1.1rem;
  border-bottom: 1px solid var(--line);
}

.dashboard-v2-place {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.dashboard-v2-place h1 {
  margin: 0.28rem 0 0;
  color: var(--forest);
  font-size: 2.6rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.dashboard-v2-place .home-parent-brand,
.place-header .home-parent-brand {
  margin: 0.42rem 0 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.dashboard-v2-place .home-tagline,
.place-header .home-tagline {
  margin: 0.22rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
}

.dashboard-v2-date {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.dashboard-v2-date .icon { width: 1rem; height: 1rem; }

.dashboard-v2-status-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.dashboard-v2-status-tile,
.dashboard-v2-alert-summary {
  min-height: 126px;
  margin: 0;
  padding: 0.9rem;
  border-radius: 8px;
  box-shadow: none;
}

.dashboard-v2-status-tile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--forest);
  text-decoration: none;
}

.dashboard-v2-status-tile.status-state-advisory { background: #fff8e8; border-color: #d8a13d; }
.dashboard-v2-status-tile.status-state-warning,
.dashboard-v2-status-tile.status-state-critical { background: #fff1ef; border-color: #cf725e; }
.dashboard-v2-status-icon { display: grid; width: 2rem; height: 2rem; place-items: center; color: var(--teal); }
.dashboard-v2-status-icon .icon,
.dashboard-v2-status-icon img { width: 2rem; height: 2rem; object-fit: contain; }
.dashboard-v2-status-copy { min-width: 0; }
.dashboard-v2-status-copy strong,
.dashboard-v2-status-copy small,
.dashboard-v2-status-copy em { display: block; }
.dashboard-v2-status-copy strong { font-size: 0.88rem; }
.dashboard-v2-status-copy small { overflow: hidden; margin-top: 0.1rem; color: var(--muted); font-size: 0.8rem; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-v2-status-copy em { margin-top: 0.18rem; color: var(--ink); font-size: 0.7rem; font-style: normal; font-weight: 800; }

.dashboard-v2-alert-summary {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--forest);
  text-decoration: none;
}

.dashboard-v2-alert-summary.has-alerts {
  border-color: #cb8c1d;
  background: #fff7df;
}

.dashboard-v2-alert-summary > .icon { width: 1.5rem; height: 1.5rem; color: #a45b00; }
.dashboard-v2-alert-summary strong,
.dashboard-v2-alert-summary small { display: block; }
.dashboard-v2-alert-summary strong { font-size: 0.85rem; }
.dashboard-v2-alert-summary small { margin-top: 0.14rem; color: var(--muted); font-size: 0.76rem; }
.dashboard-v2-alert-summary .feed-card-arrow { margin-left: auto; }

.dashboard-v2-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr);
  gap: clamp(1.5rem, 3vw, 3.5rem);
  align-items: start;
  padding-top: 1.65rem;
}

.dashboard-v2-feed-heading,
.dashboard-v2-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.dashboard-v2-feed-heading { margin-bottom: 1.25rem; }
.dashboard-v2-feed-heading h2 { margin: 0.15rem 0 0; color: var(--forest); font-size: 1.6rem; }
.dashboard-v2-section-heading h2 { margin: 0; color: var(--forest); font-size: 1.12rem; }
.dashboard-feed-section + .dashboard-feed-section { margin-top: 1.75rem; }
.dashboard-feed-empty { margin: 0.7rem 0 0; padding: 0.85rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }

@media (max-width: 480px) {
  .dashboard-v2-section-heading { align-items: center; gap: 0.4rem; }
  .dashboard-v2-section-heading h2 { flex: 0 1 auto; white-space: nowrap; font-size: 1rem; }
  .dashboard-v2-section-heading .text-link { flex: 0 0 auto; white-space: nowrap; font-size: 0.9rem; }
}

.feed-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
  margin-top: 0.7rem;
}

.feed-card {
  min-width: 0;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(31, 61, 43, 0.18);
  border-radius: 10px;
  background: #fefefc;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.feed-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.feed-card-link:focus-visible,
.dashboard-v2-explore-link:focus-visible,
.dashboard-v2-alert-summary:focus-visible {
  outline: 3px solid rgba(45, 129, 150, 0.55);
  outline-offset: 3px;
}

.feed-card:hover {
  border-color: rgba(31, 61, 43, 0.3);
  box-shadow: 0 6px 16px rgba(31, 61, 43, 0.08);
  transform: translateY(-1px);
}
.feed-card-link:hover { background: #fbfcf9; }

.feed-card-media {
  position: relative;
  display: grid;
  min-height: 126px;
  overflow: hidden;
  place-items: center;
  background: #eef2ea;
}

.feed-card-media img {
  width: 100%;
  height: 100%;
  min-height: 126px;
  object-fit: cover;
}

.feed-card-media.feed-media-logo { padding: 1rem; background: #f5f7f1; }
.feed-card-media.feed-media-logo img { object-fit: contain; }
.feed-card-media.feed-media-icon { min-height: 0; padding: 1rem 1rem 0; color: var(--teal); }
.feed-card-media.feed-media-icon .icon { width: 1.7rem; height: 1.7rem; }
.feed-media-fallback { display: none; color: var(--teal); }
.feed-media-failed img { display: none; }
.feed-media-failed .feed-media-fallback { display: grid; place-items: center; min-height: 126px; }
.feed-media-failed .feed-media-fallback .icon { width: 2rem; height: 2rem; }

.feed-card-copy { padding: 0.8rem 0.9rem 0.9rem; }
.feed-card-kicker { display: block; margin-bottom: 0.3rem; color: var(--teal); font-size: 0.7rem; font-weight: 850; letter-spacing: 0.05em; text-transform: uppercase; }
.feed-card h3 { margin: 0; color: var(--forest); font-size: 1.05rem; line-height: 1.2; }
.feed-card p { display: -webkit-box; overflow: hidden; margin: 0.45rem 0 0; color: var(--muted); font-size: 0.88rem; line-height: 1.42; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.feed-bulletin-context { display: flex; flex-wrap: wrap; gap: 0.3rem 0.6rem; margin-top: 0.6rem; color: var(--forest); font-size: 0.73rem; font-weight: 750; line-height: 1.35; }
.feed-bulletin-context span + span { color: var(--muted); font-weight: 650; }
.feed-card-meta { margin-top: 0.7rem; color: var(--muted); font-size: 0.74rem; font-weight: 650; }

.editorial-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.editorial-group-full { display: contents; }
.editorial-group-wide { display: block; grid-column: 1 / -1; }
.editorial-group-stack-beside-portrait { grid-column: 1 / -1; }
.editorial-stack { display: grid; gap: 1rem; align-content: start; }
.editorial-portrait { min-width: 0; }
.editorial-portrait-first .editorial-portrait { grid-column: 2; grid-row: 1; }
.editorial-portrait-first .editorial-stack { grid-column: 1; grid-row: 1; }

.feed-card-feature { display: block; }
.feed-card-feature .feed-card-link { display: grid; grid-template-columns: minmax(200px, 0.92fr) minmax(0, 1.08fr); }
.feed-card-feature .feed-card-media { min-height: 235px; }
.feed-card-feature .feed-card-media img { min-height: 235px; }
.feed-card-feature .feed-card-copy { display: flex; flex-direction: column; justify-content: center; padding: 1.25rem; }
.feed-card-feature h3 { font-size: clamp(1.35rem, 2vw, 1.85rem); }

.feed-card-compact { display: block; }
.feed-card-compact .feed-card-link { display: block; min-height: 0; }
.feed-card-compact .feed-card-copy { padding: 0.75rem 0.85rem 0.8rem; }
.feed-card-compact .feed-card-media { min-height: 0; padding: 0.7rem 0.85rem 0; place-items: start; background: transparent; }
.feed-card-compact .feed-card-media img { display: none; }
.feed-card-compact.feed-card-shape-landscape .feed-card-media { padding: 0; background: #eef2ea; }
.feed-card-compact.feed-card-shape-landscape .feed-card-media img { display: block; min-height: 0; aspect-ratio: 16 / 9; }
.feed-card-compact .feed-card-media.feed-media-logo { padding: 0.7rem 0.85rem 0; background: transparent; }
.feed-card-compact .feed-card-media.feed-media-logo img { display: block; width: 34px; height: 34px; min-height: 34px; }
.feed-card-compact .feed-card-kicker { margin-bottom: 0.28rem; font-size: 0.63rem; }
.feed-card-compact h3 { font-size: 0.98rem; }
.feed-card-compact p { display: none; }
.feed-card-compact .feed-card-meta { margin-top: 0.4rem; font-size: 0.7rem; }
.feed-card-compact .feed-card-arrow { display: none; }
.feed-card-arrow { display: inline-grid; flex: 0 0 auto; place-items: center; margin-right: 0.85rem; color: var(--teal); }
.feed-card-arrow .icon { width: 1rem; height: 1rem; }

.feed-card-status {
  display: block;
  border-color: #d9a34a;
  background: #fffaf0;
}

.feed-card-status-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  min-height: 82px;
  padding: 0.8rem 0;
}

.feed-card-status-icon {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  margin-left: 0.9rem;
  place-items: center;
  border-radius: 50%;
  background: #f7e4bd;
  color: #8a5705;
}

.feed-card-status-icon .icon { width: 1.3rem; height: 1.3rem; }
.feed-card-status .feed-card-copy { padding: 0; }
.feed-card-status .feed-card-kicker { margin-bottom: 0.18rem; color: #8a5705; }
.feed-card-status h3 { font-size: 1.02rem; }
.feed-card-status p { margin-top: 0.22rem; font-size: 0.82rem; -webkit-line-clamp: 2; }
.feed-card-status .feed-card-meta { margin-top: 0.35rem; font-size: 0.7rem; }

.feed-card-shape-portrait .feed-card-media,
.feed-card-shape-portrait .feed-card-media img { min-height: 0; aspect-ratio: 4 / 5; }
.feed-card-shape-landscape .feed-card-media,
.feed-card-shape-landscape .feed-card-media img { min-height: 0; aspect-ratio: 16 / 9; }
.feed-card-shape-square .feed-card-media,
.feed-card-shape-square .feed-card-media img { min-height: 0; aspect-ratio: 1; }

.feed-debug { padding: 0.45rem 0.9rem 0.7rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.72rem; }
.feed-debug summary { cursor: pointer; color: var(--teal); font-weight: 800; }
.feed-debug dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.35rem 0.75rem; margin: 0.6rem 0 0; }
.feed-debug dl div { min-width: 0; }.feed-debug dt { font-weight: 800; }.feed-debug dd { margin: 0.1rem 0 0; overflow-wrap: anywhere; }

.dashboard-v2-explore {
  position: sticky;
  /* Keep the entire Explore block below the persistent site header. */
  top: calc(8.5rem + 1rem);
  align-self: start;
}
.dashboard-v2-explore-inner { border-top: 3px solid var(--forest); padding-top: 0.8rem; }
.dashboard-v2-explore nav { display: grid; margin-top: 0.7rem; border-top: 1px solid var(--line); }
.dashboard-v2-explore-link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 0.65rem; min-height: 52px; border-bottom: 1px solid var(--line); color: var(--forest); font-weight: 800; text-decoration: none; }
.dashboard-v2-explore-link:hover { color: var(--teal); }
.dashboard-v2-explore-icon { display: grid; width: 1.75rem; height: 1.75rem; place-items: center; border-radius: 50%; background: #edf2ed; color: var(--forest); }
.dashboard-v2-explore-icon .icon { width: 1rem; height: 1rem; }
.dashboard-v2-explore-link small {
  margin-left: 0.25rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
}
.dashboard-v2-explore-link .feed-card-arrow { margin: 0; }

.dashboard-v2-quiet { padding: 1.15rem; border: 1px solid var(--line); border-radius: 8px; background: #f4f7f1; }.dashboard-v2-quiet h2 { margin: 0; color: var(--forest); }.dashboard-v2-quiet p { margin-bottom: 0; color: var(--muted); }

/* Weather Portal: uses the shared page shell with a wider portal-specific maximum. */
.page-shell-weather {
  width: min(1180px, calc(100% - 64px));
}

.weather-portal { display: grid; gap: 2.25rem; min-width: 0; }
.weather-tabs { margin-top: 0.1rem; }
.weather-notice {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  padding: 0.75rem 0.9rem;
  border: 1px solid #d9b967;
  border-radius: 8px;
  background: #fff8e8;
  color: #62501c;
  font-size: 0.9rem;
}
.weather-notice strong { color: #4d3e15; }
.weather-notice-error { border-color: #dfa49c; background: #fff2f0; color: #7a3027; }
.weather-current-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 1rem 1.5rem;
  padding: clamp(1rem, 3vw, 1.6rem);
  border: 1px solid rgba(31, 61, 43, 0.18);
  border-radius: 8px;
  background: #f4f8f1;
}
.weather-current-primary { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.weather-current-icon {
  display: grid;
  flex: 0 0 auto;
  width: 4rem;
  height: 4rem;
  place-items: center;
  border-radius: 50%;
  background: #fff5d8;
  color: #a56608;
}
.weather-current-icon .icon { width: 2.3rem; height: 2.3rem; }
.weather-current-card h3 { margin: 0.15rem 0 0; color: var(--forest); font-size: clamp(2rem, 5vw, 3rem); line-height: 0.95; }
.weather-current-card p { margin: 0.45rem 0 0; color: var(--muted); }
.weather-current-range { display: flex; align-items: center; gap: 0.9rem; color: var(--muted); font-size: 0.9rem; white-space: nowrap; }
.weather-current-range strong { display: block; color: var(--forest); font-size: 1.2rem; }
.weather-metric-grid { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.7rem; }
.weather-metric { min-width: 0; padding: 0.7rem; border-radius: 6px; background: rgba(255, 255, 255, 0.7); }
.weather-metric span { display: block; color: var(--muted); font-size: 0.72rem; font-weight: 750; }
.weather-metric strong { display: block; margin-top: 0.2rem; color: var(--forest); font-size: 0.92rem; overflow-wrap: anywhere; }
.weather-current-card footer { grid-column: 1 / -1; color: var(--muted); font-size: 0.78rem; }
.weather-current-card footer .text-link { font-size: inherit; }
.weather-section { min-width: 0; padding-top: 0.15rem; }
.weather-section-heading { margin-bottom: 1rem; }
.weather-section-heading h3 { margin: 0.12rem 0 0; color: var(--forest); font-size: 1.3rem; }
.weather-hourly-rail {
  max-width: 100%;
  overflow-x: auto;
  padding: 0.1rem 0.15rem 0.55rem;
  scrollbar-color: var(--teal) transparent;
  scroll-snap-type: x proximity;
}
.weather-hourly-rail:focus-visible { outline: 3px solid rgba(44, 123, 142, 0.65); outline-offset: 3px; }
.weather-hourly-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 120px;
  gap: 0.75rem;
  width: max-content;
}
.weather-hourly-item {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  min-height: 132px;
  padding: 0.75rem 0.6rem;
  border: 1px solid rgba(31, 61, 43, 0.14);
  border-radius: 7px;
  background: #fff;
  text-align: center;
  scroll-snap-align: start;
}
.weather-hourly-item > span:first-child, .weather-hourly-item small { color: var(--muted); font-size: 0.75rem; }
.weather-hourly-item strong { color: var(--forest); font-size: 1.15rem; }
.weather-mini-icon { color: var(--teal); }
.weather-mini-icon .icon { width: 1.35rem; height: 1.35rem; }
.weather-daily-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; min-width: 0; }
.weather-daily-card {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  min-width: 0;
  min-height: 180px;
  padding: 0.8rem;
  border: 1px solid rgba(31, 61, 43, 0.14);
  border-radius: 7px;
  background: #fff;
}
.weather-daily-card > span:first-child { color: var(--muted); font-size: 0.75rem; font-weight: 750; }
.weather-daily-icon { color: var(--teal); }.weather-daily-icon .icon { width: 1.55rem; height: 1.55rem; }
.weather-daily-card strong { color: var(--forest); font-size: 1.15rem; }.weather-daily-card small, .weather-daily-card em { color: var(--muted); font-size: 0.75rem; font-style: normal; line-height: 1.35; }.weather-daily-card em { margin-top: auto; }
.weather-empty-inline { margin: 0; padding: 0.9rem; border: 1px dashed var(--line); border-radius: 7px; color: var(--muted); }
.weather-alert-list { display: grid; gap: 0.8rem; }
.weather-alert-card { padding: 1rem; border: 1px solid rgba(31, 61, 43, 0.17); border-left: 5px solid var(--teal); border-radius: 7px; background: #fff; }
.weather-alert-card h4 { margin: 0.25rem 0 0; color: var(--forest); font-size: 1.1rem; }.weather-alert-card > p { color: var(--muted); line-height: 1.45; }.weather-alert-level { color: var(--teal); font-size: 0.72rem; font-weight: 850; text-transform: uppercase; }.weather-alert-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; margin: 0.8rem 0; }.weather-alert-card dt { color: var(--muted); font-size: 0.72rem; font-weight: 750; }.weather-alert-card dd { margin: 0.15rem 0 0; color: var(--forest); font-size: 0.85rem; }.weather-alert-instruction { padding: 0.75rem; border-radius: 6px; background: #f5f7f1; }.weather-alert-instruction strong { color: var(--forest); }.weather-alert-instruction p { margin: 0.3rem 0 0; color: var(--muted); white-space: pre-line; }.weather-alert-critical { border-left-color: #a63128; background: #fff7f5; }.weather-alert-warning { border-left-color: #b45e12; background: #fffaf1; }.weather-alert-advisory { border-left-color: #b58b21; }
.weather-alert-empty { display: flex; gap: 0.8rem; align-items: center; padding: 1.1rem; border: 1px solid rgba(31, 61, 43, 0.15); border-radius: 7px; background: #f5f8f2; }.weather-alert-empty > span { display: grid; flex: 0 0 auto; width: 2.5rem; height: 2.5rem; place-items: center; border-radius: 50%; background: #e6efe1; color: var(--forest); }.weather-alert-empty .icon { width: 1.3rem; height: 1.3rem; }.weather-alert-empty h4 { margin: 0; color: var(--forest); }.weather-alert-empty p { margin: 0.3rem 0 0; color: var(--muted); }.weather-source-note { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.78rem; }

@media (max-width: 1100px) {
  .page-shell-weather { width: min(1120px, calc(100% - 48px)); }
  .weather-daily-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .dashboard-v2-status { grid-template-columns: 1fr; }
  .dashboard-v2-status-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-v2-layout { grid-template-columns: 1fr; }
  .dashboard-v2-explore { display: none; }
  .editorial-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .page-shell-weather { width: min(100% - 40px, 1120px); }
  .weather-daily-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .dashboard-v2-status,
  .dashboard-v2-layout { width: min(calc(100% - 28px), 1180px); }
  .dashboard-v2-status { padding-top: 1rem; gap: 0.9rem; }
  .dashboard-v2-place h1 { font-size: clamp(1.6rem, 7.2vw, 2rem); }
  .dashboard-v2-status-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-v2-alert-summary { grid-column: 1 / -1; min-height: 48px; padding: 0.6rem 0.75rem; }
  .dashboard-v2-status-tile { min-height: 96px; padding: 0.7rem; }
  .dashboard-v2-status-icon,
  .dashboard-v2-status-icon .icon,
  .dashboard-v2-status-icon img { width: 1.5rem; height: 1.5rem; }
  .dashboard-v2-layout { padding-top: 1.1rem; }
  .feed-card-grid,
  .editorial-group,
  .editorial-group-full { grid-template-columns: 1fr; }
  .editorial-portrait-first .editorial-portrait,
  .editorial-portrait-first .editorial-stack { grid-column: auto; grid-row: auto; }
  .feed-card-feature .feed-card-link { grid-template-columns: 1fr; }
  .feed-card-feature .feed-card-media,
  .feed-card-feature .feed-card-media img { min-height: 190px; }
  .feed-card-feature .feed-card-copy { padding: 1rem; }
  .feed-card-feature h3 { font-size: 1.35rem; }
  .feed-card-status-link { gap: 0.65rem; min-height: 76px; }
  .feed-card-status-icon { width: 2.1rem; height: 2.1rem; margin-left: 0.75rem; }
  .dashboard-v2-feed-heading h2 { font-size: 1.4rem; }
  .feed-debug dl { grid-template-columns: 1fr; }
  .page-shell-weather { width: min(100% - 32px, 1120px); }
  .weather-current-card { grid-template-columns: 1fr; }.weather-current-range { justify-content: start; }.weather-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.weather-daily-grid { grid-template-columns: 1fr; }.weather-daily-card { min-height: 150px; }.weather-alert-card dl { grid-template-columns: 1fr; }
}

/* V1.1 responsive homepage refresh. The portal card system remains unchanged. */
.dashboard-v2-status,
.dashboard-v2-layout,
.dashboard-v2-status + .updates-panel {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.dashboard-v2-status { grid-template-columns: minmax(210px, 0.8fr) minmax(360px, 1.2fr); }
.dashboard-v2-status-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dashboard-v2-status + .updates-panel { margin-top: 1rem; }
.dashboard-v2-layout { display: block; padding-bottom: 2.5rem; }
.dashboard-v2-feed { min-width: 0; }
.dashboard-feed-section + .dashboard-feed-section { margin-top: 2.1rem; }

.feed-section-bulletin {
  display: flex;
  gap: 0.8rem;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0.08rem 0.12rem 0.65rem;
  scroll-padding-inline: 0.12rem;
  scroll-snap-type: inline mandatory;
  scrollbar-color: var(--teal) transparent;
}
.feed-section-bulletin > * {
  flex: 0 0 calc((100% - 2.4rem) / 4);
  scroll-snap-align: start;
}
.feed-section-news,
.feed-section-today,
.feed-section-upcoming { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }

.homepage-event-pager { position: relative; }
.homepage-event-page-item { min-width: 0; }
.homepage-event-page-item .homepage-event-card { height: 100%; }
.homepage-event-pager-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 0.7rem;
}
.homepage-event-pager-button {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--teal);
  cursor: pointer;
}
.homepage-event-pager-button .icon { width: 0.82rem; height: 0.82rem; }
.homepage-event-pager-previous .icon { transform: rotate(180deg); }
.homepage-event-pager-button:hover:not(:disabled) { border-color: var(--teal); background: #edf5f2; }
.homepage-event-pager-button:focus-visible { outline: 3px solid rgba(45, 129, 150, 0.38); outline-offset: 2px; }
.homepage-event-pager-button:disabled { opacity: 0.45; cursor: default; }
.homepage-event-pager-side-control { position: absolute; z-index: 2; top: calc((40rem + 1rem) / 2); box-shadow: 0 4px 12px rgba(31, 61, 43, 0.16); }
.homepage-event-pager-previous { left: 0; transform: translate(-45%, -50%); }
.homepage-event-pager-next { right: 0; transform: translate(45%, -50%); }
.homepage-event-pager-side-control[hidden] { display: none; }
.homepage-event-pager-position { min-width: 2.8rem; color: var(--muted); font-size: 0.78rem; font-weight: 750; text-align: center; }

.dashboard-v2-section-actions { display: flex; align-items: center; gap: 0.45rem; }
.homepage-civic-tabs,
.homepage-news-tabs {
  display: flex;
  gap: 0.35rem;
  max-width: 100%;
  margin-top: 0.55rem;
  overflow-x: auto;
  padding: 0.05rem 0.05rem 0.2rem;
  scrollbar-width: thin;
}
.homepage-civic-tab,
.homepage-news-tab {
  flex: 0 0 auto;
  min-height: 2rem;
  padding: 0.35rem 0.62rem;
  border: 1px solid rgba(31, 61, 43, 0.18);
  border-radius: 999px;
  background: var(--surface);
  color: var(--forest);
  font-size: 0.75rem;
  font-weight: 850;
  cursor: pointer;
}
.homepage-civic-tab.active,
.homepage-news-tab.active { border-color: var(--forest); background: var(--forest); color: var(--surface); }
.homepage-civic-tab:focus-visible,
.homepage-news-tab:focus-visible { outline: 3px solid rgba(45, 129, 150, 0.38); outline-offset: 2px; }
.homepage-civic-carousel { position: relative; margin-top: 0.7rem; }
.homepage-civic-carousel .feed-section-bulletin { margin-top: 0; }
.homepage-rail-button { position: absolute; z-index: 2; top: 50%; display: grid; width: 2.25rem; height: 2.25rem; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgba(31, 61, 43, 0.16); color: var(--teal); cursor: pointer; }
.homepage-rail-button[hidden] { display: none; }
.homepage-rail-previous { left: 0; transform: translate(-45%, -50%); }
.homepage-rail-next { right: 0; transform: translate(45%, -50%); }
.homepage-rail-button:hover { border-color: var(--teal); background: #edf5f2; }
.homepage-rail-button:focus-visible { outline: 3px solid rgba(45, 129, 150, 0.38); outline-offset: 2px; }
.homepage-rail-button .icon { width: 0.9rem; height: 0.9rem; }
.homepage-rail-previous .icon { transform: rotate(180deg); }

.homepage-civic-card { min-height: 0; border-radius: 8px; }
.homepage-civic-card .feed-card-link { display: block; min-height: 118px; height: 100%; padding: 0.72rem 0.78rem; }
.homepage-civic-identity { display: flex; align-items: center; gap: 0.46rem; min-width: 0; }
.homepage-civic-identity > strong { overflow: hidden; color: var(--muted); font-size: 0.67rem; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.homepage-civic-icon { display: grid; width: 1.7rem; height: 1.7rem; place-items: center; border-radius: 50%; background: #edf2ed; color: var(--teal); }
.homepage-civic-icon { flex: 0 0 auto; }
.homepage-civic-icon .icon { width: 0.92rem; height: 0.92rem; }
.homepage-civic-icon.has-logo { overflow: hidden; border: 1px solid var(--line); background: #fff; }
.homepage-civic-icon.has-logo img { width: 100%; height: 100%; object-fit: contain; }
.homepage-civic-copy { display: block; min-width: 0; margin-top: 0.5rem; }
.homepage-civic-card h3 { display: -webkit-box; overflow: hidden; font-size: 0.92rem; line-height: 1.17; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.homepage-civic-date { display: block; margin-top: 0.42rem; color: var(--forest); font-size: 0.72rem; font-weight: 800; line-height: 1.25; }
.homepage-civic-location { display: flex; overflow: hidden; align-items: center; gap: 0.25rem; margin-top: 0.27rem; color: var(--muted); font-size: 0.68rem; font-weight: 650; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.homepage-civic-location .icon { flex: 0 0 auto; width: 0.75rem; height: 0.75rem; }

.homepage-news-card,
.homepage-event-card { display: flex; flex-direction: column; }
.homepage-news-card .feed-card-link { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
.homepage-event-card .feed-card-link { height: 100%; }
.homepage-news-media,
.homepage-news-media img { min-height: 0; aspect-ratio: 16 / 9; }
.homepage-news-card .feed-card-copy { display: block; flex: 1 1 auto; padding: 0.75rem 0.82rem 0.82rem; }
.homepage-news-card h3 { display: -webkit-box; overflow: hidden; min-height: 2.5em; font-size: 1rem; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.homepage-news-card-footer,
.portal-news-card-footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}
.homepage-news-card-footer { padding: 0 0.82rem 0.45rem; }
.homepage-news-card-footer .feed-card-meta,
.portal-news-card-footer .meta-row {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.homepage-news-card-footer .share-action,
.portal-news-card-footer .share-action {
  flex: 0 0 auto;
  min-height: 2.75rem;
  font-size: 0.73rem;
  transform: translateY(1px);
}
.homepage-news-card-footer .share-action:focus-visible,
.portal-news-card-footer .share-action:focus-visible {
  outline: 3px solid rgba(45, 129, 150, 0.42);
  outline-offset: 2px;
}
.homepage-news-mobile { display: none; }

.homepage-event-media { flex: 0 0 10rem; height: 10rem; min-height: 0; }
.homepage-event-media img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.homepage-event-card { height: 20rem; }
.homepage-event-card .feed-card-copy { display: block; padding: 0.78rem 0.85rem 0.88rem; }
.homepage-event-time { display: block; margin-bottom: 0.28rem; color: var(--teal); font-size: 0.73rem; font-weight: 850; }
.homepage-event-card h3 { display: -webkit-box; overflow: hidden; font-size: 1.02rem; line-height: 1.22; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.homepage-event-host { display: -webkit-box; overflow: hidden; margin-top: 0.42rem; color: var(--muted); font-size: 0.76rem; font-weight: 650; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.homepage-event-taxonomy { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.58rem; }
.homepage-event-taxonomy em { padding: 0.2rem 0.38rem; border-radius: 4px; background: #edf2e9; color: var(--forest); font-size: 0.63rem; font-style: normal; font-weight: 800; line-height: 1.1; }

.event-quickview-overlay,
.civic-quickview-overlay { align-items: flex-start; overflow-y: auto; padding-block: clamp(1rem, 5vh, 3rem); }
.event-quickview-modal,
.civic-quickview-modal { width: min(920px, calc(100% - 32px)); max-height: none; overflow: visible; padding: 0.7rem; }
.event-detail-quickview-page { padding: 0; }
.event-detail-quickview-page .event-detail-panel { margin-top: 0; }
.civic-quickview-modal .municipal-detail { padding: 0; }
.civic-agenda { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.civic-agenda h3 { margin: 0 0 0.55rem; color: var(--forest); font-size: 1rem; }
.civic-agenda ol { margin: 0; padding-left: 1.35rem; color: var(--ink); }
.civic-agenda li { padding: 0.15rem 0; line-height: 1.4; }
.municipal-detail-card { gap: 0.9rem; }
.municipal-detail-card > * { margin-block: 0; }
.municipal-detail-heading { min-width: 0; }
.municipal-detail-heading h2 { overflow-wrap: anywhere; }
.municipal-detail-actions { margin-top: 0.8rem; }
.municipal-detail-meta { align-items: flex-start; }
.municipal-detail-meta span { min-width: 0; }
.municipal-detail-description { line-height: 1.55; }
.municipal-update-body,
.municipal-source-verification { padding-top: 0.95rem; border-top: 1px solid var(--line); }
.municipal-update-body h3,
.municipal-source-verification h3 { margin: 0 0 0.55rem; color: var(--forest); font-size: 1rem; }
.municipal-update-body > div { color: var(--ink); line-height: 1.65; overflow-wrap: anywhere; white-space: pre-line; }
.municipal-source-verification { display: grid; gap: 0.45rem; }
.municipal-source-verification p { color: var(--muted); font-size: 0.88rem; line-height: 1.4; }

@media (min-width: 901px) {
  .homepage-civic-card { height: 148px; }
  .homepage-civic-card .feed-card-link { min-height: 0; }
  .feed-section-today,
  .feed-section-upcoming { grid-template-rows: repeat(2, 20rem); min-height: 41rem; }
  .homepage-event-page-item { height: 20rem; }
  .homepage-event-page-item:not(.is-active) { display: none; }
  .homepage-news-desktop-grid .homepage-news-card { height: 19.25rem; }
  .homepage-news-desktop-grid .homepage-news-card .feed-card-link { display: flex; flex-direction: column; }
  .homepage-news-desktop-grid .homepage-news-media { flex: 0 0 auto; }
  .homepage-news-desktop-grid .feed-card-copy { display: flex; flex: 1 1 auto; flex-direction: column; }
  .homepage-news-desktop-grid .homepage-news-card-footer .feed-card-meta { margin-top: 0; }
}

@media (max-width: 900px) {
  .dashboard-v2-status,
  .dashboard-v2-layout,
  .dashboard-v2-status + .updates-panel { width: min(100% - 36px, 1180px); }
  .dashboard-v2-status { grid-template-columns: 1fr; }
  .dashboard-v2-status-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-feed-section + .dashboard-feed-section { margin-top: 1.55rem; }
  .feed-section-news { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .feed-section-bulletin,
  .feed-section-today,
  .feed-section-upcoming {
    display: flex;
    gap: 0.75rem;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 0.05rem 0.12rem 0.7rem;
    scroll-padding-inline: 0.12rem;
    scroll-snap-type: inline proximity;
    scrollbar-color: var(--teal) transparent;
  }
  .feed-section-bulletin > *,
  .feed-section-today > *,
  .feed-section-upcoming > * { flex: 0 0 46%; scroll-snap-align: start; }
  .feed-section-bulletin > * { flex-basis: 46%; }
  .homepage-civic-card { height: 132px; }
  .homepage-civic-card .feed-card-link { min-height: 0; }
  .feed-section-bulletin:focus-visible,
  .feed-section-today:focus-visible,
  .feed-section-upcoming:focus-visible { outline: 3px solid rgba(45, 129, 150, 0.55); outline-offset: 3px; }
  .homepage-news-card .feed-card-copy { padding: 0.62rem 0.68rem 0.7rem; }
  .homepage-event-card { height: 18.5rem; }
  .homepage-event-media { flex-basis: 8.5rem; height: 8.5rem; }
  .homepage-event-pager-meta,
  .homepage-event-pager-side-control { display: none; }
  .homepage-rail-button { display: none; }
  .homepage-news-card .feed-card-kicker { font-size: 0.61rem; }
  .homepage-news-card h3 { min-height: 4.6em; font-size: 0.91rem; line-height: 1.16; -webkit-line-clamp: 4; }
  .homepage-news-card .feed-card-meta { margin-top: 0.38rem; font-size: 0.65rem; }
}

@media (max-width: 620px) {
  .dashboard-v2-status,
  .dashboard-v2-layout,
  .dashboard-v2-status + .updates-panel { width: min(calc(100% - 28px), 1180px); }
  .dashboard-v2-status { padding-top: 0.15rem; }
  .dashboard-v2-status-tile { min-height: 88px; }
  .dashboard-v2-layout { padding-top: 1rem; }
  .dashboard-v2-section-heading h2 { font-size: 1.02rem; }
  .dashboard-v2-section-heading .text-link { font-size: 0.78rem; }
  .homepage-news-desktop-grid { display: none; }
  .homepage-news-mobile { display: block; min-width: 0; margin-top: 0.55rem; }
  .homepage-news-mobile-carousel {
    display: flex;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .homepage-news-mobile-carousel::-webkit-scrollbar { display: none; }
  .homepage-news-mobile-carousel[hidden],
  .homepage-news-page-indicator[hidden],
  .homepage-news-mobile-empty[hidden] { display: none; }
  .homepage-news-mobile-carousel:focus-visible { outline: 3px solid rgba(45, 129, 150, 0.42); outline-offset: 3px; }
  .homepage-news-mobile-page {
    display: grid;
    flex: 0 0 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 0.62rem;
    min-width: 0;
    height: 32rem;
    padding: 0.05rem;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .homepage-news-mobile-page .homepage-news-card {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-width: 0;
    height: 100%;
    overflow: hidden;
  }
  .homepage-news-mobile-page .homepage-news-card .feed-card-link {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
    overflow: hidden;
  }
  .homepage-news-mobile-page .homepage-news-media { flex: 0 0 auto; }
  .homepage-news-mobile-page .feed-card-copy {
    min-height: 0;
    overflow: hidden;
    padding-bottom: 0.35rem;
  }
  .homepage-news-mobile-page .homepage-news-card h3,
  .portal-news-card .portal-card-copy h3 {
    display: -webkit-box;
    overflow: hidden;
    min-height: 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
  .homepage-news-card-footer,
  .portal-news-card-footer {
    box-sizing: border-box;
    align-items: flex-start;
    justify-content: flex-end;
    flex-direction: column;
    gap: 0.04rem;
    min-height: 4.1rem;
    padding-top: 0.25rem;
    padding-bottom: 0.28rem;
  }
  .homepage-news-card-footer .feed-card-meta,
  .portal-news-card-footer .meta-row {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }
  .homepage-news-card-footer .share-action,
  .portal-news-card-footer .share-action { transform: none; }
  .homepage-news-page-indicator { display: flex; align-items: center; justify-content: center; gap: 0.68rem; min-height: 0.42rem; margin: 0.38rem auto 0; }
  .homepage-news-page-group { display: inline-flex; align-items: center; gap: 0.22rem; }
  .homepage-news-page-dot { width: 0.36rem; height: 0.36rem; border: 1px solid #aab8b1; border-radius: 50%; background: transparent; }
  .homepage-news-page-dot.active { border-color: var(--forest); background: var(--forest); }
  .homepage-news-mobile-empty { margin-top: 0.55rem; }
  .feed-section-bulletin,
  .feed-section-today,
  .feed-section-upcoming { gap: 0.68rem; }
  .feed-section-bulletin > *,
  .feed-section-today > *,
  .feed-section-upcoming > * { flex-basis: 78%; }
  .homepage-civic-card .feed-card-link { min-height: 112px; padding: 0.65rem 0.7rem; }
  .homepage-civic-card h3 { font-size: 0.9rem; }
  .homepage-event-card { height: 15.75rem; }
  .homepage-event-media { flex-basis: 7.1rem; height: 7.1rem; }
  .homepage-event-card .feed-card-copy { padding: 0.62rem 0.7rem 0.68rem; }
  .homepage-event-time { margin-bottom: 0.2rem; font-size: 0.69rem; }
  .homepage-event-card h3 { font-size: 0.98rem; -webkit-line-clamp: 2; }
  .homepage-event-host { font-size: 0.72rem; }
  .homepage-event-taxonomy { margin-top: 0.4rem; }
  .event-quickview-overlay,
  .civic-quickview-overlay { padding: 0; }
  .event-quickview-modal,
  .civic-quickview-modal { width: 100%; min-height: 100dvh; border-radius: 0; }
  .municipal-portal { gap: 0.65rem; }
  .municipal-portal .volunteer-portal-header { padding-block: 0.65rem; }
  .municipal-portal .volunteer-portal-header p { display: none; }
  .municipal-date-group { margin-top: 0.75rem; }
}

/* Compact homepage conditions row. Status data, alert states, and destinations
   continue to come from the existing Weather and River hub objects. */
.dashboard-v2-status {
  display: block;
  padding: 1rem 0 0.75rem;
}

.dashboard-v2-info-row {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  margin-top: 0.65rem;
}

.dashboard-v2-date {
  flex: 0 0 auto;
  gap: 0.3rem;
  margin-top: 0;
  padding-right: 0.8rem;
  font-size: 0.8rem;
  white-space: nowrap;
}

.dashboard-v2-date .icon {
  width: 0.9rem;
  height: 0.9rem;
}

.dashboard-v2-status-cards {
  display: flex;
  flex: 1 1 auto;
  grid-template-columns: none;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.dashboard-v2-status-tile,
.dashboard-v2-status-tile.status-state-normal,
.dashboard-v2-status-tile.status-state-advisory,
.dashboard-v2-status-tile.status-state-warning,
.dashboard-v2-status-tile.status-state-critical,
.dashboard-v2-status-tile.status-state-loading,
.dashboard-v2-status-tile.status-state-unavailable {
  min-height: 44px;
  margin: 0;
  padding: 0.2rem 0.8rem;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-v2-status-tile {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 0.38rem;
  min-width: 0;
}

.dashboard-v2-status-tile.status-state-advisory {
  border-left-color: #d8a13d;
  background: linear-gradient(90deg, rgba(216, 161, 61, 0.13), transparent 88%);
  color: #7b5408;
}

.dashboard-v2-status-tile.status-state-warning,
.dashboard-v2-status-tile.status-state-critical {
  border-left-color: #cf725e;
  background: linear-gradient(90deg, rgba(207, 114, 94, 0.14), transparent 88%);
  color: #8d3728;
}

.dashboard-v2-status-tile.status-state-loading,
.dashboard-v2-status-tile.status-state-unavailable {
  background: transparent;
}

.dashboard-v2-status-icon,
.dashboard-v2-status-icon .icon,
.dashboard-v2-status-icon img {
  width: 1.5rem;
  height: 1.5rem;
}

.dashboard-v2-status-copy {
  display: grid;
  line-height: 1.05;
}

.dashboard-v2-status-copy strong {
  font-size: 0.82rem;
}

.dashboard-v2-status-weather .dashboard-v2-status-copy {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  white-space: nowrap;
}

.dashboard-v2-status-weather .dashboard-v2-status-copy strong {
  font-size: 1.22rem;
  line-height: 1;
}

.dashboard-v2-status-copy small {
  max-width: 14ch;
  margin-top: 0.08rem;
  font-size: 0.68rem;
}

.dashboard-v2-status-copy em,
.dashboard-v2-status-weather .dashboard-v2-status-copy em {
  margin-top: 0;
  font-size: 0.66rem;
}

.dashboard-v2-status-tile:hover {
  background-color: rgba(31, 61, 43, 0.04);
  transform: none;
}

.dashboard-v2-status-tile.status-state-advisory:hover {
  background: linear-gradient(90deg, rgba(216, 161, 61, 0.18), transparent 88%);
}

.dashboard-v2-status-tile.status-state-warning:hover,
.dashboard-v2-status-tile.status-state-critical:hover {
  background: linear-gradient(90deg, rgba(207, 114, 94, 0.19), transparent 88%);
}

.dashboard-v2-status-tile:focus-visible {
  outline: 3px solid rgba(38, 125, 137, 0.36);
  outline-offset: 2px;
}

@media (max-width: 620px) {
  .dashboard-v2-status {
    padding-top: 0.15rem;
  }

  .dashboard-v2-info-row {
    flex-wrap: nowrap;
    row-gap: 0.3rem;
    margin-top: 0.5rem;
  }

  .dashboard-v2-date {
    padding-right: 0.5rem;
    font-size: 0.7rem;
  }

  .dashboard-v2-status-cards {
    flex: 1 1 auto;
    gap: 0;
    overflow: hidden;
  }

  .dashboard-v2-status-tile,
  .dashboard-v2-status-tile.status-state-normal,
  .dashboard-v2-status-tile.status-state-advisory,
  .dashboard-v2-status-tile.status-state-warning,
  .dashboard-v2-status-tile.status-state-critical,
  .dashboard-v2-status-tile.status-state-loading,
  .dashboard-v2-status-tile.status-state-unavailable {
    min-height: 42px;
    padding: 0.2rem 0.38rem;
  }

  .dashboard-v2-status-icon,
  .dashboard-v2-status-icon .icon,
  .dashboard-v2-status-icon img {
    width: 1.3rem;
    height: 1.3rem;
  }

  .dashboard-v2-status-weather .dashboard-v2-status-copy strong {
    font-size: 1.05rem;
  }

  .dashboard-v2-status-copy small,
  .dashboard-v2-status-copy em,
  .dashboard-v2-status-weather .dashboard-v2-status-copy em {
    font-size: 0.58rem;
  }

  .dashboard-v2-status-river .dashboard-v2-status-copy {
    min-width: 0;
  }

  .dashboard-v2-status-river {
    flex: 1 1 auto;
  }
}

.search-results-heading button.text-link,
.search-group-heading button.text-link {
  padding: 0.2rem;
  border: 0;
  background: transparent;
  color: var(--river);
  cursor: pointer;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  white-space: nowrap;
}

/* Shared external-content route. Publishers retain control of whether their pages
   can be framed; the browser fallback remains available at all times. */
.external-viewer {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: calc(100dvh - 10rem);
  margin: 1.5rem auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.external-viewer-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(7rem, 1fr) minmax(0, 2fr) minmax(7rem, 1fr);
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: #f7f8f4;
}
.external-viewer-done { justify-self: start; -webkit-tap-highlight-color: transparent; }
.external-viewer-done:focus { outline: 0; }
.external-viewer-done:focus-visible { outline: 3px solid rgba(44, 123, 142, 0.65); outline-offset: 3px; }
.external-viewer-done .icon { width: 1rem; height: 1rem; }
.external-viewer-title-wrap { min-width: 0; text-align: center; }
.external-viewer-title-wrap .eyebrow { display: block; margin-bottom: 0.08rem; }
.external-viewer-title-wrap h1 { margin: 0; overflow: hidden; color: var(--forest); font-size: 1rem; text-overflow: ellipsis; white-space: nowrap; }
.external-viewer-actions { display: flex; justify-content: end; gap: 0.35rem; }
.external-viewer-actions .icon-button { -webkit-tap-highlight-color: transparent; }
.external-viewer-actions .icon-button:focus { outline: 0; }
.external-viewer-actions .icon-button:focus-visible { outline: 3px solid rgba(44, 123, 142, 0.65); outline-offset: 3px; }
.external-viewer-frame-wrap { position: relative; min-height: 0; background: #f3f5f1; }
.external-viewer-frame-wrap.is-loading::before { position: absolute; z-index: 1; top: 0.75rem; left: 0.75rem; width: 0.9rem; height: 0.9rem; border: 2px solid rgba(44, 123, 142, 0.22); border-top-color: var(--teal); border-radius: 50%; content: ""; animation: external-viewer-spin 0.8s linear infinite; }
.external-viewer-frame-wrap:not(.is-loading) .external-viewer-status { display: none; }
.external-viewer-frame { display: block; width: 100%; min-height: 66vh; border: 0; background: #fff; }
@keyframes external-viewer-spin { to { transform: rotate(360deg); } }
.external-viewer-fallback { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.7rem 1rem; border-top: 1px solid var(--line); background: #fbfcf9; color: var(--muted); font-size: 0.8rem; }
.external-viewer-fallback .text-button { display: inline-flex; align-items: center; gap: 0.35rem; }
.external-viewer-fallback .icon { width: 0.9rem; height: 0.9rem; }
.external-viewer-error { display: grid; place-items: center; min-height: 48vh; padding: 1rem; }

@media (max-width: 620px) {
  .external-viewer { min-height: calc(100dvh - 6rem); margin: 0; border-right: 0; border-left: 0; border-radius: 0; }
  .external-viewer-toolbar { grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.45rem; padding: 0.65rem 0.7rem; }
  .external-viewer-done span { display: none; }
  .external-viewer-title-wrap { text-align: left; }
  .external-viewer-title-wrap .eyebrow { display: none; }
  .external-viewer-title-wrap h1 { font-size: 0.88rem; }
  .external-viewer-actions { gap: 0.15rem; }
  .external-viewer-actions .icon-button { width: 2rem; height: 2rem; }
  .external-viewer-frame { min-height: calc(100dvh - 10.4rem); }
  .external-viewer-fallback { align-items: flex-start; padding: 0.65rem 0.7rem; }
}

html.external-viewer-open,
body.external-viewer-open { overflow: hidden; overscroll-behavior: none; }
html.platform-starting { overflow-anchor: none; }
html.platform-starting body { overflow-anchor: none; }

@media (max-width: 767px) {
  .external-viewer-mobile {
    position: fixed;
    inset: 0;
    z-index: 1000;
    width: 100dvw;
    height: 100dvh;
    min-height: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    padding-top: env(safe-area-inset-top);
  }
  .external-viewer-mobile .external-viewer-toolbar {
    grid-template-columns: 2.25rem minmax(0, 1fr) auto;
    gap: 0.45rem;
    min-height: 3.25rem;
    padding: 0.55rem max(0.7rem, env(safe-area-inset-right)) 0.55rem max(0.7rem, env(safe-area-inset-left));
  }
  .external-viewer-mobile .external-viewer-title-wrap { text-align: center; }
  .external-viewer-mobile .external-viewer-title-wrap h1 { font-size: 0.88rem; }
  .external-viewer-mobile .external-viewer-frame-wrap { height: 100%; }
  .external-viewer-mobile .external-viewer-frame { min-height: 0; height: 100%; }
}

@media (max-width: 900px) {
  /* Safari zooms focused form controls below 16px. Keep portal search stable
     without disabling resident-controlled page zoom. */
  [data-portal-search],
  [data-events-search],
  [data-arts-search] {
    font-size: 16px;
  }
}

@media (max-width: 720px) {
  .search-results-heading h2 { font-size: 1rem; }
  .search-results-heading button.text-link,
  .search-group-heading button.text-link { font-size: 0.82rem; }
  .search-result-card .search-result-summary { display: none; }
}

/* Canonical Events v1.1 */
.events-portal-header { margin-bottom: 1rem; }
.event-filter-shell {
  margin-bottom: 0.9rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf9;
}
.event-filter-section-label {
  margin: 0.15rem 0 0.35rem;
  color: var(--river);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.event-filter-shell > .events-toolbar:not(.events-when-toolbar) { display: block; }
.events-view-tabs { display: flex; gap: 0.4rem; margin: -0.25rem 0 0.75rem; }
.events-view-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 8rem;
  min-height: 2.75rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--forest);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.events-view-tab.active { border-color: var(--forest); background: var(--forest); color: #fff; }
.events-view-tab.active .volunteer-tab-count { background: rgba(255, 255, 255, 0.18); color: #fff; }
.events-view-tab:focus-visible { outline: 3px solid rgba(47, 111, 126, 0.38); outline-offset: 2px; }
.event-filter-shell .events-search-field { display: block; width: 100%; }
.events-toolbar {
  display: grid;
  grid-template-columns: minmax(15rem, 1fr) auto minmax(9rem, 0.35fr);
  align-items: end;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}
.events-when-toolbar { grid-template-columns: 1fr; }
.events-toolbar label,
.events-primary-filter > label,
.events-more-filter-grid label { display: grid; gap: 0.3rem; color: var(--muted); font-size: 0.76rem; font-weight: 700; }
.events-search-control { position: relative; display: block; }
.events-search-control .icon { position: absolute; top: 50%; left: 0.75rem; width: 1rem; height: 1rem; transform: translateY(-50%); color: var(--river); pointer-events: none; }
.events-search-control input { width: 100%; padding-left: 2.25rem; }
.events-date-ranges { display: flex; overflow-x: auto; gap: 0.25rem; padding-bottom: 1px; scrollbar-width: thin; }
.events-date-ranges button {
  min-height: 2.65rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--forest);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.events-date-ranges button.active { border-color: var(--forest); background: var(--forest); color: #fff; }
.events-date-ranges button:focus-visible,
.events-date-range-trigger:focus-visible,
.events-date-range-day:focus-visible,
.events-date-range-header button:focus-visible,
.events-primary-filter summary:focus-visible,
.events-load-more:focus-visible { outline: 3px solid rgba(47, 111, 126, 0.38); outline-offset: 2px; }
.events-secondary-controls {
  display: grid;
  grid-template-columns: minmax(12rem, 16rem) minmax(9rem, 12rem);
  align-items: start;
  gap: 0.65rem;
}
.events-date-range-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--forest);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}
.events-date-range-trigger .icon { flex: 0 0 1rem; width: 1rem; height: 1rem; }
.events-date-range-trigger span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.events-date-range-trigger.has-range { border-color: #9dbcae; background: var(--soft-green); }
.events-primary-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
  min-width: 0;
}
.events-primary-filter select,
.events-toolbar input { min-height: 2.75rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); }
.events-more-filters { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.events-more-filters summary { min-height: 2.75rem; padding: 0.65rem 0.8rem; color: var(--forest); font-size: 0.82rem; font-weight: 800; cursor: pointer; }
.events-more-filter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.65rem; padding: 0 0.8rem 0.8rem; }
.events-primary-filter:has(.events-more-filters[open]) {
  position: static;
  grid-column: 1 / -1;
}
.events-when-toolbar:has(.events-more-filters[open]) {
  grid-template-columns: 1fr;
}
.events-more-filters[open] {
  width: 100%;
}
@media (min-width: 901px) {
  /* Keep date selection compact while letting the grouped taxonomy controls use the available desktop width. */
  .events-secondary-controls { grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr); }
  .events-more-filter-grid label > select { width: 100%; min-width: 0; }
}
.events-date-range-panel {
  width: min(100%, 24rem);
  margin: 0 0 0.8rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(26, 65, 48, 0.08);
}
.events-date-range-header {
  display: grid;
  grid-template-columns: 2.5rem 1fr 2.5rem;
  align-items: center;
  gap: 0.35rem;
}
.events-date-range-header h3 { margin: 0; text-align: center; font-size: 0.95rem; }
.events-date-range-header button {
  display: grid;
  min-height: 2.5rem;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--forest);
  font: inherit;
  font-size: 1.3rem;
  cursor: pointer;
}
.events-date-range-help { min-height: 1.2rem; margin: 0.55rem 0; color: var(--muted); font-size: 0.75rem; text-align: center; }
.events-date-range-weekdays,
.events-date-range-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.2rem; }
.events-date-range-weekdays span { padding: 0.25rem 0; color: var(--muted); font-size: 0.68rem; font-weight: 750; text-align: center; }
.events-date-range-day,
.events-date-range-empty { aspect-ratio: 1; min-width: 0; }
.events-date-range-day {
  display: grid;
  padding: 0;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}
.events-date-range-day:hover { border-color: #b8cfc4; background: var(--soft-green); }
.events-date-range-day.is-today { border-color: #9dbcae; font-weight: 800; }
.events-date-range-day.is-in-range {
  border-color: #bdd3c7;
  border-radius: 3px;
  background: #dfece4;
  color: var(--forest);
  font-weight: 750;
}
.events-date-range-day.is-start,
.events-date-range-day.is-end { border-color: var(--forest); background: var(--forest); color: #fff; font-weight: 800; }
.events-date-range-actions { display: flex; justify-content: flex-end; gap: 0.45rem; margin-top: 0.75rem; }
.events-date-range-actions button { min-height: 2.4rem; }
.events-date-range-actions button:disabled { cursor: not-allowed; opacity: 0.45; }
.events-clear { align-self: center; min-height: 2.65rem; }
.events-results-heading { margin: 0.4rem 0 0.75rem; color: var(--muted); font-size: 0.85rem; }
.events-results-heading strong { color: var(--forest); }
.active-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-top: 0.65rem; }
.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid #b8cfc4;
  border-radius: 999px;
  background: var(--soft-green);
  color: var(--forest);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 750;
  cursor: pointer;
}
.active-filter-chip span { font-size: 1rem; line-height: 1; }
.arts-event-filters > .events-search-field { margin-bottom: 0.8rem; }
.arts-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.arts-filter-grid select { width: 100%; min-height: 2.75rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); }
.events-load-more { display: block; margin: 1rem auto 0; border-color: var(--forest); background: var(--forest); color: #fff; }
.events-load-more:hover { background: #153b2b; color: #fff; }
.municipal-card-heading { display: flex; align-items: center; gap: 0.55rem; min-width: 0; }
.municipal-card-logo { display: grid; flex: 0 0 2.25rem; width: 2.25rem; height: 2.25rem; overflow: hidden; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; }
.municipal-card-logo img { width: 100%; height: 100%; object-fit: contain; }
.municipal-card > p:not(.source-line) { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.events-grid .portal-event-card { min-width: 0; }
.search-result-taxonomy { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.search-result-taxonomy span {
  display: inline-flex;
  width: fit-content;
  padding: 0.16rem 0.42rem;
  border-radius: 999px;
  background: var(--soft-green);
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .events-toolbar { grid-template-columns: 1fr; align-items: stretch; }
  .events-date-ranges { order: 2; }
  .events-secondary-controls { order: 3; }
  .events-primary-filter { grid-template-columns: 1fr; }
  .events-more-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .events-clear { justify-self: start; }
  .municipal-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
  }
  .municipal-tabs .volunteer-tab {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 620px) {
  .volunteer-parent-page { padding-inline: 0.7rem; }
  .volunteer-parent-page-header { grid-template-columns: 1fr; padding: 1rem; }
  .volunteer-parent-page-image { order: -1; min-height: 0; }
  .volunteer-parent-page-image img { width: min(150px, 55vw); max-height: 150px; }
  .events-portal { padding-inline: 0.7rem; }
  .events-portal-header { margin-bottom: 0.4rem; padding: 0.65rem 0.75rem; }
  .events-portal-header .eyebrow,
  .events-portal-header .portal-home-link,
  .events-portal-header p { display: none; }
  .events-portal-header h2 { font-size: 1.55rem; }
  .events-view-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.35rem; margin-bottom: 0.45rem; }
  .events-view-tab { width: 100%; min-width: 0; }
  .event-filter-shell { padding: 0; margin-bottom: 0.4rem; border: 0; background: transparent; }
  .event-filter-section-label { margin: 0.1rem 0 0.25rem; }
  .event-filter-section-label:first-child { display: none; }
  .events-toolbar { gap: 0.35rem; margin-bottom: 0.4rem; }
  .events-toolbar input { min-height: 2.5rem; }
  .events-date-ranges {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }
  .events-date-ranges button { min-width: 0; min-height: 2.75rem; white-space: normal; }
  .events-date-ranges button:first-child { grid-column: 1 / -1; }
  .events-secondary-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.4rem;
  }
  .events-date-range-trigger,
  .events-more-filters summary { width: 100%; min-height: 2.75rem; }
  .events-date-range-panel { width: 100%; padding: 0.65rem; box-shadow: none; }
  .events-date-range-day { min-height: 2.45rem; aspect-ratio: auto; }
  .events-date-range-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; }
  .events-primary-filter { min-width: 0; width: 100%; }
  .events-primary-filter:has(.events-more-filters[open]) { grid-column: 1 / -1; }
  .events-more-filters summary { display: grid; place-items: center; padding: 0.45rem; }
  .events-grid { grid-template-columns: 1fr; gap: 0.6rem; }
  .events-more-filters summary { min-height: 2.75rem; }
  .events-more-filter-grid { grid-template-columns: 1fr; }
  .active-filter-row .text-button { min-height: 2rem; }
  .events-grid .portal-event-card { min-height: 0; }
  .events-grid .portal-card-main { grid-template-columns: 5.4rem minmax(0, 1fr); grid-template-rows: auto; min-height: 6.6rem; }
  .events-grid .portal-card-media { min-height: 0; height: 100%; aspect-ratio: auto; }
  .events-grid .portal-card-copy { gap: 0.28rem; padding: 0.6rem; }
  .events-grid .portal-card-copy,
  .events-grid .content-card-top,
  .events-grid .meta-row,
  .events-grid .source-line { min-width: 0; max-width: 100%; }
  .events-grid .portal-card-copy h3 { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 0.95rem; line-height: 1.18; }
  .events-grid .portal-card-summary { display: none; }
  .events-grid .portal-event-card .portal-card-actions {
    display: grid;
    min-height: 5.5rem;
    padding: 0.25rem 0.6rem 0.6rem;
    border-top: 1px solid var(--line);
    font-size: 0.78rem;
  }
  .events-grid .content-card-top .severity-chip:nth-child(n+3),
  .events-grid .tag-row span:nth-child(n+3) { display: none; }
  .events-grid .meta-row { gap: 0.35rem; font-size: 0.73rem; }
  .events-grid .meta-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .events-grid .source-line,
  .events-grid .content-card-top { overflow: hidden; }
  .events-grid .source-line { text-overflow: ellipsis; white-space: nowrap; }
  .events-grid .content-card-top { flex-wrap: nowrap; }
  .events-grid .content-card-top > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .volunteer-portal { gap: 0.65rem; }
  .volunteer-portal-header { padding: 0.8rem; }
  .volunteer-portal-header .eyebrow,
  .volunteer-portal-header .portal-home-link { display: none; }
  .volunteer-portal-header h2 { font-size: 1.5rem; }
  .volunteer-portal-header p { margin-top: 0.15rem; font-size: 0.82rem; }
  .volunteer-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.25rem; overflow: visible; }
  .volunteer-tab { justify-content: center; gap: 0.18rem; min-width: 0; min-height: 2.75rem; padding: 0.35rem 0.18rem; font-size: 0.72rem; white-space: nowrap; }
  .volunteer-tab-label-full { display: none; }
  .volunteer-tab-label-short { display: inline; min-width: 0; }
  .volunteer-tab-count { min-width: 1.15rem; min-height: 1.15rem; padding-inline: 0.22rem; font-size: 0.64rem; }
  .volunteer-tools { gap: 0.45rem; }
  .volunteer-search-field { width: 100%; }
  .volunteer-filter-panel { width: 100%; }
  .volunteer-card { padding: 0.75rem; }
  .volunteer-card > p { display: none; }
  .volunteer-card .tag-row span:nth-child(n+3) { display: none; }
  .volunteer-view-toggle,
  .volunteer-date-search { display: none; }
  .volunteer-event-card { min-height: 0; }
  .volunteer-event-card .portal-card-main { grid-template-columns: 4.75rem minmax(0, 1fr); min-height: 6.25rem; }
  .volunteer-event-card .portal-card-media { min-height: 0; height: 100%; aspect-ratio: auto; }
  .volunteer-event-card .portal-card-copy { gap: 0.28rem; padding: 0.6rem; }
  .volunteer-event-card .portal-card-copy h3 { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 0.95rem; line-height: 1.18; }
  .volunteer-event-card .portal-card-summary,
  .volunteer-event-card .portal-card-actions { display: none; }
  .volunteer-event-card .content-card-top .severity-chip:nth-child(n+3),
  .volunteer-event-card .tag-row span:nth-child(n+3) { display: none; }
  .volunteer-event-card .meta-row { gap: 0.3rem; font-size: 0.72rem; }
  .volunteer-event-card .meta-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* Civic's four resident-facing destinations use a readable two-row grid. */
  .municipal-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
  }
  .municipal-tabs .volunteer-tab {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.35rem 0.4rem;
    border-radius: 8px;
    white-space: normal;
  }
  .municipal-tabs .volunteer-tab-label { min-width: 0; line-height: 1.12; }
  .municipal-filter-panel { width: fit-content; max-width: 100%; }
  .municipal-filter-panel[open] { width: 100%; }
}

/* Lowell Sun badge stays on media; news copy uses shared title spacing. */
.homepage-news-media,
.portal-news-card .portal-card-media {
  position: relative;
}
.news-subscription {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  min-width: 85px;
  padding: 0 8px;
  border-radius: 3px 0 0 0;
  background: var(--forest);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}
@media (max-width: 767px) {
  .homepage-news-card .news-subscription,
  .portal-news-card .news-subscription {
    height: 18px;
    min-width: 0;
    padding: 0 3px;
    font-size: 9px;
  }
}

.event-lifecycle-note {
  margin: 8px 0;
  padding: 8px 12px;
  border-left: 3px solid #346849;
  background: #f2f6f3;
  color: #263b2d;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.homepage-daily-link {
  display: flex;
  min-height: 32px;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.homepage-daily-link .icon { width: 1rem; height: 1rem; }
.homepage-daily-link:hover span { text-decoration: underline; text-underline-offset: 3px; }
.homepage-daily-link:focus-visible { outline: 3px solid rgba(38, 125, 137, 0.36); outline-offset: 2px; }


.homepage-newsletter-links{display:flex;align-items:center;flex-wrap:wrap;column-gap:20px;row-gap:0}.homepage-newsletter-links .homepage-newsletter-invitation{margin-top:.2rem;margin-bottom:0;font-size:.82rem;font-weight:600}.homepage-newsletter-links a{white-space:nowrap}

.homepage-newsletter-links{flex-wrap:nowrap;column-gap:16px}.homepage-newsletter-links>a:first-child{flex-shrink:0}.homepage-newsletter-links>a.homepage-newsletter-invitation{white-space:normal;min-width:0}.homepage-newsletter-invitation .icon{flex-shrink:0}
