/* QuickCalculator — Shared Stylesheet */
/* ============================================================
   CSS CUSTOM PROPERTIES (light mode defaults)
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-elev: #ffffff;
  --bg-input: #ffffff;
  --text: #111827;
  --text-mute: #6b7280;
  --border: #e5e7eb;
  --border-hover: #d1d5db;
  --primary: #1a56db;
  --primary-hover: #1e40af;
  --primary-soft: #eff6ff;
  --primary-soft-border: #dbeafe;
  --primary-focus-ring: rgba(26,86,219,0.10);
  --secondary: #0e9f6e;
  --green: #0e9f6e;
  --orange: #ff5a1f;
  --neg: #dc2626;
  --nav-bg: #0f172a;
  --hero-glow: rgba(26,86,219,0.06);
  --result-bg: #eff6ff;
  --result-border: #dbeafe;
  --hover-row: #f9fafb;
  --icon-tile-bg: #f9fafb;
  --shadow-card: 0 1px 2px rgba(17,24,39,0.04),0 2px 6px rgba(17,24,39,0.06);
  --shadow-card-hover: 0 4px 8px rgba(17,24,39,0.08),0 12px 24px rgba(17,24,39,0.10);
  --muted: #6b7280;
  --label: #374151;
  --bracket-pct: #1e40af;
  --result-row-border: #dbeafe;
  --result-val: #1e293b;
  --error-bg: #fef2f2;
  --error-border: #fecaca;
  --success: #065f46;
  --success-bg: #ecfdf5;
  --explanation-bg: #f8fafc;
  --explanation-text: #374151;
  --explanation-h4: #1e293b;
  --table-head-bg: #dbeafe;
  --table-head-text: #1e40af;
  --table-td-border: #e0f2fe;
  --table-even-bg: #f0f9ff;
  --bracket-border: #e0f2fe;
  --tag-bg: #dbeafe;
  --tag-text: #1e40af;
  --inflation-note-bg: #ffffff;
  --inflation-note-text: #374151;
  --share-btn-bg: #f1f5f9;
  --share-btn-color: #374151;
  --share-btn-border: #e2e8f0;
  --article-bg: #ffffff;
  --article-border: #e5e7eb;
  --breadcrumb-color: #6b7280;
  --faq-border: #e5e7eb;
  --faq-bg: #f9fafb;
  --tag2-bg: #f0fdf4;
  --tag2-text: #166534;
}

[data-theme="dark"] {
  --bg: #0f172a;
  --bg-elev: #1e293b;
  --bg-input: #0f172a;
  --text: #f1f5f9;
  --text-mute: #94a3b8;
  --border: #334155;
  --border-hover: #475569;
  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --primary-soft: rgba(59,130,246,0.12);
  --primary-soft-border: rgba(59,130,246,0.25);
  --primary-focus-ring: rgba(59,130,246,0.18);
  --secondary: #10b981;
  --green: #10b981;
  --neg: #f87171;
  --nav-bg: #020617;
  --hero-glow: rgba(59,130,246,0.15);
  --result-bg: rgba(59,130,246,0.12);
  --result-border: rgba(59,130,246,0.25);
  --hover-row: rgba(255,255,255,0.04);
  --icon-tile-bg: rgba(255,255,255,0.04);
  --shadow-card: 0 1px 2px rgba(0,0,0,0.4),0 4px 12px rgba(0,0,0,0.3);
  --shadow-card-hover: 0 4px 8px rgba(0,0,0,0.5),0 12px 28px rgba(0,0,0,0.4);
  --muted: #94a3b8;
  --label: #cbd5e1;
  --bracket-pct: #93c5fd;
  --result-row-border: #2563eb;
  --result-val: #f1f5f9;
  --error-bg: #200a0a;
  --error-border: #991b1b;
  --success-bg: #052e16;
  --explanation-bg: #162032;
  --explanation-text: #cbd5e1;
  --explanation-h4: #f1f5f9;
  --table-head-bg: #1e3a5f;
  --table-head-text: #93c5fd;
  --table-td-border: #2563eb;
  --table-even-bg: #162032;
  --bracket-border: #334155;
  --tag-bg: #1e3a5f;
  --tag-text: #93c5fd;
  --inflation-note-bg: #162032;
  --inflation-note-text: #cbd5e1;
  --share-btn-bg: #263347;
  --share-btn-color: #cbd5e1;
  --share-btn-border: #334155;
  --article-bg: #1e293b;
  --article-border: #334155;
  --breadcrumb-color: #94a3b8;
  --faq-border: #334155;
  --faq-bg: #162032;
  --tag2-bg: #052e16;
  --tag2-text: #4ade80;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  transition: background .3s ease, color .3s ease;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #000; color: #fff; padding: 0.5rem 1rem; z-index: 9999; font-size: 14px; border-radius: 0 0 4px 0; }
.skip-link:focus { left: 0; }
.ml-app { display: flex; flex-direction: column; min-height: 100vh; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.ml-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  transition: background .3s ease;
}
.ml-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
  padding: 0 32px; max-width: 1280px; margin: 0 auto; min-height: 60px;
}
.ml-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: #f1f5f9;
}
.ml-brand:hover { text-decoration: none; }
.ml-brand-name { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.ml-brand-name .accent { color: #60a5fa; font-weight: 700; }
.ml-nav-links { display: flex; flex-wrap: wrap; gap: 2px; }
.ml-nav-links a {
  color: #cbd5e1; font-size: 13px;
  padding: 8px 10px; border-radius: 6px;
  transition: background .2s, color .2s; white-space: nowrap;
}
.ml-nav-links a:hover { background: #334155; color: #fff; text-decoration: none; }
.ml-nav-links a.active { background: #1e40af; color: #fff; }
.ml-theme-toggle {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.10); color: #f1f5f9;
  border: 1px solid rgba(255,255,255,0.15); border-radius: 999px;
  padding: 8px 14px; font-size: 13px; font-weight: 500;
  cursor: pointer; font-family: inherit;
  transition: background .2s ease;
}
.ml-theme-toggle:hover { background: rgba(255,255,255,0.16); }

/* ============================================================
   HOMEPAGE HERO
   ============================================================ */
