:root {
  --bg: #0c0f14;
  --bg-alt: #11161e;
  --surface: #161d27;
  --border: #233044;
  --text: #e7edf5;
  --muted: #97a6bb;
  --accent: #4c9aff;
  --accent-soft: rgba(76, 154, 255, 0.12);
  --green: #43c08a;
  --amber: #e0a83d;
  --max: 880px;
  --radius: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(12, 15, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 24px;
}
.brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand span { color: var(--accent); }
.brand .tld { color: var(--muted); font-weight: 500; }
.nav { display: flex; gap: 20px; flex-wrap: wrap; }
.nav a { color: var(--muted); font-size: 0.9rem; }
.nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero {
  padding: 80px 0 64px;
  background:
    radial-gradient(900px 400px at 50% -10%, var(--accent-soft), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--accent);
  margin: 0 0 16px;
  font-weight: 600;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  max-width: 18ch;
}
.lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 28px;
}
.lede strong { color: var(--text); }
.hero-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text);
}
.pill-muted { color: var(--muted); }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 {
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}
.section p { color: var(--muted); max-width: 65ch; }
.section p strong { color: var(--text); }
.note { font-size: 0.92rem; color: var(--muted); font-style: italic; }

/* Topic grid */
.topic-grid {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.topic-grid li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--text);
}

/* Table */
.table-wrap { overflow-x: auto; margin-top: 20px; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
td { color: var(--text); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.badge-pending { background: rgba(224, 168, 61, 0.15); color: var(--amber); }
.badge-reply { background: rgba(67, 192, 138, 0.15); color: var(--green); }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 24px 0 0; }
.timeline li {
  position: relative;
  padding: 0 0 28px 28px;
  border-left: 2px solid var(--border);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}
.timeline li.t-pending::before { background: var(--amber); }
.t-date { display: block; font-size: 0.82rem; color: var(--accent); font-weight: 600; }
.t-pending .t-date { color: var(--amber); }
.t-event { display: block; color: var(--text); margin-top: 2px; }

.status-statement {
  font-size: 1.1rem;
  color: var(--text) !important;
  border-left: 3px solid var(--accent);
  padding-left: 18px;
}

/* Documents */
.doc-empty {
  margin-top: 20px;
  padding: 28px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.doc-empty p { margin: 4px auto; }

/* Document cards */
.doc-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.doc-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.doc-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  border-color: var(--accent);
}
.doc-card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.doc-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.doc-card-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(12, 15, 20, 0.78);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}
.doc-card-body { padding: 18px 20px 20px; }
.doc-card-body .badge { margin-bottom: 12px; }
.doc-card-title { margin: 0 0 8px; font-size: 1.1rem; color: var(--text); letter-spacing: -0.01em; }
.doc-card-desc { margin: 0 0 14px; font-size: 0.92rem; color: var(--muted); line-height: 1.55; }
.doc-card-cta { font-size: 0.9rem; font-weight: 600; color: var(--accent); }
.doc-card:hover .doc-card-cta { text-decoration: underline; }

/* Reply detail page */
.back-link { display: inline-block; margin-bottom: 18px; font-size: 0.9rem; color: var(--muted); }
.back-link:hover { color: var(--text); text-decoration: none; }
.reply-hero { padding: 44px 0 0; }
.reply-hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); letter-spacing: -0.02em; margin: 0 0 14px; max-width: 26ch; }
.reply-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; color: var(--muted); font-size: 0.9rem; }
.reply-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 44px;
  align-items: start;
  padding: 32px 0 64px;
}
.reply-doc { position: sticky; top: 84px; }
.doc-preview-link {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.doc-preview-link img { width: 100%; display: block; }
.reply-actions { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.btn-primary {
  display: inline-block;
  text-align: center;
  padding: 11px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: #08111f;
  font-weight: 600;
  font-size: 0.92rem;
}
.btn-primary:hover { text-decoration: none; opacity: 0.9; }
.redaction-note { font-size: 0.8rem; color: var(--muted); font-style: italic; margin: 0; }
.reply-body h2 { font-size: 1.25rem; margin: 30px 0 10px; color: var(--text); letter-spacing: -0.01em; }
.reply-body h2:first-child { margin-top: 0; }
.reply-body p { color: var(--muted); margin: 0 0 14px; max-width: 68ch; }
.reply-body p strong, .reply-body li strong { color: var(--text); }
.reply-body ul { color: var(--muted); margin: 0 0 14px; padding-left: 20px; max-width: 68ch; }
.reply-body li { margin: 8px 0; }
.lead-statement {
  font-size: 1.12rem;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding-left: 16px;
}
.glossary {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  padding: 4px 22px 18px;
  margin: 8px 0 14px;
}
.glossary dt { font-weight: 600; color: var(--text); margin-top: 16px; font-size: 0.92rem; }
.glossary dd { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; max-width: 64ch; }

@media (max-width: 760px) {
  .reply-grid { grid-template-columns: 1fr; gap: 24px; }
  .reply-doc { position: static; max-width: 360px; }
}

/* Footer */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.site-footer p { color: var(--muted); font-size: 0.9rem; margin: 0 0 8px; max-width: 70ch; }
.site-footer strong { color: var(--text); }
.disclaimer { font-size: 0.85rem; }
.footer-links { margin-top: 16px; }
.footer-links a { color: var(--muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--text); }

/* Legal page */
.legal-page h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: -0.02em;
  margin: 0 0 32px;
}
.legal-page h2 {
  font-size: 1.2rem;
  margin: 36px 0 12px;
  color: var(--text);
}
.legal-page h3 {
  font-size: 1rem;
  margin: 24px 0 8px;
  color: var(--text);
  font-weight: 600;
}
.legal-page address {
  font-style: normal;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 8px;
}
.legal-page p { margin: 0 0 12px; }

@media (max-width: 640px) {
  .nav { display: none; }
  .hero { padding: 56px 0 48px; }
  .section { padding: 48px 0; }
}
