/* ============================================================
   © Copyright SuperYummyRecipes.com
   ============================================================ */

/* --- DESIGN TOKENS --- */
:root {
  --color-bg-outer: #e8f0f7;
  --color-bg-hero: linear-gradient(180deg, #d6e8f5 0%, #e8f2fa 50%, #f4f8fd 100%);
  --color-bg-card: #ffffff;
  --color-bg-input: #f0f5fa;
  --color-bg-input-hover: #e8f0f7;
  --color-border: #cddbe9;
  --color-border-focus: #3a7db5;
  --color-primary: #3a7db5;
  --color-primary-dark: #2d6494;
  --color-primary-light: #5a9fd4;
  --color-accent: #4a9fd4;
  --color-accent-soft: rgba(74,159,212,0.12);
  --color-accent-glow: rgba(74,159,212,0.25);
  --color-text-heading: #1a3a5c;
  --color-text-body: #4a5e72;
  --color-text-label: #2d5e7e;
  --color-text-muted: #7a96a8;
  --color-text-white: #ffffff;
  --color-result-bg: #f7fafd;
  --color-result-active: #deeef8;
  --color-result-border-active: #3a7db5;
  --color-success: #2e8b57;
  --color-error: #c0392b;
  --color-error-bg: #fdf0ee;
  --color-mountain: rgba(150,190,220,0.3);
  --color-tab-active-bg: #3a7db5;
  --color-tab-inactive: #4a6e8a;
  --color-row-alt: #f5f9fd;
  --color-table-head: #e8f0f7;

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-card: 18px;
  --radius-input: 10px;
  --radius-pill: 50px;
  --radius-btn: 12px;
  --radius-result: 12px;
  --radius-icon: 10px;

  --shadow-card: 0 8px 32px rgba(58,125,181,0.09), 0 2px 8px rgba(58,125,181,0.05);
  --shadow-card-hover: 0 14px 44px rgba(58,125,181,0.14), 0 4px 12px rgba(58,125,181,0.08);
  --shadow-input-focus: 0 0 0 3px rgba(58,125,181,0.18);
  --shadow-btn: 0 4px 20px rgba(58,125,181,0.38);
  --shadow-btn-hover: 0 8px 30px rgba(58,125,181,0.52);
  --shadow-result-active: 0 4px 16px rgba(58,125,181,0.18);

  --transition-fast: 150ms ease;
  --transition-base: 220ms ease;
  --transition-slow: 340ms ease;
}

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

#altitude-baking-tool {
  font-family: var(--font-body);
  color: var(--color-text-body);
  background: var(--color-bg-outer);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#altitude-baking-tool *:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* --- WRAPPER --- */
.abt-wrapper.abt-wrapper {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.abt-hero.abt-hero {
  background: var(--color-bg-hero);
  border-radius: var(--radius-card);
  margin-bottom: 24px;
  padding: 52px 40px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  opacity: 0;
  animation: abt-fade-in-up 0.7s ease-out 0.1s forwards;
  background-image: url("Bottom-Mountains.png");
  background-size: contain;
  background-position: bottom;
  background-repeat: no-repeat;
}

.abt-hero-particles.abt-hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.abt-particle.abt-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(74,159,212,0.18);
  animation: abt-float linear infinite;
}
.abt-particle.abt-particle:nth-child(1) { left: 8%;  top: 30%; width:4px;height:4px; animation-duration:14s; animation-delay:0s; }
.abt-particle.abt-particle:nth-child(2) { left: 20%; top: 60%; width:5px;height:5px; animation-duration:18s; animation-delay:-4s; }
.abt-particle.abt-particle:nth-child(3) { left: 75%; top: 25%; width:4px;height:4px; animation-duration:16s; animation-delay:-7s; }
.abt-particle.abt-particle:nth-child(4) { left: 88%; top: 55%; width:3px;height:3px; animation-duration:12s; animation-delay:-2s; }
.abt-particle.abt-particle:nth-child(5) { left: 50%; top: 15%; width:5px;height:5px; animation-duration:20s; animation-delay:-9s; }

@keyframes abt-float {
  0% { transform: translateY(0px) translateX(0px); opacity: 0.6; }
  33% { transform: translateY(-18px) translateX(8px); opacity: 0.3; }
  66% { transform: translateY(-8px) translateX(-6px); opacity: 0.5; }
  100% { transform: translateY(0px) translateX(0px); opacity: 0.6; }
}

.abt-hero-mountain.abt-hero-mountain {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  max-width: 520px;
  height: auto;
  opacity: 0.55;
  pointer-events: none;
}

.abt-mountain-path.abt-mountain-path {
  stroke: var(--color-mountain);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: abt-draw-mountain 2s ease-out 0.6s forwards;
}

@keyframes abt-draw-mountain {
  to { stroke-dashoffset: 0; }
}

.abt-hero-icon.abt-hero-icon {
  margin: 0 auto 16px;
  width: 120px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: abt-fade-in-up 0.5s ease-out 0.3s forwards;
}

.abt-hero-icon.abt-hero-icon svg {
  width: 48px;
  height: 48px;
  color: var(--color-primary);
}

.abt-hero.abt-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  font-weight: 700;
  color: var(--color-text-heading);
  line-height: 1.2;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: abt-fade-in-up 0.6s ease-out 0.4s forwards;
}

