/* ==========================================================================
   Power Station Tools — design system
   No framework, no build step: hand-authored, fast, and fully static.
   ========================================================================== */

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --ink-950: #05070a;
  --ink-900: #0a0e14;
  --ink-800: #111722;
  --ink-700: #1a2230;
  --ink-600: #252f42;
  --ink-500: #3a475f;
  --ink-300: #8390a8;
  --ink-100: #dfe4ec;

  --brand-50: #eefbf3;
  --brand-100: #d7f5e2;
  --brand-200: #b0eac8;
  --brand-300: #7ad9a8;
  --brand-400: #43c184;
  --brand-500: #1fa66a;
  --brand-600: #148555;
  --brand-700: #136a46;

  --sun-400: #ffc94a;
  --sun-500: #ffb020;
  --sun-600: #e8930a;

  --danger: #ef4444;

  --bg: var(--ink-950);
  --bg-elevated: var(--ink-900);
  --surface: var(--ink-800);
  --surface-2: var(--ink-700);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f3f5f8;
  --text-muted: var(--ink-300);
  --text-dim: #5c6a83;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.24), 0 12px 32px -12px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 0 1px rgba(31, 166, 106, 0.25), 0 8px 40px -10px rgba(31, 166, 106, 0.45);

  --container: 1180px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 900px 500px at 12% -10%, rgba(31, 166, 106, 0.16), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 0%, rgba(255, 176, 32, 0.08), transparent 55%);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: var(--font-sans); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 0.5em; color: #fff; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); line-height: 1.15; }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.5rem); }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; color: var(--text-muted); }
a { color: var(--brand-300); text-decoration: none; }
a:hover { color: var(--brand-200); text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--brand-400);
  outline-offset: 2px;
}
strong { color: var(--text); }
code { background: var(--surface-2); padding: 0.1em 0.4em; border-radius: 4px; font-size: 0.9em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section-head { max-width: 720px; margin: 0 0 32px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--brand-300); margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: 1rem;
  padding: 14px 24px; border-radius: var(--radius-md);
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  text-decoration: none; line-height: 1.2;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, var(--brand-400), var(--brand-600)); color: #05130c; box-shadow: var(--shadow-glow); }
.btn-primary:hover { filter: brightness(1.06); color: #05130c; }
.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--ink-600); color: var(--text); }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--border-strong); }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(10, 14, 20, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: #fff; }
.brand:hover { text-decoration: none; color: #fff; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-400), var(--sun-500));
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; box-shadow: 0 4px 14px -4px rgba(31,166,106,0.7);
}
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--text-muted); font-weight: 600; font-size: 0.92rem;
  padding: 8px 12px; border-radius: var(--radius-sm);
}
.main-nav a:hover { color: #fff; background: var(--surface); text-decoration: none; }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; }

@media (max-width: 780px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--ink-950); padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; margin-bottom: 36px; }
.footer-col h4 { color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: var(--text-muted); font-size: 0.92rem; }
.footer-col a:hover { color: var(--text); }
.footer-brand p { max-width: 320px; font-size: 0.92rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 0.82rem; color: var(--text-dim);
}
.footer-disclaimer { font-size: 0.78rem; color: var(--text-dim); max-width: 900px; margin: 0 0 20px; }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding: 14px 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: 0.85rem; color: var(--text-dim); }
.breadcrumbs a { color: var(--text-dim); }
.breadcrumbs a:hover { color: var(--brand-300); }
.breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: 6px; color: var(--ink-500); }
.breadcrumbs li[aria-current] { color: var(--text-muted); }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 12px; }
.hero-inner { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.hero-inner p.lead { font-size: 1.1rem; max-width: 620px; margin: 0 auto; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 18px 0 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: var(--radius-full);
  font-size: 0.8rem; color: var(--text-muted); font-weight: 600;
}

/* ---------- Calculator ---------- */
.calculator {
  background: linear-gradient(180deg, var(--bg-elevated), var(--surface));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
  animation: fadeUp 0.5s ease-out both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.calc-tabs { display: flex; gap: 8px; background: var(--ink-950); padding: 6px; border-radius: var(--radius-md); margin-bottom: 20px; border: 1px solid var(--border); }
.calc-tab {
  flex: 1; padding: 12px 14px; border-radius: var(--radius-sm); border: none; cursor: pointer;
  background: transparent; color: var(--text-muted); font-weight: 700; font-size: 0.92rem; font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease;
}
.calc-tab.is-active { background: linear-gradient(180deg, var(--brand-400), var(--brand-600)); color: #05130c; box-shadow: 0 4px 16px -4px rgba(31,166,106,0.55); }
.calc-tab:not(.is-active):hover { color: #fff; background: var(--surface-2); }

.calc-grid { display: grid; grid-template-columns: 300px 1fr; gap: 24px; }
@media (max-width: 860px) { .calc-grid { grid-template-columns: 1fr; } }

.calc-inputs { display: flex; flex-direction: column; gap: 18px; }
.calc-field label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; }
.calc-input-unit { display: flex; align-items: stretch; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; background: var(--ink-950); }
.calc-input-unit input, .calc-input-unit select { flex: 1; }
.calc-input-unit .unit { display: flex; align-items: center; padding: 0 14px; background: var(--surface-2); color: var(--text-muted); font-weight: 700; font-size: 0.85rem; }
.calc-efficiency-custom { margin-top: 8px; }

input[type="number"], input[type="text"], select {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--text);
  background: transparent; border: none; padding: 13px 14px;
}
input[type="number"]:focus, input[type="text"]:focus, select:focus { outline: none; }
select { appearance: none; background: var(--ink-950); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); cursor: pointer; }
input::placeholder { color: var(--text-dim); }

.calc-devices-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.calc-devices-header h3 { margin: 0; }
.calc-total-chip { font-size: 0.85rem; color: var(--text-muted); background: var(--ink-950); border: 1px solid var(--border); padding: 8px 14px; border-radius: var(--radius-full); }
.calc-total-chip strong { color: var(--brand-300); font-size: 0.95rem; }

.quick-calc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.quick-calc-btn {
  font-family: inherit; font-size: 0.82rem; font-weight: 600; color: var(--text-muted);
  background: var(--ink-950); border: 1px solid var(--border); border-radius: var(--radius-full);
  padding: 8px 14px; cursor: pointer; transition: all 0.15s ease;
}
.quick-calc-btn:hover { color: #fff; border-color: var(--brand-400); background: var(--surface-2); }

.device-library { display: flex; flex-direction: column; gap: 18px; max-height: 420px; overflow-y: auto; padding-right: 4px; margin-bottom: 16px; }
.device-category h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); margin-bottom: 8px; }
.device-row {
  display: grid; grid-template-columns: 1fr 72px auto 116px auto;
  align-items: center; gap: 10px;
  padding: 10px 10px; border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease;
}
.device-row:hover { background: var(--surface-2); }
.device-row--pulse { background: rgba(31, 166, 106, 0.16); border-color: rgba(31,166,106,0.4); }
.device-name { font-size: 0.92rem; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.device-tag {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--sun-400); background: rgba(255,176,32,0.12); border: 1px solid rgba(255,176,32,0.3);
  border-radius: var(--radius-full); padding: 2px 8px; cursor: help;
}
.device-watts { text-align: right; background: var(--ink-950); border: 1px solid var(--border); border-radius: 6px; padding: 8px; font-size: 0.88rem; }
.device-row .unit { font-size: 0.78rem; color: var(--text-dim); }
.qty-stepper { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--ink-950); }
.qty-btn { width: 30px; height: 34px; border: none; background: transparent; color: var(--text-muted); font-size: 1rem; cursor: pointer; }
.qty-btn:hover { background: var(--surface-2); color: #fff; }
.device-qty { width: 44px; text-align: center; padding: 8px 2px; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); background: transparent; }
.remove-btn { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); background: var(--ink-950); color: var(--text-dim); cursor: pointer; font-size: 0.8rem; }
.remove-btn:hover { color: var(--danger); border-color: var(--danger); }
.custom-row { grid-template-columns: 1fr 72px auto 116px 28px; }

