/* ===============================
   Base & Reset
================================ */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f9f9f9;
  color: #333;
}

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

.container {
  max-width: 520px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Reduce space between header and main content */
main.container {
  margin-top: 20px;
}

/* ===============================
   Header (Ad-safe)
================================ */

.site-header {
  background: transparent;
  border-bottom: none;
  margin: 0;
  padding: 8px 0;
}

/* Reserved space for future ads */
.header-ad-slot {
  min-height: 0;         /* No ad yet */
  width: 100%;
}

/* Header inner */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.header-nav a {
  font-weight: 500;
  text-decoration: none;
}

/* Logo */
.site-header img {
  height: 38px;
  width: auto;
  margin-right: 6px;
}

.site-nav a {
  font-weight: 500;
  text-decoration: none;
  opacity: 0.85;
}

.site-nav a:hover {
  text-decoration: underline;
   opacity: 1;
}

.site-nav {
  margin-left: auto;
}

.site-nav a {
  margin-left: 18px;
  font-size: 0.95rem;
  font-weight: 500;
}

/* ===============================
   Header spacing fix
================================ */

.site-header .container {
  margin: 0 auto;
  padding: 0;
}

.header-nav a[href="/employee-vs-contractor-guide"] {
  font-weight: 600;
}

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

h1 {
  text-align: center;
  font-size: 2rem;
  color: #1a73e8;
  margin-bottom: 10px;
}

h2 {
  color: #1a73e8;
  margin-top: 40px;
  margin-bottom: 15px;
}

h3 {
  color: #1a73e8;
  margin-top: 30px;
}

p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 10px 0;
}

.hint {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #777;
  text-align: center;
  font-style: italic;
}

.intro {
  text-align: center;
  margin-bottom: 30px;
  color: #555;
}

/* ===============================
   Forms & Inputs
================================ */

label {
  display: block;
  margin-bottom: 20px;
  font-weight: 600;
}

input[type="number"],
input[type="date"] {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
}

input:focus {
  outline: none;
  border-color: #1a73e8;
}

/* ===============================
   Select (Dropdowns)
================================ */

