/* ==========================================================================
   Practical Choice Lab — Site Stylesheet
   Brand: Deep navy #172A3A · Steel blue #315A6B · Muted gold #B38A3B · Soft grey #F3F6F7
   Typography: Inter (Google Fonts) with system fallback
   ========================================================================== */

:root {
  --navy: #172A3A;
  --navy-2: #1f3a4f;
  --steel: #315A6B;
  --gold: #B38A3B;
  --gold-dark: #93701f;
  --bg: #F3F6F7;
  --white: #FFFFFF;
  --ink: #1B1F23;
  --ink-soft: #4A5760;
  --border: #DDE4E6;
  --success-bg: #EEF5EE;
  --success-ink: #2C5A2C;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(23, 42, 58, 0.06), 0 4px 16px rgba(23, 42, 58, 0.06);
  --shadow-hover: 0 2px 4px rgba(23, 42, 58, 0.08), 0 12px 28px rgba(23, 42, 58, 0.10);
  --max-width: 1120px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--steel); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-body);
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; color: var(--ink-soft); }

.lede { font-size: 1.15rem; color: var(--ink-soft); }

ul, ol { color: var(--ink-soft); }
ul.plain, ol.plain { list-style: none; margin: 0; padding: 0; }

.text-block p, .text-block li { color: var(--ink-soft); }
.text-block strong { color: var(--ink); }

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---- Top utility bar ---- */
.top-bar {
  background: var(--navy);
  color: #C9D4DA;
  font-size: 0.82rem;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 12px;
  flex-wrap: wrap;
}
.top-bar a { color: #E4EAEC; }

/* ---- Header / Nav ---- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 18px; height: 18px; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
.main-nav a:hover { background: var(--bg); text-decoration: none; }
.main-nav a.current { color: var(--steel); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  position: relative;
  transition: 0.2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (max-width: 860px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 10px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav-toggle { display: block; }
  .site-header .container { position: relative; flex-wrap: wrap; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-dark); color: var(--white); }
.btn-secondary { background: transparent; border-color: var(--white); color: var(--white); }
.btn-secondary:hover { background: rgba(255,255,255,0.12); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, var(--steel) 130%);
  color: var(--white);
  padding: 72px 0 64px;
}
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { color: var(--white); }
.hero p.lede { color: #D6E0E4; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #E7EEF0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero-panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  padding: 28px;
}
.hero-panel h3 { color: var(--white); margin-bottom: 14px; }
.hero-panel ul { padding-left: 20px; margin: 0; }
.hero-panel li { color: #D6E0E4; margin-bottom: 10px; }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
}

/* Simpler page header (non-home) */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 52px 0;
}
.page-hero h1 { color: var(--white); margin-bottom: 8px; }
.page-hero p { color: #D6E0E4; margin: 0; max-width: 720px; }
.page-hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}

/* ---- Sections ---- */
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--white); }
.section-head { max-width: 640px; margin: 0 auto 36px; text-align: center; }
.section-head.left { margin: 0 0 32px; text-align: left; }

/* ---- Card grids ---- */
.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 780px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card h3 { margin-bottom: 8px; }
.card h3 a { color: var(--navy); }
.card h3 a:hover { color: var(--steel); text-decoration: none; }
.card p { margin-bottom: 14px; flex-grow: 1; }
.card .card-link { font-weight: 700; font-size: 0.9rem; }

.hub-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg);
  color: var(--steel);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.hub-icon svg { width: 22px; height: 22px; }

