:root {
  --brand: #247890;
  --brand-dark: #153f4d;
  --brand-mid: #1c5f72;
  --brand-light: #5490a8;
  --cta: #ffd21f;
  --paper: #ffffff;
  --soft: #f3f7f8;
  --line: #d7e2e5;
  --text: #193842;
  --muted: #5c7078;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.68;
}
img { display: block; max-width: 100%; }
a { color: var(--brand-mid); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(84, 144, 168, 0.55); outline-offset: 3px; }
.skip-link { position: fixed; top: -70px; left: 12px; z-index: 100; padding: 10px 14px; color: white; background: var(--brand-dark); }
.skip-link:focus { top: 10px; }

.blog-article-page > header[data-component-path="src/components/Header.tsx"] {
  background: var(--brand-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.article-global-mobile-nav {
  position: absolute;
  top: 100%;
  right: 16px;
  left: 16px;
  display: grid;
  max-height: calc(100vh - 96px);
  padding: 8px;
  overflow-y: auto;
  background: var(--brand-dark);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}
.article-global-mobile-nav[hidden] { display: none; }
.article-global-mobile-nav a {
  padding: 10px 12px;
  color: white;
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.article-global-mobile-nav .article-global-mobile-cta {
  margin-top: 6px;
  color: var(--brand-dark);
  background: var(--cta);
  border-bottom: 0;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  color: white;
  background: rgba(21, 63, 77, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 36px));
  min-height: 78px;
  margin: 0 auto;
}
.brand-link { display: flex; align-items: center; color: white; text-decoration: none; }
.brand-link img { width: 154px; height: 64px; object-fit: contain; }
.header-nav { display: flex; align-items: center; gap: 20px; }
.header-nav a { color: white; font-size: 0.9rem; font-weight: 700; text-decoration: none; }
.header-nav a:hover { color: #dcebef; }
.header-nav .header-cta { padding: 10px 14px; color: var(--brand-dark); background: var(--cta); border-radius: 5px; }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { display: grid; place-items: center; width: 44px; height: 44px; list-style: none; border: 1px solid rgba(255,255,255,.35); border-radius: 4px; cursor: pointer; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary::before { content: "\2630"; font-size: 1.35rem; line-height: 1; }
.mobile-nav[open] summary::before { content: "\00d7"; font-size: 1.9rem; }
.mobile-nav-menu { position: absolute; top: 54px; right: 0; display: grid; width: min(300px, calc(100vw - 30px)); padding: 8px; background: var(--brand-dark); border: 1px solid rgba(255,255,255,.22); box-shadow: 0 18px 40px rgba(0,0,0,.22); }
.mobile-nav-menu a { padding: 11px 12px; color: white; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.1); }
.mobile-nav-menu a:last-child { margin-top: 6px; color: var(--brand-dark); background: var(--cta); border-bottom: 0; font-weight: 800; text-align: center; }

.article-hero { padding-top: 120px; background: var(--soft); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr); width: min(1240px, 100%); min-height: 520px; margin: 0 auto; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(46px, 7vw, 92px) clamp(24px, 6vw, 82px); }
.back-link { margin-bottom: 28px; font-size: .9rem; font-weight: 800; text-decoration: none; }
.category { margin: 0 0 12px; color: var(--brand); font-size: .78rem; font-weight: 850; text-transform: uppercase; }
h1, h2, h3 { letter-spacing: 0; }
h1 { margin: 0; font-size: 4rem; line-height: 1.06; }
.dek { max-width: 760px; margin: 22px 0 0; color: var(--muted); font-size: 1.12rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; color: var(--muted); font-size: .82rem; }
.hero-photo { position: relative; min-height: 420px; margin: 0; overflow: hidden; background: var(--brand-dark); }
.hero-photo img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; filter: saturate(.96) contrast(1.02); }
.photo-credit { position: absolute; right: 12px; bottom: 10px; padding: 4px 7px; color: white; background: rgba(21, 63, 77, .82); font-size: .68rem; text-decoration: none; border-radius: 3px; }

.article-shell { display: grid; grid-template-columns: minmax(0, 760px) 250px; gap: 72px; width: min(1110px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 76px; }
.article-content { min-width: 0; }
.answer-box { margin: 0 0 42px; padding: 24px 26px; color: white; background: var(--brand-dark); border-left: 6px solid var(--brand-light); }
.answer-box strong { display: block; margin-bottom: 6px; color: #d7e8ed; }
.answer-box p { margin: 0; }
.article-content h2 { scroll-margin-top: 106px; margin: 50px 0 16px; font-size: 2.1rem; line-height: 1.2; }
.article-content h3 { margin: 30px 0 10px; font-size: 1.16rem; }
.article-content p { margin: 0 0 19px; }
.article-content ul, .article-content ol { margin: 0 0 24px; padding-left: 24px; }
.article-content li { margin: 8px 0; }
.article-content blockquote { margin: 30px 0; padding: 18px 22px; color: var(--brand-dark); background: var(--soft); border-left: 4px solid var(--brand); }
.article-content table { display: block; width: 100%; margin: 28px 0; overflow-x: auto; border-collapse: collapse; font-size: .9rem; }
.article-content th, .article-content td { padding: 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.article-content th { color: white; background: var(--brand); }
.article-content a { font-weight: 650; }

.article-aside { min-width: 0; }
.aside-inner { position: sticky; top: 108px; }
.toc { padding-left: 18px; border-left: 3px solid var(--brand-light); }
.toc h2 { margin: 0 0 12px; font-size: .95rem; }
.toc a { display: block; margin: 9px 0; color: var(--muted); font-size: .82rem; line-height: 1.35; text-decoration: none; }
.toc a:hover { color: var(--brand); }
.aside-cta { display: block; margin-top: 30px; padding: 18px; color: white; background: var(--brand-mid); border-radius: 6px; text-decoration: none; }
.aside-cta strong, .aside-cta span { display: block; }
.aside-cta span { margin-top: 6px; color: #d7e8ed; font-size: .8rem; }

.faq-band { padding: 64px 20px; background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.faq-inner { width: min(900px, 100%); margin: 0 auto; }
.faq-inner h2 { margin: 0 0 24px; font-size: 2.25rem; }
.faq-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0 0 7px; font-size: 1.06rem; }
.faq-item p { margin: 0; color: var(--muted); }

.conversion-band { scroll-margin-top: 96px; padding: 70px 20px; color: white; background: var(--brand-mid); }
.conversion-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; width: min(1060px, 100%); margin: 0 auto; }
.conversion-copy h2 { margin: 0 0 14px; font-size: 2.6rem; line-height: 1.15; }
.conversion-copy p { color: #d7e8ed; }
.conversion-copy a { color: white; }
.lead-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lead-form label { color: #e6f0f3; font-size: .78rem; font-weight: 700; }
.lead-form input, .lead-form select, .lead-form textarea { width: 100%; min-width: 0; margin-top: 4px; padding: 12px; color: var(--text); background: white; border: 1px solid #bfd1d6; border-radius: 4px; }
.lead-form .full, .lead-form button, .form-note, .consent { grid-column: 1 / -1; }
.lead-form textarea { min-height: 108px; resize: vertical; }
.lead-form button { min-height: 48px; color: var(--brand-dark); background: var(--cta); border: 0; border-radius: 5px; font-weight: 850; }
.consent { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; color: #e0edf0; font-size: .74rem; font-weight: 500; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; }
.form-note { margin: 0; color: #c7dce2; font-size: .72rem; }

.related-band { padding: 68px 0 76px; overflow: hidden; }
.related-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; width: min(1120px, calc(100% - 40px)); margin: 0 auto 22px; }
.related-head h2 { margin: 0; font-size: 2.3rem; }
.carousel-controls { display: flex; gap: 8px; }
.carousel-button { display: grid; place-items: center; width: 42px; height: 42px; color: white; background: var(--brand); border: 0; border-radius: 50%; font-size: 1.25rem; }
.related-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 350px); gap: 18px; width: min(1120px, calc(100% - 40px)); margin: 0 auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding: 2px 2px 14px; }
.related-card { display: grid; grid-template-rows: 180px 1fr; min-height: 355px; color: var(--text); background: white; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; text-decoration: none; scroll-snap-align: start; }
.related-card:hover { border-color: var(--brand-light); box-shadow: 0 14px 30px rgba(21,63,77,.1); transform: translateY(-2px); }
.related-card img { width: 100%; height: 180px; object-fit: cover; }
.related-card-copy { padding: 18px; }
.related-card span { color: var(--brand); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.related-card h3 { margin: 8px 0 9px; font-size: 1.05rem; line-height: 1.28; }
.related-card p { margin: 0; color: var(--muted); font-size: .82rem; }

.site-footer { padding: 44px 20px 34px; color: #d7e8ed; background: var(--brand-dark); }
.footer-inner { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 40px; width: min(1100px, 100%); margin: 0 auto; }
.footer-brand img { width: 150px; height: 70px; object-fit: contain; filter: brightness(0) invert(1); }
.footer-brand p { max-width: 430px; }
.footer-col strong { display: block; margin-bottom: 10px; color: white; }
.footer-col a { display: block; width: fit-content; margin: 6px 0; color: #d7e8ed; text-decoration: none; }
.footer-bottom { width: min(1100px, 100%); margin: 28px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); }
.footer-bottom p { margin: 4px 0; }
.footer-bottom .legal { color: white; font-weight: 750; }

.hub-hero { padding: 78px 20px 62px; color: white; background: var(--brand); }
.hub-hero-inner { width: min(1120px, 100%); margin: 0 auto; }
.hub-hero h1 { max-width: 900px; }
.hub-hero p { max-width: 760px; margin-bottom: 0; color: #e2eef1; font-size: 1.05rem; }
.hub-main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 58px 0 80px; }
.hub-section + .hub-section { margin-top: 60px; padding-top: 52px; border-top: 1px solid var(--line); }
.hub-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.hub-section-head h2 { margin: 0; font-size: 2.35rem; }
.hub-section-head p { max-width: 540px; margin: 0; color: var(--muted); }
.hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.hub-card { display: grid; grid-template-columns: 190px minmax(0, 1fr); min-height: 230px; color: var(--text); background: white; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; text-decoration: none; }
.hub-card:hover { border-color: var(--brand-light); box-shadow: 0 14px 30px rgba(21,63,77,.1); transform: translateY(-2px); }
.hub-card img { width: 100%; height: 100%; min-height: 230px; object-fit: cover; }
.hub-card-copy { padding: 22px; }
.hub-card-copy span { color: var(--brand); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.hub-card-copy h2, .hub-card-copy h3 { margin: 8px 0 10px; font-size: 1.22rem; line-height: 1.25; }
.hub-card-copy p { margin: 0; color: var(--muted); font-size: .84rem; }

@media (max-width: 980px) {
  .header-nav { display: none; }
  .mobile-nav { display: block; }
  .hero-inner { grid-template-columns: 1fr; }
  h1 { font-size: 3.25rem; }
  .hero-photo { order: -1; }
  .hero-photo img { min-height: 380px; max-height: 520px; }
  .article-shell { grid-template-columns: 1fr; }
  .article-aside { display: none; }
  .conversion-inner { grid-template-columns: 1fr; }
  .hub-grid { grid-template-columns: 1fr; }
}

@media (min-width: 1024px) {
  .article-global-mobile-nav { display: none !important; }
}

@media (max-width: 700px) {
  .article-hero { padding-top: 88px; }
  .brand-link img { width: 126px; height: 58px; }
  .header-inner { min-height: 70px; }
  .hero-copy { padding: 38px 22px 48px; }
  .hero-photo img { min-height: 300px; }
  h1 { font-size: 2.5rem; }
  .article-content h2, .faq-inner h2, .related-head h2, .hub-section-head h2 { font-size: 1.75rem; }
  .conversion-copy h2 { font-size: 2rem; }
  .article-shell { width: min(100% - 30px, 760px); padding-top: 44px; }
  .lead-form { grid-template-columns: 1fr; }
  .lead-form .full, .lead-form button, .form-note, .consent { grid-column: auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .hub-section-head { align-items: start; flex-direction: column; }
  .hub-card { grid-template-columns: 1fr; }
  .hub-card img { height: 220px; min-height: 220px; }
  .related-head { align-items: center; }
}

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