.custom-devices { border-top: 1px dashed var(--border); padding-top: 16px; }
.custom-devices h4 { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px; }
.custom-device-form { display: grid; grid-template-columns: 1fr 90px 70px auto; gap: 8px; }
.custom-device-form input { background: var(--ink-950); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 0.88rem; }
@media (max-width: 560px) { .custom-device-form { grid-template-columns: 1fr 1fr; } }

.calc-actions { display: flex; gap: 10px; margin: 20px 0; flex-wrap: wrap; }

/* ---------- Result panel ---------- */
.result-panel {
  background: var(--ink-950);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 22px;
}
.result-empty p, .result-hint { color: var(--text-dim); font-size: 0.9rem; margin: 0 0 8px; }
.result-headline-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; }
.result-headline-block { display: flex; flex-direction: column; gap: 4px; }
.result-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); }
.result-headline { font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem); font-weight: 800; color: #fff; letter-spacing: -0.02em; }

.battery-visual { display: flex; align-items: center; width: 160px; flex-shrink: 0; }
.battery-visual-shell { flex: 1; height: 34px; border: 2px solid var(--border-strong); border-radius: 6px; overflow: hidden; background: var(--ink-900); position: relative; }
.battery-visual-fill { height: 100%; background: linear-gradient(90deg, var(--brand-500), var(--brand-300)); transition: width 0.9s cubic-bezier(0.16,1,0.3,1); }
.battery-visual-nub { width: 5px; height: 14px; background: var(--border-strong); border-radius: 0 3px 3px 0; }

