/* === RESET & BASE === */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;line-height:1.6;color:#1a1a2e;background:#fff}
img{max-width:100%;height:auto;display:block}
a{color:#2563eb;text-decoration:none}
a:hover{text-decoration:underline}
ul,ol{list-style:none}
table{border-collapse:collapse;width:100%}

/* === LAYOUT === */
.container{max-width:960px;margin:0 auto;padding:0 1.25rem}
.page-header{padding:2.5rem 0 1.5rem;border-bottom:1px solid #e5e7eb}
.page-header h1{font-size:1.75rem;font-weight:700;line-height:1.25;color:#0f172a}
.page-header .subtitle{font-size:1.05rem;color:#475569;margin-top:.35rem}
.content-section{padding:2rem 0}
.content-section+.content-section{border-top:1px solid #f1f5f9}

/* === TYPOGRAPHY === */
h1{font-size:1.75rem;font-weight:700;line-height:1.25;color:#0f172a}
h2{font-size:1.35rem;font-weight:700;line-height:1.3;color:#0f172a;margin:1.75rem 0 .75rem}
h3{font-size:1.1rem;font-weight:600;line-height:1.35;color:#1e293b;margin:1.25rem 0 .5rem}
p{margin:0 0 1rem}
.content-section p,.content-section li{font-size:1rem;color:#334155}
.content-section ul,.content-section ol{padding-left:1.25rem;margin-bottom:1rem}
.content-section ul{list-style:disc}
.content-section ol{list-style:decimal}
.content-section li{margin-bottom:.35rem}
.lead{font-size:1.1rem;color:#334155;margin-bottom:1.25rem}

/* === HEADER === */
.site-header{background:#0f172a;color:#fff;padding:.75rem 0;position:sticky;top:0;z-index:100}
.site-header .container{display:flex;align-items:center;justify-content:space-between}
.site-logo{display:flex;align-items:center;gap:.5rem;color:#fff;font-weight:700;font-size:1.05rem;text-decoration:none}
.site-logo img{width:20px;height:40px}
.site-nav ul{display:flex;gap:0;list-style:none}
.site-nav a{display:block;padding:.5rem .75rem;color:#cbd5e1;font-size:.875rem;text-decoration:none;border-radius:4px;transition:color .15s}
.site-nav a:hover,.site-nav a[aria-current="page"]{color:#fff;text-decoration:none}
.menu-toggle{display:none;background:none;border:none;cursor:pointer;padding:.5rem}
.menu-toggle span{display:block;width:22px;height:2px;background:#fff;margin:5px 0;transition:transform .2s}

/* === FOOTER === */
.site-footer{background:#0f172a;color:#94a3b8;padding:2.5rem 0 1.5rem;margin-top:3rem}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:2rem}
.footer-brand{color:#fff;font-weight:700;font-size:1.05rem;margin-bottom:.5rem}
.footer-heading{color:#e2e8f0;font-weight:600;font-size:.9rem;margin-bottom:.5rem}
.footer-nav ul,.footer-legal ul{list-style:none}
.footer-nav a,.footer-legal a{color:#94a3b8;font-size:.875rem;text-decoration:none;line-height:1.8}
.footer-nav a:hover,.footer-legal a:hover{color:#fff}
.footer-bottom{border-top:1px solid #1e293b;margin-top:1.5rem;padding-top:1rem;font-size:.8rem;text-align:center}
.footer-sources{font-size:.75rem;color:#64748b;margin-bottom:.25rem}
.footer-sources a{color:#94a3b8}
.site-footer p{font-size:.875rem;margin-bottom:.5rem}

/* === BREADCRUMB === */
.breadcrumb{padding:.75rem 0;font-size:.85rem}
.breadcrumb ol{display:flex;flex-wrap:wrap;list-style:none;gap:.25rem}
.breadcrumb li::after{content:"›";margin-left:.35rem;color:#94a3b8}
.breadcrumb li:last-child::after{content:""}
.breadcrumb a{color:#2563eb}
.breadcrumb li[aria-current="page"]{color:#64748b}

/* === TABLES === */
.table-wrap{overflow-x:auto;margin:1.25rem 0}
table.dst-table{width:100%;border:1px solid #e2e8f0;font-size:.9rem}
table.dst-table th{background:#f8fafc;font-weight:600;text-align:left;padding:.6rem .75rem;border-bottom:2px solid #e2e8f0;color:#0f172a;white-space:nowrap}
table.dst-table td{padding:.5rem .75rem;border-bottom:1px solid #f1f5f9;color:#334155;vertical-align:top}
table.dst-table tr:hover td{background:#f8fafc}
table.dst-table .no-dst{color:#94a3b8;font-style:italic}

/* === FACT BOX === */
.fact-box{background:#f0f9ff;border:1px solid #bae6fd;border-radius:6px;padding:1.25rem;margin:1.5rem 0}
.fact-box p{margin-bottom:.5rem;font-size:.95rem}
.fact-box p:last-child{margin-bottom:0}
.fact-box strong{color:#0369a1}

/* === KEY DATES BOX === */
.key-dates{background:#fefce8;border:1px solid #fde68a;border-radius:6px;padding:1.25rem;margin:1.5rem 0}
.key-dates h3{margin-top:0;color:#92400e;font-size:1rem}
.key-dates ul{list-style:none;padding:0}
.key-dates li{padding:.25rem 0;border-bottom:1px solid #fef3c7;font-size:.95rem}
.key-dates li:last-child{border-bottom:0}

/* === INTERNAL LINKS GRID === */
.link-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1rem;margin:1.5rem 0}
.link-card{display:block;padding:1rem 1.25rem;background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;text-decoration:none;transition:border-color .15s,box-shadow .15s}
.link-card:hover{border-color:#93c5fd;box-shadow:0 1px 4px rgba(37,99,235,.08);text-decoration:none}
.link-card .link-title{font-weight:600;color:#0f172a;font-size:.95rem}
.link-card .link-desc{font-size:.85rem;color:#64748b;margin-top:.2rem}

/* === FAQ === */
.faq-list{margin:1.5rem 0}
.faq-item{border-bottom:1px solid #f1f5f9;padding:1rem 0}
.faq-item h3{font-size:1rem;margin:0 0 .4rem;color:#0f172a}
.faq-item p{margin:0;font-size:.95rem;color:#475569}

/* === TOC === */
.toc{background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;padding:1rem 1.25rem;margin:1.5rem 0}
.toc p{font-weight:600;margin-bottom:.5rem;font-size:.9rem;color:#0f172a}
.toc ol{padding-left:1.25rem;list-style:decimal;margin:0}
.toc li{font-size:.9rem;line-height:1.6}
.toc a{color:#2563eb;text-decoration:none}
.toc a:hover{text-decoration:underline}

/* === LAST REVIEWED === */
.last-reviewed{font-size:.8rem;color:#94a3b8;margin-top:2rem;padding-top:1rem;border-top:1px solid #f1f5f9}
.last-reviewed--top{margin-top:0;margin-bottom:.5rem;padding-top:0;border-top:none;border-bottom:none;font-size:.78rem;color:#64748b}

/* === HOME HERO === */
.hero{background:#0f172a;color:#fff;padding:3rem 0 2.5rem;text-align:center}
.hero h1{font-size:2rem;color:#fff;margin-bottom:.75rem}
.hero p{color:#94a3b8;font-size:1.1rem;max-width:600px;margin:0 auto 1.5rem}
.hero-cta{display:inline-block;background:#2563eb;color:#fff;padding:.65rem 1.5rem;border-radius:5px;font-weight:600;font-size:.95rem;text-decoration:none;transition:background .15s}
.hero-cta:hover{background:#1d4ed8;text-decoration:none;color:#fff}

/* === HOME FEATURES === */
.features{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1.5rem;margin:2rem 0}
.feature{text-align:center;padding:1.5rem 1rem}
.feature h3{font-size:1rem;margin-bottom:.35rem}
.feature p{font-size:.9rem;color:#64748b}

/* === MOBILE === */
@media(max-width:768px){
  .site-nav{display:none;position:absolute;top:100%;left:0;right:0;background:#0f172a;padding:1rem;border-top:1px solid #1e293b}
  .site-nav.open{display:block}
  .site-nav ul{flex-direction:column}
  .site-nav a{padding:.6rem 0;font-size:1rem}
  .menu-toggle{display:block}
  .footer-grid{grid-template-columns:1fr}
  .hero h1{font-size:1.5rem}
  h1{font-size:1.4rem}
  h2{font-size:1.2rem}
  .container{padding:0 1rem}
  table.dst-table{font-size:.8rem}
  table.dst-table th,table.dst-table td{padding:.4rem .5rem}
}

@media(max-width:480px){
  .link-grid{grid-template-columns:1fr}
  .features{grid-template-columns:1fr}
}