.abt-hero.abt-hero p {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: var(--color-text-muted);
  font-weight: 300;
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: abt-fade-in-up 0.6s ease-out 0.55s forwards;
}

/* ============================================================
   TWO-COLUMN TOOL LAYOUT
   ============================================================ */
.abt-tool-layout.abt-tool-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 22px;
  align-items: start;
}

/* ============================================================
   CARDS
   ============================================================ */
.abt-card.abt-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px 26px;
  border: 1px solid rgba(205,219,233,0.5);
}

.abt-card-title.abt-card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text-heading);
  margin-bottom: 2px;
}

.abt-card-subtitle.abt-card-subtitle {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

/* ============================================================
   LEFT PANEL — FORM
   ============================================================ */
.abt-left-panel.abt-left-panel {
  opacity: 0;
  animation: abt-slide-in-left 0.65s ease-out 0.5s forwards;
}

/* Section label */
.abt-field-label.abt-field-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-label);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  margin-top: 18px;
}
.abt-field-label.abt-field-label:first-of-type { margin-top: 0; }

/* --- TAB TOGGLE --- */
.abt-tabs.abt-tabs {
  display: flex;
  background: var(--color-bg-input);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
  margin-bottom: 14px;
  border: 1px solid var(--color-border);
}

.abt-tab.abt-tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-tab-inactive);
  cursor: pointer;
  transition: background var(--transition-base), color var(--transition-base), box-shadow var(--transition-base);
  white-space: nowrap;
}

/* Explicit hover — prevents Elementor's global button :hover styles bleeding in */
#altitude-baking-tool .abt-tab.abt-tab:hover:not(.active) {
  background: rgba(58,125,181,0.10);
  color: var(--color-tab-inactive);
  box-shadow: none;
}

#altitude-baking-tool .abt-tab.abt-tab:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.abt-tab.abt-tab.active {
  background: var(--color-tab-active-bg);
  color: var(--color-text-white);
  box-shadow: 0 2px 10px rgba(58,125,181,0.3);
}

#altitude-baking-tool .abt-tab.abt-tab.active:hover {
  background: var(--color-tab-active-bg);
  color: var(--color-text-white);
  box-shadow: 0 2px 10px rgba(58,125,181,0.3);
}

/* --- INPUT GROUP --- */
.abt-input-row.abt-input-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.abt-input.abt-input {
  flex: 1;
  padding: 11px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-input);
  background: var(--color-bg-input);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text-heading);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  width: 100%;
  -webkit-appearance: none;
}

