﻿/* =====================================================================
   7. INTERACTIVE TOOLS & CALCULATORS STYLES
   ===================================================================== */

/* Generic Field & Step Component Rules */
.th-calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; margin-top: 28px; }
.th-field { margin-bottom: 18px; }
.th-field label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; color: var(--mc-ink, #064E3B); margin-bottom: 8px; }
.th-step { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #DCFCE7; color: #15803D; font-size: 11.5px; font-weight: 700; flex-shrink: 0; }
.th-hint { font-size: 11.5px; color: var(--mc-text-soft, #6B7280); margin-top: 4px; }
.th-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.th-root input[type="number"],
.th-root input[type="text"],
.th-root select {
  width: 100% !important; height: 46px !important; padding: 0 14px !important;
  background: #FFFFFF !important; border: 1px solid #CBD5E1 !important; border-radius: 10px !important;
  font-size: 14.5px !important; font-family: inherit !important; color: #374151 !important;
  outline: none !important; box-shadow: inset 0 1px 2px rgba(0,0,0,0.02) !important;
  transition: all 0.2s ease !important; box-sizing: border-box !important;
}
.th-root input:focus, .th-root select:focus { border-color: #16A34A !important; box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15) !important; }

/* Aeroponic Mist Timer (#mist-calc) */

/* Conversions Hub (#cr-conv-hub) */

/* Circular Gauges & Stat Displays (#light-calc, #water-calc, #yield-calc, #vpd-tool) */
.th-gauge-wrap { text-align: center; padding: 20px; background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: 16px; margin-bottom: 20px; }
.th-gauge { position: relative; width: 150px; height: 150px; margin: 0 auto 12px; }
.th-gauge svg { width: 100%; height: 100%; }
.th-gauge-value { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.th-gauge-value strong { font-size: 30px; line-height: 1; color: var(--mc-ink, #064E3B); font-family: var(--mc-font-heading); }
.th-gauge-value span { font-size: 10.5px; text-transform: uppercase; font-weight: 700; color: var(--mc-text-soft, #6B7280); margin-top: 4px; }

.th-status { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.th-status--ok { background: #DCFCE7; color: #15803D; }
.th-status--low { background: #FEF3C7; color: #B45309; }
.th-status--high { background: #FEE2E2; color: #B91C1C; }
.th-target-line { font-size: 12px; color: var(--mc-text-soft, #6B7280); font-weight: 600; }

.th-stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 16px; }
.th-stat { background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 12px; padding: 12px; text-align: center; }
.th-stat span { display: block; font-size: 11px; text-transform: uppercase; color: var(--mc-text-soft, #6B7280); font-weight: 700; margin-bottom: 2px; }
.th-stat strong { font-size: 16px; color: var(--mc-ink, #064E3B); }

.th-recs { background: #FFFFFF; border: 1px solid var(--mc-line, #E5E7EB); border-radius: 12px; padding: 14px; font-size: 13px; line-height: 1.55; color: #334155; margin-bottom: 12px; }
.th-recs strong { color: var(--mc-ink, #064E3B); display: block; margin-bottom: 4px; }
.th-config-summary { font-size: 12px; color: var(--mc-text-soft, #6B7280); background: #F1F5F9; padding: 8px 12px; border-radius: 8px; margin-bottom: 10px; }
.th-cycle-note { font-size: 12.5px; color: #15803D; background: #DCFCE7; padding: 10px 12px; border-radius: 8px; margin-bottom: 10px; line-height: 1.4; }


/* Table Cell Overrides for All Tools */
.th-root .th-table-wrap table th,
.th-root .th-table-wrap table td,
.th-root table th,
.th-root table td {
  padding: 12px 16px !important;
  text-align: left;
  vertical-align: middle;
}

/* Tools tables live inside containers that already have their own border.
   Remove the per-table border from global.css to avoid double-border. */
.th-root .th-table-wrap table,
.th-root .cr-table-wrap table,
.th-root .th-recs table {
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
}

@media (max-width: 860px) {
  #plant-selection-tool .ps-grid,
  #cr-conv-hub .cr-converters { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  #plant-selection-tool .ps-row2,
  #plant-selection-tool .ps-climate-cols,
  #cost-calc .th-row2,
  #cost-calc .th-stat-row,
  #hydro-doctor #hydro-steps .hydro-label { grid-template-columns: 1fr; }
}

/* =====================================================================
   404 ERROR PAGE SEARCH FORM (moved out of global.js)
   ===================================================================== */
#notfound-page .mc-404-search {
  max-width: 580px;
  margin: 0 auto;
}

#notfound-page .mc-404-search form {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: #FFFFFF !important;
  padding: 6px 8px 6px 12px !important;
  border-radius: 14px !important;
  border: 1px solid var(--mc-line, #CBD5E1) !important;
  box-shadow: 0 4px 15px rgba(6,78,59,0.06) !important;
  transition: all 0.2s ease !important;
}

#notfound-page .mc-404-search form:focus-within {
  border-color: #16A34A !important;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15) !important;
}

#notfound-page input.mc-404-input {
  flex: 1 !important;
  height: 44px !important;
  border: none !important;
  padding: 0 8px !important;
  font-size: 14.5px !important;
  color: var(--mc-ink, #064E3B) !important;
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  font-family: inherit !important;
}

#notfound-page input.mc-404-input::placeholder {
  color: #94A3B8 !important;
}

#notfound-page button.mc-404-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  height: 44px !important;
  padding: 0 22px !important;
  background: var(--mc-leaf, #16A34A) !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.2) !important;
}

#notfound-page button.mc-404-btn:hover {
  background: var(--mc-ink, #064E3B) !important;
  transform: translateY(-1px) !important;
}

#notfound-page button.mc-404-btn svg {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
}

@media (max-width: 580px) {
  #notfound-page .mc-404-search form {
    flex-direction: column !important;
    padding: 10px !important;
  }
  #notfound-page input.mc-404-input {
    width: 100% !important;
    text-align: center !important;
  }
  #notfound-page button.mc-404-btn {
    width: 100% !important;
  }
}

/* ============================================================
   TOOL STYLES - Mist Timer Calculator (#mist-calc)
   Extracted from page-templates/tool-mist-timer.php (inline <style> removed)
   ============================================================ */
/* Calculator Field & Input Styling */
#mist-calc .th-calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

#mist-calc .th-field {
  margin-bottom: 18px;
}

#mist-calc .th-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--mc-ink, #064E3B);
  margin-bottom: 8px;
}

#mist-calc .th-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #DCFCE7;
  color: #15803D;
  font-size: 11.5px;
  font-weight: 700;
  flex-shrink: 0;
}

#mist-calc input[type="number"],
#mist-calc select {
  width: 100% !important;
  height: 48px !important;
  padding: 0 16px !important;
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 12px !important;
  font-size: 14.5px !important;
  font-family: inherit !important;
  color: #374151 !important;
  outline: none !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02) !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

#mist-calc input[type="number"]:focus,
#mist-calc select:focus {
  border-color: #16A34A !important;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15) !important;
}

#mist-calc .th-pillrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

#mist-calc .th-pill {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 12px 14px !important;
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  transition: all 0.2s ease !important;
  margin: 0 !important;
}

#mist-calc .th-pill:hover {
  border-color: #16A34A !important;
  background: #F0FDF4 !important;
}

#mist-calc .th-pill input[type="radio"] {
  width: 18px !important;
  height: 18px !important;
  accent-color: #16A34A !important;
  margin: 0 !important;
  cursor: pointer !important;
}

#mist-calc .th-btn--block {
  width: 100% !important;
  height: 48px !important;
  margin-top: 10px !important;
}

@media (max-width: 640px) {
  #mist-calc .th-pillrow {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   TOOL STYLES - Plant Selection Tool (#plant-selection-tool)
   Extracted from page-templates/tool-plant-selection.php (inline <style> removed)
   ============================================================ */
/* Plant Selection Tool Styling & Button Lockdown */
#plant-selection-tool .ps-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  margin-top: 28px;
}

#plant-selection-tool .ps-card {
  background: #ffffff;
  border: 1px solid var(--mc-line, #E5E7EB);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 4px 15px rgba(6,78,59,.04);
}

#plant-selection-tool .ps-card h2 {
  font-size: 20px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 18px !important;
  text-align: left !important;
}

#plant-selection-tool .ps-field {
  margin-bottom: 16px;
}

#plant-selection-tool .ps-field label {
  display: block;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--mc-ink, #064E3B);
  margin-bottom: 6px;
}

#plant-selection-tool select {
  width: 100% !important;
  height: 46px !important;
  padding: 0 14px !important;
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-family: inherit !important;
  color: #374151 !important;
  outline: none !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02) !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

#plant-selection-tool select:focus {
  border-color: #16A34A !important;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15) !important;
}

#plant-selection-tool .ps-extra {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 18px;
}

#plant-selection-tool .ps-extra h3 {
  font-size: 14px !important;
  color: var(--mc-ink, #064E3B);
  margin-bottom: 12px !important;
}

#plant-selection-tool .ps-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Button Overrides */
#plant-selection-tool button.ps-export-btn,
#plant-selection-tool .ps-export-btn,
#plant-selection-tool button.ps-btn,
#plant-selection-tool .ps-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  padding: 0 18px !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  line-height: 46px !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  margin-top: 16px !important;
  margin-bottom: 0 !important;
  box-sizing: border-box !important;
  aspect-ratio: auto !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

#plant-selection-tool button.ps-btn,
#plant-selection-tool .ps-btn {
  background: var(--mc-leaf, #16A34A) !important;
  color: #ffffff !important;
  border: 1px solid transparent !important;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2) !important;
}

#plant-selection-tool button.ps-btn:hover,
#plant-selection-tool .ps-btn:hover {
  background: var(--mc-ink, #064E3B) !important;
  transform: translateY(-2px) !important;
}

#plant-selection-tool button.ps-export-btn,
#plant-selection-tool .ps-export-btn {
  background: #F0FDF4 !important;
  border: 1px solid #BBF7D0 !important;
  color: #064E3B !important;
  box-shadow: 0 2px 6px rgba(6, 78, 59, 0.04) !important;
}

#plant-selection-tool button.ps-export-btn:hover,
#plant-selection-tool .ps-export-btn:hover {
  background: #DCFCE7 !important;
  border-color: #16A34A !important;
  transform: translateY(-2px) !important;
}

