/* ==========================================================================
   Zomplet — Components
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: var(--fs-body)/var(--lh-body) var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 var(--s-3);
  letter-spacing: .2px;
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-snug); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); }
p  { margin: 0 0 var(--s-4); }
ul, ol { margin: 0 0 var(--s-4); padding-left: 1.35em; }
li { margin-bottom: var(--s-2); }
strong { color: var(--ink); }

.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }
.wrap-narrow { width: min(var(--wrap-narrow), calc(100% - 40px)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--gold); color: var(--ink); padding: 10px 18px;
  font-weight: 700; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 3px; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--deep);
  border-bottom: 1px solid rgba(247, 212, 98, .18);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); padding: 13px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none;
  font-family: var(--font-display); font-size: 1.2rem; letter-spacing: .6px;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(140deg, var(--primary), #6d0e11);
  display: grid; place-items: center;
  color: var(--gold); font-weight: 800; font-size: .95rem;
  box-shadow: inset 0 0 0 1px rgba(247, 212, 98, .35);
}
.brand-sub {
  display: block; font-family: var(--font-body); font-size: .66rem;
  letter-spacing: .16em; text-transform: uppercase; color: #d4a9aa;
  font-weight: 600; margin-top: 1px;
}

.nav-toggle {
  display: none; background: transparent; border: 1px solid rgba(247,212,98,.4);
  color: var(--gold); border-radius: var(--r-sm);
  padding: 8px 12px; font-size: .85rem; font-weight: 700;
}
.nav-toggle:hover { background: rgba(247,212,98,.12); }

.site-nav { display: flex; align-items: center; gap: var(--s-1); }
.site-nav a {
  color: #f0dcdc; font-size: .9rem; font-weight: 500;
  padding: 7px 12px; border-radius: var(--r-sm);
}
.site-nav a:hover { background: rgba(247, 212, 98, .13); color: var(--gold); text-decoration: none; }

/* ==========================================================================
   Top strip — carries the GNP Times article link
   ========================================================================== */

.topstrip {
  background: linear-gradient(90deg, var(--deep-2), #5c1012 60%, var(--deep-2));
  border-bottom: 1px solid rgba(247, 212, 98, .22);
  font-size: .85rem;
}
.topstrip-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap; padding: 10px 0; text-align: center;
}
.topstrip-label {
  color: var(--gold); font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; font-size: .7rem;
  border: 1px solid rgba(247, 212, 98, .45);
  padding: 2px 9px; border-radius: var(--r-pill);
}
.topstrip a { color: #fff; font-weight: 600; }
.topstrip a:hover { color: var(--gold); }
.topstrip-note { color: #cfa9aa; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background:
    radial-gradient(900px 420px at 78% -8%, rgba(247,212,98,.13), transparent 62%),
    linear-gradient(150deg, var(--deep) 0%, #3f0809 55%, #240304 100%);
  color: #fff; padding: var(--s-9) 0 var(--s-8); position: relative; overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: var(--s-7); align-items: center;
}
.hero-kicker {
  display: inline-block; font-size: .7rem; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(247,212,98,.4);
  padding: 5px 13px; border-radius: var(--r-pill); margin-bottom: var(--s-4);
}
.hero h1 { color: #fff; font-size: var(--fs-display); margin-bottom: var(--s-4); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-lead { font-size: var(--fs-lead); color: #e6cfcf; max-width: 60ch; margin-bottom: var(--s-5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-6); }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: var(--s-6);
  padding-top: var(--s-5); border-top: 1px solid rgba(247, 212, 98, .22);
}
.hero-stat b {
  display: block; font-family: var(--font-display);
  font-size: 1.9rem; color: var(--gold); line-height: 1.1;
}
.hero-stat span { font-size: .82rem; color: #c9a9aa; }

.hero-card {
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(247, 212, 98, .24);
  border-radius: var(--r-lg); padding: var(--s-5);
  backdrop-filter: blur(3px);
}
.hero-card h2 { color: #fff; font-size: 1.2rem; margin-bottom: var(--s-3); }
.hero-card ul { list-style: none; padding: 0; margin: 0; }
.hero-card li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 9px 0; border-bottom: 1px solid rgba(247, 212, 98, .14);
  font-size: .9rem; color: #e0c8c8;
}
.hero-card li:last-child { border-bottom: 0; }
.hero-card li::before {
  content: ""; flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); margin-top: 8px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--r-pill);
  font-weight: 700; font-size: .93rem; border: 1px solid transparent;
  transition: transform .14s ease, background .14s ease, box-shadow .14s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(163,22,27,.28); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #e9c24a; color: var(--ink); }
.btn-ghost { border-color: rgba(247,212,98,.45); color: var(--gold); }
.btn-ghost:hover { background: rgba(247,212,98,.12); color: var(--gold); }
.btn-sm { padding: 8px 16px; font-size: .85rem; }

/* ==========================================================================
   Sections & cards
   ========================================================================== */

.section { padding: var(--s-8) 0; }
.section-alt { background: var(--canvas-2); border-block: 1px solid var(--line); }
.section-head { margin-bottom: var(--s-6); }
.section-head h2 { margin-bottom: var(--s-2); }
.section-head p { color: var(--muted); max-width: 68ch; margin: 0; }
.eyebrow {
  font-size: .7rem; font-weight: 800; letter-spacing: .17em;
  text-transform: uppercase; color: var(--primary); margin-bottom: var(--s-2);
  display: block;
}

.card-grid { display: grid; gap: var(--s-4); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--s-5);
  box-shadow: var(--sh-1); position: relative;
}
.card:hover { box-shadow: var(--sh-2); border-color: var(--line-strong); }
.card h3 { margin-bottom: var(--s-2); }
.card p:last-child { margin-bottom: 0; }
.card-num {
  font-family: var(--font-display); font-size: 1.5rem;
  color: var(--gold-deep); line-height: 1; margin-bottom: var(--s-2);
  display: block;
}
.card p { color: var(--muted); font-size: .94rem; }

/* ==========================================================================
   Directory rows
   ========================================================================== */

.dir-controls {
  display: flex; flex-wrap: wrap; gap: var(--s-3);
  align-items: center; justify-content: space-between;
  margin-bottom: var(--s-4);
}
.filter-group { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-btn {
  background: var(--surface); border: 1px solid var(--line);
  color: var(--muted); border-radius: var(--r-pill);
  padding: 6px 14px; font-size: .82rem; font-weight: 600;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.search-box { position: relative; flex: 0 1 260px; }
.search-box input {
  width: 100%; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 9px 16px 9px 38px; font: inherit; font-size: .88rem;
  color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f5855' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 12px center; background-size: 16px;
}
.search-box input:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }

.dir-count { font-size: .85rem; color: var(--muted); margin-bottom: var(--s-3); }
.dir-count strong { color: var(--primary); }

.dir-list { display: grid; gap: var(--s-3); }
.dir-row {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--s-4) var(--s-5);
  display: grid; grid-template-columns: 52px 1fr auto;
  gap: var(--s-4); align-items: center;
  transition: border-color .15s, box-shadow .15s;
}
.dir-row:hover { border-color: var(--line-strong); box-shadow: var(--sh-2); }
.dir-row[hidden] { display: none; }
.dir-rank {
  font-family: var(--font-display); font-size: 1.55rem;
  color: var(--gold-deep); text-align: center; line-height: 1;
}
.dir-rank small { display: block; font-size: .62rem; color: var(--muted); font-weight: 600; letter-spacing: .1em; margin-top: 3px; }
.dir-body h3 { margin: 0 0 5px; font-size: 1.08rem; }
.dir-body h3 a { color: var(--ink); }
.dir-body h3 a:hover { color: var(--primary); }
.dir-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 7px 0; }
.dir-body p { font-size: .9rem; color: var(--muted); margin: 0; }
.dir-cta { white-space: nowrap; }

