/* ============================================
   MACROLOG CALCULATORS - Styles
   Updated: 2026-03-11
   ============================================ */

/* Hero */
.calc-hero {
  padding: 100px 24px 40px;
  text-align: center;
  background: var(--bg-main);
}
.calc-hero-container {
  max-width: 700px;
  margin: 0 auto;
}
.calc-hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sage);
  background: rgba(90, 112, 97, 0.1);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.calc-hero-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 12px;
}
.calc-hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Section */
.calc-section {
  padding: 0 24px 32px;
}
.calc-container {
  max-width: 720px;
  margin: 0 auto;
}

/* Card */
.calc-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

/* Form layout */
.calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.calc-row-3 {
  grid-template-columns: 1fr 1fr 1fr;
}
.calc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.calc-field-full {
  grid-column: 1 / -1;
}
.calc-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.calc-input {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: var(--font-display);
  color: var(--text-primary);
  background: var(--bg-main);
  transition: border-color 0.2s;
  width: 100%;
}
.calc-input:focus {
  outline: none;
  border-color: var(--sage);
  background: #fff;
}
.calc-select {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font-display);
  color: var(--text-primary);
  background: var(--bg-main);
  cursor: pointer;
  transition: border-color 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23777' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  width: 100%;
}
.calc-select:focus {
  outline: none;
  border-color: var(--sage);
}

/* Toggle (metric / imperial) */
.unit-toggle {
  display: flex;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
}
.unit-btn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--text-muted);
  transition: all 0.15s;
}
.unit-btn.active {
  background: var(--bg-elevated);
  color: var(--text-primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* Sex selector */
.sex-selector {
  display: flex;
  gap: 8px;
}
.sex-btn {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-main);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--text-secondary);
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.sex-btn.active {
  border-color: var(--sage);
  background: rgba(90, 112, 97, 0.07);
  color: var(--sage);
}

/* Results */
.calc-results {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: none;
}
.calc-results.visible {
  display: block;
}
.results-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}
.result-primary {
  text-align: center;
  padding: 28px;
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}
.result-number {
  font-family: var(--font-mono);
  font-size: 52px;
  font-weight: 700;
  color: var(--sage);
  letter-spacing: -2px;
  line-height: 1;
}
.result-unit {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--sage-light);
  margin-left: 4px;
}
.result-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 6px;
  font-weight: 500;
}
.result-sublabel {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Goals grid */
.goals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.calc-info-container .goals-grid {
  margin-bottom: 0;
}
.goal-card {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  text-align: center;
}
.goal-value {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.goal-label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}
.goal-card.lose {
  background: rgba(212, 165, 116, 0.08);
  border-color: rgba(212, 165, 116, 0.3);
}
.goal-card.maintain {
  background: rgba(90, 112, 97, 0.07);
  border-color: rgba(90, 112, 97, 0.25);
}
.goal-card.gain {
  background: rgba(139, 127, 196, 0.07);
  border-color: rgba(139, 127, 196, 0.25);
}
.goal-card-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.goal-card-number {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.goal-card.lose .goal-card-number { color: var(--amber-dark); }
.goal-card.maintain .goal-card-number { color: var(--sage); }
.goal-card.gain .goal-card-number { color: #8B7FC4; }
.goal-card-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Macro row */
.macro-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.macro-item {
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  text-align: center;
  background: var(--bg-subtle);
}
.macro-item-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.macro-item-val {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
}
.macro-item.protein .macro-item-val { color: var(--protein); }
.macro-item.carbs .macro-item-val { color: var(--carbs); }
.macro-item.fat .macro-item-val { color: var(--fat); }
.macro-item-unit {
  font-size: 11px;
  color: var(--text-muted);
}

/* Result note */
.result-note {
  font-size: 13px;
  color: var(--text-muted);
  padding: 12px 16px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--border);
  line-height: 1.5;
}

/* Inline hint under inputs */
.calc-hint {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: -4px;
}

/* Info callout box for educational content sections */
.calc-info-box {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 16px 20px;
  background: rgba(90, 112, 97, 0.05);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--sage);
  line-height: 1.6;
  margin: 16px 0;
}
.calc-info-box strong {
  color: var(--text-primary);
}
.calc-info-box em {
  color: var(--sage);
  font-style: normal;
  font-weight: 600;
}

/* Calculator CTA */
.calc-cta {
  margin-top: 24px !important;
  margin-bottom: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 720px !important;
  padding: 40px 48px !important;
  background: #111 !important;
  border-radius: 16px;
  text-align: center;
  color: #fff;
}
.calc-cta-title {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.calc-cta-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 28px;
  line-height: 1.4;
}
.calc-cta-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.calc-cta .store-btn {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: #111;
  border: none;
  border-radius: 12px;
  padding: 10px 20px;
  text-decoration: none;
  gap: 10px;
  transition: all 0.2s ease;
}
.calc-cta .store-btn:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.calc-cta .store-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.calc-cta .store-text {
  text-align: left;
}
.calc-cta .store-label {
  font-size: 10px;
  color: #666;
  display: block;
  line-height: 1;
  margin-bottom: 2px;
  font-weight: 400;
}
.calc-cta .store-name {
  font-size: 15px;
  font-weight: 600;
  display: block;
  line-height: 1.2;
  color: #111;
}

/* Related calculators */
.related-calcs {
  margin-top: 48px;
}
.related-calcs-title {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.related-calcs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.related-calc-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}
.related-calc-card::after {
  content: '›';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: #999;
  font-weight: 400;
  transition: all 0.2s ease;
}
.related-calc-card:hover {
  border-color: var(--sage);
  background: #fafafa;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.related-calc-card:hover::after {
  color: var(--sage);
  right: 12px;
}
.related-calc-icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f7f7;
  border-radius: 10px;
}
.related-calc-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.related-calc-desc {
  font-size: 12px;
  color: #767676;
  margin-top: 2px;
}

