/* ============================================================
   PANELNERD.COM — Global Stylesheet
   Palette: Dark slate nav + electric amber accent + white content
   Feel: utility-magazine, not the warm-cream or dark-neon AI default
   ============================================================ */

:root {
  --color-slate-900:  #0f1923;
  --color-slate-800:  #1a2535;
  --color-slate-700:  #253347;
  --color-slate-200:  #dce3ec;
  --color-slate-100:  #f0f4f8;
  --color-white:      #ffffff;

  --color-amber-500:  #f59e0b;
  --color-amber-400:  #fbbf24;
  --color-amber-100:  #fef3c7;

  --color-text-primary:   #111827;
  --color-text-secondary: #4b5563;
  --color-text-muted:     #6b7280;

  --color-success: #059669;
  --color-danger:  #dc2626;

  --font-display: 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;

  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --max-width-content: 720px;
  --max-width-wide:    1100px;

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);

  --transition-fast:   150ms ease;
  --transition-normal: 250ms ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text-primary);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { cursor: pointer; font: inherit; }

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-width-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.container--narrow {
  max-width: var(--max-width-content);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

/* Nav */
.site-nav {
  background: var(--color-slate-900);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--color-amber-500);
}
.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: var(--max-width-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.site-nav__logo {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-white);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.site-nav__logo em { color: var(--color-amber-500); font-style: normal; }
.site-nav__tagline {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-left: var(--space-3);
  border-left: 1px solid var(--color-slate-700);
  padding-left: var(--space-3);
}
.site-nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}
.site-nav__links a {
  color: var(--color-slate-200);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color var(--transition-fast);
}
.site-nav__links a:hover { color: var(--color-amber-400); }

/* Footer */
.site-footer {
  background: var(--color-slate-900);
  color: var(--color-slate-200);
  padding-block: var(--space-12) var(--space-8);
  margin-top: var(--space-24);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-10);
}
.site-footer__brand-name {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}
.site-footer__brand-name em { color: var(--color-amber-500); font-style: normal; }
.site-footer__brand p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 30ch;
}
.site-footer__col h4 {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-amber-500);
  margin-bottom: var(--space-4);
}
.site-footer__col ul { list-style: none; }
.site-footer__col li + li { margin-top: var(--space-2); }
.site-footer__col a {
  text-decoration: none;
  font-size: var(--text-sm);
  color: var(--color-slate-200);
  transition: color var(--transition-fast);
}
.site-footer__col a:hover { color: var(--color-amber-400); }
.site-footer__bottom {
  border-top: 1px solid var(--color-slate-700);
  padding-top: var(--space-6);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.site-footer__bottom a { color: var(--color-text-muted); text-decoration: underline; }

/* Article hero */
.article-hero {
  background: var(--color-slate-900);
  color: var(--color-white);
  padding-block: var(--space-16) var(--space-12);
}
.article-hero__eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-amber-500);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.article-hero__title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 22ch;
  margin-bottom: var(--space-6);
}
.article-hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-slate-200);
  max-width: 58ch;
  line-height: 1.6;
  margin-bottom: var(--space-6);
}
.article-hero__meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Article body */
.article-body { padding-block: var(--space-12); }
.article-body h2 {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
  color: var(--color-slate-900);
  border-left: 3px solid var(--color-amber-500);
  padding-left: var(--space-4);
  line-height: 1.2;
}
.article-body h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  color: var(--color-slate-900);
}
.article-body p {
  margin-bottom: var(--space-5);
  font-size: var(--text-lg);
  line-height: 1.75;
}
.article-body a {
  color: var(--color-slate-900);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--color-amber-500);
  text-decoration-thickness: 2px;
}
.article-body a:hover { color: var(--color-amber-500); }
.article-body ul, .article-body ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-5);
}
.article-body li {
  font-size: var(--text-lg);
  line-height: 1.7;
  margin-bottom: var(--space-2);
}

/* Verdict / callout boxes */
.verdict-box {
  border: 2px solid var(--color-amber-500);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  margin-block: var(--space-8);
  background: var(--color-amber-100);
}
.verdict-box__label {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-amber-500);
  margin-bottom: var(--space-3);
}
.verdict-box__title {
  font-size: var(--text-xl);
  font-weight: 800;
  margin-bottom: var(--space-3);
  color: var(--color-slate-900);
}
.verdict-box p { font-size: var(--text-base); margin-bottom: 0; }

.callout {
  border-left: 4px solid var(--color-amber-500);
  background: var(--color-amber-100);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-4) var(--space-6);
  margin-block: var(--space-6);
  font-size: var(--text-sm);
  line-height: 1.6;
}
.callout--info  { border-color: #3b82f6; background: #eff6ff; }
.callout--check { border-color: var(--color-success); background: #ecfdf5; }
.callout--warn  { border-color: var(--color-danger); background: #fef2f2; }

/* Cost table */
.cost-table-wrap { overflow-x: auto; margin-block: var(--space-8); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.cost-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.cost-table th {
  background: var(--color-slate-900);
  color: var(--color-white);
  font-weight: 700;
  text-align: left;
  padding: var(--space-3) var(--space-4);
  white-space: nowrap;
}
.cost-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-slate-200);
}
.cost-table tr:nth-child(even) td { background: var(--color-slate-100); }
.cost-table td:first-child { font-weight: 600; }
.cost-table .highlight td { background: var(--color-amber-100) !important; border-left: 3px solid var(--color-amber-500); }

/* CTA — TheBuilderMarket */
.cta-tbm {
  background: var(--color-slate-900);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-block: var(--space-10);
  color: var(--color-white);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-6);
  align-items: center;
}
.cta-tbm__eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-amber-500);
  margin-bottom: var(--space-2);
}
.cta-tbm__title {
  font-size: var(--text-xl);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: var(--space-2);
}
.cta-tbm__sub { font-size: var(--text-sm); color: var(--color-slate-200); }
.btn-amber {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-amber-500);
  color: var(--color-slate-900);
  font-weight: 800;
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-pill);
  text-decoration: none;
  white-space: nowrap;
  border: none;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.btn-amber:hover { background: var(--color-amber-400); transform: translateY(-1px); }

/* Breadcrumb */
.breadcrumb {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--color-text-muted); text-decoration: underline; }

/* Home hub cards */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-block: var(--space-10);
}
.hub-card {
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition-normal), border-color var(--transition-normal), transform var(--transition-normal);
  display: flex;
  flex-direction: column;
}
.hub-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-amber-500);
  transform: translateY(-2px);
}
.hub-card__icon { font-size: 2rem; margin-bottom: var(--space-4); }
.hub-card__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-amber-500);
  margin-bottom: var(--space-2);
}
.hub-card__title {
  font-size: var(--text-lg);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: var(--space-3);
  color: var(--color-slate-900);
}
.hub-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: var(--space-4);
}
.hub-card__cta { font-size: var(--text-sm); font-weight: 700; color: var(--color-amber-500); }

/* Responsive */
@media (max-width: 768px) {
  .hub-grid { grid-template-columns: 1fr; }
  .cta-tbm { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .site-nav__links { display: none; }
  .site-nav__tagline { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
