.evals-main { padding-block: 8px 64px; }

.evals-hero { position: relative; padding: 32px 0 28px; }
.evals-hero h1 { max-width: 16em; }
.evals-intro {
 font-size: 20px; line-height: 1.45; letter-spacing: -0.02em;
 color: var(--muted); max-width: 38em; margin: 0 0 20px;
}
.evals-notice {
 margin: 0; padding: 12px 16px; max-width: 46em;
 border: 1px solid var(--line); border-left: 2px solid var(--accent);
 border-radius: var(--radius); background: var(--surface);
 font-size: 14px; line-height: 1.6; color: var(--muted);
}
.evals-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
.evals-stats p {
 margin: 0; padding: 16px; min-width: 0;
 border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.evals-stats strong {
 display: block; font-family: var(--font-mono); font-size: 28px; font-weight: 500;
 letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1.15;
}
.evals-stats span { display: block; margin-top: 6px; font-size: 12px; line-height: 1.4; color: var(--muted); }

.evals-hero-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; }
.evals-hero-links a {
 display: inline-block; padding-block: 6px;
 font-size: 14px; font-weight: 500; text-decoration: none;
}
.evals-hero-links a:hover { text-decoration: underline; }

.evals-km30-callout {
 display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
 gap: 16px 24px; margin: 0 0 24px; padding: 20px 24px;
 border: 1px solid var(--line); border-left: 3px solid var(--accent);
 border-radius: var(--radius); background: var(--surface);
}
.evals-km30-copy { min-width: 0; flex: 1 1 320px; }
.evals-km30-copy .kicker { margin: 0 0 6px; }
.evals-km30-copy h2 {
 margin: 0 0 6px; font-size: clamp(18px, 2.2vw, 22px);
 line-height: 1.25; letter-spacing: -0.025em;
}
.evals-km30-text { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 46em; }
.evals-km30-callout .community { flex-shrink: 0; }
html[lang="hi"] .evals-km30-copy h2 { letter-spacing: 0; line-height: 1.45; }
html[lang="hi"] .evals-km30-text { line-height: 1.7; }

@media (min-width: 960px) {
 .evals-hero > :not(.evals-stats):not(.evals-hero-links) { max-width: calc(100% - 176px); }
 .evals-hero::before {
  content: ""; position: absolute; top: 32px; right: 0; width: 144px; height: 144px;
  background: var(--ink); pointer-events: none;
  -webkit-mask: url("./assets/eval-mark.svg") center / contain no-repeat;
  mask: url("./assets/eval-mark.svg") center / contain no-repeat;
 }
}
@media (min-width: 960px) and (prefers-reduced-motion: no-preference) {
 .evals-hero::before { animation: mark-in 320ms ease both; }
}

.evals-controls { padding: 24px 0 20px; border-top: 1px solid var(--line); }
.evals-filters {
 display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.1fr) auto;
 gap: 12px; align-items: end;
}
.evals-field { display: block; min-width: 0; }
.evals-field > span { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.evals-field input, .evals-field select { display: block; width: 100%; }

#evals-reset, #evals-empty-reset {
 min-height: 40px; padding: 8px 16px;
 background: var(--surface); color: var(--ink);
 border: 1px solid var(--line); border-radius: var(--radius);
 font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap;
}
#evals-reset:hover:not(:disabled), #evals-empty-reset:hover { border-color: var(--ink); }
#evals-reset:disabled { color: var(--muted); opacity: 0.6; cursor: default; }

.evals-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.evals-pill {
 display: inline-flex; align-items: center; gap: 6px;
 min-height: 34px; padding: 5px 11px; max-width: 100%;
 border: 1px solid var(--line); border-radius: var(--radius);
 background: var(--surface); color: var(--muted);
 font-size: 13px; font-weight: 500; line-height: 1.3; text-decoration: none;
}
.evals-pill:hover { border-color: var(--ink); color: var(--ink); }
.evals-pill.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.evals-pill-count { font-family: var(--font-mono); font-size: 11px; font-variant-numeric: tabular-nums; opacity: 0.72; }

