@font-face {
  font-family: "Geologica";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/geologica-cyrillic-wght.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geologica";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/geologica-latin-wght.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: light;
  --ink: #15171a;
  --ink-2: #464b53;
  --ink-3: #686e77;
  --line: #e3e6ea;
  --line-2: #c9cdd3;
  --band: #f4f5f7;
  --hi: #ffe14d;
  --hi-deep: #ffd21a;
  --hi-soft: #fff8d4;
  --paper: #ffffff;
  --first: 236px;
  font-family: "Geologica", "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}
* {
  box-sizing: border-box;
}
html {
  scrollbar-color: var(--line-2) transparent;
}
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 380;
  caret-color: var(--ink);
}
::selection {
  background: var(--hi);
  color: var(--ink);
}
a {
  color: var(--ink);
  text-decoration-line: underline;
  text-decoration-color: var(--line-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.15s ease-out;
}
a:hover {
  text-decoration-color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: 4px;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
  font-weight: 760;
}
p {
  text-wrap: pretty;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--hi);
  border-radius: 6px;
}
.skip:focus {
  top: 12px;
}
.frame {
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
}
.i {
  flex: none;
}

/* Header */
.top {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.bar {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 64px;
}
.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.logo span {
  margin-left: 1px;
  padding: 1px 4px 2px;
  border-radius: 5px;
  background: var(--hi);
}
.nav {
  display: flex;
  gap: 26px;
  font-size: 15px;
  font-weight: 500;
}
.nav a {
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover {
  border-bottom-color: var(--line-2);
}
.nav a[aria-current] {
  border-bottom-color: var(--ink);
}
.menu {
  display: none;
}
.signin,
.me summary {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}
.me {
  margin-left: auto;
  position: relative;
}
.me summary::-webkit-details-marker,
.menu summary::-webkit-details-marker,
.faq summary::-webkit-details-marker {
  display: none;
}
.me div {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 5;
  min-width: 180px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 8px 24px rgb(21 23 26 / 0.12);
}
.me div a,
.me div button {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: none;
  text-align: left;
  text-decoration: none;
  font-size: 14px;
}
.me div a:hover,
.me div button:hover {
  background: var(--band);
}

/* Intro */
.crumbs {
  margin-top: 22px;
  font-size: 13px;
  color: var(--ink-3);
}
.crumbs a {
  color: var(--ink-2);
}
.crumbs > * + *::before {
  content: "/";
  margin: 0 8px;
  color: var(--line-2);
}
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px 40px;
  padding: 40px 0 22px;
}
.crumbs + .intro {
  padding-top: 20px;
}
.intro h1 {
  grid-column: 1 / -1;
  max-width: 17ch;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
}
.lede {
  margin: 0;
  max-width: 60ch;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-2);
}
.stamp {
  margin: 0;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Language tabs and filters */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}
.tabs a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 550;
  text-decoration: none;
}
.tabs a:hover {
  border-color: var(--ink);
}
.tabs a[aria-current] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.tabs small,
.chip small {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.tabs a[aria-current] small {
  color: #c9ccd1;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 32px;
  margin: 0 0 22px;
  padding: 16px 0;
  border-block: 1px solid var(--line);
}
.filters fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.filters legend,
.order label {
  margin-bottom: 8px;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  position: relative;
  cursor: pointer;
}
.chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.chip span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.15s ease-out, border-color 0.15s ease-out;
}
.chip:hover span {
  border-color: var(--ink);
}
.chip input:checked + span {
  background: var(--hi);
  border-color: var(--ink);
}
.chip input:checked + span small {
  color: var(--ink-2);
}
.chip input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.order {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 0 10px;
}
.order label {
  grid-column: 1 / -1;
}
.order select {
  padding: 7px 34px 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--paper);
  font-size: 14px;
}
.reset {
  font-size: 14px;
}
.filters.live .btn {
  display: none;
}
.found {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--ink-2);
}

