/* ============================================================
   EICalc.ca — css/style.css
   2026 · Responsive · Mobile-first
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --teal:        #00667a;
  --teal-dark:   #004f5e;
  --teal-light:  #e0f4f7;
  --navy:        #0d2137;
  --navy-mid:    #163652;
  --slate:       #2e4a60;
  --mist:        #edf4f6;
  --mist-dark:   #d4e6eb;
  --white:       #ffffff;
  --off-white:   #f7fafc;
  --text:        #1a2b38;
  --text-mid:    #2e4455;
  --text-light:  #5c7a8a;
  --border:      #cddee6;
  --success:     #0e6e3f;
  --success-bg:  #e8f7ef;
  --danger:      #b71c1c;
  --danger-bg:   #fdecea;
  --warn:        #c88a00;
  --warn-bg:     #fff8e0;
  --gold-border: #e8cc6a;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow-sm:   0 1px 4px rgba(13,33,55,0.08);
  --shadow-md:   0 4px 16px rgba(13,33,55,0.12);
  --shadow-lg:   0 8px 32px rgba(13,33,55,0.16);
  --font-head:   'Georgia', 'Times New Roman', serif;
  --font-body:   'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono:   'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--off-white);
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }

/* ── Site Header ────────────────────────────────────────────── */
.site-header {
  background: var(--navy);
  border-bottom: 3px solid var(--teal);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.logo-maple { font-size: 20px; line-height: 1; }
.logo-text {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--white);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.logo-text span { color: #4dd4e8; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-size: 0.84rem;
  padding: 5px 11px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.site-nav a:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 55%, var(--slate) 100%);
  padding: 52px 20px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 680px; margin: 0 auto; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,102,122,0.3);
  border: 1px solid rgba(77,212,232,0.4);
  color: #a0eaf5;
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4.5vw, 2.55rem);
  color: var(--white);
  line-height: 1.22;
  margin-bottom: 14px;
  font-weight: 700;
}
.hero p {
  color: rgba(255,255,255,0.72);
  font-size: 1.02rem;
  max-width: 540px;
  margin: 0 auto;
}

/* ── Main Layout ────────────────────────────────────────────── */
.main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ── Calculator Card ────────────────────────────────────────── */
.calc-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin: -24px auto 40px;
  max-width: 840px;
  overflow: visible;
  border: 1px solid var(--border);
  position: relative;
  z-index: 10;
}
.calc-header {
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal-dark) 100%);
  padding: 16px 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.calc-header h2 {
  font-family: var(--font-head);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
}
.calc-icon { font-size: 1.25rem; }

.trust-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 16px;
  background: var(--mist);
  border-bottom: 1px solid var(--mist-dark);
  font-size: 0.79rem;
  color: var(--text-light);
  flex-wrap: wrap;
}
.ts-item { display: flex; align-items: center; gap: 4px; }
.ts-item strong { color: var(--navy); }
.ts-sep { color: var(--border); }

.calc-body { padding: 28px 32px 32px; }

/* ── Inputs ─────────────────────────────────────────────────── */
.input-group { margin-bottom: 22px; }
.input-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
}
.label-sub {
  font-weight: 400;
  color: var(--text-light);
  font-size: 0.81rem;
}

/* Location search */
.location-wrap {
  position: relative;
}
.location-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1.02rem;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--off-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.location-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,102,122,0.12);
  background: var(--white);
}

/* Autocomplete dropdown */
.autocomplete-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 2px solid var(--teal);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 200;
  max-height: 280px;
  overflow-y: auto;
}
.autocomplete-item {
  padding: 11px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--mist-dark);
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: background 0.15s;
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover,
.autocomplete-item.highlighted {
  background: var(--teal-light);
}
.ac-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
}
.ac-detail {
  font-size: 0.79rem;
  color: var(--text-light);
}

/* Region confirmed badge */
.region-confirmed {
  display: none;
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--teal-light);
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--teal-dark);
}
.region-confirmed.visible { display: block; }
.rc-check { font-weight: 700; margin-right: 4px; }

