:root {
  color-scheme: light;
  --ink: #102a43;
  --ink-soft: #486581;
  --paper: #f7f9fc;
  --surface: #ffffff;
  --line: #d8e2ec;
  --blue: #0b63ce;
  --blue-dark: #084a9b;
  --blue-pale: #e7f0fb;
  --gold: #f7c948;
  --shadow: 0 22px 65px rgba(16, 42, 67, 0.13);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 5%, rgba(11, 99, 206, 0.11), transparent 30rem),
    radial-gradient(circle at 96% 92%, rgba(247, 201, 72, 0.15), transparent 28rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 28px;
}

.brand-mark {
  display: flex;
  gap: 2px;
}

.brand-mark span {
  display: grid;
  width: 21px;
  height: 27px;
  place-items: center;
  color: var(--surface);
  background: var(--ink);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.brand-mark span:last-child {
  color: var(--ink);
  background: var(--gold);
}

.brand-name {
  font-size: 1.08rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.finder {
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(390px, 1.07fr);
  min-height: 610px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(159, 179, 200, 0.48);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.query-panel,
.results-panel {
  padding: clamp(32px, 4.4vw, 58px);
}

.query-panel {
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 253, 0.96)),
    var(--surface);
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 520px;
  margin-bottom: 15px;
  font-size: clamp(2.35rem, 5vw, 4.25rem);
  font-weight: 820;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.lead {
  max-width: 470px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1.06rem;
  line-height: 1.65;
}

.search-options {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-top: 30px;
}

.option-group {
  display: grid;
  gap: 6px;
}

.option-label {
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.option-picker {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--blue-pale);
  border-radius: 12px;
}

.option-button {
  min-height: 40px;
  padding: 8px 14px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 750;
  transition: color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.option-button:hover:not(.is-active) {
  color: var(--blue-dark);
}

.option-button.is-active {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(16, 42, 67, 0.12);
}

.option-button:focus-visible {
  outline: 3px solid rgba(11, 99, 206, 0.3);
  outline-offset: 2px;
}

form {
  margin-top: 22px;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.letter-row {
  display: grid;
  grid-template-columns: repeat(var(--letter-count), minmax(0, 1fr));
  gap: clamp(7px, 1.15vw, 12px);
  width: min(100%, var(--row-width));
}

.letter-row label {
  min-width: 0;
}

.letter-input {
  width: 100%;
  height: clamp(52px, 6.2vw, 76px);
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 12px;
  outline: none;
  caret-color: var(--blue);
  font-size: clamp(1.75rem, 3.1vw, 2.25rem);
  font-weight: 780;
  line-height: 1;
  text-align: center;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease, background 140ms ease;
}

.letter-input:hover {
  border-color: #9fb3c8;
}

.letter-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(11, 99, 206, 0.14);
  transform: translateY(-2px);
}

.letter-input.has-value {
  color: var(--surface);
  background: var(--ink);
  border-color: var(--ink);
}

.required-filter {
  width: min(100%, 474px);
  margin-top: 20px;
}

.required-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 750;
}

.optional-label {
  padding: 2px 7px;
  color: var(--ink-soft);
  background: #edf2f7;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.required-control {
  position: relative;
}

.required-input {
  width: 100%;
  min-height: 48px;
  padding: 10px 132px 10px 14px;
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 11px;
  outline: none;
  font-size: 1rem;
  font-weight: 780;
  letter-spacing: 0.22em;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.required-input::placeholder {
  color: #829ab1;
  font-weight: 500;
  letter-spacing: normal;
}

.required-input:hover {
  border-color: #9fb3c8;
}

.required-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(11, 99, 206, 0.14);
}

.required-hint {
  position: absolute;
  top: 50%;
  right: 14px;
  color: #71869a;
  font-size: 0.75rem;
  font-weight: 600;
  pointer-events: none;
  transform: translateY(-50%);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}

.clear-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  color: var(--blue-dark);
  background: var(--blue-pale);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 140ms ease, opacity 140ms ease;
}

.clear-button:hover:not(:disabled) {
  background: #d2e3f7;
}

.clear-button:focus-visible,
.examples button:focus-visible,
.load-more:focus-visible {
  outline: 3px solid rgba(11, 99, 206, 0.3);
  outline-offset: 2px;
}

.clear-button:disabled {
  cursor: default;
  opacity: 0.42;
}

.clear-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.keyboard-hint {
  margin: 0;
  color: #71869a;
  font-size: 0.78rem;
  line-height: 1.35;
}

.examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 42px;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.example-buttons {
  display: contents;
}

.examples > span {
  margin-right: 2px;
  font-weight: 650;
}

.examples button {
  padding: 6px 9px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  transition: border-color 140ms ease, transform 140ms ease;
}

.examples button:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
}

