:root {
  --navy: #102a43;
  --navy-2: #173f5f;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --sky: #eaf2ff;
  --sky-2: #f5f9ff;
  --ink: #243b53;
  --muted: #627d98;
  --line: #d9e2ec;
  --yellow: #f7c843;
  --yellow-dark: #8a6200;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(16, 42, 67, 0.11);
  --radius: 20px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--white);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
button, input, textarea { font: inherit; }
a { color: var(--blue-dark); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 4px solid rgba(37, 99, 235, 0.35); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 20;
  padding: .7rem 1rem; border-radius: 8px; background: var(--yellow); color: var(--navy); font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.site-header { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.header-inner, .main-inner, .footer-inner { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.header-inner { padding: 20px 0 16px; }
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--blue); color: white; font-weight: 800; letter-spacing: -1px; box-shadow: 0 5px 0 #c8dafe; }
.brand-name { display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.15; }
.brand-tagline { display: block; margin-top: 2px; color: var(--muted); font-size: .82rem; line-height: 1.25; }
.search-form { width: min(330px, 42vw); display: flex; border: 2px solid var(--line); border-radius: 999px; background: var(--white); overflow: hidden; }
.search-form input { width: 100%; min-width: 0; border: 0; padding: 11px 16px; color: var(--ink); outline: 0; background: transparent; }
.search-form button { border: 0; padding: 0 16px; color: var(--blue-dark); background: transparent; cursor: pointer; }
.search-form:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.nav-wrap { margin-top: 16px; }
.main-nav { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: thin; }
.main-nav a { white-space: nowrap; display: inline-flex; align-items: center; min-height: 42px; padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 700; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--blue-dark); background: var(--sky); }

main { min-height: 60vh; }
.seo-fallback { max-width: 760px; padding: 42px 0 78px; }
.seo-fallback h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
.seo-fallback p { max-width: 650px; color: var(--muted); font-size: 1.12rem; }
.main-inner { padding: 42px 0 78px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(310px, .88fr); gap: 44px; align-items: center; padding: 38px 0 62px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 15px; color: var(--blue-dark); font-size: .79rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 99px; background: var(--yellow); }
h1, h2, h3, h4 { margin: 0 0 16px; color: var(--navy); line-height: 1.12; letter-spacing: -0.035em; }
h1, .display { font-family: "Newsreader", Georgia, serif; font-size: clamp(3.15rem, 6vw, 5.25rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.8rem); }
p { margin: 0 0 18px; }
.lede { max-width: 650px; color: var(--muted); font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 11px 18px; border: 2px solid transparent; border-radius: 11px; cursor: pointer; font-weight: 800; line-height: 1.2; text-decoration: none; }
.btn-primary { color: var(--white); background: var(--blue); box-shadow: 0 4px 0 #b6ccfb; }
.btn-primary:hover { color: var(--white); background: var(--blue-dark); }
.btn-secondary { border-color: var(--line); color: var(--navy); background: var(--white); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue-dark); }
.btn-yellow { color: var(--navy); background: var(--yellow); border-color: #e7b72e; }
.btn-yellow:hover { color: var(--navy); background: #ffd85d; }

.hero-card { position: relative; min-height: 370px; overflow: hidden; padding: 30px; border-radius: 30px; background: var(--navy); box-shadow: var(--shadow); }
.hero-card::before, .hero-card::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero-card::before { width: 240px; height: 240px; top: -80px; right: -60px; background: rgba(61, 139, 253, .22); }
.hero-card::after { width: 130px; height: 130px; bottom: -54px; left: -44px; background: rgba(247,200,67,.2); }
.hero-card-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; color: #cfe1ff; font-size: .87rem; font-weight: 700; }
.pulse-dot { width: 11px; height: 11px; display: inline-block; margin-right: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 6px rgba(247,200,67,.12); }
.hero-card h2 { position: relative; z-index: 1; max-width: 360px; margin-top: 68px; color: white; font-size: 2.55rem; }
.hero-card p { position: relative; z-index: 1; max-width: 350px; color: #cfe1ff; }
.hero-checks { position: relative; z-index: 1; display: grid; gap: 10px; margin-top: 24px; }
.hero-check { display: flex; align-items: center; gap: 10px; color: white; font-weight: 700; }
.check-mark { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: var(--navy); background: var(--yellow); font-size: .8rem; font-weight: 900; }

.section { padding: 32px 0 66px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.section-head p { max-width: 560px; margin-bottom: 0; color: var(--muted); }
.section-link { white-space: nowrap; font-weight: 800; }
.category-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; }
.category-card { display: flex; flex-direction: column; min-height: 230px; padding: 20px 17px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--navy); background: var(--white); box-shadow: 0 7px 20px rgba(16,42,67,.045); text-decoration: none; }
.category-card:hover { border-color: #9dbcf7; color: var(--navy); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(16,42,67,.09); }
.category-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 19px; border-radius: 16px; color: var(--blue-dark); background: var(--sky); }
.category-icon svg, .icon-inline svg { width: 26px; height: 26px; }
.category-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.category-card p { margin-top: auto; margin-bottom: 0; color: var(--muted); font-size: .93rem; line-height: 1.45; }

.start-section { display: grid; grid-template-columns: .78fr 1.22fr; gap: 28px; align-items: stretch; margin-top: 18px; padding: 34px; border-radius: var(--radius); background: var(--sky-2); }
.start-copy { display: flex; flex-direction: column; justify-content: center; }
.start-copy h2 { font-size: 2.35rem; }
.start-copy p { color: var(--muted); }
.guide-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.guide-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 180px; padding: 18px; border: 1px solid #d4e3fa; border-radius: 14px; background: var(--white); }
.guide-number { color: var(--blue); font-size: .9rem; font-weight: 800; }
.guide-card h3 { margin-top: 22px; font-size: 1.2rem; }
.guide-card a { margin-top: auto; font-size: .92rem; font-weight: 800; }
.trust-strip { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; margin: 20px 0 0; padding: 19px 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); }
.trust-strip strong { color: var(--navy); }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 27px; color: var(--muted); font-size: .9rem; }
.breadcrumbs a { font-weight: 700; }
.page-intro { max-width: 780px; padding: 8px 0 42px; }
.page-intro h1 { font-size: clamp(2.65rem, 5vw, 4.4rem); }
.page-intro .lede { max-width: 700px; }
.category-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.topic-panel { padding: 28px; border-radius: var(--radius); background: var(--sky-2); }
.topic-panel h2 { font-size: 2rem; }
.topic-panel p { color: var(--muted); }
.topic-list { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.topic-list li { display: flex; align-items: start; gap: 10px; }
.topic-list li::before { content: "✓"; flex: 0 0 auto; width: 24px; height: 24px; display: grid; place-items: center; margin-top: 3px; border-radius: 50%; color: var(--navy); background: var(--yellow); font-size: .78rem; font-weight: 900; }
.placeholder-guides { display: grid; gap: 12px; }
.placeholder-guide { display: grid; grid-template-columns: auto 1fr; gap: 15px; padding: 19px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.placeholder-guide .mini-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--blue-dark); background: var(--sky); }
.placeholder-guide h3 { margin-bottom: 5px; font-size: 1.2rem; }
.placeholder-guide p { margin-bottom: 0; color: var(--muted); font-size: .95rem; }
.published-articles { margin: 8px 0 38px; padding: 28px; border: 1px solid #cbdcfb; border-radius: var(--radius); background: var(--sky-2); }
.published-articles h2 { margin-bottom: 18px; font-size: 2rem; }
.published-article-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.published-article { display: flex; flex-direction: column; gap: 7px; padding: 20px; border: 1px solid #d4e3fa; border-radius: 14px; color: var(--navy); background: var(--white); text-decoration: none; }
.published-article:hover { border-color: var(--blue); color: var(--navy); box-shadow: 0 10px 24px rgba(16,42,67,.08); }
.published-article-label { color: var(--blue-dark); font-size: .78rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.published-article strong { font-size: 1.18rem; line-height: 1.25; }
.published-article span:last-child { margin-top: auto; color: var(--blue-dark); font-size: .92rem; font-weight: 800; }

.article-wrap { max-width: 820px; margin: 0 auto; }
.article-header { padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.affiliate { display: inline-flex; margin-bottom: 18px; padding: 7px 11px; border-radius: 8px; color: #5f4a00; background: #fff8da; font-size: .86rem; font-weight: 700; }
.article-header h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 20px; color: var(--muted); font-size: .95rem; }
.article-body { padding-top: 32px; }
.article-body > p { font-size: 1.12rem; }
.step { display: grid; grid-template-columns: 62px 1fr; gap: 20px; margin: 32px 0; }
.step-number { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 17px; color: var(--white); background: var(--blue); font-size: 1.35rem; font-weight: 800; }
.step h2 { margin: 0 0 8px; font-size: 1.85rem; }
.step p { color: var(--ink); }
.command-list { margin: 24px 0 34px; padding: 22px 28px 22px 58px; border: 1px solid #cbdcfb; border-radius: var(--radius-sm); background: var(--sky-2); }
.command-list li { margin: 10px 0; padding-left: 6px; font-size: 1.08rem; font-weight: 700; }
.tip-box { position: relative; margin: 40px 0; padding: 24px 26px 22px 68px; border-left: 6px solid var(--yellow); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: #fff9e1; }
.tip-box::before { content: "Tip"; position: absolute; left: 19px; top: 22px; color: var(--yellow-dark); font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); }
.tip-box p { margin: 0; }
.product-box { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; margin: 46px 0 20px; padding: 27px; border: 2px solid #cbdcfb; border-radius: var(--radius); background: var(--sky-2); }
.product-visual { min-height: 190px; display: grid; place-items: center; border-radius: 15px; background: #dceaff; }
.product-visual svg { width: 150px; height: 150px; }
.product-label { margin-bottom: 7px; color: var(--blue-dark); font-size: .78rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.product-box h2 { margin-bottom: 8px; font-size: 2rem; }
.product-box p { color: var(--muted); }
.product-note { margin: 0; font-size: .83rem; color: var(--muted); }

.prose { max-width: 760px; }
.prose h2 { margin-top: 42px; font-size: 2.1rem; }
.prose h3 { margin-top: 28px; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 25px; }
.about-callout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 30px 0 0; }
.about-card { padding: 27px; border-radius: var(--radius); background: var(--sky-2); }
.about-card h2 { font-size: 1.75rem; }
.about-card p { margin-bottom: 0; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; align-items: start; }
.contact-note { padding: 26px; border-radius: var(--radius); background: var(--navy); color: white; }
.contact-note h2 { color: white; font-size: 2rem; }
.contact-note p { color: #cfe1ff; }
.contact-note .contact-detail { padding-top: 17px; border-top: 1px solid rgba(255,255,255,.2); color: #fff; }
.contact-form { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 7px; color: var(--navy); font-weight: 800; }
.field input, .field textarea { width: 100%; padding: 13px 14px; border: 2px solid var(--line); border-radius: 10px; color: var(--ink); background: white; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--blue); outline: 0; }
.form-message { margin-top: 16px; padding: 12px 14px; border-radius: 9px; background: #e8f7ee; color: #17643a; font-weight: 700; }
.search-results { max-width: 780px; margin: -18px auto 30px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--sky-2); }
.search-results h2 { font-size: 1.5rem; }
.search-result { display: block; padding: 13px 0; border-top: 1px solid var(--line); text-decoration: none; }
.search-result strong { display: block; color: var(--navy); }
.search-result span { color: var(--muted); font-size: .93rem; }

.site-footer { padding: 38px 0 25px; border-top: 1px solid var(--line); background: var(--sky-2); }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
.footer-brand p { max-width: 330px; color: var(--muted); }
.footer-heading { margin-bottom: 12px; color: var(--navy); font-size: 1rem; font-weight: 800; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: var(--ink); font-size: .95rem; }
.footer-bottom { width: min(1160px, calc(100% - 40px)); display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; margin: 30px auto 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }

@media (max-width: 980px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .category-card { min-height: 205px; }
  .category-grid .category-card:nth-child(4), .category-grid .category-card:nth-child(5) { grid-column: span 1; }
}
@media (max-width: 760px) {
  body { font-size: 18px; }
  .header-inner, .main-inner, .footer-inner, .footer-bottom { width: min(100% - 28px, 600px); }
  .brand-row { align-items: flex-start; flex-direction: column; gap: 15px; }
  .search-form { width: 100%; }
  .main-nav { gap: 2px; }
  .main-nav a { padding: 8px 10px; font-size: .88rem; }
  .main-inner { padding-top: 26px; }
  .hero { grid-template-columns: 1fr; gap: 25px; padding-top: 22px; }
  h1, .display { font-size: clamp(3rem, 15vw, 4.5rem); }
  .hero-card { min-height: 325px; }
  .hero-card h2 { margin-top: 45px; font-size: 2.25rem; }
  .section { padding-bottom: 42px; }
  .section-head { display: block; }
  .section-link { display: inline-block; margin-top: 12px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .category-card { min-height: 215px; }
  .start-section { grid-template-columns: 1fr; padding: 24px; }
  .guide-list { grid-template-columns: 1fr; }
  .guide-card { min-height: 145px; }
  .category-layout, .contact-grid, .about-callout { grid-template-columns: 1fr; }
  .published-article-list { grid-template-columns: 1fr; }
  .page-intro { padding-bottom: 25px; }
  .page-intro h1 { font-size: clamp(2.8rem, 13vw, 4rem); }
  .article-header h1 { font-size: clamp(2.75rem, 12vw, 4rem); }
  .step { grid-template-columns: 48px 1fr; gap: 14px; }
  .step-number { width: 46px; height: 46px; border-radius: 13px; font-size: 1.1rem; }
  .step h2 { font-size: 1.65rem; }
  .product-box { grid-template-columns: 1fr; }
  .product-visual { min-height: 165px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-top: 7px; }
}
@media (max-width: 430px) {
  .category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 170px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}