.abt-input.abt-input:hover { background: var(--color-bg-input-hover); }

.abt-input.abt-input:focus {
  outline: none;
  border-color: var(--color-border-focus);
  box-shadow: var(--shadow-input-focus);
  background: #ffffff;
}

.abt-input.abt-input.error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.12);
}

.abt-input.abt-input::placeholder { color: var(--color-text-muted); }

.abt-select-wrap.abt-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.abt-select-wrap.abt-select-wrap::after {
  content: '';
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--color-text-muted);
  pointer-events: none;
  transition: transform var(--transition-base);
}

.abt-select.abt-select {
  padding: 11px 34px 11px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-input);
  background: var(--color-bg-input);
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-text-heading);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.abt-select.abt-select:focus {
  outline: none;
  border-color: var(--color-border-focus);
  box-shadow: var(--shadow-input-focus);
  background: #ffffff;
}

.abt-select.abt-select.abt-unit-select.abt-unit-select {
  width: 80px;
  flex-shrink: 0;
  padding-left: 10px;
}

.abt-select.abt-select.abt-food-select.abt-food-select {
  width: 100%;
}

/* Hint text */
.abt-hint.abt-hint {
  display: block;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: 6px;
  margin-bottom: 10px;
}

/* Error message */
.abt-error-msg.abt-error-msg {
  display: none;
  font-size: 0.72rem;
  color: var(--color-error);
  margin-top: 4px;
  font-weight: 500;
}
.abt-error-msg.abt-error-msg.visible { display: block; }

/* Success altitude detected */
.abt-altitude-detected.abt-altitude-detected {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(46,139,87,0.08);
  border-radius: 8px;
  border: 1px solid rgba(46,139,87,0.2);
  font-size: 0.75rem;
  color: var(--color-success);
  font-weight: 500;
}
.abt-altitude-detected.abt-altitude-detected.visible { display: flex; margin-bottom: 10px; }

/* Zip loading */
.abt-zip-loading.abt-zip-loading {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}
.abt-zip-loading.abt-zip-loading.visible { display: flex; }

.abt-spinner-sm.abt-spinner-sm {
  width: 14px;
  height: 14px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: abt-spin 0.7s linear infinite;
  flex-shrink: 0;
}

/* --- COLLAPSIBLE RECIPE DETAILS --- */
.abt-collapsible-header.abt-collapsible-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--color-bg-input);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-input);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  margin-top: 14px;
  user-select: none;
}

.abt-collapsible-header.abt-collapsible-header:hover {
  background: var(--color-bg-input-hover);
  border-color: var(--color-primary-light);
}

.abt-collapsible-header.abt-collapsible-header span {
  font-size: 0.82rem;
  color: var(--color-text-label);
  font-weight: 500;
  line-height: 1.35;
}

.abt-collapsible-chevron.abt-collapsible-chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
  transition: transform var(--transition-base);
}
.abt-collapsible-header.abt-collapsible-header.open .abt-collapsible-chevron.abt-collapsible-chevron { transform: rotate(180deg); }

.abt-collapsible-body.abt-collapsible-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}
.abt-collapsible-body.abt-collapsible-body.open { max-height: 600px; }

.abt-recipe-fields.abt-recipe-fields {
  padding: 14px 4px 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.abt-recipe-field.abt-recipe-field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.abt-recipe-field.abt-recipe-field .abt-input-row.abt-input-row {
  gap: 5px;
}

.abt-recipe-field.abt-recipe-field .abt-input.abt-input {
  font-size: 0.8rem;
  padding: 8px 10px;
}
.abt-recipe-field.abt-recipe-field .abt-select.abt-select.abt-unit-select.abt-unit-select {
  font-size: 0.75rem;
  padding: 8px 28px 8px 8px;
  width: 70px;
}

/* --- CALCULATE BUTTON --- */
.abt-btn-calculate.abt-btn-calculate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 20px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #3a7db5 0%, #5a9fd4 100%);
  color: var(--color-text-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
  letter-spacing: 0.01em;
}

.abt-btn-calculate.abt-btn-calculate:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover);
  filter: brightness(1.05);
}

