/* ============================================
   TaxCalcHQ.com — Design System
   Brand: #C1121F (Deep Red) + Charcoal + White
   AdSense-optimized, content-first layout
   ============================================ */
:root {
  --red: #C1121F;
  --red-dark: #9B0F1A;
  --red-light: #FDEAEA;
  --red-hover: #A8101B;
  --charcoal: #1A1A2E;
  --dark: #16213E;
  --text: #2D2D3A;
  --text-secondary: #5A5A6E;
  --text-light: #8A8A9A;
  --bg: #FFFFFF;
  --bg-off: #F8F8FB;
  --bg-warm: #FFFBFA;
  --border: #E8E8EE;
  --border-light: #F0F0F5;
  --green: #0A8754;
  --green-light: #E6F5EE;
  --blue: #1A56DB;
  --blue-light: #EBF0FD;
  --orange: #D97706;
  --orange-light: #FEF3E2;
  --shadow-sm: 0 1px 3px rgba(26,26,46,0.06);
  --shadow-md: 0 4px 12px rgba(26,26,46,0.08);
  --shadow-lg: 0 8px 30px rgba(26,26,46,0.12);
  --shadow-xl: 0 16px 48px rgba(26,26,46,0.16);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max-content: 760px;
  --max-wide: 1200px;
  --nav-height: 64px;
  --font-heading: 'Source Serif 4', Georgia, serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --transition: 0.2s ease;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 20px); -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); font-size: 1.125rem; line-height: 1.75; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-dark); }
