/* Law school rankings by practice and market.
   Layout: one sheet of pleading paper. A double rule runs down the left of the page. Rank numbers
   and paragraph numbers sit just right of it, in a column of their own; the text follows them.
   Two highlighters: yellow marks the caveat a reader must not miss and the schools a reader picks; green
   marks the highest adjusted index in each market in Compare. */

@font-face { font-family: "Schola"; src: url("../fonts/schola-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Schola"; src: url("../fonts/schola-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap;
  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; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  --paper: #FFFFFF;
  --ink: #000000;
  --graphite: #595959;        /* second-level text */
  --hairline: #D9D9D9;        /* row lines */
  --divider: #A6A6A6;         /* lines between the schools in Compare */
  --band: #F4F4F4;            /* the rows of the largest markets in Compare */
  --best: #C9EBC1;            /* the highlighter for the highest adjusted index in a market, in Compare */
  --num-col: 2.75rem;         /* rank and paragraph numbers, just right of the double rule */
  --marker: #FFE94A;          /* the highlighter */
  --marker-soft: #FFF6AE;     /* the highlighter, hovering */
  --serif: "Schola", "Century Schoolbook", "New Century Schoolbook", "Century Schoolbook L", Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 4.5rem;           /* the numbered margin */
  --rule: 5px;                /* the double rule: line, gap, line */
  --indent: 1.5rem;           /* from the rule to the text */
  --edge: 2.5rem;             /* right-hand margin */
  --text-left: calc(var(--gutter) + var(--rule) + var(--indent));
  --measure: 44rem;
  --bar-gap: 0.65rem;         /* between a bar's value and the bar */
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.5 var(--sans); font-variant-numeric: lining-nums; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus { outline: none; }
/* Focus marks are never a black box. They show only while the reader uses the keyboard (main.js sets
   data-input="keys" on Tab or an arrow key, and "pointer" on a click or tap): a highlighter band or a
   heavier line, like the hover marks. A text box shows focus by a heavier underline at all times. */
[data-input="keys"] :is(a, .text-button, summary):focus { background: var(--marker-soft); text-decoration-thickness: 3px; }
[data-input="keys"] .masthead nav a:focus { box-shadow: 0 2px 0 var(--ink); }
[data-input="keys"] .button:focus { box-shadow: 0 0 0 3px var(--marker); }
[data-input="keys"] .rank-mark:focus { box-shadow: inset 0 -2px 0 var(--ink); }
[data-input="keys"] .info:focus { box-shadow: 0 0 0 2px var(--ink); }
[data-input="keys"] .choice input:focus { box-shadow: 0 0 0 3px var(--marker); }
[data-input="keys"] .choice input:focus + span { background: var(--marker-soft); }
[hidden] { display: none; }

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.narrow-only, .narrow-inline { display: none; }   /* shown on narrow screens; see the end of this file */
.label-long { display: none; }                     /* shown on wide screens, with .label-short hidden */
.skip { position: absolute; left: -999rem; top: 0.5rem; z-index: 3; padding: 0.4rem 0.8rem; background: var(--ink); color: var(--paper); }
.skip:focus { left: 0.5rem; }

/* ---- the sheet ------------------------------------------------------------------------- */

.sheet { position: relative; max-width: 78rem; min-height: 100vh; margin: 0 auto; padding: 0 var(--edge) 4rem var(--text-left); }
.sheet::before { content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; left: var(--gutter); width: var(--rule);
  border: solid var(--ink); border-width: 0 1px; background: var(--paper); pointer-events: none; }
.sheet::after { content: ""; position: absolute; top: 0; bottom: 0; right: calc(var(--edge) / 2); border-left: 1px solid var(--ink); pointer-events: none; }

.masthead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.4rem 2rem; padding-top: 1.75rem; }
.site-title { font: 700 1.0625rem/1.3 var(--serif); text-decoration: none; text-wrap: balance; }
.masthead nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.6rem; font-size: 0.9375rem; }
.masthead nav a { padding: 0.15rem 0; text-decoration: none; }
.masthead nav a:hover { box-shadow: 0 1px 0 var(--ink); }
.masthead nav a[aria-current="page"] { font-weight: 700; box-shadow: 0 2px 0 var(--ink); }

main { outline: none; transition: opacity 0.15s; }
main.is-loading { opacity: 0.45; transition-delay: 0.2s; }

.colophon { margin-top: 4.5rem; max-width: var(--measure); font-size: 0.8125rem; color: var(--graphite); }
.colophon p { margin: 0 0 0.3rem; }

/* ---- the question ---------------------------------------------------------------------- */

.question { max-width: 27em; margin: 2.5rem 0 1.4rem; font: 400 clamp(1.5rem, 1.02rem + 2vw, 2.375rem)/1.42 var(--serif); }

/* A blank in the question: the chosen words, underlined like a line on a form, with a caret.
   The real <select> is laid invisibly over them (see blank() in js/dom.js). */
.blank { position: relative; display: inline-block; max-width: 100%; vertical-align: baseline; }
.blank-text { font-weight: 700; padding: 0 0.12em; border-bottom: 2px solid var(--ink);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  /* The highlight band runs 0.15em above the capitals and 0.15em below the baseline, and 0.12em past the
     words at each end. In Schola the line box starts 1.184em above the baseline and capitals stand
     0.737em high, so the band starts 0.297em down and is 1.037em tall. */
  --blank-band: 0 0.297em / 100% 1.037em no-repeat; }
.blank-tail { white-space: nowrap; }
.blank-tail::after { content: ""; display: inline-block; width: 0.44em; height: 0.27em; margin: 0 0.12em 0 0.3em; vertical-align: 0.2em;
  background: currentColor; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.blank select { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; font: 400 1rem var(--sans); color: var(--ink); background: var(--paper);
  border: 0; opacity: 0; cursor: pointer; -webkit-appearance: none; appearance: none; }
.blank select optgroup { font-weight: 700; }
.blank:hover .blank-text { background: linear-gradient(var(--marker-soft), var(--marker-soft)) var(--blank-band); }
[data-input="keys"] .blank:focus-within .blank-text { background: linear-gradient(var(--marker), var(--marker)) var(--blank-band); box-shadow: 0 2px 0 var(--ink); }
.blank-mark { font-weight: 400; }
.joined { display: inline-flex; align-items: baseline; column-gap: 0.26em; max-width: 100%; }
.joined-word { flex: none; }

.summary { max-width: var(--measure); }
.summary p { margin: 0 0 0.4rem; }
.count-line { font-weight: 700; }
mark { padding: 0.08em 0.22em; margin: 0 -0.22em; color: inherit; background: var(--marker); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.75rem; margin: 1.6rem 0 1.1rem; font-size: 0.9375rem; }
.choices { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1.1rem; }
.choices-label { font-weight: 700; }
.choice { display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer; }
/* Drawn here rather than by the browser, so the buttons look the same on every system. */
.choice input { -webkit-appearance: none; appearance: none; flex: none; width: 1rem; height: 1rem; margin: 0;
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: 50%; cursor: pointer; }
.choice input:checked { background: radial-gradient(circle closest-side, var(--ink) 52%, var(--paper) 60%); }
.choice input:disabled { border-color: var(--graphite); cursor: default; }
@media (hover: hover) { .choice:hover input:not(:checked):not(:disabled) { background: var(--marker-soft); } }
.choice input:disabled + span { color: var(--graphite); }
.find { width: 11rem; padding: 0.2rem 0; font: inherit; color: inherit; background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; }
.find::placeholder { color: var(--graphite); opacity: 1; }
.find:focus { box-shadow: 0 1px 0 var(--ink); }
.text-button { padding: 0; font: inherit; color: inherit; background: none; border: 0; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.text-button:hover { text-decoration-thickness: 2px; }
.text-button[aria-pressed="true"] { background: var(--marker); }

/* ---- tables ---------------------------------------------------------------------------- */

.scroll { overflow-x: auto; }

.ranking { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; }
.ranking th, .ranking td { padding: 0.55rem 0.75rem; font-weight: 400; text-align: left; vertical-align: baseline; border-bottom: 1px solid var(--hairline); }
.ranking thead th { padding-top: 0; padding-bottom: 0.4rem; font-size: 0.8125rem; font-weight: 600; color: var(--graphite); white-space: nowrap; vertical-align: bottom; border-bottom: 1px solid var(--ink); overflow: visible; }
/* The rank sits in the table's first column, just right of the double rule. */
.ranking .col-rank { width: 2.75rem; min-width: 2.75rem; max-width: 2.75rem; padding: 0 0.6rem 0 0; text-align: right; }
.ranking .col-school { padding-left: 0.4rem; }
/* A column of numbers is centred, its label (with the (i) after it) and its numbers alike, so they line up. */
.ranking .col-num { text-align: center; white-space: nowrap; }
.ranking tbody:last-child tr:last-child > * { border-bottom-color: var(--ink); }

.school-name { font: 400 1.0625rem/1.35 var(--serif); }
.school-name a { text-decoration: none; }
.school-name a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
tr.is-marked .school-name a { padding: 0.08em 0.25em; margin: 0 -0.25em; background: var(--marker); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.school-note, .row-sub { display: block; font-size: 0.8125rem; line-height: 1.4; color: var(--graphite); }
.row-sub, .sub-n { display: none; }

.rank-mark, .rank-plain { display: inline-block; min-width: 2.1rem; padding: 0.1rem 0.3rem; font: 600 0.9375rem/1.35 var(--sans); font-variant-numeric: tabular-nums lining-nums; text-align: right; color: var(--ink); }
.rank-mark { background: none; border: 0; border-radius: 0; cursor: pointer; }
.rank-mark[aria-pressed="true"] { background: var(--marker); }
@media (hover: hover) { .rank-mark:not([aria-pressed="true"]):hover { background: var(--marker-soft); } }

/* The value, then a thin bar on the text baseline. One scale per table, no reference line. */
.ranking .col-bar { width: 31%; min-width: 10rem; white-space: nowrap; overflow: hidden; }
.ranking thead .col-bar { overflow: visible; }
.bar-value { display: inline-block; width: calc(var(--bar-label, 2.1em) + var(--bar-gap)); padding-right: var(--bar-gap); font-weight: 600; text-align: right; }
.bar-track { position: relative; display: inline-block; width: calc(100% - var(--bar-label, 2.1em) - var(--bar-gap)); height: 0.5rem; }
.bar { position: absolute; top: 0; bottom: 0; left: 0; min-width: 2px; background: var(--ink); border-radius: 0 4px 4px 0; }

/* Column notes: a short label, an "i" button, and a note that opens beneath it. */
.tip { position: relative; display: inline-flex; align-items: baseline; gap: 0.25rem; }
/* The "i" is set in brackets and light, like a note mark, at the size of its label: "(i)" (JQ, 23:16 and
   23:38). The grey is the lightest that still reads against white (4.5:1). */
.info { position: relative; display: inline-flex; flex: none; align-items: baseline; padding: 0; font: 400 1em/1 var(--sans);
  color: #767676; background: none; border: 0; cursor: pointer; }
.info::after { content: ""; position: absolute; inset: -0.45rem; }   /* a larger area to tap than to see */
.info:hover, .tip.is-open .info { color: var(--ink); }
.info[aria-expanded="true"] { background: var(--marker); }
.tip-pop { position: absolute; top: calc(100% + 0.45rem); right: 0; z-index: 5; width: max-content; max-width: 17rem;
  padding: 0.55rem 0.7rem; font: 400 0.8125rem/1.45 var(--sans); color: var(--ink); text-align: left; white-space: normal;
  background: var(--paper); border: 1px solid var(--ink); }
.col-school .tip-pop, .col-market .tip-pop { left: 0; right: auto; }
.choices .tip { position: static; align-items: center; }
.choices .tip-pop { left: 0; right: auto; max-width: min(21rem, 100%); }
.tip-line { display: block; }
.tip-line + .tip-line { margin-top: 0.45rem; }
.note-line { max-width: var(--measure); margin: 1.5rem 0 0; font-size: 0.9375rem; color: var(--graphite); }

.divider td { padding-top: 0.9rem; padding-bottom: 0.9rem; font-size: 0.9375rem; }
.divider td:not(.col-rank) { padding-left: 0.4rem; }
.divider-note { color: var(--graphite); }
tr.filtered-out { display: none; }
.is-filtering tbody.unranked[hidden] { display: table-row-group; }
.is-filtering .divider { display: none; }

.notice { max-width: 40rem; margin: 2rem 0; font: 400 1.125rem/1.5 var(--serif); }

details > summary { width: fit-content; font-weight: 600; cursor: pointer; }
.reading { max-width: var(--measure); margin-top: 2rem; }
.reading dl { margin: 0.75rem 0; }
.reading dt, .terms dt { margin-top: 0.6rem; font-weight: 700; }
.reading dd, .terms dd { margin: 0; }

h2 { margin: 2.75rem 0 0.6rem; font: 700 1.3125rem/1.3 var(--serif); }
h3 { margin: 1.6rem 0 0.4rem; font: 700 1.0625rem/1.3 var(--serif); }
.aside { max-width: var(--measure); margin: 0 0 1rem; font-size: 0.9375rem; color: var(--graphite); }

/* ---- compare --------------------------------------------------------------------------- */

/* Each school takes two columns under its name, lawyers and adjusted index, with a line before each
   school. The largest markets (the country, each region) are banded and set off by a black line, so the
   table reads in blocks. Borders are separate so they stay with the header when it is held in place.
   In each ranked market the highest adjusted index is highlighted in green. */
.compare { min-width: 34rem; border-collapse: separate; border-spacing: 0; }
.compare th, .compare td { padding: 0.5rem 0 0.5rem 1.25rem; }
.compare .col-market { position: sticky; left: 0; z-index: 1; padding-left: 0; background: var(--paper); }
.compare .col-n, .compare .col-idx { text-align: right; white-space: nowrap; }
.compare .grp-start { padding-left: 1rem; border-left: 1px solid var(--divider); }
.compare .col-total, .compare .col-idx { padding-right: 1rem; }
.compare thead .col-group { padding: 0.25rem 1rem 0.4rem; font: 700 1rem/1.3 var(--serif); color: var(--ink); text-align: center;
  white-space: normal; vertical-align: bottom; border-bottom: 0; box-shadow: inset 0 -1px 0 var(--hairline); }
.compare thead .pair-labels th { padding-top: 0.4rem; }
.compare tbody tr:is(.level-national, .level-abroad, .level-region) > * { background: var(--band); }
.compare tbody tr:has(+ tr:is(.level-abroad, .level-region)) > * { border-bottom-color: var(--ink); }

/* On a wide screen the whole table fits, so the header row is held at the top while the markets scroll. */
@media (min-width: 64rem) {
  .view-compare .scroll { overflow: visible; }
  .compare thead th, .compare thead .col-market { position: sticky; top: 0; z-index: 2; background: var(--paper); }
  .compare thead .pair-labels th { top: var(--head-row, 2.5rem); }
  .compare thead th[rowspan], .compare thead .pair-labels th { border-bottom: 0; box-shadow: inset 0 -1px 0 var(--ink); }
}
.compare tbody .col-market a { display: block; padding-left: calc(var(--depth, 0) * var(--step, 0.9rem)); font: 400 1.0625rem/1.35 var(--serif); text-decoration: none; }
.compare thead .col-group a { text-decoration: none; }   /* a school's name opens its own page */
.compare tbody .col-market a:hover, .compare thead .col-group a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.compare .level-national .col-market a, .compare .level-abroad .col-market a, .compare .level-region .col-market a { font-weight: 700; }
.rank-tag { display: inline-block; min-width: 2.7rem; padding-left: 0.3em; font-weight: 400; color: var(--graphite); text-align: right; }
/* The highlight, and its key in the sentence above the table, which is the highlight itself. */
.compare td.is-best .idx-val, .best-key { padding: 0.1em 0.3em; margin: 0 -0.3em; background: var(--best);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.scroll-hint { margin: 0 0 0.5rem; font-size: 0.875rem; color: var(--graphite); }

/* ---- method ---------------------------------------------------------------------------- */

/* Paragraph numbers sit just right of the double rule, like the rank numbers in a table; the text,
   and every list, table and form between the paragraphs, lines up after them. Headings stay left. */
.paras { counter-reset: para; }
.para { position: relative; max-width: var(--measure); margin: 0 0 0.85rem; }
.paras .para { max-width: calc(var(--measure) + var(--num-col)); padding-left: var(--num-col); }
.paras .para::before { counter-increment: para; content: counter(para); position: absolute; left: 0; width: var(--num-col);
  padding-right: 0.75rem; font: 600 0.9375rem/1.6 var(--sans); font-variant-numeric: tabular-nums lining-nums; text-align: right; }
.paras > .terms, .paras > .groups, .paras .coverage > h3, .paras .coverage details, .paras > .report { margin-left: var(--num-col); }
.terms { max-width: var(--measure); margin: 0 0 1rem; }
.coverage details { max-width: var(--measure); margin-bottom: 1.25rem; }
.groups { max-width: var(--measure); margin: 0.5rem 0 1rem; }
.groups details { padding: 0.35rem 0; border-bottom: 1px solid var(--hairline); }
.groups details:first-child { border-top: 1px solid var(--hairline); }
.groups summary { font-weight: 600; }
.groups .terms { margin: 0.5rem 0 0.75rem; }
.groups dd { margin-bottom: 0.4rem; }
.tag { font-weight: 400; color: var(--graphite); }
.not-counted { color: var(--graphite); }
.plain-table { margin-top: 0.75rem; min-width: 26rem; }
.plain-table th, .plain-table td { padding: 0.4rem 0 0.4rem 1.25rem; }
.plain-table .col-market { padding-left: 0; }
.plain-table tbody .col-market { font-family: var(--serif); }

.report { display: grid; gap: 0.4rem; max-width: 34rem; }
.report label { margin-top: 0.6rem; font-weight: 600; }
.report textarea, .report input[type="text"] { width: 100%; padding: 0.5rem 0.6rem; font: inherit; color: inherit; background: var(--paper); border: 1px solid var(--ink); border-radius: 0; }
.report textarea:focus, .report input[type="text"]:focus { box-shadow: inset 0 -2px 0 var(--ink); }
.button { width: fit-content; margin-top: 0.6rem; padding: 0.55rem 1.1rem; font: 600 1rem/1.3 var(--sans); color: var(--paper); background: var(--ink); border: 1px solid var(--ink); border-radius: 0; cursor: pointer; }
.button:hover { color: var(--ink); background: var(--paper); }
.button:disabled { opacity: 0.5; cursor: default; }
.form-status { min-height: 1.5rem; margin: 0.25rem 0 0; font-weight: 600; }
.report .trap { position: absolute; left: -999rem; width: 1px; height: 1px; padding: 0; border: 0; }

/* ---- the list of schools (js/views/schools.js) ------------------------------------------- */

/* The list, with its jump bar to the right. Letters (A to Z) or ranks (U.S. News order) head the groups. */
.directory { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1.5rem; align-items: start; max-width: 50rem; }
.dir-list { min-width: 0; }
.dir-group { scroll-margin-top: 0.5rem; }
.dir-head { position: sticky; top: 0; z-index: 2; margin: 0; padding: 0.85rem 0 0.2rem; font: 700 1.25rem/1.2 var(--serif);
  background: var(--paper); border-bottom: 1px solid var(--ink); }
.dir-head-text { font-size: 1rem; }
.dir-rows { margin: 0; padding: 0; list-style: none; }
.dir-row { display: grid; column-gap: 1rem; align-items: baseline; padding: 0.5rem 0; border-bottom: 1px solid var(--hairline); }
.mode-az .dir-row { grid-template-columns: minmax(0, 1fr) 4.75rem; }
.mode-az.has-usn .dir-row { grid-template-columns: minmax(0, 1fr) 5.5rem 4.75rem; }
.mode-usnews .dir-row { grid-template-columns: 3.4rem minmax(0, 1fr) 4.75rem; }
.dir-name { font: 400 1.0625rem/1.35 var(--serif); text-decoration: none; }
a.dir-name:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.dir-rank { padding-right: 0.2rem; font: 600 0.9375rem/1.35 var(--sans); font-variant-numeric: tabular-nums lining-nums; text-align: right; }
.dir-usn, .dir-n { font-variant-numeric: tabular-nums lining-nums; text-align: center; white-space: nowrap; }
.dir-usn { font-size: 0.875rem; color: var(--graphite); }
.dir-n { font-size: 0.9375rem; }
.dir-n.is-none { color: var(--graphite); }
.dir-row.filtered-out { display: none; }
/* The header row: the labels in the small sans; a number column's label is followed by its (i), and the
   note opens under the row. */
.dir-headrow { position: relative; align-items: end; padding: 0 0 0.35rem; font: 600 0.8125rem/1.3 var(--sans); color: var(--graphite); border-bottom: 1px solid var(--ink); }
.dir-headrow > .dir-name { font: inherit; }
.dir-headrow > .dir-usn, .dir-headrow > .dir-n { font-size: inherit; white-space: normal; }
.dir-headrow .tip { position: static; }

/* The jump bar: one button per letter or rank. On a phone it is fixed to the screen's right edge. */
.jump { position: sticky; top: 1rem; display: flex; flex-direction: column; align-items: stretch; padding: 0.2rem 0;
  touch-action: none; -webkit-user-select: none; user-select: none; }
.jump-mark { display: block; min-width: 2rem; padding: 0.06rem 0.35rem; font: 600 0.75rem/1.4 var(--sans); color: var(--ink);
  text-align: center; background: none; border: 0; border-radius: 0; cursor: pointer; }
.jump-mark:disabled { color: var(--hairline); cursor: default; }
@media (hover: hover) { .jump-mark:not(:disabled):hover { background: var(--marker-soft); } }
.jump-mark.is-current { background: var(--marker); }
[data-input="keys"] .jump-mark:focus { box-shadow: inset 0 0 0 2px var(--ink); }
.is-filtering .jump { visibility: hidden; }

/* On a wide screen the Lawyers label names the employer group ("Lawyers at Chambers-ranked firms", the longest
   in use), so its column is wider and the list a little wider to keep room for the names. */
@media (min-width: 64rem) {
  .label-long { display: inline; }
  .label-short { display: none; }
  .directory { max-width: 58rem; }
  .mode-az .dir-row { grid-template-columns: minmax(0, 1fr) 14.75rem; }
  .mode-az.has-usn .dir-row { grid-template-columns: minmax(0, 1fr) 5.5rem 14.75rem; }
  .mode-usnews .dir-row { grid-template-columns: 3.4rem minmax(0, 1fr) 14.75rem; }
}

/* ---- the access-code gate (js/gate.js) -------------------------------------------------- */

/* The page stays in place behind the box, dimmed, and does not scroll until the code is entered. */
html[data-locked] { overflow: hidden; }
.gate { width: min(25rem, calc(100vw - 2rem)); max-width: none; margin: auto; padding: 1.5rem 1.6rem 1.1rem;
  color: var(--ink); background: var(--paper); border: 1px solid var(--ink); border-radius: 0; }
.gate::backdrop { background: rgb(0 0 0 / 0.55); }
.gate-form { display: grid; gap: 0.4rem; }
.gate h2 { margin: 0 0 0.2rem; font: 700 1.3125rem/1.3 var(--serif); }
.gate p { margin: 0 0 0.5rem; }
.gate label { margin-top: 0.3rem; font-weight: 600; }
.gate input { width: 100%; padding: 0.5rem 0.6rem; font: inherit; color: inherit; background: var(--paper); border: 1px solid var(--ink); border-radius: 0; }
.gate input:focus { box-shadow: inset 0 -2px 0 var(--ink); }
.gate .form-status { margin: 0; }

/* ---- narrower screens ------------------------------------------------------------------ */

@media (max-width: 64rem) {
  .ranking .col-extra { display: none; }
  .row-sub { display: block; }
}

@media (max-width: 40rem) {
  /* A narrower margin on a phone: the double rule stays, the space beside it goes to the text. */
  :root { --gutter: 1.5rem; --indent: 0.75rem; --edge: 0.9rem; --num-col: 2rem; --bar-gap: 0.4rem; }
  .sheet::after { display: none; }
  .masthead { padding-top: 0.9rem; column-gap: 1rem; }
  .site-title { font-size: 0.9375rem; }
  .masthead nav { column-gap: 1.15rem; }
  .masthead nav a { padding: 0.45rem 0; }
  .question { margin: 1.25rem 0 0.9rem; font-size: 1.3rem; line-height: 1.5; }
  .summary { font-size: 0.9375rem; }
  .controls { margin: 1.1rem 0 0.9rem; gap: 0.7rem 1.25rem; }
  .choice { min-height: 1.75rem; }
  .directory { display: block; }
  .view-list { padding-right: 1.6rem; }    /* room for the jump bar fixed to the screen's edge */
  .jump { position: fixed; z-index: 4; top: 50%; right: 0; transform: translateY(-50%); padding: 0.3rem 0;
    background: rgb(255 255 255 / 0.94); }
  .jump-mark { min-width: 1.45rem; padding: 0.02rem 0.15rem; font-size: 0.6875rem; line-height: 1.32; }
  .mode-az.has-usn .dir-row { grid-template-columns: minmax(0, 1fr) 4.75rem 4.25rem; column-gap: 0.4rem; }
  .mode-az .dir-row { grid-template-columns: minmax(0, 1fr) 4.25rem; column-gap: 0.4rem; }
  .mode-usnews .dir-row { grid-template-columns: 2.9rem minmax(0, 1fr) 4.25rem; column-gap: 0.4rem; }
  .dir-headrow { font-size: 0.6875rem; }   /* small enough for each label and its (i) to stay on one line */
  .dir-name { font-size: 1rem; }
  .ranking th, .ranking td { padding: 0.5rem 0.4rem; }
  .ranking .col-rank { width: 2rem; min-width: 2rem; max-width: 2rem; padding: 0 0.3rem 0 0; }
  .school-name { font-size: 1rem; }
  .ranking.sort-size .col-n { display: none; }
  .sub-n { display: inline; }
  .ranking .col-bar { width: 31%; min-width: 6.25rem; padding-right: 0; }
  .rank-mark, .rank-plain { min-width: 1.7rem; padding: 0.1rem 0.15rem; font-size: 0.875rem; }
  .paras .para::before { padding-right: 0.45rem; font-size: 0.8125rem; line-height: 1.75; }
  .find { width: 100%; }
  .plain-table th, .plain-table td { padding-left: 0.9rem; }
  .compare { min-width: 0; --step: 0.4rem; }
  .compare th, .compare td { padding-left: 0.3rem; }
  .compare .col-total, .compare .pair-labels { display: none; }
  .compare .col-market { max-width: 6.4rem; }   /* the longest word, Massachusetts, fits */
  .compare tbody .col-market a { font-size: 0.8125rem; hyphens: auto; }
  .compare .grp-start { padding-left: 0.25rem; }
  .compare .col-idx { padding-right: 0.25rem; font-size: 0.8125rem; vertical-align: top; }
  .compare .col-n { font-size: 0.9375rem; vertical-align: top; }
  .compare thead .col-group { max-width: 5rem; padding: 0 0.4rem 0.4rem; font-size: 0.75rem; box-shadow: inset 0 -1px 0 var(--ink); }
  .compare .rank-tag { display: block; min-width: 0; font-size: 0.75rem; }
  .narrow-only { display: block; }
  .narrow-inline { display: inline; }
  .wide-inline { display: none; }
}

@media (max-width: 22.5rem) {
  .masthead nav { column-gap: 0.75rem; font-size: 0.8125rem; }
}

@media (prefers-reduced-motion: reduce) {
  main { transition: none; }
}

@media print {
  .masthead nav, .controls, .skip, .reading, .divider { display: none; }
  .sheet { max-width: none; }
  tbody.unranked[hidden] { display: table-row-group; }
}
