/* ── therouteup — shared styles for cornerstone / article pages ──
   Brand tokens mirror index.html. index.html keeps its own inline styles;
   this file serves the standalone pages only. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:       #ffffff;
  --ink-mid:   #cde4ed;
  --ink-soft:  rgba(184,210,224,0.7);
  --ink-faint: rgba(184,210,224,0.18);
  --bg-light:  #cddde4;
  --bg-darker: #5c8ea8;
  --glass:     rgba(8,22,32,0.45);
  --glass-hover: rgba(8,22,32,0.62);
  --border:    rgba(184,210,224,0.14);
}

html { scroll-behavior: smooth; }

body {
  background: #081420;
  color: var(--ink);
  font-family: 'Epilogue', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

/* Ambient gradient wash, fixed behind content */
.page-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 78% -10%, rgba(92,142,168,0.30) 0%, rgba(8,20,32,0) 60%),
    radial-gradient(90% 70% at 5% 5%, rgba(92,142,168,0.14) 0%, rgba(8,20,32,0) 55%);
}
nav, main, footer { position: relative; z-index: 1; }

a { color: inherit; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px 60px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(8,20,32,0.5);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: padding .4s, background .4s;
}
nav.scrolled { padding: 12px 60px; background: rgba(8,20,32,0.72); }
.nav-logo { display: flex; align-items: center; }
.nav-logo img {
  height: 56px; width: auto;
  display: block; flex-shrink: 0;
  object-fit: contain; opacity: .85;
  transition: height .4s;
}
nav.scrolled .nav-logo img { height: 46px; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none;
  position: relative; padding-bottom: 2px;
  transition: color .2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--ink-mid);
  transition: width .25s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--ink); }
.nav-cta {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: #0f1e26; background: var(--bg-light);
  padding: 11px 24px; text-decoration: none; display: inline-block;
  transition: background .2s, transform .12s ease;
}
.nav-cta:hover { background: #ffffff; }
.nav-cta:active { transform: translateY(1px); }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: transparent; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span { display: block; width: 22px; height: 1px; background: var(--ink-soft); transition: all .25s ease; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── ARTICLE SHELL ── */
main { padding: 140px 60px 20px; max-width: 1180px; margin: 0 auto; }

.breadcrumb {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(184,205,214,0.4); margin-bottom: 28px;
}
.breadcrumb a { color: rgba(184,205,214,0.55); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--bg-light); }
.breadcrumb span { margin: 0 8px; opacity: .5; }

.art-head { max-width: 900px; margin-bottom: 20px; }
.art-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px; letter-spacing: 3.5px; text-transform: uppercase;
  color: var(--ink-soft);
  display: flex; align-items: center; gap: 12px; margin-bottom: 26px;
}
.art-eyebrow::after { content: ''; flex: 0 0 40px; height: 1px; background: var(--ink-soft); }

h1 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: clamp(44px, 6.2vw, 82px); text-transform: uppercase;
  line-height: .88; letter-spacing: -2px; color: #ffffff;
  margin-bottom: 26px;
}
h1 em { font-style: italic; color: var(--bg-light); }

.art-standfirst {
  font-size: clamp(15px, 1.5vw, 18px); color: var(--ink-mid);
  line-height: 1.72; max-width: 760px; font-weight: 200;
}

/* Author / freshness block — E-E-A-T signals */
.art-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  margin: 36px 0 0; padding: 20px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  max-width: 900px;
}
.art-meta-author { font-size: 13px; color: var(--ink-mid); }
.art-meta-author strong { font-weight: 600; color: #fff; }
.art-meta-creds {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase;
  color: rgba(184,205,214,0.5);
  border-left: 1px solid var(--border); padding-left: 14px;
}
.art-meta-date { margin-left: auto; font-size: 11px; color: rgba(184,205,214,0.4); }

/* ── BODY COPY ── */
article { max-width: 780px; padding: 56px 0 20px; }
article h2 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: clamp(28px, 3.4vw, 40px); text-transform: uppercase;
  line-height: 1.02; letter-spacing: -.6px; color: #ffffff;
  margin: 56px 0 18px;
}
article h2:first-child { margin-top: 0; }
article h3 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 19px; text-transform: uppercase; letter-spacing: .5px;
  color: #ffffff; margin: 36px 0 12px;
}
article p { font-size: 15px; line-height: 1.85; color: var(--ink-soft); margin-bottom: 18px; }
article p strong { color: var(--ink-mid); font-weight: 600; }
article a:not(.btn) { color: var(--bg-light); text-decoration: underline; text-underline-offset: 3px; }
article a:not(.btn):hover { color: #fff; }

article ul, article ol { margin: 0 0 20px; padding-left: 0; list-style: none; }
article ol { counter-reset: li; }
article ul li, article ol li {
  font-size: 15px; line-height: 1.8; color: var(--ink-soft);
  padding-left: 26px; position: relative; margin-bottom: 12px;
}
article ul li::before { content: '—'; position: absolute; left: 0; color: rgba(184,205,214,0.35); }
article ol li { counter-increment: li; }
article ol li::before {
  content: counter(li); position: absolute; left: 0;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 13px;
  color: var(--bg-darker);
}

/* Lead answer block — the passage AI engines extract */
.key-answer {
  background: var(--glass); backdrop-filter: blur(12px);
  border-left: 2px solid var(--bg-darker);
  padding: 24px 28px; margin: 0 0 32px;
}
.key-answer p { margin: 0; font-size: 15.5px; color: var(--ink-mid); line-height: 1.78; }

blockquote {
  border-left: 2px solid var(--border); padding: 4px 0 4px 24px; margin: 30px 0;
}
blockquote p { font-size: 17px; font-style: italic; color: var(--ink-mid); line-height: 1.7; margin: 0; }
blockquote cite {
  display: block; margin-top: 12px; font-style: normal;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(184,205,214,0.45);
}

/* Comparison tables — high-value for AI extraction */
.table-scroll { overflow-x: auto; margin: 26px 0 30px; }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td {
  text-align: left; padding: 14px 18px;
  font-size: 13.5px; line-height: 1.65;
  border-bottom: 1px solid var(--border);
}
th {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase;
  color: #fff; background: var(--glass);
}
td { color: var(--ink-soft); }
tbody tr { transition: background .2s; }
tbody tr:hover { background: rgba(255,255,255,0.03); }

/* ── FAQ ── */
.faq-block { margin: 56px 0 0; }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--border); }
.faq-item {
  background: var(--glass); padding: 26px 28px; backdrop-filter: blur(12px);
  transition: background .25s, transform .3s cubic-bezier(0.22,1,0.36,1);
}
.faq-item:hover { background: var(--glass-hover); transform: translateY(-2px); }
.faq-item h3 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 15px; text-transform: uppercase; letter-spacing: .5px;
  color: #ffffff; margin: 0 0 10px;
}
.faq-item p { font-size: 12.5px; color: var(--ink-soft); line-height: 1.75; margin: 0; }

