:root {
  --color-navy: #0B2D4D;
  --color-blue: #174E72;
  --color-teal: #2C9FB0;
  --color-sky: #EAF4F8;
  --color-sand: #F4F0E7;
  --color-white: #FFFFFF;
  --color-text: #1D2F3D;
  --color-muted: #5C7080;
  --color-border: rgba(11, 45, 77, 0.14);
  --font-heading: Georgia, "Times New Roman", serif;
  --font-body: Arial, Helvetica, sans-serif;
  --step-1: 0.875rem;
  --step-2: 1rem;
  --step-3: 1.125rem;
  --step-4: 1.5rem;
  --step-5: 2.25rem;
  --step-6: 3.4rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --radius-sm: 0.35rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --shadow-soft: 0 14px 38px rgba(11, 45, 77, 0.12);
  --max-width: 1180px;
  --transition: 160ms ease;
  --focus-ring: 0 0 0 3px rgba(44, 159, 176, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--color-text);
  background: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--step-2);
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
main:focus-visible,
.official-resource-group:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  color: var(--color-navy);
  font-family: var(--font-heading);
  line-height: 1.08;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

h1 {
  max-width: 10ch;
  font-size: var(--step-6);
}

h2 {
  font-size: var(--step-5);
}

h3 {
  font-size: var(--step-4);
}

.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;
}

.skip-link {
  position: fixed;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 30;
  transform: translateY(-180%);
  padding: var(--space-2) var(--space-4);
  color: var(--color-white);
  background: var(--color-navy);
  border-radius: var(--radius-sm);
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-8);
}

.section--soft {
  background: linear-gradient(180deg, var(--color-sky), var(--color-white));
}

.section-label {
  margin-bottom: var(--space-2);
  color: var(--color-teal);
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lead {
  max-width: 56ch;
  color: var(--color-blue);
  font-size: var(--step-3);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 2rem), var(--max-width));
  min-height: 88px;
  margin-inline: auto;
  gap: var(--space-5);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: var(--space-3);
  color: var(--color-navy);
  text-decoration: none;
}

.brand__mark,
.footer-mark {
  display: grid;
  flex: 0 0 auto;
  width: 74px;
  height: 48px;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 0;
}

.brand__mark img,
.footer-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand__text {
  display: grid;
  min-width: 0;
  gap: 0.1rem;
}

.brand__name {
  overflow: hidden;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand__status,
.brand__place {
  color: var(--color-muted);
  font-size: 0.72rem;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: normal;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-4);
}

.site-nav__link {
  position: relative;
  padding-block: var(--space-2);
  color: var(--color-navy);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--color-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.site-nav__link:hover::after,
.site-nav__link.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--color-navy);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.menu-toggle__line {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 999px;
}

.system-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.94) 0 46%, rgba(234, 244, 248, 0.72) 46%),
    radial-gradient(circle at 84% 18%, rgba(44, 159, 176, 0.22), transparent 26%),
    var(--color-sky);
}

.system-hero::before {
  position: absolute;
  inset: auto auto 0 0;
  width: min(42%, 480px);
  height: 220px;
  content: "";
  opacity: 0.35;
  background:
    repeating-linear-gradient(120deg, transparent 0 22px, rgba(23, 78, 114, 0.16) 23px 24px),
    linear-gradient(180deg, transparent, rgba(244, 240, 231, 0.72));
}

.system-hero__grid,
.page-hero__grid,
.split-panel {
  display: grid;
  align-items: center;
  gap: var(--space-7);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
}

.system-hero__copy {
  position: relative;
  z-index: 1;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0.78rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.button--primary {
  color: var(--color-white);
  background: var(--color-navy);
}

.button--primary:hover {
  background: var(--color-blue);
}

.button--secondary {
  color: var(--color-navy);
  background: var(--color-white);
  border-color: rgba(11, 45, 77, 0.35);
}

.button--secondary:hover {
  border-color: var(--color-teal);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-blue);
  font-weight: 700;
  text-decoration-color: rgba(44, 159, 176, 0.45);
  text-underline-offset: 0.3em;
}

.link-arrow::after {
  margin-left: var(--space-2);
  content: "->";
}

.visual-placeholder,
.pending-notice,
.institution-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.visual-placeholder {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  padding: var(--space-5);
  background:
    linear-gradient(180deg, rgba(234, 244, 248, 0.95), rgba(255, 255, 255, 0.72)),
    linear-gradient(130deg, var(--color-sand), var(--color-sky));
}

.visual-placeholder__sun {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  width: 70px;
  height: 70px;
  background: rgba(244, 240, 231, 0.95);
  border-radius: 50%;
}

.visual-placeholder__boat {
  position: absolute;
  right: 18%;
  bottom: 31%;
  width: 42%;
  height: 34px;
  background: var(--color-navy);
  border-radius: 0 0 50px 50px;
}

.visual-placeholder__boat::before {
  position: absolute;
  left: 42%;
  bottom: 34px;
  width: 2px;
  height: 112px;
  content: "";
  background: var(--color-blue);
}

.visual-placeholder__boat::after {
  position: absolute;
  left: 45%;
  bottom: 46px;
  width: 84px;
  height: 92px;
  content: "";
  background: rgba(255, 255, 255, 0.86);
  clip-path: polygon(0 0, 100% 62%, 0 100%);
}

.visual-placeholder__wave {
  position: absolute;
  right: 0;
  left: 0;
  bottom: 18%;
  width: 100%;
  height: 58px;
  background:
    radial-gradient(50px 22px at 50px 4px, transparent 49%, rgba(44, 159, 176, 0.6) 50% 54%, transparent 55%) repeat-x;
  background-size: 96px 58px;
}

.visual-placeholder p {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-5);
  right: var(--space-5);
  margin: 0;
  color: var(--color-blue);
  font-weight: 700;
}

.home-hero {
  position: relative;
  overflow: hidden;
  width: min(calc(100% - 2rem), 1600px);
  margin-inline: auto;
  padding-block: 0;
  background: var(--color-sky);
  left: auto;
  right: auto;
  transform: none;
}

.home-hero::before {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: min(52%, 760px);
  content: "";
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.72) 38%, rgba(255, 255, 255, 0.38) 68%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.home-hero::after {
  position: absolute;
  left: max(1rem, calc((100% - 1320px) / 2 + 1rem));
  bottom: clamp(2rem, 5vw, 3.75rem);
  z-index: 2;
  width: 92px;
  height: 18px;
  content: "";
  background:
    radial-gradient(22px 12px at 10px 2px, transparent 48%, var(--color-teal) 50% 57%, transparent 60%) repeat-x;
  background-size: 30px 18px;
}

.home-hero__grid,
.history-section__grid,
.location-statistics-grid,
.contact-section__grid {
  display: grid;
  align-items: center;
  gap: var(--space-7);
}

.home-hero__grid {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 2rem), 1320px);
  min-height: clamp(440px, 44vw, 590px);
  grid-template-columns: minmax(300px, 0.42fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4.75rem);
}

.home-hero__copy {
  max-width: 520px;
}

@media (min-width: 901px) {
  .home-hero__grid {
    margin-inline: 0 auto;
    padding-inline-start: clamp(3rem, 4vw, 4.5rem);
    padding-inline-end: var(--space-4);
  }
}

.content-status {
  display: inline-flex;
  width: fit-content;
  margin-bottom: var(--space-3);
  padding: 0.22rem 0.55rem;
  color: var(--color-blue);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(44, 159, 176, 0.25);
  border-radius: var(--radius-sm);
  font-size: var(--step-1);
  font-weight: 700;
}

.home-hero__visual,
.history-section__visual,
.map-placeholder,
.gallery-tile {
  margin: 0;
}

.home-hero__visual,
.history-section__visual {
  position: relative;
  overflow: hidden;
}

