:root {
  --bg-deep: #06100f;
  --bg-mid: #0d211e;
  --surface: rgba(18, 41, 37, 0.78);
  --surface-strong: #122a27;
  --border-subtle: rgba(212, 168, 83, 0.22);
  --border-gold: rgba(212, 168, 83, 0.48);
  --gold-light: #f7df9c;
  --gold-primary: #e3b454;
  --gold-deep: #b68028;
  --emerald-light: #5cf4b8;
  --emerald-primary: #22c98a;
  --text-primary: #f6f3ea;
  --text-secondary: #a8beb8;
  --text-muted: #6d8882;
  --text-dark: #0c1614;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 860px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.72;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 15% 10%, rgba(34, 201, 138, 0.12), transparent 38%),
    radial-gradient(circle at 85% 18%, rgba(227, 180, 84, 0.14), transparent 42%),
    linear-gradient(165deg, var(--bg-mid) 0%, var(--bg-deep) 55%, #040b0a 100%);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}

a:hover {
  color: var(--emerald-light);
  text-decoration: underline;
}

.site-header {
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(6, 16, 15, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--text-primary);
  letter-spacing: 0.2px;
}

.brand:hover {
  text-decoration: none;
  color: var(--gold-light);
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary), var(--gold-deep));
  color: var(--text-dark);
  font-weight: 900;
  font-size: 0.9rem;
  box-shadow: 0 4px 14px rgba(227, 180, 84, 0.28);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-links a {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-light);
  background: rgba(227, 180, 84, 0.12);
  border-color: var(--border-subtle);
  text-decoration: none;
}

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

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  margin-bottom: 24px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--emerald-light);
  background: rgba(34, 201, 138, 0.14);
  border: 1px solid rgba(92, 244, 184, 0.28);
  margin-bottom: 14px;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
  line-height: 1.25;
  color: var(--text-primary);
}

.lead {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.02rem;
}

.meta-row {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.meta-row strong {
  color: var(--gold-light);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.link-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-gold);
  background: rgba(20, 52, 46, 0.86);
  text-decoration: none;
}

.link-card h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  color: var(--gold-light);
}

.link-card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-secondary);
}

.link-card .cta {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--emerald-light);
}

.doc-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 18px;
}

.doc-card h2 {
  margin: 0 0 12px;
  font-size: 1.24rem;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.doc-card h3 {
  margin: 18px 0 8px;
  font-size: 1.02rem;
  color: var(--emerald-light);
}

.doc-card p {
  margin: 0 0 12px;
  color: var(--text-secondary);
}

.doc-card p:last-child {
  margin-bottom: 0;
}

.doc-card ul {
  margin: 0 0 12px;
  padding-left: 20px;
  color: var(--text-secondary);
}

.doc-card ul:last-child {
  margin-bottom: 0;
}

.doc-card li {
  margin-bottom: 8px;
}

.doc-card li strong {
  color: var(--text-primary);
}

.callout {
  margin: 16px 0 0;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(34, 201, 138, 0.1);
  border: 1px solid rgba(92, 244, 184, 0.32);
  color: var(--text-primary);
  font-size: 0.95rem;
}

.callout-gold {
  background: rgba(227, 180, 84, 0.11);
  border-color: var(--border-gold);
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.92rem;
}

.summary-table th,
.summary-table td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.summary-table th {
  color: var(--gold-light);
  font-weight: 700;
  width: 36%;
}

.summary-table td {
  color: var(--text-secondary);
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 24px 20px 36px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.site-footer p {
  margin: 4px 0;
}

@media (max-width: 600px) {
  .hero-card,
  .doc-card {
    padding: 22px 18px;
  }

  .summary-table th,
  .summary-table td {
    display: block;
    width: 100%;
    padding: 6px 0;
  }

  .summary-table tr {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-subtle);
  }

  .summary-table th,
  .summary-table td {
    border-bottom: none;
  }
}

@media print {
  body {
    background: #ffffff;
    color: #111111;
  }

  .site-header {
    position: static;
    background: #ffffff;
    border-bottom: 1px solid #cccccc;
  }

  .hero-card,
  .doc-card {
    background: #ffffff;
    border: 1px solid #dddddd;
    box-shadow: none;
  }

  h1,
  .doc-card h2,
  .doc-card h3,
  .doc-card p,
  .doc-card li,
  .lead,
  .meta-row,
  .summary-table th,
  .summary-table td {
    color: #111111;
  }
}
