/* ITG Group — Shared sub-page stylesheet
   Matches the main Website.html brand: navy + gold, Cormorant Garamond + Outfit */

:root {
  --navy-deep: #000f2d;
  --navy: #001438;
  --navy-card: #051a40;
  --navy-surface: #081e48;
  --gold: #dbb055;
  --gold-light: #eac878;
  --gold-dim: #c2a934;
  --text: #e0e4ec;
  --text-muted: #9cb0c8;
  --white: #d2b384;
  --accent-warm: #97695e;
}

* , *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy-deep);
  color: var(--text);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--gold-light); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--gold); }

img { max-width: 100%; height: auto; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* NAV */
.sub-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(0,16,46,0.96), rgba(0,15,45,0.92));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(219,176,85,0.12);
}
.sub-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.sub-nav-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.sub-nav-brand img {
  height: 38px;
  width: auto;
  display: block;
  transition: opacity 0.2s ease;
}
.sub-nav-brand:hover img { opacity: 0.85; }
.sub-nav-links { display: flex; gap: 1.8rem; list-style: none; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }
.sub-nav-links a { color: var(--text-muted); }
.sub-nav-links a:hover { color: var(--gold-light); }
.sub-nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--navy-deep);
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: transform 0.3s, box-shadow 0.3s;
}
.sub-nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(219,176,85,0.28); color: var(--navy-deep); }
/* ── MOBILE HAMBURGER ─────────────────────────────────────────────────────── */
.sub-nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1px solid rgba(219,176,85,0.25);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px 10px;
  flex-shrink: 0;
}
.sub-nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.sub-nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sub-nav-hamburger.open span:nth-child(2) { opacity: 0; }
.sub-nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE OVERLAY ───────────────────────────────────────────────────────── */
.sub-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0,8,28,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 2rem;
}
.sub-nav-overlay.open { display: flex; }
.sub-nav-overlay a {
  display: block;
  width: 100%;
  max-width: 320px;
  text-align: center;
  padding: 1.1rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(219,176,85,0.1);
  transition: color 0.2s;
}
.sub-nav-overlay a:hover { color: var(--gold-light); }
.sub-nav-overlay a:first-child { border-top: 1px solid rgba(219,176,85,0.1); }
.sub-nav-overlay .overlay-cta {
  margin-top: 1.8rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--navy-deep) !important;
  padding: 1rem 2.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  border-top: none;
}

/* ── COMPARE TABLE SCROLL WRAPPER ─────────────────────────────────────────── */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2rem 0;
  border-radius: 12px;
  border: 1px solid rgba(219,176,85,0.12);
}
.table-scroll .compare-table {
  margin: 0;
  border: none;
  border-radius: 0;
  min-width: 560px;
}
.table-scroll-hint {
  display: none;
  text-align: center;
  font-size: 0.72rem;
  color: var(--gold-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 0 0.25rem;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .sub-nav-links { display: none; }
  .sub-nav-cta  { display: none; }
  .sub-nav-hamburger { display: flex; }
  .table-scroll-hint { display: block; }
}

/* BREADCRUMB */
.breadcrumb {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.5rem 2rem 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb .sep { margin: 0 0.6rem; color: rgba(156,176,200,0.4); }
.breadcrumb .current { color: var(--gold-light); }

/* HERO */
.page-hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
  text-align: center;
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 3rem; left: 50%;
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: translateX(-50%);
}
.page-hero .eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
  padding-top: 1.25rem;
}
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}
.page-hero .dek {
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 680px;
  margin: 0 auto;
}
.page-hero .byline {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 1.5rem;
  opacity: 0.8;
}

/* ARTICLE */
article, .content {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}
article p, .content p {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 1.3rem;
}
article p strong, .content p strong { color: var(--gold-light); font-weight: 600; }
article p em, .content p em { color: var(--gold-light); font-style: italic; }

article h2, .content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  font-weight: 600;
  color: var(--white);
  margin: 3rem 0 1rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(219,176,85,0.15);
  padding-top: 2.5rem;
}
article h2:first-of-type, .content h2:first-of-type { border-top: none; padding-top: 1rem; }