.chip {
  display: inline-block; padding: 3px 10px; border-radius: var(--r-pill);
  background: var(--primary-soft); color: var(--primary);
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
}
.chip-gold { background: var(--gold-soft); color: var(--gold-deep); }
.chip-rose { background: var(--rose-soft); color: #7d4447; }
.chip-quiet { background: var(--canvas-2); color: var(--muted); }

.stars { color: var(--gold-deep); letter-spacing: 1px; font-size: .85rem; }

.empty-state {
  text-align: center; padding: var(--s-7) var(--s-4);
  color: var(--muted); background: var(--surface);
  border: 1px dashed var(--line-strong); border-radius: var(--r-md);
}

/* ==========================================================================
   Article
   ========================================================================== */

.article-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 264px;
  gap: var(--s-7); align-items: start;
}
.article {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s-7);
  box-shadow: var(--sh-1);
}
.article > *:first-child { margin-top: 0; }
.article h2 { margin-top: var(--s-7); padding-top: var(--s-1); }
.article h3 { margin-top: var(--s-5); }
.article p { font-size: 1.01rem; }

.article-head { margin-bottom: var(--s-5); }
.article-head h1 { margin-bottom: var(--s-3); }
.article-meta {
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-4);
  font-size: .84rem; color: var(--muted);
  padding-bottom: var(--s-4); border-bottom: 1px solid var(--line);
}
.article-meta .updated {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--primary); font-weight: 700;
}
.article-meta .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--primary);
  display: inline-block;
}

.breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: var(--s-3); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; opacity: .5; }

.lead { font-size: 1.09rem; color: var(--text); border-left: 3px solid var(--gold); padding-left: var(--s-4); }

.toc {
  background: var(--canvas-2); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--s-4) var(--s-5);
  margin: var(--s-5) 0;
}
.toc h2 { font-size: .78rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--s-2); }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { font-size: .89rem; margin-bottom: 5px; }
.toc a { color: var(--text); }
.toc a:hover { color: var(--primary); }

/* ==========================================================================
   Callouts
   ========================================================================== */

