:root{
  /* Header sizing for anchor offsets */
  --headerH: 76px;

  /* Surfaces */
  --bg:#ffffff;
  --panel:#ffffff;
  --panel2:#f8fafc;                 /* slate-50 */
  --text:#0b1220;                   /* deep navy */
  --muted:#475569;                  /* slate-600 */
  --line:rgba(2,6,23,.10);          /* subtle border */

  /* Accents (no blue) */
  --green:#16a34a;                  /* trust green */
  --green2:#22c55e;                 /* green light */
  --gold:#b59a3a;                   /* gold discreet */
  --gold2:#e8d89a;                  /* gold light */

  /* Shadows (very subtle) */
  --shadow: 0 10px 26px rgba(2,6,23,.06);
  --shadow2: 0 8px 18px rgba(2,6,23,.05);

  /* Editorial images */
  --imgRadius:18px;
}

/* -------------
   Base / Reset
   ------------- */
*{box-sizing:border-box}
html,body{
  margin:0;padding:0;
  background:var(--bg);
  color:var(--text);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}
a{color:inherit}
img{max-width:100%;height:auto;display:block}
main{display:block}
figure{margin:0}
hr{
  border:0;
  border-top:1px solid var(--line);
  margin:18px 0;
}
::selection{background:rgba(181,154,58,.22)}

/* Layout container */
.wrap{max-width:1100px;margin:0 auto;padding:18px 18px}

/* Smooth anchor jumps */
html{scroll-behavior:smooth}
:target{scroll-margin-top: calc(var(--headerH) + 16px)}

/* ----------------
   Typography (global)
   ---------------- */
h1,h2,h3{
  line-height:1.15;
  letter-spacing:.1px;
}
h2{font-size:22px}
h3{font-size:18px}
p{margin:0 0 12px}
ul{margin:0 0 12px;padding-left:18px}
ol{margin:0 0 12px;padding-left:18px}
li{margin:10px 0}
strong{font-weight:900}
small{color:var(--muted)}
code{
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:0.95em;
  padding:.12em .35em;
  border-radius:8px;
  border:1px solid rgba(2,6,23,.10);
  background:rgba(2,6,23,.03);
}
blockquote{
  margin:14px 0;
  padding:12px 14px;
  border-left:4px solid rgba(181,154,58,.35);
  background:rgba(2,6,23,.02);
  border-radius:14px;
  color:var(--muted);
}

/* Focus (keyboard) */
:focus-visible{
  outline:2px solid rgba(22,163,74,.35);
  outline-offset:2px;
  border-radius:12px;
}

/* Reduce motion (accessibility) */
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *{
    animation-duration:0.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.001ms !important;
  }
}

/* ----------------
   Content links (green)
   ---------------- */
main a:not(.btn):not(.nav a):not(.brand a):not(.breadcrumbs a){
  color:var(--green);
  font-weight:750;
  text-decoration:underline;
  text-underline-offset:3px;
  text-decoration-thickness:2px;
}
main a:not(.btn):not(.nav a):not(.brand a):not(.breadcrumbs a):hover{
  color:var(--text);
}

/* ----------------
   Header
   ---------------- */
.header{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  position:sticky;top:0;z-index:10;
  min-height:var(--headerH);
  background:rgba(255,255,255,.96);
  border-bottom:1px solid var(--line);
  padding-top:4px;
  padding-bottom:4px;
}

/* Blur support */
@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))){
  .header{
    background:rgba(255,255,255,.82);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
  }
}

.brand{display:flex;gap:12px;align-items:center}
.brand a{
  display:flex;
  gap:10px;
  align-items:center;
  color:inherit;
  text-decoration:none;
}

.brandIcon{
  width:32px;height:32px;
  display:block;
  flex:0 0 32px;
}

/* Optional logo compatibility */
.logo{
  width:40px;height:40px;
  display:grid;place-items:center;
}
.logo img{width:32px;height:32px;display:block}

