/* ── Marketing Box Blog — shared stylesheet ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:     #1560C4;
  --blue-dk:  #0D45A0;
  --blue-lt:  #2874E0;
  --blue-bg:  #EEF4FF;
  --blue-mid: #C4D8FF;
  --ink:      #080E1E;
  --gray-1:   #3A4B68;
  --gray-2:   #6B7A9E;
  --gray-3:   #A8B4CC;
  --bg-soft:  #F5F7FC;
  --border:   #DDE3F2;
  --white:    #FFFFFF;
  --r-sm: 8px; --r: 16px; --r-lg: 24px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--white); color: var(--ink);
  font-family: 'Poppins', sans-serif; font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before {
  content: ''; position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #0D45A0 0%, #1560C4 25%, #3A8FFF 55%, #1560C4 80%, #0D45A0 100%);
  z-index: 9999;
}
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 40px; }
a { color: var(--blue); }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 200; height: 72px;
  background: rgba(255,255,255,0.88); backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border); display: flex; align-items: center;
}
.nav-inner { max-width: 1140px; margin: 0 auto; padding: 0 40px; width: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand-logo { display: block; width: 220px; max-width: 46vw; height: auto; }
.nav-icon { width: 40px; height: 40px; background: transparent; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-icon svg { width: 38px; height: 38px; }
.nav-name { font-weight: 700; font-size: 17px; color: var(--ink); letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-size: 13px; font-weight: 500; color: var(--gray-1); text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: var(--blue); }
.nav-links a.active { color: var(--blue); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 8px; background: white; align-items: center; justify-content: center; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .15s, opacity .15s; }
nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.btn-nav { background: var(--blue); color: white; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 13.5px; padding: 10px 22px; border-radius: 8px; text-decoration: none; box-shadow: 0 4px 14px rgba(21,96,196,0.4); transition: background .15s, transform .15s; }
.btn-nav:hover { background: var(--blue-dk); transform: translateY(-1px); }
@media (max-width: 880px) {
  .nav-inner { position: relative; }
  .nav-toggle { display: flex; }
  .btn-nav { display: none; }
  .nav-links { display: none; position: absolute; top: 58px; left: 40px; right: 40px; background: white; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 18px 50px rgba(8,14,30,.14); padding: 14px; flex-direction: column; align-items: stretch; gap: 0; }
  nav.open .nav-links { display: flex; }
  .nav-links a { display: block; padding: 12px 10px; font-size: 14px; }
}
@media (max-width: 640px) { .nav-inner { padding: 0 20px; } .nav-links { left: 20px; right: 20px; } }

/* ── BLOG INDEX ── */
.blog-hero { background: linear-gradient(160deg, #050A18 0%, #071020 55%, #0B1630 100%); padding: 88px 0 72px; position: relative; overflow: hidden; }
.blog-hero::before { content: ''; position: absolute; width: 900px; height: 600px; top: -200px; right: -150px; background: radial-gradient(ellipse at 65% 35%, rgba(21,96,196,0.28) 0%, transparent 62%); pointer-events: none; }
.blog-hero .wrap { position: relative; z-index: 1; }
.blog-eyebrow { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #6EA8FF; margin-bottom: 14px; }
.blog-hero h1 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 900; line-height: 1.05; letter-spacing: -0.035em; color: white; max-width: 760px; }
.blog-hero p { font-size: 17px; color: rgba(255,255,255,0.62); line-height: 1.7; max-width: 600px; margin-top: 18px; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 72px 0 96px; }
.post-card { display: flex; flex-direction: column; background: white; border: 1.5px solid var(--border); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; transition: box-shadow .2s, transform .2s, border-color .2s; }
.post-card:hover { box-shadow: 0 16px 48px rgba(8,14,30,.10); transform: translateY(-5px); border-color: var(--blue-mid); }
.post-card-top { height: 8px; background: linear-gradient(90deg, var(--blue), var(--blue-lt)); }
.post-card-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.post-tag { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.post-card h2 { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); line-height: 1.3; margin-bottom: 10px; }
.post-card p { font-size: 13px; color: var(--gray-2); line-height: 1.6; flex: 1; }
.post-meta { font-size: 12px; color: var(--gray-3); font-weight: 600; margin-top: 18px; display: flex; gap: 8px; align-items: center; }
.post-card .read-more { font-size: 13px; font-weight: 700; color: var(--blue); margin-top: 14px; }
.featured { grid-column: span 3; display: grid; grid-template-columns: 1fr 1fr; }
.featured .post-card-top { grid-column: span 2; }
@media (max-width: 980px) { .post-grid { grid-template-columns: 1fr 1fr; } .featured, .featured .post-card-top { grid-column: span 2; } .featured { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } .featured, .featured .post-card-top { grid-column: span 1; } .wrap { padding: 0 20px; } }

/* ── ARTICLE ── */
.article-head { background: linear-gradient(160deg, #050A18 0%, #071020 55%, #0B1630 100%); padding: 64px 0 56px; position: relative; overflow: hidden; }
.article-head::before { content: ''; position: absolute; width: 900px; height: 600px; top: -220px; right: -150px; background: radial-gradient(ellipse at 65% 35%, rgba(21,96,196,0.26) 0%, transparent 62%); pointer-events: none; }
.article-head .wrap { position: relative; z-index: 1; max-width: 820px; }
.breadcrumb { font-size: 12px; color: rgba(255,255,255,0.45); margin-bottom: 20px; }
.breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; }
.breadcrumb a:hover { color: white; }
.article-head .post-tag { color: #6EA8FF; }
.article-head h1 { font-size: clamp(30px, 4vw, 48px); font-weight: 900; line-height: 1.08; letter-spacing: -0.03em; color: white; }
.article-byline { display: flex; align-items: center; gap: 14px; margin-top: 24px; font-size: 13px; color: rgba(255,255,255,0.5); font-weight: 500; flex-wrap: wrap; }
.article-byline .dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.3); }

.article-body { max-width: 760px; margin: 0 auto; padding: 56px 40px 40px; }
.article-body > p { font-size: 17px; color: var(--gray-1); line-height: 1.8; margin-bottom: 22px; }
.article-body h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.025em; color: var(--ink); line-height: 1.2; margin: 48px 0 16px; }
.article-body h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); margin: 32px 0 12px; }
.article-body ul, .article-body ol { margin: 0 0 22px 0; padding-left: 22px; }
.article-body li { font-size: 17px; color: var(--gray-1); line-height: 1.7; margin-bottom: 10px; }
.article-body strong { color: var(--ink); font-weight: 700; }
.article-body a { color: var(--blue); font-weight: 600; text-decoration: underline; text-decoration-color: var(--blue-mid); text-underline-offset: 2px; }
.article-body a:hover { text-decoration-color: var(--blue); }
.article-body em { font-style: italic; }
.lead-para { font-size: 19px !important; color: var(--ink) !important; font-weight: 500; line-height: 1.7 !important; }

