/* Law School Rankings: CSrankings.org look (values from csrankings.css / csrankings-extra.css, Oct 2026)
   with a Harvard Law Review-style masthead. Shared by index.html, faq.html and history.html. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.42857; color: #333; background: #fff; }
a { color: blue; text-decoration: none; }
a:hover, a:focus { color: #23527c; text-decoration: underline; }
p { margin: 0 0 10px; }
small { font-size: 85%; }
.text-muted { color: #777; }
abbr[title] { cursor: help; border-bottom: 1px dotted #777; text-decoration: none; }
button, select, input { font: inherit; color: inherit; }
table { border-collapse: collapse; border-spacing: 0; font-size: 16px; line-height: normal; }
td, th { padding: 0; text-align: left; vertical-align: top; }

.container { margin: 0 auto; padding: 0 15px; max-width: 1170px; }

/* ---------- masthead: Harvard Law Review print masthead (page 1 of every issue), recreated in CSS ----------
   Measured from 139 Harv. L. Rev. 1 (Nov. 2025); all sizes are proportional to the wordmark's cap height.
   Alegreya 450 is the closest Google Font to HLR's wordmark; Noto Serif 700 stands in for Century Bold. */
.lsr-mast-wrap { container-type: inline-size; display: flex; justify-content: center; padding: 22px 0 16px; }
.lsr-mast {
  --ink: #000; --paper: #fff; --fi: max(11px, 0.486em);
  font-size: clamp(15px, 5.6vw, 3rem);
  font-size: clamp(15px, calc(100cqi / 16.4), 3rem);
  display: inline-grid; grid-template-columns: minmax(0, max-content); max-width: 100%; margin: 0; color: var(--ink);
}
.lsr-issue {
  display: flex; justify-content: space-between; align-items: baseline; gap: 0.6em; margin: 0;
  font-family: 'Noto Serif', 'Century Schoolbook', 'New Century Schoolbook', Georgia, serif; font-weight: 700;
  font-size: var(--fi); line-height: 1; letter-spacing: 0; word-spacing: 0.15em; text-transform: uppercase; white-space: nowrap;
}
.lsr-issue a { color: inherit; }
.lsr-issue a:hover { text-decoration: underline; }
.lsr-mark {
  --ls: 0.170em;
  margin: calc(0.4315em - 0.112 * var(--fi)) 0 0;
  padding: 0.256em 0.855em 0.261em 0.833em;
  border: max(1.5px, 0.069em) solid currentColor;
  font-family: 'Alegreya', 'Libre Caslon Text', Georgia, 'Times New Roman', serif; font-weight: 450; font-style: normal;
  font-size: 1em; line-height: 1; letter-spacing: var(--ls); word-spacing: 0.015em; text-transform: uppercase;
  font-kerning: normal; font-variant-ligatures: none; text-align: center; white-space: nowrap;
}
.lsr-mark > a { display: inline-block; margin-right: calc(-1 * var(--ls)); color: inherit; }
.lsr-mark > a:hover { text-decoration: none; }
.lsr-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem 1rem; margin-top: 0.32em; }
.lsr-note { margin-left: auto; font-family: 'Alegreya', Georgia, serif; font-style: italic; font-size: max(12px, 0.323em); letter-spacing: 0.04em; text-align: right; }
.lsr-about {
  display: inline-flex; align-items: center; gap: 0.45em; min-height: 32px; padding: 0 0.85em 0 0.95em;
  font-family: 'Noto Serif', Georgia, serif; font-weight: 700; font-size: max(12px, 0.27em); line-height: 1;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); text-decoration: none;
  background: var(--paper); border: 1px solid currentColor; border-radius: 2px; cursor: pointer; transition: background-color .15s, color .15s;
}
.lsr-about::after { content: "\2192"; letter-spacing: 0; font-weight: 400; }
.lsr-about.back::after { content: none; }
.lsr-about.back::before { content: "\2190"; letter-spacing: 0; font-weight: 400; }
.lsr-about:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
.lsr-about:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.btn-about {
  display: inline-block; font-family: Helvetica, Arial, sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .02em;
  text-transform: none; padding: 6px 16px; border-radius: 6px; color: #337ab7 !important; background: transparent;
  border: 1px solid #337ab7; transition: all .2s ease; white-space: nowrap;
}
.btn-about:hover { background: #337ab7; color: #fff !important; text-decoration: none; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(51,122,183,.3); }

/* ---------- info panel + sticky controls (CSrankings) ---------- */
.panel-info { border: 1px solid #bce8f1; border-radius: 4px; background: #d9edf7; color: #31708f; }
.intro-panel { border-bottom: none; border-radius: 4px 4px 0 0; padding: 10px 15px 6px; }
.intro-panel p { margin: 0; }
.data-line { font-size: 13px; margin-top: 4px !important; }
.controls-sticky { position: sticky; top: 0; z-index: 100; background: #fff; }
.controls { border-top: none; border-radius: 0 0 4px 4px; padding: 8px 15px; margin-bottom: 16px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.controls label { margin: 0; font-weight: 400; }
.ctl-select { font-size: 14px; padding: 3px 6px; border: 1px solid #ccc; border-radius: 4px; background: #fff; color: #333; }
.ctl-select:hover { border-color: #337ab7; }
.year-display { font-weight: 700; color: #337ab7; background: #d9edf7; border: 1px solid #bce8f1; border-radius: 3px; padding: 1px 4px; }
.area-pill { display: inline-block; padding: 2px 7px; border-radius: 3px; font-size: 11px; font-weight: 600; color: #fff; cursor: pointer; user-select: none;
  transition: opacity .2s ease, filter .15s ease; border: none; }
.area-pill:hover { filter: brightness(1.15); }
.selection-none { opacity: .3; } .selection-partial { opacity: .65; } .selection-all { opacity: 1; }
.btn-filters { display: none; }

/* ---------- group colors (ColorBrewer Set1, as CSrankings) ---------- */
.c-general { color: #377eb8; } .bg-general { background: #377eb8; }
.c-specialty { color: #ff7f00; } .bg-specialty { background: #ff7f00; }
.c-options { color: #555; } .bg-options { background: #777; }

/* ---------- two columns: areas left, ranking right (as csrankings.org) ---------- */
.main { display: flex; gap: 30px; align-items: flex-start; }
.area-panel { flex: 0 0 41%; max-width: 41%; }
.ranking-window { flex: 1 1 auto; min-width: 0; }

.area-table { width: 100%; font-size: 16px; }
.area-table > tbody > tr:nth-of-type(odd) > td { background: #f9f9f9; }
.area-table td { padding: 3px 4px; }
.area-table td.chk { width: 34px; text-align: center; }
.area-head td { padding: 14px 0 6px; background: #fff !important; }
.area-btn { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 12px; font-weight: 600; color: #fff; cursor: pointer; user-select: none; border: none; }
.area-btn:hover { filter: brightness(1.15); }
.hovertip { cursor: pointer; color: blue; display: inline-block; width: 1.1em; font-size: 12px; user-select: none; }
.sub-list { margin: 4px 0 2px 1.1em; font-size: 14px; }
.sub-list p { font-variant: small-caps; color: #777; margin: 0 0 2px; }
.sub-list table { width: 100%; font-size: 14px; }
.sub-list td { background: transparent !important; padding: 1px 0; }
.sub-list td.chk { width: 30px; }
.sub-list .jrnl { color: #777; font-size: 12px; }
.inline-select { font-size: 13px; padding: 0 2px; border: 1px solid #ccc; border-radius: 4px; background: #fff; }
input[type=checkbox] { width: 15px; height: 15px; margin: 2px 0 0; cursor: pointer; accent-color: #337ab7; }

/* ---------- ranking table ---------- */
.ranking { width: 100%; }
.ranking > thead > tr > th { position: sticky; top: var(--controls-h, 46px); z-index: 10; background: #fff; border-bottom: 2px solid #ddd;
  padding: 8px 6px; font-weight: 700; color: #777; white-space: nowrap; }
.ranking > tbody > tr.school > td { padding: 4px 6px; }
.ranking > tbody > tr.school.alt > td { background: #f5f5f5; }
.ranking > tbody > tr.school:hover > td { background: #e3f2fd; cursor: pointer; }
.ranking .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rank-cell { width: 2.6em; color: #333; }
.ranking > tbody > tr.faculty > td { padding: 0 0 10px 0; }
.empty-note { padding: 18px 6px; color: #777; font-size: 15px; }

.faculty-table { width: 100%; font-size: 16px; margin: 2px 0 0; }
.faculty-table th { font-size: 13px; font-style: italic; font-weight: 400; color: #333; padding: 2px 6px; }
.faculty-table > tbody > tr.person > td { padding: 3px 6px; font-size: 14px; }
.faculty-table > tbody > tr.person.alt > td { background: #f5f5f5; }
.faculty-table > tbody > tr.person:hover > td { background: #e3f2fd; cursor: pointer; }
.faculty-table .indent { width: 22px; }
.areaname { font-variant: small-caps; font-size: 13px; }
.areaname span + span::before { content: ', '; color: #777; }
.ico { display: inline-block; vertical-align: middle; }
.icon-link { opacity: .75; margin-left: 4px; }
.icon-link:hover { opacity: 1; }
.person-detail > td { padding: 4px 6px 12px 28px !important; background: #fff; }
.chart { display: block; margin: 2px 0 6px; }
/* per-author bars: where a faculty member publishes */
.bars { max-width: 520px; margin: 2px 0 10px; font-size: 13px; }
.bars-title { font-size: 12px; color: #777; margin-bottom: 4px; font-variant: small-caps; }
.bar-row { display: grid; grid-template-columns: minmax(110px, 13.5em) 1fr 2.2em; align-items: center; gap: 8px; padding: 1px 0; }
.bar-label { color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 12px; }
.bar { display: block; height: 12px; min-width: 3px; border-radius: 0 4px 4px 0; }
.bar-value { color: #333; text-align: right; font-variant-numeric: tabular-nums; }
.bar-row:hover .bar { filter: brightness(1.12); }
.detail-note { font-size: 12px; color: #777; margin: 0 0 4px; }
.paper-list li.not-counted, .paper-list li.not-counted a { color: #888; }
.paper-list { margin: 4px 0 0; padding: 0 0 0 1.2em; font-size: 14px; line-height: 1.35; max-width: 640px; }
.paper-list li { margin: 0 0 4px; }
.paper-list .meta { color: #777; }
.loading { color: #777; font-style: italic; font-size: 13px; }

/* ---------- footer ---------- */
.page-footer { margin-top: 2em; padding: 1em 0 2em; border-top: 1px solid #ddd; text-align: center; color: #555; font-size: 13px; }
.page-footer p { margin-bottom: .5em; }

/* ---------- phones: filters move into a drawer (CSrankings just hides them) ---------- */
.drawer-backdrop { display: none; }
@media (max-width: 767px) {
  .container { padding: 0 10px; }
  .lsr-mast-wrap { padding: 12px 0 10px; }
  .controls { padding: 6px 10px; gap: 6px 10px; }
  .ctl-pills, #summary { display: none !important; }
  .btn-filters { display: inline-block; padding: 4px 12px; border-radius: 6px; border: 1px solid #337ab7; background: #337ab7; color: #fff; font-weight: 600; font-size: 13px; }
  .main { display: block; }
  .area-panel { position: fixed; inset: 0 auto 0 0; width: min(380px, 92vw); max-width: none; z-index: 300; background: #fff;
    overflow-y: auto; padding: 10px 12px 80px; box-shadow: 2px 0 12px rgba(0,0,0,.2); transform: translateX(-105%); transition: transform .25s ease; }
  body.filters-open .area-panel { transform: none; }
  body.filters-open { overflow: hidden; }
  body.filters-open .drawer-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 250; }
  .drawer-head { display: flex !important; }
  .drawer-done { display: block !important; }
  .ranking > thead > tr > th { padding: 6px 4px; font-size: 14px; }
  .ranking > tbody > tr.school > td { padding: 6px 4px; font-size: 15px; }
  .person-detail > td { padding-left: 10px !important; }
  .bar-row { grid-template-columns: minmax(96px, 42%) 1fr 2em; }
  .bar-label { white-space: normal; line-height: 1.15; }
}
.drawer-head { display: none; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.drawer-done { display: none; position: sticky; bottom: 0; margin-top: 12px; width: 100%; padding: 9px; border-radius: 6px; border: none;
  background: #337ab7; color: #fff; font-weight: 600; }

/* ---------- about / history pages ---------- */
.prose { max-width: 820px; margin: 0 auto; font-size: 15px; }
.prose h2 { font-size: 20px; font-weight: 600; margin: 26px 0 8px; }
.prose ul { padding-left: 1.3em; }
.prose table { font-size: 13px; width: 100%; }
.prose th, .prose td { padding: 3px 8px; border-bottom: 1px solid #eee; }
.prose tbody tr:nth-of-type(odd) td { background: #f9f9f9; }
.up { color: #2e7d32; } .down { color: #c62828; }