/* Number inputs */
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrap-dollar .input-prefix {
  position: absolute;
  left: 13px;
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 600;
  pointer-events: none;
}
.input-wrap input[type="number"] {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1.02rem;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--off-white);
  transition: border-color 0.2s, box-shadow 0.2s;
  -moz-appearance: textfield;
}
.input-wrap-dollar input[type="number"] {
  padding-left: 28px;
}
.input-wrap input[type="number"]::-webkit-inner-spin-button,
.input-wrap input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
}
.input-wrap input[type="number"]:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,102,122,0.12);
  background: var(--white);
}

/* ── CTA Button ─────────────────────────────────────────────── */
.btn-calculate {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 12px rgba(0,102,122,0.3);
  margin-top: 6px;
}
.btn-calculate:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,102,122,0.4);
}
.btn-calculate:active { transform: translateY(0); }

/* ── Results Section ────────────────────────────────────────── */
.results-section {
  display: none;
  margin-top: 26px;
}
.results-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 20px;
}
.results-label {
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 14px;
}

/* Eligibility banner */
.eligibility-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  font-size: 0.97rem;
}
.eligibility-banner.eligible {
  background: var(--success-bg);
  border: 1px solid #a3d9b8;
  color: var(--success);
}
.eligibility-banner.ineligible {
  background: var(--danger-bg);
  border: 1px solid #f5bcbc;
  color: var(--danger);
}
.banner-icon { font-size: 1.3rem; flex-shrink: 0; }

/* Results grid */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.result-item {
  background: var(--mist);
  border-radius: var(--radius);
  padding: 14px 16px;
  border-left: 4px solid var(--navy);
}
.result-item.highlight {
  background: var(--teal-light);
  border-left-color: var(--teal);
}
.result-item.result-item-warn {
  background: var(--warn-bg);
  border-left-color: var(--warn);
}
.result-item.result-item-fail {
  background: var(--danger-bg);
  border-left-color: var(--danger);
}
.r-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 5px;
}
.r-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  font-family: var(--font-head);
  line-height: 1.1;
}
.result-item.highlight .r-value { color: var(--teal-dark); }
.result-item.result-item-fail .r-value { color: var(--danger); }
.r-value-text {
  font-size: 1rem;
  line-height: 1.3;
}
.r-value-status { font-size: 1.05rem; }

/* Results breakdown */
.results-breakdown {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 16px;
}
.results-breakdown h4 {
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  gap: 8px;
}
.breakdown-row:last-child { border-bottom: none; }
.br-label { color: var(--text-mid); flex: 1; }
.br-val {
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-align: right;
}
.breakdown-total {
  font-weight: 700;
  background: var(--mist);
  padding: 8px 10px;
  border-radius: 6px;
  margin-top: 4px;
}
.breakdown-total .br-label { color: var(--navy); }
.breakdown-total .br-val { color: var(--teal-dark); font-size: 1rem; }

/* Results note */
.results-note {
  background: var(--warn-bg);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 11px 15px;
  font-size: 0.82rem;
  color: #6b4c00;
  line-height: 1.55;
}
.results-note a { color: var(--teal-dark); }

/* ── Ad Units ───────────────────────────────────────────────── */
.ad-unit {
  max-width: 840px;
  margin: 0 auto 32px;
  border-radius: var(--radius);
  overflow: hidden;
}
.ad-unit.ad-inactive {
  height: 0;
  overflow: hidden;
}
.ad-unit.active {
  height: auto;
  min-height: 90px;
  background: var(--mist);
}