/* Hub page */
.calcs-hub {
  padding: 0 24px 80px;
}
.calcs-hub-container {
  max-width: 760px;
  margin: 0 auto;
}

/* Category sections */
.calc-hub-category {
  margin-bottom: 40px;
}
.calc-hub-category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.calc-hub-category-icon {
  font-size: 20px;
  line-height: 1;
}
.calc-hub-category-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.calc-hub-category-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 2px 8px;
  border-radius: 100px;
  margin-left: auto;
}

/* List items */
.calc-hub-list {
  display: flex;
  flex-direction: column;
}
.calc-hub-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.15s;
}
.calc-hub-list-item:last-child {
  border-bottom: none;
}
.calc-hub-list-item:hover {
  background: rgba(90, 112, 97, 0.04);
  border-color: rgba(90, 112, 97, 0.12);
  border-radius: var(--radius-md);
}
.calc-hub-list-item:hover + .calc-hub-list-item {
  border-top-color: transparent;
}
.calc-hub-list-icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
  line-height: 1;
}
.calc-hub-list-content {
  flex: 1;
  min-width: 0;
}
.calc-hub-list-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.calc-hub-list-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.calc-hub-list-kcal {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 12px;
  color: var(--text-secondary);
}
.calc-hub-list-arrow {
  flex-shrink: 0;
  font-size: 14px;
  color: var(--text-muted);
  transition: all 0.15s;
}
.calc-hub-list-item:hover .calc-hub-list-arrow {
  color: var(--sage);
  transform: translateX(2px);
}
.calc-hub-list-item:hover .calc-hub-list-name {
  color: var(--sage);
}

/* Legacy grid cards (kept for backwards compat, unused on hub) */
.calcs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.calc-hub-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s;
}
.calc-hub-card:hover {
  border-color: var(--sage);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.calc-hub-icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.calc-hub-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}
.calc-hub-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}
.calc-hub-cta {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sage);
  display: flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 600px) {
  .calc-hub-list-desc {
    display: none;
  }
  .calc-hub-list-item {
    padding: 12px 12px;
    gap: 10px;
  }
}