.history-section__visual {
  border: 1px solid rgba(11, 45, 77, 0.08);
  border-radius: var(--radius-sm);
  box-shadow: 0 18px 46px rgba(11, 45, 77, 0.14);
}

.home-hero__visual {
  position: absolute;
  inset: 0;
  min-height: 100%;
}

.home-hero__visual img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: clamp(440px, 44vw, 590px);
  object-fit: cover;
  object-position: 42% 50%;
}

.home-hero__visual figcaption,
.map-placeholder figcaption,
.gallery-tile figcaption {
  color: var(--color-muted);
  font-size: var(--step-1);
}

.home-hero__visual figcaption {
  position: absolute;
  right: max(1rem, calc((100% - 1320px) / 2 + 1rem));
  bottom: var(--space-4);
  left: auto;
  z-index: 3;
  max-width: min(74%, 520px);
  padding: 0.42rem 0.65rem;
  color: var(--color-navy);
  background: rgba(255, 255, 255, 0.76);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 22px rgba(11, 45, 77, 0.12);
  font-size: 0.72rem;
  font-weight: 700;
}

.history-section {
  background:
    linear-gradient(180deg, var(--color-white), rgba(234, 244, 248, 0.42));
}

.history-section__grid {
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1.28fr);
}

.history-section__copy p:not(.section-label) {
  max-width: 54ch;
}

.history-section__visual img {
  display: block;
  width: 100%;
  min-height: 280px;
  object-fit: cover;
}

.community-section {
  border-block: 1px solid var(--color-border);
}

.community-grid,
.organizations-grid,
.gallery-grid,
.statistics-kpis,
.statistics-charts,
.contact-list {
  display: grid;
  gap: var(--space-4);
}

.community-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.community-card,
.organization-card,
.kpi-card,
.contact-item,
.chart-panel,
.location-panel,
.statistics-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
}

.community-card,
.organization-card,
.kpi-card,
.contact-item,
.chart-panel {
  padding: var(--space-5);
}

.community-card,
.organization-card {
  min-height: 216px;
  box-shadow: 0 12px 30px rgba(11, 45, 77, 0.08);
}

.community-card h3,
.organization-card h3 {
  margin-bottom: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--step-3);
  line-height: 1.25;
}

.line-icon {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: var(--space-4);
  place-items: center;
  color: var(--color-blue);
  background: var(--color-sky);
  border: 1px solid rgba(44, 159, 176, 0.22);
  border-radius: 50%;
}

.line-icon::before,
.line-icon::after {
  position: absolute;
  content: "";
}

.line-icon--people::before {
  width: 30px;
  height: 18px;
  border: 3px solid currentColor;
  border-top: 0;
  border-radius: 0 0 20px 20px;
}

.line-icon--people::after {
  top: 14px;
  width: 28px;
  height: 12px;
  background:
    radial-gradient(circle at 15% 50%, currentColor 0 4px, transparent 5px),
    radial-gradient(circle at 50% 35%, currentColor 0 5px, transparent 6px),
    radial-gradient(circle at 85% 50%, currentColor 0 4px, transparent 5px);
}

.line-icon--home::before {
  width: 28px;
  height: 24px;
  border: 3px solid currentColor;
  border-top: 0;
  transform: translateY(5px);
}

.line-icon--home::after {
  width: 25px;
  height: 25px;
  border-top: 3px solid currentColor;
  border-left: 3px solid currentColor;
  transform: translateY(-5px) rotate(45deg);
}

.line-icon--anchor::before {
  width: 3px;
  height: 34px;
  background: currentColor;
}

.line-icon--anchor::after {
  width: 30px;
  height: 24px;
  border: 3px solid currentColor;
  border-top: 0;
  border-radius: 0 0 22px 22px;
  transform: translateY(8px);
}

.line-icon--hands::before {
  width: 34px;
  height: 22px;
  border: 3px solid currentColor;
  border-radius: 50% 50% 42% 42%;
  transform: rotate(-20deg);
}

.line-icon--hands::after {
  width: 34px;
  height: 22px;
  border: 3px solid currentColor;
  border-radius: 50% 50% 42% 42%;
  transform: rotate(20deg);
}

.line-icon--fish::before {
  width: 34px;
  height: 18px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.line-icon--fish::after {
  right: 11px;
  width: 14px;
  height: 14px;
  border-top: 3px solid currentColor;
  border-left: 3px solid currentColor;
  transform: rotate(-45deg);
}

.line-icon--document::before {
  width: 28px;
  height: 34px;
  border: 3px solid currentColor;
  border-radius: 3px;
}

.line-icon--document::after {
  width: 16px;
  height: 3px;
  background: currentColor;
  box-shadow: 0 8px currentColor, 0 16px currentColor;
}

.line-icon--building::before {
  width: 34px;
  height: 24px;
  border: 3px solid currentColor;
  border-top: 0;
  box-shadow: inset 8px 0 0 transparent, inset 11px 0 0 currentColor, inset 21px 0 0 currentColor;
  transform: translateY(6px);
}

.line-icon--building::after {
  top: 14px;
  width: 40px;
  height: 3px;
  background: currentColor;
  box-shadow: 0 30px currentColor;
}

.line-icon--database::before {
  width: 32px;
  height: 30px;
  border: 3px solid currentColor;
  border-radius: 50% / 22%;
}

.line-icon--database::after {
  width: 32px;
  height: 3px;
  background: currentColor;
  box-shadow: 0 10px currentColor;
}

.location-statistics-section {
  background:
    linear-gradient(180deg, var(--color-white), rgba(244, 240, 231, 0.45));
}

.location-statistics-grid {
  align-items: stretch;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
}

.location-panel,
.statistics-panel {
  padding: var(--space-5);
  box-shadow: 0 12px 32px rgba(11, 45, 77, 0.08);
}

.panel-heading {
  margin-bottom: var(--space-4);
}

.location-panel__address {
  margin-bottom: var(--space-2);
  color: var(--color-navy);
  font-weight: 700;
}

.map-placeholder {
  position: relative;
  overflow: hidden;
  margin-block: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-sky);
}

.map-placeholder img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.map-placeholder figcaption {
  position: absolute;
  right: var(--space-3);
  bottom: var(--space-3);
  left: var(--space-3);
  padding: var(--space-2);
  color: var(--color-navy);
  background: rgba(255, 255, 255, 0.84);
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.statistics-panel__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}

.source-pill,
.organization-card__status {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0.25rem 0.6rem;
  color: var(--color-blue);
  background: var(--color-sky);
  border: 1px solid rgba(44, 159, 176, 0.24);
  border-radius: var(--radius-sm);
  font-size: var(--step-1);
  font-weight: 700;
}

.statistics-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: var(--space-5);
}

.kpi-card p,
.contact-item p {
  margin-bottom: var(--space-2);
  color: var(--color-muted);
  font-size: var(--step-1);
  font-weight: 700;
  overflow-wrap: normal;
  text-transform: uppercase;
}

.kpi-card strong,
.contact-item strong {
  display: block;
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-size: var(--step-4);
  line-height: 1.15;
}

.contact-item strong {
  font-size: var(--step-3);
}

.kpi-card span,
.contact-item span {
  display: block;
  margin-top: var(--space-2);
  color: var(--color-muted);
  font-size: var(--step-1);
}

.statistics-charts {
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
}

.chart-panel {
  min-height: 260px;
  background:
    linear-gradient(180deg, rgba(234, 244, 248, 0.36), rgba(255, 255, 255, 0.92));
}

.chart-panel h3 {
  margin-bottom: var(--space-4);
  font-family: var(--font-body);
  font-size: var(--step-2);
}

