/* ===== OHIO PAYCHECK CALCULATOR - MAIN STYLES ===== */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --scarlet: #BB0000;
  --scarlet-dark: #8B0000;
  --scarlet-light: #E53935;
  --gray: #BB0000;
  --gray-dark: #1A1A2E;
  --gray-mid: #2D2D44;
  --gray-light: #F5F5F7;
  --white: #FFFFFF;
  --text-dark: #1A1A2E;
  --text-mid: #4A4A6A;
  --text-light: #8888AA;
  --gold: #C8973A;
  --success: #2E7D32;
  --border: #E0E0EE;
  --shadow: 0 4px 24px rgba(26,26,46,0.10);
  --shadow-lg: 0 12px 48px rgba(26,26,46,0.16);
  --radius: 12px;
  --radius-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

/* ===== HEADER ===== */
header {
  background: var(--gray-dark);
  border-bottom: 3px solid var(--scarlet);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--scarlet);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.logo-text {
  font-family: 'DM Serif Display', serif;
  color: var(--white);
  font-size: 1.2rem;
  line-height: 1.1;
}

.logo-text span {
  display: block;
  font-size: 0.65rem;
  color: #AAAACC;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav { display: flex; align-items: center; gap: 8px; }

nav a {
  color: #CCCCEE;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.2s;
}

nav a:hover, nav a.active {
  background: rgba(187,0,0,0.25);
  color: #FF6666;
}

nav .cta-nav {
  background: var(--scarlet);
  color: white;
  padding: 8px 18px;
  border-radius: 6px;
}

nav .cta-nav:hover {
  background: var(--scarlet-light);
  color: white;
}

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: white; border-radius: 2px; transition: all 0.3s; display: block; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--gray-dark) 0%, var(--gray-mid) 60%, #1A1A3E 100%);
  padding: 64px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(187,0,0,0.18) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(200,151,58,0.10) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-badge {
  display: inline-block;
  background: rgba(187,0,0,0.25);
  border: 1px solid rgba(187,0,0,0.5);
  color: #FF8888;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.hero h1 em {
  font-style: italic;
  color: #FF9999;
}

.hero p {
  color: #AAAACC;
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 12px;
  position: relative;
  z-index: 1;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat strong {
  display: block;
  color: #FF9999;
  font-size: 1.4rem;
  font-weight: 700;
}

.hero-stat span {
  color: #8888AA;
  font-size: 0.8rem;
}

/* ===== CALCULATOR SECTION ===== */
.calculator-section {
  max-width: 1100px;
  margin: -32px auto 0;
  padding: 0 24px 64px;
  position: relative;
  z-index: 10;
}

.calc-wrapper {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.calc-tabs {
  display: flex;
  background: var(--gray-light);
  border-bottom: 1px solid var(--border);
}

.calc-tab {
  flex: 1;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: center;
  color: var(--text-mid);
  border: none;
  background: none;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
}

.calc-tab.active {
  background: white;
  color: var(--scarlet);
  border-bottom-color: var(--scarlet);
}

.calc-tab:hover:not(.active) {
  background: #EBEBF5;
}

.calc-body {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 0;
}

.calc-form {
  padding: 36px;
  border-right: 1px solid var(--border);
}

.form-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 16px;
  margin-top: 28px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.form-section-title:first-child { margin-top: 0; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

label .tooltip-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  background: var(--text-light);
  color: white;
  border-radius: 50%;
  font-size: 10px;
  align-items: center;
  justify-content: center;
  cursor: help;
  margin-left: 4px;
  vertical-align: middle;
}

input, select {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--scarlet);
  box-shadow: 0 0 0 3px rgba(187,0,0,0.1);
}

.input-prefix-wrap {
  position: relative;
}

.input-prefix-wrap .prefix {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-weight: 600;
  pointer-events: none;
}

.input-prefix-wrap input {
  padding-left: 28px;
}

.calc-btn {
  width: 100%;
  padding: 15px;
  background: var(--scarlet);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 24px;
  letter-spacing: 0.02em;
}

.calc-btn:hover {
  background: var(--scarlet-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(187,0,0,0.3);
}

.calc-btn:active { transform: translateY(0); }

.calc-reset {
  width: 100%;
  padding: 10px;
  background: none;
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 8px;
  transition: color 0.2s;
}

.calc-reset:hover { color: var(--scarlet); }

/* ===== RESULTS PANEL ===== */
.calc-results {
  padding: 36px 28px;
  background: #FAFAFA;
}

.results-header {
  margin-bottom: 24px;
}

.results-header h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: var(--text-dark);
}

.results-header p {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 2px;
}

.net-pay-display {
  background: linear-gradient(135deg, var(--scarlet) 0%, var(--scarlet-dark) 100%);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
  color: white;
}

.net-pay-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
  margin-bottom: 6px;
}

