/* ==========================================================================
   Shared styles for every article under /articles/*.html
   --------------------------------------------------------------------------
   These pages are hand-written static HTML (served straight from public/, not
   built by Vite) so that crawlers get real markup with no JS. This file is the
   single source of truth for their look — edit here, not per article.

   Articles link it with:  <link rel="stylesheet" href="./article.css" />
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #0f172a;
  --sky:    #38bdf8;
  --blue:   #0284c7;
  --green:  #10b981;
  --amber:  #f59e0b;
  --red:    #ef4444;
  --slate3: #cbd5e1;
  --slate5: #64748b;
  --slate6: #475569;
  --slate7: #334155;
  --border: #e2e8f0;
  --bg:     #f8fafc;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--slate7);
  background: #fff;
}

/* ── Site nav ── */
.site-nav {
  background: var(--navy);
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  text-decoration: none;
}
.nav-brand-name {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav-links a {
  color: var(--slate3);
  text-decoration: none;
  font-size: 0.875rem;
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: var(--blue);
  color: #fff !important;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-weight: 600;
}
.nav-cta:hover { background: #0369a1 !important; }

/* ── Article layout ── */
.article-hero {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 2rem 3rem;
  text-align: center;
}
.article-tag {
  display: inline-block;
  background: #e0f2fe;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.article-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1.2;
  max-width: 780px;
  margin: 0 auto 1.25rem;
}
.article-meta {
  color: var(--slate5);
  font-size: 0.875rem;
}
.article-meta strong { color: var(--slate6); }

.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

/* ── Typography ── */
.article-body h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin: 3rem 0 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.article-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--slate7);
  margin: 2rem 0 0.6rem;
}
.article-body p { margin-bottom: 1.25rem; }
.article-body p:last-child { margin-bottom: 0; }
.article-body ul, .article-body ol {
  margin: 0 0 1.25rem 1.5rem;
}
.article-body li { margin-bottom: 0.4rem; }
.article-body strong { color: var(--navy); font-weight: 700; }
.article-body a { color: var(--blue); }
.article-body code {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-size: 0.85em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--slate7);
}

/* ── Callout boxes ── */
.callout {
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.callout-deadline {
  background: var(--navy);
  color: #fff;
}
/* Large date lead-in (e.g. "18 February 2027") */
.callout-deadline .callout-date {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--sky);
  line-height: 1;
  margin-bottom: 0.4rem;
}
/* Small uppercase kicker + heading pairing */
.callout-deadline .callout-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.4rem;
}
.callout-deadline .callout-heading {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.callout-deadline p { color: #cbd5e1; margin: 0; font-size: 0.9375rem; }
.callout-info {
  background: #f0f9ff;
  border-left: 4px solid var(--blue);
}
.callout-warning {
  background: #fffbeb;
  border-left: 4px solid var(--amber);
}
.callout-green {
  background: #f0fdf4;
  border-left: 4px solid var(--green);
}

/* ── Tables ── */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.article-body th {
  background: var(--navy);
  color: #fff;
  text-align: left;
  padding: 0.6rem 0.85rem;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.article-body td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.article-body tr:last-child td { border-bottom: none; }
.article-body tr:nth-child(even) td { background: var(--bg); }
/* Wrap a wide table in this so it scrolls instead of breaking the page */
.table-scroll { overflow-x: auto; }

/* ── Status badges ── */
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}
.badge-verified   { background: #dcfce7; color: #166534; }
.badge-unverified { background: #fee2e2; color: #991b1b; }
.badge-neutral    { background: #f1f5f9; color: #475569; }

/* ── Access-tier badges (Annex XIII data tiers) ── */
.tier {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}
.tier-public    { background: #dcfce7; color: #166534; }
.tier-legit     { background: #fef9c3; color: #854d0e; }
.tier-authority { background: #fee2e2; color: #991b1b; }

/* ── Timeline ── */
.timeline {
  margin: 1.5rem 0;
  border-left: 3px solid var(--border);
  padding-left: 1.5rem;
}
.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.85rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
}
.timeline-item.milestone::before { background: var(--navy); width: 12px; height: 12px; left: -1.93rem; }
.timeline-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--slate5);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}
.timeline-label {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}
.timeline-desc {
  font-size: 0.875rem;
  color: var(--slate6);
  margin-top: 0.2rem;
}

/* ── Role grid ── */
.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.role-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
}
.role-card-title {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.role-card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
}
.role-card li { margin-bottom: 0.3rem; }

/* ── CTA footer ── */
.article-cta {
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  padding: 2.5rem;
  margin-top: 3.5rem;
  text-align: center;
}
.article-cta h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: #fff;
}
.article-cta p { color: #94a3b8; margin-bottom: 1.5rem; font-size: 0.9375rem; }
.cta-btn {
  display: inline-block;
  background: var(--sky);
  color: var(--navy);
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9375rem;
}
.cta-btn:hover { background: #7dd3fc; }

/* ── Related guides ── */
.related-guides {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem 3.5rem;
}
.related-guides h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.related-card {
  display: block;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 0.85rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.related-card:last-child { margin-bottom: 0; }
.related-card:hover {
  border-color: #bae6fd;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.08);
}
.related-card-tag {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.35rem;
}
.related-card-title {
  display: block;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}

/* ── Site footer ── */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  color: var(--slate5);
  font-size: 0.8125rem;
}
.site-footer a { color: var(--blue); }
.site-footer p + p { margin-top: 0.5rem; }

@media (prefers-reduced-motion: reduce) {
  .related-card { transition: none; }
}
