/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --qatch-cyan:        #17a9d4;
  --qatch-cyan-dark:   #0d8ab3;
  --qatch-cyan-light:  #e6f6fb;
  --qatch-cyan-mid:    rgba(23, 169, 212, 0.15);
  --qatch-navy:        #1a2a3a;
  --qatch-navy-mid:    #2d4057;
  --bg-page:           #f0f6fa;
  --bg-hero:           linear-gradient(160deg, #cad6ed 0%, #ddeaf5 40%, #edf5fb 100%);
  --glass-bg:          rgba(255, 255, 255, 0.68);
  --glass-bg-hover:    rgba(255, 255, 255, 0.80);
  --glass-border:      rgba(255, 255, 255, 0.85);
  --glass-shadow:      0 8px 32px rgba(23, 169, 212, 0.12), 0 2px 8px rgba(26, 42, 58, 0.06);
  --text-primary:      #1a2a3a;
  --text-secondary:    #4a6070;
  --text-muted:        #8aa0b0;
  --text-on-dark:      #ffffff;
  --text-on-cyan:      #ffffff;
  --success:           #17a9d4;
  --danger:            #d94f4f;
  --warning:           #e8962a;
  --border-light:      rgba(23, 169, 212, 0.18);
  --border-mid:        rgba(23, 169, 212, 0.30);
  --radius-sm:         6px;
  --radius-md:         12px;
  --radius-lg:         20px;
  --radius-pill:       100px;
  --transition:        0.2s ease;
}

/* Base */
html {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Roboto', 'Montserrat', sans-serif;
  font-size: 15px;
  color: var(--text-primary);
  background: var(--bg-page);
  height: 100%;
  overflow: hidden;
  line-height: 1.6;
}

/* Layered light-blue background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--bg-hero);
  z-index: 0;
  pointer-events: none;
}

/* Dot-grid texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(23,169,212,0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  z-index: 0;
  pointer-events: none;
}

/*  Page wrap */
.page-wrap {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* Navigation bar */
.navbar {
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 24px;
  height: 68px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--qatch-cyan);
  z-index: 100;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--qatch-navy);
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.brand-sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Title */
.navbar-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

.navbar-title strong {
  font-weight: 700;
  color: var(--qatch-navy);
}

/* App body */
.app-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 10px;
  padding: 10px;
  overflow: hidden;
}

/*  Left panel */
#inputPanel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#inputPanel > .card-header {
  flex-shrink: 0;
}

/* Inner body scrolls */
#inputPanel > .card-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Styled scrollbar */
#inputPanel > .card-body::-webkit-scrollbar { width: 5px; }
#inputPanel > .card-body::-webkit-scrollbar-track { background: transparent; }
#inputPanel > .card-body::-webkit-scrollbar-thumb {
  background: rgba(23,169,212,0.28);
  border-radius: 3px;
}
#inputPanel > .card-body::-webkit-scrollbar-thumb:hover {
  background: rgba(23,169,212,0.45);
}

/* Right panel: static, fills height  */
#resultsPanel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

/* Card header stays fixed at top of results panel */
#resultsPanel > .card-header {
  flex-shrink: 0;
}

/* Results content area scrolls internally */
.card-body-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 22px 24px;
}

/* Styled scrollbar for results panel */
.card-body-scroll::-webkit-scrollbar { width: 5px; }
.card-body-scroll::-webkit-scrollbar-track { background: transparent; }
.card-body-scroll::-webkit-scrollbar-thumb {
  background: rgba(23,169,212,0.28);
  border-radius: 3px;
}

/* Pinned citation at the bottom — never scrolls away */
.disclaimer-bar {
  cursor: default;
  user-select: none;
  flex-shrink: 0;
  padding: 9px 20px;
  font-size: 10.5px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
  background: rgba(230, 246, 251, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--border-light);
}

.disclaimer-bar a {
  color: var(--qatch-cyan-dark);
  text-decoration: none;
}

.disclaimer-bar a:hover { text-decoration: underline; }

/* Portrait: stack panels vertically, restore scroll */
@media (max-width: 939px) {
  html, body { overflow: auto; height: auto; }

  .page-wrap {
    height: auto;
    overflow: visible;
  }

  .app-body {
    grid-template-columns: 1fr;
    overflow: visible;
    height: auto;
    flex: none;
  }

  .navbar-title { display: none; }

  #inputPanel { overflow: visible; height: auto; }
  #inputPanel > .card-body { overflow: visible; height: auto; }
  #resultsPanel { overflow: visible; height: auto; }

  .card-body-scroll {
    overflow: visible;
    height: auto;
    padding: 22px 24px;
  }

  .disclaimer-bar { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
}


/* Glass card */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.glass-card:hover {
  box-shadow:
    0 12px 40px rgba(23, 169, 212, 0.16),
    0 2px 10px rgba(26, 42, 58, 0.07);
}

/* Card header */
.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px 12px;
  border-bottom: 1px solid rgba(23,169,212,0.10);
  background: rgba(255,255,255,0.40);
}

.card-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.card-icon.cyan { background: var(--qatch-cyan-mid); }
.card-icon.navy { background: rgba(26,42,58,0.08); }