.net-pay-amount {
  font-family: 'DM Serif Display', serif;
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1;
}

.net-pay-period {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 4px;
}

.breakdown-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.breakdown-item:last-child { border-bottom: none; }

.breakdown-item .item-label {
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 6px;
}

.breakdown-item .item-label .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.breakdown-item .item-amount {
  font-weight: 600;
  color: var(--text-dark);
}

.breakdown-item .item-amount.deduction { color: #C62828; }
.breakdown-item .item-amount.gross { color: var(--success); }
.breakdown-item .item-amount.net { color: var(--scarlet); font-size: 1rem; }

.breakdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.pie-chart-wrap {
  margin-top: 20px;
}

.pie-chart-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 12px;
}

#payPieChart { width: 100%; max-height: 180px; }

.results-placeholder {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
}

.results-placeholder .placeholder-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.results-placeholder p {
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ===== INFO BANDS ===== */
.info-band {
  background: #FFF5F5;
  border-left: 4px solid var(--scarlet);
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  margin-top: 20px;
  font-size: 0.83rem;
  color: var(--text-mid);
}

.info-band strong { color: var(--scarlet); }

/* ===== FEATURES SECTION ===== */
.features-section {
  background: var(--gray-light);
  padding: 72px 24px;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 52px;
}

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--scarlet);
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--text-dark);
  line-height: 1.2;
}

.section-header p {
  color: var(--text-mid);
  margin-top: 12px;
  font-size: 1rem;
}

.features-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 48px; height: 48px;
  background: #FFF0F0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ===== TAX BRACKETS TABLE ===== */
.brackets-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 24px;
}

.brackets-section h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 8px;
  color: var(--text-dark);
}

.brackets-section .subtitle {
  color: var(--text-mid);
  margin-bottom: 36px;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  background: var(--gray-dark);
  color: white;
  padding: 14px 20px;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

td {
  padding: 14px 20px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: var(--gray-light); }

td:last-child { font-weight: 600; }

.rate-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
}

.rate-0 { background: #E8F5E9; color: #2E7D32; }
.rate-275 { background: #FFF3E0; color: #E65100; }
.rate-3125 { background: #FFEBEE; color: #B71C1C; }

/* ===== FAQ ===== */
.faq-section {
  background: var(--gray-light);
  padding: 72px 24px;
}

.faq-inner {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: color 0.2s;
}

.faq-question:hover { color: var(--scarlet); }

.faq-toggle {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: all 0.3s;
  color: var(--text-mid);
}

.faq-item.open .faq-toggle {
  background: var(--scarlet);
  color: white;
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.faq-item.open .faq-answer { display: block; }

/* ===== BLOG SECTION ===== */
.blog-preview-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 24px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.blog-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.blog-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--gray-dark) 0%, var(--gray-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}

.blog-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.4));
}

.blog-card-body {
  padding: 24px;
}