/* ── AUTHOR BIO ── */
.author-box {
  display: flex; gap: 22px; align-items: flex-start;
  background: var(--glass); backdrop-filter: blur(12px);
  padding: 30px 32px; margin: 56px 0 0;
  border: 1px solid var(--border);
}
.author-initials {
  flex-shrink: 0; width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); background: rgba(255,255,255,0.04);
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 19px; letter-spacing: 1px; color: var(--bg-light);
}
.author-box h3 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 17px; text-transform: uppercase; letter-spacing: .5px;
  color: #fff; margin: 0 0 4px;
}
.author-box .author-creds {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase;
  color: rgba(184,205,214,0.5); margin-bottom: 12px;
}
.author-box p { font-size: 13px; color: var(--ink-soft); line-height: 1.75; margin: 0; }

/* ── CTA ── */
.art-cta {
  margin: 64px 0 0; padding: 44px 44px;
  background: var(--glass); backdrop-filter: blur(14px);
  border: 1px solid var(--border);
}
.art-cta h2 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: clamp(28px, 3.6vw, 42px); text-transform: uppercase;
  line-height: .95; letter-spacing: -1px; color: #fff; margin: 0 0 14px;
}
.art-cta p { font-size: 14px; color: var(--ink-soft); line-height: 1.75; margin: 0 0 26px; max-width: 560px; }
.art-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  padding: 14px 30px; text-decoration: none; display: inline-block;
  transition: background .2s, color .2s, border-color .2s, transform .12s ease;
}
.btn.solid { background: var(--bg-light); color: #0f1e26; border: 1px solid var(--bg-light); }
.btn.solid:hover { background: #fff; border-color: #fff; }
.btn.outline { background: transparent; color: var(--ink-mid); border: 1px solid var(--border); }
.btn.outline:hover { border-color: var(--bg-light); color: #fff; }
.btn:active { transform: translateY(1px); }

/* ── RELATED ── */
.related { margin: 64px 0 0; padding-top: 40px; border-top: 1px solid var(--border); }
.related-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px; letter-spacing: 3.5px; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 24px;
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--border); }
.related-card {
  background: var(--glass); backdrop-filter: blur(12px); padding: 24px 26px;
  text-decoration: none; display: block;
  transition: background .25s, transform .3s cubic-bezier(0.22,1,0.36,1);
}
.related-card:hover { background: var(--glass-hover); transform: translateY(-3px); }
.related-card h3 {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800;
  font-size: 15px; text-transform: uppercase; letter-spacing: .5px;
  color: #fff; margin: 0 0 8px; line-height: 1.15;
}
.related-card p { font-size: 12px; color: var(--ink-soft); line-height: 1.7; margin: 0; }

/* ── FOOTER ── */
footer {
  margin-top: 90px;
  padding: 44px 60px;
  background: rgba(8,20,32,0.75);
  backdrop-filter: blur(20px);
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border);
  flex-wrap: wrap; gap: 20px;
}
.f-logo { display: flex; align-items: center; gap: 16px; }
.footer-logo-img { height: 36px; width: auto; display: block; flex-shrink: 0; object-fit: contain; opacity: .5; }
.f-logo small { font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(184,205,214,0.35); }
.f-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.f-nav a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(184,205,214,0.35); text-decoration: none; transition: color .2s;
}
.f-nav a:hover { color: rgba(184,205,214,0.7); }
.f-right { font-size: 11px; color: rgba(184,205,214,0.35); line-height: 1.8; text-align: right; }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.d1 { transition-delay: .1s; }
.reveal.in { opacity: 1; transform: none; }

/* ── MOBILE ── */
@media (max-width: 900px) {
  .faq-grid, .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  nav, nav.scrolled { padding: 14px 24px; }
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: rgba(8,20,32,0.96); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border); padding: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 16px 24px; border-bottom: 1px solid var(--border); font-size: 13px; letter-spacing: 2px; }
  .nav-links a::after { display: none; }
  nav .nav-cta { display: none; }
  main { padding: 110px 24px 20px; }
  .art-meta-date { margin-left: 0; width: 100%; }
  .art-cta { padding: 32px 26px; }
  footer { padding: 36px 24px; flex-direction: column; align-items: flex-start; }
  .f-right { text-align: left; }
  .author-box { flex-direction: column; gap: 16px; padding: 26px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
