/* ============================================================================
   FindDhandha — premium UI theme
   Vanilla CSS, no build step. Plus Jakarta Sans (loaded in <head>) with a
   system fallback. Light, card-based, restrained. All class/state hooks used
   by app.js (.results, .is-selected, .is-hidden, .spinner, .lead-tag--*,
   .sort-ind, aria-sort arrows, etc.) are preserved.
   ========================================================================== */

:root {
  /* WCAG-AA palette: dark text on light surfaces. */
  --color-bg: #f6f8fc; /* soft page backdrop */
  --color-surface: #ffffff; /* cards */
  --color-surface-2: #f2f5fb; /* subtle inset fills */
  --color-text: #1a1d29; /* ~15:1 on surface */
  --color-muted: #5a6072; /* ~5.6:1 on white, AA for normal text */
  --color-border: #e2e7f0;
  --color-border-strong: #cfd6e4;

  /* Evolved blue accent -> cohesive indigo/blue palette. */
  --color-accent: #2457d6; /* ~5.6:1 on white; AA with white text */
  --color-accent-hover: #1b45ad;
  --color-accent-soft: #e9effc;
  --color-focus: #1b45ad;
  --gradient-accent: linear-gradient(135deg, #2457d6 0%, #4f74e8 100%);
  --gradient-hero: radial-gradient(
    1200px 400px at 50% -140px,
    #e9eefc 0%,
    rgba(233, 238, 252, 0) 70%
  );

  --color-error-bg: #fdecea;
  --color-error-text: #a31212; /* AA on error bg and white */
  --color-ok-bg: #e7f6ec;
  --color-ok-text: #0b6b2e;

  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 10px;

  --shadow-sm: 0 1px 2px rgba(26, 29, 41, 0.06);
  --shadow: 0 6px 20px rgba(26, 29, 41, 0.08);
  --shadow-lg: 0 14px 40px rgba(26, 29, 41, 0.12);

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  background-image: var(--gradient-hero);
  background-repeat: no-repeat;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden; /* guard against full-bleed results row scroll */
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-text);
  color: #ffffff;
  padding: 0.75rem 1rem;
  z-index: 50;
  border-radius: 0 0 10px 0;
}

.skip-link:focus {
  left: 0;
}

/* Shared inline-icon sizing. currentColor-based so icons inherit theme. */
.icon {
  flex: none;
  display: inline-block;
  vertical-align: middle;
}

/* Reusable card surface. */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* Top bar ----------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 0.7rem 1.25rem;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 800;
}

.topbar__logo {
  color: var(--color-accent);
}

