/* FICATaxSave design layer (FICA-RESTYLE-20261203).
 * Loaded by every page and by the blog theme, after each page's own styles. Selectors start with
 * "html body" so they outrank the per-page <style> blocks (some of which sit in <body>) without
 * touching them. Colors are the site's own tokens only: slate background, white text, blue buttons,
 * the blue-to-emerald gradient. This file changes layout, type, spacing and component styling;
 * it never changes any text. */

:root {
  --fx-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --fx-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fx-line-dark: rgba(148, 163, 184, 0.18);
  --fx-line-light: rgba(100, 116, 139, 0.22);
  --fx-blue: #3b82f6;
  --fx-blue-400: #60a5fa;
  --fx-blue-600: #2563eb;
  --fx-blue-700: #1d4ed8;
  --fx-emerald: #10b981;
  --fx-emerald-400: #34d399;
  --fx-slate-900: #0f172a;
  --fx-slate-800: #1e293b;
}

/* ---------- Base type ---------- */
html body { font-family: var(--fx-sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
html body h1, html body h2, html body h3 { text-wrap: balance; }
html body img, html body video, html body iframe { max-width: 100%; }

/* ---------- Header and navigation ---------- */
html body header { background: rgba(15, 23, 42, 0.92); border-bottom: 1px solid var(--fx-line-dark); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); }
html body header .logo { letter-spacing: -0.01em; }
html body header .container .header-inner nav a:not(.btn) {
  font-size: 0.75rem !important; font-weight: 700 !important; letter-spacing: 0.16em !important; text-transform: uppercase !important;
  color: var(--slate-300, #cbd5e1) !important; background: transparent !important; border-radius: 0 !important;
  padding: 0.5rem 0.25rem !important; position: relative;
}
html body header .container .header-inner nav a:not(.btn):hover { color: #fff !important; }
html body header .container .header-inner nav a:not(.btn).active { color: #fff !important; background: transparent !important; }
html body header .container .header-inner nav a:not(.btn).active::after {
  content: '' !important; position: absolute !important; left: 0.25rem !important; right: 0.25rem !important; bottom: -0.15rem !important;
  height: 2px !important; border-radius: 0 !important; background: linear-gradient(to right, var(--fx-blue-400), var(--fx-emerald-400)) !important;
}
html body header .container .header-inner nav { gap: 1.75rem !important; }
html body header .container .header-inner nav a.btn {
  font-size: 0.75rem !important; font-weight: 800 !important; letter-spacing: 0.14em !important; text-transform: uppercase !important;
  padding: 0.7rem 1.15rem !important; border-radius: 2px !important; margin-left: 0.5rem;
}
html body header .container .header-inner nav a.btn::after { display: none !important; }

/* Menu button (shown on phones and small tablets) */
html body header .mobile-menu-btn {
  display: none !important; background: transparent; border: 1px solid var(--fx-line-dark); color: #fff; cursor: pointer;
  width: 2.75rem; height: 2.75rem; padding: 0; border-radius: 2px; align-items: center; justify-content: center; flex: none;
}
html body header .mobile-menu-btn svg { display: block; }

@media (max-width: 960px) {
  html body header .container .header-inner nav,
  html body header .header-inner nav { display: none !important; }
  html body header .mobile-menu-btn { display: inline-flex !important; }
  html body header .header-inner { position: relative; }
  html body header.fx-nav-open .container .header-inner nav {
    display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 0 !important;
    position: absolute !important; top: 100% !important; left: -1.5rem !important; right: -1.5rem !important;
    background: rgba(15, 23, 42, 0.98) !important; border-top: 1px solid var(--fx-line-dark) !important;
    border-bottom: 1px solid var(--fx-line-dark) !important; padding: 0.5rem 1.5rem 1.25rem !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45) !important; max-height: calc(100vh - 6rem); overflow-y: auto;
  }
  html body header.fx-nav-open .container .header-inner nav a:not(.btn) {
    display: block !important; padding: 1rem 0 !important; border-bottom: 1px solid var(--fx-line-dark) !important;
    font-size: 0.8125rem !important; white-space: normal !important;
  }
  html body header.fx-nav-open .container .header-inner nav a:not(.btn).active::after { left: 0 !important; right: auto !important; width: 2.5rem !important; bottom: 0.55rem !important; }
  html body header.fx-nav-open .container .header-inner nav a.btn { display: flex !important; margin: 1.25rem 0 0 !important; width: 100%; }
}
@media (max-width: 600px) {
  html body header.fx-nav-open .container .header-inner nav { left: -1rem !important; right: -1rem !important; padding: 0.5rem 1rem 1.25rem !important; }
}

/* ---------- Buttons ---------- */
html body .btn {
  border-radius: 2px; font-weight: 800; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.95rem 1.5rem; line-height: 1.25; text-align: center; transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
html body .btn-large { font-size: 0.875rem; padding: 1.15rem 2rem; border-radius: 2px; }
html body .btn-primary {
  background: linear-gradient(160deg, var(--fx-blue) 0%, var(--fx-blue-600) 55%, var(--fx-blue-700) 100%);
  color: #fff; border: 1px solid var(--fx-blue-600); box-shadow: 0 10px 28px -12px rgba(37, 99, 235, 0.65);
}
html body .btn-primary:hover { background: var(--fx-blue-700); border-color: var(--fx-blue-700); }
html body .btn-secondary { border-radius: 2px; }
html body .btn svg { flex: none; }
@media (max-width: 520px) {
  html body .hero-ctas .btn, html body .hero .btn-large { width: 100%; }
}

/* ---------- Eyebrow labels (existing badge elements, same text) ---------- */
html body .hero-badge, html body .section-badge, html body .idea-badge, html body .benefit-badge, html body .page-hero .badge, html body .hero .badge {
  border-radius: 2px; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.26em; text-transform: uppercase; padding: 0.5rem 0.95rem; line-height: 1.4;
}

/* ---------- Heroes ---------- */
html body .hero, html body .page-hero {
  background:
    radial-gradient(ellipse at 85% 0%, rgba(59, 130, 246, 0.16), transparent 55%),
    radial-gradient(ellipse at 8% 100%, rgba(16, 185, 129, 0.07), transparent 50%),
    var(--fx-slate-900);
  border-bottom: 1px solid var(--fx-line-dark);
}
html body .hero-bg::after { background: var(--fx-emerald); }
html body .hero h1, html body .page-hero h1 {
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.06; text-transform: uppercase; overflow-wrap: break-word;
}
html body .hero h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
html body .page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
html body .hero-subtitle, html body .page-hero p, html body .hero .subtitle {
  font-family: var(--fx-serif); font-size: clamp(1.0625rem, 1.6vw, 1.2rem); line-height: 1.6; letter-spacing: 0;
}
html body .hero-bullets li { font-weight: 600; letter-spacing: 0.01em; }
html body .trust-line { font-family: var(--fx-serif); }
html body .hero-disclosure { line-height: 1.55; }
html body .hero-disclosure + .hero-bullets { margin-top: 1.75rem; }
@media (max-width: 600px) {
  html body .hero-bullets { flex-direction: column; align-items: center; gap: 0.75rem; }
  html body .hero-bullets li { text-align: left; }
}

/* ---------- Sections ---------- */
html body .section, html body .programs, html body .calculators { padding-top: 4.5rem; padding-bottom: 4.5rem; }
@media (max-width: 768px) {
  html body .section, html body .programs, html body .calculators { padding-top: 3.25rem; padding-bottom: 3.25rem; }
}
html body .section-dark, html body .programs { border-top: 1px solid var(--fx-line-dark); border-bottom: 1px solid var(--fx-line-dark); }
html body .section-header { margin-bottom: 2.75rem; }
html body .section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; text-transform: uppercase; overflow-wrap: break-word;
}
html body .section-header h2::before {
  content: ''; display: block; width: 3rem; height: 3px; margin: 0 auto 1.1rem;
  background: linear-gradient(to right, var(--fx-blue-400), var(--fx-emerald-400));
}
html body .section-header p { font-family: var(--fx-serif); font-size: 1.0625rem; line-height: 1.65; }

/* ---------- Cards ---------- */
html body .program-card, html body .card, html body .why-card, html body .ideal-card, html body .step-card, html body .benefit-card,
html body .strategy-card, html body .opp-card, html body .tax-card, html body .calculator, html body .fts-card, html body .fts-empty,
html body .result-item, html body .criteria-item, html body .notes-box, html body .process-step, html body .contact-form, html body .form-wrapper {
  border-radius: 4px;
}
html body .program-card, html body .why-card, html body .ideal-card, html body .step-card, html body .benefit-card, html body .strategy-card,
html body .opp-card, html body .tax-card, html body .calculator, html body .fts-card, html body .fts-empty, html body .card {
  border-top: 3px solid var(--fx-blue);
}
html body .program-card.tip-credit, html body .calculator.tip-credit { border-top-color: var(--fx-emerald); }
html body .program-card:hover, html body .why-card:hover, html body .strategy-card:hover, html body .opp-card:hover, html body .fts-card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.6); }
html body .program-card h3, html body .why-card h3, html body .ideal-card h3, html body .step-card h3, html body .benefit-card h3,
html body .strategy-card h3, html body .opp-card h3, html body .tax-card h3, html body .fts-card h2, html body .fts-empty h2, html body .card h3 {
  letter-spacing: -0.01em; line-height: 1.25;
}
html body .calculator h3 { letter-spacing: -0.01em; }
html body .section-light .card, html body .section-light .benefit-card, html body .section-light .ideal-card, html body .section-light .step-card { box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05); }

