:root {
  --paper: #fff;
  --ink: #0f172a;
  --wine: #7c3aed;
  --muted: #64748b;
  --line: #e2e8f0;
  --cream: #f5f3ff;
  --serif: 'Prata', Georgia, serif;
  --sans: 'Work Sans', system-ui, sans-serif;
  --brand-gradient: linear-gradient(135deg, #e8490f, #7c3aed);
  --dark-gradient: linear-gradient(150deg, #1b1033 0%, #0f1e3a 50%, #0a2a1a 100%);
}
html { scroll-padding-top: 136px; }
body { background: #fff; padding-top: 112px; }
a { color: #6d28d9; }
:focus-visible { outline-color: #7c3aed !important; }
.site-header { max-width: none; padding: 12px max(24px, calc((100vw - 1240px)/2)); height: 112px; background: var(--dark-gradient); border: 0; position: fixed; top: 0; left: 0; right: 0; z-index: 50; }
.brand img { width: 150px; height: 88px; object-fit: contain; display: block; }
.site-header nav { gap: 32px; }
.site-header nav a { color: #fff; font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; padding: 8px 0; }
.site-header nav a:hover, .site-header nav a[aria-current] { border-bottom: 1px solid #ff8a65; }
.mobile-navigation { display: none; color: #fff; }
.index-hero { max-width: none; margin: 0 0 64px; padding: 80px max(24px, calc((100vw - 1200px)/2)) 88px; gap: 70px; background: radial-gradient(ellipse at 25% 40%, #7c3aed26, transparent 55%), var(--dark-gradient); color: #fff; position: relative; }
.index-hero::after, .site-footer::before { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #e8490f, #7c3aed, #1b6ca8, #1a8a5a); }
.index-hero h1 { color: #fff; font-size: clamp(2.8rem, 5.5vw, 5rem); line-height: 1.2; }
.index-hero .eyebrow { color: #ff8a65; letter-spacing: .25em; }
.hero-deck { color: #ffffffb3; font-weight: 300; line-height: 1.9; }
.text-link { color: #fff; font-size: .8rem; text-underline-offset: 7px; }
.hero-panel { background: #ffffff08; border: 1px solid #ffffff26; border-radius: 20px; padding: 32px; box-shadow: 0 20px 60px #00000015; }
.hero-panel .panel-number { color: #c4b5fd; }
.hero-panel ul { border-color: #ffffff26; color: #ffffffb3; }
.hero-panel > p:not(.eyebrow):not(.panel-number) { font-size: 1.25rem; line-height: 1.6; }
.section-top { border-top: 0; }
.guide-section { padding-top: 28px; }
.section-top .blog-heading { margin: 0; color: var(--ink); font-size: clamp(2rem, 4vw, 3rem); }
.section-top h2, .related h2 { color: var(--ink); }
.search-controls input { border-radius: 14px; padding: 18px 20px; border-color: #e2e8f0; background: #f8fafc; }
.filters { gap: 10px; margin: 22px 0; }
.filters button { border-color: #e2e8f0; font-weight: 500; padding: 10px 18px; }
.filters button[aria-pressed=true], button, .button { background: var(--brand-gradient); border: 0; color: #fff; }
.filters button:not([aria-pressed=true]) { background: #fff; color: #475569; border: 1px solid #e2e8f0; }
.cards { gap: 24px; }
.card { background: #fff; border: 1px solid #e2e8f0; border-top: 3px solid #7c3aed; border-radius: 16px; padding: 30px; box-shadow: 0 4px 24px #0f172a05; transition: transform .2s, box-shadow .2s; }
.guide-item:nth-child(4n+1) .card { border-top-color: #e8490f; }
.guide-item:nth-child(4n+3) .card { border-top-color: #1b6ca8; }
.guide-item:nth-child(4n+4) .card { border-top-color: #1a8a5a; }
.card:hover { border-color: #c4b5fd; box-shadow: 0 12px 36px #7c3aed14; }
.card h3 { color: #0f172a; font-size: 1.35rem; line-height: 1.55; }
.card .eyebrow { color: #6d28d9; line-height: 1.8; }
.card-arrow { color: #6d28d9; font-weight: 600; }
.article-hero { max-width: none; margin: 0 0 56px; padding: 40px max(24px, calc((100vw - 1000px)/2)) 52px; background: radial-gradient(ellipse at 10% 10%, #7c3aed08, transparent 65%), #f8fafc; border-bottom: 1px solid var(--line); }
.article-hero h1 { color: #0f172a; line-height: 1.4; font-size: clamp(2rem, 3.4vw, 3.25rem); }
.article-hero .eyebrow { color: #b5380a; }
.breadcrumbs, .breadcrumbs a { color: #64748b; }
.byline { border-color: #e2e8f0; padding: 18px 0; }
.prose { color: #334155; }
.prose > p:first-child { color: #334155; }
.prose h2, .prose h3 { color: #0f172a; line-height: 1.5; }
.toc { top: 136px; }
.toc nav { border-color: #c4b5fd; }
.toc a:hover { color: #7c3aed; }
.editorial-note { border-left-color: #7c3aed; background: #f5f3ff; color: #475569; border-radius: 0 12px 12px 0; }
.calculator { border-color: #ddd6fe; background: linear-gradient(135deg, #faf5ff, #f0f9ff); border-radius: 20px; }
.input-grid input { border-color: #cbd5e1; border-radius: 8px; background: #fff; }
.secondary { background: #fff; color: #6d28d9; border: 1px solid #c4b5fd; }
tbody tr:nth-child(even) { background: #f8fafc; }
.site-footer { max-width: none; margin: 0; padding: 64px max(24px, calc((100vw - 1200px)/2)) 24px; background: var(--dark-gradient); color: #ffffff99; position: relative; border: 0; }
.site-footer::before { top: 0; bottom: auto; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 60px; }
.footer-inner img { object-fit: contain; }
.site-footer p:first-child { color: #ffffff99; font-weight: 400; }
.site-footer h2 { font: 600 .75rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #ff8a65; margin-bottom: 24px; }
.site-footer a { color: #ffffffb3; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-inner nav, .footer-inner > div:last-child { display: flex; flex-direction: column; gap: 12px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 20px; border-top: 1px solid #ffffff1a; padding-top: 24px; margin-top: 40px; font-size: .7rem; }
.footer-bottom span { margin-right: auto; }
@media(max-width:1000px) {
  .site-header nav { gap: 20px; }
  .index-hero { gap: 35px; }
  .footer-inner { gap: 30px; }
}
@media(max-width:760px) {
  html { scroll-padding-top: 112px; }
  body { padding-top: 88px; }
  .site-header { height: 88px; min-height: 88px; padding: 8px 20px; }
  .brand img { width: 120px; height: 72px; }
  .site-header .desktop-navigation { display: none; }
  .mobile-navigation { display: block; }
  .mobile-navigation summary { cursor: pointer; padding: 10px 14px; border: 1px solid #ffffff40; border-radius: 8px; list-style: none; font-size: .8rem; }
  .mobile-navigation summary::-webkit-details-marker { display: none; }
  .mobile-navigation summary span { margin-left: 10px; }
  .mobile-navigation nav { position: absolute; top: 100%; left: 0; right: 0; background: #131c32; padding: 20px 28px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 12px 24px #0003; }
  .site-header nav a:last-child { display: block; }
  .index-hero { grid-template-columns: 1fr; padding: 48px 20px 56px; margin-bottom: 32px; }
  .index-hero h1 { font-size: clamp(2.5rem, 9vw, 3.8rem); }
  .hero-panel { padding: 24px; }
  .hero-panel ul { grid-template-columns: 1fr; }
  .article-hero { padding: 28px 20px 32px; }
  .article-hero h1 { font-size: 2rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .site-footer { padding-top: 44px; }
  .footer-bottom span { flex-basis: 100%; }
}
@media print {
  body { padding-top: 0; }
  .site-header, .site-footer { display: none; }
  .article-hero { background: #fff; padding: 0; border: 0; }
  .article-hero h1 { font-size: 26pt; }
}
