:root {
  --ink: #123f43;
  --muted: #557176;
  --brand: #075f5b;
  --brand-dark: #064a47;
  --accent: #87345d;
  --surface: #ffffff;
  --mist: #edf9f7;
  --lilac: #f4f1ff;
  --line: #c8e1de;
  --warning: #fff7e8;
  --shadow: 0 18px 50px rgba(16, 72, 73, 0.11);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Tahoma, Arial, sans-serif;
  line-height: 1.8;
  background: linear-gradient(145deg, #fff 0, var(--mist) 52%, var(--lilac) 100%);
}
a { color: #056a64; text-underline-offset: 4px; }
a:hover { color: var(--accent); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.wrap { width: min(1180px, 92%); margin-inline: auto; }
.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: #fff;
  border: 2px solid var(--brand);
  border-radius: 10px;
}
.skip-link:focus { inset-inline-start: 8px; }
:focus-visible { outline: 3px solid #0b8d84; outline-offset: 3px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand span { display: grid; line-height: 1.35; }
.brand strong { font-size: 1.03rem; }
.brand small { color: var(--muted); }
nav { display: flex; flex-wrap: wrap; gap: 6px; }
nav a { padding: 7px 10px; border-radius: 10px; text-decoration: none; font-weight: 700; }
nav a:hover { background: var(--mist); }

.hero { padding: 64px 0 30px; }
.hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 26px; align-items: center; }
.eyebrow { margin: 0; color: var(--accent); font-weight: 900; }
h1 { margin: .08em 0 .18em; font-size: clamp(2.35rem, 6vw, 4.8rem); line-height: 1.08; }
.lead { max-width: 800px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.model-card, .search-panel, .result-card, .method-grid article {
  background: rgba(255,255,255,.97);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.model-card { padding: 24px; }
.model-card strong { display: block; margin: 10px 0 4px; direction: ltr; text-align: right; font-size: 1.25rem; }
.model-card p { margin: 0; color: var(--muted); }
.badge { display: inline-flex; padding: 4px 10px; border-radius: 999px; background: var(--mist); color: var(--brand); font-weight: 900; }

.search-section { padding: 18px 0 38px; }
.search-panel { padding: clamp(20px, 4vw, 34px); }
.search-panel > label { display: block; margin-bottom: 8px; font-size: 1.15rem; font-weight: 900; }
.search-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.search-row input {
  width: 100%;
  min-height: 58px;
  padding: 12px 16px;
  color: var(--ink);
  background: #fff;
  border: 2px solid #9bcac5;
  border-radius: 15px;
}
.search-row input:focus { border-color: var(--brand); }
.search-row button {
  min-width: 132px;
  border: 1px solid var(--brand);
  border-radius: 15px;
  color: #fff;
  background: var(--brand);
  font-weight: 900;
}
.search-row button:hover { background: var(--brand-dark); }
.search-row button:disabled { opacity: .65; cursor: wait; }
.examples { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.examples button {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand);
  background: #fff;
}
.examples button:hover { background: var(--mist); }
.advanced { margin-top: 14px; }
.advanced summary { width: fit-content; color: var(--brand); font-weight: 900; }
.filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.filters label { display: grid; gap: 5px; font-weight: 700; }
.filters select { min-height: 44px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.toggle { grid-column: 1 / -1; display: flex !important; grid-template-columns: auto 1fr; align-items: center; }
.toggle input { width: 20px; height: 20px; accent-color: var(--brand); }
.status { display: flex; align-items: center; gap: 8px; min-height: 28px; margin-top: 15px; color: var(--muted); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #d39b20; box-shadow: 0 0 0 5px rgba(211,155,32,.12); }
.status.ready .status-dot { background: #17845e; box-shadow: 0 0 0 5px rgba(23,132,94,.12); }
.status.error .status-dot { background: #b43535; box-shadow: 0 0 0 5px rgba(180,53,53,.12); }
progress { width: 100%; height: 10px; margin-top: 8px; accent-color: var(--brand); }

.results-section { padding: 26px 0 50px; }
.results-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; }
h2 { margin: .1em 0; font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.25; }
.results-summary { margin: 0; color: var(--muted); }
.results { display: grid; gap: 14px; }
.result-card { padding: 21px; }
.result-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; }
.result-meta span { padding: 2px 8px; border-radius: 999px; background: var(--mist); }
.result-card h3 { margin: .45rem 0 .28rem; font-size: 1.34rem; line-height: 1.4; }
.result-card h3 a { color: var(--ink); text-decoration-thickness: 2px; }
.result-card p { margin: .35rem 0; color: #385d61; }
.result-link { display: inline-flex; margin-top: 7px; font-weight: 900; }
.score { font-variant-numeric: tabular-nums; direction: ltr; }
.empty {
  padding: 30px;
  text-align: center;
  color: var(--muted);
  background: rgba(255,255,255,.8);
  border: 1px dashed #9bcac5;
  border-radius: var(--radius);
}

.method-section { padding: 8px 0 60px; }
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.method-grid article { padding: 24px; }
.method-grid ol { padding-inline-start: 24px; }
.notice { background: var(--warning) !important; border-color: #efd8a4 !important; }
footer { border-top: 1px solid var(--line); background: rgba(255,255,255,.86); }
.footer-inner { display: flex; justify-content: space-between; gap: 18px; padding: 22px 0; color: var(--muted); }
.noscript { margin: 20px; padding: 16px; background: #fff3cd; border: 1px solid #f1d47a; border-radius: 12px; }

@media (max-width: 820px) {
  .hero-grid, .method-grid { grid-template-columns: 1fr; }
  .header-inner, .results-heading, .footer-inner { align-items: flex-start; flex-direction: column; }
  nav { display: none; }
  .search-row { grid-template-columns: 1fr; }
  .search-row button { min-height: 52px; }
  .filters { grid-template-columns: 1fr; }
  .toggle { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
