:root {
  --ink: #10202c;
  --muted: #5e6d78;
  --paper: #f5f8fa;
  --white: #ffffff;
  --line: #d8e0e6;
  --red: #c42435;
  --red-dark: #921c2a;
  --blue: #195f8d;
  --navy: #071d31;
  --green: #2e7658;
  --shadow: 0 22px 64px rgba(7, 29, 49, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body,
main,
section,
header,
footer,
div,
article,
nav,
h1,
h2,
h3,
p,
a,
button {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  padding: 11px clamp(14px, 3vw, 44px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: white;
  font-size: 0.78rem;
  font-weight: 950;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--navy);
  line-height: 1.05;
}

.brand small {
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px 16px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 760;
}

.main-nav a {
  padding: 5px 0;
  text-decoration: none;
}

.anonamed-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 11px !important;
  border-radius: 8px;
  background: var(--navy);
  color: white !important;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: calc(100vh - 66px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--navy);
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 29, 49, 0.96), rgba(7, 29, 49, 0.68) 46%, rgba(25, 95, 141, 0.34)),
    linear-gradient(0deg, rgba(7, 29, 49, 0.86), transparent 55%);
}

.hero-copy {
  position: relative;
  max-width: 980px;
  padding: 76px clamp(20px, 7vw, 96px) 96px;
  color: white;
}

.language-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
}

.language-row label {
  font-weight: 900;
}

.language-row select {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 6px 10px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #9fe4db;
}

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

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.06;
  overflow-wrap: anywhere;
  word-break: normal;
}

.hero h1 {
  max-width: 850px;
  color: white;
  font-size: clamp(2.6rem, 6.2vw, 5.2rem);
}

.hero h1 span {
  display: block;
  max-width: 100%;
}

.hero h1 .brand-line {
  white-space: nowrap;
  font-size: clamp(2.45rem, 5.7vw, 4.8rem);
}

.hero h1 .title-line {
  font-size: clamp(2rem, 4.5vw, 3.9rem);
}

h2 {
  font-size: clamp(2rem, 4.4vw, 4rem);
}

h3 {
  font-size: 1.16rem;
}

p {
  color: var(--muted);
}

.lede {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions,
.map-panel,
.side-panel,
.how-grid,
.where-section,
.map-section,
.how-section {
  min-width: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  white-space: normal;
}

.button.primary {
  background: white;
  color: var(--navy);
}

.button.primary.dark {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

.button.secondary {
  border-color: var(--line);
  background: white;
  color: var(--navy);
}

.button.danger {
  border-color: var(--red);
  background: var(--red);
  color: white;
}

.button.ghost {
  color: white;
}

.status {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.8);
}

.emergency-strip {
  padding: 18px clamp(18px, 5vw, 72px);
  background: var(--red);
  color: white;
  font-size: 1.02rem;
}

.emergency-strip strong,
.emergency-strip span {
  color: white;
}

.map-section,
.how-section,
.where-section,
.registry-section {
  padding: clamp(48px, 8vw, 100px) clamp(18px, 6vw, 80px);
}

.section-heading {
  max-width: 940px;
  margin-bottom: 34px;
}

.map-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 18px;
}

.map-panel iframe {
  display: block;
  width: 100%;
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.side-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.side-panel .button {
  width: 100%;
}

.small-status {
  margin: 0;
  font-size: 0.93rem;
}

.national-source {
  display: grid;
  gap: 3px;
  padding: 14px;
  border: 1px solid #b9d8cc;
  border-radius: 8px;
  background: #eefaf5;
}

.national-source strong {
  color: var(--green);
}

.national-source a {
  color: var(--blue);
  font-weight: 950;
}

.national-source span {
  color: var(--muted);
  font-size: 0.92rem;
}

.national-source.caution {
  border-color: #efd49a;
  background: #fff8e6;
}

.national-source.caution strong {
  color: #7a5200;
}

.osm-results {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5f8fa;
}

.osm-results h4 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1rem;
}

.osm-results p {
  margin: 0;
  font-size: 0.92rem;
}

.osm-results ol {
  display: grid;
  gap: 10px;
  margin: 10px 0 0;
  padding-left: 20px;
}

.osm-results li {
  color: var(--muted);
}

.availability-badge {
  display: inline-flex;
  margin-left: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fff4d8;
  color: #7a5200;
  font-size: 0.76rem;
  font-weight: 950;
}

.availability-badge.open {
  background: #dff7ea;
  color: #165a39;
}

.osm-results a {
  color: var(--blue);
  font-weight: 900;
}

.ask-list {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-weight: 800;
}

.ask-list a {
  color: var(--blue);
  font-weight: 950;
}

.how-section {
  background: white;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.how-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.how-grid span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 8px;
  background: #e7f4ff;
  color: var(--blue);
  font-weight: 950;
}

.instruction-image {
  display: block;
  width: min(980px, 100%);
  margin: 28px auto 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.where-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: center;
}

.where-section img {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.registry-section {
  background: white;
}

.registry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.registry-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.registry-card.strong {
  border-color: #b9d8cc;
  background: #eefaf5;
}

.registry-card.weak {
  border-color: #efd49a;
  background: #fff8e6;
}

.registry-card h3 {
  margin: 0;
}

.registry-card p {
  margin: 0;
}

.registry-card a {
  color: var(--blue);
  font-weight: 950;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(18px, 5vw, 72px);
  background: white;
  border-top: 1px solid var(--line);
}

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

  .main-nav {
    justify-content: flex-start;
  }

  .map-grid,
  .where-section {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 700px) {
  .hero {
    min-height: 720px;
  }

  .hero-copy {
    padding: 44px 18px 68px;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 8vw, 3.2rem);
  }

  .hero h1 .brand-line {
    font-size: clamp(1.9rem, 8.7vw, 3.05rem);
  }

  .hero h1 .title-line {
    font-size: clamp(1.55rem, 7vw, 2.55rem);
  }

  .language-row {
    flex-wrap: wrap;
  }

  .hero-actions,
  .how-grid,
  .registry-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .map-panel iframe {
    min-height: 420px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