#plant-selection-tool .ps-btn svg {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  margin-right: 8px !important;
  flex-shrink: 0 !important;
}

/* Plant Recommendation Card Styling */
#plant-selection-tool .ps-plant-card {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
}

#plant-selection-tool .ps-plant-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

#plant-selection-tool .ps-plant-top h4 {
  font-size: 17px !important;
  color: var(--mc-ink, #064E3B);
  margin: 0 !important;
  flex: 1;
}

#plant-selection-tool .ps-emoji {
  font-size: 24px;
  line-height: 1;
}

#plant-selection-tool .ps-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

#plant-selection-tool .ps-badge-easy { background: #DCFCE7; color: #15803D; }
#plant-selection-tool .ps-badge-medium { background: #FEF3C7; color: #B45309; }
#plant-selection-tool .ps-badge-challenging { background: #FEE2E2; color: #B91C1C; }

#plant-selection-tool .ps-match-great { background: #16A34A; color: #fff; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; }
#plant-selection-tool .ps-match-good { background: #15803D; color: #fff; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; }
#plant-selection-tool .ps-match-possible { background: #64748B; color: #fff; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; }

#plant-selection-tool .ps-plant-notes {
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
  margin: 0 0 10px 0;
}

#plant-selection-tool .ps-plant-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--mc-text-soft, #6B7280);
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #DCFCE7;
  margin-bottom: 10px;
}