article h3, .content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold-light);
  margin: 2rem 0 0.8rem;
  letter-spacing: -0.005em;
}

article ul, article ol, .content ul, .content ol {
  margin: 0 0 1.5rem 1.5rem;
  color: var(--text);
}
article li, .content li { margin-bottom: 0.6rem; line-height: 1.75; }
article li::marker, .content li::marker { color: var(--gold); }

/* CALLOUT CARD */
.callout {
  background: linear-gradient(180deg, rgba(8,30,72,0.6), rgba(5,26,64,0.7));
  border: 1px solid rgba(219,176,85,0.22);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  padding: 1.6rem 1.8rem;
  margin: 2rem 0;
  box-shadow: 0 10px 32px rgba(0,0,0,0.3);
}
.callout-label {
  display: inline-block;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}
.callout p:last-child { margin-bottom: 0; }

/* STAT CARDS */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin: 2.5rem 0;
}
.stat-card {
  background: linear-gradient(180deg, rgba(8,30,72,0.55), rgba(5,26,64,0.65));
  border: 1px solid rgba(219,176,85,0.16);
  border-radius: 14px;
  padding: 1.6rem 1.4rem;
  text-align: center;
}
.stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}
.stat-label {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* COMPARE TABLE */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.93rem;
  background: rgba(5,26,64,0.35);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(219,176,85,0.12);
}
.compare-table th, .compare-table td {
  padding: 0.95rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid rgba(219,176,85,0.08);
}
.compare-table th {
  background: rgba(219,176,85,0.08);
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.compare-table td { color: var(--text); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .good { color: #7bcf9a; }
.compare-table .bad { color: #cf7b7b; }

/* CTA */
.page-cta {
  background: linear-gradient(135deg, rgba(219,176,85,0.08), rgba(151,105,94,0.06));
  border: 1px solid rgba(219,176,85,0.22);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  margin: 3rem 0 1rem;
  text-align: center;
}
.page-cta h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 0.8rem;
  border: none;
  padding: 0;
}
.page-cta p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--navy-deep) !important;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  transition: transform 0.3s, box-shadow 0.3s;
  border: none;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(219,176,85,0.3); color: var(--navy-deep) !important; }
.btn-secondary {
  background: transparent;
  border: 1px solid rgba(219,176,85,0.4);
  color: var(--gold-light) !important;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold) !important; background: rgba(219,176,85,0.06); }

/* RELATED LINKS */
.related {
  max-width: 820px;
  margin: 3rem auto 0;
  padding: 0 2rem;
}
.related h4 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold-light);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 600;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.related-card {
  display: block;
  background: rgba(8,30,72,0.5);
  border: 1px solid rgba(219,176,85,0.15);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
  transition: border-color 0.3s, transform 0.3s;
  color: var(--text) !important;
}
.related-card:hover { border-color: rgba(219,176,85,0.4); transform: translateY(-2px); color: var(--gold-light) !important; }
.related-card .rc-label { font-size: 0.7rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.4rem; }
.related-card .rc-title { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 600; line-height: 1.3; }
.related-card .rc-desc { margin-top: 0.5rem; font-size: 0.85rem; line-height: 1.5; color: rgba(232,230,224,0.78); }

/* FOOTER */
.sub-footer {
  margin-top: 4rem;
  padding: 2.5rem 2rem;
  background: linear-gradient(180deg, rgba(0,15,45,0), rgba(0,8,32,0.6));
  border-top: 1px solid rgba(219,176,85,0.12);
  text-align: center;
}
.sub-footer-brand {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold-light);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.sub-footer-tag { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1.2rem; }
.sub-footer-links { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1.2rem; }
.sub-footer-links a { color: var(--text-muted); }
.sub-footer-links a:hover { color: var(--gold); }
.sub-footer-copy { color: var(--text-muted); font-size: 0.75rem; opacity: 0.7; }

