:root {
  --navy: #10233f;
  --navy-deep: #091728;
  --blue: #155eef;
  --orange: #ffad0a;
  --text: #18263d;
  --muted: #58657a;
  --line: #d7e0ea;
  --soft: #f2f5f9;
  --surface: #fff;
  --shadow: 0 12px 32px rgba(16, 35, 63, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: #eef2f6; color: var(--text); font-family: Arial, Helvetica, sans-serif; }
a { color: var(--blue); }
button, input { font: inherit; }

.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 3px solid var(--orange); background: radial-gradient(circle at 18% -80%, rgba(48,112,176,.32), transparent 42%), linear-gradient(120deg, var(--navy-deep), #0d2037 54%, #102b49); box-shadow: 0 8px 24px rgba(5,18,33,.16); }
.site-header-inner { max-width: 1480px; min-height: 72px; margin: 0 auto; padding: 0 30px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand-shield { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(145deg,#ffc238,#ff9e00); color: #142033; font: 1000 22px/1 system-ui,sans-serif; transform: rotate(-3deg); box-shadow: inset 0 0 0 2px rgba(255,255,255,.34),0 8px 18px rgba(0,0,0,.18); }
.brand-words { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.brand-words strong { font-size: 18px; letter-spacing: .045em; }
.brand-words span { color: var(--orange); font-size: 9px; font-weight: 950; letter-spacing: .24em; }
.main-nav { display: flex; align-items: center; gap: 3px; padding: 5px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; background: rgba(255,255,255,.06); }
.main-nav a { padding: 9px 13px; border-radius: 999px; color: #e4ebf4; font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.main-nav a:hover,.main-nav a:focus-visible,.main-nav a[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; outline: 0; }

.page-shell { width: min(1420px, calc(100% - 36px)); margin: 0 auto; padding: 22px 0 44px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; color: #6a7587; font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.breadcrumb a { text-decoration: none; }

.guides-hero,.article-hero { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(135deg,rgba(255,173,10,.09),transparent 28%),linear-gradient(135deg,#f9fbfd,#edf2f7); box-shadow: var(--shadow); }
.guides-hero { padding: 34px 38px; display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,460px); align-items: end; gap: 44px; }
.guides-hero h1,.article-hero h1 { margin: 0; color: var(--navy); font-size: clamp(38px,5vw,64px); line-height: 1; letter-spacing: -.05em; }
.guides-hero p,.article-hero .dek { margin: 12px 0 0; color: var(--muted); font-size: 17px; line-height: 1.55; }
.answer-card { padding: 20px; border-left: 5px solid var(--orange); border-radius: 10px; background: #fff; box-shadow: 0 8px 22px rgba(16,35,63,.08); }
.answer-card strong { display: block; margin-bottom: 6px; color: var(--navy); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.answer-card p { margin: 0; color: #405069; font-size: 14px; line-height: 1.55; }

.guide-search { grid-column: 1/-1; display: grid; grid-template-columns: max-content minmax(260px,720px) minmax(120px,1fr); align-items: center; gap: 8px 16px; padding-top: 20px; border-top: 1px solid rgba(16,35,63,.12); }
.guide-search label { color: var(--navy); font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .075em; }
.guide-search-control { position: relative; display: flex; align-items: center; }
.guide-search-control input { width: 100%; min-height: 48px; padding: 0 82px 0 16px; border: 2px solid #c5cfdb; border-radius: 11px; background: #fff; color: var(--text); font-size: 16px; outline: 0; box-shadow: 0 8px 20px rgba(16,35,63,.07); }
.guide-search-control input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(21,94,239,.12),0 10px 24px rgba(16,35,63,.08); }
.guide-search-control button { position: absolute; right: 7px; min-height: 34px; padding: 0 11px; border: 0; border-radius: 7px; background: #e7edf5; color: #253853; font-size: 12px; font-weight: 850; cursor: pointer; }
.guide-search-control button:hover,.guide-search-control button:focus-visible { background: #d9e3ef; outline: 2px solid var(--blue); outline-offset: 1px; }
.guide-search p { margin: 0; color: #667386; font-size: 12px; font-weight: 750; }
.guide-card[hidden] { display: none; }
.guide-search-empty { margin-top: 20px; padding: 32px; border: 1px dashed #aebdce; border-radius: 14px; background: #fff; text-align: center; }
.guide-search-empty h2 { margin: 0; color: var(--navy); font-size: 25px; }
.guide-search-empty p { margin: 8px auto 18px; max-width: 620px; color: var(--muted); line-height: 1.55; }
.guide-search-empty div { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; }
.guide-search-empty button,.guide-search-empty a { min-height: 42px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: var(--navy); color: #fff; font: 850 13px/1 Arial,Helvetica,sans-serif; text-decoration: none; cursor: pointer; }
.guide-search-empty a { background: var(--blue); }

.guide-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 20px; }
.guide-card { display: flex; flex-direction: column; min-height: 230px; padding: 23px; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: inherit; text-decoration: none; box-shadow: 0 5px 16px rgba(16,35,63,.06); transition: transform .16s ease,border-color .16s ease,box-shadow .16s ease; }
.guide-card:hover,.guide-card:focus-visible { border-color: #97a9c0; box-shadow: 0 14px 30px rgba(16,35,63,.12); transform: translateY(-3px); outline: 0; }
.guide-card .eyebrow { color: var(--blue); font-size: 11px; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.guide-card h2 { margin: 10px 0 0; color: var(--navy); font-size: 22px; line-height: 1.15; }
.guide-card p { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.guide-card .read { margin-top: auto; padding-top: 18px; color: var(--blue); font-size: 13px; font-weight: 900; }

.article-hero { padding: 34px 42px; }
.article-hero h1 { max-width: 1050px; }
.article-hero .dek { max-width: 940px; }
.reviewed { margin: 15px 0 0; color: #6d788a; font-size: 12px; font-weight: 750; }
.article-layout { display: grid; grid-template-columns: minmax(0,900px) minmax(260px,340px); justify-content: center; align-items: start; gap: 24px; margin-top: 20px; }
.article-content { padding: 34px 42px 40px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.article-content h2 { margin: 34px 0 10px; color: var(--navy); font-size: 27px; line-height: 1.15; }
.article-content h2:first-child { margin-top: 0; }
.article-content h3 { margin: 24px 0 8px; color: var(--navy); font-size: 20px; }
.article-content p,.article-content li { color: #3f4e65; font-size: 16px; line-height: 1.7; }
.article-content p { margin: 0 0 16px; }
.article-content ul,.article-content ol { margin: 0 0 20px; padding-left: 23px; }
.key-answer { margin: 0 0 26px; padding: 20px 22px; border-left: 5px solid var(--orange); border-radius: 10px; background: #f7f9fc; }
.key-answer strong { display: block; margin-bottom: 7px; color: var(--navy); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.key-answer p { margin: 0; color: #33445e; font-size: 17px; font-weight: 650; line-height: 1.55; }
.fact-table { width: 100%; margin: 14px 0 24px; border-collapse: collapse; font-size: 14px; }
.fact-table th,.fact-table td { padding: 11px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.45; }
.fact-table th { background: #edf2f7; color: var(--navy); font-weight: 900; }
.faq { border-top: 1px solid var(--line); }
.faq-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0 0 7px; font-size: 18px; }
.faq-item p { margin: 0; }
.source-box { margin-top: 32px; padding: 20px; border-radius: 11px; background: #0f2844; color: #d9e4f0; }
.source-box h2 { margin: 0 0 8px; color: #fff; font-size: 19px; }
.source-box p { margin: 0; color: #c4d1df; font-size: 13px; line-height: 1.55; }
.source-box a { color: #ffd36d; }

.sidebar { position: sticky; top: 96px; display: grid; gap: 14px; }
.side-card { padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 6px 18px rgba(16,35,63,.06); }
.side-card h2 { margin: 0 0 10px; color: var(--navy); font-size: 17px; }
.side-card p { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.side-card nav { display: grid; gap: 8px; }
.side-card a { font-size: 13px; font-weight: 800; text-decoration: none; }
.tool-link { display: block; padding: 12px 13px; border-radius: 8px; background: var(--blue); color: #fff!important; text-align: center; }
.tool-link.secondary { background: var(--navy); }
.disclaimer { color: #657286!important; font-size: 11px!important; }

.site-footer { border-top: 4px solid var(--orange); background: #0d1b2f; color: #d6dfeb; }
.site-footer-inner { max-width: 1420px; margin: 0 auto; padding: 28px 28px 22px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 20px 36px; }
.site-footer strong { color: #fff; }
.site-footer p { max-width: 760px; margin: 7px 0 0; color: #aebdd0; font-size: 13px; line-height: 1.5; }
.site-footer nav { display: flex; gap: 16px; }
.site-footer nav a,.copyright a { color: #fff; font-size: 13px; font-weight: 800; text-decoration: none; }
.copyright { grid-column: 1/-1; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.12); }

@media (max-width: 980px) {
  .guide-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .guides-hero { grid-template-columns: 1fr; gap: 20px; }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 680px) {
  .site-header-inner { min-height: 64px; padding: 0 14px; gap: 12px; }
  .brand { gap: 9px; }
  .brand-shield { width: 36px; height: 36px; font-size: 20px; }
  .brand-words strong { font-size: 15px; }
  .brand-words span { display: none; }
  .main-nav { padding: 4px; }
  .main-nav a { padding: 7px 8px; font-size: 11px; }
  .main-nav a:nth-child(3) { display: none; }
  .page-shell { width: calc(100% - 20px); padding-top: 12px; }
  .guides-hero,.article-hero { padding: 24px 18px; border-radius: 14px; }
  .guides-hero h1,.article-hero h1 { font-size: clamp(34px,11vw,46px); }
  .guides-hero p,.article-hero .dek { font-size: 15px; }
  .answer-card { display: none; }
  .guide-search { grid-template-columns: 1fr; gap: 8px; padding-top: 16px; }
  .guide-search label { font-size: 11px; }
  .guide-search-control input { min-height: 46px; padding-left: 13px; font-size: 15px; }
  .guide-search p { min-height: 15px; }
  .guide-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
  .guide-card { min-height: 0; padding: 19px; }
  .article-layout { margin-top: 12px; }
  .article-content { padding: 25px 18px 30px; border-radius: 14px; }
  .article-content h2 { font-size: 23px; }
  .article-content p,.article-content li { font-size: 15px; }
  .fact-table { display: block; overflow-x: auto; white-space: normal; }
  .sidebar { grid-template-columns: 1fr; }
  .site-footer-inner { grid-template-columns: 1fr; padding: 24px 18px 20px; }
  .copyright { grid-column: auto; }
}
