:root {
  --ink: #0f1412;
  --muted: #4f5d56;
  --paper: #f4f7f5;
  --white: #ffffff;
  --sky: #b8e5ea;
  --sky-deep: #3d9aaa;
  --green: #78b82a;
  --green-deep: #1f5c28;
  --gold: #e8c547;
  --gold-deep: #b8941f;
  --black: #101614;
  --line: rgba(16, 22, 20, 0.14);
  --shadow: 0 24px 70px rgba(16, 22, 20, 0.16);
  --header-h: 88px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

h1,
h2,
h3,
.royal-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

/* —— Official top stripe —— */
.official-stripe {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background:
    linear-gradient(160deg, var(--sky) 0%, var(--sky) 47%, var(--green) 47.2%, var(--green) 100%);
}

/* —— Header —— */
.site-header {
  position: fixed;
  z-index: 25;
  top: 4px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--header-h);
  padding: 0 clamp(16px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(180deg, #161d1a 0%, var(--black) 100%);
  border-bottom: 2px solid rgba(232, 197, 71, 0.55);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.site-header.is-scrolled {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.42);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 2px;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(232, 197, 71, 0.7);
  border-radius: 50%;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: Georgia, serif;
}

.brand small {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.nav-links a[aria-current="page"] {
  color: var(--black);
  background: var(--gold);
  border-color: var(--gold-deep);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(232, 197, 71, 0.45);
  border-radius: 4px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 410px);
  align-items: end;
  gap: clamp(24px, 5vw, 74px);
  padding: calc(var(--header-h) + 56px) clamp(18px, 5vw, 72px) 72px;
  overflow: hidden;
  color: var(--white);
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background: url("assets/flag.png") center / cover;
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 20, 18, 0.88), rgba(8, 20, 18, 0.42) 55%, rgba(8, 20, 18, 0.62)),
    linear-gradient(0deg, rgba(8, 20, 18, 0.55), transparent 45%);
}

.hero-content,
.royal-card {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 850px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow,
.subhero .eyebrow {
  color: var(--gold);
}

h1 {
  max-width: 920px;
  margin-bottom: 24px;
  font-size: clamp(42px, 7vw, 96px);
  line-height: 0.96;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.15;
}

.lead {
  max-width: 760px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.button.primary {
  color: var(--black);
  background: var(--gold);
  border-color: var(--gold-deep);
}

.button.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

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

.royal-card {
  padding: 28px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(232, 197, 71, 0.5);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.card-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--green-deep);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.royal-card h2 {
  margin-bottom: 22px;
  font-size: 28px;
}

.royal-card dl {
  margin: 0;
}

.royal-card div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.royal-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.royal-card dd {
  margin: 0;
  font-weight: 700;
}

/* —— Sections —— */
.section,
.band {
  padding: clamp(72px, 10vw, 120px) clamp(18px, 5vw, 72px);
}

.band {
  display: grid;
  grid-template-columns: minmax(240px, 430px) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 90px);
  align-items: start;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band > p,
.section-copy p,
.citizenship-card p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.68;
}

.section-copy {
  max-width: 760px;
  margin-bottom: 42px;
}

.compact {
  margin-bottom: 24px;
}

.state {
  background: var(--white);
}

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

.feature,
.facts article,
.gov-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 8px 28px rgba(16, 22, 20, 0.06);
}

.feature {
  min-height: 210px;
  padding: 24px;
}

.feature.large {
  grid-column: span 2;
  color: var(--white);
  background:
    radial-gradient(circle at top right, rgba(232, 197, 71, 0.22), transparent 36%),
    linear-gradient(135deg, #1a2621, var(--green-deep));
  border-color: rgba(232, 197, 71, 0.35);
}

.feature.large p,
.feature.large a {
  color: rgba(255, 255, 255, 0.82);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  color: var(--gold);
  border: 1px solid rgba(232, 197, 71, 0.55);
  border-radius: 4px;
  font-size: 28px;
}

.feature p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.feature a {
  display: inline-block;
  margin-top: 14px;
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.symbols {
  background:
    linear-gradient(180deg, rgba(184, 229, 234, 0.28), transparent),
    var(--paper);
}

.symbol-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 360px);
  gap: 20px;
  align-items: stretch;
}

