:root {
  --civic-red: #ff1105;
  --civic-red-dark: #c9160e;
  --black: #111111;
  --text: #343434;
  --muted: #666666;
  --line: #dddddd;
  --line-strong: #b8b8b8;
  --page: #f7f7f7;
  --surface: #ffffff;
  --surface-quiet: #f1f1f1;
  --focus: #005fcc;
  --shadow: 0 24px 56px rgba(0, 0, 0, 0.18);
  --body-font: "Proxima Nova", "Helvetica Neue", Arial, Helvetica, sans-serif;
  --heading-font: "Proxima Nova", "Helvetica Neue", Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--page);
  font-family: var(--body-font);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--text);
  line-height: 1.45;
}

body.modal-open {
  overflow: hidden;
}

body.embed-instructions-page {
  background: var(--surface-quiet);
}

a {
  color: var(--black);
  text-decoration-color: var(--civic-red);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--civic-red-dark);
}

button,
a,
.map-path {
  -webkit-tap-highlight-color: rgba(255, 17, 5, 0.16);
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 82px;
  padding: 12px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
}

.header-logos {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.brand {
  color: var(--black);
  text-decoration: none;
}

.civic-brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  max-width: 300px;
}

.civic-logo {
  display: block;
  width: min(100%, 286px);
  height: auto;
  max-height: 68px;
  object-fit: contain;
  object-position: left center;
}

.donor-divider {
  align-self: stretch;
  width: 1px;
  min-height: 46px;
  background: var(--line);
}

.header-donor-logo {
  display: block;
  width: min(26vw, 245px);
  min-width: 190px;
  max-height: 104px;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  align-items: stretch;
  gap: 28px;
  min-height: 56px;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--black);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -13px;
  left: 0;
  height: 4px;
  background: var(--civic-red);
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.hero,
.section,
.embed-section,
.guide-hero,
.site-footer {
  padding-inline: clamp(18px, 5vw, 72px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 420px);
  gap: clamp(30px, 5vw, 68px);
  align-items: center;
  min-height: 540px;
  padding-top: clamp(58px, 8vw, 96px);
  padding-bottom: clamp(42px, 7vw, 78px);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.hero__content {
  min-width: 0;
  max-width: 840px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--civic-red-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--black);
  font-family: var(--heading-font);
  font-weight: 800;
  overflow-wrap: break-word;
}

h1 {
  max-width: 820px;
  font-size: 4.05rem;
  line-height: 1.03;
}

h2 {
  font-size: 2.45rem;
  line-height: 1.08;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.15;
}

.hero__lead,
.section__intro p,
.site-footer p {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.62;
  overflow-wrap: break-word;
}

.hero__lead {
  display: grid;
  gap: 12px;
  max-width: min(720px, 100%);
  margin: 24px 0 0;
}

.hero__lead p {
  margin: 0;
}

.hero__lead-main {
  color: var(--black);
  font-weight: 800;
}

.hero__action {
  margin-top: 4px;
}

.emergency-grid {
  display: grid;
  gap: 14px;
}

.emergency-card {
  min-height: 132px;
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--civic-red);
  background: var(--surface);
}

.emergency-card__label,
.emergency-card__note {
  margin: 0;
  color: var(--muted);
}

.emergency-card__label {
  font-weight: 700;
}