.name{font-weight:900;letter-spacing:.2px}
.tag{font-size:12px;color:var(--muted)}

/* Nav */
.nav{display:flex;gap:10px;flex-wrap:wrap}
.nav a{
  opacity:.95;text-decoration:none;font-size:14px;
  padding:8px 10px;border-radius:12px;
  border:1px solid transparent;
}
.nav a:hover{
  background:linear-gradient(135deg, rgba(22,163,74,.08), rgba(181,154,58,.08));
  border-color:rgba(2,6,23,.08);
}
.nav a[aria-current="page"]{
  background:linear-gradient(135deg, rgba(22,163,74,.12), rgba(181,154,58,.10));
  border-color:rgba(2,6,23,.10);
}

/* ----------------
   Breadcrumbs
   ---------------- */
.breadcrumbs{
  margin:12px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}
.breadcrumbs a{
  color:var(--muted);
  text-decoration:underline;
  text-underline-offset:3px;
  text-decoration-thickness:2px;
}
.breadcrumbs a:hover{ color:var(--text); }

/* ----------------
   Skip link
   ---------------- */
.skip{
  position:absolute;
  left:-9999px;
  top:10px;
}
.skip:focus{
  left:10px;
  z-index:999;
  background:#fff;
  padding:10px 12px;
  border:1px solid rgba(2,6,23,.16);
  border-radius:12px;
  box-shadow:var(--shadow2);
}

/* ----------------
   Hero
   ---------------- */
.heroGrid{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:18px;
  align-items:center;
}

.heroGrid h1{
  font-size:clamp(30px, 4vw, 44px);
  line-height:1.06;
  margin:0 0 10px;
}

.lead{
  color:var(--muted);
  font-size:clamp(15px, 1.6vw, 16px);
  line-height:1.7;
  margin:0 0 16px;
  max-width:62ch;
}

/* Homepage hero */
.hero{
  margin:18px 0 10px;
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:18px;
  align-items:center;

  padding:18px;
  border-radius:22px;
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,255,255,.98), var(--panel2));
  box-shadow:var(--shadow);
}
.hero > div:first-child{min-width:0}

.heroMedia{
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--line);
  background:linear-gradient(180deg,var(--panel),var(--panel2));
  box-shadow:var(--shadow);
}
.heroMedia img{
  width:100%;
  height:100%;
  display:block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 70% 50%;
  transform:translateZ(0);
}
.heroMedia figcaption{
  margin-top:10px;
  color:var(--muted);
  font-size:12px;
  line-height:1.6;
}

/* Trust badges */
.trustRow{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:10px 0 2px;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  font-size:13px;
  color:var(--text);
}
.dot{
  width:8px;height:8px;
  border-radius:50%;
  background:var(--green);
}
.dot.gold{background:var(--gold)}
.dot.gray{background:#64748b}

/* ----------------
   Buttons
   ---------------- */
.ctaRow{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0 10px}
.btn{
  display:inline-block;padding:12px 14px;border-radius:14px;
  border:1px solid var(--line);
  text-decoration:none;
  background:#fff;
  box-shadow:0 1px 0 rgba(2,6,23,.03);
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:hover{
  box-shadow:var(--shadow2);
  transform:translateY(-1px);
  border-color:rgba(2,6,23,.14);
}
.btn.primary{
  border:0;
  background:linear-gradient(135deg,var(--green),var(--gold));
  color:white;font-weight:900;
  box-shadow:0 10px 22px rgba(22,163,74,.16);
}
.btn.primary:hover{
  box-shadow:0 14px 26px rgba(22,163,74,.18);
}
.btn.full{display:block;text-align:center}

/* ----------------
   Cards
   ---------------- */
.card{
  background:linear-gradient(180deg,var(--panel),var(--panel2));
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
  box-shadow:var(--shadow);
}
.card + .card{ margin-top:14px; }
.card h2,.card h3{margin:0 0 10px}
.card ul{margin:0;padding-left:18px}
.card ol{margin:0;padding-left:18px}

/* Lists in cards readable by default */
.card li{margin:10px 0;color:var(--text)}
/* If you want muted lists, add class="mutedList" on the UL/OL */
.mutedList li{ color:var(--muted); }

.muted{color:var(--muted)}
.fine{
  color:var(--muted);
  font-size:12px;
  line-height:1.6;
  max-width:85ch;
  margin-top:10px;
}

/* Section grid */
.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin:18px 0 10px;
}
.link{
  color:var(--green);
  text-decoration:none;
  font-weight:850;
}
.link:hover{ text-decoration:underline; }

/* Footer */
.footer{
  display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;
  border-top:1px solid var(--line);
  margin-top:28px;color:var(--muted);
}
.footerLinks{display:flex;gap:12px}
.footerLinks a{text-decoration:none}
.footerLinks a:hover{text-decoration:underline}

/* -------------------------------
   Review page components
   ------------------------------- */
.kv{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  margin:14px 0;
}
.kv .row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

/* Pills */
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  font-size:13px;
  color:var(--text);
}
.pill strong{font-weight:900}