/* ID-prefixed rule ensures Elementor cannot override the calculate button's hover colour */
#altitude-baking-tool .abt-btn-calculate.abt-btn-calculate:hover:not(:disabled) {
  background: linear-gradient(135deg, #3a7db5 0%, #5a9fd4 100%);
  color: var(--color-text-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover);
  filter: brightness(1.05);
}

#altitude-baking-tool .abt-btn-calculate.abt-btn-calculate:active:not(:disabled) {
  background: linear-gradient(135deg, #3a7db5 0%, #5a9fd4 100%);
  color: var(--color-text-white);
}

.abt-btn-calculate.abt-btn-calculate:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(58,125,181,0.25);
}

.abt-btn-calculate.abt-btn-calculate:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  filter: none;
}

.abt-btn-calculate.abt-btn-calculate .abt-btn-spinner.abt-btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: abt-spin 0.7s linear infinite;
}
.abt-btn-calculate.abt-btn-calculate.loading .abt-btn-spinner.abt-btn-spinner { display: block; }
.abt-btn-calculate.abt-btn-calculate.loading .abt-btn-text.abt-btn-text { display: none; }

/* ============================================================
   RIGHT PANEL — RESULTS
   ============================================================ */
.abt-right-panel.abt-right-panel {
  opacity: 0;
  animation: abt-slide-in-right 0.65s ease-out 0.6s forwards;
}

.abt-results-header.abt-results-header {
  margin-bottom: 16px;
}
.abt-results-header.abt-results-header .abt-card-title.abt-card-title { margin-bottom: 4px; }
.abt-results-subheading.abt-results-subheading {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary);
  font-family: var(--font-body);
}

/* Empty state */
.abt-empty-state.abt-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 44px 20px;
  text-align: center;
  gap: 14px;
}

.abt-empty-icon.abt-empty-icon {
  width: 64px;
  height: 64px;
  background: var(--color-accent-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.abt-empty-icon.abt-empty-icon svg {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
}

.abt-empty-state.abt-empty-state p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  max-width: 280px;
  line-height: 1.6;
}

/* Ensure the hidden attribute always wins, even when element has display:flex/grid set in CSS.
   Without this, .abt-empty-state.abt-empty-state { display: flex } overrides [hidden] in some browsers. */
#altitude-baking-tool [hidden] { display: none !important; }

/* Alignment: when results are shown, shift results list down to align with tab buttons */
.abt-has-results.abt-has-results #abt-results-output {
  padding-top: 8px;
}

/* Results list */
.abt-results-list.abt-results-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Result item */
.abt-result-item.abt-result-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--color-result-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-result);
  padding: 13px 14px;
  transition: box-shadow var(--transition-base), border-color var(--transition-base), background var(--transition-base), transform var(--transition-fast);
  opacity: 0;
  transform: translateY(10px);
}

.abt-result-item.abt-result-item.abt-animated.abt-animated {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow var(--transition-base), border-color var(--transition-base), background var(--transition-base);
}

.abt-result-item.abt-result-item.highlight {
  background: var(--color-result-active);
  border-color: var(--color-result-border-active);
  box-shadow: var(--shadow-result-active);
  animation: abt-pulse-glow 3s ease-in-out infinite;
}

@keyframes abt-pulse-glow {
  0%, 100% { box-shadow: 0 4px 16px rgba(58,125,181,0.18); }
  50% { box-shadow: 0 4px 24px rgba(58,125,181,0.32); }
}

.abt-result-item.abt-result-item:hover {
  box-shadow: var(--shadow-result-active);
  border-color: var(--color-primary-light);
}