#plant-selection-tool .ps-pill {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  background: #ffffff;
  border: 1px solid #CBD5E1;
  color: #475569;
  padding: 2px 7px;
  border-radius: 4px;
  margin-right: 4px;
  margin-bottom: 4px;
}

/* Climate Tips Styling */
#plant-selection-tool .ps-climate-tip {
  display: block;
}
#plant-selection-tool .ps-climate-tip.ps-hidden {
  display: none !important;
}

#plant-selection-tool .ps-climate-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 14px 0;
}

#plant-selection-tool .ps-climate-cols h5 {
  font-size: 13.5px !important;
  color: var(--mc-ink, #064E3B);
  margin-bottom: 6px !important;
}

#plant-selection-tool .ps-climate-cols ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--mc-text-soft, #6B7280);
  line-height: 1.5;
}

#plant-selection-tool .ps-expert-tip {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 10px;
  padding: 14px;
  font-size: 13px;
  color: #92400E;
  line-height: 1.5;
}

#plant-selection-tool table th,
#plant-selection-tool table td {
  padding: 12px 16px !important;
  text-align: left;
  vertical-align: middle;
}

@media (max-width: 900px) {
  #plant-selection-tool .ps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  #plant-selection-tool .ps-row2,
  #plant-selection-tool .ps-climate-cols {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   TOOL STYLES - Hydro Doctor (#hydro-doctor)
   Extracted from page-templates/tool-hydro-doctor.php (inline <style> removed)
   ============================================================ */
/* Hydro Doctor Wizard Custom Styles */
#hydro-doctor #hydro-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  position: relative;
}