/* Article teaser card */
.article-card { position: relative; }
.article-meta {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 10px;
}
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--steel);
  border: 1px solid var(--border);
}
.badge-soon { background: #FBF2E2; color: var(--gold-dark); border-color: #EFDDB4; }
.badge-live { background: var(--success-bg); color: var(--success-ink); border-color: #CFE3CF; }

/* ---- Problem list (Start with the problem) ---- */
.problem-list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.problem-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  color: var(--navy);
}
.problem-item:hover { border-color: var(--steel); text-decoration: none; }
.problem-item .num {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
}

/* ---- Steps ---- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps li {
  counter-increment: step;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 20px 20px 62px;
  position: relative;
  color: var(--ink-soft);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px; top: 18px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.steps strong { color: var(--navy); display: block; margin-bottom: 4px; }

/* ---- Disclosure box ---- */
.disclosure {
  background: #FBF2E2;
  border: 1px solid #EFDDB4;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.9rem;
  color: #5C4517;
  margin: 22px 0;
}
.disclosure strong { color: #4A380F; }
.disclosure a { color: #7A5A1E; text-decoration: underline; }

.ai-disclosure {
  background: #EAF1F4;
  border: 1px solid #C9DBE1;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--navy);
  margin: 12px 0 22px;
}

/* ---- Newsletter / opt-in ---- */
.optin {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}
.optin h2, .optin h3 { color: var(--white); }
.optin p { color: #D6E0E4; }
.optin ul { padding-left: 20px; color: #D6E0E4; margin-bottom: 0; }
.optin-form { display: flex; flex-direction: column; gap: 10px; }
.optin-form input[type="email"],
.optin-form input[type="text"] {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 0.95rem;
}
.optin-form input::placeholder { color: #AEC0C7; }
.optin-fine { font-size: 0.76rem; color: #9FB2B9; margin: 0; }
@media (max-width: 780px) {
  .optin { grid-template-columns: 1fr; padding: 28px; }
}

/* Inline (non-navy) opt-in used at end of articles */
.optin-inline {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
.optin-inline h3 { margin-bottom: 6px; }

/* ---- How We Review process ---- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }
.process-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}
.process-step .step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--navy);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; margin: 24px 0; border-radius: var(--radius-sm); border: 1px solid var(--border); }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.92rem;
  min-width: 560px;
}
table caption { text-align: left; padding: 12px 16px; font-weight: 700; color: var(--navy); }
thead th {
  background: var(--navy);
  color: var(--white);
  text-align: left;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.85rem;
}
tbody td, tbody th {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  color: var(--ink-soft);
  vertical-align: top;
  text-align: left;
}
tbody th { color: var(--navy); font-weight: 700; white-space: nowrap; }
tbody tr:nth-child(even) td, tbody tr:nth-child(even) th { background: #FAFBFC; }

/* ---- Article layout ---- */
.article-header { background: var(--white); border-bottom: 1px solid var(--border); padding: 44px 0 32px; }
.article-header .hub-tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--steel);
  margin-bottom: 12px;
  display: inline-block;
}
.article-header h1 { margin-bottom: 10px; }
.article-meta-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 14px;
}

.article-body { max-width: 760px; margin: 0 auto; padding: 44px 24px 20px; }
.article-body h2 { margin-top: 1.6em; }
.article-body h3 { margin-top: 1.3em; }
.article-body .quick-answer {
  background: var(--bg);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-bottom: 26px;
}
.article-body .quick-answer p:last-child { margin-bottom: 0; }
.article-body .quick-answer .label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-dark);
  display: block;
  margin-bottom: 8px;
}

.criteria-list { padding-left: 20px; }
.criteria-list li { margin-bottom: 8px; }

.pros-limits { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 16px; margin: 20px 0; }
.pl-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; }
.pl-card h4 { margin: 0 0 8px; color: var(--navy); font-size: 1rem; }

.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item h4 { margin: 0 0 8px; color: var(--navy); }
.faq-item p { margin: 0; }

.reviewed-line {
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-top: 34px;
}
.related-guides {
  margin-top: 12px;
  font-size: 0.9rem;
}
.related-guides a { font-weight: 600; }

/* ---- Footer ---- */
.site-footer {
  background: var(--navy);
  color: #C9D4DA;
  padding: 52px 0 26px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 30px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: #C9D4DA; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--white); }
.footer-brand p { color: #AEC0C7; font-size: 0.88rem; max-width: 300px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: 0.8rem;
  color: #9FB2B9;
}
.footer-bottom a { color: #C6D4D9; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Misc ---- */
.section-head p { color: var(--ink-soft); }
.center { text-align: center; }
.mt-0 { margo-top: 0; }
.small { font-size: 0.85rem; color: var(--ink-soft); }
hr.rule { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

.callout {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--steel);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 22px 0;
}
.callout.warn { border-left-color: var(--gold); background: #FBF2E2; }
.callout p:last-child { margin-bottom: 0; }

.breadcrumbs { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumbs a { color: var(--steel); }

.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.side-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
}
.side-box h4 { margin-top: 0; }
.side-box ul { padding-left: 18px; margin: 0; font-size: 0.9rem; }
.side-box li { margin-bottom: 8px; }