select {
  width: 100%;
  margin-top: 6px;
  padding: 12px 40px 12px 12px;
  font-size: 1rem;
  font-family: inherit;
  color: #333;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;

  /* Remove default OS styling */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* Custom dropdown arrow */
  background-image:
    linear-gradient(45deg, transparent 50%, #555 50%),
    linear-gradient(135deg, #555 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
}

select:focus {
  outline: none;
  border-color: #1a73e8;
}

/* Disabled state */
select:disabled {
  background-color: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}

/* Ensure label spacing consistency */
label select {
  margin-top: 6px;
}

/* ===============================
   Hub & Cross-Navigation Links
================================ */

.hub-link {
  margin: 18px 0 28px;
  font-size: 0.95rem;
  color: #555;
  text-align: center;
}

.hub-link a {
  font-weight: 600;
  color: #1a73e8;
  text-decoration: none;
}

.hub-link a:hover {
  text-decoration: underline;
}

/* ===============================
   Results Box
================================ */

.result {
  margin-top: 25px;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  font-size: 1.05rem;
}

.result p {
  margin: 8px 0;
}

/* ===============================
   Tool List (Homepage)
================================ */

.tools {
  margin-top: 40px;
}

.tool-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tool-list li {
  background: #fff;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.tool-list a {
  display: block;
  padding: 16px;
  color: inherit;
  text-decoration: none;
}

.tool-list a:hover {
  background: #f1f5ff;
}

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

.site-footer {
  background: transparent;
  border-top: none;
  margin-top: 40px;
}

.site-footer .container {
  text-align: center;
  padding: 10px 0;
}

.footer-links {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 6px;
  line-height: 1.5;
}

.footer-links a {
  color: #777;
  text-decoration: none;
}

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

.footer-copy {
  font-size: 0.75rem;
  color: #999;
  margin: 0;
}

/* ===============================
   Mobile
================================ */

@media (max-width: 400px) {
  .container {
    margin: 25px auto;
    padding: 0 15px;
  }

  h1 {
    font-size: 1.6rem;
  }
}

/* ===============================
   Mobile Header
================================ */

@media (max-width: 480px) {

  .header-inner {
    padding: 6px 0;
  }

  .site-header img {
    height: 32px;
  }
}

/* =========================
   Tool list grouping labels
   ========================= */

.tool-group {
  list-style: none;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.6;
}

.tool-group + li {
  margin-top: 0.25rem;
}

.related-calculators {
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: #666;
}

.related-calculators a {
  font-weight: 500;
}

/* ===============================
   Homepage Enhancements
   =============================== */

/* Hero section */
.hero {
  margin-bottom: 35px;
}

.hero h1 {
  margin-bottom: 12px;
}

.hero .intro {
  font-size: 1.05rem;
}

/* ===============================
   Category Hub
   =============================== */

.categories {
  margin-top: 40px;
}

.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.category-card {
  display: block;
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.category-card:hover {
  background: #f1f5ff;
}

.category-card h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.category-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #666;
}

/* ===============================
   Popular Tools
   =============================== */

.popular-tools {
  margin-top: 45px;
}

/* Reuse existing tool-list styles */
.popular-tools .tool-list li {
  margin-bottom: 10px;
}

/* ===============================
   Authority Content
   =============================== */

.authority {
  margin-top: 45px;
  font-size: 0.95rem;
  color: #555;
}

.authority p {
  margin-bottom: 12px;
}

.authority a {
  font-weight: 500;
}

/* Pool Supplies callout box */
.supplies-callout {
  background: #f0f9ff;
  padding: 20px 24px;
  border-radius: 8px;
  margin: 30px 0;
  border-left: 4px solid #1a73e8;
}

.supplies-callout h2 {
  margin-top: 0;
  font-size: 1.3rem;
}

.supplies-callout p {
  margin-bottom: 16px;
}

.supplies-callout p:last-child {
  margin-bottom: 0;
}

/* ===============================
   FAQ Section
   =============================== */

.faq {
  margin-top: 45px;
}

.faq h3 {
  margin-top: 22px;
  margin-bottom: 6px;
  font-size: 1rem;
}

.faq p {
  margin-top: 0;
  font-size: 0.95rem;
  color: #555;
}

/* ===============================
   Comparison Tables (SEO)
================================ */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 0.95rem;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

thead {
  background: #f1f5ff;
}

th,
td {
  padding: 12px 14px;
  text-align: left;
}

th {
  font-weight: 600;
  color: #1a73e8;
}

tbody tr:not(:last-child) {
  border-bottom: 1px solid #eee;
}

tbody tr strong {
  color: #111;
}

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

/* ===============================
   Tooltip (calculator hints)
================================ */

.tooltip {
  position: relative;
  display: inline-block;
  margin-left: 4px;
  cursor: help;
  font-size: 0.9em;
  opacity: 0.7;
}

.tooltip:hover {
  opacity: 1;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: 125%;
  transform: translateX(-50%);
  min-width: 220px;
  max-width: 280px;
  padding: 8px 10px;
  background: #111;
  color: #fff;
  font-size: 0.85rem;
  line-height: 1.4;
  border-radius: 6px;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 10;
}

.tooltip::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 115%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #111 transparent transparent transparent;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.tooltip:hover::after,
.tooltip:hover::before {
  opacity: 1;
}

/* ===============================
   Primary Tool Highlight Box
   =============================== */

.primary-tool {
  margin: 1.75rem 0 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #2563eb; /* subtle authority cue */
  background-color: #f9fafb;
  border-radius: 6px;
}

.primary-tool__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  margin-bottom: 0.35rem;
}

.primary-tool__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  line-height: 1.35;
}

.primary-tool__title a {
  color: #111827;
  text-decoration: none;
}

.primary-tool__title a:hover {
  text-decoration: underline;
}

.primary-tool__description {
  font-size: 0.9rem;
  color: #374151;
  margin: 0;
}

.primary-tool + section {
  margin-top: 2.5rem;
}

/* ===============================
   Employee vs Contractor Teaser
================================ */

.calculator-teaser {
  margin: 40px 0;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.calculator-teaser h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #1a73e8;
  text-align: center;
}

.calculator-teaser p {
  text-align: center;
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 20px;
}

/* Form inside teaser */
.calculator-teaser .calculator-form {
  display: grid;
  gap: 16px;
}