figure {
  margin: 0;
}

.flag-preview,
.symbol-cards figure,
.passport-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(16, 22, 20, 0.08);
}

.flag-preview img {
  width: 100%;
  height: auto;
  min-height: 280px;
  object-fit: cover;
}

.symbol-cards {
  display: grid;
  gap: 18px;
}

.symbol-cards img {
  width: 100%;
  height: auto;
  min-height: 200px;
  object-fit: contain;
  padding: 24px;
  background: #eef3f0;
}

figcaption {
  padding: 14px 18px 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-top: 1px solid var(--line);
  background: #fafcfb;
}

.archive {
  background: var(--white);
}

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

.facts article {
  padding: 26px;
}

.facts strong {
  display: block;
  margin-bottom: 10px;
  color: var(--green-deep);
  font-family: Georgia, serif;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1;
}

.facts span {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.5;
}

/* —— Passport —— */
.passport-showcase {
  background:
    linear-gradient(135deg, rgba(31, 92, 40, 0.92), rgba(16, 22, 20, 0.94)),
    url("assets/flag.png") center / cover;
  color: var(--white);
}

.passport-showcase.is-embedded {
  padding-top: 0;
}

.passport-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.passport-layout .eyebrow {
  color: var(--gold);
}

.passport-layout h2 {
  color: var(--white);
}

.passport-layout p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.65;
}

.passport-frame {
  border-color: rgba(232, 197, 71, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.passport-frame img {
  width: 100%;
  height: auto;
}

.passport-frame figcaption {
  color: var(--gold);
  background: rgba(0, 0, 0, 0.35);
  border-top-color: rgba(232, 197, 71, 0.3);
}

.citizenship {
  background: var(--paper);
}

.citizenship-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 48px);
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.citizenship-card div {
  max-width: 720px;
}

/* —— Subpages hero —— */
.subhero {
  padding: calc(var(--header-h) + 56px) clamp(18px, 5vw, 72px) 64px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(8, 20, 18, 0.9), rgba(8, 20, 18, 0.55)),
    url("assets/flag.png") center / cover;
  border-bottom: 3px solid var(--gold);
}

.subhero h1 {
  max-width: 920px;
  margin-bottom: 18px;
}

.subhero .lead {
  max-width: 820px;
  margin-bottom: 0;
}

.subhero .lead a {
  color: var(--gold);
  font-weight: 700;
}

/* —— Tables —— */
.table-section {
  background: var(--white);
}

.table-section.alt,
.law-doc.alt {
  background: var(--paper);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 8px 28px rgba(16, 22, 20, 0.05);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 15px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--green-deep);
  background: #e8f2ea;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

td {
  line-height: 1.5;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td:first-child {
  font-weight: 800;
}

tr.is-archive td {
  color: var(--muted);
}

tr.is-expelled td {
  color: #8a8f8c;
  font-weight: 500;
}

tr.is-expelled td:first-child {
  font-weight: 700;
}

.table-section.is-expelled {
  background: #f3f4f3;
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

.table-section.is-expelled .section-copy h2 {
  color: #6b726e;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.table-section.is-expelled .section-copy p {
  color: #8a8f8c;
}

.table-wrap--expelled {
  border-color: #d8dbd9;
  background: #f8f9f8;
  box-shadow: none;
}

.table-wrap--expelled th {
  background: #eceeed;
  color: #6b726e;
}

.table-wrap--skyland th {
  background: #e8eef5;
}

tr.is-active td:first-child {
  color: var(--green-deep);
}

/* —— Citizen roster —— */
.citizen-section {
  background: var(--white);
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(56px, 7vw, 96px);
}

.citizen-section.alt {
  background: var(--paper);
}

.citizen-section .section-copy.compact {
  margin-bottom: 20px;
}

.citizen-roster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.citizen-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 6px 22px rgba(16, 22, 20, 0.06);
}

.citizen-card.is-sovereign {
  color: var(--white);
  background:
    radial-gradient(circle at top right, rgba(232, 197, 71, 0.16), transparent 40%),
    linear-gradient(135deg, #1a2621, var(--green-deep));
  border-color: rgba(232, 197, 71, 0.35);
}

.citizen-photo {
  position: relative;
  margin: 0;
  flex: 0 0 152px;
  width: 152px;
  aspect-ratio: 1 / 1;
  background:
    linear-gradient(180deg, rgba(232, 197, 71, 0.1), transparent 30%),
    #e8f0eb;
}

.citizen-photo::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(232, 197, 71, 0.5);
  border-radius: 2px;
  pointer-events: none;
  z-index: 1;
}

.citizen-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 8px;
  pointer-events: none;
}