.card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-secondary);
  cursor: default;
  user-select: none;
}

/* .card-body kept for left panel */
.card-body {
  padding: 18px 20px;
}


/* Section dividers inside cards */
.section-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--qatch-cyan-dark);
  margin-bottom: 14px;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--qatch-cyan-light);
  display: flex;
  align-items: center;
  gap: 7px;
}

.section-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  cursor: default;
  user-select: none;
}

.divider {
  height: 1px;
  background: rgba(23,169,212,0.12);
  margin: 18px 0;
}

/* Form fields */
.field {
  margin-bottom: 14px;
}

.field label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.02em;
}

.field label .unit {
  cursor: default;
  user-select: none;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: rgba(23,169,212,0.08);
  border: 1px solid var(--border-light);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* Plain text inputs — no spinners */
.field input[type="text"],
.field input[type="number"],
.field select {
  width: 100%;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(23,169,212,0.22);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Roboto', monospace;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 14px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

/* Hide number spinners */
.field input[type="number"]::-webkit-inner-spin-button,
.field input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}
.field input[type="number"] { -moz-appearance: textfield; }

.field input:focus,
.field select:focus {
  border-color: var(--qatch-cyan);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 0 0 3px rgba(23,169,212,0.12);
}

.field input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2317a9d4' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Charge mode toggle */
.mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  background: rgba(255,255,255,0.5);
}

.mode-btn {
  padding: 9px 12px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  text-align: center;
}

.mode-btn:first-child {
  border-right: 1px solid var(--border-light);
}

.mode-btn.active {
  background: var(--qatch-cyan);
  color: var(--text-on-cyan);
}

.mode-btn:not(.active):hover {
  background: var(--qatch-cyan-light);
  color: var(--qatch-cyan-dark);
}

/* Primary CTA button — QATCH solid dark style */
.btn-primary {
  display: block;
  width: 100%;
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--qatch-navy);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  margin-top: 8px;
}

.btn-primary:hover {
  background: var(--qatch-cyan);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(23,169,212,0.28);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Outlined button */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--qatch-navy);
  background: rgba(255,255,255,0.6);
  color: var(--qatch-navy);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--qatch-navy);
  color: #ffffff;
}

/* Error box */
.error-box {
  background: rgba(217,79,79,0.08);
  border: 1px solid rgba(217,79,79,0.25);
  border-radius: var(--radius-md);
  color: var(--danger);
  font-size: 13px;
  padding: 12px 16px;
  margin-top: 14px;
  line-height: 1.5;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(23,169,212,0.25);
  border-radius: 3px;
}

/* Empty state */
.results-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  text-align: center;
  gap: 16px;
  padding: 48px 32px;
}

/*  empty state  */
.empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--qatch-cyan-light);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--qatch-cyan);
}

.empty-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-secondary);
}

.empty-text {
  cursor: default;
  user-select: none;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.65;
}

/* Metric grid */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

@media (max-width: 680px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
}

.metric-card {
  background: rgba(255,255,255,0.60);
  border: 1px solid rgba(23,169,212,0.14);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: border-color var(--transition);
}

.metric-card:hover {
  border-color: var(--border-mid);
}

.metric-card.highlight {
  background: rgba(23,169,212,0.08);
  border-color: var(--qatch-cyan);
}

.metric-card.highlight .metric-value {
  color: var(--qatch-cyan-dark);
}

.metric-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.metric-value {
  font-family: 'Roboto', monospace;
  font-size: 22px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.metric-delta {
  font-size: 11px;
  margin-top: 3px;
  font-weight: 500;
}

.metric-delta.up      { color: var(--qatch-cyan-dark); }
.metric-delta.down    { color: var(--danger); }
.metric-delta.neutral { color: var(--text-muted); }

/* Species bar chart  */
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(23,169,212,0.15);
}

.species-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.species-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.species-name {
  font-family: 'Roboto', monospace;
  font-size: 12px;
  color: var(--text-secondary);
  min-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-track {
  flex: 1;
  height: 6px;
  background: rgba(23,169,212,0.08);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.bar-compare {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 3px;
  opacity: 0.22;
}

.bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 2px;
}

.species-val {
  font-family: 'Roboto', monospace;
  font-size: 12px;
  color: var(--text-primary);
  min-width: 70px;
  text-align: right;
  white-space: nowrap;
  font-weight: 500;
}

.species-delta {
  font-size: 9px;
  color: var(--text-muted);
}

/* Charge badges  */
.charge-badge {
  font-family: 'Roboto', monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  min-width: 26px;
  text-align: center;
}

.charge-pos { background: rgba(23,169,212,0.12); color: var(--qatch-cyan-dark); }
.charge-neg { background: rgba(217,79,79,0.10);  color: var(--danger); }
.charge-zer { background: rgba(26,42,58,0.06);   color: var(--text-muted); }

/* Legend  */
.legend {
  display: flex;
  gap: 20px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-secondary);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* Totals grid */
.totals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.total-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(23,169,212,0.10);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  gap: 8px;
}

