/* ── Filter bar ── */
.filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 14px 16px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* Mobile toggle button — hidden on desktop */
.filter-toggle { display: none; }

/* Filter body — on desktop it IS the flex row */
.filter-body {
  display: contents; /* children participate in parent flex as if unwrapped */
}

/* Badge shown when filters are active */
.filter-badge {
  display: none;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  line-height: 16px;
}
.filter-badge.visible { display: inline-block; }

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 180px;
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 7px 10px 7px 34px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 13px;
  color: var(--text);
  background: var(--bg);
  height: 34px;
  outline: none;
  transition: border-color 0.15s;
}
.search-input:focus { border-color: var(--accent); }
.search-input::placeholder { color: var(--text-3); }

.filter-select {
  height: 34px;
  padding: 0 28px 0 8px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 13px;
  color: var(--text);
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 8px center;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  min-width: 150px;
  cursor: pointer;
}
.filter-select:focus { border-color: var(--accent); }

.clear-btn {
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface);
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.clear-btn:hover { border-color: var(--border-strong); color: var(--text); }

.nearby-wrap {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nearby-km-input {
  width: 80px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 13px;
  color: var(--text);
  background: var(--surface);
}
.nearby-km-input:focus { outline: none; border-color: var(--accent); }
.nearby-btn {
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface);
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.nearby-btn:hover { border-color: var(--border-strong); color: var(--text); }
.nearby-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.result-count {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
}

/* ── Section heading ── */
.section-heading {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-3);
  margin-bottom: 12px;
}

/* ── Cards grid ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}

/* ── Crossing card ── */
.crossing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-left-color: var(--border);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.crossing-card[data-severity="low"]    { border-left-color: var(--low-text); }
.crossing-card[data-severity="medium"] { border-left-color: var(--med-text); }
.crossing-card[data-severity="high"]   { border-left-color: var(--high-text); }

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 11px 16px 9px;
  border-bottom: 1px solid var(--border);
  gap: 8px;
}

.card-name {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Crossing names are places, not labels — mixed case and larger */
.crossing-card .card-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.card-updated {
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* ── Direction rows ── */
.direction-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: background 0.1s;
}
.direction-row:last-child { border-bottom: none; }
.direction-row:hover { background: var(--surface-2); text-decoration: none; }

.dir-countries {
  flex: 1;
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dir-arrow {
  color: var(--text-3);
  flex-shrink: 0;
  opacity: 0.5;
}

.dir-divider {
  height: 3px;
  background: var(--border);
}

.dir-stats {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.dir-stats:last-child { border-bottom: none; }

.dir-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 16px 8px;
  border-right: 1px solid var(--border);
}
.dir-stat:last-child { border-right: none; }

.dir-stat-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-3);
}
.dir-stat-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.dir-stat-sub {
  font-size: 10px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

/* ── Wait pill ── */
.wait-pill {
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.wait-low    { background: var(--low-bg);   color: var(--low-text); }
.wait-medium { background: var(--med-bg);   color: var(--med-text); }
.wait-high   { background: var(--high-bg);  color: var(--high-text); }
.wait-none   { background: var(--surface-2); color: var(--text-3); }

/* ── Submit card ── */
.submit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 24px;
}

.submit-form {
  padding: 14px 16px 16px;
  position: relative;
}

.submit-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.submit-select {
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 13px;
  color: var(--text);
  background: var(--bg);
  outline: none;
  cursor: pointer;
  flex: 1;
  min-width: 150px;
}
.submit-select:focus  { border-color: var(--accent); }
.submit-select:disabled { opacity: 0.45; cursor: not-allowed; }

.submit-btn {
  height: 34px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.submit-btn:hover    { background: var(--accent-hover); }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.submit-locate {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.locate-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--bg);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}
.locate-btn:hover    { border-color: var(--border-strong); color: var(--text); }
.locate-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.locate-msg {
  font-size: 12px;
  color: var(--text-3);
}
.locate-msg-error { color: var(--high-text); }

.submit-feedback {
  margin-top: 10px;
  font-size: 12px;
  min-height: 16px;
}
.submit-feedback-ok    { color: var(--low-text); }
.submit-feedback-error { color: var(--high-text); }

/* ── Submit card tagline ── */
.submit-tagline {
  font-size: 13px;
  color: var(--text-2);
  padding: 12px 16px 0;
  line-height: 1.6;
}

/* ── Freshness color classes for card-updated ── */
.card-updated.updated-fresh  { color: var(--low-text); }
.card-updated.updated-recent { color: var(--text-2); }
.card-updated.updated-stale  { color: var(--text-3); }
.card-updated.updated-old    { color: var(--border-strong); }

/* ── Cubevo CTA in disclaimer ── */
.disclaimer-credit { font-size: 13px; color: var(--text-2); }
.disclaimer-credit-cta {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 4px 12px;
  transition: background 0.15s, color 0.15s;
}
.disclaimer-credit-cta:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* ── Disclaimer card ── */
.disclaimer-card {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  scroll-margin-top: 72px;
}
.disclaimer-card a { color: var(--text-2); text-decoration: underline; }
.disclaimer-card a:hover { color: var(--text); }

.disclaimer-credit {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  line-height: 1.6;
}

.disclaimer-sections {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  overflow: hidden;
  border-radius: 3px;
}

.disclaimer-section {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.disclaimer-icon {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.45;
}

.disclaimer-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-3);
  margin-bottom: 4px;
}

