@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/dm-sans.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Sans Devanagari';
  src: url('/fonts/noto-devanagari.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  font-family: 'DM Sans', 'Noto Sans Devanagari', sans-serif;
  color: var(--text);
  background: var(--page);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--page); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--accent); }
button, select, input { font: inherit; }
:is(a,button,select,input,summary,[tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.simple-header, main { width: min(1320px, calc(100% - 64px)); margin-inline: auto; }
.simple-header { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-start, .header-actions { display: flex; align-items: center; gap: 28px; }
.header-start { gap: 40px; }
.simple-brand { color: var(--text); font-size: 24px; font-weight: 400; letter-spacing: -1.1px; text-decoration: none; white-space: nowrap; }
.simple-header nav { display: flex; gap: 24px; }
.simple-header nav a { color: var(--muted); font-size: 13px; text-decoration: none; }
.simple-header nav a[aria-current], .simple-header nav a:hover { color: var(--text); }
.playground-link { display: flex; align-items: center; gap: 16px; padding: 9px 16px; background: var(--accent); color: var(--accent-ink); font-size: 13px; text-decoration: none; white-space: nowrap; }
.playground-link:hover { color: var(--accent-ink); opacity: .9; }
.appearance { display: flex; gap: 2px; }
.appearance button { cursor: pointer; padding: 8px 12px; border: 0; background: transparent; color: var(--muted); font-size: 12px; }
.appearance button[aria-pressed=true] { color: var(--text); background: var(--surface); }
.page-heading { padding: 27px 0 24px; text-align: center; }
h1 { margin: 0 0 12px; font-size: 42px; font-weight: 400; line-height: 1.18; letter-spacing: -1.5px; }
.page-heading p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.comparison-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr) minmax(0, .85fr) auto;
  align-items: end;
  gap: 12px 16px;
  margin: 16px 0 4px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--field);
}
label { display: flex; flex-direction: column; gap: 7px; min-width: 0; color: var(--muted); font-size: 12px; font-weight: 400; }
select, input { width: 100%; max-width: 100%; min-height: 42px; border: 1px solid var(--control-border); padding: 9px 14px; background: var(--field); color: var(--text); font-size: 13px; }
select { cursor: pointer; padding-right: 28px; }
input::placeholder { color: var(--muted); opacity: 1; }
.checkbox-label { flex-direction: row; align-items: center; gap: 8px; min-height: 44px; line-height: 1.5; font-size: 12px; white-space: nowrap; }
.checkbox-label input { flex-shrink: 0; width: 14px; height: 14px; min-height: 0; margin: 0; accent-color: var(--accent); }
#scores-panel, #words-panel { background: var(--surface); padding: 22px 24px; scroll-margin-top: 20px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel-heading h2 { margin: 0; font-size: 17px; font-weight: 400; letter-spacing: -.3px; }
.panel-heading > span { font-size: 12px; color: var(--muted); }
.word-source a { color: var(--accent); }
body[data-kind=sentence] .word-source { display: none; }
.benchmark-status { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
body:not([data-results=ready]) #words-panel { display: none; }
.simple-source-scroll { overflow: auto; }
:is(.source-table, .sticky-source-table) { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; text-align: left; }
.sticky-table { display: grid; grid-template-columns: minmax(0, 1fr); }
.sticky-table > * { grid-area: 1 / 1; min-width: 0; }
.sticky-table-header {
  position: sticky;
  top: 0;
  align-self: start;
  z-index: 8;
  overflow: hidden;
  pointer-events: none;
}
.sticky-table-header table { table-layout: fixed; }
.sticky-table[data-ready] > :first-child thead { opacity: 0; }
.source-table caption { padding: 6px 0 14px; color: var(--muted); text-align: left; font-size: 12px; }
:is(.source-table, .sticky-source-table) thead th { padding: 11px 12px; border-bottom: 1px solid var(--table-grid); color: var(--text); background: var(--header-bg); font-size: 12px; font-weight: 750; font-synthesis: weight; text-align: right; }
:is(.source-table, .sticky-source-table) thead th:nth-child(2) { width: 38%; padding-left: 12px; text-align: left; }
:is(.source-table, .sticky-source-table) .rank-heading { width: 40px; padding: 10px 0; font-size: 0; text-align: center; }
.rank-heading::after { content: '#'; font-size: 12px; }
.source-table tbody :is(th,td) { position: relative; height: 68px; padding: 12px; border-bottom: 1px solid var(--table-grid); text-align: right; vertical-align: middle; }
.source-table tbody th { text-align: left; font-weight: 400; }
:is(.source-table, .sticky-source-table) th > strong { display: block; font-size: 15px; font-weight: 600; font-synthesis: weight; letter-spacing: -.1px; }
:is(.source-table, .sticky-source-table) th > span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.source-table td > strong { display: block; font-size: 22px; font-weight: 400; letter-spacing: -.4px; line-height: 1.3; }
.source-table td > small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.source-table .source-rank { padding: 10px 0; color: var(--muted); font-size: 13px; font-weight: 400; text-align: center; }
.source-table .ranked-metric > strong { font-weight: 750; font-synthesis: weight; }
:is(.source-table, .sticky-source-table) th[aria-sort] { color: var(--text); }
:is(.source-table, .sticky-source-table) th > small { display: none; }
.source-table tbody tr:hover :is(th,td) { background: var(--hover); }
.source-table .source-unavailable { color: var(--muted); font-size: 14px; }
body[data-kind=word]:not([data-metric=cer]) :is(.source-table, .sticky-source-table) :is(.error-heading,[data-metric=cer]) { display: none; }
body[data-kind=word][data-metric=cer] :is(.source-table, .sticky-source-table) thead th:nth-child(2) { width: 30%; }
.comparison-summary { margin: 0; padding: 13px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.comparison-summary:empty { display: none; }
.source-note { margin: 13px 3px 26px; color: var(--muted); font-size: 12px; line-height: 1.8; }
#words-panel { margin-top: 0; }
.results-heading { display: flex; align-items: center; gap: 12px; }
#words { margin: 0; font-size: 22px; font-weight: 400; letter-spacing: -.5px; line-height: 1.3; scroll-margin-top: 20px; }
.word-controls { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 21px 0 12px; }
.word-controls label { flex: 1; max-width: 350px; }
.word-controls input { min-height: 44px; font-size: 14px; }
#word-count { margin: 0 0 3px; color: var(--muted); font-size: 12px; line-height: 1.8; text-align: right; font-variant-numeric: tabular-nums; }
.word-note { margin: 0 0 15px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.word-grid-scroll { --word-input: 240px; max-height: min(65vh, 36rem); overflow: auto; border: 1px solid var(--table-edge); isolation: isolate; background: var(--surface); }
.word-grid { min-width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; text-align: left; }
.word-grid :is(th,td) { min-width: 145px; max-width: 200px; padding: 12px 15px; border-right: 1px solid var(--table-grid); border-bottom: 1px solid var(--table-grid); background: var(--surface); overflow-wrap: anywhere; vertical-align: top; }
.word-grid thead th { position: sticky; top: 0; z-index: 3; border-bottom: 1px solid var(--table-edge); color: var(--text); background: var(--header-bg); font-size: 13px; font-weight: 750; font-synthesis: weight; }
.word-grid thead strong { display: block; font-size: 13px; font-weight: 750; font-synthesis: weight; }
.word-grid small { display: block; margin-top: 5px; color: var(--muted); font-family: 'DM Sans',sans-serif; font-size: 12px; font-weight: 400; line-height: 1.6; }
.word-grid tbody th { color: var(--text); font-size: 14px; font-weight: 600; font-synthesis: weight; }
.word-grid tr > :first-child { position: sticky; left: 0; z-index: 2; width: var(--word-input); min-width: var(--word-input); max-width: var(--word-input); border-right-color: var(--table-edge); box-shadow: none; }
.word-grid thead tr > :first-child { z-index: 6; }
.word-grid .word-roman { display: block; color: var(--muted); font-family: 'DM Sans',sans-serif; font-size: 13px; font-weight: 400; line-height: 1.6; }
.word-grid .word-reference { display: block; margin-top: 4px; color: var(--text); font-family: 'Noto Sans Devanagari',sans-serif; font-size: 19px; font-weight: 400; line-height: 1.8; }
.word-grid .word-case-id { margin-top: 4px; font-size: 10px; }
.word-grid tbody tr:hover > :is(th,td) { background: var(--hover); }
.word-output { color: var(--text); font-family: 'Noto Sans Devanagari',sans-serif; font-size: 19px; line-height: 1.8; }
.word-grid td[data-match=first] .word-output { color: var(--text); }
.word-match { margin-left: 7px; color: var(--text); font-family: 'DM Sans',sans-serif; font-size: 13px; }
.word-unavailable { color: var(--muted); font-size: 13px; line-height: 1.8; }
summary { cursor: pointer; user-select: none; }
.word-alternatives { margin-top: 6px; }
.word-alternatives > summary, .word-error > summary { color: var(--muted); font-size: 12px; line-height: 1.8; }
.word-alternatives ol { margin: 10px 0 0; padding-left: 21px; font-family: 'Noto Sans Devanagari',sans-serif; font-size: 18px; line-height: 1.9; }
.reference-match { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.word-error p { margin: 8px 0; font-size: 13px; line-height: 1.7; white-space: pre-wrap; }
.word-pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 0 0; color: var(--muted); font-size: 12px; }
.word-pagination button { cursor: pointer; min-height: 40px; padding: 8px 14px; border: 1px solid var(--control-border); background: var(--field); color: var(--text); font: inherit; }
.word-pagination button:hover:not(:disabled) { background: var(--hover); }
.word-pagination button:disabled { cursor: default; opacity: .5; }
.word-empty { padding: 20px 0; color: var(--muted); font-size: 14px; text-align: center; }
.benchmark-invite { margin: 18px 0; padding: clamp(16px, 3vw, 24px); border: 1px solid var(--line); background: var(--field); }
.benchmark-invite h2 { margin: 0; font-size: 19px; font-weight: 600; font-synthesis: weight; }
.benchmark-invite p { max-width: 65ch; margin: 6px 0 13px; color: var(--muted); font-size: 14px; }
.benchmark-invite-links { display: grid; justify-items: start; gap: 8px; font-size: 14px; }
.benchmark-invite-links a:first-child { font-weight: 600; font-synthesis: weight; }
.disclosure { margin-top: 14px; padding: 0 24px; background: var(--surface); scroll-margin-top: 20px; }
.disclosure > summary { display: flex; justify-content: space-between; gap: 10px; padding: 20px 0; font-size: 14px; font-weight: 400; list-style: none; }
.disclosure > summary::after { content: '+'; color: var(--muted); font-size: 19px; line-height: 1; }
.disclosure[open] > summary::after { content: '−'; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > div { max-width: 960px; padding: 0 0 22px; }
.disclosure p { margin: 0 0 15px; color: var(--muted); font-size: 13px; line-height: 1.9; }
#source-dates { margin-bottom: 20px; padding-left: 17px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.download-links { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; }
.download-links a { padding: 8px 14px; color: var(--text); background: var(--field); text-decoration: none; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 25px 3px 32px; color: var(--muted); font-size: 12px; }
footer a { text-decoration: none; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { position: absolute; top: 12px; left: 12px; z-index: 20; padding: 12px; background: var(--surface); }
body[data-kind=sentence] .word-grid :is(th,td) { min-width: 300px; max-width: 380px; }
body[data-kind=sentence] .word-grid-scroll { --word-input: 320px; }
body[data-kind=sentence] .word-grid tr > :first-child { min-width: var(--word-input); max-width: var(--word-input); }
@media (max-width: 1100px) {
  :is(.source-table, .sticky-source-table) thead th:nth-child(2) { width: 34%; }
  .header-start { gap: 28px; }
  .header-actions { gap: 14px; }
}
@media (max-width: 900px) {
  .comparison-toolbar { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .simple-header, main { width: calc(100% - 40px); }
  .simple-header { min-height: 72px; }
  .simple-header nav { gap: 16px; }
  .simple-header nav a { font-size: 12px; }
  .page-heading { padding: 24px 0; }
  h1 { font-size: 34px; letter-spacing: -1.2px; }
  .header-actions { gap: 8px; }
  .appearance button { padding-inline: 9px; }
  .playground-link { padding: 8px 12px; gap: 10px; font-size: 12px; }
  #scores-panel, #words-panel { padding: 20px; }
}
@media (max-width: 520px) {
  .comparison-toolbar { grid-template-columns: minmax(0, 1fr); }
  .comparison-toolbar .checkbox-label { min-height: 28px; }
}
@media (max-width: 600px) {
  .simple-header, main { width: calc(100% - 28px); }
  .simple-header { gap: 12px; }
  .simple-brand { font-size: 23px; }
  .simple-header nav { display: none; }
  .header-start { gap: 0; }
  .header-actions { gap: 8px; }
  .playground-link { padding: 8px 11px; gap: 8px; font-size: 11px; }
  .appearance button { padding: 7px 8px; font-size: 11px; }
  .page-heading { padding: 24px 6px; }
  h1 { font-size: 29px; letter-spacing: -.9px; }
  .page-heading p { margin-inline: auto; max-width: 330px; font-size: 13px; }
  select { min-height: 44px; font-size: 14px; }
  #scores-panel, #words-panel { padding: 17px 12px; }
  .panel-heading { gap: 8px; }
  .panel-heading h2 { font-size: 15px; }
  .panel-heading > span { max-width: 115px; font-size: 10px; text-align: right; }
  .source-table caption { padding: 8px 0 12px; font-size: 11px; }
  :is(.source-table, .sticky-source-table) .source-rank, :is(.source-table, .sticky-source-table) .rank-heading { display: none; }
  :is(.source-table, .sticky-source-table) thead th { padding: 10px 3px; font-size: 10px; }
  :is(.source-table, .sticky-source-table) thead th:nth-child(2) { width: 27%; padding-left: 3px; }
  .source-table tbody :is(th,td) { height: 66px; padding: 11px 3px; }
  :is(.source-table, .sticky-source-table) th > strong { font-size: 12px; line-height: 1.5; }
  :is(.source-table, .sticky-source-table) th > span { margin-top: 3px; font-size: 10px; line-height: 1.6; }
  .source-table td > strong { font-size: 18px; letter-spacing: -.5px; }
  .source-table td > small { margin-top: 5px; font-size: 10px; overflow-wrap: break-word; }
  body[data-kind=word][data-metric=cer] :is(.source-table, .sticky-source-table) { min-width: 590px; }
  body[data-kind=word][data-metric=cer] :is(.source-table, .sticky-source-table) thead th:nth-child(2) { width: 26%; }
  .source-note { margin-bottom: 20px; font-size: 11px; }
  #words { font-size: 20px; }
  .results-heading { gap: 10px; }
  .word-controls { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 16px; }
  .word-controls label { max-width: none; }
  #word-count { text-align: left; font-size: 11px; }
  .word-note { font-size: 11px; }
  .word-grid :is(th,td) { min-width: 150px; padding: 12px; }
  .word-grid tr > :first-child { left: auto; }
  .word-grid tbody tr > :first-child { position: static; }
  .word-pagination { gap: 8px; font-size: 11px; }
  .word-pagination button { padding: 8px 11px; }
  .disclosure { padding-inline: 18px; }
  footer { font-size: 11px; line-height: 1.7; }
  body[data-kind=sentence] .word-grid :is(th,td) { min-width: min(300px, calc(100vw - 56px)); }
  body[data-kind=sentence] .word-grid tr > :first-child { width: auto; min-width: min(300px, calc(100vw - 56px)); max-width: 380px; }
}
@media (max-width: 360px) {
  .source-table td > strong { font-size: 15px; letter-spacing: -.5px; }
  :is(.source-table, .sticky-source-table) th > strong { font-size: 11px; }
  .header-actions { gap: 2px; }
  .appearance button { padding-inline: 6px; }
}
@media (prefers-reduced-motion: no-preference) {
  a, button { transition: color .15s, background-color .15s, border-color .15s; }
}