#hydro-doctor #hydro-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--mc-text-soft, #6B7280);
  position: relative;
  z-index: 2;
}

#hydro-doctor #hydro-steps li.is-active {
  color: var(--mc-ink, #064E3B);
}

#hydro-doctor #hydro-steps li.is-completed {
  color: var(--mc-leaf, #16A34A);
}

#hydro-doctor .hydro-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #E2E8F0;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

#hydro-doctor li.is-active .hydro-dot {
  background: var(--mc-leaf, #16A34A);
  color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.2);
}

#hydro-doctor li.is-completed .hydro-dot {
  background: var(--mc-ink, #064E3B);
  color: #FFFFFF;
}

#hydro-doctor .hydro-line {
  flex: 1;
  height: 2px;
  background: #E2E8F0;
  margin: 0 12px;
}

#hydro-doctor .hydro-card-option {
  background: #FFFFFF;
  border: 1.5px solid var(--mc-line, #E5E7EB);
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
}

#hydro-doctor .hydro-card-option:hover {
  border-color: var(--mc-leaf, #16A34A);
  background: #F0FDF4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 78, 59, 0.05);
}

#hydro-doctor .hydro-card-option.is-selected {
  border-color: var(--mc-leaf, #16A34A);
  background: #F0FDF4;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

#hydro-doctor .hydro-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 640px) {
  #hydro-doctor #hydro-steps .hydro-label {
    display: none;
  }
}

/* ============================================================
   TOOL STYLES - Grow Light Calculator (#light-calc)
   Extracted from page-templates/tool-grow-light.php (inline <style> removed)
   ============================================================ */
/* Grow Light Calculator Field & Input Overrides */
#light-calc .th-calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

#light-calc .th-field {
  margin-bottom: 18px;
}

#light-calc .th-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--mc-ink, #064E3B);
  margin-bottom: 8px;
}

#light-calc .th-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #DCFCE7;
  color: #15803D;
  font-size: 11.5px;
  font-weight: 700;
  flex-shrink: 0;
}

#light-calc input[type="number"],
#light-calc select {
  width: 100% !important;
  height: 46px !important;
  padding: 0 14px !important;
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 10px !important;
  font-size: 14.5px !important;
  font-family: inherit !important;
  color: #374151 !important;
  outline: none !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02) !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

#light-calc input[type="number"]:focus,
#light-calc select:focus {
  border-color: #16A34A !important;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15) !important;
}

#light-calc .th-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

#light-calc .th-hint {
  font-size: 11.5px;
  color: var(--mc-text-soft, #6B7280);
  margin-top: 4px;
}

#light-calc .th-gauge-wrap {
  text-align: center;
  padding: 20px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 16px;
  margin-bottom: 20px;
}

#light-calc .th-gauge {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 12px;
}

#light-calc .th-gauge svg {
  width: 100%;
  height: 100%;
}

#light-calc .th-gauge-value {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#light-calc .th-gauge-value strong {
  font-size: 32px;
  line-height: 1;
  color: var(--mc-ink, #064E3B);
  font-family: var(--mc-font-heading);
}

#light-calc .th-gauge-value span {
  font-size: 10.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--mc-text-soft, #6B7280);
  margin-top: 4px;
}

#light-calc .th-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}

#light-calc .th-status--ok { background: #DCFCE7; color: #15803D; }
#light-calc .th-status--low { background: #FEF3C7; color: #B45309; }
#light-calc .th-status--high { background: #FEE2E2; color: #B91C1C; }

