/* ==========================================================================
   Working Days Calculator - Modern Executive Light Theme Design System
   ========================================================================== */

:root {
  /* Color Palette - Executive Light Theme */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --bg-card-hover: #f8fafc;
  --bg-input: #ffffff;
  --bg-inset: #f8fafc;
  
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-focus: #3b82f6;

  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  /* Accent Colors */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;
  
  --emerald: #059669;
  --emerald-light: #ecfdf5;
  --emerald-border: #a7f3d0;
  
  --amber: #d97706;
  --amber-light: #fffbeb;
  --amber-border: #fde68a;

  --rose: #e11d48;
  --rose-light: #fff1f2;
  
  --purple: #7c3aed;
  --purple-light: #f5f3ff;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);

  /* Layout */
  --container-max: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-main);
  scroll-behavior: smooth;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: 
    radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.03) 0%, transparent 40%),
    var(--bg-main);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Top Announcement Banner
   ========================================================================== */
.top-banner {
  background: linear-gradient(90deg, #1e293b 0%, #0f172a 100%);
  color: #f8fafc;
  font-size: 0.8125rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  text-align: center;
}

.banner-tag {
  background: rgba(37, 99, 235, 0.4);
  border: 1px solid rgba(96, 165, 250, 0.4);
  color: #93c5fd;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
}

.banner-link {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.banner-link:hover {
  color: #93c5fd;
  text-decoration: underline;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.brand-logo:hover .logo-icon {
  transform: translateY(-1px) scale(1.04);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.2;
}

.brand-accent {
  color: var(--primary);
}

.brand-tagline {
  font-size: 0.725rem;
  color: var(--text-muted);
  font-weight: 500;
}

.main-nav {
  display: flex;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.925rem;
  font-weight: 500;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary);
  background-color: var(--primary-light);
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-white);
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

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

.btn-outline {
  background-color: var(--bg-card);
  color: var(--text-secondary);
  border-color: var(--border-medium);
}

.btn-outline:hover {
  background-color: var(--bg-card-subtle);
  color: var(--text-main);
  border-color: var(--text-muted);
}

.btn-sm {
  font-size: 0.8125rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary-border);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 3rem 0 2rem 0;
  text-align: center;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  font-size: 0.825rem;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--primary);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-muted);
  max-width: 760px;
  line-height: 1.6;
  margin-bottom: 2.25rem;
}

/* Hero Stats Strip */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 1000px;
}

.hero-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.15rem 1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
}

.hero-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 0.25rem;
}

.stat-meta {
  font-size: 0.725rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ==========================================================================
   Calculator Hub & Tab Navigation
   ========================================================================== */
.main-content {
  padding: 1.5rem 0 3.5rem 0;
}

.calc-tabs-wrapper {
  margin-bottom: 1.5rem;
}

.calc-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  background-color: var(--bg-card-subtle);
  padding: 0.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.calc-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: transparent;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.calc-tab:hover {
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.6);
}

.calc-tab.active {
  background-color: var(--bg-card);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.tab-badge {
  font-size: 0.675rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  background-color: var(--border-light);
  color: var(--text-muted);
  font-weight: 600;
}

.calc-tab.active .tab-badge {
  background-color: var(--primary-light);
  color: var(--primary);
}

/* Calculator Card & Grid */
.calc-card {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  animation: fadeIn 0.3s ease;
}

.calc-card.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 2.5rem;
  align-items: start;
}

/* Card Header */
.card-header-clean {
  margin-bottom: 1.5rem;
}

.card-heading {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.card-subheading {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Quick Presets Row */
.presets-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding: 0.6rem 0.75rem;
  background-color: var(--bg-card-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.preset-label {
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 0.25rem;
}

.preset-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  font-size: 0.775rem;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.preset-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.preset-chip.active {
  background: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
  font-weight: 600;
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 1.25rem;
}

.form-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.label-info {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary);
}

.label-with-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.preset-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.text-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.725rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.text-btn:hover {
  color: var(--primary-hover);
}

.sep {
  color: var(--text-light);
  font-size: 0.7rem;
}

.form-input, .form-select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-main);
  background-color: var(--bg-input);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  transition: var(--transition);
  outline: none;
}

.form-input:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.input-with-icon {
  position: relative;
}

.input-with-icon .form-input {
  padding-right: 2.25rem;
}

.input-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.input-with-unit {
  position: relative;
}

.input-with-unit .form-input {
  padding-right: 4.5rem;
}

