:root {
  --ach-ink: #111111;
  --ach-green: #0b6b4f;
  --ach-gold: #c89d42;
  --ach-cream: #fbf8f0;
  --ach-line: #ded8ca;
}

.ach-discovery {
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 2rem;
  padding: clamp(1rem, 2.5vw, 2rem);
  border: 1px solid var(--ach-line);
  border-radius: 20px;
  background: var(--ach-cream);
  color: var(--ach-ink);
}

.ach-discovery__heading,
.ach-discovery__controls,
.ach-compare__controls {
  display: grid;
  gap: 1rem;
}

.ach-discovery__heading {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.ach-discovery__eyebrow {
  margin: 0 0 .35rem;
  color: var(--ach-green);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ach-discovery h2,
.ach-discovery h3,
.ach-discovery p {
  margin-top: 0;
}

.ach-discovery__status {
  font-weight: 700;
}

.ach-discovery__controls {
  grid-template-columns: minmax(14rem, 2fr) minmax(12rem, 1fr) auto;
  align-items: end;
  margin-top: 1rem;
}

.ach-discovery label,
.ach-compare label {
  display: grid;
  gap: .4rem;
  font-weight: 700;
}

.ach-discovery input,
.ach-discovery select,
.ach-compare select {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: .7rem .8rem;
  border: 1px solid #817b70;
  border-radius: 10px;
  background: #fff;
  color: var(--ach-ink);
}

.ach-button {
  min-height: 48px;
  padding: .7rem 1rem;
  border: 2px solid var(--ach-green);
  border-radius: 10px;
  background: var(--ach-green);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.ach-button--secondary {
  background: transparent;
  color: var(--ach-green);
}

.ach-button:focus-visible,
.ach-discovery input:focus-visible,
.ach-discovery select:focus-visible {
  outline: 3px solid var(--ach-gold);
  outline-offset: 2px;
}

.ach-compare {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ach-line);
}

.ach-compare__controls {
  grid-template-columns: repeat(3, minmax(10rem, 1fr)) auto;
  align-items: end;
}

.ach-compare__results {
  margin-top: 1rem;
}

.ach-table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.ach-table-scroll table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.ach-table-scroll caption {
  padding: .75rem;
  font-weight: 800;
  text-align: left;
}

.ach-table-scroll th,
.ach-table-scroll td {
  padding: .75rem;
  border: 1px solid var(--ach-line);
  text-align: left;
  white-space: nowrap;
}

.ach-table-scroll thead th {
  background: var(--ach-ink);
  color: #fff;
}

.ach-country-card[hidden] {
  display: none !important;
}

.ach-empty {
  padding: 1rem;
  border-left: 4px solid var(--ach-gold);
  background: #fff;
}

@media (max-width: 900px) {
  .ach-discovery__heading,
  .ach-discovery__controls,
  .ach-compare__controls {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .ach-discovery__heading,
  .ach-discovery__controls,
  .ach-compare__controls {
    grid-template-columns: 1fr;
  }

  .ach-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ach-discovery *,
  .ach-compare * {
    scroll-behavior: auto !important;
  }
}