/* Result items layout for 2x2 grid at smaller widths */
.abt-results-grid.abt-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.abt-result-icon-wrap.abt-result-icon-wrap {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-icon);
  background: var(--color-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base);
}

.abt-result-item.abt-result-item:hover .abt-result-icon-wrap.abt-result-icon-wrap {
  transform: scale(1.08);
}

.abt-result-icon-wrap.abt-result-icon-wrap svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
}

.abt-result-content.abt-result-content { flex: 1; min-width: 0; }

.abt-result-title.abt-result-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-heading);
  margin-bottom: 2px;
}

.abt-result-desc.abt-result-desc {
  font-size: 0.8rem;
  color: var(--color-text-body);
  line-height: 1.45;
}

.abt-result-original.abt-result-original {
  font-size: 0.74rem;
  color: var(--color-text-muted);
  margin-top: 3px;
}

.abt-result-original.abt-result-original strong {
  color: var(--color-primary);
  font-weight: 600;
}

/* No-adjustment state */
.abt-no-adjustment.abt-no-adjustment {
  padding: 16px;
  background: rgba(46,139,87,0.08);
  border: 1.5px solid rgba(46,139,87,0.22);
  border-radius: var(--radius-result);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.abt-no-adjustment.abt-no-adjustment svg { color: var(--color-success); flex-shrink: 0; margin-top: 1px; }
.abt-no-adjustment.abt-no-adjustment p { font-size: 0.84rem; color: var(--color-success); font-weight: 500; line-height: 1.5; }

/* ============================================================
   WHY ALTITUDE MATTERS
   ============================================================ */
.abt-why-section.abt-why-section {
  margin-top: 22px;
  opacity: 0;
  animation: abt-fade-in-up 0.6s ease-out 0.8s forwards;
}

.abt-why-section.abt-why-section .abt-section-heading.abt-section-heading {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text-heading);
  text-align: center;
  margin-bottom: 16px;
}

.abt-why-grid.abt-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.abt-why-card.abt-why-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 22px 18px;
  border: 1px solid rgba(205,219,233,0.5);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.abt-why-card.abt-why-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.abt-why-icon.abt-why-icon {
  width: 44px;
  height: 44px;
  background: var(--color-accent-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.abt-why-icon.abt-why-icon svg { width: 22px; height: 22px; color: var(--color-primary); }

.abt-why-card.abt-why-card h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-heading);
  margin-bottom: 6px;
}

.abt-why-card.abt-why-card p {
  font-size: 0.78rem;
  color: var(--color-text-body);
  line-height: 1.6;
}

/* ============================================================
   QUICK REFERENCE TABLE
   ============================================================ */
.abt-reference-section.abt-reference-section {
  margin-top: 22px;
  background: var(--color-bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(205,219,233,0.5);
  overflow: hidden;
  opacity: 0;
  animation: abt-fade-in-up 0.6s ease-out 1.0s forwards;
}

.abt-reference-header.abt-reference-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  cursor: pointer;
  user-select: none;
  transition: background var(--transition-fast);
}

.abt-reference-header.abt-reference-header:hover { background: var(--color-row-alt); }

.abt-reference-header.abt-reference-header h2 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-heading);
}

.abt-reference-chevron.abt-reference-chevron {
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  transition: transform var(--transition-base);
}
.abt-reference-header.abt-reference-header.open .abt-reference-chevron.abt-reference-chevron { transform: rotate(180deg); }

.abt-reference-body.abt-reference-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.abt-reference-body.abt-reference-body.open { max-height: 500px; }

.abt-table-wrap.abt-table-wrap {
  overflow-x: auto;
  padding: 0 0 16px;
  -webkit-overflow-scrolling: touch;
}

.abt-table.abt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  min-width: 560px;
}

#altitude-baking-tool .abt-table.abt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  min-width: 560px;
  border: none;
  border-spacing: 0;
}