/* FAQ */
.sub-faq { margin: 3rem 0 2rem; }
.sub-faq details {
  background: linear-gradient(180deg, rgba(8,30,72,0.55), rgba(5,26,64,0.65));
  border: 1px solid rgba(219,176,85,0.14);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.sub-faq details[open] { border-color: rgba(219,176,85,0.32); }
.sub-faq summary {
  list-style: none;
  padding: 1.1rem 1.4rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sub-faq summary::-webkit-details-marker { display: none; }
.sub-faq summary::after { content: '+'; color: var(--gold); font-size: 1.3rem; }
.sub-faq details[open] summary::after { content: '−'; }
.sub-faq details p { padding: 0 1.4rem 1.2rem; color: var(--text-muted); margin: 0; }

/* TOC */
.toc {
  background: rgba(5,26,64,0.45);
  border: 1px solid rgba(219,176,85,0.15);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  margin: 2rem 0;
}
.toc-title {
  color: var(--gold);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 0.7rem;
}
.toc ul { list-style: none; margin: 0; }
.toc li { margin: 0.4rem 0; }
.toc a {
  color: var(--text);
  font-size: 0.92rem;
  display: inline-block;
  padding-left: 0.8rem;
  border-left: 2px solid rgba(219,176,85,0.3);
  transition: border-color 0.3s, color 0.3s;
}
.toc a:hover { color: var(--gold-light); border-left-color: var(--gold); }

/* CALCULATOR */
.calc-wrap {
  max-width: 720px;
  margin: 2rem auto;
  background: linear-gradient(180deg, rgba(8,30,72,0.6), rgba(5,26,64,0.7));
  border: 1px solid rgba(219,176,85,0.22);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.calc-row { margin-bottom: 1.3rem; }
.calc-label { display: block; color: var(--gold-light); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; font-weight: 600; }
.calc-input {
  width: 100%;
  background: rgba(0,15,45,0.6);
  border: 1px solid rgba(219,176,85,0.25);
  color: var(--text);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}
.calc-input:focus { outline: none; border-color: var(--gold); }
.calc-hint { color: var(--text-muted); font-size: 0.78rem; margin-top: 0.35rem; }
.calc-result {
  margin-top: 2rem;
  padding: 1.8rem;
  background: linear-gradient(135deg, rgba(219,176,85,0.1), rgba(151,105,94,0.08));
  border: 1px solid rgba(219,176,85,0.35);
  border-radius: 12px;
  text-align: center;
}
.calc-result-label { color: var(--gold); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.6rem; font-weight: 600; }
.calc-result-value { font-family: 'Cormorant Garamond', serif; font-size: 2.6rem; font-weight: 700; color: var(--gold-light); line-height: 1.1; }
.calc-result-sub { color: var(--text); font-size: 0.9rem; margin-top: 0.6rem; }
.calc-result-band { color: var(--text-muted); font-size: 0.82rem; margin-top: 0.4rem; }

/* ── TABLET (≤ 768px) ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .page-hero h1   { font-size: clamp(1.9rem, 7vw, 2.8rem); }
  .page-hero .dek { font-size: 1rem; }
  .related-grid   { grid-template-columns: 1fr; }
  .stat-grid      { grid-template-columns: 1fr 1fr; }
  .page-cta       { padding: 2rem 1.4rem; }
  .page-cta h3    { font-size: 1.5rem; }
  .callout        { padding: 1.3rem 1.4rem; }
  .sub-footer     { padding: 2rem 1.2rem; }
  .sub-footer-links { gap: 1rem; }
}

/* ── PHONE (≤ 600px) ──────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .sub-nav-inner      { padding: 0.85rem 1rem; }
  .sub-nav-brand img  { height: 30px; }

  .breadcrumb { padding: 1.2rem 1rem 0; font-size: 0.73rem; }

  .page-hero          { padding: 1.8rem 1rem 1.4rem; }
  .page-hero .eyebrow { font-size: 0.72rem; }
  .page-hero h1       { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  .page-hero .dek     { font-size: 0.96rem; line-height: 1.7; }

  article, .content   { padding: 1.5rem 1rem 3rem; }
  article p, .content p { font-size: 0.97rem; }
  article h2, .content h2 { font-size: clamp(1.5rem, 6vw, 1.9rem); margin-top: 2.2rem; padding-top: 2rem; }
  article h3, .content h3 { font-size: 1.2rem; }

  .stat-grid          { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .stat-value         { font-size: 2rem; }

  .callout            { padding: 1.1rem 1.1rem; border-left-width: 3px; }

  .page-cta           { padding: 1.6rem 1rem; margin: 2rem 0 0.5rem; }
  .page-cta h3        { font-size: 1.4rem; }
  .page-cta p         { font-size: 0.92rem; }
  .btn                { padding: 0.9rem 1.6rem; font-size: 0.8rem; width: 100%; text-align: center; }

  .related            { padding: 0 1rem; }
  .related h4         { font-size: 1.1rem; }
  .related-card       { padding: 1rem; }
  .related-card .rc-title { font-size: 1rem; }

  .sub-footer         { padding: 1.8rem 1rem; }
  .sub-footer-tag     { font-size: 0.8rem; }
  .sub-footer-links   { gap: 0.8rem; font-size: 0.72rem; }
  .sub-footer-copy    { font-size: 0.7rem; }

  .calc-wrap          { padding: 1.4rem 1rem; }
  .calc-result-value  { font-size: 2.1rem; }

  .toc                { padding: 1.1rem 1.2rem; }
  .sub-faq summary    { font-size: 1rem; padding: 1rem 1.1rem; }
  .sub-faq details p  { padding: 0 1.1rem 1rem; font-size: 0.92rem; }
}

/* ── SMALL PHONE (≤ 390px) ────────────────────────────────────────────────── */
@media (max-width: 390px) {
  .page-hero h1       { font-size: 1.65rem; }
  .stat-grid          { grid-template-columns: 1fr; }
  .sub-footer-links   { flex-direction: column; align-items: center; gap: 0.6rem; }
}

/* ─────────────────────────────────────────────────────────────────────────── */
/* POLISH ADDITIONS                                                            */
/* ─────────────────────────────────────────────────────────────────────────── */

/* ── QUICK SUMMARY WIDGET ─────────────────────────────────────────────────── */
.quick-summary {
  border: 1px solid rgba(219,176,85,0.22);
  border-radius: 12px;
  overflow: hidden;
  margin: 0 0 2rem;
  background: linear-gradient(160deg, rgba(8,30,72,0.55), rgba(5,26,64,0.6));
}
.qs-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.3rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: inherit;
  transition: background 0.2s;
}
.qs-toggle:hover { background: rgba(219,176,85,0.05); }
.qs-icon {
  font-size: 1rem;
  flex-shrink: 0;
}
.qs-label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  flex-shrink: 0;
}
.qs-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  flex: 1;
}
.qs-chevron {
  font-size: 1.1rem;
  color: var(--gold);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  line-height: 1;
}
.quick-summary.open .qs-chevron { transform: rotate(90deg); }
.qs-body {
  border-top: 1px solid rgba(219,176,85,0.12);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.25s ease;
  padding: 0 1.3rem;
}
.quick-summary.open .qs-body {
  max-height: 600px;
  padding: 1.1rem 1.3rem 1.3rem;
}
.qs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.qs-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}
.qs-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 0.5rem;
}