.unit-tag {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card-subtle);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  pointer-events: none;
}

/* Checkbox Cards */
.checkbox-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.toggle-checkbox-card {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.toggle-checkbox-card:hover {
  border-color: var(--border-medium);
  background-color: #ffffff;
}

.toggle-checkbox-card input {
  margin-top: 0.2rem;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.toggle-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.toggle-text strong {
  font-size: 0.8125rem;
  color: var(--text-main);
}

.toggle-text small {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Weekend Days Selector */
.days-checkbox-selector {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.4rem;
}

.day-chip {
  cursor: pointer;
}

.day-chip input {
  display: none;
}

.day-chip-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: var(--transition);
  text-align: center;
}

.day-chip:hover .day-chip-label {
  border-color: var(--border-medium);
}

.day-chip input:checked + .day-chip-label {
  background: var(--slate-100, #e2e8f0);
  border-color: #94a3b8;
  color: #1e293b;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

/* Custom Holidays Accordion */
.custom-holidays-accordion {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-card-subtle);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  background: var(--bg-card);
}

.accordion-summary:hover {
  color: var(--primary);
}

.summary-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.accordion-chevron {
  transition: transform 0.2s ease;
}

details[open] .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-content {
  padding: 1rem;
  border-top: 1px solid var(--border-light);
  background: #ffffff;
}

.add-holiday-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.form-input-sm {
  padding: 0.45rem 0.65rem;
  font-size: 0.8125rem;
}

.custom-holidays-list {
  max-height: 140px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.custom-holiday-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.775rem;
}

.remove-h-btn {
  background: none;
  border: none;
  color: var(--rose);
  cursor: pointer;
  font-weight: bold;
  padding: 0 0.25rem;
}

.empty-state-text {
  font-size: 0.775rem;
  color: var(--text-light);
  font-style: italic;
  text-align: center;
  padding: 0.5rem 0;
}

/* Action Rows */
.calc-actions-row {
  display: flex;
  gap: 0.75rem;
}

/* ==========================================================================
   Results Column
   ========================================================================== */
.calc-results-col {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.results-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.results-actions {
  display: flex;
  gap: 0.5rem;
}

/* Primary Metric Highlight Box */
.primary-result-box {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  border: 1.5px solid var(--primary-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.06);
}

.result-label {
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.primary-number-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.35rem 0 0.75rem 0;
}

.currency-symbol {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
}

.big-metric {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.03em;
}

.metric-unit {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
}

.result-sub-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sub-metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.work-dot { background-color: var(--primary); }
.percent-dot { background-color: var(--emerald); }
.week-dot { background-color: var(--purple); }

/* Breakdown 4-Cards Grid */
.breakdown-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.breakdown-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.card-mini-title {
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.card-mini-val {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 0.2rem;
  line-height: 1.2;
}

.card-mini-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.weekend-card .card-mini-val { color: var(--text-secondary); }
.holiday-card .card-mini-val { color: var(--amber); }

/* SVG Donut Chart Box */
.chart-box-container {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.chart-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.chart-legend-wrap {
  display: flex;
  gap: 0.6rem;
  font-size: 0.7rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-muted);
}

.legend-color {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.legend-work { background-color: var(--primary); }
.legend-weekend { background-color: #cbd5e1; }
.legend-holiday { background-color: var(--amber); }

.donut-chart-wrapper {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.donut-center-pct {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  fill: var(--text-main);
}

.donut-center-label {
  font-size: 0.7rem;
  font-weight: 500;
  fill: var(--text-muted);
}

.donut-side-stats {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.side-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  border-bottom: 1px dashed var(--border-light);
  padding-bottom: 0.3rem;
}

.side-stat-name {
  color: var(--text-muted);
}

.side-stat-val {
  color: var(--text-main);
  font-weight: 600;
}

/* Holidays Encountered in Range */
.holidays-in-range-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

.h-card-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.holidays-pill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.holiday-pill-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--amber-light);
  border: 1px solid var(--amber-border);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
}

.h-date {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--amber);
}

.h-name {
  color: #92400e;
  font-weight: 600;
}

.no-holidays-msg {
  font-size: 0.75rem;
  color: var(--text-light);
  font-style: italic;
}

/* ==========================================================================
   Tab 2: Add / Subtract Business Days Layout
   ========================================================================== */
.direction-toggle-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  background: var(--bg-card-subtle);
  padding: 0.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.dir-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: transparent;
  border: none;
  padding: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.dir-toggle-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.input-with-slider-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  align-items: center;
}

.form-slider {
  width: 100%;
  accent-color: var(--primary);
  cursor: pointer;
}

.quick-step-buttons {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

.step-chip {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.725rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.step-chip:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary-border);
}

.target-date-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  border-color: var(--emerald-border);
}

.primary-date-display {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: var(--emerald);
  margin: 0.5rem 0 0.75rem 0;
  line-height: 1.25;
}

.target-countdown-pill {
  display: inline-block;
  background: #ffffff;
  border: 1px solid var(--emerald-border);
  color: #065f46;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

/* Stepper Horizontal Diagram */
.timeline-diagram-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.timeline-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.stepper-horizontal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 65px;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  border: 2px solid transparent;
}

.step-circle.start-step {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

.step-circle.work-step {
  background: #ffffff;
  border-color: var(--primary);
  color: var(--primary);
}

.step-circle.skip-step {
  background: var(--bg-card-subtle);
  border-color: var(--border-medium);
  color: var(--text-light);
}

.step-circle.target-step {
  background: var(--emerald);
  color: #ffffff;
}

.step-label {
  font-size: 0.675rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.step-sub {
  font-size: 0.625rem;
  color: var(--text-muted);
}

.step-arrow-line {
  flex: 1;
  height: 2px;
  background: var(--border-medium);
  min-width: 20px;
  margin: 0 0.25rem 1.2rem 0.25rem;
}

.pro-tip-box {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.formula-code-inline {
  display: block;
  font-family: var(--font-mono);
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-size: 0.75rem;
  margin-top: 0.35rem;
  word-break: break-all;
}

/* ==========================================================================
   Tab 4: Annual Matrix Table
   ========================================================================== */
.annual-calc-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.annual-control-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 200px;
  gap: 1rem;
  background: var(--bg-card-subtle);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  align-items: flex-end;
}

.annual-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.annual-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.annual-stat-card.highlight-card {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  border-color: var(--primary-border);
}

.a-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.a-val {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 0.25rem;
}

.annual-stat-card.highlight-card .a-val {
  color: var(--primary);
}

.a-sub {
  font-size: 0.725rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Annual Table */
.table-responsive-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.annual-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
  background: #ffffff;
}

.annual-table th {
  background: var(--bg-card-subtle);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.775rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-light);
}

.annual-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-main);
  font-weight: 500;
}

.annual-table tr:hover td {
  background-color: var(--bg-card-subtle);
}

.annual-table tfoot td {
  background: var(--primary-light);
  font-weight: 700;
  color: var(--primary);
  border-top: 2px solid var(--primary-border);
}

/* ==========================================================================
   Section Styling (Diagrams, Formulas, Guides, FAQ)
   ========================================================================== */
.section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--border-light);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem auto;
}