/* ── Authority Sections ─────────────────────────────────────── */
.authority-section {
  max-width: 840px;
  margin: 0 auto 48px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 32px 36px;
  box-shadow: var(--shadow-sm);
}
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--mist-dark);
}
.section-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.authority-section h2 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: var(--navy);
  line-height: 1.25;
}
.authority-section h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--navy);
  margin: 20px 0 8px;
}
.authority-section h3:first-of-type { margin-top: 16px; }
.authority-section p {
  color: var(--text-mid);
  margin-bottom: 14px;
  font-size: 0.97rem;
}
.authority-section ul,
.authority-section ol {
  color: var(--text-mid);
  padding-left: 22px;
  margin-bottom: 14px;
}
.authority-section li {
  margin-bottom: 5px;
  font-size: 0.97rem;
}

/* ── Threshold Tables ───────────────────────────────────────── */
.threshold-table-wrap {
  overflow-x: auto;
  margin: 16px 0 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.threshold-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 280px;
}
.threshold-table thead th {
  background: var(--navy);
  color: var(--white);
  padding: 10px 14px;
  text-align: left;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.threshold-table tbody td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--mist-dark);
  color: var(--text-mid);
}
.threshold-table tbody tr:last-child td { border-bottom: none; }
.threshold-table tbody tr:nth-child(even) td { background: var(--mist); }
.threshold-table tbody tr:hover td { background: var(--teal-light); }

/* ── Comparison Grid ────────────────────────────────────────── */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 16px 0 20px;
}
.comparison-card {
  background: var(--mist);
  border-radius: var(--radius);
  padding: 16px 18px;
  border-top: 4px solid var(--teal);
}
.comp-region {
  font-weight: 700;
  font-size: 0.97rem;
  color: var(--navy);
  margin-bottom: 4px;
}
.comp-rate {
  font-size: 0.83rem;
  color: var(--text-light);
  margin-bottom: 4px;
}
.comp-hours {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 8px;
}
.comparison-card p {
  font-size: 0.85rem;
  color: var(--text-mid);
  margin: 0;
}

/* ── Example Cards ──────────────────────────────────────────── */
.example-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px 22px;
  margin-bottom: 20px;
  position: relative;
}
.example-card:last-child { margin-bottom: 0; }
.example-card.example-pass { border-left: 5px solid var(--success); }
.example-card.example-fail { border-left: 5px solid var(--danger); }
.example-label {
  display: inline-block;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.example-label-pass { background: var(--success-bg); color: var(--success); }
.example-label-fail { background: var(--danger-bg); color: var(--danger); }
.example-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--navy);
  margin: 0 0 12px;
}
.example-inputs {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.88rem;
  color: var(--text-mid);
}
.example-inputs li { margin: 0; }
.example-steps {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 12px;
}
.step {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.step:last-child { border-bottom: none; }
.step-label {
  color: var(--text-light);
  font-weight: 600;
  flex-shrink: 0;
}
.step-value {
  color: var(--text);
  text-align: right;
}
.step-total {
  background: var(--mist);
  padding: 8px 10px;
  border-radius: 6px;
  margin-top: 4px;
}
.step-total .step-value { color: var(--teal-dark); }
.step.step-fail .step-value { color: var(--danger); }
.example-note {
  font-size: 0.84rem;
  color: var(--text-light);
  font-style: italic;
  margin: 0;
}

/* ── Related Section ────────────────────────────────────────── */
.related-section {
  max-width: 840px;
  margin: 0 auto 40px;
}
.related-heading {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--mist-dark);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
/* network.js injects .related-card elements */
.related-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.related-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-sm);
}
.related-card-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
}
.related-card-desc {
  font-size: 0.83rem;
  color: var(--text-mid);
  line-height: 1.4;
}
.related-card-link {
  font-size: 0.82rem;
  color: var(--teal);
  margin-top: 4px;
  font-weight: 600;
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  margin-top: 0;
}
/* network.js injects footer content into #network-footer */
#network-footer { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  padding: 40px 0 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.footer-col p {
  font-size: 0.84rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.84rem;
  padding: 3px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: #4dd4e8; }