.calculator-teaser .calculator-form label {
  margin-bottom: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.calculator-teaser .calculator-form input[type="number"] {
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 100%;
}

.calculator-teaser .teaser-result {
  margin-top: 20px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 10px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
  font-size: 0.95rem;
}

.calculator-teaser .teaser-result p {
  margin: 6px 0;
  line-height: 1.4;
}

.calculator-teaser .teaser-result strong {
  color: #111;
}

@media (max-width: 480px) {
  .calculator-teaser {
    padding: 16px;
  }

  .calculator-teaser h2 {
    font-size: 1.3rem;
  }

  .calculator-teaser p {
    font-size: 0.9rem;
  }

  .calculator-teaser .calculator-form input[type="number"] {
    font-size: 0.95rem;
    padding: 8px 10px;
  }
}

.btn-primary {
  display: inline-block;
  padding: 12px 22px;
  background-color: #1a73e8;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s;
}

.btn-primary:hover {
  background-color: #1666c1;
}

.btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  background-color: #f1f5ff;
  color: #1a73e8;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background-color: #e0e7ff;
}

/* ===============================
   Calculator breakdown toggle
================================ */

.calc-toggle {
  border: none;               /* .btn-secondary handles look */
  cursor: pointer;
}

.calc-breakdown {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
}

.calc-breakdown .muted {
  color: #777;
  font-weight: 500;
  font-size: 0.95rem;
}


/* ===============================
   Call-to-Action Wrappers
=============================== */

/* Hero section CTA */
.hero-cta {
  text-align: center;
  margin-top: 20px;
}

/* Calculator pages / teaser CTA */
.calculator-teaser-cta,
.calculator-cta {
  text-align: center;
  margin: 18px 0 28px;
}

/* Guide page CTA */
.guide-cta {
  text-align: center;
  margin: 18px 0 28px;
}

/* FAQ page CTA */
.faq-cta {
  text-align: center;
  margin: 18px 0 28px;
}

/* Button styles are reused from btn-primary / btn-secondary */

/* ===============================
   Lead Capture / Email Form
================================ */
.lead-capture {
  margin-top: 30px;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.lead-capture form {
  display: grid;
  gap: 16px;
}

.lead-capture label {
  font-weight: 600;
  font-size: 0.95rem;
}

.lead-capture input[type="text"],
.lead-capture input[type="email"] {
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 100%;
}

.lead-capture button {
  display: inline-block;
  padding: 12px 22px;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  background-color: #1a73e8;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.lead-capture button:hover {
  background-color: #1666c1;
}


/* ===============================
   Download Report Form Spacing
================================ */
#downloadReportForm label {
  display: block;
  margin-bottom: 6px;  /* space below label */
  font-weight: 600;
}

#downloadReportForm input {
  display: block;
  width: 100%;
  padding: 12px;
  margin-bottom: 16px; /* space below input */
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

#downloadReportForm button {
  margin-top: 10px;
}

/* ===============================
   Pool Chem Calculators (Shared)
   Patch for calculator-form + text inputs + result box
================================ */

/* Make calculator forms consistent (matches existing style on other sites) */
.calculator-form {
  display: grid;
  gap: 16px;
}

/* Override global label spacing (global label margin-bottom:20px is too large for forms) */
.calculator-form label {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

/* Style text inputs used for money fields */
.calculator-form input[type="text"],
.calculator-form input[type="email"],
.calculator-form input[type="number"],
.calculator-form input[type="date"] {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
}

.calculator-form input:focus,
.calculator-form select:focus {
  outline: none;
  border-color: #1a73e8;
}

/* Result container (same look as your .result box) */
.calculator-result {
  margin-top: 14px;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  font-size: 1.05rem;
}

.calculator-result p {
  margin: 8px 0;
}

/* Generic muted helper (you use .muted outside of .calc-breakdown) */
.muted {
  color: #777;
  font-weight: 500;
  font-size: 0.95rem;
}

/* Optional: tighten checkbox label spacing inside calculator */
.calculator-form label input[type="checkbox"] {
  margin: 0;
}

/* ===============================
   Pool Calculator Homepage Styles
   =============================== */

/* Quick Start Box */
.quick-start-box {
  margin: 28px 0 35px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
  border-left: 4px solid #0ea5e9;
  border-radius: 10px;
}

.quick-start-label {
  margin: 0 0 6px 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0c4a6e;
}

.quick-start-text {
  margin: 0;
  font-size: 0.95rem;
  color: #0c4a6e;
  line-height: 1.5;
}

.quick-start-text a {
  color: #0369a1;
  font-weight: 600;
  text-decoration: underline;
}

/* Section Headers */
.calculators-section {
  margin-top: 45px;
}

.section-heading {
  font-size: 1.5rem;
  color: #1a73e8;
  margin: 0 0 6px 0;
  text-align: center;
}

.section-intro {
  text-align: center;
  color: #666;
  font-size: 0.95rem;
  margin: 0 0 22px 0;
}

/* Calculator Card Grid */
.calculator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

@media (min-width: 640px) {
  .calculator-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Calculator Cards */
.calc-card {
  display: block;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
  position: relative;
}

.calc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-color: #1a73e8;
}

.calc-card__icon {
  font-size: 2rem;
  margin-bottom: 10px;
  line-height: 1;
}

.calc-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a73e8;
  margin: 0 0 8px 0;
}

