/* ==========================================================================
   doineedelectrolytes.com — Shared Styles
   ========================================================================== */

/* Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* CSS Custom Properties */
:root {
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --primary-light: #4a95f0;
  --primary-ultra-light: #e8f0fe;
  --bg: #ffffff;
  --bg-alt: #f8f9fa;
  --bg-subtle: #f1f3f5;
  --text: #111827;
  --text-secondary: #6b7280;
  --text-tertiary: #9ca3af;
  --border: #e5e7eb;
  --border-light: #f0f0f0;
  --highlight: #eff6ff;
  --highlight-border: #bfdbfe;
  --success: #059669;
  --success-bg: #ecfdf5;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --danger: #dc2626;
  --radius: 12px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --max-width: 1120px;
  --nav-height: 56px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 8px 16px rgba(0, 0, 0, 0.06), 0 16px 48px rgba(0, 0, 0, 0.08);
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--primary-dark);
}

/* Focus-visible — Apple-quality keyboard accessibility */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Selection */
::selection {
  background: var(--primary-ultra-light);
  color: var(--text);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide {
  max-width: none;
  padding: 0 40px;
}

.section {
  padding: 48px 0;
}

.section--alt {
  background: var(--bg-alt);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav__brand {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.nav__brand:hover {
  color: var(--text);
  text-decoration: none;
}

.nav__links {
  display: flex;
  gap: 4px;
  list-style: none;
}

.nav__link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 999px;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav__link:hover {
  background: var(--bg-alt);
  color: var(--text);
  text-decoration: none;
}

.nav__link--active {
  color: var(--primary);
  background: var(--highlight);
  font-weight: 600;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  background: linear-gradient(180deg, var(--text) 0%, #374151 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 1.75rem;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.125rem;
  letter-spacing: -0.015em;
}

h4 {
  font-size: 1rem;
}

.subtitle {
  font-size: 1.0625rem;
  color: #4b5563;
  max-width: 580px;
  line-height: 1.65;
}

.section__header {
  margin-bottom: 36px;
}

.section__header h2 {
  margin-bottom: 10px;
}

.timestamp {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-alt);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

/* ==========================================================================
   Hero / Page Header
   ========================================================================== */

.hero {
  padding: 40px 0 24px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border) 50%, transparent 100%);
}

.hero h1 {
  margin-bottom: 14px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero .subtitle {
  margin: 0 auto 0;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.card--highlight {
  border-color: var(--highlight-border);
  background: var(--highlight);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  line-height: 1.4;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.1s;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 3px rgba(26, 115, 232, 0.3);
}

.btn--primary:hover {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border);
}

.btn--outline:hover {
  background: var(--highlight);
  border-color: var(--highlight-border);
  color: var(--primary-dark);
}

.btn--sm {
  font-size: 0.8125rem;
  padding: 8px 18px;
}

.btn--lg {
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: var(--radius);
}

/* ==========================================================================
   Tables
   ========================================================================== */

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead {
  background: var(--bg-subtle);
}

th {
  text-align: left;
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  padding: 10px 14px;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
  cursor: default;
}

th[data-sort] {
  cursor: pointer;
  user-select: none;
}

th[data-sort]:hover {
  color: var(--text);
  background: var(--bg-subtle);
}

th .sort-arrow {
  display: inline-block;
  margin-left: 3px;
  opacity: 0.35;
  font-size: 0.625rem;
}

th.sorted .sort-arrow {
  opacity: 1;
  color: var(--primary);
}

td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr {
  transition: background 0.15s ease;
}

tbody tr:hover {
  background: var(--bg-alt);
}

tr.row--highlight {
  background: var(--highlight);
}

tr.row--highlight td {
  font-weight: 500;
  color: var(--text);
}

tr.row--highlight td:first-child {
  position: relative;
}

tr.row--highlight td:first-child::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--primary);
  border-radius: 0 2px 2px 0;
}

tr.row--highlight:hover {
  background: #dbeafe;
}

tr.row--diy {
  color: var(--text-secondary);
  font-style: italic;
}

tr.row--lowsodium {
  color: var(--text-secondary);
}

tr.row--lowsodium td {
  opacity: 0.55;
}

tr.row--lowsodium:hover td {
  opacity: 0.85;
}

.cell--brand {
  font-weight: 600;
  color: var(--text);
}

.cell--brand a {
  color: var(--text);
  text-decoration: none;
}

.cell--brand a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Sticky first column (Brand) */
#compare-table th:first-child,
#compare-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--bg);
}