#light-calc .th-target-line {
  font-size: 12px;
  color: var(--mc-text-soft, #6B7280);
  font-weight: 600;
}

#light-calc .th-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

#light-calc .th-stat {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

#light-calc .th-stat span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--mc-text-soft, #6B7280);
  font-weight: 700;
  margin-bottom: 2px;
}

#light-calc .th-stat strong {
  font-size: 16px;
  color: var(--mc-ink, #064E3B);
}

#light-calc .th-recs {
  background: #FFFFFF;
  border: 1px solid var(--mc-line, #E5E7EB);
  border-radius: 12px;
  padding: 14px;
  font-size: 13px;
  line-height: 1.55;
  color: #334155;
  margin-bottom: 12px;
}

#light-calc .th-recs strong {
  color: var(--mc-ink, #064E3B);
  display: block;
  margin-bottom: 4px;
}

#light-calc .th-config-summary {
  font-size: 12px;
  color: var(--mc-text-soft, #6B7280);
  background: #F1F5F9;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

#light-calc .th-table-wrap table th,
#light-calc .th-table-wrap table td {
  padding: 12px 16px !important;
  text-align: left;
  vertical-align: middle;
}

@media (max-width: 540px) {
  #light-calc .th-row2,
  #light-calc .th-stat-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   TOOL STYLES - Cost Calculator (#cost-calc)
   Extracted from page-templates/tool-cost-calculator.php (inline <style> removed)
   ============================================================ */
/* Cost & ROI Calculator Field & Input Overrides */
#cost-calc .th-calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

#cost-calc .th-field {
  margin-bottom: 16px;
}

#cost-calc .th-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--mc-ink, #064E3B);
  margin-bottom: 6px;
}

#cost-calc .th-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #DCFCE7;
  color: #15803D;
  font-size: 11.5px;
  font-weight: 700;
  flex-shrink: 0;
}

#cost-calc input[type="number"],
#cost-calc select {
  width: 100% !important;
  height: 46px !important;
  padding: 0 14px !important;
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 10px !important;
  font-size: 14.5px !important;
  font-family: inherit !important;
  color: #374151 !important;
  outline: none !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02) !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

#cost-calc input[type="number"]:focus,
#cost-calc select:focus {
  border-color: #16A34A !important;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15) !important;
}

#cost-calc .th-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

#cost-calc .th-hint {
  font-size: 11.5px;
  color: var(--mc-text-soft, #6B7280);
  margin-top: 4px;
}

#cost-calc .th-stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

#cost-calc .th-stat {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

#cost-calc .th-stat span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--mc-text-soft, #6B7280);
  font-weight: 700;
  margin-bottom: 2px;
}

#cost-calc .th-stat strong {
  font-size: 16px;
  color: var(--mc-ink, #064E3B);
}

#cost-calc .th-payback {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 12px;
  padding: 14px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #1E40AF;
  margin-bottom: 12px;
}

#cost-calc .th-config-summary {
  font-size: 12px;
  color: var(--mc-text-soft, #6B7280);
  background: #F1F5F9;
  padding: 8px 12px;
  border-radius: 8px;
}

#cost-calc .th-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 8px;
}

#cost-calc .th-status--ok { background: #DCFCE7; color: #15803D; }
#cost-calc .th-status--low { background: #FEE2E2; color: #B91C1C; }

#cost-calc .th-table-wrap table th,
#cost-calc .th-table-wrap table td {
  padding: 12px 16px !important;
  text-align: left;
  vertical-align: middle;
}

@media (max-width: 580px) {
  #cost-calc .th-row2,
  #cost-calc .th-stat-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   TOOL STYLES - Conversions Hub (#cr-conv-hub)
   Extracted from page-templates/tool-conversions-hub.php (inline <style> removed)
   ============================================================ */
/* Conversions Hub Styling & Input Overrides */
#cr-conv-hub .cr-converters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

#cr-conv-hub .cr-card {
  background: #ffffff;
  border: 1px solid var(--mc-line, #E5E7EB);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 4px 15px rgba(6,78,59,.04);
}

#cr-conv-hub .cr-wide {
  grid-column: 1 / -1;
}