::selection { background: var(--red-light); color: var(--red-dark); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--charcoal); line-height: 1.25; font-weight: 700; }
h1 { font-size: 2.5rem; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
h2 { font-size: 1.75rem; letter-spacing: -0.01em; margin-top: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-top: 2rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.15rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1.25rem; }
strong { font-weight: 600; color: var(--charcoal); }
.container { max-width: var(--max-wide); margin: 0 auto; padding: 0 24px; }
.content-wrap { max-width: var(--max-content); margin: 0 auto; }
.page-layout { display: grid; grid-template-columns: 1fr 300px; gap: 48px; max-width: var(--max-wide); margin: 0 auto; padding: 0 24px; align-items: start; }
.page-main { min-width: 0; }
.page-sidebar { position: sticky; top: calc(var(--nav-height) + 24px); }
.nav { position: sticky; top: 0; z-index: 1000; background: var(--charcoal); height: var(--nav-height); border-bottom: 3px solid var(--red); }
.nav-inner { max-width: var(--max-wide); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.nav-logo-icon { width: 36px; height: 36px; background: var(--red); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: white; font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; }
.nav-logo-text { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: #FFFFFF; letter-spacing: -0.01em; }
.nav-logo-text span { color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-links a { color: #C8C8D4; font-size: 0.9rem; font-weight: 500; padding: 8px 14px; border-radius: var(--radius-sm); transition: all var(--transition); white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: #FFFFFF; background: rgba(255,255,255,0.08); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: #FFFFFF; }
.nav-toggle svg { width: 24px; height: 24px; }
.mobile-menu { display: none; position: fixed; top: var(--nav-height); left: 0; right: 0; bottom: 0; background: var(--charcoal); z-index: 999; padding: 24px; overflow-y: auto; }
.mobile-menu.active { display: block; }
.mobile-menu a { display: block; color: #C8C8D4; font-size: 1.1rem; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.06); transition: color var(--transition); }
.mobile-menu a:hover { color: #FFFFFF; }
.breadcrumbs { padding: 16px 0; font-size: 0.85rem; color: var(--text-light); }
.breadcrumbs a { color: var(--text-secondary); }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs span { margin: 0 6px; color: var(--border); }
.page-header { padding: 40px 0 32px; border-bottom: 1px solid var(--border); margin-bottom: 40px; }
.page-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; font-size: 0.85rem; color: var(--text-secondary); }
.page-meta-item { display: flex; align-items: center; gap: 5px; }
.page-meta-item svg { width: 15px; height: 15px; flex-shrink: 0; }
.page-badge { display: inline-flex; align-items: center; gap: 4px; background: var(--green-light); color: var(--green); font-size: 0.8rem; font-weight: 600; padding: 3px 10px; border-radius: 100px; }
.page-title { margin-bottom: 16px; }
.page-subtitle { font-size: 1.2rem; color: var(--text-secondary); line-height: 1.6; font-family: var(--font-body); font-weight: 400; max-width: 640px; }
.direct-answer { background: var(--bg-warm); border-left: 4px solid var(--red); padding: 20px 24px; border-radius: 0 var(--radius-md) var(--radius-md) 0; margin-bottom: 32px; font-size: 1.05rem; line-height: 1.7; }
.direct-answer strong { color: var(--red-dark); }
.toc { background: var(--bg-off); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px 28px; margin-bottom: 36px; }
.toc-title { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--charcoal); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.toc-title svg { width: 18px; height: 18px; color: var(--red); }
.toc-list { list-style: none; counter-reset: toc; }
.toc-list li { counter-increment: toc; margin-bottom: 6px; }
.toc-list a { color: var(--text-secondary); font-size: 0.95rem; display: flex; align-items: baseline; gap: 8px; padding: 4px 0; transition: color var(--transition); }
.toc-list a::before { content: counter(toc) "."; color: var(--red); font-weight: 600; font-size: 0.85rem; min-width: 20px; }
.toc-list a:hover { color: var(--red); }
.calculator { background: var(--bg); border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 32px; margin-bottom: 40px; box-shadow: var(--shadow-md); }
.calculator-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.calculator-title { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; color: var(--charcoal); margin: 0; }
.calculator-badge { background: var(--green-light); color: var(--green); font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.05em; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.calc-field { display: flex; flex-direction: column; gap: 6px; }
.calc-field.full-width { grid-column: 1 / -1; }
.calc-label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); display: flex; align-items: center; gap: 6px; }
.calc-label .tooltip-trigger { width: 16px; height: 16px; background: var(--border); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.7rem; color: var(--text-secondary); cursor: help; }
.calc-input-wrap { position: relative; }
.calc-input-prefix { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-light); font-size: 1rem; font-weight: 500; pointer-events: none; }
.calc-input { width: 100%; height: 48px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 0 14px 0 30px; font-family: var(--font-body); font-size: 1rem; color: var(--text); background: var(--bg); transition: border-color var(--transition), box-shadow var(--transition); -moz-appearance: textfield; }
.calc-input::-webkit-outer-spin-button, .calc-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-light); }
.calc-input.no-prefix { padding-left: 14px; }
.calc-select { width: 100%; height: 48px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 0 14px; font-family: var(--font-body); font-size: 1rem; color: var(--text); background: var(--bg); cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235A5A6E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; transition: border-color var(--transition), box-shadow var(--transition); }
.calc-select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-light); }
.calc-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 52px; background: var(--red); color: #FFFFFF; font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; border: none; border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition); margin-top: 8px; }
.calc-btn:hover { background: var(--red-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.calc-btn:active { transform: translateY(0); }
.calc-btn svg { width: 20px; height: 20px; }
.calc-btn-secondary { background: transparent; color: var(--text-secondary); border: 1.5px solid var(--border); margin-top: 8px; height: 44px; font-size: 0.9rem; }
.calc-btn-secondary:hover { background: var(--bg-off); color: var(--text); border-color: var(--text-light); transform: none; box-shadow: none; }
.calc-results { display: none; margin-top: 24px; padding-top: 24px; border-top: 2px solid var(--border); animation: fadeUp 0.4s ease; }
.calc-results.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.calc-result-hero { text-align: center; padding: 32px; background: var(--bg-off); border-radius: var(--radius-md); margin-bottom: 24px; }
.calc-result-label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.calc-result-amount { font-family: var(--font-heading); font-size: 3rem; font-weight: 700; letter-spacing: -0.02em; }
.calc-result-amount.refund { color: var(--green); }
.calc-result-amount.owe { color: var(--red); }
.calc-result-note { font-size: 0.85rem; color: var(--text-light); margin-top: 8px; }
.calc-breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-breakdown-item { padding: 16px; background: var(--bg-off); border-radius: var(--radius-sm); }
.calc-breakdown-label { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 4px; }
.calc-breakdown-value { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--charcoal); }
.content h2 { padding-top: 8px; border-top: 1px solid var(--border-light); }
.content h2::before { content: ''; display: inline-block; width: 4px; height: 24px; background: var(--red); border-radius: 2px; margin-right: 12px; vertical-align: middle; }
.content ul, .content ol { margin-bottom: 1.25rem; padding-left: 24px; }
.content li { margin-bottom: 8px; }
.content blockquote { border-left: 4px solid var(--red); padding: 16px 20px; background: var(--bg-off); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 24px 0; font-style: italic; color: var(--text-secondary); }
.content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.95rem; }
.content thead th { background: var(--charcoal); color: #FFFFFF; font-weight: 600; text-align: left; padding: 12px 16px; font-size: 0.85rem; }
.content thead th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.content thead th:last-child { border-radius: 0 var(--radius-sm) 0 0; }
.content tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.content tbody tr:nth-child(even) { background: var(--bg-off); }
.content tbody tr:hover { background: var(--red-light); }
.info-box { padding: 20px 24px; border-radius: var(--radius-md); margin: 24px 0; font-size: 0.95rem; line-height: 1.65; }
.info-box.tip { background: var(--green-light); border-left: 4px solid var(--green); }
.info-box.warning { background: var(--orange-light); border-left: 4px solid var(--orange); }
.info-box.note { background: var(--blue-light); border-left: 4px solid var(--blue); }
.info-box-title { font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.info-box.tip .info-box-title { color: var(--green); }
.info-box.warning .info-box-title { color: var(--orange); }
.info-box.note .info-box-title { color: var(--blue); }
.faq-section { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.faq-section-title { margin-bottom: 24px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 10px; overflow: hidden; transition: box-shadow var(--transition); }
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-question { width: 100%; background: none; border: none; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--charcoal); text-align: left; transition: background var(--transition); }
.faq-question:hover { background: var(--bg-off); }
.faq-question svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--text-light); transition: transform 0.3s ease; }
.faq-item.active .faq-question svg { transform: rotate(180deg); color: var(--red); }
.faq-item.active .faq-question { color: var(--red); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer-inner { padding: 0 20px 20px; font-size: 0.98rem; color: var(--text-secondary); line-height: 1.7; }
.related-pages { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.related-pages-title { margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.related-card { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-md); transition: all var(--transition); text-decoration: none; }
.related-card:hover { border-color: var(--red); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.related-card-tag { font-size: 0.75rem; font-weight: 600; color: var(--red); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.related-card-title { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; color: var(--charcoal); margin-bottom: 6px; line-height: 1.35; }
.related-card-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }
.sidebar-box { background: var(--bg-off); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; margin-bottom: 24px; }
.sidebar-box-title { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--charcoal); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--red); }
.sidebar-links { list-style: none; }
.sidebar-links li { margin-bottom: 8px; }
.sidebar-links a { font-size: 0.9rem; color: var(--text-secondary); display: flex; align-items: center; gap: 8px; padding: 6px 0; transition: color var(--transition); }
.sidebar-links a:hover { color: var(--red); }
.sidebar-links a::before { content: '→'; color: var(--red); font-size: 0.85rem; }


.author-bio { display: flex; align-items: flex-start; gap: 16px; padding: 24px; background: var(--bg-off); border-radius: var(--radius-md); margin-top: 40px; border: 1px solid var(--border); }
.author-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; color: #FFFFFF; font-family: var(--font-heading); font-weight: 700; font-size: 1.3rem; flex-shrink: 0; }
.author-name { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; color: var(--charcoal); margin-bottom: 2px; }
.author-role { font-size: 0.8rem; color: var(--red); font-weight: 600; margin-bottom: 6px; }
.author-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }
.footer { background: var(--charcoal); color: #C8C8D4; margin-top: 80px; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: var(--max-wide); margin: 0 auto; padding: 0 24px; }
.footer-brand-desc { font-size: 0.9rem; line-height: 1.6; color: #8A8A9A; margin-top: 12px; }
.footer-heading { font-family: var(--font-heading); font-size: 0.9rem; font-weight: 700; color: #FFFFFF; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #8A8A9A; font-size: 0.88rem; transition: color var(--transition); }
.footer-links a:hover { color: #FFFFFF; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 40px; padding: 20px 24px 0; max-width: var(--max-wide); margin-left: auto; margin-right: auto; display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; color: #5A5A6E; }
.footer-bottom a { color: #8A8A9A; }
.footer-bottom a:hover { color: var(--red); }
.scroll-top { position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px; background: var(--charcoal); color: #FFFFFF; border: none; border-radius: 50%; cursor: pointer; display: none; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); z-index: 900; transition: all var(--transition); }
.scroll-top:hover { background: var(--red); transform: translateY(-2px); }
.scroll-top.visible { display: flex; }
.scroll-top svg { width: 20px; height: 20px; }
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--charcoal); color: #C8C8D4; padding: 16px 24px; z-index: 9999; display: none; align-items: center; justify-content: space-between; gap: 16px; box-shadow: 0 -4px 20px rgba(0,0,0,0.2); }
.cookie-banner.active { display: flex; }
.cookie-text { font-size: 0.88rem; line-height: 1.5; }
.cookie-text a { color: var(--red); text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn { padding: 8px 20px; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; cursor: pointer; border: none; transition: all var(--transition); }
.cookie-accept { background: var(--red); color: #FFFFFF; }
.cookie-accept:hover { background: var(--red-hover); }
.cookie-decline { background: transparent; color: #8A8A9A; border: 1px solid #5A5A6E; }
.cookie-decline:hover { border-color: #8A8A9A; color: #C8C8D4; }
.checklist { list-style: none; padding: 0; margin: 24px 0; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border-light); font-size: 0.95rem; }
.checklist li::before { content: '☐'; color: var(--red); font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.state-map-container { margin: 32px 0; text-align: center; }
.state-map-container svg { max-width: 100%; height: auto; }
/* Homepage Hero */
.hero { padding: 64px 0 56px; background: linear-gradient(135deg, var(--charcoal) 0%, #16213E 100%); color: #FFFFFF; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(193,18,31,0.15) 0%, transparent 70%); pointer-events: none; }
.hero-inner { max-width: var(--max-wide); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(193,18,31,0.15); color: var(--red); border: 1px solid rgba(193,18,31,0.3); font-size: 0.8rem; font-weight: 600; padding: 5px 14px; border-radius: 100px; margin-bottom: 20px; }
.hero h1 { font-size: 2.8rem; color: #FFFFFF; margin-bottom: 20px; line-height: 1.15; }
.hero h1 span { color: var(--red); }
.hero-desc { font-size: 1.15rem; color: #A0A0B8; line-height: 1.7; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta a { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: var(--radius-sm); font-weight: 600; font-size: 1rem; transition: all var(--transition); }
.hero-cta .btn-primary { background: var(--red); color: #FFFFFF; }
.hero-cta .btn-primary:hover { background: var(--red-hover); transform: translateY(-1px); }
.hero-cta .btn-secondary { background: rgba(255,255,255,0.08); color: #C8C8D4; border: 1px solid rgba(255,255,255,0.15); }
.hero-cta .btn-secondary:hover { background: rgba(255,255,255,0.12); color: #FFFFFF; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hero-stat { text-align: center; padding: 24px 16px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-md); }
.hero-stat-number { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--red); margin-bottom: 4px; }
.hero-stat-label { font-size: 0.8rem; color: #8A8A9A; }
/* Home sections */
.home-section { padding: 64px 0; }
.home-section.alt { background: var(--bg-off); }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 40px; }
.section-header h2 { margin-top: 0; border: none; }
.section-header h2::before { display: none; }
.section-header p { color: var(--text-secondary); }
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: var(--max-wide); margin: 0 auto; padding: 0 24px; }
.tool-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px; transition: all var(--transition); text-decoration: none; }
.tool-card:hover { border-color: var(--red); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.tool-card-icon { width: 48px; height: 48px; background: var(--red-light); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--red); }
.tool-card-icon svg { width: 24px; height: 24px; }
.tool-card h3 { font-size: 1.1rem; margin: 0 0 8px; color: var(--charcoal); }
.tool-card p { font-size: 0.9rem; color: var(--text-secondary); margin: 0; line-height: 1.5; }
.tool-card-tag { display: inline-block; font-size: 0.72rem; font-weight: 600; color: var(--green); background: var(--green-light); padding: 2px 8px; border-radius: 100px; margin-top: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
/* Print */
@media print { .nav, .footer, .scroll-top, .cookie-banner, .ad-slot, .page-sidebar { display: none !important; } .page-layout { grid-template-columns: 1fr; } body { font-size: 12pt; color: #000; } .calculator { border: 1px solid #999; box-shadow: none; } .calc-results { display: block !important; } a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #666; } }
/* Responsive */
@media (max-width: 1024px) { .page-layout { grid-template-columns: 1fr; gap: 32px; } .page-sidebar { position: static; order: -1; } .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } .related-grid, .tools-grid { grid-template-columns: 1fr; } .hero-inner { grid-template-columns: 1fr; text-align: center; } .hero-cta { justify-content: center; } .hero-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { html { font-size: 15px; } h1 { font-size: 1.9rem; } h2 { font-size: 1.45rem; } h3 { font-size: 1.2rem; } .nav-links { display: none; } .nav-toggle { display: block; } .container, .page-layout { padding: 0 16px; } .calculator { padding: 20px; } .calc-grid { grid-template-columns: 1fr; gap: 14px; } .calc-result-amount { font-size: 2.2rem; } .calc-breakdown { grid-template-columns: 1fr; } .footer-grid { grid-template-columns: 1fr; gap: 24px; } .footer-bottom { flex-direction: column; gap: 8px; text-align: center; } .cookie-banner { flex-direction: column; text-align: center; } .cookie-btns { width: 100%; } .cookie-btn { flex: 1; } .author-bio { flex-direction: column; text-align: center; align-items: center; } .hero h1 { font-size: 2rem; } .hero-stats { grid-template-columns: 1fr; gap: 12px; } .hero-stat { padding: 16px; } .tools-grid { padding: 0 16px; } }
@media (max-width: 480px) { h1 { font-size: 1.65rem; } .page-header { padding: 28px 0 24px; } .calculator { padding: 16px; border-radius: var(--radius-md); } .calc-input, .calc-select { height: 44px; } .calc-btn { height: 48px; } }
/* Dark Mode */
body.dark-mode { --text: #E0E0EA; --text-secondary: #A0A0B0; --text-light: #707080; --charcoal: #F0F0F5; --bg: #0F0F1A; --bg-off: #1A1A28; --bg-warm: #1A1520; --border: #2A2A3A; --border-light: #222232; }
body.dark-mode .nav { background: #0A0A14; }
body.dark-mode .footer { background: #0A0A14; }
body.dark-mode .content thead th { background: #1A1A28; }
body.dark-mode .calc-input, body.dark-mode .calc-select { background: var(--bg-off); color: var(--text); border-color: var(--border); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade { animation: fadeIn 0.5s ease; }
.animate-slide { animation: slideDown 0.4s ease; }