.results-panel {
  min-width: 0;
  background: var(--ink);
  color: var(--surface);
}

.results-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.results-panel .eyebrow {
  color: #84c5ff;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.result-count {
  min-width: 47px;
  padding: 7px 11px;
  color: var(--ink);
  background: var(--gold);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 850;
  text-align: center;
}

.empty-state,
.no-results {
  display: grid;
  min-height: 365px;
  place-content: center;
  justify-items: center;
  padding: 36px 12px;
  text-align: center;
}

.empty-glyph {
  display: grid;
  width: 66px;
  height: 66px;
  margin-bottom: 20px;
  place-items: center;
  color: #94a9bd;
  border: 2px dashed #4d6478;
  border-radius: 16px;
  font-size: 1.8rem;
  font-weight: 800;
}

.empty-state p,
.no-results p {
  margin-bottom: 7px;
  font-size: 1.03rem;
  font-weight: 700;
}

.empty-state span,
.no-results span {
  max-width: 290px;
  color: #9fb3c8;
  font-size: 0.88rem;
  line-height: 1.55;
}

.results-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-height: 430px;
  margin: 24px -8px 0 0;
  padding: 0 9px 2px 0;
  overflow-y: auto;
  list-style: none;
  scrollbar-color: #597085 transparent;
  scrollbar-width: thin;
}

.results-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 9px 8px;
  overflow: hidden;
  color: #eff6fc;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  font-size: 0.94rem;
  font-weight: 720;
  letter-spacing: 0.09em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.results-list li mark {
  color: var(--gold);
  background: transparent;
}

.load-more {
  width: 100%;
  min-height: 44px;
  margin-top: 14px;
  color: #e8f1f8;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 750;
  transition: background 140ms ease, border-color 140ms ease;
}

.load-more:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.26);
}

footer {
  padding: 18px 4px 0;
  color: #627d98;
  font-size: 0.78rem;
}

footer p {
  margin-bottom: 0;
}

footer a {
  color: var(--blue-dark);
  text-underline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

noscript {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 14px;
  color: #7b241c;
  background: #fdecea;
  border-radius: 8px;
  text-align: center;
}

@media (max-width: 860px) {
  .finder {
    grid-template-columns: 1fr;
  }

  .query-panel {
    min-height: 520px;
  }

  .results-list {
    max-height: none;
  }
}

@media (max-width: 540px) {
  .page-shell {
    width: min(100% - 24px, 1160px);
    padding-top: 18px;
  }

  .brand {
    margin-bottom: 16px;
  }

  .brand-mark span {
    width: 18px;
    height: 24px;
  }

  .finder {
    border-radius: 18px;
  }

  .query-panel,
  .results-panel {
    padding: 30px 22px;
  }

  .query-panel {
    min-height: auto;
  }

  h1 {
    font-size: clamp(2.3rem, 13vw, 3.4rem);
  }

  .lead {
    font-size: 1rem;
  }

  .search-options {
    gap: 10px;
    margin-top: 24px;
  }

  .option-button {
    padding-inline: 11px;
  }

  form {
    margin-top: 20px;
  }

  .letter-row {
    gap: 5px;
  }

  .letter-input {
    height: 46px;
    border-radius: 9px;
    font-size: clamp(1.35rem, 7vw, 1.9rem);
  }

  .required-input {
    min-height: 46px;
    padding-right: 14px;
  }

  .required-hint {
    position: static;
    display: block;
    margin-top: 5px;
    transform: none;
  }

  .form-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .examples {
    margin-top: 12px;
    padding-top: 24px;
  }

  .results-panel {
    min-height: 420px;
  }

  .results-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .empty-state,
  .no-results {
    min-height: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
