:root {
  --ink: #202234;
  --ink-soft: #4a4d63;
  --muted: #686b7d;
  --paper: #f7f5f7;
  --paper-alt: #edeff4;
  --surface: #ffffff;
  --surface-soft: #f9f7fa;
  --line: #dedde5;
  --line-strong: #c2c4d0;
  --periwinkle: #56679f;
  --periwinkle-dark: #38476f;
  --coral: #c9404d;
  --coral-dark: #a62f3c;
  --magenta: #a73770;
  --magenta-dark: #7d2856;
  --pink: #eadce5;
  --pink-soft: #f6f1f4;
  --teal: var(--coral);
  --teal-dark: var(--magenta);
  --mint: var(--pink-soft);
  --sky: #e7e9ff;
  --rose: var(--magenta);
  --rose-dark: var(--magenta-dark);
  --yellow: var(--periwinkle);
  --shadow: 0 18px 38px rgba(56, 71, 111, 0.14);
  --shadow-soft: 0 10px 22px rgba(56, 71, 111, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    repeating-linear-gradient(90deg, rgba(56, 71, 111, 0.035) 0 1px, transparent 1px 80px),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 48%, var(--paper-alt) 100%);
  font-family: "Nunito", "Segoe UI", sans-serif;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  line-height: 1;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  font-size: 86px;
}

h2 {
  font-size: 56px;
}

h3 {
  font-size: 28px;
}

p {
  overflow-wrap: anywhere;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 2000;
  transform: translateY(-140%);
  padding: 10px 12px;
  color: var(--surface);
  background: var(--periwinkle-dark);
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(201, 64, 77, 0.28);
  outline-offset: 3px;
}

.hidden {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(16px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(222, 221, 229, 0.92);
  backdrop-filter: blur(16px);
}

.menu-toggle {
  display: none;
  min-height: 40px;
  padding: 9px 13px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--surface);
  background: var(--periwinkle);
  border-radius: 8px;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
}

.header-actions,
nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

nav button,
nav a,
.secondary-action,
.admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 13px;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: 8px;
}

nav button:hover,
nav a:hover,
.secondary-action:hover,
.admin-link:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-soft);
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  min-height: 40px;
  padding: 6px 8px 6px 12px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.language-switch span {
  margin: 0;
  font-size: 14px;
}

select {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 26px 7px 8px;
}

.page {
  padding: 64px clamp(16px, 4vw, 56px);
}

#home,
#mapPage,
#mapPanel,
#storiesPanel,
#storyForm,
#guidelinesPage {
  scroll-margin-top: 84px;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 76vh;
  padding-top: 54px;
  padding-bottom: 54px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 241, 244, 0.9) 55%, rgba(237, 239, 244, 0.92) 100%),
    linear-gradient(180deg, var(--surface) 0%, var(--paper-alt) 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(86, 103, 159, 0.08) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(201, 64, 77, 0.05) 0 1px, transparent 1px 100%);
  background-size: 92px 92px;
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 86%, transparent);
  pointer-events: none;
}

.hero-shell {
  position: relative;
  display: grid;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.hero-main {
  position: relative;
  z-index: 2;
  max-width: 760px;
  animation: rise-in 560ms ease both;
}

.hero-main .intro {
  max-width: 680px;
  color: var(--ink-soft);
  font-size: 22px;
  line-height: 1.55;
}

.hero-visual {
  position: absolute;
  z-index: 1;
  right: 0;
  top: 50%;
  width: min(34%, 360px);
  transform: translateY(-50%);
  pointer-events: none;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.95;
  filter: drop-shadow(0 28px 44px rgba(80, 95, 157, 0.18));
}

.mini-bubbles {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 16px;
}

.mini-bubbles span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 11px;
  color: var(--teal-dark);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  font-weight: 900;
}

.mini-bubbles span:nth-child(2) {
  background: var(--sky);
}

.mini-bubbles span:nth-child(3) {
  background: var(--mint);
}

.trust-points {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.trust-points span,
.step-label {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  color: var(--periwinkle-dark);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.trust-points span:nth-child(2) {
  color: var(--coral-dark);
}

.trust-points span:nth-child(3) {
  color: var(--magenta-dark);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 22px;
  height: 3px;
  content: "";
  background: currentColor;
  border-radius: 8px;
}

.intro,
.section-heading p {
  max-width: 760px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.58;
}

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

.primary-action,
#submitBtn,
#searchButton {
  min-height: 44px;
  padding: 12px 18px;
  color: var(--surface);
  background: var(--teal);
  box-shadow: 0 12px 24px rgba(201, 64, 77, 0.18);
}

.primary-action:hover,
#submitBtn:hover,
#searchButton:hover {
  transform: translateY(-1px);
  background: var(--teal-dark);
}