.total-item .name {
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.total-item .vals {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Roboto', monospace;
  font-size: 12px;
  color: var(--text-primary);
  font-weight: 500;
}

.total-item .arrow {
  color: var(--qatch-cyan);
  font-size: 12px;
}

.total-item .unit-sm {
  font-size: 10px;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════════════
   NAVBAR — About button
   ══════════════════════════════════════════════════════════════ */
.navbar-about-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-mid);
  background: rgba(23,169,212,0.07);
  color: var(--qatch-cyan-dark);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition),
              transform var(--transition);
  margin-left: auto;      /* pushes to right even when title is centered */
}

.navbar-about-btn:hover {
  background: var(--qatch-cyan-light);
  border-color: var(--qatch-cyan);
  transform: translateY(-1px);
}

.navbar-about-btn svg { flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════
   DRAWER — backdrop + panel
   ══════════════════════════════════════════════════════════════ */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 42, 58, 0.35);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.info-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(480px, 95vw);
  height: 100vh;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--glass-border);
  box-shadow: -8px 0 40px rgba(26, 42, 58, 0.12);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-drawer.open {
  transform: translateX(0);
}

/* Drawer header */
.drawer-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 68px;
  border-bottom: 2px solid var(--qatch-cyan);
  background: rgba(255, 255, 255, 0.9);
}

.drawer-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--qatch-navy);
  letter-spacing: 0.02em;
}

.drawer-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: rgba(23,169,212,0.07);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.drawer-close:hover {
  background: var(--qatch-cyan-light);
  color: var(--qatch-navy);
}

/* Drawer scrollable body */
.drawer-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 0;
}

.drawer-body::-webkit-scrollbar { width: 4px; }
.drawer-body::-webkit-scrollbar-track { background: transparent; }
.drawer-body::-webkit-scrollbar-thumb {
  background: rgba(23,169,212,0.25);
  border-radius: 2px;
}

/* ── Accordion sections ── */
.info-section {
  border-bottom: 1px solid rgba(23,169,212,0.10);
}

.accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 20px;
  border: none;
  background: transparent;
  color: var(--qatch-navy);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  text-align: left;
  transition: background var(--transition);
}

.accordion-btn:hover { background: var(--qatch-cyan-light); }
.accordion-btn.active { color: var(--qatch-cyan-dark); }

.accordion-btn .chevron {
  margin-left: auto;
  transition: transform 0.22s ease;
  flex-shrink: 0;
}

.accordion-btn.active .chevron {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.2s ease;
  padding: 0 20px;
}

.accordion-body.open {
  max-height: 2000px;
  padding: 4px 20px 18px;
}

/* Body typography */
.accordion-body p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 10px;
}

.accordion-body p:last-child { margin-bottom: 0; }

.accordion-body ul {
  padding-left: 18px;
  margin-bottom: 10px;
}

.accordion-body li {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 3px;
}

blockquote {
  margin: 10px 0 12px;
  padding: 10px 14px;
  background: var(--qatch-cyan-light);
  border-left: 3px solid var(--qatch-cyan);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 12px;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
}

blockquote a {
  color: var(--qatch-cyan-dark);
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 11px;
}

.info-subhead {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--qatch-cyan-dark);
  margin: 14px 0 7px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--qatch-cyan-light);
}

.info-note {
  font-size: 11px !important;
  color: var(--text-muted) !important;
  font-style: italic;
  background: rgba(23,169,212,0.05);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  margin-top: 6px !important;
}

.link-list { list-style: none; padding-left: 0 !important; }
.link-list li { margin-bottom: 5px !important; }
.link-list a {
  color: var(--qatch-cyan-dark);
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.link-list a::after {
  content: '↗';
  font-size: 10px;
  opacity: 0.6;
}
.link-list a:hover { text-decoration: underline; }

/* Disclaimer text within accordion */
.disclaimer-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 10px;
  padding: 8px 12px;
  background: rgba(217, 79, 79, 0.04);
  border-left: 3px solid rgba(217, 79, 79, 0.3);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ── Contact form ── */
.contact-form {
  margin: 4px 0 14px;
}

.contact-field {
  margin-bottom: 12px;
}

.contact-field label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(23,169,212,0.25);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  padding: 9px 12px;
  outline: none;
  resize: vertical;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--qatch-cyan);
  box-shadow: 0 0 0 3px rgba(23,169,212,0.10);
}

.contact-field textarea { min-height: 90px; }

.contact-submit {
  width: 100%;
  padding: 11px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--qatch-navy);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.contact-submit:hover {
  background: var(--qatch-cyan);
  transform: translateY(-1px);
}

.contact-confirm {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(23,169,212,0.08);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 12px;
  color: var(--qatch-cyan-dark);
  line-height: 1.5;
}

.contact-confirm a {
  color: var(--qatch-cyan-dark);
  font-weight: 600;
}

.contact-direct {
  cursor: default;
  user-select: none;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding-top: 4px;
}

.contact-direct a {
  color: var(--qatch-cyan-dark);
  font-weight: 600;
  text-decoration: none;
}

.contact-direct a:hover { text-decoration: underline; }

/* Scrollbar (global fallback) */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(23,169,212,0.25);
  border-radius: 3px;
}