.topbar__name {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.topbar__tag {
  color: var(--color-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Page shell -------------------------------------------------------------- */
.page {
  flex: 1 0 auto;
  max-width: 760px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 2rem;
  width: 100%;
}

/* Hero -------------------------------------------------------------------- */
.hero {
  text-align: center;
  margin: 0.5rem 0 1.5rem;
}

.hero__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  line-height: 1.1;
}

.hero__tagline {
  color: var(--color-muted);
  margin: 0 auto;
  max-width: 52ch;
  font-size: 1rem;
}

/* Primary brand tagline shown directly under the FindDhandha title. */
.hero__tagline--lead {
  color: var(--color-text);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Tabs -------------------------------------------------------------------- */
.tabs {
  position: relative;
  display: flex;
  gap: 0.25rem;
  justify-content: center;
  margin: 0 auto 1.5rem;
  max-width: 620px;
  padding: 0.35rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.tabs__tab {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.65rem 1rem;
  color: var(--color-muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.tabs__tab:hover {
  color: var(--color-text);
}

.tabs__tab[aria-selected='true'] {
  color: #ffffff;
}

.tabs__tab:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Sliding pill behind the active tab. Positioned via JS-free CSS: it tracks
   the first/second tab using :has on the tablist. */
.tabs__indicator {
  position: absolute;
  top: 0.35rem;
  bottom: 0.35rem;
  left: 0.35rem;
  width: calc(50% - 0.35rem);
  background: var(--gradient-accent);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease);
}

.tabs:has(#tab-leads[aria-selected='true']) .tabs__indicator {
  transform: translateX(100%);
}

.tab-panel {
  outline: none;
  animation: panel-in 0.26s var(--ease);
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Search form card -------------------------------------------------------- */
.search {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.1rem;
  max-width: 620px;
  margin: 0 auto;
  padding: 1.6rem;
}

.search__box {
  width: 100%;
}

.search__label {
  display: block;
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 0.5rem;
}

/* Input with a leading icon. */
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap__icon {
  position: absolute;
  left: 1rem;
  color: var(--color-muted);
  pointer-events: none;
}

.input-wrap--sm .input-wrap__icon {
  left: 0.7rem;
}

.search__input {
  width: 100%;
  font-family: inherit;
  font-size: 1.05rem;
  padding: 0.85rem 1.1rem 0.85rem 2.9rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.search__input::placeholder {
  color: #9aa1b2;
}

.search__input:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow);
}

.search__input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.search__help {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin: 0.5rem 0 0;
}

.search__input--small {
  font-size: 0.98rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  box-shadow: none;
}

/* Lead field pair (state / country). */
.lead-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.lead-fields .field {
  flex: 1 1 220px;
  min-width: 160px;
}

.field__optional {
  font-weight: 500;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.field__help--lead {
  margin-top: 0;
}

/* Example industry chips. */
.chip {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.2rem 0.7rem;
  margin: 0.1rem 0.15rem 0;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.16s var(--ease), transform 0.1s var(--ease);
}

.chip:hover {
  background: #d9e4fb;
}

.chip:active {
  transform: scale(0.96);
}

/* Advanced / filter disclosure -------------------------------------------- */
.advanced {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface-2);
}

.advanced__summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.8rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
  color: var(--color-text);
}

.advanced__summary::-webkit-details-marker {
  display: none;
}

.advanced__chevron {
  color: var(--color-muted);
  transition: transform 0.2s var(--ease);
}

.advanced[open] > .advanced__summary .advanced__chevron {
  transform: rotate(90deg);
}

.advanced__body {
  padding: 0 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  animation: fade-in 0.22s var(--ease);
}

.field {
  border: 0;
  padding: 0;
  margin: 0;
}

.field--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
}

.field__legend {
  font-weight: 600;
  padding: 0;
  margin-bottom: 0.3rem;
}

.field__label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.field__number {
  width: 6rem;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.field__number:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.field__help {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin: 0.4rem 0 0;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  font-size: 0.95rem;
}

.choice input {
  accent-color: var(--color-accent);
  width: 1.05rem;
  height: 1.05rem;
}

/* Primary submit ---------------------------------------------------------- */
.search__submit {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  padding: 0.85rem 2.4rem;
  color: #ffffff;
  background: var(--gradient-accent);
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.12s var(--ease), box-shadow 0.18s var(--ease),
    filter 0.18s var(--ease);
}

.search__submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  filter: brightness(1.03);
}

.search__submit:active:not(:disabled) {
  transform: translateY(0) scale(0.99);
  box-shadow: var(--shadow-sm);
}

.search__submit:disabled {
  background: var(--color-muted);
  cursor: not-allowed;
  box-shadow: none;
}

/* Status region ----------------------------------------------------------- */
.status {
  margin: 1.4rem auto 0;
  max-width: 620px;
  min-height: 1.5rem;
  text-align: center;
}

.status__msg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem;
  animation: fade-in 0.25s var(--ease);
}

.status__msg--working {
  color: var(--color-text);
}

.status__msg--error {
  background: var(--color-error-bg);
  border-color: #f6cfca;
  color: var(--color-error-text);
  font-weight: 600;
}

.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-right: 0.1rem;
  vertical-align: -2px;
  border: 2px solid var(--color-accent-soft);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Safety strip: daily usage meter + safe-usage note ----------------------- */
.safety {
  max-width: 620px;
  margin: 1.1rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.usage-meter {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.7rem 0.95rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.usage-meter__head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.usage-meter__text {
  color: var(--color-text);
}

.usage-meter__track {
  width: 100%;
  height: 7px;
  background: var(--color-surface-2);
  border-radius: 999px;
  overflow: hidden;
}

.usage-meter__bar {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--gradient-accent);
  border-radius: 999px;
  transition: width 0.3s var(--ease);
}

/* When the daily cap is exhausted, tint the bar so it reads as "stop". */
.usage-meter--full .usage-meter__bar {
  background: linear-gradient(135deg, #c2410c 0%, #e86a4f 100%);
}

.safety__note {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0;
  color: var(--color-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.safety__note .icon {
  color: var(--color-accent);
  margin-top: 0.1rem;
}

.safety__note a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

.safety__note a:hover {
  text-decoration: underline;
}

/* Visually-hidden (screen-reader-only) ------------------------------------ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Results ----------------------------------------------------------------- */
/* The results area breaks out of the narrow page column to use (near) full
   viewport width so every column has room; hero/search stay centered. */
.results {
  margin-top: 1.75rem;
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0 1.5rem;
  animation: fade-in 0.3s var(--ease);
}

.results__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.9rem;
  border-radius: var(--radius);
}

.results__filter {
  flex: 1 1 240px;
  min-width: 180px;
}

.results__filter-input {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem 0.5rem 2.1rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.results__filter-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.results__count {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.download {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.16s var(--ease), transform 0.1s var(--ease),
    box-shadow 0.16s var(--ease);
}

.download:hover:not(:disabled) {
  background: var(--color-accent-soft);
  box-shadow: var(--shadow-sm);
}

.download:active:not(:disabled) {
  transform: scale(0.98);
}

.download:disabled {
  color: var(--color-muted);
  border-color: var(--color-border);
  cursor: not-allowed;
}

/* Spreadsheet-style: compact single-line rows, capped internal scroll so the
   page itself does not grow when results arrive. */
.results__scroll {
  overflow: auto;
  max-height: 62vh; /* cap height -> table scrolls, not the page */
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow);
}

.results__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  table-layout: auto;
}

.results__caption {
  text-align: left;
  font-weight: 700;
  padding: 0.75rem 0.9rem;
  caption-side: top;
  background: var(--color-surface);
}

.results__table th,
.results__table td {
  text-align: left;
  padding: 0.45rem 0.7rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 24rem;
}

/* Sticky header stays visible while scrolling. */
.results__table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--color-surface-2);
  color: var(--color-text);
  font-weight: 700;
  border-bottom: 2px solid var(--color-border-strong);
}

.col-select {
  width: 1%;
  white-space: nowrap;
}

.results__table td.col-select {
  text-align: center;
  overflow: visible;
}

.results__table td.col-select input,
#select-all {
  accent-color: var(--color-accent);
  width: 1.05rem;
  height: 1.05rem;
  cursor: pointer;
}

.col-num {
  text-align: right;
}

.results__table td.col-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.results__table tbody tr {
  transition: background 0.14s var(--ease);
}

.results__table tbody tr:nth-child(even) {
  background: var(--color-surface-2);
}

.results__table tbody tr:hover {
  background: var(--color-accent-soft);
}

/* Selected rows get a persistent highlight (overrides zebra/hover). */
.results__table tbody tr.is-selected,
.results__table tbody tr.is-selected:hover {
  background: #d7e3fc;
}

/* Filtered-out rows are hidden entirely. */
.results__table tbody tr.is-hidden {
  display: none;
}

.results__table a {
  color: var(--color-accent);
  text-decoration: none;
}

.results__table a:hover {
  text-decoration: underline;
}

/* Sortable header buttons. */
.results__table th.col-sort {
  padding: 0;
}

.sort-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem;
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  width: 100%;
  padding: 0.45rem 0.7rem;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.14s var(--ease);
}

.sort-btn:hover {
  color: var(--color-accent);
}

.sort-ind {
  display: inline-block;
  width: 0.9em;
  margin-left: 0.1rem;
  color: var(--color-accent);
}

.results__table th[aria-sort='ascending'] .sort-ind::after {
  content: '\2191'; /* up arrow */
}

.results__table th[aria-sort='descending'] .sort-ind::after {
  content: '\2193'; /* down arrow */
}

/* Qualitative lead tag. */
.lead-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  line-height: 1.4;
}