.abt-table.abt-table thead tr {
  background: var(--color-table-head);
}

#altitude-baking-tool .abt-table.abt-table thead tr {
  background: var(--color-table-head);
}

.abt-table.abt-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-text-label);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1.5px solid var(--color-border);
  white-space: nowrap;
}

#altitude-baking-tool .abt-table.abt-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-text-label);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 1.5px solid var(--color-border);
  white-space: nowrap;
  background: var(--color-table-head);
}

.abt-table.abt-table td {
  padding: 9px 14px;
  color: var(--color-text-body);
  border-bottom: 1px solid rgba(205,219,233,0.35);
  white-space: nowrap;
}

#altitude-baking-tool .abt-table.abt-table td {
  padding: 9px 14px;
  color: var(--color-text-body);
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid rgba(205,219,233,0.35);
  white-space: nowrap;
  background: transparent;
}

.abt-table.abt-table tbody tr:nth-child(even) td { background: var(--color-row-alt); }

#altitude-baking-tool .abt-table.abt-table tbody tr:nth-child(even) td {
  background: var(--color-row-alt);
}

.abt-table.abt-table tbody tr:hover td {
  background: var(--color-accent-soft);
  transition: background var(--transition-fast);
}

#altitude-baking-tool .abt-table.abt-table tbody tr:hover td {
  background: var(--color-accent-soft);
  transition: background var(--transition-fast);
}

.abt-table.abt-table td:first-child {
  font-weight: 600;
  color: var(--color-text-heading);
}

#altitude-baking-tool .abt-table.abt-table td:first-child {
  font-weight: 600;
  color: var(--color-text-heading);
}

/* ============================================================
   FOOTER
   ============================================================ */