.citizen-photo-open {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  transition: opacity 160ms ease;
}

.citizen-photo-open:hover {
  opacity: 0.92;
}

.citizen-photo-open:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.citizen-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 18px 20px;
}

.citizen-role {
  margin: 0;
  color: var(--gold-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.citizen-card.is-sovereign .citizen-role {
  color: var(--gold);
}

.citizen-name {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  line-height: 1.15;
}

.citizen-card.is-sovereign .citizen-name {
  font-size: 25px;
}

.citizen-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 4px 0 0;
}

.citizen-meta div {
  display: grid;
  gap: 3px;
}

.citizen-meta dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.citizen-meta dd {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.citizen-card.is-sovereign .citizen-meta dt {
  color: rgba(255, 255, 255, 0.58);
}

.citizen-card.is-sovereign .citizen-meta dd {
  color: rgba(255, 255, 255, 0.92);
}

/* —— Photo lightbox —— */
body.lightbox-open {
  overflow: hidden;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 40px);
}

.photo-lightbox[hidden] {
  display: none;
}

.photo-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 12, 0.86);
}

.photo-lightbox-dialog {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 760px);
  max-height: 92vh;
}

.photo-lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 92vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border: 2px solid rgba(232, 197, 71, 0.55);
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.photo-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--white);
  font-size: 30px;
  line-height: 1;
  background: var(--black);
  border: 2px solid rgba(232, 197, 71, 0.65);
  border-radius: 50%;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.photo-lightbox-close:hover {
  background: var(--green-deep);
  transform: scale(1.04);
}

.photo-lightbox-close:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* —— Badges —— */
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge-gold {
  color: var(--black);
  background: var(--gold);
}

.badge-archive {
  color: var(--muted);
  background: #e8ece9;
  border: 1px solid var(--line);
}

.badge-forming {
  color: var(--white);
  background: var(--sky-deep);
}

.badge-topic {
  color: var(--green-deep);
  background: #e8f2ea;
  border: 1px solid rgba(31, 92, 40, 0.15);
}

.badge-topic--decree {
  color: var(--white);
  background: var(--green-deep);
  border-color: var(--green-deep);
}

.badge-topic--government {
  color: #1a4a6e;
  background: #e4eef6;
  border-color: rgba(26, 74, 110, 0.15);
}

.badge-topic--diplomacy {
  color: #4a3a1a;
  background: #f5eed8;
  border-color: rgba(74, 58, 26, 0.15);
}

.badge-topic--economy {
  color: #5a3d12;
  background: #f8ecd4;
  border-color: rgba(90, 61, 18, 0.15);
}

.badge-topic--skyland {
  color: #2a4a7a;
  background: #e8eef8;
  border-color: rgba(42, 74, 122, 0.15);
}

.badge-topic--law {
  color: #3d2a5c;
  background: #eee8f6;
  border-color: rgba(61, 42, 92, 0.15);
}

.badge-topic--chupacity {
  color: #2d4a32;
  background: #e6f0e8;
  border-color: rgba(45, 74, 50, 0.15);
}

.badge-topic--culture {
  color: #5c3a4a;
  background: #f6e8ee;
  border-color: rgba(92, 58, 74, 0.15);
}

.badge-topic--sport {
  color: #1a5c42;
  background: #dff5ea;
  border-color: rgba(26, 92, 66, 0.15);
}

.badge-topic--registry {
  color: #4a4a4a;
  background: #ececec;
  border-color: rgba(74, 74, 74, 0.15);
}