#cr-conv-hub .cr-card h2 {
  font-size: 18px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 4px !important;
}

#cr-conv-hub .cr-card-sub {
  font-size: 13px;
  color: var(--mc-text-soft, #6B7280);
  margin: 0 0 16px 0;
  line-height: 1.5;
}

#cr-conv-hub .cr-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

#cr-conv-hub .cr-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#cr-conv-hub .cr-field label {
  font-weight: 700;
  font-size: 12.5px;
  color: var(--mc-ink, #064E3B);
}

#cr-conv-hub input[type="number"],
#cr-conv-hub select {
  width: 100% !important;
  height: 46px !important;
  padding: 0 14px !important;
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 10px !important;
  font-size: 14.5px !important;
  font-family: inherit !important;
  color: #374151 !important;
  outline: none !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02) !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

#cr-conv-hub input[type="number"]:focus,
#cr-conv-hub select:focus {
  border-color: #16A34A !important;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15) !important;
}

#cr-conv-hub .cr-hint {
  font-size: 11.5px;
  color: var(--mc-text-soft, #6B7280);
  margin-top: 2px;
}

#cr-conv-hub .cr-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

#cr-conv-hub .cr-fact {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 12px;
  font-size: 12.5px;
  color: #475569;
  line-height: 1.4;
}

#cr-conv-hub .cr-fact strong {
  display: block;
  font-size: 13.5px;
  color: var(--mc-ink, #064E3B);
  margin-bottom: 2px;
}

#cr-conv-hub .cr-table-wrap table th,
#cr-conv-hub .cr-table-wrap table td {
  padding: 12px 16px !important;
  text-align: left;
  vertical-align: middle;
}

@media (max-width: 860px) {
  #cr-conv-hub .cr-converters {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  #cr-conv-hub .cr-row2 {
    grid-template-columns: 1fr;
  }
}
/* ============================================================
   TOOL STYLES - Plant Selection Tool spin keyframes (extracted)
   ============================================================ */
@keyframes psSpin { to { transform: rotate(360deg); } }

/* ============================================================
   CUSTOMIZER-MANAGED NAVIGATION MENUS (wp_nav_menu output)
   ============================================================ */