.calc-card__desc {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
  line-height: 1.5;
}

.calc-card__tag {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Primary Card (Pool Volume) */
.calc-card--primary {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-color: #0ea5e9;
  border-width: 2px;
}

.calc-card--primary:hover {
  border-color: #0284c7;
}

/* Urgent Card (Shock) */
.calc-card--urgent {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-color: #f59e0b;
  border-width: 2px;
}

.calc-card--urgent:hover {
  border-color: #d97706;
}

.calc-card__tag--urgent {
  background: #fef3c7;
  color: #92400e;
}

/* Tips Section */
.tips-section {
  margin-top: 45px;
}

.tips-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 20px;
}

@media (min-width: 640px) {
  .tips-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tip-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.tip-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a73e8;
  margin: 0 0 8px 0;
}

.tip-card p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
  line-height: 1.5;
}

/* Mobile optimizations */
@media (max-width: 480px) {
  .quick-start-box {
    padding: 14px 16px;
  }

  .section-heading {
    font-size: 1.3rem;
  }

  .calc-card {
    padding: 16px;
  }

  .calc-card__title {
    font-size: 1rem;
  }

  .calc-card__desc {
    font-size: 0.85rem;
  }
}

/* ===============================
   All-in-One Calculator (pool-chemical-calculator)
   Prefix: aio-
   Add to end of main.css
================================ */

/* Progress bar */
.aio-progress {
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  margin-bottom: 16px;
  overflow: hidden;
}

.aio-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, #1a73e8, #0ea5e9);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Step tabs */
.aio-tabs {
  display: flex;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-bottom: none;
}

.aio-tab {
  flex: 1;
  padding: 10px 6px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #9ca3af;
  background: #f9fafb;
  cursor: pointer;
  border-right: 1px solid #e5e7eb;
  transition: color 0.15s, background 0.15s;
  line-height: 1.3;
  user-select: none;
}

.aio-tab:last-child {
  border-right: none;
}

.aio-tab--active {
  background: #fff;
  color: #1a73e8;
  box-shadow: inset 0 -2px 0 #1a73e8;
}

.aio-tab--complete {
  color: #16a34a;
  background: #f0fdf4;
}

.aio-tab__num {
  display: block;
  font-size: 0.68rem;
  opacity: 0.7;
  font-weight: 500;
}

/* Step panels */
.aio-panel {
  display: none;
  border: 1px solid #e5e7eb;
  border-radius: 0 0 8px 8px;
  padding: 20px;
  background: #fff;
}

.aio-panel--active {
  display: block;
}

/* Range hint — sits inline after label text */
.aio-range-hint {
  font-size: 0.78rem;
  color: #9ca3af;
  font-weight: 400;
  margin-left: 6px;
}

/* Skip checkbox row */
.aio-skip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -10px 0 6px;
}

.aio-skip-row input[type="checkbox"] {
  width: 15px;
  height: 15px;
  cursor: pointer;
  accent-color: #1a73e8;
  flex-shrink: 0;
}

.aio-skip-label {
  font-weight: 400 !important;  /* override .calculator-form label */
  font-size: 0.83rem !important;
  color: #6b7280;
  margin: 0 !important;
  cursor: pointer;
}

/* Carry-forward volume notice */
.aio-carry {
  font-size: 0.82rem;
  color: #0369a1;
  background: #e0f2fe;
  border-radius: 6px;
  padding: 6px 10px;
  margin: 0 0 14px;
}

/* Nav row — holds back/next buttons */
.aio-nav {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  align-items: center;
}

/* btn-primary and btn-secondary already exist in main.css;
   this modifier ensures buttons in the nav fill/align correctly */
.aio-nav .btn-primary,
.aio-nav .btn-secondary {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
}