.footer-email a {
  color: #4dd4e8 !important;
  text-decoration: underline;
  text-decoration-color: rgba(77,212,232,0.4);
  opacity: 0.9;
}
.footer-email a:hover { opacity: 1; }
.more-tools-link {
  display: flex !important;
  flex-direction: column;
  gap: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 10px 12px !important;
  margin-top: 4px;
}
.more-tools-title { font-weight: 700; color: #4dd4e8 !important; font-size: 0.9rem; }
.subtext { font-size: 0.79rem; color: rgba(255,255,255,0.5) !important; }
.footer-bottom {
  padding: 16px 0 24px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}
.footer-bottom p + p { margin-top: 4px; }

/* ── Support Page Styles ────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 40px 20px 36px;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  color: var(--white);
  margin-bottom: 10px;
}
.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 0.97rem;
  max-width: 540px;
  margin: 0 auto;
}
.page-content {
  max-width: 840px;
  margin: 40px auto 60px;
  padding: 0 20px;
}
.page-content h2 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--navy);
  margin: 32px 0 10px;
  padding-top: 24px;
  border-top: 1px solid var(--mist-dark);
}
.page-content h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.page-content h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--navy);
  margin: 20px 0 8px;
}
.page-content p {
  color: var(--text-mid);
  font-size: 0.97rem;
  margin-bottom: 14px;
  line-height: 1.7;
}
.page-content ul, .page-content ol {
  color: var(--text-mid);
  padding-left: 22px;
  margin-bottom: 14px;
}
.page-content li { margin-bottom: 6px; font-size: 0.97rem; line-height: 1.6; }
.page-content a { color: var(--teal); }
.page-content strong { color: var(--text); }

/* FAQ accordion */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 14px 18px;
  background: var(--white);
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  font-family: var(--font-body);
  gap: 12px;
  transition: background 0.15s;
}
.faq-q:hover { background: var(--mist); }
.faq-arrow {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--text-light);
  transition: transform 0.2s;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding: 4px 18px 16px;
  background: var(--white);
  font-size: 0.93rem;
  color: var(--text-mid);
  line-height: 1.65;
}
.faq-item.open .faq-a { display: block; }

/* Contact form info */
.contact-info-box {
  background: var(--teal-light);
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 24px;
  font-size: 0.93rem;
  color: var(--teal-dark);
}
.contact-info-box a { color: var(--teal-dark); font-weight: 600; }

/* ── Responsive — Tablet ────────────────────────────────────── */
@media (max-width: 768px) {
  .calc-body { padding: 20px 18px 24px; }
  .authority-section { padding: 22px 18px; }
  .comparison-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .example-inputs { flex-direction: column; gap: 4px; }
  .step { flex-direction: column; gap: 2px; }
  .step-value { text-align: left; }
}

/* ── Responsive — Mobile ────────────────────────────────────── */
@media (max-width: 480px) {
  body { font-size: 15px; }
  .hero { padding: 36px 16px 32px; }
  .hero-badge { font-size: 0.72rem; }
  .header-inner { padding: 0 14px; }
  .site-nav a { padding: 4px 8px; font-size: 0.8rem; }
  .calc-card { margin: -18px 0 28px; border-radius: var(--radius); }
  .calc-header { padding: 14px 16px; }
  .calc-header h2 { font-size: 0.97rem; }
  .calc-body { padding: 16px 14px 20px; }
  .authority-section { padding: 18px 14px; border-radius: var(--radius); }
  .authority-section h2 { font-size: 1.15rem; }
  .results-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .r-value { font-size: 1.15rem; }
  .comparison-card { padding: 12px 14px; }
  .trust-strip { gap: 8px; font-size: 0.74rem; }
  .ts-sep { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .threshold-table { font-size: 0.83rem; }
  .threshold-table thead th,
  .threshold-table tbody td { padding: 7px 10px; }
  .example-card { padding: 14px 14px; }
  .main-content { padding: 0 12px 40px; }
  .page-content { padding: 0 14px; }
}

/* ── No horizontal overflow ─────────────────────────────────── */
html, body { overflow-x: hidden; }
.main-content, .page-content { overflow-x: hidden; }
.threshold-table-wrap { -webkit-overflow-scrolling: touch; }