/* ── READING PROGRESS BAR (top) ───────────────────────────────────────────── */
#read-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-light));
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ── SIDE SCROLL TRACKER (vertical line + tree) ───────────────────────────── */
#side-tracker {
  position: fixed;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 56vh;
  z-index: 400;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
#side-tracker.visible { opacity: 1; }

/* Unfilled track */
#side-tracker-track {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(219,176,85,0.12);
  border-radius: 2px;
}

/* Filled portion */
#side-tracker-fill {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--gold-dim), var(--gold-light));
  border-radius: 2px;
  transition: height 0.12s linear;
}

/* The PNW tree */
#side-tracker-tree {
  position: absolute;
  left: 50%;
  top: 0%;
  transform: translate(-50%, -100%);
  line-height: 1;
  transition: top 0.12s linear;
  filter: drop-shadow(0 0 5px rgba(219,176,85,0.6));
  pointer-events: none;
  user-select: none;
}
#side-tracker-tree svg {
  display: block;
}

/* Hide on narrow screens */
@media (max-width: 900px) {
  #side-tracker { display: none; }
}

/* ── BACK-TO-TOP BUTTON ───────────────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, rgba(219,176,85,0.18), rgba(219,176,85,0.1));
  border: 1px solid rgba(219,176,85,0.35);
  border-radius: 50%;
  color: var(--gold-light);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, background 0.3s;
  pointer-events: none;
  z-index: 500;
  text-decoration: none;
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#back-to-top:hover {
  background: linear-gradient(135deg, rgba(219,176,85,0.3), rgba(219,176,85,0.18));
  color: var(--gold-light);
  border-color: var(--gold);
}

/* ── PULL QUOTE ───────────────────────────────────────────────────────────── */
.pull-quote {
  border-left: none;
  border-top: 1px solid rgba(219,176,85,0.3);
  border-bottom: 1px solid rgba(219,176,85,0.3);
  padding: 1.8rem 2rem;
  margin: 2.5rem 0;
  text-align: center;
  position: relative;
}
.pull-quote::before {
  content: '\201C';
  position: absolute;
  top: -0.6rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  background: var(--navy-deep);
  padding: 0 0.5rem;
}
.pull-quote p {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.25rem, 3vw, 1.65rem) !important;
  font-weight: 500;
  color: var(--white) !important;
  font-style: italic;
  line-height: 1.5 !important;
  margin: 0 !important;
}
.pull-quote cite {
  display: block;
  margin-top: 0.8rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-style: normal;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── STEP LIST ────────────────────────────────────────────────────────────── */
.step-list {
  list-style: none;
  margin: 1.5rem 0 2rem;
  padding: 0;
  counter-reset: steps;
}
.step-list li {
  counter-increment: steps;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  margin-bottom: 1.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid rgba(219,176,85,0.08);
}
.step-list li:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.step-list li::before {
  content: counter(steps);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  color: var(--navy-deep);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

/* ── TAG / CATEGORY CHIPS ─────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(219,176,85,0.3);
  color: var(--gold);
  background: rgba(219,176,85,0.06);
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
}
.tag-grid { margin: 0.75rem 0 1.5rem; }

/* ── CALLOUT VARIANTS ─────────────────────────────────────────────────────── */
.callout--tip {
  border-left-color: #5ac87a;
  background: linear-gradient(180deg, rgba(90,200,122,0.07), rgba(5,26,64,0.5));
}
.callout--tip .callout-label { color: #5ac87a; }

.callout--warn {
  border-left-color: #e8a844;
  background: linear-gradient(180deg, rgba(232,168,68,0.07), rgba(5,26,64,0.5));
}
.callout--warn .callout-label { color: #e8a844; }

.callout--danger {
  border-left-color: #e06060;
  background: linear-gradient(180deg, rgba(224,96,96,0.07), rgba(5,26,64,0.5));
}
.callout--danger .callout-label { color: #e06060; }

/* ── TOC ACTIVE STATE ─────────────────────────────────────────────────────── */
.toc a.active {
  color: var(--gold-light);
  border-left-color: var(--gold);
  font-weight: 500;
}

/* ── BLOG INDEX HERO ──────────────────────────────────────────────────────── */
.blog-hero-banner {
  background: linear-gradient(180deg, rgba(219,176,85,0.04) 0%, transparent 100%);
  border-bottom: 1px solid rgba(219,176,85,0.1);
  padding-bottom: 1rem;
}

/* ── ARTICLE CARD (blog index) — IMPROVED ─────────────────────────────────── */
.article-card {
  display: flex;
  flex-direction: column;
  background: rgba(8,30,72,0.5);
  border: 1px solid rgba(219,176,85,0.15);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  color: var(--text) !important;
  text-decoration: none;
  min-height: 180px;
}
.article-card:hover {
  border-color: rgba(219,176,85,0.4);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.article-card .ac-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.article-card .ac-tag {
  font-size: 0.67rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  background: rgba(219,176,85,0.08);
  border: 1px solid rgba(219,176,85,0.2);
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
}
.article-card .ac-time {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.article-card .ac-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.article-card .ac-desc {
  font-size: 0.87rem;
  line-height: 1.6;
  color: rgba(224,228,236,0.72);
  flex: 1;
}
.article-card .ac-arrow {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.article-card--featured {
  background: linear-gradient(160deg, rgba(8,30,72,0.7), rgba(5,26,64,0.65));
  border-color: rgba(219,176,85,0.28);
  min-height: 220px;
}
.article-card--featured .ac-title { font-size: 1.5rem; }

/* ── ARTICLE GRID ─────────────────────────────────────────────────────────── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.1rem;
  margin: 1.5rem 0 3rem;
}
.article-grid--featured {
  grid-template-columns: 1fr;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* ── INLINE HIGHLIGHT ─────────────────────────────────────────────────────── */
mark {
  background: linear-gradient(90deg, rgba(219,176,85,0.2), rgba(219,176,85,0.15));
  color: var(--gold-light);
  border-radius: 3px;
  padding: 0.1em 0.3em;
}

/* ── TOOL PAGE ENHANCEMENTS ───────────────────────────────────────────────── */
.tool-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(219,176,85,0.1);
  border: 1px solid rgba(219,176,85,0.25);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.tool-hero-badge svg { width: 14px; height: 14px; fill: currentColor; }

.calc-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  border-bottom: 1px solid rgba(219,176,85,0.15);
  padding-bottom: 0.5rem;
  margin: 1.8rem 0 1.2rem;
}
.calc-section-label:first-child { margin-top: 0; }

.calc-select {
  width: 100%;
  background: rgba(0,15,45,0.6);
  border: 1px solid rgba(219,176,85,0.25);
  color: var(--text);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23dbb055' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
  transition: border-color 0.3s;
}
.calc-select:focus { outline: none; border-color: var(--gold); }
.calc-select option { background: #001438; }

.calc-checkbox-group { display: flex; flex-direction: column; gap: 0.5rem; }
.calc-checkbox {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--text);
}
.calc-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
}

.calc-range-row { display: flex; align-items: center; gap: 1rem; }
.calc-range {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: rgba(219,176,85,0.2);
  border-radius: 2px;
  outline: none;
}
.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dim), var(--gold-light));
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(219,176,85,0.4);
}
.calc-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dim), var(--gold-light));
  cursor: pointer;
}
.calc-range-val {
  min-width: 3.5rem;
  text-align: right;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold-light);
}

/* ── RESULT BREAKDOWN LIST ────────────────────────────────────────────────── */
.result-breakdown {
  margin-top: 1.2rem;
  text-align: left;
  border-top: 1px solid rgba(219,176,85,0.15);
  padding-top: 1rem;
}
.result-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
  font-size: 0.87rem;
  border-bottom: 1px solid rgba(219,176,85,0.06);
}
.result-breakdown-row:last-child { border-bottom: none; }
.result-breakdown-row .rb-label { color: var(--text-muted); }
.result-breakdown-row .rb-val { color: var(--gold-light); font-weight: 500; }

/* ── RESPONSIVE ADDITIONS ─────────────────────────────────────────────────── */
@media (max-width: 600px) {
  #back-to-top { bottom: 1.2rem; right: 1rem; width: 38px; height: 38px; font-size: 1rem; } /* tracker hidden on mobile so right can go back to edge */
  .pull-quote { padding: 1.4rem 1.2rem; }
  .pull-quote p { font-size: 1.15rem !important; }
  .article-grid { grid-template-columns: 1fr; }
  .article-card { min-height: unset; }
  .calc-range-row { flex-wrap: wrap; }
  .calc-range-val { min-width: 2.5rem; }
}