/* Push the last button to the right when both back + next are present */
.aio-nav .btn-primary:last-child {
  margin-left: auto;
}

/* Result summary card — inside .calculator-result */
.aio-summary-header {
  background: linear-gradient(135deg, #1a73e8 0%, #1557b0 100%);
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px 8px 0 0;
  font-weight: 700;
  font-size: 0.95rem;
  margin: -20px -20px 0;  /* bleeds to calculator-result edges */
}

.aio-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
  gap: 10px;
}

.aio-summary-row:last-child {
  border-bottom: none;
}

.aio-summary-row__label {
  font-weight: 600;
  font-size: 0.88rem;
  color: #374151;
  flex-shrink: 0;
}

.aio-summary-row__sub {
  font-size: 0.78rem;
  color: #9ca3af;
  margin-top: 2px;
}

.aio-summary-row__value {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a73e8;
  text-align: right;
}

.aio-summary-row__value--ok    { color: #16a34a; }
.aio-summary-row__value--warn  { color: #d97706; }
.aio-summary-row__product {
  font-size: 0.78rem;
  color: #6b7280;
  text-align: right;
  margin-top: 2px;
}

/* Treatment order banner — reuses quick-start-box palette */
.aio-order-banner {
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
  border-left: 4px solid #0ea5e9;
  border-radius: 8px;
  padding: 14px 16px;
  margin: 0 0 16px;
}

.aio-order-banner__title {
  font-weight: 700;
  font-size: 0.88rem;
  color: #0c4a6e;
  margin: 0 0 8px;
}

.aio-order-banner ol {
  margin: 0;
  padding-left: 1.3em;
  font-size: 0.85rem;
  color: #0c4a6e;
  line-height: 1.8;
}

.aio-order-banner__footer {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: #0c4a6e;
}

/* Instruction block per parameter */
.aio-instruction {
  margin-top: 12px;
  padding: 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.aio-instruction__title {
  font-weight: 700;
  font-size: 0.88rem;
  margin: 0 0 6px;
  color: #111827;
}

/* All-good state */
.aio-all-good {
  text-align: center;
  padding: 24px 16px;
}

.aio-all-good__icon {
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.aio-all-good__text {
  font-weight: 700;
  font-size: 1.05rem;
  color: #16a34a;
  margin-bottom: 6px;
}

/* Shop strip — supplies-callout already exists in main.css;
   aio-shop-links handles the pill buttons inside it */
.aio-shop-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

/* Pill shop buttons reuse .btn-secondary shape/colours;
   this modifier tightens padding for dense inline use */
.aio-shop-pill {
  display: inline-block;
  padding: 5px 12px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1a73e8;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.aio-shop-pill:hover {
  border-color: #1a73e8;
  background: #f0f7ff;
  text-decoration: none;
}

@media (max-width: 480px) {
  .aio-tab {
    font-size: 0.72rem;
    padding: 9px 4px;
  }

  .aio-panel {
    padding: 16px;
  }

  .aio-summary-header {
    margin: -16px -16px 0;
  }
}

/* ===============================
   SLAM Interactive Checklist
================================ */

.slam-checklist {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.slam-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.12s;
  font-weight: 400;     /* override global label font-weight:600 */
  margin: 0;            /* override global label margin-bottom:20px */
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.4;
}

.slam-check-row:hover {
  background: #f3f4f6;
}

.slam-checkbox {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #16a34a;
  cursor: pointer;
}

/* Strike-through when checked */
.slam-checkbox:checked + .slam-check-label {
  text-decoration: line-through;
  color: #9ca3af;
}

.slam-check-label {
  flex: 1;
}

/* ===============================
   Safety Warning Box
================================ */
.safety-warning {
  margin-top: 14px;
  padding: 14px;
  background: #fee;
  border-left: 4px solid #dc2626;
  border-radius: 8px;
}

/* ===============================
   LSI Interpretation Table Row States
================================ */
.row--danger  { background: #fee; }
.row--warning { background: #fef3c7; }
.row--ok      { background: #d1fae5; }

/* ===============================
   Formula Display Box
================================ */
.formula-box {
  background: #f3f4f6;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.formula-box p {
  margin: 0;
}

.formula-box p + p {
  margin-top: 10px;
  font-size: 0.9rem;
}

/* Tip card CTA link spacing */
.tip-card p + p {
  margin-top: 10px;
}