/* Icon chips: one restrained style everywhere (round, dark, blue or emerald line icon) */
html body .program-icon, html body .benefit-icon, html body .strategy-icon, html body .tax-icon, html body .opp-icon, html body .contact-method-icon, html body .why-icon {
  border-radius: 50% !important; background: var(--fx-slate-900) !important; color: var(--fx-blue-400) !important;
  border: 1px solid rgba(96, 165, 250, 0.35) !important; box-shadow: none !important;
}
html body .program-icon svg, html body .benefit-icon svg, html body .strategy-icon svg, html body .tax-icon svg, html body .opp-icon svg, html body .contact-method-icon svg, html body .why-icon svg { stroke: currentColor; color: inherit; }
html body .program-card.tip-credit .program-icon, html body .tip-credit .benefit-icon { color: var(--fx-emerald-400) !important; border-color: rgba(52, 211, 153, 0.35) !important; }
html body .opp-grid-value.violet { color: var(--fx-blue-400); }
html body .section-light .opp-grid-value.violet, html body .calculators .opp-grid-value.violet { color: var(--fx-blue-600); }

/* Step numbers */
html body .step-number { border-radius: 50%; font-weight: 800; letter-spacing: 0; }

/* ---------- Forms ---------- */
html body .form-group label, html body .form-label, html body .calc-input-group label {
  font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
}
html body .form-group input, html body .form-group select, html body .form-group textarea, html body .form-input,
html body .input-with-prefix input, html body .calc-input-group input[type="number"], html body .calc-input-group input[type="text"] {
  border-radius: 2px;
}
html body .form-group input:focus, html body .form-group select:focus, html body .form-group textarea:focus, html body .form-input:focus {
  outline: none; border-color: var(--fx-blue); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
}