.result-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0; }
.result-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; }
.stat-label { display: block; font-size: 0.72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.stat-value { font-size: 1.05rem; font-weight: 700; color: #fff; }
@media (max-width: 640px) { .result-stats { grid-template-columns: repeat(2, 1fr); } }

.tier-reference { margin: 16px 0; }
.tier-chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; }
.tier-chip { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-full); padding: 8px 14px; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.tier-chip--fits { border-color: var(--brand-500); color: var(--brand-200); background: rgba(31,166,106,0.12); }
.tier-check { color: var(--brand-300); }

.result-disclaimer { font-size: 0.78rem; color: var(--text-dim); border-top: 1px solid var(--border); padding-top: 14px; margin: 16px 0 0; }

.comparison-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 0.9rem; }
.comparison-table th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); padding: 8px 10px; border-bottom: 1px solid var(--border-strong); }
.comparison-table td { padding: 10px; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr.is-highlight td { color: #fff; font-weight: 700; background: rgba(31,166,106,0.08); }
.table-scroll { overflow-x: auto; }

/* ---------- Cards / grids ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 820px) { .steps-grid { grid-template-columns: 1fr; } }
.step-card { position: relative; padding-top: 8px; }
.step-number {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  color: #05130c; font-weight: 800; display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; font-size: 1.05rem;
}

.link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 820px) { .link-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .link-grid { grid-template-columns: 1fr; } }
.link-card {
  display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 16px; color: var(--text); font-weight: 600; font-size: 0.92rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.link-card:hover { border-color: var(--brand-400); transform: translateY(-2px); text-decoration: none; color: #fff; }
.link-card span { display: block; font-size: 0.78rem; color: var(--text-dim); font-weight: 500; margin-top: 3px; }

/* ---------- Device consumption table ---------- */
.consumption-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); }
table.data-table { width: 100%; border-collapse: collapse; min-width: 480px; }
table.data-table th { text-align: left; background: var(--surface); padding: 12px 16px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); border-bottom: 1px solid var(--border-strong); position: sticky; top: 0; }
table.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text-muted); font-size: 0.92rem; }
table.data-table tr:hover td { background: rgba(255,255,255,0.02); color: var(--text); }

/* ---------- Term glossary (nominal/average/duty-cycle/surge) ---------- */
.term-list { margin: 16px 0 0; }
.term-list dt { font-weight: 700; color: #fff; margin-top: 14px; font-size: 0.95rem; }
.term-list dt:first-child { margin-top: 0; }
.term-list dd { margin: 4px 0 0; color: var(--text-muted); font-size: 0.9rem; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.faq-question {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: inherit; font-size: 1rem; font-weight: 700; color: #fff;
}
.faq-question .faq-icon { flex-shrink: 0; transition: transform 0.2s ease; color: var(--brand-300); font-size: 1.2rem; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 20px 18px; color: var(--text-muted); font-size: 0.94rem; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- Ad placeholders ---------- */
.ad-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, var(--surface), var(--surface) 10px, var(--ink-800) 10px, var(--ink-800) 20px);
  border: 1px dashed var(--border-strong); border-radius: var(--radius-sm);
  color: var(--text-dim); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.ad-placeholder--banner { width: 100%; min-height: 90px; margin: 28px 0; }
.ad-placeholder--in-content { width: 100%; min-height: 100px; margin: 24px 0; }
.ad-placeholder--sidebar { width: 100%; min-height: 250px; }
.ad-placeholder--section { width: 100%; min-height: 80px; margin: 40px 0; }
.ad-placeholder--mobile { min-height: 60px; margin: 18px 0; }
@media (min-width: 900px) { .ad-placeholder--mobile { display: none; } }
.ad-placeholder--sidebar-wrap { display: none; }
@media (min-width: 900px) { .ad-placeholder--sidebar-wrap { display: block; } }

/* ---------- Product card (no invented data) ---------- */
.product-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 18px; display: flex; flex-direction: column; gap: 10px;
}
.product-card .product-placeholder-thumb {
  height: 120px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--ink-700), var(--ink-800));
  display: flex; align-items: center; justify-content: center; color: var(--text-dim); font-size: 0.78rem;
}
.product-card h4 { margin: 0; }
.product-card .product-meta { font-size: 0.82rem; color: var(--text-dim); }
.product-card .btn { margin-top: auto; }

/* ---------- Layout helpers ---------- */
.two-col { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; } }
.prose h2 { margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { color: var(--text-muted); padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose table { width: 100%; }

.pill { display: inline-block; background: var(--surface-2); color: var(--text-muted); border-radius: var(--radius-full); padding: 4px 12px; font-size: 0.78rem; font-weight: 700; }
.pill--brand { background: rgba(31,166,106,0.14); color: var(--brand-300); }

.cta-band {
  background: linear-gradient(135deg, var(--ink-800), var(--ink-900));
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  padding: 40px; text-align: center;
}

hr.divider { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

.skip-link {
  position: absolute; top: -50px; left: 12px; background: var(--brand-500); color: #05130c;
  padding: 10px 16px; border-radius: 8px; font-weight: 700; z-index: 100; transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

.not-found { text-align: center; padding: 100px 20px; }