/* —— News feed —— */
.news-page {
  background: var(--paper);
}

.news-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 900px;
  margin: 0 auto 36px;
}

.news-filter-btn {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.news-filter-btn:hover,
.news-filter-btn:focus-visible {
  color: var(--green-deep);
  border-color: rgba(31, 92, 40, 0.35);
}

.news-filter-btn.is-active {
  color: var(--white);
  background: var(--green-deep);
  border-color: var(--green-deep);
}

.news-archive-block.is-filtered-empty {
  display: none;
}

.news-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.news-card.is-filtered-hidden {
  display: none;
}

.news-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--line);
}

.news-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.news-feed {
  max-width: 900px;
  margin: 0 auto;
  padding-left: 28px;
  border-left: 3px solid rgba(31, 92, 40, 0.25);
}

.news-card {
  position: relative;
  margin-bottom: 22px;
  padding: 24px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 6px 22px rgba(16, 22, 20, 0.04);
}

.news-card::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 28px;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border: 3px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--green-deep);
}

.news-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 10px;
}

.news-card time {
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.news-card h2 {
  margin-bottom: 10px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
}

.news-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.news-card p a {
  color: var(--green-deep);
  font-weight: 700;
}

.news-card.is-current p a {
  color: var(--gold-deep);
}

/* —— Government —— */
.gov-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.gov-card {
  padding: 28px;
}

.gov-card.is-sovereign {
  grid-column: span 2;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  color: var(--white);
  background:
    radial-gradient(circle at top right, rgba(232, 197, 71, 0.18), transparent 38%),
    linear-gradient(135deg, #1a2621, var(--green-deep));
  border-color: rgba(232, 197, 71, 0.35);
}

.gov-card.is-sovereign p,
.gov-card.is-sovereign .gov-role {
  color: rgba(255, 255, 255, 0.8);
}

.gov-seal {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.gov-seal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.symbol-round {
  display: grid;
  justify-items: center;
  padding: 28px;
  background: #eef3f0;
}

.symbol-round img {
  width: min(100%, 320px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 16px 40px rgba(16, 22, 20, 0.12);
}

.gov-name {
  margin-bottom: 6px;
  font-family: Georgia, serif;
  font-size: 28px;
  line-height: 1.1;
}

.gov-role {
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gov-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.gov-card.is-forming {
  border-style: dashed;
  border-color: var(--sky-deep);
  background: #f2f9fa;
}

.gov-card.is-forming .gov-name {
  font-size: 22px;
}

.ministry-table td:nth-child(2),
.ministry-table td:nth-child(3) {
  font-size: 14px;
  color: var(--muted);
}

/* —— Laws —— */
.law-doc {
  background: var(--white);
}

.law-block {
  max-width: 1040px;
  margin-top: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 6px 22px rgba(16, 22, 20, 0.04);
}

.law-block h3 {
  color: var(--green-deep);
}

.law-block p,
.law-block li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.law-block li + li {
  margin-top: 10px;
}

/* —— Laws page —— */
.laws-page .subhero {
  background: var(--paper);
}

.laws-intro {
  padding-top: 0;
  padding-bottom: clamp(32px, 5vw, 48px);
}

.laws-intro-text {
  max-width: 820px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1040px;
  margin: 0 auto;
}

.page-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease;
}

.page-nav a:hover,
.page-nav a:focus-visible {
  border-color: rgba(31, 92, 40, 0.35);
  background: #eef4f0;
}

.law-section {
  scroll-margin-top: 88px;
}

.law-section.alt {
  background: var(--paper);
}

.law-section-lead {
  max-width: 1040px;
  margin: 0 auto 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.law-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.law-fact-card {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
}

.law-fact-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.law-fact-card strong {
  color: var(--green-deep);
  font-size: 15px;
  line-height: 1.4;
}

.law-theses {
  margin: 18px 0 0;
  padding-left: 1.2rem;
}

.law-theses li {
  color: var(--muted);
  line-height: 1.7;
}

.law-theses--compact {
  columns: 2;
  column-gap: 28px;
}

.law-meta {
  color: var(--muted);
  font-size: 14px;
}

.law-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  background: #f7faf8;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.law-note--highlight {
  border-left-color: var(--green-deep);
}

.law-cabinet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.law-cabinet-card {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
}

.law-cabinet-card strong {
  color: var(--green-deep);
  font-size: 18px;
}

.law-cabinet-card span {
  color: var(--muted);
  font-size: 14px;
}

.law-action-wrap {
  margin-top: 22px;
}

.law-action-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(31, 92, 40, 0.25);
  border-radius: 3px;
  background: var(--green-deep);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms ease, transform 160ms ease;
}

.law-action-link:hover,
.law-action-link:focus-visible {
  background: #174a22;
}

.law-section--skyland {
  background:
    radial-gradient(circle at top right, rgba(42, 74, 122, 0.08), transparent 45%),
    var(--paper);
}

.law-block--skyland {
  border-color: rgba(42, 74, 122, 0.25);
  box-shadow: 0 10px 32px rgba(42, 74, 122, 0.08);
}

.law-subblock {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.law-subblock h3 {
  margin: 0 0 10px;
  color: var(--green-deep);
  font-size: 18px;
}

.law-details {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
}

.law-details summary {
  padding: 16px 20px;
  color: var(--green-deep);
  font-weight: 800;
  cursor: pointer;
  list-style-position: inside;
}

.law-details-body {
  padding: 0 20px 20px;
}

.law-details-body h4 {
  margin: 16px 0 10px;
  color: var(--green-deep);
  font-size: 16px;
}

.law-treaty-card + .law-treaty-card {
  margin-top: 16px;
}

.law-treaty-card--skyland {
  border-color: rgba(42, 74, 122, 0.3);
  background: linear-gradient(135deg, #f8fbff 0%, #eef4fa 100%);
}

.law-archive-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.law-archive-list a {
  color: var(--green-deep);
  font-weight: 700;
  text-decoration: none;
}

.law-archive-list a:hover,
.law-archive-list a:focus-visible {
  text-decoration: underline;
}

/* —— Footer —— */
.news-card.is-current {
  border-color: rgba(232, 197, 71, 0.55);
  box-shadow: 0 10px 32px rgba(31, 92, 40, 0.1);
}

.news-card.is-current::before {
  background: var(--green-deep);
  box-shadow: 0 0 0 2px var(--gold);
}

.news-card.is-current h2 {
  color: var(--green-deep);
}

.news-toolbar-archive {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 2px solid var(--line);
  border-bottom: 0;
  margin-bottom: 32px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 32px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.72);
  background: var(--black);
  border-top: 3px solid var(--gold);
}

.footer-copy p {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.footer-copy p + p {
  margin-top: 10px;
}

.footer-disclaimer {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  line-height: 1.5;
  font-style: italic;
}

.footer-tg a {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.footer-tg a:hover {
  text-decoration: underline;
}

.footer-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.footer-actions a {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

/* —— Homepage —— */
body.home {
  background: var(--paper);
}

body.home .section {
  padding: clamp(44px, 5vw, 72px) clamp(18px, 5vw, 72px);
}

body.home .section.alt {
  background: var(--white);
}

body.home .section-copy.compact {
  margin-bottom: 20px;
}

.home-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, #0d1210 0%, #1a2621 55%, #1f5c28 100%);
  border-bottom: 3px solid var(--gold);
}

.home-hero-flag {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(46%, 560px);
  background: url("assets/flag.png") center / cover;
  opacity: 0.92;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}

.home-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 20, 18, 0.98) 0%, rgba(8, 20, 18, 0.82) 48%, rgba(8, 20, 18, 0.35) 72%, transparent 100%),
    linear-gradient(0deg, rgba(8, 20, 18, 0.45), transparent 42%);
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 400px);
  gap: clamp(20px, 4vw, 40px);
  align-items: end;
  max-width: 1240px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 36px) clamp(18px, 5vw, 72px) 32px;
}

.home-hero-main h1 {
  margin-bottom: 16px;
  font-size: clamp(36px, 5.5vw, 68px);
}

.home-hero-main .lead {
  margin-bottom: 22px;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.5;
}

.home-passport {
  padding: 20px 22px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(232, 197, 71, 0.55);
  border-radius: 4px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
}

.home-passport-head {
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-areas:
    "kicker kicker"
    "seal title";
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.home-passport-head .card-kicker {
  grid-area: kicker;
  margin: 0;
  font-size: 9px;
  line-height: 1.3;
}

.home-passport-seal {
  grid-area: seal;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 4px;
  background: #eef3f0;
  border: 2px solid rgba(232, 197, 71, 0.55);
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(16, 22, 20, 0.1);
}

.home-passport-seal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-passport-head h2 {
  grid-area: title;
  align-self: center;
  margin: 0;
  font-size: 21px;
  line-height: 1.15;
  text-wrap: balance;
}

.home-passport h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.15;
}

.home-passport dl {
  margin: 0;
}

.home-passport dl div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.home-passport dl div:first-child {
  border-top: 0;
  padding-top: 0;
}

.home-passport dl dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-passport dl dd {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
}

.home-statbar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 72px) 28px;
}