.lead-tag--high {
  background: var(--color-ok-bg);
  color: var(--color-ok-text);
}

.lead-tag--medium {
  background: #fdeec2;
  color: #8a5a00;
}

.lead-tag--low {
  background: #eef1f6;
  color: var(--color-muted);
}

/* Footer (single line) ---------------------------------------------------- */
.footer {
  flex: none;
  padding: 1.1rem 1.25rem;
  border-top: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.6);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.3rem 0.6rem;
  color: var(--color-muted);
  font-size: 0.88rem;
}

.footer__link {
  color: var(--color-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.16s var(--ease);
}

.footer__link:hover {
  color: var(--color-accent);
}

.footer__sep {
  color: var(--color-border-strong);
}

.footer__credit {
  font-weight: 700;
  color: var(--color-text);
}

/* Focus visibility (keyboard users) --------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ============================================================================
   .legal — standalone Privacy Policy / Terms of Use page layout
   Shared chrome (font, header, footer look) with the app. Used by
   public/privacy.html and public/terms.html.
   ========================================================================== */
.legal {
  flex: 1 0 auto;
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  width: 100%;
}

.legal__card {
  padding: 1.75rem 2rem;
}

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}

.legal__back:hover {
  text-decoration: underline;
}

.legal h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}

.legal h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.6rem 0 0.4rem;
}

.legal p,
.legal li {
  color: #2c3144;
  font-size: 0.98rem;
}

.legal ul {
  padding-left: 1.2rem;
}

.legal li {
  margin: 0.3rem 0;
}

.legal__updated {
  color: var(--color-muted);
  font-size: 0.88rem;
  margin: 0 0 1.25rem;
}

.legal__note {
  margin-top: 1.75rem;
  padding: 0.9rem 1.1rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 560px) {
  .topbar__tag {
    display: none;
  }

  .search {
    padding: 1.2rem;
  }

  .search__submit {
    width: 100%;
  }

  .tabs__tab span {
    display: none; /* keep icons, drop labels on narrow screens */
  }

  .results {
    padding: 0 0.75rem;
  }

  .results__filter {
    flex-basis: 100%;
  }

  .lead-fields .field {
    flex-basis: 100%;
  }
}

/* Reduced motion: disable non-essential movement, keep states readable. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .spinner {
    animation: spin 0.8s linear infinite; /* keep the loader meaningful */
  }
}