.section-tag {
  display: inline-block;
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.6;
}

/* ==========================================================================
   Visualizer Section (Calendar Matrix Diagram)
   ========================================================================== */
.calendar-visual-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}

.cal-visual-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.cal-visual-legend {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.legend-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.775rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}

.badge-work { background: var(--primary-light); color: var(--primary); border: 1px solid var(--primary-border); }
.badge-weekend { background: var(--bg-card-subtle); color: var(--text-muted); border: 1px solid var(--border-medium); }
.badge-holiday { background: var(--amber-light); color: var(--amber); border: 1px solid var(--amber-border); }
.badge-custom { background: var(--emerald-light); color: var(--emerald); border: 1px solid var(--emerald-border); }

.cal-visual-range-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.days-matrix-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.65rem;
}

.day-cell {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.day-cell:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.day-cell.is-workday {
  border-color: var(--primary-border);
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

.day-cell.is-weekend {
  background: #f8fafc;
  border-color: #e2e8f0;
  opacity: 0.65;
}

.day-cell.is-holiday {
  background: var(--amber-light);
  border-color: var(--amber-border);
}

.day-cell.is-custom-off {
  background: var(--emerald-light);
  border-color: var(--emerald-border);
}

.day-header-dow {
  font-size: 0.675rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
}

.day-number {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.day-cell.is-workday .day-number { color: var(--primary); }
.day-cell.is-holiday .day-number { color: #b45309; }
.day-cell.is-custom-off .day-number { color: #065f46; }

.day-tag {
  font-size: 0.625rem;
  font-weight: 600;
  padding: 0.15rem 0.35rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tag-work { background: var(--primary-light); color: var(--primary); }
.tag-weekend { background: #e2e8f0; color: #64748b; }
.tag-holiday { background: #fef3c7; color: #92400e; }
.tag-custom { background: #d1fae5; color: #065f46; }

.cal-matrix-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-light);
}

.matrix-tip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.775rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Flowchart Section (Diagram 2)
   ========================================================================== */
.flowchart-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: relative;
}

.flow-step-node {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 250px;
}

.flow-step-node:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-border);
}

.node-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.bg-blue { background: var(--primary-light); color: var(--primary); }
.bg-slate { background: var(--bg-card-subtle); color: var(--text-secondary); }
.bg-amber { background: var(--amber-light); color: var(--amber); }
.bg-emerald { background: var(--emerald-light); color: var(--emerald); }

.node-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

.node-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0.2rem 0 0.5rem 0;
}

.node-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 1rem;
  flex: 1;
}

.node-formula {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  width: 100%;
  font-size: 0.75rem;
  text-align: center;
}

.flow-connector {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Formulas Grid
   ========================================================================== */
.formulas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.formula-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.formula-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.formula-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.formula-tag {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.formula-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
}

.formula-latex-display {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  margin-bottom: 1.25rem;
  overflow-x: auto;
}

.formula-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.var-item {
  display: flex;
  gap: 0.75rem;
  font-size: 0.825rem;
  align-items: baseline;
}

.var-name {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--primary);
  min-width: 60px;
}

.var-desc {
  color: var(--text-secondary);
}

.code-snippet-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #0f172a;
  color: #e2e8f0;
  padding: 1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.code-line {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.code-label {
  font-size: 0.675rem;
  color: #94a3b8;
  text-transform: uppercase;
}

.code-line code {
  color: #60a5fa;
}

.card-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   Quarters Grid (2026 Reference)
   ========================================================================== */
.quarters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.quarter-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.quarter-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.q-header {
  margin-bottom: 1.25rem;
}

.q-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.q-badge {
  display: inline-block;
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card-subtle);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  margin-top: 0.25rem;
}

.q-metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  text-align: center;
  background: var(--bg-card-subtle);
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.q-item-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
}

.q-item-lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
}