.home-statbar article {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(232, 197, 71, 0.22);
  border-radius: 4px;
}

.home-statbar strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1;
}

.home-statbar span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-quicknav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  padding-top: 28px;
  padding-bottom: 28px;
  max-width: 1240px;
  margin: 0 auto;
}

.home-quicknav-item {
  display: grid;
  gap: 6px;
  padding: 18px 16px;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 4px 18px rgba(16, 22, 20, 0.04);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.home-quicknav-item:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 197, 71, 0.55);
  box-shadow: 0 10px 28px rgba(16, 22, 20, 0.08);
}

.home-quicknav-label {
  color: var(--green-deep);
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}

.home-quicknav-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.home-about {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 380px);
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.home-about-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

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

.home-symbols-inline figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(16, 22, 20, 0.06);
}

.home-symbols-inline img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.home-symbols-inline figure:last-child img {
  object-fit: contain;
  padding: 14px;
  background: #eef3f0;
}

.home-symbols-inline figcaption {
  padding: 10px 12px;
  font-size: 10px;
}

.home-state {
  max-width: 1240px;
  margin: 0 auto;
}

.home-ministry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-ministry {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 4px 18px rgba(16, 22, 20, 0.04);
}

.home-ministry.is-lead {
  grid-column: span 2;
  color: var(--white);
  background:
    radial-gradient(circle at top right, rgba(232, 197, 71, 0.18), transparent 38%),
    linear-gradient(135deg, #1a2621, var(--green-deep));
  border-color: rgba(232, 197, 71, 0.35);
}

.home-ministry.is-active {
  border-color: rgba(31, 92, 40, 0.22);
}

.home-ministry.is-forming {
  border-style: dashed;
  border-color: var(--sky-deep);
  background: #f2f9fa;
}

.home-ministry-role {
  margin: 0 0 8px;
  color: var(--gold-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-ministry.is-lead .home-ministry-role {
  color: var(--gold);
}

.home-ministry h3 {
  margin-bottom: 8px;
  font-family: Georgia, serif;
  font-size: 22px;
}

.home-ministry p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.home-ministry.is-lead p,
.home-ministry.is-lead a {
  color: rgba(255, 255, 255, 0.82);
}

.home-ministry.is-lead a {
  display: inline-block;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.home-news {
  max-width: 1240px;
  margin: 0 auto;
}

.home-news-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.home-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-news-card {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  box-shadow: 0 4px 16px rgba(16, 22, 20, 0.04);
}

.home-news-card time {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--green-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-news-card h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.home-news-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

body.home .passport-showcase {
  max-width: 1240px;
  margin: 0 auto;
  border-radius: 4px;
}

.home-archive {
  max-width: 1240px;
  margin: 0 auto;
  background: var(--white);
}

.citizen-photo picture,
.citizen-photo-open picture {
  display: block;
  width: 100%;
  height: 100%;
}

.home-archive-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.home-archive-item {
  display: grid;
  gap: 8px;
  padding: 20px;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  transition: border-color 160ms ease, transform 160ms ease;
}

.home-archive-item:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 197, 71, 0.55);
}

.home-archive-item strong {
  color: var(--green-deep);
  font-family: Georgia, serif;
  font-size: 24px;
  line-height: 1;
}

.home-archive-item span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.symbols-spec ul {
  margin: 0 0 18px;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}

.symbols-spec h3 {
  margin: 18px 0 10px;
  font-size: 18px;
}

.symbols-motto-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 32px;
  text-align: center;
  border: 1px solid rgba(232, 197, 71, 0.45);
  border-radius: 4px;
  background:
    radial-gradient(circle at top, rgba(232, 197, 71, 0.12), transparent 55%),
    linear-gradient(135deg, #1a2621, var(--green-deep));
  color: var(--white);
}

.symbols-motto-card .eyebrow {
  color: var(--gold);
}

.symbols-motto-card blockquote {
  margin: 0 0 14px;
  font-family: Georgia, serif;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.2;
}

.symbols-founded {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.symbols-page-layout .flag-preview img {
  min-height: 180px;
}

.gov-card.has-portrait {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  align-items: start;
}

.gov-card.is-sovereign.has-portrait {
  grid-template-columns: 128px 1fr;
}

.gov-portrait {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #eef3f0;
  aspect-ratio: 1 / 1;
}

.gov-card.is-sovereign .gov-portrait {
  border-color: rgba(232, 197, 71, 0.4);
}

.gov-portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.home-statbar-population strong {
  font-size: clamp(18px, 2.4vw, 26px);
  letter-spacing: 0.04em;
}

.home-statbar-detail {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* —— Responsive —— */
@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: calc(4px + var(--header-h));
    right: 0;
    bottom: 0;
    width: min(320px, 88vw);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    background: var(--black);
    border-left: 2px solid rgba(232, 197, 71, 0.45);
    transform: translateX(100%);
    transition: transform 200ms ease;
  }

  body.nav-open .site-nav {
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .nav-links a {
    justify-content: flex-start;
    min-height: 48px;
    font-size: 13px;
  }

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

  .royal-card {
    max-width: 560px;
  }

  .band,
  .symbol-layout,
  .passport-layout,
  .gov-grid {
    grid-template-columns: 1fr;
  }

  .citizen-roster,
  .citizen-roster--royal {
    grid-template-columns: 1fr;
  }

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

  .gov-card.is-sovereign {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .gov-card.has-portrait,
  .gov-card.is-sovereign.has-portrait {
    grid-template-columns: 1fr;
  }

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

  .feature.large {
    grid-column: span 2;
  }

  .home-hero-inner,
  .home-about,
  .home-ministry-grid,
  .home-news-grid,
  .home-archive-grid,
  .home-quicknav,
  .home-statbar {
    grid-template-columns: 1fr;
  }

  .home-hero-flag {
    width: 100%;
    opacity: 0.35;
    clip-path: none;
  }

  .home-ministry.is-lead {
    grid-column: auto;
  }

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

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

@media (max-width: 640px) {
  :root {
    --header-h: 76px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .brand strong {
    font-size: 15px;
  }

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

  h1 {
    font-size: 40px;
  }

  .royal-card div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .section,
  .band {
    padding: 56px 16px;
  }

  .state-grid,
  .facts {
    grid-template-columns: 1fr;
  }

  .feature.large {
    grid-column: auto;
  }

  .citizenship-card {
    flex-direction: column;
    align-items: stretch;
  }

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

  .footer-actions {
    align-items: flex-start;
  }

  .news-feed {
    padding-left: 0;
    border-left: 0;
  }

  .news-card::before {
    display: none;
  }

  .news-card {
    padding: 20px;
  }

  .law-block {
    padding: 20px;
  }

  .law-facts,
  .law-cabinet-grid,
  .law-archive-list {
    grid-template-columns: 1fr;
  }

  .law-theses--compact {
    columns: 1;
  }

  .home-quicknav {
    grid-template-columns: 1fr;
  }

  .home-symbols-inline {
    grid-template-columns: 1fr;
  }

  .home-passport dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