.evals-count {
 margin: 16px 0 0;
 font-family: var(--font-mono); font-size: 12px; font-weight: 500;
 font-variant-numeric: tabular-nums; color: var(--muted);
}

.evals-empty {
 margin: 20px 0 32px; padding: 28px 24px;
 border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.evals-empty p { margin: 0 0 16px; font-size: 15px; line-height: 1.6; color: var(--muted); }

.evals-category { padding: 36px 0; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.evals-cat-head { margin-bottom: 20px; }
.evals-cat-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.evals-cat-num {
 font-family: var(--font-mono); font-size: 12px; font-weight: 500;
 color: var(--muted); letter-spacing: 0.04em;
}
.evals-cat-heading h2 {
 margin: 0; font-size: clamp(22px, 2.6vw, 28px);
 line-height: 1.25; letter-spacing: -0.03em;
}
.evals-cat-count {
 font-family: var(--font-mono); font-size: 12px;
 font-variant-numeric: tabular-nums; color: var(--muted); margin-left: auto;
}
.evals-cat-desc { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 48em; }

.evals-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.eval-card {
 display: flex; flex-direction: column; min-width: 0; padding: 20px;
 border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
 scroll-margin-top: 16px; transition: border-color 150ms ease;
}
.eval-card:hover { border-color: var(--control-line); }
.eval-name {
 margin: 0; font-size: 17px; font-weight: 600;
 line-height: 1.3; letter-spacing: -0.02em; overflow-wrap: break-word;
}
.eval-name a { text-decoration: none; }
.eval-name a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.eval-meta {
 display: flex; flex-wrap: wrap; align-items: center;
 gap: 6px 10px; margin-top: 8px;
}
.eval-maintainer { font-size: 13px; line-height: 1.4; color: var(--muted); }
.eval-site {
 display: inline-block; max-width: 100%;
 font-family: var(--font-mono); font-size: 12px; font-weight: 500; line-height: 1.3;
 color: var(--ink); text-decoration: none;
 padding: 3px 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper);
 overflow-wrap: anywhere;
}
.eval-site:hover { border-color: var(--accent); color: var(--accent); background: var(--surface); text-decoration: none; }
.eval-summary { margin: 12px 0 16px; font-size: 14px; line-height: 1.6; color: var(--muted); flex: 1 1 auto; }
.eval-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.eval-tags li {
 font-family: var(--font-mono); font-size: 11px; line-height: 1.3; color: var(--muted);
 padding: 3px 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper);
}

.evals-bridge { margin-top: 16px; padding: 48px 0 0; border-top: 1px solid var(--line); }
.evals-bridge h2 {
 margin: 0 0 12px; font-size: clamp(24px, 3vw, 32px);
 line-height: 1.2; letter-spacing: -0.03em; max-width: 20em;
}
.evals-bridge-text { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 42em; }
.evals-bridge .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 24px; }

html[lang="hi"] .evals-hero h1 { letter-spacing: 0; line-height: 1.35; }
html[lang="hi"] .evals-intro,
html[lang="hi"] .evals-cat-desc,
html[lang="hi"] .evals-bridge-text { line-height: 1.7; letter-spacing: 0; }
html[lang="hi"] .evals-cat-heading h2,
html[lang="hi"] .evals-bridge h2 { letter-spacing: 0; line-height: 1.45; }

@media (prefers-reduced-motion: reduce) {
 .eval-card { transition: none; }
}

@media (max-width: 720px) {
 .evals-hero { padding-top: 24px; }
 .evals-intro { font-size: 17px; }
 .evals-stats strong { font-size: 22px; }
 .evals-filters { grid-template-columns: 1fr 1fr; }
 #evals-reset { grid-column: 1 / -1; justify-self: start; }
 .evals-grid { grid-template-columns: 1fr; gap: 12px; }
 .evals-cat-count { margin-left: 0; }
 .evals-category { padding: 28px 0; }
 .evals-bridge { padding-top: 36px; }
}

@media (max-width: 480px) {
 .evals-filters { grid-template-columns: 1fr; }
 #evals-reset { width: 100%; }
 .evals-stats { grid-template-columns: 1fr; }
 .eval-card { padding: 16px; }
 .evals-pill { min-height: 36px; }
}
