:root {
  --navy: #0d1b3d;
  --navy-2: #172b59;
  --blue: #1a237e;
  --red: #c62828;
  --red-2: #d93636;
  --red-soft: #fff0f0;
  --ink: #1f2430;
  --muted: #626b7a;
  --line: #dfe4ec;
  --paper: #ffffff;
  --off: #f5f7fb;
  --gold: #d1a94c;
  --green: #13795b;
  --green-soft: #eaf8f3;
  --amber: #9a5b00;
  --amber-soft: #fff7e8;
  --shadow: 0 20px 60px rgba(13, 27, 61, .13);
  --shadow-soft: 0 12px 36px rgba(13, 27, 61, .09);
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  transform: translateY(-140%);
  background: white;
  color: var(--navy);
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 1000;
  box-shadow: var(--shadow-soft);
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(13, 27, 61, .94);
  backdrop-filter: blur(14px);
  color: white;
}
.header-inner {
  min-height: 70px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.02em;
}
.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  padding: 3px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 10px;
  background: #fff;
}
.brand-mark img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  font-family: Merriweather, Georgia, serif;
  font-size: 10px;
  font-weight: 800;
  color: #8b5a24;
}
.brand-text { font-size: 14px; }
.nav { display: flex; gap: 24px; }
.nav a {
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.nav a:hover { color: white; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.01em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-danger {
  color: white;
  background: var(--red);
  box-shadow: 0 10px 28px rgba(198, 40, 40, .25);
}
.button-danger:hover { background: var(--red-2); box-shadow: 0 14px 34px rgba(198, 40, 40, .32); }
.button-small { min-height: 42px; padding: 0 18px; font-size: 14px; }
.button-large { min-height: 56px; padding: 0 28px; }
.button-full { width: 100%; }

.hero {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 75% 22%, rgba(59, 97, 176, .30), transparent 32%),
    linear-gradient(145deg, #08142f 0%, #0d1b3d 52%, #152b58 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}
.hero-grid {
  position: relative;
  z-index: 2;
  min-height: calc(100svh - 70px);
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 70px;
  padding-top: 72px;
  padding-bottom: 74px;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--red-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.hero .eyebrow { color: #ff8f8f; }
.hero h1,
.section-heading h2,
.petition-copy h2,
.share-inner h2 {
  font-family: Merriweather, Georgia, serif;
  letter-spacing: -.035em;
}
.hero h1 {
  margin: 0;
  max-width: 790px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.03;
  font-weight: 900;
}
.hero h1 span { color: #ffb1b1; }
.hero-lead {
  max-width: 760px;
  margin: 28px 0 0;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
  color: rgba(255,255,255,.78);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: 100%;
  margin-top: 36px;
  text-align: center;
}
.hero-actions .button-danger {
  width: min(100%, 590px);
  min-height: 64px;
  justify-content: center;
  padding: 18px 30px;
  border: 2px solid rgba(255,255,255,.2);
  border-radius: 16px;
  box-shadow: 0 16px 38px rgba(211,47,47,.38), 0 0 0 6px rgba(211,47,47,.10);
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 900;
  letter-spacing: .015em;
  text-transform: uppercase;
}
.hero-actions .button-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 46px rgba(211,47,47,.46), 0 0 0 7px rgba(211,47,47,.12);
}
.hero-actions .text-link {
  display: inline-block;
  font-size: 14px;
  opacity: .82;
}

.text-link {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,.28);
  padding-bottom: 2px;
}
.text-link:hover { color: white; }
.legal-chip {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 34px;
  max-width: 780px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  background: rgba(255,255,255,.06);
}
.legal-chip-icon {
  display: grid;
  place-items: center;
  min-height: 54px;
  border-radius: 12px;
  background: white;
  color: var(--navy);
  font-family: Merriweather, Georgia, serif;
  font-weight: 900;
}
.legal-chip p { margin: 0; color: rgba(255,255,255,.78); font-size: 14px; }
.legal-chip strong { color: white; }

.hero-visual { position: relative; min-height: 560px; align-self: center; }
.hero-rule { height: 6px; background: var(--red); }

.section { padding: 74px 0; }
.section-compact { padding-top: 84px; }
.section-muted { background: var(--off); }
.section-dark { background: var(--navy); color: white; }
.section-heading { max-width: 760px; margin-bottom: 30px; }
.section-heading h2, .petition-copy h2, .share-inner h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
  color: var(--navy);
}
.section-heading p:not(.eyebrow) { margin: 18px 0 0; color: var(--muted); font-size: 18px; }
.section-heading-light h2 { color: white; }
.section-heading-light p:not(.eyebrow) { color: rgba(255,255,255,.7); }

.status-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.status-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}
.status-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.status-card h3 { margin: 13px 0 10px; font-size: 22px; line-height: 1.3; letter-spacing: -.02em; }
.status-card p { margin: 0 0 14px; color: var(--muted); }
.status-card a { font-weight: 800; text-decoration: none; color: var(--blue); }
.status-label { display: inline-flex; padding: 6px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.status-verified .status-label { color: var(--green); background: var(--green-soft); }
.status-allegation .status-label { color: var(--amber); background: var(--amber-soft); }
.status-law .status-label { color: var(--blue); background: #edf0ff; }

.sources-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 72px; align-items: start; }
.sources-heading { position: sticky; top: 120px; }
.accordion { border-top: 1px solid var(--line); }
.source-item { border-bottom: 1px solid var(--line); }
.source-item summary {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  align-items: start;
  list-style: none;
  padding: 24px 0;
  cursor: pointer;
}
.source-item summary::-webkit-details-marker { display: none; }
.source-item summary::after {
  content: "+";
  grid-column: 3;
  grid-row: 1;
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
}
.source-item[open] summary::after { content: "–"; }
.source-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--off); }
.source-item strong { display: block; line-height: 1.35; color: #0d1b3d; }
.source-item small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.source-body { padding: 0 0 26px 52px; color: var(--muted); }
.source-body p { margin-top: 0; }
.source-body a { color: var(--blue); font-weight: 800; text-decoration: none; }
.source-actions { display: flex; gap: 18px; flex-wrap: wrap; }

.petition-section { background: linear-gradient(180deg, #f8f9fc 0%, #eef2f8 100%); }
.petition-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 70px; align-items: start; }
.petition-copy { position: sticky; top: 110px; }
.petition-copy h2 { margin: 0; }
.petition-lead { margin: 22px 0; color: var(--muted); font-size: 18px; }
blockquote {
  margin: 30px 0;
  padding: 22px 0 22px 24px;
  border-left: 4px solid var(--red);
  color: var(--navy);
  font-family: Merriweather, Georgia, serif;
  font-size: 20px;
  line-height: 1.5;
}
.counter-panel {
  margin-top: 34px;
  padding: 24px;
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-soft);
}
.counter-panel > div:first-child { display: flex; align-items: baseline; gap: 10px; }
.counter-panel #signatureCount { font-size: 48px; line-height: 1; color: var(--navy); letter-spacing: -.05em; }
.counter-panel span { color: var(--muted); }
.counter-target { margin-top: 10px; color: var(--muted); font-size: 14px; }
.progress-track { height: 10px; margin-top: 14px; border-radius: 999px; background: #e7eaf0; overflow: hidden; }
.progress-fill { height: 100%; width: 0; border-radius: inherit; background: var(--red); transition: width 1.1s ease; }
.counter-panel small { display: block; margin-top: 13px; color: var(--muted); }

.petition-form {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow);
}
.form-row { display: grid; gap: 8px; margin-bottom: 18px; }
.form-row label { font-weight: 700; font-size: 14px; }
.form-row label span, .check-row span span { color: var(--red); }
.form-row label small { font-weight: 500; color: var(--muted); }
input, select, textarea {
  width: 100%;
  border: 1px solid #cfd5df;
  border-radius: 12px;
  background: white;
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input, select { min-height: 50px; }
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(26,35,126,.08); }
.check-row { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin: 18px 0; color: var(--muted); font-size: 13px; }
.check-row input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; accent-color: var(--red); }
.form-note { margin: 14px 0 0; color: var(--muted); font-size: 12px; }
.form-message { min-height: 24px; margin-top: 12px; font-size: 13px; font-weight: 700; }
.form-message.success { color: var(--green); }
.form-message.error { color: var(--red); }

.share-section { padding-top: 72px; padding-bottom: 72px; }
.share-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.share-inner h2 { font-size: clamp(30px, 4vw, 44px); }
.share-buttons { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.share-button {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: white;
  font-weight: 700;
}
.share-button:hover { border-color: var(--navy); }

.site-footer {
  padding: 0;
  background: #08142f;
  color: rgba(255,255,255,.70);
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-shell { padding: 52px 0 28px; }
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(220px, .55fr);
  gap: 56px;
  align-items: start;
}
.footer-brand { color: white; margin-bottom: 14px; }
.footer-brand-wrap > p {
  max-width: 650px;
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255,255,255,.62);
}
.footer-links {
  display: grid;
  gap: 10px;
  justify-items: end;
}
.footer-links a,
.footer-link-button {
  color: rgba(255,255,255,.76);
  text-decoration: none;
  font: inherit;
  font-size: 13px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: color .18s ease;
}
.footer-links a:hover,
.footer-link-button:hover { color: #fff; }

.footer-resources {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.10);
}
.footer-resources-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 14px;
}
.footer-resources-head strong {
  color: rgba(255,255,255,.92);
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.footer-resources-head span {
  color: rgba(255,255,255,.38);
  font-size: 11px;
}
.footer-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.footer-resource {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) 34px;
  gap: 14px;
  align-items: center;
  min-height: 86px;
  padding: 10px 12px 10px 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.footer-resource:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.24);
  background: rgba(255,255,255,.065);
}
.footer-resource-logo {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  padding: 7px;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(0,0,0,.18);
}
.footer-resource-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.footer-resource-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.footer-resource-copy strong {
  color: #fff;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 760;
}
.footer-resource-copy span {
  color: rgba(255,255,255,.48);
  font-size: 12px;
  line-height: 1.3;
}
.footer-resource-arrow {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  color: rgba(255,255,255,.78);
  font-size: 16px;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.footer-resource:hover .footer-resource-arrow {
  color: #fff;
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.06);
}
.footer-affiliation-note {
  margin: 12px 0 0 !important;
  color: rgba(255,255,255,.36);
  font-size: 10px !important;
  line-height: 1.5;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-bottom p {
  margin: 0;
  font-size: 11px;
  color: rgba(255,255,255,.38);
}
.footer-bottom-meta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.legal-page { background: var(--off); min-height: 100vh; }
.legal-page main { padding: 70px 0 100px; }
.legal-card { max-width: 880px; margin: 0 auto; padding: 42px; background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.legal-card h1 { margin-top: 0; font-family: Merriweather, Georgia, serif; color: var(--navy); font-size: 42px; }
.legal-card h2 { margin-top: 32px; color: var(--navy); }
.legal-card p, .legal-card li { color: var(--muted); }
.back-link { display: inline-block; margin-bottom: 20px; color: var(--blue); font-weight: 800; text-decoration: none; }

.portrait-card {
  position: relative;
  width: min(100%, 455px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px;
  background: #0a1532;
  box-shadow: 0 30px 80px rgba(0,0,0,.32);
}
.portrait-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  border-radius: inherit;
}
.portrait-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 15%;
  filter: saturate(.82) contrast(1.03);
}

.battle-cry {
  margin-top: 24px;
  max-width: 760px;
  padding: 15px 18px;
  border-left: 5px solid #ff6b6b;
  background: rgba(198,40,40,.18);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .055em;
  line-height: 1.45;
}
.hero-lead strong { color: #fff; }

.authorities-section {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}
.authority-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.authority-card {
  position: relative;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.authority-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--navy);
}
.authority-mokas::before { background: #19735a; }
.authority-police::before { background: #245aa5; }
.authority-prosecution::before { background: #6d4b91; }
.authority-citizenship::before { background: var(--red); }
.authority-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.authority-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: var(--off);
  font-size: 22px;
}
.authority-tag {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-align: right;
}
.authority-card h3 {
  margin: 20px 0 10px;
  color: var(--navy);
  font-family: Merriweather, Georgia, serif;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.authority-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
}
.authority-card p strong { color: var(--ink); }
.authority-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.authority-link:hover { text-decoration: underline; }

html, body { max-width: 100%; overflow-x: clip; }
main, section, .container, .hero-grid, .petition-grid, .sources-layout { min-width: 0; }
input, select, textarea { width: 100%; max-width: 100%; min-width: 0; }
.source-item summary, .source-body, .check-row span, .gdpr-inline, .petition-form { min-width: 0; overflow-wrap: anywhere; }
button, .button, .share-button { touch-action: manipulation; }

.inline-legal-link {
  appearance: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.gdpr-inline {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 15px 16px;
  border: 1px solid #bfe4d6;
  border-radius: 14px;
  background: var(--green-soft);
  color: #245247;
  font-size: 13px;
  line-height: 1.55;
}
.gdpr-inline strong { display: block; color: var(--green); }
.gdpr-inline .gdpr-meta {
  display: grid;
  gap: 5px;
  color: #245247;
}
.gdpr-inline .gdpr-meta b { color: #174b3b; }
.form-help {
  margin: -7px 0 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
.legal-dialog {
  width: min(760px, calc(100vw - 28px));
  max-height: min(84vh, 860px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  color: var(--ink);
  background: white;
  box-shadow: 0 28px 90px rgba(0,0,0,.32);
}
.legal-dialog::backdrop {
  background: rgba(5, 13, 31, .72);
  backdrop-filter: blur(4px);
}
.legal-dialog-inner {
  display: grid;
  grid-template-rows: auto 1fr;
  max-height: inherit;
}
.legal-dialog-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid var(--line);
  background: white;
}
.legal-dialog-head h2 {
  margin: 2px 0 0;
  color: var(--navy);
  font-family: Merriweather, Georgia, serif;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.15;
}
.dialog-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--navy);
  font-size: 22px;
  line-height: 1;
}
.dialog-close:hover { background: var(--off); }
.legal-dialog-body {
  overflow: auto;
  padding: 24px 26px 30px;
}
.legal-dialog-body h3 {
  margin: 24px 0 7px;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.3;
}
.legal-dialog-body h3:first-child { margin-top: 0; }
.legal-dialog-body p,
.legal-dialog-body li {
  color: #4c5564;
  font-size: 13px;
  line-height: 1.65;
}
.legal-dialog-body p { margin: 0 0 12px; }
.legal-dialog-body ul { margin: 8px 0 14px; padding-left: 20px; }
.legal-dialog-body a { color: var(--blue); font-weight: 700; }
.policy-callout {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #bfe4d6;
  border-radius: 14px;
  background: var(--green-soft);
  color: #245247 !important;
}

.lang-switch{display:inline-flex;gap:4px;padding:4px;border:1px solid rgba(255,255,255,.16);border-radius:999px;background:rgba(255,255,255,.05)}.lang-switch a{display:inline-flex;align-items:center;justify-content:center;min-width:42px;min-height:34px;padding:0 10px;border-radius:999px;color:rgba(255,255,255,.72);text-decoration:none;font-size:12px;font-weight:800;letter-spacing:.05em}.lang-switch a[aria-current="page"]{background:#fff;color:var(--navy)}.review-strip{border-top:1px solid rgba(255,255,255,.08);border-bottom:1px solid rgba(255,255,255,.08);background:#0a1734;color:rgba(255,255,255,.66)}.review-strip .container{display:flex;gap:18px;flex-wrap:wrap;align-items:center;justify-content:center;padding:12px 0;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.review-strip b{color:#fff}.identity-note{margin-top:12px;color:rgba(255,255,255,.58);font-size:13px}.identity-note strong{color:rgba(255,255,255,.92)}

@media (min-width: 1021px) {
  .hero-grid {
    align-items: start;
    gap: clamp(42px, 5vw, 72px);
    padding-top: 58px;
    padding-bottom: 58px;
  }
  .hero-copy { min-width: 0; }
  .hero-visual {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 8px;
  }
}

@media (max-width: 1020px) {
  .header-inner { gap: 18px; }
  .nav { gap: 16px; }
  .nav a { font-size: 13px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
    align-items: start;
    gap: 34px;
    min-height: auto;
    padding-top: 48px;
    padding-bottom: 50px;
  }
  .hero h1 { font-size: clamp(42px, 5.8vw, 62px); }
  .hero-visual {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 6px;
    width: 100%;
  }
  .portrait-card { width: min(100%, 390px); }
  .sources-layout { grid-template-columns: 1fr; gap: 24px; }
  .sources-heading, .petition-copy { position: static; }
  .petition-grid { grid-template-columns: 1fr; }
  .share-inner { grid-template-columns: 1fr; align-items: start; }
  .share-buttons { justify-content: flex-start; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-links { justify-items: start; }
}

@media (max-width: 900px) {
  .hero-grid { gap: 30px; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .brand-text { display: none; }
  .nav { justify-self: center; }
  .authority-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .container { width: calc(100% - 28px); }
  .site-header { backdrop-filter: blur(10px); }
  .header-inner { min-height: 62px; grid-template-columns: auto 1fr!important; gap: 10px; }
  .header-inner .nav { display: none; }
  .header-inner > .button { display: none; }
  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding-top: 34px;
    padding-bottom: 36px;
  }
  .hero h1 { font-size: clamp(34px, 10.2vw, 50px); line-height: 1.04; max-width: 100%; }
  .hero-lead { margin-top: 22px; font-size: 16px; line-height: 1.55; max-width: 100%; }
  .battle-cry { margin-top: 20px; padding: 13px 14px; font-size: 12px; letter-spacing: .035em; }
  .hero-actions { flex-direction: column; align-items: stretch; margin-top: 28px; gap: 11px; }
  .hero-actions .button-danger {
    width: 100%;
    min-height: 58px;
    padding: 16px 18px;
    border-radius: 14px;
    font-size: 15px;
    line-height: 1.25;
  }
  .hero-actions .text-link { text-align: center; width: 100%; border: 0; }
  .hero-copy .legal-chip { margin-top: 20px; }
  .legal-chip { grid-template-columns: 56px 1fr; align-items: start; padding: 15px; gap: 12px; }
  .legal-chip-icon { width: 56px; min-height: 48px; }
  .legal-chip p { font-size: 13px; }
  .hero-visual {
    order: 2;
    width: 100%;
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: -2px auto 0;
  }
  .portrait-card { width: min(100%, 430px); border-radius: 18px; }
  .section { padding: 54px 0; }
  .section-heading { margin-bottom: 30px; }
  .section-heading h2, .petition-copy h2, .share-inner h2 { font-size: clamp(30px, 9vw, 42px); }
  .section-heading p:not(.eyebrow) { font-size: 16px; }
  .status-grid { grid-template-columns: 1fr; }
  .authority-card { padding: 21px 20px 22px; }
  .authority-card h3 { font-size: 19px; }
  .source-item summary { padding: 18px 2px; gap: 12px; }
  .source-icon { flex: 0 0 auto; }
  .source-body { padding-left: 0; }
  .petition-form { padding: 22px; border-radius: 20px; }
  .check-row { align-items: flex-start; }
  .share-buttons { width: 100%; }
  .share-button { flex: 1 1 calc(50% - 10px); text-align: center; }
  .lang-switch { justify-self: end; }
  .review-strip .container { justify-content: flex-start; gap: 10px; }
  .review-strip .container span { width: 100%; }
  .footer-shell { padding: 42px 0 24px; }
  .footer-resources-head { display: block; }
  .footer-resources-head span { display: block; margin-top: 5px; }
  .footer-resource-grid { grid-template-columns: 1fr; }
  .footer-resource { grid-template-columns: 58px minmax(0,1fr) 32px; min-height: 78px; }
  .footer-resource-logo { width: 58px; height: 58px; }
  .footer-bottom { display: grid; gap: 8px; }
  .footer-bottom-meta { justify-content: flex-start; }
  .legal-card { padding: 26px 20px; }
  .legal-card h1 { font-size: 34px; }
}

@media (max-width: 560px) {
  .legal-dialog {
    width: calc(100vw - 16px);
    max-height: 90vh;
    border-radius: 18px;
  }
  .legal-dialog-head { padding: 18px 18px 14px; }
  .legal-dialog-body { padding: 18px 18px 24px; }
}

@media (max-width: 480px) {
  .container { width: calc(100% - 22px); }
  .hero-grid { padding-top: 28px; gap: 22px; }
  .eyebrow { font-size: 10px; letter-spacing: .105em; }
  .hero h1 { font-size: clamp(32px, 10.6vw, 44px); }
  .hero-lead { font-size: 15px; }
  .battle-cry { font-size: 11px; line-height: 1.5; }
  .legal-chip { grid-template-columns: 1fr; padding: 14px; }
  .legal-chip-icon { width: 64px; }
  .portrait-card { width: 100%; }
  .status-card { padding: 21px 18px; }
  .authority-topline { align-items: flex-start; }
  .authority-tag { max-width: 55%; }
  .authority-card h3 { margin-top: 16px; }
  .source-item summary { font-size: 14px; }
  .source-item small { font-size: 11px; }
  .petition-form { padding: 18px 14px; border-radius: 16px; }
  .form-row { margin-bottom: 15px; }
  .form-row input, .form-row select, .form-row textarea { padding-left: 12px; padding-right: 12px; }
  .check-row { gap: 10px; font-size: 12px; }
  .gdpr-inline { padding: 13px; font-size: 12px; }
  .share-button { flex-basis: 100%; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Explicit contrast for source accordion in embedded and standalone views. */
#sources { background: #ffffff; color: #1f2430; }
#sources .source-item summary, #sources .source-item summary strong { color: #0d1b3d; }
#sources .source-item small, #sources .source-body { color: #515c70; }
#sources .source-body a { color: #1a237e; }

/* Fixed site palette: do not inherit host heading and form colors. */
body { color-scheme: light; }
h1, h2, h3, h4, h5, h6 { color: #0d1b3d; }
.status-card, .authority-card, .petition-form { color: #1f2430; }
.status-card h3, .authority-card h3 { color: #0d1b3d; }
.form-row label { color: #1f2430; }
.hero h1, .section-dark h2, .section-heading-light h2 { color: #ffffff; }
.footer-bottom p, .footer-resources-head span, .footer-resource-copy span, .footer-affiliation-note { color: #b8c1d3; }

/* Flush header/hero boundary and balanced header spacing. */
#main { display: block; width: 100%; max-width: none; margin: 0; padding: 0; border: 0; }
.site-header { margin: 0; padding: 0; }
#main > .hero { margin: 0; padding: 0; border: 0; }
.header-inner { grid-template-columns: minmax(0, 1fr) auto auto auto; padding-top: 12px; padding-bottom: 12px; }
@media (min-width: 761px) and (max-width: 1020px) {
  .header-inner { grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 14px; }
  .header-inner .brand-text { display: none; }
}