#compare-table thead th:first-child {
  background: var(--bg-subtle);
  z-index: 3;
}

#compare-table tbody tr:hover td:first-child {
  background: var(--bg-alt);
}

.cell--savings {
  color: var(--success);
  font-weight: 600;
}

.cell--negative {
  color: var(--danger);
  font-weight: 500;
}

.cell--links {
  white-space: nowrap;
}

.cell--links a {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  margin-right: 8px;
}

.cell--links a:hover {
  text-decoration: underline;
}

.sodium-note {
  display: block;
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--text-secondary);
  font-style: normal;
  white-space: normal;
  line-height: 1.35;
  margin-top: 2px;
}

/* ==========================================================================
   Calculator Controls
   ========================================================================== */

.calc-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.calc-controls label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.serving-selector {
  display: inline-flex;
  background: var(--bg-subtle);
  border-radius: var(--radius);
  padding: 3px;
  gap: 2px;
}

.serving-btn {
  width: 44px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

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

.serving-btn--active {
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   Callout Box
   ========================================================================== */

.callout {
  background: var(--highlight);
  border: 1px solid var(--highlight-border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  position: relative;
}

.callout--success {
  background: var(--success-bg);
  border-color: #a7f3d0;
}

.callout strong {
  font-weight: 700;
  color: var(--text);
}

/* ==========================================================================
   Bar Chart (CSS-based)
   ========================================================================== */

.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 28px 0;
}

.bar-chart__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bar-chart__label {
  width: 160px;
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: right;
  color: var(--text-secondary);
}

.bar-chart__track {
  flex: 1;
  background: var(--bg-subtle);
  border-radius: 8px;
  height: 36px;
  position: relative;
  overflow: hidden;
}

.bar-chart__fill {
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  display: flex;
  align-items: center;
  padding-left: 12px;
  min-width: fit-content;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-chart__fill--highlight {
  background: linear-gradient(135deg, #34d399, var(--success));
}

.bar-chart__fill--diy {
  background: var(--text-secondary);
}

.bar-chart__value {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  padding-right: 8px;
}

/* ==========================================================================
   FAQ / Accordion
   ========================================================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.25s, border-color 0.25s;
}

.faq-item:hover {
  box-shadow: var(--shadow-sm);
}

.faq-item--open {
  border-color: var(--highlight-border);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  background: var(--bg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text);
  transition: background 0.15s;
}

.faq-question:hover {
  background: var(--bg-alt);
}

.faq-question::after {
  content: '+';
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: transform 0.2s;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-alt);
}

.faq-item--open .faq-question::after {
  content: '\2212';
  background: var(--highlight);
  color: var(--primary);
}

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

.faq-answer p {
  margin-bottom: 12px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

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

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
  text-align: center;
  padding: 72px 0;
  background: linear-gradient(180deg, var(--bg-alt) 0%, #eef2f7 50%, var(--bg-alt) 100%);
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border) 50%, transparent 100%);
}

.section--alt .cta-section,
.section--alt.cta-section {
  background: linear-gradient(180deg, var(--bg-alt) 0%, #eaeff5 50%, var(--bg-alt) 100%);
}

.cta-section h2 {
  margin-bottom: 10px;
}

.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 1.0625rem;
}

/* ==========================================================================
   Quiz Styles
   ========================================================================== */

.quiz-container {
  max-width: 600px;
  margin: 0 auto;
}

/* Progress bar */
.progress-bar {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 36px;
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Question card */
.quiz-question {
  display: none;
}

.quiz-question--active {
  display: block;
  animation: fadeIn 0.25s ease;
}

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

.quiz-question h2 {
  font-size: 1.375rem;
  margin-bottom: 24px;
  line-height: 1.3;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.9375rem;
  background: var(--bg);
  line-height: 1.5;
}

.quiz-option:hover {
  border-color: var(--primary-light);
  background: var(--highlight);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.quiz-option--selected {
  border-color: var(--primary);
  background: var(--highlight);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-sm);
  transform: translateY(-1px);
}

.quiz-option--multi {
  /* For multi-select question */
}

.quiz-option__check {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: all 0.15s;
}

.quiz-option--multi .quiz-option__check {
  border-radius: var(--radius-sm);
}

.quiz-option--selected .quiz-option__check {
  background: var(--primary);
  border-color: var(--primary);
}

.quiz-option--selected .quiz-option__check::after {
  content: '';
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
}

.quiz-option--multi.quiz-option--selected .quiz-option__check::after {
  width: 10px;
  height: 6px;
  background: transparent;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  border-radius: 0;
  transform: rotate(-45deg);
  margin-top: -2px;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.quiz-nav__back {
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.15s;
}

.quiz-nav__back:hover {
  color: var(--text);
}

.quiz-nav__next {
  margin-left: auto;
}

/* Results */
.quiz-result {
  display: none;
}

.quiz-result--active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.result-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.result-badge--no {
  background: var(--success-bg);
  color: var(--success);
}

.result-badge--maybe {
  background: var(--warning-bg);
  color: var(--warning);
}

.result-badge--yes {
  background: var(--highlight);
  color: var(--primary);
}

.result-estimate {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 24px 0;
  border: 1px solid var(--border-light);
  text-align: center;
}

.result-estimate__label {
  font-size: 0.6875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.result-estimate__value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text);
  margin: 4px 0;
  letter-spacing: -0.02em;
}

.result-estimate__note {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.result-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 28px 0;
}

.disclaimer {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 16px 20px;
  line-height: 1.65;
  margin-top: 28px;
  border: 1px solid var(--border-light);
}

.disclaimer strong {
  color: var(--text-secondary);
  font-weight: 600;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__text p {
  margin-bottom: 3px;
}

.footer__links {
  display: flex;
  gap: 16px;
}

.footer__links a {
  color: var(--text-tertiary);
  font-size: 0.8125rem;
  transition: color 0.15s;
}

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

/* ==========================================================================
   Utilities
   ========================================================================== */

.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
  h1 {
    font-size: 1.875rem;
  }

  h2 {
    font-size: 1.375rem;
  }

  .section {
    padding: 40px 0;
  }

  .hero {
    padding: 32px 0 20px;
  }

  .container {
    padding: 0 16px;
  }

  .nav__brand {
    font-size: 0.8125rem;
  }

  .nav__link {
    font-size: 0.75rem;
    padding: 5px 10px;
  }

  .card {
    padding: 22px 18px;
    border-radius: var(--radius);
  }

  th, td {
    padding: 9px 10px;
    font-size: 0.75rem;
  }

  th {
    font-size: 0.625rem;
  }

  .bar-chart__label {
    width: 90px;
    font-size: 0.6875rem;
  }

  .bar-chart__track {
    height: 30px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 12px;
  }

  .calc-controls {
    flex-direction: column;
    gap: 10px;
  }

  .quiz-question h2 {
    font-size: 1.25rem;
  }

  .cta-section {
    padding: 56px 0;
  }

  .result-links {
    gap: 8px;
  }

  .result-links .btn {
    font-size: 0.8125rem;
    padding: 12px 20px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  .nav__links {
    gap: 2px;
  }

  .nav__link {
    font-size: 0.6875rem;
    padding: 5px 7px;
  }

  .btn--lg {
    font-size: 0.9375rem;
    padding: 12px 24px;
  }

  .serving-btn {
    width: 40px;
    height: 34px;
    font-size: 0.875rem;
  }

  .hero {
    padding: 28px 0 20px;
  }
}