.emergency-card__number {
  display: inline-block;
  margin: 8px 0;
  color: var(--black);
  font-family: var(--heading-font);
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.emergency-card__number:hover {
  color: var(--civic-red-dark);
}

.section {
  padding-top: clamp(48px, 7vw, 82px);
  padding-bottom: clamp(48px, 7vw, 82px);
}

.section__intro {
  min-width: 0;
  max-width: 890px;
  margin-bottom: 30px;
}

.section__intro p:last-child {
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-top: 5px solid var(--civic-red);
  background: var(--surface);
}

.contacts-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.contacts-table caption {
  padding: 14px 16px;
  color: var(--muted);
  text-align: left;
}

.contacts-table th,
.contacts-table td {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.contacts-table thead th {
  background: var(--surface-quiet);
  color: var(--black);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.contacts-table tbody th {
  min-width: 220px;
  color: var(--black);
}

.contacts-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.seo-section {
  padding-top: clamp(36px, 5vw, 58px);
  padding-bottom: clamp(36px, 5vw, 58px);
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.seo-section .section__intro {
  max-width: 960px;
  margin-bottom: 24px;
}

.seo-region-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 960px;
}

.seo-region-list a {
  display: block;
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--surface-quiet);
  color: var(--black);
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-decoration-thickness: 1px;
}

.seo-read-more {
  margin-top: 18px;
}

.seo-read-more a,
.guide-link-row a,
.guide-actions a {
  font-weight: 900;
}

.guide-page {
  background: var(--surface);
}

.guide-hero {
  padding-top: clamp(58px, 8vw, 96px);
  padding-bottom: clamp(42px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.guide-hero__content {
  max-width: 980px;
}

.guide-lead {
  max-width: 840px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.66;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 24px;
}

.guide-index {
  padding-top: clamp(36px, 5vw, 58px);
  padding-bottom: clamp(36px, 5vw, 58px);
  border-bottom: 1px solid var(--line);
  background: var(--surface-quiet);
}

.guide-toc,
.guide-region-links {
  display: grid;
  gap: 10px;
  max-width: 960px;
}

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

.guide-region-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

.guide-toc a,
.guide-region-links a {
  display: block;
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--black);
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-decoration-thickness: 1px;
}

.guide-content {
  display: grid;
  gap: clamp(36px, 5vw, 58px);
}

.guide-section {
  max-width: 980px;
}

.guide-section h2 {
  margin-bottom: 16px;
}

.guide-section p {
  max-width: 880px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.68;
}

.guide-section p:last-child {
  margin-bottom: 0;
}

.guide-link-row {
  margin-top: 18px;
}

.guide-callout {
  padding: 16px 18px;
  border-left: 5px solid var(--civic-red);
  background: var(--surface-quiet);
  color: var(--black);
  font-weight: 800;
}

.guide-faq details {
  max-width: 880px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.guide-faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.guide-faq summary {
  color: var(--black);
  font-weight: 900;
  cursor: pointer;
}

.guide-faq details p {
  margin-top: 12px;
}

.map-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.map-card {
  min-height: 420px;
  padding: clamp(12px, 3vw, 24px);
  border: 1px solid #c9c9c9;
  background: #ffffff;
}

.ukraine-map {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
}

.map-path {
  stroke: #ffffff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  cursor: default;
  transition: fill 160ms ease;
  vector-effect: non-scaling-stroke;
}

.map-path--muted {
  fill: #bcc8d0;
}

.map-path--active {
  fill: #ff9d95;
}

.map-path--interactive {
  cursor: pointer;
}

.map-path--interactive:hover,
.map-path--interactive:focus-visible {
  fill: #ffbab4;
  outline: none;
}

.map-path--selected {
  fill: #ff9d95;
}

.map-hover-layer {
  pointer-events: none;
}

.map-hover-outline {
  fill: none;
  stroke: var(--civic-red-dark);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.map-hover-outline[hidden] {
  display: none;
}

.region-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--civic-red);
  background: var(--surface);
}

.region-buttons {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.region-button {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--black);
  text-align: left;
  font: inherit;
  font-weight: 800;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.region-button:hover,
.region-button:focus-visible {
  border-color: var(--civic-red);
  color: var(--civic-red-dark);
}

.region-button--secondary {
  border-style: dashed;
  color: var(--muted);
}

.other-region-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.embed-section {
  padding-top: 48px;
  padding-bottom: 48px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.embed-instructions-page .embed-section {
  min-height: 100vh;
  max-width: 980px;
  margin: 0 auto;
  border-top: 6px solid var(--civic-red);
}

.embed-section__intro {
  max-width: 760px;
}

.embed-panel {
  display: grid;
  gap: 18px;
  max-width: 920px;
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--civic-red);
  background: var(--surface-quiet);
}

.embed-direct-link {
  font-weight: 900;
}

.embed-direct-link {
  width: fit-content;
}

.embed-panel__label {
  margin: 0 0 8px;
  color: var(--black);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.embed-code {
  margin: 0;
  padding: 14px;
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--black);
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.embed-page {
  min-width: 280px;
  background: var(--surface);
}

.embed-shell {
  padding: 18px;
}

.embed-widget {
  max-width: 1180px;
  margin: 0 auto;
}

.embed-widget__header {
  max-width: 760px;
  margin-bottom: 18px;
}

.embed-widget__header h1 {
  margin: 0 0 8px;
  color: var(--black);
  font-family: var(--heading-font);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 0.98;
}

.embed-widget__header p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.embed-widget__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 18px;
  align-items: start;
}

.embed-map-card {
  min-height: 320px;
}

.embed-region-panel h2 {
  margin: 0;
  color: var(--black);
  font-family: var(--heading-font);
  font-size: 1.35rem;
  line-height: 1.05;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 240px);
  gap: 36px;
  align-items: start;
  padding-top: 42px;
  padding-bottom: 42px;
  border-top: 6px solid var(--civic-red);
  background: var(--surface-quiet);
  color: var(--text);
}

.project-info {
  max-width: 1020px;
}

.site-footer p {
  color: var(--muted);
}

.footer-title {
  margin: 0 0 10px;
  color: var(--black);
  font-family: var(--heading-font);
  font-size: 1.45rem;
  font-weight: 800;
}

.project-title-list {
  display: grid;
  gap: 12px;
  max-width: 1020px;
  margin: 18px 0 18px;
}

.project-title-list p {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
  margin: 0;
  color: var(--black);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.48;
}

.project-flag {
  display: inline-block;
  width: 26px;
  height: auto;
  margin-top: 0.08em;
  border: 1px solid var(--line-strong);
}

.project-info > p:not(.footer-title):not(.project-disclaimer):not(.updated):not(.developer-credit) {
  max-width: 940px;
  margin: 0 0 14px;
  line-height: 1.58;
}

.project-disclaimer {
  margin-top: 16px;
  color: var(--black);
  font-size: 0.95rem;
  font-weight: 800;
}

.updated {
  margin: 8px 0 0;
  font-size: 0.92rem;
}

.developer-credit {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.footer-logo {
  width: min(100%, 280px);
  justify-self: end;
  padding: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.56);
}

.modal__panel {
  position: relative;
  width: min(940px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: 16px auto;
  overflow: auto;
  padding: clamp(22px, 4vw, 38px);
  border-top: 8px solid var(--civic-red);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.modal__close {
  position: sticky;
  top: 0;
  float: right;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--black);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.modal__close:hover {
  border-color: var(--civic-red);
  color: var(--civic-red-dark);
}

.modal__header {
  max-width: 760px;
  margin-bottom: 26px;
}

.modal__header p {
  color: var(--muted);
  line-height: 1.55;
}

.contact-group {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.contact-group + .contact-group {
  margin-top: 28px;
}

.contact-group__title {
  margin-bottom: 14px;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-card {
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.contact-card__title {
  margin: 0 0 8px;
  color: var(--black);
  font-family: var(--body-font);
  font-size: 1rem;
  font-weight: 800;
}

.contact-card__description {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.5;
}

.contact-meta {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 6px 12px;
  margin: 0;
}

.contact-meta dt {
  color: var(--muted);
  font-weight: 800;
}

.contact-meta dd {
  margin: 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  padding: 4px 8px;
  border: 1px solid rgba(255, 17, 5, 0.36);
  background: #ffffff;
  color: var(--civic-red-dark);
  font-size: 0.85rem;
  font-weight: 800;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .header-logos {
    flex-wrap: wrap;
    gap: 12px 16px;
  }

  .donor-divider {
    display: none;
  }

  .header-donor-logo {
    width: min(52vw, 190px);
  }

  .site-nav {
    width: 100%;
    min-height: 44px;
  }

  .site-nav a::after {
    bottom: -8px;
  }

  .hero,
  .map-layout,
  .embed-widget__layout,
  .site-footer {
    grid-template-columns: 1fr;
  }

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

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

  .hero {
    min-height: unset;
  }

  h1 {
    font-size: 3.05rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .footer-logo {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 8px;
    min-height: 0;
    padding: 8px 16px 10px;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(4, max-content);
    gap: 8px;
    min-height: 0;
  }

  .site-nav a {
    min-height: 24px;
    font-size: 0.72rem;
    line-height: 1.05;
    white-space: nowrap;
  }

  .site-nav a::after {
    bottom: -3px;
    height: 3px;
  }

  .header-logos {
    gap: 8px;
  }

  .civic-brand {
    max-width: 160px;
  }

  .civic-logo {
    max-height: 38px;
  }

  .header-donor-logo {
    width: 120px;
    min-width: 0;
    max-height: 46px;
  }

  .hero,
  .section,
  .embed-section,
  .guide-hero,
  .site-footer {
    padding-inline: 16px;
  }

  .embed-shell {
    padding: 14px;
  }

  .embed-map-card {
    min-height: 260px;
  }

  .hero__content,
  .section__intro {
    max-width: calc(100vw - 32px);
  }

  .hero__lead {
    max-width: 320px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.55rem;
  }

  .hero__lead,
  .section__intro p,
  .site-footer p {
    font-size: 1rem;
  }

  .seo-region-list {
    grid-template-columns: 1fr;
  }

  .guide-toc,
  .guide-region-links {
    grid-template-columns: 1fr;
  }

  .other-region-list {
    grid-template-columns: 1fr;
  }

  .guide-lead,
  .guide-section p {
    font-size: 1rem;
  }

  .emergency-card__number {
    font-size: 2.5rem;
  }

  .map-card {
    min-height: 260px;
  }

  .modal__panel {
    width: 100%;
    max-height: 100vh;
    min-height: 100vh;
    margin: 0;
  }

  .contact-meta {
    grid-template-columns: 1fr;
  }
}