/* ── Submit card help link ── */
.card-help-link {
  font-size: 11px;
  color: var(--text-3);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.card-help-link:hover { color: var(--text-2); text-decoration: underline; }

/* ── No results ── */
.no-results {
  display: none;
  padding: 48px 24px;
  text-align: center;
  color: var(--text-3);
  font-size: 14px;
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .cards-grid { grid-template-columns: 1fr; }

  /* Collapsible filter bar on mobile */
  .filter-bar {
    padding: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: visible;
  }

  .filter-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
  }

  .filter-toggle-label { flex: 1; }

  .filter-chevron {
    color: var(--text-3);
    flex-shrink: 0;
    transition: transform 0.2s;
  }
  .filter-bar.filter-open .filter-chevron { transform: rotate(180deg); }

  /* Override display:contents so we can show/hide on mobile */
  .filter-body {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px 14px;
    border-top: 1px solid var(--border);
  }
  .filter-bar.filter-open .filter-body { display: flex; }

  /* Section heading + sort controls stack vertically */
  .section-row { flex-direction: column; align-items: flex-start; gap: 6px; }

  .search-wrap { flex: none; width: 100%; min-width: 0; }
  .filter-select { flex: none; width: 100%; min-width: 0; }
  .nearby-wrap { flex: none; width: 100%; min-width: 0; }
  .nearby-km-input { flex: 1; min-width: 0; height: 44px; font-size: 16px; }
  .nearby-btn { height: 44px; font-size: 13px; }
  .clear-btn { flex: none; width: 100%; min-width: 0; }
}

/* ── Section row (heading + controls) ── */
.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.section-row .section-heading { margin-bottom: 0; }

/* ── 30-day stats note ── */
.stats-period-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 9px;
  margin: -2px 0 12px;
  letter-spacing: 0.01em;
}

/* ── Sort controls ── */
.sort-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}
.sort-btn {
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  background: var(--surface);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.sort-btn:hover { color: var(--text); border-color: var(--border-strong); }
.sort-btn.active { background: var(--text); color: #fff; border-color: var(--text); }

/* ── Community count ── */
.community-week {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

/* ── Quick report button on card ── */
.card-report-btn {
  display: block;
  width: 100%;
  padding: 9px 16px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.1s, color 0.1s;
}
.card-report-btn:hover { background: var(--surface-2); color: var(--accent); }

/* ── Show all crossings ── */
.show-all-wrap {
  text-align: center;
  margin: 16px 0 4px;
}
.show-all-btn {
  height: 34px;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.show-all-btn:hover { border-color: var(--border-strong); color: var(--text); }

/* ── Share button (post-submit) ── */
.share-crossing-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.share-crossing-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── Card header right cluster (time + share icon) ── */
.card-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* ── Card share icon button ── */
.card-share-btn {
  background: none;
  border: none;
  padding: 2px 3px;
  cursor: pointer;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  line-height: 1;
  border-radius: 3px;
  transition: color 0.15s;
}
.card-share-btn:hover { color: var(--accent); }

/* ── Nearby filter tooltip ── */
.tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0 2px;
  cursor: default;
  color: var(--text-3);
  line-height: 1;
  flex-shrink: 0;
}
.tip:hover { color: var(--text-2); }
.tip-box {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.13);
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-2);
  white-space: normal;
  width: 220px;
  z-index: 200;
  text-align: left;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.55;
  pointer-events: none;
}
.tip:hover .tip-box,
.tip:focus .tip-box,
.tip.tip-open .tip-box { display: block; }
.tip.tip-flip .tip-box { right: auto; left: 0; }

/* ── Footer share button ── */
.footer-share-row {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.footer-share-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── Wait time quick-tap buttons ── */
.wait-btns {
  margin-top: 10px;
}
.wait-btns-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-3);
  margin-bottom: 6px;
}
.wait-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.wait-input {
  height: 34px;
  width: 120px;
  flex: 0 0 auto;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  outline: none;
}
.wait-input:focus { border-color: var(--accent); }
.wait-input-or { font-size: 12px; color: var(--text-3); }
.wait-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.wait-row:last-child { margin-bottom: 0; }
.wait-btn {
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s, background 0.12s;
  font-family: inherit;
}
.wait-btn:hover { border-color: var(--border-strong); color: var(--text); }
.wait-btn.wait-btn-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.wait-btn.wait-btn-active:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.submit-footer {
  margin-top: 10px;
}