.callout {
  border-radius: var(--r-md); padding: var(--s-4) var(--s-5);
  margin: var(--s-5) 0; border-left: 4px solid var(--primary);
  background: var(--primary-soft);
}
.callout h3 { margin: 0 0 6px; font-size: 1rem; color: var(--primary); }
.callout p:last-child { margin-bottom: 0; }
.callout p { font-size: .96rem; }
.callout.tip { background: var(--gold-soft); border-left-color: var(--gold-deep); }
.callout.tip h3 { color: #8a6412; }
.callout.warn { background: #fdf4e6; border-left-color: var(--warning); }
.callout.warn h3 { color: #8a5200; }
.callout.danger { background: #fceceb; border-left-color: var(--error); }
.callout.danger h3 { color: var(--error); }

/* ==========================================================================
   Steps
   ========================================================================== */

.steps { list-style: none; counter-reset: step; padding: 0; margin: var(--s-5) 0; }
.steps li {
  counter-increment: step; position: relative;
  padding: 0 0 var(--s-4) 46px; margin: 0;
  border-left: 2px solid var(--line); margin-left: 14px;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: -15px; top: -2px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: .88rem; font-weight: 700;
}

/* ==========================================================================
   Table
   ========================================================================== */

.table-wrap { overflow-x: auto; margin: var(--s-5) 0; }
table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: .93rem; }
caption { text-align: left; font-size: .85rem; color: var(--muted); padding-bottom: var(--s-2); }
th, td { border: 1px solid var(--line); padding: 11px 13px; text-align: left; vertical-align: top; }
th { background: var(--canvas-2); font-weight: 700; color: var(--ink); }
tbody tr:nth-child(even) { background: #fdfbf9; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { margin: var(--s-5) 0; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--r-md);
  margin-bottom: var(--s-2); background: var(--surface);
}
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--ink);
  padding: 14px var(--s-5); list-style: none;
  display: flex; justify-content: space-between; gap: var(--s-3);
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--primary); font-size: 1.25rem;
  line-height: 1; flex: 0 0 auto;
}
.faq details[open] summary { color: var(--primary); }
.faq details[open] summary::after { content: "\2212"; }
.faq .faq-body { padding: 0 var(--s-5) var(--s-4); }
.faq .faq-body p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ==========================================================================
   Sidebar
   ========================================================================== */

.sidebar { position: sticky; top: 92px; display: grid; gap: var(--s-4); }
.side-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--s-4) var(--s-5);
}
.side-box h2 {
  font-size: .78rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 var(--s-3);
}
.side-box ul { list-style: none; padding: 0; margin: 0; }
.side-box li { border-bottom: 1px solid var(--line); }
.side-box li:last-child { border-bottom: 0; }
.side-box li a { display: block; padding: 7px 0; font-size: .88rem; color: var(--text); }
.side-box li a:hover { color: var(--primary); }
.side-note { font-size: .8rem; color: var(--muted); margin: var(--s-3) 0 0; }

/* ==========================================================================
   Partner band — GNP Times article
   ========================================================================== */

.partner {
  background: linear-gradient(140deg, var(--deep), #45100f 60%, #2a0506);
  color: #e8d4d4; border-radius: var(--r-lg);
  padding: var(--s-6); margin: var(--s-6) 0;
  border: 1px solid rgba(247, 212, 98, .2);
}
.partner h2 { color: #fff; font-size: 1.2rem; margin-bottom: var(--s-2); }
.partner p { font-size: .95rem; margin-bottom: var(--s-4); }
.partner .btn { margin-top: var(--s-1); }

/* ==========================================================================
   Figure
   ========================================================================== */

figure { margin: var(--s-6) 0; }
figure img { width: 100%; border: 1px solid var(--line); border-radius: var(--r-md); }
figcaption { font-size: .85rem; color: var(--muted); margin-top: var(--s-2); text-align: center; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--deep); color: #c9a9aa; padding: var(--s-8) 0 var(--s-5); }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s-6); padding-bottom: var(--s-6);
  border-bottom: 1px solid rgba(247, 212, 98, .16);
}
.site-footer h3 {
  color: var(--gold); font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; margin-bottom: var(--s-3);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: #dfc3c3; font-size: .89rem; }
.site-footer a:hover { color: var(--gold); }
.footer-note { font-size: .84rem; color: #a98a8b; padding-top: var(--s-5); }
.footer-note a { color: #dfc3c3; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; width: 100%; flex-direction: column;
    align-items: stretch; padding-bottom: var(--s-3);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 12px; }
  .header-inner { flex-wrap: wrap; }
  .dir-row { grid-template-columns: 1fr; gap: var(--s-3); }
  .dir-rank { text-align: left; }
  .dir-cta { white-space: normal; }
  .article { padding: var(--s-5); }
  .section { padding: var(--s-7) 0; }
  .wrap { width: min(var(--wrap), calc(100% - 28px)); }
}

@media (max-width: 420px) {
  .hero { padding: var(--s-7) 0 var(--s-6); }
  .hero h1 { font-size: 2rem; }
  .article { padding: var(--s-4); }
  .btn { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