/* BMI Scale */
.bmi-scale {
  margin: 24px 0;
  position: relative;
}
.bmi-scale-bar {
  display: flex;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  gap: 2px;
}
.bmi-scale-segment {
  height: 100%;
  border-radius: 4px;
}
.bmi-underweight { background: #64B5F6; }
.bmi-normal { background: #66BB6A; }
.bmi-overweight { background: #FFA726; }
.bmi-obese { background: #EF5350; }
.bmi-scale-marker {
  position: absolute;
  top: -4px;
  transform: translateX(-50%);
  transition: left 0.3s ease;
}
.bmi-marker-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text-primary);
  border: 3px solid var(--bg-elevated);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.bmi-scale-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}
.bmi-scale-labels span {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
}

/* BMI category colors for result box */
.bmi-cat-underweight { background: rgba(100, 181, 246, 0.1); }
.bmi-cat-underweight .result-number { color: #1E88E5; }
.bmi-cat-normal { background: rgba(102, 187, 106, 0.1); }
.bmi-cat-normal .result-number { color: #43A047; }
.bmi-cat-overweight { background: rgba(255, 167, 38, 0.1); }
.bmi-cat-overweight .result-number { color: #F57C00; }
.bmi-cat-obese { background: rgba(239, 83, 80, 0.1); }
.bmi-cat-obese .result-number { color: #E53935; }

/* BMI metrics grid */
.bmi-metrics-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

/* Info sections (educational content below calculators) */
.calc-info-section {
  margin-top: 32px;
  padding: 0 24px;
}
.calc-info-section + .calc-info-section {
  margin-top: 40px;
}
.calc-info-container {
  max-width: 720px;
  margin: 0 auto;
}
.calc-info-container h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.calc-info-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.calc-info-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
/* The global rule is `a { color: inherit; text-decoration: none }`, which makes
   links inside body copy indistinguishable from the text around them. Restore
   them here so in-content links are actually clickable-looking. */
.calc-info-text a,
.calc-info-list a,
.calc-info-box a,
.calc-source a {
  color: var(--sage);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.calc-info-text a:hover,
.calc-info-list a:hover,
.calc-info-box a:hover,
.calc-source a:hover {
  color: var(--sage-dark);
}
.calc-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.calc-info-list li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.calc-info-list li:last-child { border-bottom: none; }
.calc-info-list li strong {
  color: var(--text-primary);
}

/* Nutrition/WHO table */
.calc-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.calc-table th {
  text-align: left;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
}
.calc-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
}
.calc-table tr:last-child td {
  border-bottom: none;
}
.calc-table td:last-child {
  text-align: right;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 13px;
  color: var(--text-primary);
  white-space: nowrap;
}
.calc-source {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.calc-table-highlight {
  background: rgba(90, 112, 97, 0.06);
}
.calc-table-highlight td {
  color: var(--text-primary);
  font-weight: 600;
}
.bmi-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

/* Risk cards */
.calc-risk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.calc-risk-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
}
.calc-risk-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}
.calc-risk-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.calc-risk-list li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 5px 0 5px 16px;
  position: relative;
  line-height: 1.5;
}
.calc-risk-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

/* Formula cards */
.calc-formula-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.calc-formula-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
}
.calc-formula-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.calc-formula-math {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--sage);
  margin-bottom: 8px;
}
.calc-formula-example {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* WHR Scale */
.whr-scale {
  margin: 24px 0;
  position: relative;
}
.whr-scale-bar {
  display: flex;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  gap: 2px;
}
.whr-scale-segment {
  height: 100%;
  border-radius: 4px;
}
.whr-low { background: #66BB6A; }
.whr-moderate { background: #FFA726; }
.whr-high { background: #EF5350; }
.whr-scale-marker {
  position: absolute;
  top: -4px;
  transform: translateX(-50%);
  transition: left 0.3s ease;
}
.whr-marker-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text-primary);
  border: 3px solid var(--bg-elevated);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.whr-scale-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}
.whr-scale-labels span {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
}

/* WHR category colors for result box */
.whr-cat-low { background: rgba(102, 187, 106, 0.1); }
.whr-cat-low .result-number { color: #43A047; }
.whr-cat-moderate { background: rgba(255, 167, 38, 0.1); }
.whr-cat-moderate .result-number { color: #F57C00; }
.whr-cat-high { background: rgba(239, 83, 80, 0.1); }
.whr-cat-high .result-number { color: #E53935; }

/* Responsive */
@media (max-width: 600px) {
  .calc-card { padding: 24px 20px; }
  .calc-row { grid-template-columns: 1fr; }
  .calc-row-3 { grid-template-columns: 1fr; }
  .goals-grid { grid-template-columns: 1fr; }
  .bmi-metrics-grid { grid-template-columns: 1fr 1fr; }
  .macro-row { grid-template-columns: repeat(3, 1fr); }
  .result-number { font-size: 40px; }
  .calc-hero { padding: 80px 20px 32px; }
  .calc-section { padding: 0 16px 24px; }
  .calc-info-section { padding: 0 16px; }
  .calc-cta { padding: 32px 24px !important; margin-left: 16px !important; margin-right: 16px !important; }
  .calc-cta-title { font-size: 20px; }
  .calc-cta .store-btn { padding: 10px 16px; }
  .related-calcs-grid { grid-template-columns: 1fr; }
  .calc-risk-grid { grid-template-columns: 1fr; }
  .calc-formula-grid { grid-template-columns: 1fr; }
}
