:root {
  --bg: #0d0d0f;
  --surface: #1b1b1f;
  --surface2: #23232a;
  --text: #f7f4ef;
  --muted: #b9b4aa;
  --line: #34323a;
  --accent: #f4b942;
  --blue: #7dd3fc;
  --green: #4ade80;
  --red: #fb7185;
  --purple: #c084fc;
  --radius: 18px;
  --max: 1180px;
  color-scheme: dark;

  /* Compatibility aliases for new generated pages */
  --gold: var(--accent);
  --panel: var(--surface);
  --panel-2: var(--surface2);
  --shadow: 0 24px 80px rgba(0,0,0,.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 0, rgba(244, 185, 66, 0.14), transparent 34rem),
    radial-gradient(circle at 90% 10%, rgba(125, 211, 252, 0.08), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 50;
  background: var(--accent);
  color: #111;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-weight: 900;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(13, 13, 15, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  text-decoration: none;
  font-weight: 950;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--accent);
  color: #111;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.45rem 0.68rem;
  border: 1px solid transparent;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  border-color: rgba(244, 185, 66, 0.55);
  background: rgba(244, 185, 66, 0.08);
}

.hero {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 4.5rem 0 2.1rem;
  text-align: center;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 950;
  font-size: 0.76rem;
  margin-bottom: 0.9rem;
}

.hero h1 {
  max-width: 980px;
  margin: 0 auto 1rem;
  font-size: clamp(2.35rem, 6vw, 5.3rem);
  line-height: 0.99;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 850px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.16rem);
}

main {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  margin: 3rem 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.section h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.65rem, 3.8vw, 2.55rem);
  letter-spacing: -0.04em;
}

.section p,
.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 1rem;
}

.wide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(315px, 1fr));
  gap: 1.05rem;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.1rem;
}

.card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.055),
    rgba(255, 255, 255, 0.025)
  );
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.22rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.card:hover {
  border-color: rgba(244, 185, 66, 0.56);
  transform: translateY(-2px);
  transition: 0.18s ease;
}

.card h2,
.card h3,
.card h4 {
  margin-top: 0;
}

.card h3 {
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.callout {
  background: rgba(244, 185, 66, 0.08);
  border: 1px solid rgba(244, 185, 66, 0.35);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.callout.warning {
  background: rgba(251, 113, 133, 0.08);
  border-color: rgba(251, 113, 133, 0.35);
}

.callout.success {
  background: rgba(74, 222, 128, 0.08);
  border-color: rgba(74, 222, 128, 0.35);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.8rem 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.26rem 0.62rem;
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.pill.gold {
  background: var(--accent);
  border-color: var(--accent);
  color: #111;
}

.pill.blue {
  background: var(--blue);
  border-color: var(--blue);
  color: #061421;
}

.pill.green {
  background: var(--green);
  border-color: var(--green);
  color: #071b0e;
}

.pill.red {
  background: var(--red);
  border-color: var(--red);
  color: #26070d;
}

.pill.purple {
  background: var(--purple);
  border-color: var(--purple);
  color: #1e0b2d;
}

.button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #111;
  border-radius: 999px;
  padding: 0.72rem 1rem;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
  margin-top: 0.85rem;
}

.button.secondary,
.button-link.secondary {
  color: var(--text);
  background: transparent;
  border-color: var(--line);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.78rem;
  margin: 1.4rem auto 0;
}

input,
select,
textarea {
  background: #17171b;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  font: inherit;
}

input[type="search"],
.toolbar input,
.toolbar select {
  min-width: min(100%, 260px);
}

textarea {
  width: 100%;
  min-height: 145px;
  resize: vertical;
}

label {
  display: grid;
  gap: 0.35rem;
  color: var(--text);
  font-weight: 850;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1rem;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.stat {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 16px;
  padding: 1rem;
}

.stat strong {
  display: block;
  color: var(--accent);
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.mini-list,
.plain-list {
  color: var(--muted);
  padding-left: 1.15rem;
}

.mini-list li,
.plain-list li {
  margin: 0.34rem 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

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

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

th {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.025);
}

td {
  color: var(--muted);
}

pre {
  white-space: pre-wrap;
  overflow-x: auto;
  background: #09090b;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  color: #f8f5ee;
  line-height: 1.55;
}

code {
  color: var(--accent);
}

details {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
}

details + details {
  margin-top: 0.75rem;
}

summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 900;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  padding: 1.15rem;
}

.checklist {
  display: grid;
  gap: 0.65rem;
}

.check-item {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.check-item input {
  margin-top: 0.25rem;
  accent-color: var(--accent);
}

.footer {
  margin-top: 3.5rem;
  padding: 3rem 1rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
}

.footer a {
  color: var(--text);
}

@media (max-width: 780px) {
  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 0.15rem;
  }

  .hero {
    padding-top: 3.3rem;
  }

  main {
    width: min(100% - 1rem, var(--max));
  }

  table {
    min-width: 680px;
  }
}


/* --- New Site Pack Styles --- */

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

.wide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.form-grid {
  display: grid;
  gap: 1.25rem;
  background: var(--surface);
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
}

.stat-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 2rem 0;
}
.stat-row div {
  display: flex;
  flex-direction: column;
}
.stat-row strong {
  font-size: 2rem;
  color: var(--text);
}
.stat-row span {
  color: var(--muted);
  font-size: 0.9rem;
}

.timeline {
  border-left: 2px solid var(--line);
  margin-left: 1rem;
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.timeline-item {
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.45rem;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}

.pill.gold { color: var(--text); border-color: var(--gold); }
.pill.blue { color: var(--text); border-color: var(--blue); }
.pill.green { color: var(--text); border-color: var(--green); }
.pill.purple { color: var(--text); border-color: var(--purple); }
.pill.red { color: var(--text); border-color: var(--red); }

/* --- Missing Structural Classes from New Pack --- */

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: .92rem;
  padding: .35rem .6rem;
  border: 1px solid transparent;
  border-radius: 999px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--text);
  border-color: var(--accent);
}

.page-hero {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 1rem 1.5rem;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}
.page-hero p {
  color: var(--muted);
  max-width: 760px;
  margin: 0 auto;
}

.toolbar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1.5rem auto 0;
  max-width: 900px;
}
.toolbar input, .toolbar select {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .8rem 1rem;
  min-width: min(100%, 260px);
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.page-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: transform .2s, border-color .2s;
}
.page-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.page-card h2, .page-card h3 {
  margin-top: 0;
}
.page-card p {
  color: var(--muted);
}

.pill-row {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .85rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 1px solid var(--line);
  background: var(--surface2);
  color: var(--muted);
  border-radius: 999px;
  padding: .25rem .55rem;
  font-size: .78rem;
  font-weight: 700;
}
.pill strong {
  color: var(--text);
}

.page-link, .button-link {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}
.button-link {
  display: inline-block;
  margin-top: 1rem;
}
.button-link:hover, .page-link:hover {
  text-decoration: underline;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}

.count-badge {
  color: var(--text);
  background: var(--surface2);
  border-radius: 999px;
  padding: .2rem .55rem;
  font-size: .75rem;
}

.mini-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}
.mini-list li {
  margin: .35rem 0;
}

.section {
  margin: 2.5rem 0;
}
.section h2 {
  margin-bottom: .65rem;
}