.blog-tag {
  display: inline-block;
  background: #FFF0F0;
  color: var(--scarlet);
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.blog-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.blog-card p {
  font-size: 0.86rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.blog-meta {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog-meta span { display: flex; align-items: center; gap: 4px; }

/* ===== FOOTER ===== */
footer {
  background: var(--gray-dark);
  color: #AAAACC;
  padding: 52px 24px 28px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-text {
  margin-bottom: 14px;
  display: block;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: #AAAACC;
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-col a:hover { color: #FF9999; }

.footer-bottom {
  max-width: 1100px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
}

.footer-bottom a { color: #AAAACC; text-decoration: none; }
.footer-bottom a:hover { color: white; }

.disclaimer {
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.78rem;
  line-height: 1.6;
  max-width: 1100px;
  margin: 0 auto 24px;
}

/* ===== BLOG PAGE ===== */
.blog-hero {
  background: linear-gradient(135deg, var(--gray-dark), var(--gray-mid));
  padding: 52px 24px;
  text-align: center;
}

.blog-hero h1 {
  font-family: 'DM Serif Display', serif;
  color: white;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}

.blog-hero p { color: #AAAACC; max-width: 520px; margin: 0 auto; }

.blog-listing {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
}

/* ===== POST PAGE ===== */
.post-hero {
  background: linear-gradient(135deg, var(--gray-dark), var(--gray-mid));
  padding: 60px 24px 80px;
  text-align: center;
  position: relative;
}

.post-hero .breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #8888AA;
  margin-bottom: 20px;
}

.post-hero .breadcrumb a { color: #AAAACC; text-decoration: none; }
.post-hero .breadcrumb a:hover { color: white; }
.post-hero .breadcrumb span { color: #555577; }

.post-hero h1 {
  font-family: 'DM Serif Display', serif;
  color: white;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  max-width: 720px;
  margin: 0 auto 20px;
  line-height: 1.2;
}

.post-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #8888AA;
}

.post-meta span { display: flex; align-items: center; gap: 5px; }

.post-layout {
  max-width: 1100px;
  margin: -32px auto 0;
  padding: 0 24px 72px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  position: relative;
  z-index: 5;
}

.post-content {
  background: white;
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.post-content h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  color: var(--text-dark);
  margin: 36px 0 16px;
}

.post-content h2:first-child { margin-top: 0; }

.post-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 24px 0 12px;
}

.post-content p {
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 16px;
}

.post-content ul, .post-content ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.post-content li {
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 6px;
}

.post-content .placeholder-block {
  background: repeating-linear-gradient(
    45deg,
    #F8F8FC,
    #F8F8FC 10px,
    #F0F0F8 10px,
    #F0F0F8 20px
  );
  border: 2px dashed #CCCCEE;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
  color: #8888AA;
  font-size: 0.85rem;
}

.post-content .placeholder-block strong { display: block; font-size: 0.9rem; margin-bottom: 4px; }

.post-content blockquote {
  border-left: 4px solid var(--scarlet);
  padding: 16px 20px;
  margin: 24px 0;
  background: #FFF5F5;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-mid);
}

.post-sidebar { position: sticky; top: 80px; height: fit-content; }

.sidebar-widget {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 24px;
}

.sidebar-widget-header {
  background: var(--gray-dark);
  padding: 16px 20px;
}

.sidebar-widget-header h4 {
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sidebar-widget-body { padding: 20px; }

.sidebar-cta {
  background: linear-gradient(135deg, var(--scarlet) 0%, var(--scarlet-dark) 100%);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  color: white;
  margin-bottom: 24px;
}

.sidebar-cta h4 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.sidebar-cta p { font-size: 0.85rem; opacity: 0.85; margin-bottom: 16px; }

.sidebar-cta a {
  display: block;
  background: white;
  color: var(--scarlet);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 11px;
  border-radius: 8px;
  transition: all 0.2s;
}

.sidebar-cta a:hover { background: var(--gray-light); }

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc-list li a {
  display: block;
  padding: 7px 10px;
  font-size: 0.85rem;
  color: var(--text-mid);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
}

.toc-list li a:hover {
  background: var(--gray-light);
  color: var(--scarlet);
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  .calc-body { grid-template-columns: 1fr; }
  .calc-results { border-top: 1px solid var(--border); border-right: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
}

@media (max-width: 640px) {
  .header-inner { padding: 0 16px; }
  nav { display: none; }
  nav.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--gray-dark); padding: 16px; border-top: 1px solid rgba(255,255,255,0.1); }
  .hamburger { display: flex; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .calc-form { padding: 24px; }
  .post-content { padding: 28px 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ===== ANNUAL VIEW ===== */
.annual-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-mid);
}

.toggle-switch {
  position: relative;
  width: 40px;
  height: 22px;
  cursor: pointer;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 100px;
  transition: background 0.2s;
}

.toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: white;
  border-radius: 50%;
  transition: left 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-switch input:checked ~ .toggle-track { background: var(--scarlet); }
.toggle-switch input:checked ~ .toggle-thumb { left: 21px; }

/* Print */
@media print {
  header, footer, .calc-btn, .calc-reset, nav { display: none; }
  .calc-wrapper { box-shadow: none; border: 1px solid #ccc; }
}