.impact {
  padding-top: 42px;
  background: var(--paper);
}

.emergency-strip {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 14px clamp(16px, 4vw, 56px);
  color: var(--surface);
  background: var(--coral-dark);
  text-align: center;
}

.emergency-strip span {
  color: rgba(255, 255, 255, 0.82);
}

.impact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(180px, 0.75fr));
  gap: 14px;
  max-width: 1280px;
  margin: 0 auto;
}

.impact-card {
  min-height: 152px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.impact-card.wide {
  grid-row: span 2;
  display: grid;
  align-content: end;
  min-height: 318px;
  background:
    linear-gradient(180deg, rgba(255, 245, 250, 0.78), rgba(253, 234, 242, 0.92)),
    var(--pink);
}

.impact-card.metric {
  display: grid;
  align-content: center;
  border-top: 5px solid var(--teal);
}

.impact-card:nth-child(2) {
  background: var(--periwinkle);
}

.impact-card:nth-child(2) h2,
.impact-card:nth-child(2) p,
.impact-card:nth-child(2) .eyebrow {
  color: var(--surface);
}

.impact-card.metric:nth-child(4) {
  border-top-color: var(--rose);
}

.impact-card.metric:nth-child(5) {
  border-top-color: var(--yellow);
}

.impact-card.metric span,
.impact-card h2 {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 46px;
  font-weight: 700;
}

.impact-card.metric span {
  color: var(--teal);
}

#latestStoryMetric {
  font-size: 34px;
  line-height: 1.1;
}

.impact-card.metric:nth-child(4) span {
  color: var(--rose);
}

.impact-card.metric:nth-child(5) span {
  color: var(--periwinkle-dark);
}