/* FAQ accordion */
.faq details{
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 12px;
  background:#fff;
}
.faq details + details{margin-top:10px}
.faq summary{
  cursor:pointer;
  font-weight:800;
}
.faq p{
  margin:10px 0 0;
  color:var(--muted);
  line-height:1.7;
}

/* Helpers */
.pageTop{ margin-top:18px; }
.stack12{ margin-top:12px; }
.stack18{ margin-top:18px; }
.hTight{ margin:0 0 10px; }

/* --------------------------------
   Comparison table
   -------------------------------- */
.tableWrap{
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  border-radius:18px;
  border:1px solid var(--line);
  background:linear-gradient(180deg,var(--panel),var(--panel2));
  box-shadow:var(--shadow);
}
.table{
  width:100%;
  border-collapse:collapse;
  min-width:760px;
}
.table thead th{
  text-align:left;
  padding:12px 14px;
  font-size:13px;
  letter-spacing:.2px;
  color:var(--muted);
  border-bottom:1px solid var(--line);
  background:rgba(248,250,252,.92);
  position:sticky;
  top:0;
}
@supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))){
  .table thead th{
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
  }
}
.table tbody td{
  padding:12px 14px;
  border-bottom:1px solid rgba(2,6,23,.07);
  vertical-align:top;
  color:var(--text);
  font-size:14px;
  line-height:1.6;
}
.table tbody tr:hover{ background:rgba(181,154,58,.05); }
.table tbody tr:last-child td{ border-bottom:0; }
.tdAction{ white-space:nowrap; }

.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  font-size:12px;
  font-weight:800;
}
.chip.good{ color:var(--green); }
.chip.gold{ color:var(--gold); }
.chip.neutral{ color:#64748b; }

.tableNote{
  margin-top:10px;
  color:var(--muted);
  font-size:12px;
  line-height:1.6;
  max-width:90ch;
}

/* Top pick block */
.topPick{
  border:1px solid rgba(181,154,58,.18);
  background:
    radial-gradient(900px 220px at 20% 0%, rgba(22,163,74,.08), transparent 55%),
    radial-gradient(900px 240px at 100% 10%, rgba(181,154,58,.08), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.98), var(--panel2));
}