.mc-desktop-nav--menu .mc-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mc-desktop-nav--menu .mc-menu > li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.mc-desktop-nav--menu .mc-menu a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
  color: var(--mc-ink, #064E3B) !important;
  text-decoration: none !important;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.mc-desktop-nav--menu .mc-menu a:hover {
  color: var(--mc-leaf, #16A34A) !important;
  background: #F0FDF4 !important;
}

.mc-desktop-nav--menu .mc-menu .sub-menu {
  position: absolute;
  top: var(--mc-header-height);
  left: 0;
  min-width: 220px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--mc-line, #E5E7EB);
  border-radius: 14px;
  box-shadow: 0 20px 45px rgba(6, 78, 59, 0.12);
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 9999;
}

.mc-desktop-nav--menu .mc-menu li:hover > .sub-menu,
.mc-desktop-nav--menu .mc-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mc-desktop-nav--menu .mc-menu .sub-menu a {
  display: block;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 500 !important;
  color: #334155 !important;
  white-space: normal;
  border-radius: 8px;
}

.mc-desktop-nav--menu .mc-menu .sub-menu a:hover {
  color: #16A34A !important;
}

.mc-desktop-nav--menu .mc-menu .sub-menu .sub-menu {
  top: 0;
  left: 100%;
}

.mc-mobile-drawer .mc-mobile-menu,
.mc-mobile-drawer .mc-mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mc-mobile-drawer .mc-mobile-menu a {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  padding: 9px 10px;
  border-radius: 6px;
}

.mc-mobile-drawer .mc-mobile-menu a:hover {
  background: #F0FDF4;
  color: #16A34A;
}

.mc-mobile-drawer .mc-mobile-menu .sub-menu {
  padding-left: 14px;
}

/* Footer contact details (Customizer: Footer & Contact) */
.mc-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 14px;
}

.mc-footer-contact a {
  font-size: 13px;
  color: #3B4759 !important;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.mc-footer-contact a:hover {
  color: var(--mc-leaf, #16A34A) !important;
}

/* ============================================================
   CLEAN THIN SCROLLBAR (site-wide)
   ============================================================ */
html {
  scrollbar-width: thin;
  scrollbar-color: #A7B3C2 transparent;
}

html::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

html::-webkit-scrollbar-track {
  background: #F1F5F9;
}

html::-webkit-scrollbar-thumb {
  background: #A7B3C2;
  border-radius: 99px;
}

html::-webkit-scrollbar-thumb:hover {
  background: var(--mc-leaf, #16A34A);
}

/* ============================================================
   Utility classes — replace inline styles on tool pages.
   Added with filemtime() versioning in mc_css_asset().
   ============================================================ */

/* Tab / button paddings */
.mc-u-tab-pad { padding: 12px 16px !important; }
.mc-u-tab-pad.fw600 { font-weight: 600; color: var(--mc-ink, #0F172A); }
.mc-u-tab-pad.fw700 { font-weight: 700; }

/* Card link */
.mc-u-card-link {
  text-decoration: none;
  padding: 18px;
}

/* Flex row / col helpers */
.mc-u-flex-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mc-u-flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
}
.mc-u-flex-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0;
}

/* Typography */
.mc-u-heading { font-size: 15px; margin: 0 0 2px 0; }
.mc-u-desc    { font-size: 12.5px; color: var(--mc-text-soft, #64748B); margin: 0; }
.mc-u-body    { font-size: 13.5px; color: var(--mc-text-soft, #64748B); line-height: 1.55; margin: 0; }
.mc-u-note    { font-size: 14.5px; color: var(--mc-text-soft, #64748B); margin-top: 4px; }
.mc-u-title   { font-size: 20px; margin-bottom: 4px; text-align: left !important; }

/* Color helpers */
.mc-u-ink     { color: var(--mc-ink, #0F172A); }
.mc-u-soft    { color: var(--mc-text-soft, #64748B); }
.mc-u-leaf    { color: var(--mc-leaf, #16A34A); }

/* Borders / dividers */
.mc-u-divider { border-bottom: 1px solid var(--mc-line, #E2E8F0); }

/* Spacing */
.mc-u-mb12  { margin-bottom: 12px; }
.mc-u-mb20  { margin-bottom: 20px; }
.mc-u-mb24  { text-align: center; margin-bottom: 24px; }
.mc-u-mb20-center { margin-bottom: 20px; text-align: center; }

/* Grid */
.mc-u-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

/* Section centering */
.mc-u-section-center {
  text-align: center;
  padding: 40px 20px;
  color: var(--mc-text-soft, #64748B);
}

/* Progress steps (hydroponic-nutrient-calculator) */
.mc-u-step-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mc-text-soft, #64748B);
}

.mc-u-card-pad  { padding: 18px; }
.mc-u-subhead   { font-size: 15px; margin-bottom: 6px; }
.mc-u-body-sm   { font-size: 13px; color: var(--mc-text-soft, #64748B); line-height: 1.5; margin: 0; }
.mc-u-pad1218   { padding: 12px 18px; }
.mc-u-table     { width: 100%; border-collapse: collapse; font-size: 13.5px; text-align: left; }
.mc-u-table-hdr { background: #F0FDF4; border-bottom: 1px solid #BBF7D0; color: var(--mc-ink, #0F172A); }
.mc-u-footnote  { text-align: center; margin-top: 32px; font-size: 12px; color: var(--mc-text-soft, #64748B); }
.mc-u-body-xs   { font-size: 14px; margin: 0; }
.mc-u-body-sub  { font-size: 13.5px; color: var(--mc-text-soft, #64748B); margin-top: 4px; }
.mc-u-w100      { width: 100%; }
.mc-u-card      { background: #fff; border: 1px solid var(--mc-line, #E2E8F0); border-radius: 14px; overflow: hidden; box-shadow: 0 2px 8px rgba(6,78,59,0.04); }
.mc-u-card-center { max-width: 600px; margin: 0 auto; }
.mc-u-title-lg  { font-size: 20px; margin-bottom: 20px; text-align: left !important; }
.mc-u-hidden    { display: none; }
.mc-u-error     { color: #DC2626; font-size: 12.5px; margin-top: 6px; }

/* The footer renders in normal flow (see home.css note: content-visibility
   placeholders caused sections to overlap following content). */