.impact-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.map-section {
  background:
    linear-gradient(180deg, var(--paper) 0%, #ffffff 55%, var(--paper-alt) 100%);
}

.section-heading {
  max-width: 930px;
  margin: 0 auto;
  animation: rise-in 560ms ease both;
}

.section-jump {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.section-jump button {
  min-height: 40px;
  padding: 9px 12px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
}

.section-jump button:hover {
  border-color: var(--coral);
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(360px, 0.58fr);
  gap: 22px;
  align-items: start;
  max-width: 1380px;
  margin: 34px auto 0;
}

.map-panel,
.stories-panel,
.story-form {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.map-panel {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 12px;
  padding: 14px;
  overflow: hidden;
}

.map-controls {
  display: grid;
  grid-template-columns: minmax(220px, 0.68fr) minmax(280px, 1fr);
  gap: 14px;
  align-items: end;
  padding: 4px 4px 0;
}

.map-controls label {
  margin-bottom: 4px;
}

.map-controls .step-label {
  margin-bottom: 8px;
}

.map-search {
  display: grid;
  gap: 4px;
}

.map-panel .step-label,
.story-form .step-label,
.stories-panel .step-label {
  margin-bottom: 12px;
}

.map-sidebar {
  display: grid;
  gap: 18px;
  align-content: start;
}

.stories-panel,
.story-form {
  padding: 18px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 900;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

input,
textarea {
  width: 100%;
  margin: 0 0 10px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(255, 82, 87, 0.18);
  border-color: var(--teal);
}

.search-help,
.search-status {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.search-status {
  min-height: 18px;
  color: var(--teal);
  font-weight: 800;
}

textarea {
  min-height: 164px;
  resize: vertical;
}

.form-step-heading {
  margin: 18px 0 10px;
  color: var(--periwinkle-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.form-warning {
  margin: 0 0 12px;
  padding: 11px 12px;
  color: var(--coral-dark);
  background: #fff7f7;
  border: 1px solid #ead0d4;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.35;
}

.privacy-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 8px 0 12px;
  padding: 12px;
  color: var(--ink-soft);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.35;
}

.privacy-choice input {
  width: auto;
  margin: 3px 0 0;
}

.optional-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status {
  min-height: 22px;
  margin: 2px 0 12px;
  color: var(--ink-soft);
  font-weight: 800;
  line-height: 1.35;
}

.form-status.error {
  color: var(--coral-dark);
}

.form-status.success {
  color: var(--periwinkle-dark);
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

#map {
  width: 100%;
  min-height: clamp(560px, 68vh, 760px);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

.story-cluster-icon {
  background: transparent;
  border: 0;
}

.story-cluster-icon span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--surface);
  background: var(--coral);
  border: 3px solid var(--surface);
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(217, 61, 73, 0.28);
  font-size: 17px;
  font-weight: 900;
}

.story-cluster-popup {
  display: grid;
  gap: 10px;
  color: var(--ink);
}

.story-cluster-popup > strong {
  font-size: 15px;
  font-weight: 900;
}

.story-cluster-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
}

.cluster-story-button {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 9px;
  color: var(--ink);
  text-align: left;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cluster-story-button:hover {
  border-color: var(--teal);
}

.cluster-story-button strong {
  font-weight: 900;
}

.cluster-story-button span {
  color: var(--muted);
  font-size: 12px;
}

.cluster-story-button p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--ink-soft);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.suggestions {
  position: relative;
  z-index: 800;
}

.suggestions button,
.story-card {
  display: grid;
  gap: 4px;
  width: 100%;
  margin-bottom: 8px;
  padding: 12px;
  color: var(--ink);
  text-align: left;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.suggestions button:hover,
.story-card:hover {
  border-color: var(--teal);
}

.suggestion-title,
.story-card strong {
  color: var(--ink);
  font-weight: 900;
}

.suggestion-detail,
.story-card span {
  color: var(--muted);
  font-size: 13px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.panel-heading .eyebrow {
  margin-bottom: 4px;
}

#latestStory {
  padding: 8px 10px;
  color: var(--teal-dark);
  background: var(--mint);
  border-radius: 8px;
  font-weight: 900;
  white-space: nowrap;
}

.stories-list {
  max-height: clamp(300px, 36vh, 460px);
  overflow: auto;
  padding-right: 4px;
}

.story-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: end;
  margin: 0 0 12px;
}

.compact-filter,
.toggle-filter {
  margin: 0;
}

.compact-filter span,
.toggle-filter span {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.toggle-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  padding: 10px 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.toggle-filter input {
  width: auto;
  margin: 0;
}

.toggle-filter span {
  margin: 0;
  white-space: nowrap;
}

#clearStoryFilters {
  min-height: 43px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.story-card {
  position: relative;
}

.story-card.is-read {
  opacity: 0.78;
}

.story-badge {
  justify-self: start;
  padding: 4px 8px;
  color: var(--surface);
  background: var(--rose);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.story-badge.read {
  color: var(--teal-dark);
  background: var(--mint);
}

.story-precision {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.story-author {
  display: block;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.empty-stories {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 14px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
}

.empty-stories p {
  margin: 0;
}

.empty-stories button {
  justify-self: start;
  min-height: 40px;
  padding: 9px 12px;
  color: var(--surface);
  background: var(--coral);
}

.form-note {
  margin: 6px 0 14px;
  padding: 12px 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.45;
}

.privacy-promises {
  display: grid;
  gap: 0;
  margin-bottom: 14px;
  border-top: 1px solid var(--line);
}

.privacy-promises div {
  display: grid;
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.privacy-promises strong {
  color: var(--teal-dark);
  font-size: 16px;
}

.privacy-promises span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.guidelines {
  background:
    linear-gradient(180deg, var(--paper-alt) 0%, #ffffff 100%);
}

.guidelines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  max-width: 1280px;
  margin: 30px auto 0;
}

.guidelines-grid article {
  min-height: 230px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.guidelines-grid article span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  color: var(--teal-dark);
  background: var(--mint);
  border-radius: 8px;
  font-weight: 900;
}

.guidelines-grid article:nth-child(2) span {
  color: var(--rose-dark);
  background: #ffe2e5;
}

.guidelines-grid article:nth-child(3) span {
  background: var(--sky);
}

.guidelines-grid article:nth-child(4) span {
  background: #fff1a6;
}

.guidelines-grid article p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.emergency-section {
  background:
    linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
}

.emergency-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.emergency-card {
  padding: clamp(22px, 4vw, 36px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.emergency-copy {
  align-self: stretch;
  display: grid;
  align-content: center;
  background: var(--periwinkle);
}

.emergency-copy h2,
.emergency-copy p,
.emergency-copy .eyebrow {
  color: var(--surface);
}

.emergency-copy h2 {
  max-width: 680px;
  font-size: 54px;
}

.emergency-copy p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 20px;
  line-height: 1.55;
}

.emergency-numbers {
  display: grid;
  gap: 12px;
}

.country-help {
  display: grid;
  gap: 10px;
}

.country-help h3 {
  font-size: 26px;
}

.emergency-number {
  display: grid;
  gap: 6px;
  min-height: 136px;
  padding: 18px;
  color: var(--ink);
  text-decoration: none;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.emergency-number:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-soft);
}

.emergency-number span {
  color: var(--rose);
  font-family: "Fraunces", Georgia, serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
}

.emergency-number strong {
  font-size: 20px;
}

.emergency-number small {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

.emergency-number.urgent {
  color: var(--surface);
  background: var(--rose);
  border-color: transparent;
}

.emergency-number.urgent span,
.emergency-number.urgent small {
  color: var(--surface);
}

footer {
  padding: 34px clamp(16px, 4vw, 56px);
  color: var(--surface);
  background: var(--periwinkle-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(220px, 1fr) minmax(180px, 0.8fr);
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto 26px;
}

.footer-identity,
.footer-contacts,
.footer-admin {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 8px;
  text-align: left;
}

.footer-contacts a {
  color: var(--surface);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.44);
}

.footer-contacts strong,
.footer-admin strong {
  color: var(--surface);
  font-size: 15px;
}

.footer-contacts a:hover {
  color: var(--mint);
  border-bottom-color: var(--mint);
}

.footer-identity strong {
  color: var(--mint);
  font-family: "Fraunces", Georgia, serif;
  font-size: 24px;
}

.footer-identity span {
  color: rgba(255, 255, 255, 0.72);
}

footer .admin-link {
  min-height: 36px;
  color: var(--surface);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

.partner-title {
  margin: 24px 0 12px;
  text-align: center;
  font-weight: 800;
}

.footer-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  max-width: 1080px;
  margin: 0 auto;
}

.footer-logos img {
  width: 100%;
  max-height: 88px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.95);
  padding: 10px;
}

.about-page {
  min-height: 100vh;
}

.about-hero {
  background:
    linear-gradient(135deg, var(--periwinkle) 0%, var(--periwinkle-dark) 58%, var(--magenta) 100%);
}

.about-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: clamp(22px, 5vw, 58px);
  max-width: 1180px;
  margin: 0 auto;
}

.about-card,
.about-feature {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.about-card {
  color: var(--surface);
}

.about-card h1 {
  color: var(--surface);
  max-width: 720px;
  font-size: clamp(58px, 8vw, 92px);
}

.about-card p {
  color: rgba(255, 255, 255, 0.76);
  max-width: 660px;
  font-size: 20px;
  line-height: 1.55;
}

.about-feature {
  display: grid;
  gap: 16px;
  align-content: center;
  padding: clamp(18px, 3vw, 30px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
}

.about-feature img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto;
}

.about-feature p {
  color: var(--muted);
  line-height: 1.5;
}

.about-manifesto-section {
  padding-top: 48px;
  padding-bottom: 48px;
  background: var(--pink-soft);
}

.about-manifesto {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 54px) 0;
  border-top: 1px solid rgba(102, 115, 180, 0.28);
  border-bottom: 1px solid rgba(102, 115, 180, 0.28);
}

.about-manifesto p:not(.eyebrow) {
  max-width: 980px;
  margin: 0;
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.02;
}

.about-explain-section {
  padding-top: 0;
  background:
    var(--pink-soft);
}

.about-explain {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.about-explain article {
  padding: clamp(20px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.about-explain .campaign-story {
  display: grid;
  align-content: center;
  min-height: 360px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(231, 233, 255, 0.94));
}

.about-explain .logo-meaning {
  display: grid;
  gap: 14px;
}

.logo-meaning img {
  display: block;
  width: min(280px, 100%);
  margin: 0 auto;
}

.about-explain h2 {
  max-width: 760px;
  font-size: clamp(34px, 5vw, 58px);
}

.about-explain p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.58;
}

.about-path-section {
  padding-top: 0;
}

.about-content {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.about-content article,
.privacy-grid article {
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.about-content article {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 245, 250, 0.86));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
}

.path-number {
  display: block;
  margin: -8px 0 22px;
  color: rgba(102, 115, 180, 0.24);
  font-family: "Fraunces", Georgia, serif;
  font-size: 82px;
  line-height: 0.9;
  font-weight: 900;
}

.about-content article p,
.privacy-grid article p {
  color: var(--muted);
  line-height: 1.5;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}

.privacy-detail-section {
  padding-top: 0;
  background: #ffffff;
}

.privacy-detail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 30px auto 0;
}

.privacy-detail article {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.privacy-detail h3 {
  font-size: 24px;
}

.privacy-detail p {
  color: var(--muted);
  line-height: 1.5;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  h1 {
    font-size: 68px;
  }

  h2 {
    font-size: 48px;
  }

  .hero-visual {
    width: min(30%, 320px);
    opacity: 0.72;
  }

  .map-layout,
  .about-shell,
  .emergency-grid {
    grid-template-columns: 1fr;
  }

  .map-panel {
    position: static;
  }

  .map-controls {
    grid-template-columns: 1fr;
  }

  .impact-grid,
  .guidelines-grid,
  .about-content,
  .privacy-grid,
  .privacy-detail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .menu-toggle {
    display: inline-flex;
    grid-column: 3;
    justify-self: end;
    align-items: center;
    justify-content: center;
  }

  .site-header > .language-switch {
    grid-column: 2;
    justify-self: end;
  }

  .header-actions {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 12px;
    z-index: 1200;
    width: min(260px, calc(100vw - 24px));
    max-height: min(68vh, 360px);
    overflow: auto;
    padding: 8px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 36px rgba(32, 34, 52, 0.16);
  }

  .header-actions.is-open {
    display: grid;
    gap: 8px;
  }

  nav {
    display: grid;
    width: 100%;
    justify-content: stretch;
  }

  nav button,
  nav a {
    width: 100%;
    justify-content: flex-start;
    min-height: 38px;
  }

  .page {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .hero {
    min-height: auto;
    padding-top: 38px;
    padding-bottom: 38px;
  }

  .hero-visual {
    position: relative;
    top: auto;
    right: auto;
    width: min(320px, 100%);
    margin-top: 26px;
    opacity: 1;
    transform: none;
  }

  .mini-bubbles {
    justify-content: flex-start;
  }

  .trust-points,
  .section-jump {
    display: grid;
  }

  .impact-grid,
  .guidelines-grid,
  .about-explain,
  .about-content,
  .privacy-grid,
  .privacy-detail,
  .optional-details,
  .story-tools,
  .search-row {
    grid-template-columns: 1fr;
  }

  .impact-card.wide {
    min-height: 240px;
  }

  .about-content article {
    min-height: auto;
  }

  #map {
    min-height: 430px;
  }

  h1,
  .about-card h1 {
    font-size: 48px;
  }

  h2,
  .emergency-copy h2 {
    font-size: 36px;
  }

  h3 {
    font-size: 24px;
  }

  .hero-main .intro,
  .intro,
  .section-heading p,
  .about-card p {
    font-size: 18px;
  }

  .panel-heading {
    display: grid;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .emergency-number {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .site-header {
    position: relative;
    grid-template-columns: auto auto auto;
  }

  nav button,
  nav a,
  .secondary-action {
    width: 100%;
  }

  nav {
    width: 100%;
  }

  .language-switch {
    width: auto;
    padding-left: 8px;
    justify-content: space-between;
  }

  .language-switch span {
    display: none;
  }

  .brand {
    width: 42px;
    height: 42px;
  }

  .menu-toggle {
    min-height: 38px;
    padding: 8px 10px;
  }

  h1,
  .about-card h1 {
    font-size: 38px;
  }

  .impact-card.metric span,
  .impact-card h2 {
    font-size: 38px;
  }

  #map {
    min-height: 360px;
  }

  .hero-visual {
    width: min(240px, 84%);
  }

  .actions,
  .trust-points,
  .section-jump {
    width: 100%;
  }

  .primary-action,
  .secondary-action,
  #submitBtn,
  #searchButton,
  .section-jump button {
    width: 100%;
  }

  .emergency-strip {
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
  }

  .emergency-number span {
    font-size: 34px;
  }

  .footer-contacts a {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 380px) {
  h1,
  .about-card h1 {
    font-size: 34px;
  }

  h2,
  .emergency-copy h2 {
    font-size: 32px;
  }

  #map {
    min-height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