/* ── Dev disruption banner ── */
.dev-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--med-bg);
  border: 1px solid #e8cf7a;
  color: var(--med-text);
  border-radius: 4px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.4;
}
.dev-banner[hidden] { display: none !important; }
.dev-banner-icon { flex-shrink: 0; }
.dev-banner-msg { flex: 1; }
.dev-banner-dismiss {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--med-text);
  font-size: 20px;
  line-height: 1;
  padding: 0 2px;
}
.dev-banner-dismiss:hover { opacity: 0.7; }

/* ── Live activity bar ── */
.live-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--text-3);
  flex-wrap: wrap;
}
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--low-text);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--low-text);
  flex-shrink: 0;
  animation: live-pulse 2.5s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.live-tagline {
  font-style: italic;
  font-weight: 600;
  color: var(--text-2);
}

/* ── Submit card collapse toggle ── */
.submit-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: none;
  border-bottom: 1px solid var(--border);
  background: none;
  cursor: pointer;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.1s;
  padding: 11px 16px 9px;
}
.submit-toggle:hover { background: var(--surface-2); }
.submit-toggle-icon {
  color: var(--text-3);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.submit-toggle[aria-expanded="true"] .submit-toggle-icon {
  transform: rotate(180deg);
}

/* ── Auto-refresh bar ── */
.refresh-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 11px;
  color: var(--text-3);
}
.refresh-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 11px;
  color: var(--accent);
  padding: 0;
  text-decoration: underline;
  font-family: inherit;
}
.refresh-btn:hover { color: var(--accent-hover); }

/* ── Form step hints (mobile) ── */
.form-steps-hint {
  display: none;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.step-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  color: var(--text-3);
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.step-dot.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.step-dot.done { background: var(--low-bg); color: var(--low-text); border-color: var(--low-bg); }
.step-line { flex: 1; height: 1px; background: var(--border); }

@media (max-width: 600px) {
  .form-steps-hint { display: flex; }

  /* Stack submit selects and button vertically */
  .submit-fields { flex-direction: column; align-items: stretch; }
  .submit-select { flex: none; min-width: 0; width: 100%; }
  .submit-footer .submit-btn { width: 100%; }

  /* Section heading + sort controls stack vertically */
  .section-row { flex-direction: column; align-items: flex-start; gap: 6px; }

  /* Larger submit form elements on mobile. Text-entry inputs use 16px to stop
     iOS Safari auto-zooming on focus (which then lets the whole page pan
     left/right); selects open a native picker and don't zoom, so they stay 15px. */
  .submit-select { height: 44px; font-size: 15px; }
  .wait-input { height: 44px; font-size: 16px; flex: 1; width: auto; }
  .submit-btn { height: 44px; font-size: 15px; padding: 0 20px; }
  .locate-btn { height: 38px; font-size: 13px; padding: 0 14px; }
  .card-report-btn { padding: 12px 16px; font-size: 13px; }
  .show-all-btn { height: 44px; font-size: 14px; }
  .search-input { height: 44px; font-size: 16px; }
  .filter-select { height: 44px; font-size: 15px; }
  .clear-btn { height: 44px; font-size: 13px; }
  .sort-btn { height: 32px; font-size: 12px; padding: 0 12px; }
  /* Wait buttons: fill row evenly, no orphaned buttons */
  .wait-row { flex-wrap: nowrap; }
  .wait-btn { flex: 1; min-width: 0; height: 40px; font-size: 13px; padding: 0 4px; }

  /* Scroll offset for sticky navbar when arriving via hash link */
  #submit-card { scroll-margin-top: 64px; }

  /* Live bar: compact on mobile */
  .live-bar { margin-bottom: 12px; font-size: 13px; }
  .live-indicator { font-size: 12px; }

  /* Dev disruption banner: tighter on mobile */
  .dev-banner { font-size: 12px; padding: 10px 12px; margin-bottom: 12px; }
  .dev-banner-dismiss { font-size: 18px; }

  /* Submit toggle: larger tap target */
  .submit-toggle { padding: 14px 16px; }

  .tip-box { width: 180px; }
  .footer-share-btn { height: 44px; font-size: 14px; padding: 0 20px; }
}