/* key takeaways / TL;DR box (AEO) */
.takeaways { background: var(--bg-soft); border: 1.5px solid var(--border); border-left: 4px solid var(--blue); border-radius: var(--r); padding: 24px 28px; margin: 0 0 36px; }
.takeaways-title { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.takeaways ul { margin: 0; padding-left: 20px; }
.takeaways li { font-size: 15px; color: var(--gray-1); line-height: 1.6; margin-bottom: 8px; }

/* stat callout */
.stat-callout { background: #0B1222; border-radius: var(--r); padding: 28px 32px; margin: 32px 0; }
.stat-callout .num { font-size: 44px; font-weight: 900; color: white; letter-spacing: -0.04em; line-height: 1; }
.stat-callout .num span { color: var(--blue-lt); }
.stat-callout .desc { font-size: 14px; color: #6880A8; line-height: 1.6; margin-top: 10px; }
.stat-callout .src { font-size: 11px; color: #3A5070; margin-top: 10px; letter-spacing: 0.04em; }

/* pull quote */
blockquote { border-left: 4px solid var(--blue); padding: 8px 0 8px 24px; margin: 32px 0; font-size: 21px; font-weight: 600; color: var(--ink); line-height: 1.45; letter-spacing: -0.01em; }

/* FAQ (AEO/structured) */
.faq-section { margin: 48px 0 8px; }
.faq-section > h2 { margin-bottom: 20px; }
.faq-item { border: 1.5px solid var(--border); border-radius: var(--r); padding: 20px 24px; margin-bottom: 12px; background: white; }
.faq-item h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 0 0 10px; }
.faq-item p { font-size: 15px; color: var(--gray-1); line-height: 1.7; margin: 0; }

/* tables (resource/doc pages) */
.article-body table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 14px; }
.article-body th, .article-body td { text-align: left; padding: 11px 14px; border: 1px solid var(--border); vertical-align: top; line-height: 1.5; }
.article-body th { background: var(--bg-soft); font-weight: 700; color: var(--ink); font-size: 12px; letter-spacing: 0.02em; }
.article-body td { color: var(--gray-1); }
.article-body tr:nth-child(even) td { background: #FBFCFE; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* code blocks */
.article-body pre { background: #0B1222; color: #C8D6F0; border-radius: var(--r-sm); padding: 18px 20px; margin: 0 0 22px; overflow-x: auto; font-size: 13px; line-height: 1.6; border: 1px solid #16223C; }
.article-body pre code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: none; padding: 0; color: inherit; font-size: 13px; }
.article-body code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; font-size: 0.88em; color: var(--blue-dk); }
.code-label { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-3); margin-bottom: 6px; }

/* doc meta badges (version / effective date) */
.doc-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.doc-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.16); border-radius: 100px; padding: 5px 14px; }
.doc-badge .tp-dot { width: 6px; height: 6px; border-radius: 50%; background: #2FBF8F; flex-shrink: 0; }

/* bucket card */
.bucket { border: 1.5px solid var(--border); border-left: 4px solid var(--blue); border-radius: var(--r); padding: 22px 26px; margin: 0 0 18px; }
.bucket h3 { margin: 0 0 6px; font-size: 19px; }
.bucket .use { font-size: 14px; color: var(--gray-1); margin: 0 0 14px; }
.bucket .use strong { color: var(--ink); }

/* compliance highlight grid */
.comp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 28px; }
.comp-item { background: var(--bg-soft); border: 1.5px solid var(--border); border-radius: var(--r); padding: 18px 20px; }
.comp-item .ttl { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.comp-item .txt { font-size: 13px; color: var(--gray-2); line-height: 1.6; }
.legal-note { font-size: 13px; color: var(--gray-2); font-style: italic; line-height: 1.7; border-top: 1px solid var(--border); padding-top: 20px; margin-top: 32px; }
@media (max-width: 640px) { .comp-grid { grid-template-columns: 1fr; } }

/* sources */
.sources { margin: 48px 0 0; padding-top: 28px; border-top: 1px solid var(--border); }
.sources h2 { font-size: 16px !important; margin: 0 0 14px !important; }
.sources ol { padding-left: 20px; }
.sources li { font-size: 13px; color: var(--gray-2); line-height: 1.6; margin-bottom: 8px; }
.sources a { font-weight: 500; word-break: break-word; }

/* in-article CTA */
.article-cta { background: linear-gradient(160deg, #050A18 0%, #071020 55%, #0B1630 100%); border-radius: var(--r-lg); padding: 44px 48px; margin: 48px 0; text-align: center; position: relative; overflow: hidden; }
.article-cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 30%, rgba(21,96,196,0.3) 0%, transparent 65%); pointer-events: none; }
.article-cta > * { position: relative; z-index: 1; }
.article-cta h3 { font-size: 26px; font-weight: 800; color: white; letter-spacing: -0.02em; margin-bottom: 12px; line-height: 1.2; }
.article-cta p { font-size: 15px; color: rgba(255,255,255,0.6); max-width: 460px; margin: 0 auto 24px; line-height: 1.6; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: white; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 15px; padding: 15px 32px; border-radius: var(--r-sm); text-decoration: none; border: none; cursor: pointer; box-shadow: 0 6px 28px rgba(21,96,196,0.5); transition: background .15s, transform .15s; }
.btn-primary:hover { background: var(--blue-lt); transform: translateY(-2px); }

/* related posts */
.related { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 72px 0; }
.related h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 28px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 768px) { .related-grid { grid-template-columns: 1fr; } .article-body { padding: 44px 20px 32px; } .article-cta { padding: 36px 24px; } }