.bar-chart {
  display: grid;
  align-items: end;
  height: 160px;
  gap: var(--space-3);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: var(--space-3) var(--space-2) var(--space-6);
  border-left: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.bar-chart__bar {
  position: relative;
  display: block;
  min-height: 34%;
  height: var(--bar-height, 50%);
  background: linear-gradient(180deg, var(--color-teal), #7cc7d2);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.bar-chart__bar:nth-child(1) {
  --bar-height: 42%;
}

.bar-chart__bar:nth-child(2) {
  --bar-height: 56%;
}

.bar-chart__bar:nth-child(3) {
  --bar-height: 72%;
}

.bar-chart__bar:nth-child(4) {
  --bar-height: 48%;
}

.bar-chart__bar:nth-child(5) {
  --bar-height: 64%;
}

.bar-chart__bar span {
  position: absolute;
  right: -0.4rem;
  bottom: -2.15rem;
  left: -0.4rem;
  color: var(--color-muted);
  font-size: 0.62rem;
  line-height: 1.1;
  text-align: center;
}

.donut-chart {
  width: min(148px, 62vw);
  aspect-ratio: 1;
  margin: 0 auto var(--space-4);
  background:
    radial-gradient(circle, var(--color-white) 0 38%, transparent 39%),
    conic-gradient(var(--color-blue) 0 34%, var(--color-teal) 34% 58%, #89c7d3 58% 78%, var(--color-sand) 78% 100%);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(11, 45, 77, 0.08);
}

.chart-legend {
  display: grid;
  gap: var(--space-2);
  padding: 0;
  margin: 0;
  color: var(--color-muted);
  font-size: var(--step-1);
  list-style: none;
}

.chart-legend li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.chart-legend li::before {
  width: 0.7rem;
  height: 0.7rem;
  content: "";
  background: var(--color-teal);
  border-radius: 50%;
}

.chart-legend li:nth-child(2)::before {
  background: var(--color-blue);
}

.chart-legend li:nth-child(3)::before {
  background: #89c7d3;
}

.chart-legend li:nth-child(4)::before {
  background: var(--color-sand);
  border: 1px solid var(--color-border);
}

.statistics-panel__updated {
  margin: var(--space-4) 0 0;
  color: var(--color-muted);
  font-size: var(--step-1);
  font-weight: 700;
  text-align: right;
}

.organizations-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.organization-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
}

.organization-card__status {
  width: fit-content;
  margin-top: auto;
}

.gallery-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.gallery-tile {
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 24px rgba(11, 45, 77, 0.08);
}

.gallery-tile img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(180deg, rgba(44, 159, 176, 0.18), rgba(244, 240, 231, 0.22)),
    var(--color-sky);
  filter: saturate(1.12) contrast(1.05);
  object-fit: cover;
}

.gallery-tile figcaption {
  padding: var(--space-2) var(--space-3);
  color: var(--color-blue);
  font-weight: 700;
}

.section-action {
  display: flex;
  justify-content: center;
  margin-top: var(--space-5);
}

.contact-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(234, 244, 248, 0.62)),
    var(--color-white);
}

.contact-section::after {
  position: absolute;
  right: 3%;
  bottom: -22px;
  width: min(34vw, 360px);
  height: 170px;
  content: "";
  opacity: 0.18;
  background:
    linear-gradient(90deg, transparent 0 45%, var(--color-navy) 46% 48%, transparent 49%),
    radial-gradient(120px 48px at 50% 75%, transparent 58%, var(--color-navy) 60% 62%, transparent 64%);
}

.contact-section__grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(240px, 0.45fr) minmax(0, 1fr);
}

.contact-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.contact-item {
  min-height: 150px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 26px rgba(11, 45, 77, 0.08);
}

.section-heading {
  max-width: 720px;
  margin-bottom: var(--space-6);
  text-align: center;
  margin-inline: auto;
}

.responsive-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.institution-card {
  min-height: 190px;
  padding: var(--space-5);
}

.institution-card__eyebrow {
  color: var(--color-teal);
  font-size: var(--step-1);
  font-weight: 700;
  text-transform: uppercase;
}

.pending-notice {
  padding: var(--space-5);
  background:
    linear-gradient(135deg, rgba(244, 240, 231, 0.55), rgba(255, 255, 255, 0.92));
}

.pending-notice h2,
.pending-notice h3 {
  font-size: var(--step-4);
}

.page-hero {
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.96), rgba(234, 244, 248, 0.86)),
    var(--color-sky);
}

.page-hero h1 {
  max-width: 18ch;
}

.site-footer {
  position: relative;
  overflow: hidden;
  color: var(--color-white);
  background:
    linear-gradient(135deg, var(--color-navy), #06365c),
    var(--color-navy);
}

.site-footer .footer-mark img {
  filter: brightness(0) invert(1);
}

.site-footer::after {
  position: absolute;
  right: -24px;
  bottom: -48px;
  width: min(46vw, 480px);
  height: 240px;
  content: "";
  opacity: 0.16;
  background:
    repeating-linear-gradient(118deg, transparent 0 24px, rgba(255, 255, 255, 0.7) 25px 26px),
    radial-gradient(180px 70px at 60% 70%, transparent 58%, rgba(255, 255, 255, 0.9) 60% 61%, transparent 63%);
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
  padding-block: var(--space-7);
  gap: var(--space-6);
  grid-template-columns: minmax(0, 1.25fr) minmax(150px, 0.78fr) minmax(180px, 0.9fr) minmax(180px, 0.92fr);
}

.site-footer__identity {
  display: flex;
  gap: var(--space-4);
}

.site-footer__name {
  margin-bottom: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--step-3);
  font-weight: 700;
  line-height: 1.2;
}

.site-footer__note,
.site-footer p {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer h2 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--step-2);
}

.site-footer ul {
  display: grid;
  gap: var(--space-1);
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration-color: rgba(44, 159, 176, 0.7);
  text-underline-offset: 0.25em;
}

.site-footer__bottom {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), var(--max-width));
  padding-block: var(--space-4);
  margin-inline: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
}

.site-footer__bottom p {
  margin: 0;
  font-size: var(--step-1);
}