.q-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.8rem;
}

.q-list-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--border-light);
  padding-bottom: 0.3rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Industry Guides Cards
   ========================================================================== */
.guides-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.guide-item-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.guide-item-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.guide-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.guide-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.guide-text {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-container {
  max-width: 860px;
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--border-medium);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  font-size: 1rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.faq-answer p {
  margin-bottom: 0.75rem;
}

.faq-answer ul, .faq-answer ol {
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}

.faq-answer li {
  margin-bottom: 0.35rem;
}

/* ==========================================================================
   Site Footer
   ========================================================================== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 4rem 0 2rem 0;
  margin-top: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 320px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.85rem;
}

.footer-list a {
  text-decoration: none;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-list a:hover {
  color: var(--primary);
}

.footer-list span {
  color: var(--text-muted);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-badges {
  display: flex;
  gap: 0.6rem;
}

.f-badge {
  font-size: 0.725rem;
  color: var(--text-muted);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .quarters-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .guides-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .annual-control-strip {
    grid-template-columns: 1fr 1fr;
  }
  .flowchart-container {
    flex-direction: column;
  }
  .flow-connector {
    transform: rotate(90deg);
    margin: 0.5rem 0;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: auto;
    padding: 0.85rem 0;
    flex-wrap: wrap;
  }
  .main-nav {
    display: none; /* Accessible via page scrolling */
  }
  .calc-tabs {
    grid-template-columns: 1fr;
  }
  .form-row-two {
    grid-template-columns: 1fr;
  }
  .checkbox-options-grid {
    grid-template-columns: 1fr;
  }
  .annual-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .days-matrix-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .formulas-grid {
    grid-template-columns: 1fr;
  }
  .quarters-grid {
    grid-template-columns: 1fr;
  }
  .guides-cards-grid {
    grid-template-columns: 1fr;
  }
  .donut-chart-wrapper {
    flex-direction: column;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .days-matrix-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-stats-grid {
    grid-template-columns: 1fr;
  }
  .annual-stats-row {
    grid-template-columns: 1fr;
  }
}

/* Print Optimization */
@media print {
  .top-banner, .site-header, .calc-tabs-wrapper, .hero-section, .calc-actions-row, .site-footer {
    display: none !important;
  }
  body {
    background: #ffffff !important;
  }
  .calc-card.active {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
  }
  .calc-grid {
    grid-template-columns: 1fr !important;
  }
}