.ml-hero {
  padding: 72px 32px 56px; text-align: center;
  background: radial-gradient(ellipse 1000px 400px at 50% -10%, var(--hero-glow), transparent 70%);
}
.ml-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary);
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  margin-bottom: 20px; border: 1px solid var(--primary-soft-border);
}
.ml-eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.ml-h1 {
  font-size: 56px; line-height: 1.06; letter-spacing: -0.03em;
  font-weight: 700; color: var(--text); max-width: 820px; margin: 0 auto;
}
.ml-h1-grad {
  background: linear-gradient(90deg, var(--primary) 0%, var(--green) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.ml-sub { margin: 20px auto 0; font-size: 18px; color: var(--muted); max-width: 580px; line-height: 1.55; }
.ml-badges { margin-top: 32px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ml-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--bg-elev); border: 1px solid var(--border);
  font-size: 14px; font-weight: 500; color: var(--text); box-shadow: var(--shadow-card);
}

/* ============================================================
   CALCULATOR PAGE HERO
   ============================================================ */
.calc-hero {
  padding: 36px 32px 28px;
  background: radial-gradient(ellipse 800px 300px at 50% -20%, var(--hero-glow), transparent 70%);
  border-bottom: 1px solid var(--border);
}
.calc-hero-inner { max-width: 1280px; margin: 0 auto; }
.calc-hero h1 {
  font-size: 34px; font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.15; color: var(--text); margin-bottom: 10px;
}
.calc-hero p { font-size: 16px; color: var(--muted); max-width: 640px; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  padding: 12px 32px; background: var(--bg-elev);
  border-bottom: 1px solid var(--border); font-size: 13px;
}
.breadcrumb-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: var(--breadcrumb-color); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); text-decoration: underline; }
.breadcrumb-sep { color: var(--border-hover); font-size: 12px; }
.breadcrumb-current { color: var(--text); font-weight: 500; }

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.ml-main {
  max-width: 1280px; margin: 0 auto;
  width: 100%; padding: 32px 32px 80px;
  display: flex; gap: 32px; flex: 1;
}
.ml-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 24px; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.ml-sidebar {
  position: sticky; top: 76px; align-self: flex-start;
  width: 240px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px;
}
.ml-sidebar-inner {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px; box-shadow: var(--shadow-card);
  transition: background .3s ease, border-color .3s ease;
}
.ml-side-label {
  font-size: 11px; font-weight: 600; color: var(--muted);
  letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px 10px;
}
.ml-side-nav { display: flex; flex-direction: column; gap: 2px; }
.ml-side-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
  font-size: 13.5px; font-weight: 500; color: var(--text);
  text-decoration: none; transition: background .15s ease, color .15s ease;
}
.ml-side-row:hover { background: var(--hover-row); text-decoration: none; }
.ml-side-row.active { background: var(--primary-soft); color: var(--primary); }
.ml-side-icon { font-size: 14px; width: 18px; text-align: center; }
.ml-side-foot {
  margin-top: 14px; padding: 12px 10px 4px;
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--muted); line-height: 1.5;
}
.ml-side-foot-title { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; color: var(--text); font-weight: 600; font-size: 12.5px; }