/* ---------- FAQ ---------- */
html body .faq-item { border-radius: 2px; }
html body .faq-q, html body .faq-question { font-weight: 700; letter-spacing: -0.005em; }
html body .faq-a, html body .faq-answer { line-height: 1.7; }

/* ---------- Legal and long-form text ---------- */
html body .legal-content h2 { letter-spacing: -0.015em; line-height: 1.25; }
html body .legal-content p, html body .legal-content li { line-height: 1.75; }
html body .fts-article { font-family: var(--fx-serif); font-size: 1.125rem; }
html body .fts-article h2, html body .fts-article h3, html body .fts-article h4 { font-family: var(--fx-sans); letter-spacing: -0.015em; }
html body .fts-article .fts-post-disclosure { font-family: var(--fx-sans); }
html body .fts-card-date { font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; }
html body .fts-card .fts-more { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
html body .fts-pagination .page-numbers { border-radius: 2px; }
html body .fts-card-img img, html body .fts-featured img, html body .fts-article img { border-radius: 2px; }

/* ---------- Footer ---------- */
html body footer { padding: 4.5rem 0 3rem; border-top: 1px solid var(--fx-line-dark); background: var(--fx-slate-900); }
@media (max-width: 768px) { html body footer { padding: 3.25rem 0 2.5rem; } }
html body footer .footer-inner { gap: 1.75rem; }
html body footer .logo { font-size: 1.3rem; }
html body footer .footer-links { gap: 0.75rem 2rem; }
html body footer .footer-links a { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
html body footer .footer-disclaimer { max-width: 46rem; line-height: 1.65; padding-top: 1.75rem; border-top: 1px solid var(--fx-line-dark); }
html body footer .footer-copyright { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; }