.abt-footer.abt-footer {
  margin-top: 28px;
  padding: 18px 20px;
  background: var(--color-bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(205,219,233,0.5);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.abt-footer-links.abt-footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.abt-footer-links.abt-footer-links a {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.abt-footer-links.abt-footer-links a:hover { color: var(--color-primary); }

.abt-footer-disclaimer.abt-footer-disclaimer {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: 480px;
  margin: 0 auto 4px;
}

.abt-footer-copy.abt-footer-copy {
  font-size: 0.68rem;
  color: rgba(122,150,168,0.6);
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes abt-fade-in-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes abt-slide-in-left {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes abt-slide-in-right {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes abt-spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   RESPONSIVE — TABLET (768px – 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .abt-wrapper.abt-wrapper { padding: 0 16px 32px; }

  /* On tablet in side-by-side layout, adjust result alignment to match tabs */
  .abt-has-results.abt-has-results #abt-results-output { padding-top: 6px; }

  .abt-hero.abt-hero {
    padding: 36px 28px 32px;
  }

  .abt-tool-layout.abt-tool-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .abt-left-panel.abt-left-panel, .abt-right-panel.abt-right-panel {
    animation: abt-fade-in-up 0.5s ease-out 0.4s forwards;
  }

  .abt-card.abt-card { padding: 22px 20px; }

  .abt-why-grid.abt-why-grid {
    grid-template-columns: 1fr 1fr;
  }
  .abt-why-grid.abt-why-grid .abt-why-card.abt-why-card:last-child {
    grid-column: 1 / -1;
    max-width: 340px;
    margin: 0 auto;
    width: 100%;
  }

  .abt-results-grid.abt-results-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (<768px)
   ============================================================ */
@media (max-width: 767px) {
  .abt-wrapper.abt-wrapper { padding: 0 12px 24px; }

  .abt-hero.abt-hero {
    padding: 28px 16px 26px;
    border-radius: 14px;
    margin-bottom: 16px;
  }

  .abt-hero.abt-hero h1 {
    font-size: 1.65rem;
  }

  .abt-hero.abt-hero p { font-size: 0.85rem; }

  .abt-hero-mountain.abt-hero-mountain {
    width: 90%;
    opacity: 0.4;
  }

  .abt-card.abt-card {
    padding: 18px 16px;
    border-radius: 14px;
  }

  .abt-card-title.abt-card-title { font-size: 1.15rem; }

  .abt-tabs.abt-tabs {
    border-radius: 10px;
  }

  .abt-tab.abt-tab {
    padding: 9px 8px;
    font-size: 0.76rem;
  }

  .abt-input.abt-input {
    padding: 12px 14px;
    font-size: 16px; /* Prevent iOS zoom */
  }

  .abt-select.abt-select {
    font-size: 16px; /* Prevent iOS zoom */
  }

  .abt-btn-calculate.abt-btn-calculate {
    padding: 15px 20px;
    font-size: 0.93rem;
    border-radius: 11px;
  }

  .abt-why-grid.abt-why-grid {
    grid-template-columns: 1fr;
  }

  .abt-why-grid.abt-why-grid .abt-why-card.abt-why-card:last-child {
    grid-column: auto;
    max-width: 100%;
  }

  .abt-results-grid.abt-results-grid {
    grid-template-columns: 1fr;
  }

  .abt-result-item.abt-result-item {
    padding: 11px 12px;
  }

  .abt-result-icon-wrap.abt-result-icon-wrap {
    width: 34px;
    height: 34px;
  }
  .abt-result-icon-wrap.abt-result-icon-wrap svg { width: 18px; height: 18px; }

  .abt-reference-header.abt-reference-header {
    padding: 15px 16px;
  }
  .abt-reference-header.abt-reference-header h2 { font-size: 0.95rem; }

  .abt-recipe-fields.abt-recipe-fields {
    grid-template-columns: 1fr;
  }

  .abt-results-subheading.abt-results-subheading {
    font-size: 0.95rem;
  }

  .abt-footer.abt-footer { padding: 14px 16px; border-radius: 14px; }
  .abt-footer-links.abt-footer-links { gap: 12px; }

  .abt-why-section.abt-why-section .abt-section-heading.abt-section-heading { font-size: 1.15rem; }
}

/* ============================================================
   PRINT — Hide decorative elements
   ============================================================ */
@media print {
  .abt-hero-particles.abt-hero-particles, .abt-hero-mountain.abt-hero-mountain { display: none; }
  .abt-card.abt-card { box-shadow: none; border: 1px solid #ccc; }
  .abt-btn-calculate.abt-btn-calculate { display: none; }
}

/* ── INTERNATIONAL LOCATION LOOKUP — New button + country selector styles ── */
.abt-btn-lookup.abt-btn-lookup {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 0 14px;
  height: 44px;
  background: var(--color-primary);
  color: var(--color-text-white);
  border: none;
  border-radius: var(--radius-input);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
  box-shadow: 0 2px 8px rgba(58,125,181,0.18);
  flex-shrink: 0;
}
.abt-btn-lookup.abt-btn-lookup:hover:not(:disabled) {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(58,125,181,0.26);
}
/* ID-prefixed rules override any Elementor global button :hover styles */
#altitude-baking-tool .abt-btn-lookup.abt-btn-lookup {
  background: var(--color-primary);
  color: var(--color-text-white);
}
#altitude-baking-tool .abt-btn-lookup.abt-btn-lookup:hover:not(:disabled) {
  background: var(--color-primary-dark);
  color: var(--color-text-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(58,125,181,0.26);
}
#altitude-baking-tool .abt-btn-lookup.abt-btn-lookup:active:not(:disabled) {
  background: var(--color-primary-dark);
  color: var(--color-text-white);
  transform: translateY(0);
}
#altitude-baking-tool .abt-btn-lookup.abt-btn-lookup:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.abt-btn-lookup.abt-btn-lookup:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
.abt-btn-lookup.abt-btn-lookup svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