/* ============================================================
   CARDS
   ============================================================ */
.ml-card {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px;
  box-shadow: var(--shadow-card);
  transition: background .3s ease, border-color .3s ease;
}
.ml-section-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.ml-section-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--primary-soft); display: flex; align-items: center;
  justify-content: center; font-size: 22px; flex-shrink: 0;
}
.ml-section-title { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.ml-section-desc { margin: 5px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* ============================================================
   HOMEPAGE CALCULATOR GRID
   ============================================================ */
.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.calc-card {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px;
  box-shadow: var(--shadow-card);
  transition: box-shadow .2s ease, border-color .2s ease, transform .15s ease;
  text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; gap: 10px;
}
.calc-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: var(--primary);
  transform: translateY(-2px);
  text-decoration: none;
}
.calc-card-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--primary-soft); display: flex;
  align-items: center; justify-content: center; font-size: 24px;
}
.calc-card-title { font-size: 16px; font-weight: 700; color: var(--text); }
.calc-card-desc { font-size: 13px; color: var(--muted); line-height: 1.5; flex: 1; }
.calc-card-arrow { font-size: 13px; color: var(--primary); font-weight: 600; margin-top: 4px; }

/* ============================================================
   FORMS
   ============================================================ */
.form-row { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 16px; }
@media(min-width:600px) {
  .form-row.cols2 { grid-template-columns: 1fr 1fr; }
  .form-row.cols3 { grid-template-columns: 1fr 1fr 1fr; }
}
label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--muted); margin-bottom: 6px;
  letter-spacing: 0.02em; text-transform: uppercase;
}
input, select {
  width: 100%; padding: 11px 14px; font-size: 15px;
  font-family: inherit; background: var(--bg-input); color: var(--text);
  border: 1.5px solid var(--border); border-radius: 10px;
  outline: none; transition: border-color .2s ease, box-shadow .2s ease, background .3s ease, color .3s ease;
}
input:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-focus-ring); }
input[type=number] { font-family: 'JetBrains Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }
input[type=range] { padding: 6px 0; border: none; background: transparent; box-shadow: none; cursor: pointer; accent-color: var(--primary); }
input[type=range]:focus { box-shadow: none; }
.hint { font-size: .78rem; color: var(--muted); margin-top: 4px; }

/* ============================================================
   RESULTS
   ============================================================ */
.result-box {
  background: var(--result-bg); border: 1.5px solid var(--result-border);
  border-radius: 12px; padding: 22px; margin-top: 20px;
  display: none; position: relative;
  animation: mlSlideIn .4s cubic-bezier(.22,1,.36,1);
}
.result-box.active { display: block; }
.result-box.error { background: var(--error-bg); border-color: var(--error-border); }
.share-btn {
  position: absolute; top: 14px; right: 14px;
  background: var(--share-btn-bg); color: var(--share-btn-color);
  border: 1px solid var(--share-btn-border); border-radius: 8px;
  padding: 6px 12px; font-size: .78rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
  display: flex; align-items: center; gap: 4px;
  transition: background .15s, color .15s, border-color .15s;
}
.share-btn:hover { background: var(--border); }
.result-main {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 1.5rem; font-weight: 700; color: var(--primary);
  margin-bottom: 14px; line-height: 1.2;
}
.result-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--result-row-border); font-size: .9rem;
}
.result-row:last-child { border-bottom: none; }
.result-row .label { color: var(--muted); font-weight: 500; font-size: 13px; text-transform: none; letter-spacing: 0; margin-bottom: 0; }
.result-row .val { font-weight: 600; color: var(--result-val); font-family: 'JetBrains Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; font-size: 13px; }
.result-row .val.pos { color: var(--secondary); }
.result-row .val.neg { color: var(--neg); }
.inflation-note {
  background: var(--inflation-note-bg); border-left: 3px solid var(--primary);
  padding: 10px 14px; border-radius: 0 8px 8px 0; margin-top: 14px;
  font-size: .85rem; color: var(--inflation-note-text);
}
.inflation-note strong { color: var(--primary); }
.explanation {
  background: var(--explanation-bg); border-radius: 10px;
  padding: 16px; margin-top: 14px; font-size: .88rem;
  color: var(--explanation-text); line-height: 1.7;
}
.explanation h4 { font-size: .95rem; font-weight: 600; color: var(--explanation-h4); margin-bottom: 8px; }
.table-scroll { overflow-x: auto; margin-top: 12px; }
.year-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.year-table th { background: var(--table-head-bg); padding: 8px 12px; text-align: left; font-weight: 600; color: var(--table-head-text); }
.year-table td { padding: 7px 12px; border-bottom: 1px solid var(--table-td-border); }
.year-table tr:nth-child(even) td { background: var(--table-even-bg); }
details { margin-top: 14px; }
details summary { cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--primary); padding: 4px 0; }
.bracket-row { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--bracket-border); font-size: .85rem; }
.bracket-bar { height: 10px; background: var(--primary); border-radius: 3px; min-width: 4px; transition: width .5s; }
.tag { display: inline-block; background: var(--tag-bg); color: var(--tag-text); padding: 2px 8px; border-radius: 999px; font-size: .75rem; font-weight: 600; margin-left: 6px; }
.tag.green { background: #d1fae5; color: #065f46; }
.tag.orange { background: #fef3c7; color: #92400e; }

/* ============================================================
   AD SLOTS (reserved space, no visual styling until AdSense)
   ============================================================ */
.ad-slot {
  min-height: 90px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; overflow: hidden;
}
.ad-slot[data-slot="sidebar-half"] { min-height: 250px; }
.ad-slot[data-slot="mid-content"] { min-height: 280px; }

/* ============================================================
   ARTICLE CONTENT (supporting text on calculator pages + blog)
   ============================================================ */
.article-content {
  background: var(--article-bg); border: 1px solid var(--article-border);
  border-radius: 16px; padding: 36px;
  font-size: 15px; line-height: 1.75; color: var(--text);
}
.article-content h2 {
  font-size: 22px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--text); margin: 36px 0 14px; line-height: 1.25;
}
.article-content h2:first-child { margin-top: 0; }
.article-content h3 {
  font-size: 17px; font-weight: 600; color: var(--text);
  margin: 24px 0 10px; line-height: 1.3;
}
.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 16px; }
.article-content li { margin-bottom: 8px; }
.article-content strong { color: var(--text); font-weight: 600; }
.article-content a { color: var(--primary); }
.article-content a:hover { text-decoration: underline; }
.article-content .formula-box {
  background: var(--primary-soft); border: 1px solid var(--primary-soft-border);
  border-radius: 10px; padding: 16px 20px; margin: 20px 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 14px; color: var(--primary); line-height: 1.6;
}
.article-content .example-box {
  background: var(--explanation-bg); border-left: 3px solid var(--secondary);
  padding: 16px 20px; margin: 20px 0; border-radius: 0 10px 10px 0;
  font-size: 14px; line-height: 1.7;
}
.article-content .example-box strong { color: var(--secondary); }
.article-content .disclaimer-box {
  background: #fffbeb; border: 1px solid #fde68a;
  border-radius: 10px; padding: 14px 18px; margin: 20px 0;
  font-size: 13px; color: #92400e; line-height: 1.6;
}
[data-theme="dark"] .article-content .disclaimer-box {
  background: #1c1500; border-color: #78350f; color: #fbbf24;
}
.article-content .source-note {
  font-size: 12px; color: var(--muted); margin-top: -8px; margin-bottom: 16px;
  font-style: italic;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section { margin-top: 8px; }
.faq-item {
  border: 1px solid var(--faq-border); border-radius: 12px;
  margin-bottom: 10px; overflow: hidden;
}
.faq-question {
  width: 100%; text-align: left; background: var(--faq-bg);
  border: none; padding: 16px 20px; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 600;
  color: var(--text); display: flex; justify-content: space-between;
  align-items: center; gap: 12px; transition: background .15s;
}
.faq-question:hover { background: var(--hover-row); }
.faq-chevron { color: var(--primary); font-size: 18px; flex-shrink: 0; transition: transform .2s; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  display: none; padding: 0 20px 16px; background: var(--bg-elev);
  font-size: 14.5px; line-height: 1.7; color: var(--explanation-text);
}
.faq-answer p { margin-bottom: 8px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-item.open .faq-answer { display: block; }

/* ============================================================
   RELATED CALCULATORS
   ============================================================ */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px; margin-top: 16px;
}
.related-card {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px;
  text-decoration: none; color: var(--text);
  display: flex; align-items: center; gap: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.related-card:hover {
  border-color: var(--primary); box-shadow: var(--shadow-card-hover);
  text-decoration: none;
}
.related-card-icon { font-size: 20px; flex-shrink: 0; }
.related-card-text strong { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.related-card-text span { font-size: 12px; color: var(--muted); }

/* ============================================================
   BLOG LISTING
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px; margin-top: 16px;
}
.blog-card {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px;
  text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.blog-card:hover { box-shadow: var(--shadow-card-hover); border-color: var(--primary); text-decoration: none; }
.blog-card-tag {
  display: inline-block; background: var(--tag2-bg); color: var(--tag2-text);
  padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; width: fit-content;
}
.blog-card-title { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.35; }
.blog-card-desc { font-size: 13px; color: var(--muted); line-height: 1.55; flex: 1; }
.blog-card-meta { font-size: 12px; color: var(--muted); display: flex; gap: 12px; margin-top: 4px; }

/* ============================================================
   FOOTER
   ============================================================ */
.ml-footer {
  background: var(--nav-bg); color: #cbd5e1;
  padding: 48px 32px 36px;
  transition: background .3s ease;
}
.ml-footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 32px; flex-wrap: wrap;
}
.ml-footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ml-footer-brand .name { font-size: 17px; font-weight: 600; color: #f1f5f9; }
.ml-footer-text { margin: 0; font-size: 13px; color: #94a3b8; max-width: 440px; line-height: 1.6; }
.ml-footer-links { display: flex; gap: 24px; font-size: 13.5px; flex-wrap: wrap; margin-top: 16px; }
.ml-footer-links a { text-decoration: none; color: #94a3b8; }
.ml-footer-links a:hover { color: #f1f5f9; text-decoration: none; }
.ml-footer-copy {
  text-align: center; margin-top: 24px; padding-top: 16px;
  border-top: 1px solid #1e293b; font-size: .78rem; color: #475569;
  max-width: 1280px; margin-left: auto; margin-right: auto;
  padding-left: 32px; padding-right: 32px;
}

/* ============================================================
   SCROLL-TO-TOP
   ============================================================ */
.scroll-top {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--primary); color: #fff; border: none;
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.3rem; cursor: pointer;
  box-shadow: 0 4px 16px rgba(26,86,219,.35);
  display: none; align-items: center; justify-content: center;
  z-index: 40; transition: background .2s;
}
.scroll-top:hover { background: var(--primary-hover); }
.scroll-top.show { display: flex; }

/* ============================================================
   ANIMATION
   ============================================================ */
@keyframes mlSlideIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   BLOG ARTICLE PAGE
   ============================================================ */
.blog-hero {
  padding: 36px 32px 28px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse 800px 300px at 50% -20%, var(--hero-glow), transparent 70%);
}
.blog-hero-inner { max-width: 800px; margin: 0 auto; }
.blog-hero h1 { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; color: var(--text); margin-bottom: 12px; }
.blog-hero-meta { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.blog-layout { max-width: 800px; margin: 0 auto; padding: 36px 32px 80px; }
.blog-layout .article-content { border: none; padding: 0; }

/* ============================================================
   SUPPORT PAGES (about, contact, privacy, terms)
   ============================================================ */
.support-layout { max-width: 800px; margin: 0 auto; padding: 48px 32px 80px; }
.support-layout h1 { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.support-layout .lead { font-size: 16px; color: var(--muted); margin-bottom: 32px; }
.support-layout h2 { font-size: 20px; font-weight: 600; margin: 32px 0 12px; color: var(--text); }
.support-layout p { font-size: 15px; line-height: 1.75; color: var(--explanation-text); margin-bottom: 14px; }
.support-layout ul, .support-layout ol { padding-left: 24px; margin-bottom: 14px; }
.support-layout li { font-size: 15px; line-height: 1.7; color: var(--explanation-text); margin-bottom: 6px; }
.support-layout a { color: var(--primary); }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.contact-form textarea {
  width: 100%; padding: 11px 14px; font-size: 15px; min-height: 120px;
  font-family: inherit; background: var(--bg-input); color: var(--text);
  border: 1.5px solid var(--border); border-radius: 10px; outline: none; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-focus-ring); }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff; border: none;
  padding: 12px 24px; border-radius: 10px; font-size: 15px;
  font-weight: 600; font-family: inherit; cursor: pointer;
  transition: background .2s; text-decoration: none;
}
.btn-primary:hover { background: var(--primary-hover); text-decoration: none; }

/* 404 page */
.error-page { text-align: center; padding: 80px 32px; }
.error-page .error-code { font-size: 96px; font-weight: 800; letter-spacing: -0.04em; color: var(--primary); opacity: 0.15; line-height: 1; }
.error-page h1 { font-size: 28px; font-weight: 700; margin: 0 0 12px; }
.error-page p { font-size: 16px; color: var(--muted); margin-bottom: 28px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width:900px) {
  .ml-sidebar { display: none; }
  .ml-main { padding: 20px 16px 48px; gap: 0; }
}
@media(max-width:768px) {
  .ml-nav-inner { padding: 0 16px; }
  .ml-nav-links { display: none; }
  .ml-hero { padding: 48px 20px 36px; }
  .ml-h1 { font-size: 34px; }
  .ml-sub { font-size: 16px; }
  .ml-card { padding: 20px; border-radius: 12px; }
  .result-main { font-size: 1.25rem; }
  .ml-footer { padding: 32px 20px; }
  .ml-footer-inner { flex-direction: column; }
  .calc-hero { padding: 24px 20px 20px; }
  .calc-hero h1 { font-size: 26px; }
  .article-content { padding: 24px 20px; }
  .blog-hero { padding: 24px 20px; }
  .blog-layout { padding: 24px 20px 60px; }
  .breadcrumb { padding: 10px 20px; }
  .support-layout { padding: 32px 20px 60px; }
}