@media (max-width: 1080px) {
  .site-nav {
    gap: var(--space-3);
  }

  .site-nav__link {
    font-size: 0.82rem;
  }

  .home-hero__grid {
    grid-template-columns: minmax(280px, 0.48fr) minmax(0, 1.12fr);
    gap: var(--space-6);
  }

  .community-grid,
  .statistics-kpis,
  .contact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .organizations-grid,
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  main {
    padding-bottom: 7rem;
  }

  .site-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    min-height: 76px;
    gap: var(--space-3);
  }

  .brand {
    overflow: hidden;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0.75rem;
    left: 0.75rem;
    z-index: 30;
    display: grid;
    align-items: stretch;
    justify-content: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0 0.375rem;
    background: var(--color-white);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition:
      max-height var(--transition),
      padding var(--transition),
      border-color var(--transition),
      box-shadow var(--transition),
      opacity var(--transition),
      visibility 0s linear var(--transition);
  }

  .site-nav.is-open {
    max-height: min(68vh, 21rem);
    padding: 0.375rem;
    border-color: var(--color-border);
    box-shadow: 0 12px 30px rgba(11, 45, 77, 0.16);
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transition-delay: 0s;
  }

  .site-nav__link {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 36px;
    padding: 0.25rem 0.625rem;
    font-size: 0.8rem;
    line-height: 1.2;
    text-align: left;
  }

  .site-nav__link::after {
    right: 0.625rem;
    left: 0.625rem;
  }

  .system-hero__grid,
  .home-hero__grid,
  .history-section__grid,
  .location-statistics-grid,
  .contact-section__grid,
  .page-hero__grid,
  .split-panel,
  .statistics-charts,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .system-hero {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(234, 244, 248, 0.8)),
      var(--color-sky);
  }

  .home-hero__copy {
    max-width: 680px;
  }

  .home-hero__grid {
    min-height: clamp(560px, 80vw, 680px);
    align-items: start;
    padding-block: var(--space-7);
  }

  .home-hero::before {
    inset: 0;
    width: auto;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 42%, rgba(255, 255, 255, 0.58) 68%, rgba(255, 255, 255, 0.08) 100%),
      linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.72) 52%, rgba(255, 255, 255, 0) 100%);
  }

  .home-hero__visual img {
    min-height: clamp(560px, 80vw, 680px);
    object-position: 58% 50%;
  }

  .history-section__visual img {
    min-height: 240px;
  }

  .location-statistics-grid {
    align-items: start;
  }

  .statistics-panel__heading {
    display: grid;
  }

  .organizations-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hero__copy h1 {
    max-width: 14ch;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 1.5rem), var(--max-width));
  }

  .section {
    padding-block: var(--space-7);
  }

  .brand__mark {
    flex-basis: 58px;
    width: 58px;
    height: 42px;
  }

  .brand__name {
    font-size: 1rem;
    line-height: 1.15;
  }

  .brand__text {
    max-width: 100%;
  }

  .brand__status {
    display: none;
  }

  .responsive-grid {
    grid-template-columns: 1fr;
  }

  .home-hero {
    padding-block: 0;
  }

  .home-hero::before {
    inset: 0;
    width: auto;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.95) 48%, rgba(255, 255, 255, 0.58) 72%, rgba(255, 255, 255, 0.06) 100%),
      linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.38) 100%);
  }

  .home-hero::after {
    display: none;
  }

  .home-hero__grid {
    min-height: 650px;
    padding-block: var(--space-6);
  }

  .home-hero__visual img {
    min-height: 650px;
    object-position: 58% 50%;
  }

  .map-placeholder figcaption {
    position: static;
    border-radius: 0;
  }

  .home-hero__visual figcaption {
    right: 0.75rem;
    bottom: 0.75rem;
    left: 0.75rem;
    max-width: none;
    font-size: 0.7rem;
  }

  .community-grid,
  .organizations-grid,
  .gallery-grid,
  .statistics-kpis,
  .statistics-charts,
  .contact-list {
    grid-template-columns: 1fr;
  }

  .button-row,
  .button {
    width: 100%;
  }

  .visual-placeholder {
    min-height: 260px;
    padding: var(--space-4);
  }

  .visual-placeholder__sun {
    top: var(--space-4);
    right: var(--space-4);
    width: 56px;
    height: 56px;
  }

  .visual-placeholder__boat {
    right: 12%;
    width: 58%;
  }

  .visual-placeholder__boat::after {
    width: 66px;
    height: 78px;
  }

  .visual-placeholder p {
    right: var(--space-4);
    left: var(--space-4);
  }

  .location-panel,
  .statistics-panel,
  .community-card,
  .organization-card,
  .kpi-card,
  .contact-item,
  .chart-panel {
    padding: var(--space-4);
  }

  .community-card,
  .organization-card {
    min-height: auto;
  }

  .bar-chart {
    gap: var(--space-2);
    padding-inline: var(--space-1);
  }

  .source-pill {
    width: fit-content;
  }

  .statistics-panel__updated {
    text-align: left;
  }

  .site-footer__identity {
    display: grid;
  }

  h1 {
    font-size: clamp(1.9rem, 9vw, 2.15rem);
  }

  .page-hero h1 {
    max-width: 100%;
    font-size: clamp(1.8rem, 8.25vw, 2.1rem);
    line-height: 1.12;
  }

  .home-hero__copy h1 {
    max-width: 100%;
  }

  h2 {
    font-size: 1.8rem;
  }
}

.brand__mark--wide {
  width: clamp(128px, 15vw, 178px);
  height: 58px;
}

.brand__text--compact {
  max-width: 180px;
}

.site-footer .footer-mark {
  width: 132px;
  height: 48px;
}

.site-footer .footer-mark img {
  filter: none;
}

.statistics-kpis--institutional {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.institutional-notes {
  display: grid;
  gap: var(--space-3);
  padding: 0;
  margin: var(--space-5) 0 0;
  list-style: none;
}

.institutional-notes li {
  padding: var(--space-3) var(--space-4);
  color: var(--color-blue);
  background: rgba(234, 244, 248, 0.72);
  border: 1px solid rgba(44, 159, 176, 0.22);
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.contact-form-panel {
  padding: var(--space-5);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 34px rgba(11, 45, 77, 0.1);
}

.contact-form {
  display: grid;
  gap: var(--space-4);
}

.form-field {
  display: grid;
  gap: var(--space-2);
}

.form-field label {
  color: var(--color-navy);
  font-size: var(--step-1);
  font-weight: 700;
  text-transform: uppercase;
}

.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.78rem 0.9rem;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid rgba(11, 45, 77, 0.22);
  border-radius: var(--radius-sm);
  font: inherit;
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: var(--focus-ring);
}

.form-field--honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.field-errors,
.form-errors {
  color: #8a1f11;
  font-size: var(--step-1);
  font-weight: 700;
}

.field-errors ul,
.form-errors ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.contact-form__privacy {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--step-1);
}