/* ── FOOTER ── */
footer { background: #060B18; padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 44px; }
.footer-brand-row { display: flex; align-items: center; gap: 10px; }
.footer-logo { display: block; width: 190px; max-width: 100%; height: auto; }
.footer-brand-row .nav-icon { width: 34px; height: 34px; }
.footer-brand-row span { font-weight: 700; font-size: 16px; color: white; letter-spacing: -.01em; }
.footer-brand p { font-size: 13px; color: #4A5E80; line-height: 1.75; margin-top: 14px; max-width: 300px; }
.footer-compliance { margin-top: 12px; font-size: 11px; color: #3A5078; font-weight: 700; letter-spacing: .04em; }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.footer-social a { color: #4A5E80; font-size: 12px; font-weight: 700; text-decoration: none; transition: color .15s; }
.footer-social a:hover { color: #6EA8FF; }
.powered-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 12px; color: #2E4060; text-decoration: none; transition: color .15s; }
.powered-link:hover { color: #6EA8FF; }
.powered-link strong { color: #4A6890; font-weight: 700; }
.f-col h5 { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #3A4E6A; margin-bottom: 16px; }
.f-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.f-col a { font-size: 13px; color: #3A4E6A; text-decoration: none; transition: color .15s; }
.f-col a:hover { color: white; }
.footer-bar { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; border-top: 1px solid #0F1A2E; flex-wrap: wrap; gap: 10px; }
.footer-bar p { font-size: 12px; color: #1E2E46; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