/* Buttons */
.btn,
.more,
.go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease-out, color 0.15s ease-out,
    border-color 0.15s ease-out;
}
.btn {
  padding: 8px 14px;
  border: 1px solid var(--ink);
  background: var(--paper);
}
.btn:hover {
  background: var(--band);
}
.btn.primary {
  background: var(--ink);
  color: var(--paper);
}
.btn.primary:hover {
  background: #2c2f34;
}
.more {
  padding: 7px 12px;
  border: 1px solid var(--ink);
}
.more:hover {
  background: var(--ink);
  color: var(--paper);
}
.go {
  padding: 8px 12px;
  background: var(--hi);
  box-shadow: inset 0 -1px 0 rgb(21 23 26 / 0.18);
}
.go:hover {
  background: var(--hi-deep);
}

/* Spec sheet */
.sheet-wrap,
.list-wrap {
  position: relative;
  margin: 0;
}
.sheet-wrap:focus-visible {
  outline-offset: 4px;
}
.sheet {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-variant-numeric: tabular-nums;
}
.sheet thead th,
.sheet .corner {
  padding: 18px 8px 16px;
  vertical-align: bottom;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  font-weight: inherit;
  transition: background-color 0.12s ease-out;
}
.sheet .corner {
  width: var(--first);
  padding-left: 0;
  text-align: left;
}
.key {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 26px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.key .yes,
.key .no {
  width: 22px;
  text-align: center;
}
.head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.place {
  min-width: 24px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--band);
  font-size: 12px;
  font-weight: 650;
  color: var(--ink-2);
}
.who {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.who b {
  font-size: 15px;
  font-weight: 680;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.who:hover b {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.tile {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  border: 1px solid var(--line);
  object-fit: cover;
  background: var(--paper);
}
.tile.letters {
  display: grid;
  place-items: center;
  background: var(--band);
  font-size: 15px;
  font-weight: 700;
}
.tile.big {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  font-size: 24px;
}
.score {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: 13px;
  color: var(--ink-3);
}
.score .star {
  align-self: center;
  color: var(--ink);
}
.score b {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.score.none {
  font-size: 12.5px;
}
.fit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.fit small {
  font-size: 12.5px;
  font-weight: 550;
  color: var(--ink-2);
}
.ramp {
  display: inline-flex;
  gap: 2px;
}
.ramp i {
  width: 7px;
  height: 13px;
  border-radius: 2px;
  background: #dde0e5;
}
.ramp i.on {
  background: var(--ink);
}
.sheet .group th {
  padding: 22px 12px 8px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.sheet .group th span {
  display: inline-block;
}
.sheet tbody th[scope="row"] {
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 15px;
  font-weight: 520;
  line-height: 1.3;
  background: var(--paper);
}
.sheet tbody th[scope="row"] small {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 380;
  color: var(--ink-3);
}
.sheet td {
  height: 60px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
  transition: background-color 0.12s ease-out;
}
.yes {
  display: inline-flex;
  color: var(--ink);
  vertical-align: middle;
}
.no {
  display: inline-block;
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: #b4b9c1;
  vertical-align: middle;
}
.nodata {
  font-size: 12px;
  color: var(--ink-3);
}
.langs {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 550;
  color: var(--ink-2);
}
.codes {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}
.codes a {
  padding: 2px 6px;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}
.codes a:hover {
  border-color: var(--ink);
}
.num {
  font-size: 15px;
  font-weight: 650;
}
.sheet tr.text td {
  vertical-align: top;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink-2);
}
.sheet tr.proof td {
  text-align: left;
  vertical-align: top;
  padding-inline: 14px;
}
.note {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-2);
}
.src {
  font-size: 12.5px;
  color: var(--ink-3);
  white-space: nowrap;
}
.vote {
  display: inline-flex;
  gap: 4px;
}
.vote button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  background: var(--paper);
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.15s ease-out, background-color 0.15s ease-out;
}
.vote button:hover {
  border-color: var(--ink);
}
.vote button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* Column focus: hovering or tabbing into a school lights its whole column. */
.sheet:has(tr > :nth-child(2):is(:hover, :focus-within)) tr > :nth-child(2),
.sheet:has(tr > :nth-child(3):is(:hover, :focus-within)) tr > :nth-child(3),
.sheet:has(tr > :nth-child(4):is(:hover, :focus-within)) tr > :nth-child(4),
.sheet:has(tr > :nth-child(5):is(:hover, :focus-within)) tr > :nth-child(5),
.sheet:has(tr > :nth-child(6):is(:hover, :focus-within)) tr > :nth-child(6),
.sheet:has(tr > :nth-child(7):is(:hover, :focus-within)) tr > :nth-child(7),
.sheet:has(tr > :nth-child(8):is(:hover, :focus-within)) tr > :nth-child(8),
.sheet:has(tr > :nth-child(9):is(:hover, :focus-within)) tr > :nth-child(9),
.sheet:has(tr > :nth-child(10):is(:hover, :focus-within)) tr > :nth-child(10) {
  background: var(--hi-soft);
}
.profile-sheet .sheet:has(tr > :nth-child(n + 2):hover) tr > * {
  background: inherit;
}

@media (min-width: 1080px) {
  .sheet thead th,
  .sheet .corner {
    position: sticky;
    top: 0;
    z-index: 2;
  }
}

/* Sections */
.block {
  margin: 64px 0;
}
.block h2 {
  margin-bottom: 14px;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.block h2 small {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-3);
}
.block p {
  max-width: 70ch;
  margin: 0 0 14px;
  font-size: 16.5px;
  line-height: 1.6;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 12px 48px;
  align-items: start;
  margin-bottom: 18px;
}
.split p {
  color: var(--ink-2);
}
.glossary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
  margin: 0;
}
.glossary div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  padding: 16px 0 18px;
  border-top: 1px solid var(--line);
}
.glossary dt {
  font-size: 17px;
  font-weight: 650;
}
.glossary dd {
  margin: 0;
  grid-column: 1 / -1;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.glossary dd.n {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.langs-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.langs-list li {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.langs-list li:last-child {
  border-bottom: 1px solid var(--line);
}
.lang {
  text-decoration: none;
}
.lang b {
  display: block;
  font-size: 20px;
  font-weight: 720;
  letter-spacing: -0.02em;
}
.lang span,
.lead {
  font-size: 14.5px;
  color: var(--ink-2);
}
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.quotes article {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.quotes header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
}
.quotes time {
  font-weight: 400;
  color: var(--ink-3);
}
.quotes p {
  margin: 10px 0;
  font-size: 15px;
}
.quotes footer {
  font-size: 13px;
  color: var(--ink-3);
}
.method {
  padding: 28px 32px;
  border-radius: 16px;
  background: var(--band);
}
.method p {
  color: var(--ink-2);
}
.guide p {
  color: var(--ink-2);
}
.faq details {
  max-width: 820px;
  border-top: 1px solid var(--line);
}
.faq details:last-of-type {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  position: relative;
  padding: 16px 40px 16px 0;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 22px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  transition: transform 0.2s ease-out;
}
.faq details[open] summary::after {
  transform: translateY(4px) rotate(225deg);
}
.faq details p {
  margin: 0 0 18px;
  color: var(--ink-2);
}
.empty {
  padding: 40px 24px;
  border: 1px dashed var(--line-2);
  border-radius: 14px;
  text-align: center;
}
.empty h2 {
  font-size: 22px;
}
.empty p {
  margin: 10px auto 18px;
  max-width: 50ch;
  color: var(--ink-2);
}

/* Feature pages */
.list-wrap {
  overflow-x: auto;
}
.list {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.list th,
.list td {
  padding: 14px 14px 14px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 15px;
}
.list thead th {
  padding-top: 0;
  border-bottom: 2px solid var(--ink);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.list tbody th {
  font-weight: inherit;
}
.list .who {
  flex-direction: row;
  gap: 12px;
}
.list .tile {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}
.list td:nth-child(3) {
  max-width: 46ch;
  color: var(--ink-2);
}
.list td:last-child {
  text-align: right;
  padding-right: 0;
}
.split-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 56px;
}
.split-text h2 {
  font-size: 22px;
}
.asks {
  margin: 0;
  padding: 0;
  list-style: none;
}
.asks li {
  position: relative;
  padding: 10px 0 10px 24px;
  border-top: 1px solid var(--line);
  font-size: 16px;
}
.asks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 19px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--hi);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.names {
  color: var(--ink-2);
}
.others {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.others a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  font-weight: 550;
  text-decoration: none;
}
.others a:hover {
  border-color: var(--ink);
}
.others li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.others small {
  font-size: 13px;
  color: var(--ink-3);
}

/* School review */
.profile {
  padding: 26px 0 8px;
}
.who-big {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}
.who-big h1 {
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.who-big .lede {
  margin-top: 12px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 28px 0 0;
  border-block: 1px solid var(--line);
}
.stats div {
  padding: 16px 18px 18px;
}
.stats div:first-child {
  padding-left: 0;
}
.stats div + div {
  border-left: 1px solid var(--line);
}
.stats dt {
  font-size: 13px;
  font-weight: 550;
  color: var(--ink-3);
}
.stats dd {
  margin: 8px 0 0;
}
.stats .score b {
  font-size: 20px;
}
.hint {
  color: var(--ink-2);
}
.lang-head b {
  font-size: 17px;
  font-weight: 700;
}
.profile-sheet .sheet td {
  height: auto;
  padding-block: 14px;
}
.sources {
  margin-top: 16px !important;
  font-size: 13.5px !important;
  color: var(--ink-3);
}
.sources a {
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.muted {
  color: var(--ink-3);
}

/* Prose, auth, admin */
.prose {
  max-width: 72ch;
  padding: 20px 0 20px;
}
.prose h1 {
  margin: 8px 0 22px;
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.prose h2 {
  margin: 32px 0 10px;
  font-size: 22px;
  letter-spacing: -0.015em;
}
.prose p {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
}
.auth {
  max-width: 420px;
  margin: 56px auto;
}
.auth h1,
.admin-title {
  font-size: 34px;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.auth > p {
  color: var(--ink-2);
}
.auth form,
.desk-main form {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}
.auth label,
.desk-main label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}
.auth input,
.desk-main input:not([type="checkbox"]),
.desk-main textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--paper);
  font-size: 15px;
  font-weight: 400;
}
.auth input:focus,
.desk-main input:focus,
.desk-main textarea:focus {
  border-color: var(--ink);
}
.auth .btn {
  padding: 11px 16px;
  font-size: 15px;
}
.auth .hint {
  margin: 0;
  font-size: 13.5px;
}
.switch {
  margin-top: 18px;
  font-size: 14.5px;
}
.alert {
  padding: 10px 14px;
  border: 1px solid #e6b3ad;
  border-radius: 8px;
  background: #fdf1ef;
  color: #7a1f14;
  font-size: 14.5px;
}
.alert.ok {
  border-color: var(--line-2);
  background: var(--band);
  color: var(--ink);
}
.admin-title {
  margin: 20px 0 22px;
}
.desk {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.desk-nav {
  display: grid;
  gap: 2px;
  position: sticky;
  top: 16px;
}
.desk-nav a {
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14.5px;
}
.desk-nav a:hover {
  background: var(--band);
}
.desk-nav a[aria-current] {
  background: var(--ink);
  color: var(--paper);
}
.desk-main h2 {
  font-size: 24px;
}
.desk-main h3 {
  margin: 36px 0 4px;
  font-size: 18px;
}
.desk-main fieldset {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.desk-main legend {
  padding: 0 6px;
  font-weight: 700;
}
.desk-main textarea {
  min-height: 120px;
  resize: vertical;
}
.tags-edit {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px 16px;
}
.tags-edit label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 450;
}
.tags-edit input {
  accent-color: var(--ink);
  width: 16px;
  height: 16px;
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.desk-main .btn {
  justify-self: start;
}

/* Footer */
.foot {
  margin-top: 88px;
  border-top: 1px solid var(--line);
}
.foot-in {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 40px;
  padding: 32px 0 40px;
}
.foot p {
  margin: 0;
  max-width: 56ch;
  font-size: 14px;
  color: var(--ink-2);
}
.foot nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
}
.foot small {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--ink-3);
}

/* Narrow screens: the sheet scrolls sideways under a pinned label column. */
@media (max-width: 1079px) {
  :root {
    --first: 132px;
  }
  .sheet-wrap {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    margin-inline: -20px;
    padding-inline: 20px;
    scroll-padding-left: 152px;
  }
  .sheet.cols-2 {
    min-width: calc(var(--first) + 2 * 150px);
  }
  .sheet.cols-3 {
    min-width: calc(var(--first) + 3 * 142px);
  }
  .sheet.cols-4 {
    min-width: calc(var(--first) + 4 * 138px);
  }
  .sheet.cols-5,
  .sheet.cols-6,
  .sheet.cols-7,
  .sheet.cols-8,
  .sheet.cols-9 {
    min-width: calc(var(--first) + 7 * 136px);
  }
  .sheet.cols-8 {
    min-width: calc(var(--first) + 8 * 136px);
  }
  .sheet.cols-9 {
    min-width: calc(var(--first) + 9 * 136px);
  }
  .profile-sheet .sheet.cols-2 {
    min-width: calc(var(--first) + 2 * 220px);
  }
  .profile-sheet .sheet.cols-3 {
    min-width: calc(var(--first) + 3 * 220px);
  }
  .sheet tbody th[scope="row"],
  .sheet .corner {
    position: sticky;
    left: 0;
    z-index: 1;
    box-shadow: 1px 0 0 var(--line);
  }
  .sheet tbody th[scope="row"] {
    padding-right: 10px;
    font-size: 14px;
  }
  .sheet tbody th[scope="row"] small {
    font-size: 11.5px;
  }
  .sheet .corner {
    padding-right: 8px;
  }
  .key {
    gap: 6px;
    font-size: 11.5px;
    line-height: 1.25;
  }
  .sheet .group th span {
    position: sticky;
    left: 0;
  }
  .split,
  .split-text {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stats div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .stats div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 900px) {
  .bar {
    gap: 14px;
  }
  .bar > .nav {
    display: none;
  }
  .menu {
    display: block;
    order: -1;
  }
  .menu summary {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-left: -8px;
    border-radius: 8px;
    list-style: none;
    cursor: pointer;
  }
  .menu summary:hover {
    background: var(--band);
  }
  .menu nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    z-index: 6;
    display: grid;
    padding: 8px 20px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 16px 24px rgb(21 23 26 / 0.08);
  }
  .menu nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
    font-weight: 550;
    text-decoration: none;
  }
  .menu nav a[aria-current] {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--ink);
  }
  .top {
    position: relative;
  }
  .glossary {
    grid-template-columns: 1fr;
  }
  .langs-list li {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .langs-list .lead {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .foot-in {
    grid-template-columns: 1fr;
  }
  .desk {
    grid-template-columns: 1fr;
  }
  .desk-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
  }
}
@media (max-width: 640px) {
  .frame {
    width: calc(100% - 32px);
  }
  .sheet-wrap {
    margin-inline: -16px;
    padding-inline: 16px;
  }
  .intro {
    grid-template-columns: 1fr;
    padding: 28px 0 18px;
  }
  .stamp {
    justify-self: start;
  }
  .lede {
    font-size: 16.5px;
  }
  .order {
    grid-template-columns: 1fr auto auto;
  }
  .filters fieldset {
    width: 100%;
  }
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -16px;
    padding: 2px 16px 4px;
    scrollbar-width: none;
  }
  .chip {
    flex: none;
  }
  .who-big {
    flex-direction: column;
    gap: 16px;
  }
  .block {
    margin: 48px 0;
  }
  .block h2 {
    font-size: 24px;
  }
  .method {
    padding: 22px 20px;
  }
  .list thead {
    display: none;
  }
  .list,
  .list tbody,
  .list tr,
  .list th,
  .list td {
    display: block;
  }
  .list tr {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .list th,
  .list td {
    padding: 4px 0;
    border: 0;
  }
  .list td:last-child {
    text-align: left;
    padding-top: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
