:root {
  --civic-ink: #07111f;
  --civic-blue: #78bfff;
  --civic-green: #73e0ae;
  --civic-gold: #e9c477;
  --civic-red: #ff9a9a;
}

.civic-page {
  background:
    radial-gradient(circle at 84% 8%, rgba(40, 113, 174, .22), transparent 28rem),
    radial-gradient(circle at 8% 35%, rgba(65, 151, 113, .12), transparent 24rem),
    #060816;
}

.civic-page article { max-width: 1040px; }
.civic-page .site-header { position: relative; z-index: 2; }
.civic-page .site-header nav a[aria-current="page"] { color: var(--gold); }

.civic-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(210px, 310px) 1fr;
  gap: clamp(1.8rem, 5vw, 4.5rem);
  align-items: center;
  overflow: hidden;
  margin: 1rem 0 2rem;
  padding: clamp(1.25rem, 4vw, 3rem);
  border: 1px solid rgba(233, 196, 119, .35);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(16, 27, 50, .96), rgba(7, 13, 28, .9));
  box-shadow: 0 34px 90px rgba(0, 0, 0, .45);
}

.civic-hero::after {
  content: "";
  position: absolute;
  inset: auto -8rem -10rem auto;
  width: 24rem;
  height: 24rem;
  border: 1px solid rgba(120, 191, 255, .18);
  border-radius: 50%;
  box-shadow: 0 0 0 2rem rgba(120, 191, 255, .025), 0 0 0 5rem rgba(233, 196, 119, .02);
  pointer-events: none;
}

.portrait-frame { position: relative; z-index: 1; }
.portrait-frame img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(233, 196, 119, .5);
  border-radius: 22px;
  filter: saturate(.92) contrast(1.04);
  box-shadow: 0 20px 55px rgba(0, 0, 0, .5);
}

.portrait-caption {
  display: block;
  margin-top: .7rem;
  color: var(--muted);
  font-size: .78rem;
  text-align: center;
}

.hero-copy { position: relative; z-index: 1; }
.hero-copy h1 { max-width: 13ch; }
.hero-copy .lede { max-width: 62ch; }
.document-status {
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  margin: .25rem 0 1rem;
  padding: .45rem .75rem;
  border: 1px solid rgba(115, 224, 174, .35);
  border-radius: 999px;
  color: #baf4d5;
  background: rgba(115, 224, 174, .08);
  font-size: .8rem;
  font-weight: 750;
}
.document-status::before { content: "●"; color: var(--civic-green); }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; }
.button.secondary { color: var(--text); background: transparent; border: 1px solid rgba(120, 191, 255, .38); }

.plain-language {
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border-color: rgba(120, 191, 255, .32);
  background: linear-gradient(135deg, rgba(19, 39, 70, .85), rgba(14, 20, 40, .76));
}
.plain-language .thesis {
  margin: .5rem 0 0;
  color: #f6e7c4;
  font: 600 clamp(1.18rem, 2.6vw, 1.55rem)/1.5 Georgia, serif;
}

.status-grid, .pillar-grid, .criteria-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.status-card, .pillar, .criterion {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 14, 30, .74);
}
.status-card h3, .pillar h3, .criterion h3 { margin: 0 0 .55rem; color: #f3d69d; }
.status-card p, .pillar p, .criterion p { margin: 0; font-size: .94rem; }
.status-card.fact-card { border-top: 3px solid var(--civic-green); }
.status-card.declaration-card { border-top: 3px solid var(--civic-gold); }
.status-card.boundary-card { border-top: 3px solid var(--civic-blue); }
.pillar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pillar-number { display: block; margin-bottom: .35rem; color: var(--civic-blue); font-size: .78rem; font-weight: 850; letter-spacing: .14em; }

.evidence-ledger { overflow-x: auto; }
.evidence-ledger table { width: 100%; min-width: 760px; border-collapse: collapse; }
.evidence-ledger th, .evidence-ledger td { padding: 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.evidence-ledger thead th { color: var(--gold); font-family: Georgia, serif; }
.evidence-ledger tbody th { color: #f1f3f8; }
.claim-label {
  display: inline-block;
  padding: .2rem .5rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.claim-label.verified { color: #baf4d5; background: rgba(115, 224, 174, .12); }
.claim-label.first-party { color: #f5dea7; background: rgba(233, 196, 119, .12); }
.claim-label.not-asserted { color: #c7e5ff; background: rgba(120, 191, 255, .12); }

.official-check { border-color: rgba(120, 191, 255, .35); }
.official-links { display: flex; gap: .65rem; flex-wrap: wrap; margin-top: 1rem; }
.official-links a { padding: .55rem .75rem; border: 1px solid rgba(120, 191, 255, .3); border-radius: 10px; text-decoration: none; }

.correction-note { border-left: 3px solid var(--civic-gold); }
.updated-line { color: var(--muted); font-size: .86rem; }
.machine-note code { color: #bfe4ff; word-break: break-word; }

@media (max-width: 820px) {
  .civic-hero, .status-grid, .pillar-grid, .criteria-grid { grid-template-columns: 1fr; }
  .portrait-frame { max-width: 240px; }
  .hero-copy h1 { max-width: none; }
}

@media (max-width: 540px) {
  .civic-hero { border-radius: 18px; }
  .hero-actions .button { width: 100%; text-align: center; }
}

