:root {
  --ink: #0f1b2d;
  --ink-2: #33415c;
  --muted: #5b6b82;
  --line: #e3e8ef;
  --soft: #f4f7fb;
  --navy: #0b2240;
  --navy-2: #12325c;
  --accent: #f26b1d;
  --accent-dark: #d95a10;
  --teal: #0f8b8d;
  --radius: 14px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: var(--font-sans); color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
a { color: var(--navy-2); }
a:hover { color: var(--accent-dark); }
.skip-link { position: absolute; left: 1rem; top: 1rem; z-index: 2000; background: #fff; padding: .5rem 1rem; }
.small-muted { color: var(--muted); font-size: .95rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--accent); }
.bg-soft { background: var(--soft); }
.link-accent { color: var(--accent-dark); font-weight: 600; text-decoration: none; }

/* Buttons */
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn-accent:hover, .btn-accent:focus { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

/* Header */
.site-header { background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line); }
.navbar-brand { font-weight: 800; color: var(--navy); display: flex; align-items: center; gap: .5rem; letter-spacing: -.01em; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.site-header .nav-link { color: var(--ink-2); font-weight: 500; }
.site-header .nav-link.active, .site-header .nav-link:hover { color: var(--accent-dark); }
.dropdown-menu { border-radius: 12px; border-color: var(--line); box-shadow: 0 12px 30px rgba(15,27,45,.08); }

/* Heroes */
.home-hero { background: radial-gradient(1200px 500px at 85% -10%, #1d4a85 0%, transparent 60%), var(--navy); color: #fff; padding: 5rem 0 4.5rem; }
.home-hero .lead { color: #c9d6ea; }
.hero-panel { background: #fff; border-radius: var(--radius); box-shadow: 0 25px 60px rgba(0,0,0,.35); overflow: hidden; color: var(--ink); }
.hero-panel-head { background: #eef2f8; padding: .6rem .9rem; display: flex; align-items: center; color: var(--muted); }
.hero-panel-head .dot { width: 10px; height: 10px; border-radius: 50%; background: #cfd8e4; margin-right: 5px; }
.hero-table { font-size: .9rem; }
.hero-table th { color: var(--muted); font-weight: 600; padding: .7rem .9rem; }
.hero-table td { padding: .65rem .9rem; }
.page-hero { background: var(--soft); border-bottom: 1px solid var(--line); padding: 3rem 0 2.5rem; }
.page-hero h1 { font-weight: 800; letter-spacing: -.02em; }
.page-hero .lead { color: var(--ink-2); }
.breadcrumb { font-size: .875rem; margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb-item.active { color: var(--ink-2); }

/* Cards */
.guide-card, .topic-tile, .why, .guide-index { position: relative; display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.guide-card:hover, .topic-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(15,27,45,.08); border-color: #cdd6e3; color: var(--ink); }
.guide-card h3 { font-weight: 700; line-height: 1.3; }
.badge-cat { display: inline-block; font-size: .75rem; font-weight: 600; color: var(--teal); background: #e7f5f5; border-radius: 999px; padding: .25rem .65rem; }
.card-meta { font-size: .82rem; color: var(--muted); font-weight: 500; }
.topic-tile i { font-size: 1.8rem; color: var(--accent); }
.why { border: 0; background: transparent; padding: .5rem; }
.why i { font-size: 2rem; color: var(--teal); }
.guide-index h2 a { text-decoration: none; color: var(--navy); }
.guide-index ul { padding-left: 1.1rem; margin: 0; }
.guide-index li { margin: .35rem 0; }
.guide-index li.hidden { display: none; }

/* Article */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1100; }
.reading-progress span { display: block; height: 100%; width: 0; background: var(--accent); }
.article-hero { padding: 2.5rem 0 1.5rem; border-bottom: 1px solid var(--line); margin-bottom: 2.5rem; background: linear-gradient(180deg, var(--soft), #fff); }
.article-title { font-weight: 800; letter-spacing: -.02em; font-size: clamp(1.8rem, 3.6vw, 2.75rem); line-height: 1.15; max-width: 900px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 1.25rem; color: var(--muted); font-size: .9rem; margin-top: 1rem; }
.article-body { font-family: var(--font-serif); font-size: 1.14rem; line-height: 1.75; color: #1e2a3b; }
.article-body .lead { font-size: 1.3rem; line-height: 1.6; color: var(--ink); }
.article-body h2 { font-family: var(--font-sans); font-weight: 750; font-size: 1.65rem; letter-spacing: -.015em; margin: 2.6rem 0 1rem; color: var(--ink); }
.article-body h3 { font-family: var(--font-sans); font-weight: 700; font-size: 1.22rem; margin: 1.9rem 0 .7rem; color: var(--ink); }
.article-body p { margin-bottom: 1.25rem; }
.article-body ul, .article-body ol { margin-bottom: 1.4rem; padding-left: 1.4rem; }
.article-body li { margin-bottom: .45rem; }
.article-body blockquote { border-left: 4px solid var(--accent); padding: .5rem 1.25rem; margin: 1.75rem 0; color: var(--ink-2); font-style: italic; background: var(--soft); border-radius: 0 10px 10px 0; }
.article-body table { width: 100%; font-family: var(--font-sans); font-size: .95rem; margin: 1.5rem 0 2rem; border-collapse: collapse; }
.article-body th { background: var(--navy); color: #fff; font-weight: 600; text-align: left; }
.article-body th, .article-body td { padding: .7rem .85rem; border: 1px solid var(--line); vertical-align: top; }
.article-body tbody tr:nth-child(even) { background: var(--soft); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.article-body .callout { font-family: var(--font-sans); font-size: 1rem; background: #fff7f1; border: 1px solid #ffd9c2; border-radius: 12px; padding: 1.1rem 1.25rem; margin: 1.75rem 0; }
.article-body .callout strong:first-child { color: var(--accent-dark); }
.article-body .example { font-family: var(--font-sans); font-size: 1rem; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.25rem; margin: 1.75rem 0; }
.article-body .faq { margin-top: 3rem; border-top: 1px solid var(--line); padding-top: .5rem; }
.article-body .faq-item h3 { font-size: 1.1rem; }
.article-body code { font-size: .9em; background: var(--soft); padding: .1em .35em; border-radius: 5px; color: var(--navy-2); }
.article-body pre { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.2rem; font-size: .92rem; white-space: pre-wrap; }

.sidebar-sticky { position: sticky; top: 96px; }
.toc-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.25rem .75rem; }
.toc-title { color: var(--muted); letter-spacing: .08em; font-weight: 700; }
.toc-list { padding-left: 1.1rem; font-size: .92rem; }
.toc-list li { margin-bottom: .45rem; }
.toc-list a { color: var(--ink-2); text-decoration: none; }
.toc-list a:hover, .toc-list a.active { color: var(--accent-dark); font-weight: 600; }
.side-cta { background: var(--navy); color: #dce6f4; border-radius: var(--radius); padding: 1.5rem; }
.side-cta h2 { color: #fff; }
.side-cta a:not(.btn) { color: #fff; }

.inline-cta { font-family: var(--font-sans); font-size: 1rem; background: #fff7f1; border: 1px solid #ffd9c2; border-radius: var(--radius); padding: 1.25rem 1.4rem; }
.cta-icon { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 12px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.lead-box { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; font-family: var(--font-sans); }
.author-box { display: flex; gap: 1rem; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.author-avatar { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; }
.disclaimer { font-size: .85rem; color: var(--muted); }
.form-status.ok { color: #157347; }
.form-status.err { color: #b02a37; }

/* Footer */
.site-footer { background: var(--navy); color: #fff; }
.footer-muted { color: #9fb2cc; }
.footer-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #9fb2cc; font-weight: 700; margin-bottom: 1rem; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: #e3ebf6; text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-rule { border-color: rgba(255,255,255,.15); margin: 2.5rem 0 1.5rem; }
.back-to-top { position: fixed; right: 18px; bottom: 18px; border-radius: 50%; width: 44px; height: 44px; display: none; z-index: 1000; }
.back-to-top.show { display: inline-flex; align-items: center; justify-content: center; }

@media (max-width: 991.98px) {
  .sidebar-sticky { position: static; }
  .toc-card { display: none; }
  .home-hero { padding: 3.5rem 0 3rem; }
}
@media (max-width: 575.98px) {
  .article-body { font-size: 1.06rem; }
  .article-body h2 { font-size: 1.4rem; }
  .lead-box { padding: 1.4rem; }
  .article-meta { gap: .75rem; }
}

/* Company profiles */
.company-mark { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 16px; background: var(--navy); color: #fff; font-weight: 800; font-size: 1.8rem; display: flex; align-items: center; justify-content: center; }
.fact-tile { border: 1px solid var(--line); border-radius: 12px; padding: 1rem; background: #fff; }
.fact-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.fact-value { font-size: 1.05rem; font-weight: 700; margin-top: .25rem; color: var(--ink); line-height: 1.3; }
.fact-sub { font-size: .8rem; color: var(--muted); margin-top: .35rem; }
.investor-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; font-family: var(--font-sans); }
.investor-chip { background: #e7f5f5; color: var(--teal); border-radius: 999px; padding: .3rem .8rem; font-size: .88rem; font-weight: 600; }
.sources-list { font-family: var(--font-sans); font-size: .92rem; }
.key-facts li { margin-bottom: .4rem; }
.company-table td { vertical-align: middle; }
.company-row.hidden { display: none; }