/* Pros / Cons */
.prosCons{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.pcCol{
  border:1px solid rgba(2,6,23,.08);
  border-radius:16px;
  padding:12px;
  background:#fff;
}
.pcTitle{
  margin:0 0 8px;
  font-size:14px;
  letter-spacing:.2px;
}
.pcList{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:10px;
}
.pcList li{
  margin:0;
  display:flex;
  gap:10px;
  align-items:flex-start;
  color:var(--muted);
  line-height:1.6;
}
.pcDot{
  width:10px;height:10px;
  border-radius:999px;
  margin-top:6px;
  flex:0 0 10px;
  background:#94a3b8;
}
.pcDot.good{ background:linear-gradient(135deg, var(--green), var(--green2)); }
.pcDot.warn{ background:linear-gradient(135deg, var(--gold), var(--gold2)); }

/* SIMPLE TOC */
.tocSimple{
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
  background:#fff;
  box-shadow:var(--shadow2);
  max-width:520px;
}
.tocSimple h2{
  margin:0 0 10px;
  font-size:28px;
  line-height:1.1;
  font-weight:900;
  letter-spacing:.2px;
}
.tocSimple ul{
  margin:0;
  padding-left:22px;
}
.tocSimple li{
  margin:12px 0;
  color:var(--muted);
}
.tocSimple a{
  color:var(--text);
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}
.tocSimple a:hover{
  color:var(--green);
}

/* -----------------------------
   Editorial images
   ----------------------------- */
main figure{
  border-radius:var(--imgRadius);
}
main figure img{
  width:100%;
  height:auto;
  border-radius:var(--imgRadius);
  border:1px solid var(--line);
  background:linear-gradient(180deg,var(--panel),var(--panel2));
  box-shadow:var(--shadow2);
  overflow:hidden;
}
main figure figcaption{
  margin-top:8px;
  color:var(--muted);
  font-size:12px;
  line-height:1.6;
  max-width:90ch;
}
main .card figure{
  max-width:960px;
}
main figure + p{ margin-top:14px; }
main p + figure{ margin-top:14px; }
main figure.is-diagram img{
  box-shadow:none;
  background:#fff;
}

/* Responsive */
@media (max-width:900px){
  .hero{
    grid-template-columns:1fr;
    padding:16px;
  }

  .grid{grid-template-columns:1fr}
  .kv .row{grid-template-columns:1fr}
  .prosCons{grid-template-columns:1fr}
  .table{min-width:720px}
  .tocSimple{max-width:100%}

  .heroMedia figcaption{ display:none; }
  .heroMedia img{ object-position: 50% 50%; }

  /* Nav: horizontal scroll */
  .nav{
    flex-wrap:nowrap;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    padding-bottom:6px;
  }
  .nav a{ white-space:nowrap; }

  :root{ --imgRadius:16px; }
  main .card figure{ max-width:100%; }
}

/* =========================================
   Approval-friendly CTA tuning (Gold IRA)
   ========================================= */
.btn.soft{
  border:1px solid rgba(2,6,23,.12);
  background:linear-gradient(180deg, #ffffff, rgba(248,250,252,.92));
  color:var(--text);
  font-weight:900;
  box-shadow:0 6px 14px rgba(2,6,23,.06);
}
.btn.soft:hover{
  box-shadow:0 10px 22px rgba(2,6,23,.08);
  transform:translateY(-1px);
  border-color:rgba(2,6,23,.18);
}
.ctaRow .btn.primary{
  box-shadow:0 10px 22px rgba(22,163,74,.14);
}
.ctaRow .btn{
  padding:11px 13px;
}

/* On the request-info section, force provider button to look softer */
#request-info .btn.primary,
#request-info .btn.full.primary{
  border:1px solid rgba(2,6,23,.12);
  background:linear-gradient(180deg, #ffffff, rgba(248,250,252,.92));
  color:var(--text);
  box-shadow:0 6px 14px rgba(2,6,23,.06);
}
#request-info .btn.primary:hover,
#request-info .btn.full.primary:hover{
  box-shadow:0 10px 22px rgba(2,6,23,.08);
  border-color:rgba(2,6,23,.18);
}

/* Mobile: stack buttons full-width */
@media (max-width:900px){
  .ctaRow{ gap:10px; }
  .ctaRow .btn{
    width:100%;
    text-align:center;
  }
}