.message-stack {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.message {
  margin: 0;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.message--success {
  color: #0b4f36;
  background: #e5f6ee;
  border: 1px solid rgba(11, 79, 54, 0.22);
}

.message--warning {
  color: #6a4a00;
  background: #fff5d8;
  border: 1px solid rgba(106, 74, 0, 0.24);
}

.contact-page__grid {
  align-items: start;
}

.mobile-copy {
  display: none;
}

.desktop-copy {
  display: inline;
}

.mobile-title-lines {
  max-width: 100%;
}

.mobile-title-lines span {
  display: block;
}

.contact-list--page {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: var(--space-5);
}

@media (max-width: 900px) {
  .brand__mark--wide {
    width: 132px;
    height: 48px;
  }

  .brand__text--compact {
    max-width: 150px;
  }
}

@media (max-width: 620px) {
  .brand__mark--wide {
    width: 112px;
    height: 42px;
  }

  .brand__text--compact {
    max-width: 124px;
  }

  .statistics-kpis--institutional,
  .contact-list--page {
    grid-template-columns: 1fr;
  }

  .contact-form-panel {
    padding: var(--space-4);
  }
}

/* phase4-text-sync: keep the logo clean on narrow headers. */
@media (max-width: 620px) {
  .brand__text--compact {
    display: none;
  }
}

/* phase4-final-mobile-overflow: narrow viewport containment and text wrapping. */
@media (max-width: 620px) {
  html,
  body {
    max-width: 100%;
  }

  main,
  section,
  .container,
  .site-header__inner,
  .home-hero,
  .home-hero__grid,
  .home-hero__copy,
  .history-section__grid,
  .history-section__copy,
  .location-statistics-grid,
  .contact-section__grid,
  .page-hero__grid,
  .contact-page__grid,
  .site-footer__inner,
  .community-grid,
  .organizations-grid,
  .gallery-grid,
  .statistics-kpis,
  .contact-list,
  .contact-form-panel,
  .contact-form,
  .form-field,
  .contact-item,
  .location-panel,
  .statistics-panel,
  .community-card,
  .organization-card,
  .kpi-card,
  .institutional-notes,
  .pending-notice {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .site-header__inner {
    width: min(calc(100% - 1rem), var(--max-width));
    min-height: 72px;
  }

  .brand {
    width: 100%;
    max-width: 100%;
  }

  .brand__mark--wide {
    width: clamp(132px, 42vw, 156px);
    height: 48px;
  }

  .brand__text,
  .brand__text--compact {
    display: none;
  }

  .home-hero {
    width: 100%;
    margin-inline: 0;
  }

  .home-hero__grid {
    width: min(calc(100% - 1.5rem), var(--max-width));
    min-height: 660px;
    padding-block: var(--space-5);
  }

  .home-hero__copy {
    width: 100%;
  }

  h1,
  h2,
  h3,
  .home-hero__copy h1,
  .history-section__copy h2,
  .contact-section h2,
  .page-hero h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
  }

  .home-hero__copy h1 {
    font-size: clamp(1.85rem, 8vw, 2.15rem);
    line-height: 1.08;
  }

  .history-section__copy h2,
  .contact-section h2,
  .page-hero h1,
  h2 {
    font-size: clamp(1.55rem, 7vw, 1.85rem);
    line-height: 1.12;
  }

  .lead,
  .history-section__copy p,
  .contact-section p,
  .contact-form__privacy,
  .location-panel__address,
  .contact-item strong,
  .contact-item span,
  .institutional-notes li,
  .site-footer p,
  .site-footer a {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .content-status,
  .source-pill,
  .organization-card__status {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .button-row {
    display: grid;
    width: 100%;
    gap: var(--space-3);
  }

  .button,
  .button-row .button,
  .contact-form button {
    width: 100%;
    max-width: 100%;
    white-space: normal;
  }

  .contact-section::after {
    display: none;
  }

  .contact-form-panel {
    width: 100%;
    padding: var(--space-4);
  }

  .form-field input,
  .form-field textarea {
    max-width: 100%;
    min-width: 0;
  }

  .contact-list,
  .contact-list--page,
  .statistics-kpis--institutional {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-item strong {
    font-size: clamp(1rem, 5vw, 1.15rem);
  }

  .site-nav {
    right: 0.5rem;
    left: 0.5rem;
  }

  .site-nav__link {
    white-space: normal;
  }
}

@media (max-width: 380px) {
  .container,
  .home-hero__grid,
  .site-footer__inner,
  .site-footer__bottom {
    width: min(calc(100% - 1rem), var(--max-width));
  }

  .home-hero__copy h1 {
    font-size: clamp(1.72rem, 7.5vw, 1.95rem);
  }

  .section-label,
  .content-status {
    font-size: 0.78rem;
  }

  .location-panel,
  .statistics-panel,
  .community-card,
  .organization-card,
  .kpi-card,
  .contact-item,
  .chart-panel,
  .contact-form-panel {
    padding: var(--space-3);
  }
}
/* phase4-critical-overflow-fix: remove real mobile overflow sources. */
@media (max-width: 620px) {
  .desktop-copy {
    display: none;
  }

  .mobile-copy {
    display: inline;
  }

  .mobile-title-lines {
    display: block;
    inline-size: 100%;
    max-inline-size: 100%;
    overflow: visible;
  }

  .mobile-title-lines span {
    display: block;
    inline-size: 100%;
    max-inline-size: 100%;
    white-space: normal;
    overflow-wrap: normal;
  }
  .home-hero__copy h1,
  .history-section__copy h2,
  .contact-section h2,
  .page-hero h1 {
    inline-size: 100%;
    max-inline-size: 100%;
    overflow: visible;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .home-hero__copy h1 {
    font-size: clamp(1.45rem, 6.4vw, 1.82rem);
    line-height: 1.12;
  }

  .history-section__copy h2,
  .contact-section h2,
  .page-hero h1 {
    font-size: clamp(1.32rem, 5.8vw, 1.62rem);
    line-height: 1.16;
  }

  .lead,
  .history-section__copy p,
  .contact-section p,
  .location-panel__address,
  .contact-item strong,
  .contact-form__privacy,
  .form-field label,
  .form-field input,
  .form-field textarea {
    inline-size: 100%;
    max-inline-size: 100%;
    overflow-wrap: break-word;
    white-space: normal;
  }

  .contact-section__grid,
  .contact-page__grid,
  .contact-list,
  .contact-list--page,
  .contact-form-panel,
  .contact-form {
    inline-size: 100%;
    max-inline-size: 100%;
  }
}

@media (max-width: 380px) {
  .home-hero__copy h1 {
    font-size: clamp(1.38rem, 6.1vw, 1.68rem);
  }

  .history-section__copy h2,
  .contact-section h2,
  .page-hero h1 {
    font-size: clamp(1.24rem, 5.5vw, 1.5rem);
  }
}

/* Miramar V2: official content, projects and editorial pages. */
.gallery-grid--curated {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.project-feature {
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-navy), #0b4c73);
}

.project-feature h2,
.project-feature p {
  color: inherit;
}

.project-feature__grid,
.featured-project {
  display: grid;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
}

.project-feature__visual,
.featured-project figure {
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.2);
}

.project-feature__visual img,
.featured-project img {
  display: block;
  width: 100%;
  min-height: 430px;
  object-fit: cover;
}

.project-feature .section-label {
  color: #89d9e3;
}

.project-feature .button {
  margin-top: var(--space-3);
  color: var(--color-navy);
  background: var(--color-white);
}

.page-intro {
  background: linear-gradient(135deg, rgba(234, 244, 248, 0.94), rgba(255, 255, 255, 0.98));
}

.page-intro .container {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.page-intro h1 {
  max-width: 20ch;
  margin-inline: auto;
}

.page-intro .lead {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
}

.page-hero--photo {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: var(--color-white);
  background: var(--color-navy);
}

.page-hero--photo::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(5, 35, 62, 0.92) 0%, rgba(5, 35, 62, 0.67) 48%, rgba(5, 35, 62, 0.18) 100%);
}

.page-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  min-height: 560px;
  padding-block: var(--space-8);
}

.page-hero__content h1,
.page-hero__content p {
  max-width: 15ch;
  color: inherit;
}

.page-hero__content .lead {
  max-width: 42rem;
}

.page-hero__content .section-label {
  color: #8edce5;
}

.content-sections {
  display: grid;
  max-width: 920px;
  gap: 0;
}

.content-section {
  display: grid;
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--color-border);
  gap: var(--space-5);
  grid-template-columns: 70px minmax(0, 1fr);
}

.content-section:first-child {
  padding-top: 0;
}

.content-section__number,
.gallery-group-heading span,
.project-approach span {
  color: var(--color-teal);
  font-family: var(--font-heading);
  font-size: var(--step-3);
  font-weight: 700;
}

.content-section h2 {
  font-size: var(--step-4);
}

.highlight-list {
  display: grid;
  padding: 0;
  margin: 0;
  list-style: none;
  gap: var(--space-3);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.highlight-list li {
  padding: var(--space-5) var(--space-4);
  color: var(--color-navy);
  background: var(--color-white);
  border-top: 3px solid var(--color-teal);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 28px rgba(11, 45, 77, 0.08);
  font-weight: 700;
  text-align: center;
}

.featured-project figure {
  order: 2;
}

.featured-project h2 {
  font-size: clamp(1.8rem, 3vw, 2.65rem);
}

.project-points {
  display: grid;
  padding: 0;
  margin: var(--space-5) 0 0;
  list-style: none;
  gap: var(--space-3);
}

.project-points li {
  position: relative;
  padding-left: 1.6rem;
}

.project-points li::before {
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 0.55rem;
  height: 0.55rem;
  content: "";
  background: var(--color-teal);
  border-radius: 50%;
}

.project-news {
  padding-top: var(--space-5);
  margin-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  scroll-margin-top: 6rem;
}

.project-news h3 {
  margin-bottom: var(--space-3);
  font-size: clamp(1.45rem, 2vw, 1.85rem);
}

.project-news-list {
  display: grid;
  gap: var(--space-3);
}

.project-news-item {
  min-width: 0;
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(13, 61, 68, 0.15);
  border-left: 3px solid var(--color-teal);
  border-radius: var(--radius-sm);
}

.project-news-item__source {
  margin-bottom: var(--space-1);
  color: var(--color-blue);
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-news-item h4 {
  margin-bottom: var(--space-2);
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
}

.project-news-item p:not(.project-news-item__source) {
  margin-bottom: var(--space-3);
  font-size: var(--step--1);
}

.project-news-item__link {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.project-approach {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-approach article {
  padding: var(--space-5);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px rgba(11, 45, 77, 0.08);
}

.gallery-grid--project {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-grid--project-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.featured-project--secondary figure {
  order: 0;
}

.gallery-group-heading {
  display: flex;
  align-items: baseline;
  margin-bottom: var(--space-5);
  gap: var(--space-3);
}

.gallery-group-heading h2 {
  margin: 0;
}

.gallery-grid--page {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-grid--page .gallery-tile img {
  aspect-ratio: 16 / 10;
}

@media (max-width: 1180px) and (min-width: 901px) {
  .site-nav {
    gap: 0.7rem;
  }

  .site-nav__link {
    font-size: 0.72rem;
  }
}

@media (max-width: 900px) {
  .project-feature__grid,
  .featured-project {
    grid-template-columns: 1fr;
  }

  .featured-project figure {
    order: 0;
  }

  .highlight-list,
  .gallery-grid--curated {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-hero--photo,
  .page-hero__content {
    min-height: 500px;
  }
}

@media (max-width: 620px) {
  .project-feature__visual img,
  .featured-project img {
    min-height: 280px;
  }

  .page-hero--photo,
  .page-hero__content {
    min-height: 470px;
  }

  .page-hero--photo::after {
    background: linear-gradient(180deg, rgba(5, 35, 62, 0.87), rgba(5, 35, 62, 0.7));
  }

  .content-section {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .highlight-list,
  .project-approach,
  .gallery-grid--curated,
  .gallery-grid--project,
  .gallery-grid--page {
    grid-template-columns: 1fr;
  }
}
/* V2 official photo enrichment: balanced editorial grids. */
.gallery-grid--section {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-grid--section.gallery-grid--count-2 {
  max-width: 820px;
  margin-inline: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .gallery-grid--curated,
  .gallery-grid--project,
  .gallery-grid--section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .gallery-grid--curated,
  .gallery-grid--project,
  .gallery-grid--section,
  .gallery-grid--section.gallery-grid--count-2 {
    grid-template-columns: 1fr;
  }
}
/* Editorial gallery and dependency-free accessible lightbox. */
.editorial-photo-trigger {
  display: block;
  width: 100%;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: zoom-in;
  text-align: left;
}

.editorial-photo-trigger img {
  display: block;
  max-width: 100%;
}

.gallery-intro {
  padding-bottom: var(--space-6);
}

.gallery-intro .lead {
  max-width: 50rem;
}

.gallery-feature {
  padding-bottom: var(--space-7);
}

.gallery-feature__trigger,
.gallery-tile__trigger {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: zoom-in;
  text-align: left;
}

.gallery-feature__trigger {
  position: relative;
  border-radius: var(--radius-md);
  box-shadow: 0 22px 50px rgba(11, 45, 77, 0.16);
}

.gallery-feature__trigger img {
  display: block;
  width: 100%;
  height: clamp(360px, 52vw, 650px);
  object-fit: cover;
  object-position: center 58%;
}

.gallery-feature__trigger span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: clamp(3rem, 8vw, 6rem) var(--space-5) var(--space-5);
  color: var(--color-white);
  background: linear-gradient(transparent, rgba(5, 35, 62, 0.85));
  font-weight: 700;
}

.editorial-photo-trigger:focus-visible,
.gallery-feature__trigger:focus-visible,
.gallery-tile__trigger:focus-visible,
.gallery-lightbox button:focus-visible {
  outline: 3px solid var(--color-teal);
  outline-offset: 4px;
}

.gallery-group {
  overflow: hidden;
}

.gallery-grid--editorial {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-tile--editorial {
  margin: 0;
}

.gallery-tile__trigger img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 240ms ease;
}

.gallery-tile__trigger:hover img {
  transform: scale(1.025);
}

.gallery-lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  color: var(--color-white);
  background: rgba(3, 20, 34, 0.94);
}

.gallery-lightbox.is-open {
  display: flex;
}

.gallery-lightbox figure {
  max-width: min(1100px, 86vw);
  max-height: 88vh;
  margin: 0;
  text-align: center;
}

.gallery-lightbox img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  margin: auto;
  object-fit: contain;
}

.gallery-lightbox figcaption {
  padding-top: var(--space-3);
}

.gallery-lightbox__close,
.gallery-lightbox__nav {
  position: absolute;
  display: grid;
  width: 3rem;
  height: 3rem;
  padding: 0;
  place-items: center;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  cursor: pointer;
}

.gallery-lightbox__close {
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
}

.gallery-lightbox__nav {
  top: 50%;
  font-size: 2.3rem;
  transform: translateY(-50%);
}

.gallery-lightbox__nav--previous { left: 1rem; }
.gallery-lightbox__nav--next { right: 1rem; }
.gallery-lightbox__nav[hidden] { display: none; }

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .gallery-feature__trigger img {
    height: clamp(330px, 66vw, 520px);
  }
}

@media (max-width: 620px) {
  .gallery-grid--editorial {
    grid-template-columns: 1fr;
  }

  .gallery-feature__trigger img {
    height: 330px;
  }

  .gallery-lightbox {
    padding: 4.5rem 1rem;
  }

  .gallery-lightbox figure {
    max-width: 100%;
  }

  .gallery-lightbox__nav {
    top: auto;
    bottom: 1rem;
    transform: none;
  }
}

/* Institutional directory and public document summaries. */
.role-grid,
.document-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.institution-card,
.document-card,
.legal-status,
.publication-note { padding: var(--space-5); background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: 0 12px 28px rgba(11, 45, 77, 0.08); }
.institution-card > span { color: var(--color-teal); font-family: var(--font-heading); font-weight: 700; }
.institution-card h3,
.document-card h2 { margin-top: var(--space-2); }
.directorate-grid { display: grid; align-items: start; gap: var(--space-6); grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr); }
.directorate-grid .highlight-list { margin-top: var(--space-5); }
.legal-status { border-top: 4px solid var(--color-teal); }
.publication-note { max-width: 920px; margin: 0 auto var(--space-6); background: rgba(234, 244, 248, 0.72); }
.publication-note p { margin-bottom: 0; }
.document-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.document-card { display: flex; flex-direction: column; }
.document-card__meta { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); color: var(--color-blue); font-size: var(--step-1); font-weight: 700; }
.pdf-mark { display: grid; width: 3rem; height: 3rem; place-items: center; color: var(--color-white); background: var(--color-navy); border-radius: var(--radius-sm); font-size: .72rem; letter-spacing: .05em; }
.document-card dl { display: grid; margin: var(--space-3) 0; gap: var(--space-2); }
.document-card dl div { display: grid; grid-template-columns: 6rem 1fr; gap: var(--space-2); }
.document-card dt { color: var(--color-muted); font-weight: 700; }
.document-card dd { margin: 0; }
.related-action { padding-block: var(--space-4); text-align: center; }
@media (max-width: 900px) { .role-grid { grid-template-columns: 1fr; } .directorate-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .document-grid { grid-template-columns: 1fr; } .institution-card, .document-card, .legal-status, .publication-note { padding: var(--space-4); } .document-card dl div { grid-template-columns: 1fr; gap: 0; } }

/* Pre-revision editorial components */
.fact-grid,.card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1.25rem}.fact-card,.institution-card{padding:1.5rem;background:#fff;border:1px solid rgba(13,61,68,.14);border-radius:1rem}.fact-card strong{display:block;color:var(--color-primary,#0d3d44);font-size:clamp(2rem,5vw,3.5rem)}.editorial-sections{display:grid;gap:2.5rem;max-width:900px}.editorial-section{border-top:1px solid rgba(13,61,68,.2);padding-top:1.5rem}.timeline{list-style:none;margin:0;padding:0;display:grid;gap:1rem}.timeline li{display:grid;grid-template-columns:minmax(150px,220px) 1fr;gap:1.5rem;padding:1.25rem;background:#fff;border-radius:1rem}.timeline time{font-weight:700;color:var(--color-primary,#0d3d44)}.map-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:2rem;align-items:center}.map-panel__canvas{min-height:360px;display:grid;place-items:center;background:#e8f0ee;border-radius:1rem;overflow:hidden}.map-panel__canvas iframe{width:100%;height:420px;border:0}.contextual-nav{border-top:1px solid rgba(13,61,68,.15)}@media(max-width:760px){.timeline li,.map-panel{grid-template-columns:1fr}.map-panel__canvas{min-height:280px}.map-panel__canvas iframe{height:340px}}


/* Miramar responsive final: intrinsic sizing and interactive overlays. */
main, section, .container, .site-header__inner, .page-hero__content, .editorial-sections, .editorial-section, .fact-grid, .fact-card, .card-grid, .institution-card, .role-grid, .directorate-grid, .legal-status, .document-grid, .document-card, .document-card__meta, .document-card dl, .document-card dl div, .map-panel, .map-panel > *, .gallery-lightbox figure { min-width: 0; max-width: 100%; }
.editorial-section p, .fact-card strong, .fact-card h2, .institution-card h3, .document-card h2, .document-card dd, .legal-status p { overflow-wrap: normal; word-break: normal; hyphens: none; }
.fact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1000px; }
.fact-card { min-height: 150px; display: flex; flex-direction: column; justify-content: center; }
.fact-card strong { font-size: clamp(1.55rem, 2.4vw, 2.35rem); line-height: 1.08; }
.fact-card h2 { margin: .65rem 0 0; font-size: clamp(1rem, 1.5vw, 1.3rem); }
.document-card__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin-top: auto; }
.document-card__actions .button { width: 100%; min-width: 0; text-align: center; }
.map-panel__canvas { position: relative; color: var(--color-blue); background: linear-gradient(135deg, var(--color-sky), var(--color-white)); }
.map-panel__canvas iframe { display: block; max-width: 100%; background: var(--color-white); }
.gallery-lightbox figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.gallery-lightbox img { width: auto; height: auto; }
@media (max-width: 900px) {
  .fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  html, body { width: 100%; }
  .container, .page-hero__content, .page-intro .container { width: calc(100% - 1.5rem); }
  .site-header__inner { width: calc(100% - 1rem); min-height: 68px; }
  .brand__mark--wide { width: clamp(120px, 38vw, 148px); height: 46px; }
  .menu-toggle { position: relative; z-index: 32; display: block; }
  .site-nav { z-index: 31; right: .5rem; left: .5rem; max-width: calc(100vw - 1rem); }
  .site-nav.is-open { max-height: calc(100vh - 5rem); overflow-y: auto; }
  .site-nav__link { min-height: 42px; font-size: .9rem; }
  .page-hero--photo, .page-hero__content { min-height: 430px; }
  .page-hero__content h1, .page-intro h1 { width: 100%; max-width: 100%; font-size: clamp(1.9rem, 9vw, 2.5rem); overflow-wrap: normal; }
  .page-hero__content .lead, .page-intro .lead, .editorial-section p { width: 100%; max-width: 100%; }
  .section { padding-block: clamp(2.5rem, 10vw, 3.5rem); }
  .fact-grid, .card-grid, .role-grid, .document-grid, .directorate-grid, .timeline li, .map-panel { grid-template-columns: minmax(0, 1fr); }
  .fact-card { min-height: 0; padding: 1.15rem; }
  .fact-card strong { font-size: clamp(1.45rem, 7vw, 1.9rem); }
  .editorial-sections { gap: 1.75rem; }
  .editorial-section { padding-top: 1.15rem; }
  .institution-card, .document-card, .legal-status, .publication-note { width: 100%; padding: 1rem; }
  .institution-card h3, .document-card h2 { font-size: clamp(1.3rem, 6.5vw, 1.65rem); }
  .document-card__meta { align-items: center; flex-wrap: wrap; }
  .document-card dl div { grid-template-columns: 1fr; }
  .document-card__actions { grid-template-columns: 1fr; }
  .contact-form-panel, .contact-form, .form-field, .form-field input, .form-field textarea { width: 100%; min-width: 0; max-width: 100%; }
  .site-footer__inner, .site-footer__bottom { width: calc(100% - 1.5rem); }
  .gallery-lightbox { display: none; padding: 4rem .75rem 5.25rem; overflow: hidden; }
  .gallery-lightbox.is-open { display: grid; grid-template-rows: minmax(0, 1fr); }
  .gallery-lightbox figure { width: 100%; max-width: 100%; max-height: calc(100vh - 9.5rem); margin: 0; }
  .gallery-lightbox img { width: 100%; max-width: 100%; max-height: calc(100vh - 13rem); object-fit: contain; }
  .gallery-lightbox figcaption { max-height: 4.5rem; padding: .75rem .25rem 0; overflow-y: auto; font-size: .9rem; line-height: 1.35; }
  .gallery-lightbox__close { top: .6rem; right: .6rem; width: 2.75rem; height: 2.75rem; }
  .gallery-lightbox__nav { top: auto; bottom: .65rem; width: 2.75rem; height: 2.75rem; transform: none; }
  .gallery-lightbox__nav--previous { left: calc(50% - 3.25rem); }
  .gallery-lightbox__nav--next { right: calc(50% - 3.25rem); }
}

/* Preserve the accessible spam honeypot intrinsic containment. */
.form-field--honeypot, .form-field--honeypot input { width: 1px !important; min-width: 1px !important; max-width: 1px !important; height: 1px !important; min-height: 1px !important; padding: 0 !important; }

/* Keep editorial card columns readable at desktop and tablet widths. */
.card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.institution-card h2 { white-space: normal; overflow-wrap: normal; word-break: normal; font-size: clamp(1.35rem, 2.2vw, 2rem); }
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .card-grid { grid-template-columns: minmax(0, 1fr); } }

/* Internal text containment verified without global overflow masking. */
.site-footer::after { right: 0; }
@media (max-width: 768px) {
  .editorial-sections, .editorial-section, .fact-grid, .fact-card, .card-grid, .institution-card, .role-grid, .directorate-grid, .legal-status, .document-grid, .document-card, .document-card__meta, .document-card dl, .document-card dl div, .contact-page__grid, .contact-form-panel, .contact-form, .site-footer__inner, .site-footer__bottom { width: 100%; max-width: 100%; min-width: 0; }
  .page-hero__content h1, .page-intro h1, .editorial-section h2, .editorial-section h3, .editorial-section p, .fact-card strong, .fact-card h2, .institution-card h2, .institution-card h3, .institution-card p, .document-card h2, .document-card p, .document-card dt, .document-card dd, .document-card__meta, .legal-status p, .publication-note p, .contact-page h1, .contact-page p, .site-footer p, .site-footer a { white-space: normal; text-wrap: wrap; word-break: normal; overflow-wrap: anywhere; }
}
@media (max-width: 620px) {
  .document-card__meta { flex-direction: column; align-items: flex-start; justify-content: flex-start; }
}

/* Keep the approved desktop hero contained at compact desktop widths. */
@media (min-width: 901px) and (max-width: 1080px) {
  .home-hero__copy, .home-hero__copy h1 { width: 100%; min-width: 0; max-width: 100%; }
  .home-hero__copy h1 { font-size: clamp(2.55rem, 5vw, 3.1rem); white-space: normal; text-wrap: wrap; word-break: normal; overflow-wrap: anywhere; }
}

/* Verified institutional resources and external services. */
.official-links-callout { background: linear-gradient(135deg, var(--color-deep-blue), var(--color-blue)); color: #fff; }
.official-links-callout .section-label { color: var(--color-sand); }
.official-links-callout h2 { color: #fff; }
.official-links-callout__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-6); }
.official-links-callout__inner p:not(.section-label) { max-width: 52rem; }
.official-links-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: var(--space-3); margin-top: var(--space-5); }
.official-resource-group { scroll-margin-top: 6rem; }
.official-resource-group:focus-visible { border-radius: var(--radius-sm); }
.official-resource-group__header { max-width: 58rem; margin-bottom: var(--space-6); }
.official-resource-group__header h2 { margin-bottom: var(--space-2); }
.official-resource-group__full-name { color: var(--color-blue); font-family: var(--font-heading); font-size: var(--step-1); font-weight: 700; }
.official-institution-list { display: grid; gap: var(--space-7); }
.official-institution { min-width: 0; }
.official-institution__header { display: flex; align-items: center; gap: var(--space-5); margin-bottom: var(--space-5); }
.official-resource-group__header .official-institution__header { margin-bottom: 0; }
.official-institution__logo-wrap { display: grid; flex: 0 0 13rem; width: 13rem; height: 5.5rem; place-items: center; padding: .55rem 1rem; border: 1px solid rgba(13, 61, 68, 0.13); border-radius: var(--radius-sm); background: #fff; }
.official-institution--logo-standard .official-institution__logo-wrap { background: #fff; }
.official-institution--logo-light .official-institution__logo-wrap { border-color: rgba(255, 255, 255, 0.32); background: var(--color-deep-blue, #0d3d44); }
.official-institution__logo { display: block; width: auto; max-width: 100%; height: auto; max-height: 4rem; object-fit: contain; }
.official-institution--logo-wide .official-institution__logo-wrap { height: 7rem; padding: .5rem 1rem; }
.official-institution--logo-wide .official-institution__logo { max-width: 11rem; max-height: 5.5rem; }
.official-institution--logo-enlarged .official-institution__logo { width: 100%; }
.official-institution--logo-portrait .official-institution__logo-wrap { height: 7.25rem; padding: .5rem .75rem; }
.official-institution--logo-portrait .official-institution__logo { max-height: 6.25rem; }
.official-institution__name { min-width: 0; }
.official-institution__name h3 { margin: 0 0 .2rem; font-size: clamp(1.35rem, 2vw, 1.8rem); }
.official-institution__name p { margin: 0; color: var(--color-muted); }
.official-institution__name .official-resource-group__full-name { color: var(--color-blue); }
.official-resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.official-resource-card { display: flex; min-width: 0; min-height: 21rem; flex-direction: column; padding: var(--space-5); border: 1px solid rgba(13, 61, 68, 0.16); border-radius: var(--radius-card); background: #fff; box-shadow: var(--shadow-soft); }
.official-resource-card__meta { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--space-2); color: var(--color-blue); font-size: var(--step--1); font-weight: 700; }
.official-resource-card__access { color: var(--color-muted); text-align: right; }
.official-resource-card h3 { margin: var(--space-3) 0 var(--space-2); font-size: clamp(1.25rem, 2vw, 1.65rem); }
.official-resource-card p { margin-bottom: var(--space-4); }
.official-resource-card .button { width: 100%; margin-top: auto; white-space: normal; text-align: center; }
.external-link-mark { margin-left: .25rem; font-size: 1.1em; }

@media (max-width: 1180px) and (min-width: 901px) {
  .site-nav { gap: .55rem; }
  .site-nav__link { font-size: .68rem; }
}
@media (max-width: 900px) {
  .official-resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .official-links-callout__inner { grid-template-columns: 1fr; }
  .official-links-callout__inner .button { justify-self: start; }
}
@media (max-width: 620px) {
  .official-institution__header { flex-direction: column; align-items: stretch; gap: var(--space-3); text-align: center; }
  .official-institution__logo-wrap { flex-basis: auto; width: 100%; height: 5.5rem; }
  .official-resource-grid { grid-template-columns: minmax(0, 1fr); }
  .official-resource-card { min-height: 0; padding: var(--space-4); }
  .official-resource-card__meta { display: grid; }
  .official-resource-card__access { text-align: left; }
  .official-links-index .button, .official-links-callout__inner .button { width: 100%; }
}

/* Client corrections: institutional identity, location, conventions and search. */
.brand__text--compact {
  display: none;
}

.convention-card .highlight-list {
  grid-template-columns: minmax(0, 1fr);
}

.convention-card .highlight-list li {
  padding: var(--space-3) var(--space-4);
  text-align: left;
}

.convention-card dl div {
  grid-template-columns: 7.5rem minmax(0, 1fr);
}

@media (max-width: 620px) {
  .convention-card dl div {
    grid-template-columns: minmax(0, 1fr);
  }
}

.page-hero--plain {
  min-height: 25rem;
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 82% 25%, rgba(44, 159, 176, 0.2), transparent 24rem),
    linear-gradient(135deg, var(--color-sky), var(--color-white));
}

.page-hero--plain .page-hero__content {
  position: relative;
  min-height: 25rem;
  display: grid;
  align-content: center;
}

.fact-card__link {
  color: var(--color-navy);
  text-decoration-color: var(--color-teal);
  text-underline-offset: 0.18em;
}

.fact-card h2.fact-card__institution-name {
  font-family: var(--font-body);
  font-size: clamp(0.82rem, 1vw, 0.9rem);
  line-height: 1.35;
  letter-spacing: 0.015em;
}

.fact-card__institution-name > span[aria-hidden="true"] {
  display: block;
}

.location-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.85fr);
  gap: var(--space-7);
  align-items: start;
}

.location-summary dl {
  margin: 0;
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.location-summary dl div {
  display: grid;
  grid-template-columns: minmax(8rem, 0.8fr) minmax(0, 1fr);
  gap: var(--space-3);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.location-summary dl div:last-child { border-bottom: 0; }
.location-summary dt { color: var(--color-muted); font-weight: 700; }
.location-summary dd { margin: 0; }

.empty-state {
  max-width: 48rem;
  margin-inline: auto;
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid var(--color-border);
  border-top: 0.35rem solid var(--color-teal);
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.search-page { max-width: 56rem; }
.search-page h1 { max-width: none; }
.search-form { margin-top: var(--space-6); }
.search-form__field { display: grid; gap: var(--space-2); }
.search-form label { color: var(--color-navy); font-weight: 700; }
.search-form input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 1rem;
  color: var(--color-text);
  background: var(--color-white);
  border: 2px solid rgba(11, 45, 77, 0.35);
  border-radius: var(--radius-sm);
  font: inherit;
}
.search-form input:focus-visible { outline: none; border-color: var(--color-teal); box-shadow: var(--focus-ring); }
.search-form__field p { color: var(--color-muted); font-size: var(--step-1); }
.search-status { margin: var(--space-7) 0 var(--space-4); color: var(--color-blue); font-weight: 700; }
.search-results { display: grid; gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.search-results article { padding: var(--space-5); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-white); box-shadow: 0 10px 24px rgba(11, 45, 77, 0.07); }
.search-results h2 { margin-bottom: var(--space-2); font-size: clamp(1.35rem, 3vw, 1.8rem); }
.search-results h2 a { text-decoration-color: var(--color-teal); text-underline-offset: 0.18em; }
.search-results p:last-child { margin-bottom: 0; }
.search-result__section { margin-bottom: var(--space-2); color: var(--color-teal); font-size: var(--step-1); font-weight: 700; text-transform: uppercase; }

@media (max-width: 760px) {
  .location-summary { grid-template-columns: minmax(0, 1fr); }
  .location-summary dl div { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

@media (max-width: 620px) {
  .page-hero--plain, .page-hero--plain .page-hero__content { min-height: 22rem; }
  .fact-card__institution-name > span[aria-hidden="true"] { display: inline; }
  .fact-card__institution-name > span[aria-hidden="true"]::after { content: " "; }
  .search-results article { padding: var(--space-4); }
}
