@font-face{font-family:Instrument Serif;src:url(assets/instrument-serif.woff2) format("woff2");font-style:normal;font-display:swap}
@font-face{font-family:Instrument Serif;src:url(assets/instrument-serif-italic.woff2) format("woff2");font-style:italic;font-display:swap}
@font-face{font-family:Public Sans;src:url(assets/public-sans.woff2) format("woff2");font-weight:400 700;font-display:swap}

/* Colors are taken from law.wm.edu's rendered styles. */
:root {
  --green:#004e38;         /* top bar, hero, headings */
  --green-dark:#183028;    /* top bar and card gradients */
  --footer-top:#07231a;
  --footer-bottom:#0e4633;
  --mint:#cfddd9;          /* light text on green */
  --sage:#a0bcb3;
  --gold:#b9975b;
  --gold-text:#846838;     /* gold links on light backgrounds */
  --gold-button:#866f45;
  --sand:#f1eade;          /* "Explore Our Programs" section */
  --linen:#f8f5ef;
  --white:#ffffff;
  --ink:#212220;           /* body text */
  --silver:#d0d3d4;
  --muted:#565858;
  --sans:"Public Sans", sans-serif; --serif:"Instrument Serif", Georgia, serif;
  color:var(--ink); background:var(--white); font-family:var(--sans); font-size:16px;
}
*, *::before, *::after { box-sizing:border-box; }
body, p, h1, h2 { margin:0; }
a { color:inherit; }
button, input, select { font:inherit; }
button, summary, select { cursor:pointer; }
button, a, input, select, summary { -webkit-tap-highlight-color:transparent; }
[hidden] { display:none !important; }
body { display:flex; flex-direction:column; min-height:100vh; }
main { flex:1; }
:focus-visible { outline:2px solid var(--gold); outline-offset:4px; }
html { scroll-behavior:smooth; }
[id] { scroll-margin-top:1.5rem; }
.shell { width:min(1080px, calc(100% - 96px)); margin-inline:auto; }
.skip, .sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.skip:focus { z-index:2; width:auto; height:auto; padding:1rem; clip-path:none; background:var(--white); }

.masthead { color:var(--white); background:linear-gradient(270deg, rgba(24,48,40,0) 0%, var(--green-dark) 100%), var(--green); border-bottom:1px solid rgba(255,255,255,.1); }
.masthead-inner, .masthead nav, .brand { display:flex; align-items:center; }
.masthead-inner { min-height:74px; justify-content:space-between; gap:1.5rem; }
.brand { gap:.8rem; text-decoration:none; }
.brand-mark { display:block; width:44px; height:44px; flex:none; }
.brand-name { font-family:var(--serif); font-size:1.35rem; line-height:1.04; }
.brand-name b { display:block; margin-top:.25rem; font:600 .61rem var(--sans); letter-spacing:.17em; text-transform:uppercase; color:var(--gold); }
.masthead nav { gap:1.8rem; font-size:.86rem; }
.masthead nav a { text-decoration:none; color:var(--white); }
.masthead nav a:hover, .masthead nav a[aria-current] { text-decoration:underline; text-decoration-color:var(--gold); text-underline-offset:.35rem; }

.hero { color:var(--white); background:linear-gradient(227deg, var(--green) 0%, var(--green-dark) 100%); }
.hero-inner { display:grid; grid-template-columns:max-content minmax(0, 27rem); justify-content:center; gap:clamp(2.5rem,4.5vw,4.25rem); align-items:center; padding-block:clamp(1.75rem,2.6vw,2.4rem); }
h1, h2 { font-family:var(--serif); font-weight:400; }
h1 { font-size:clamp(3.2rem,5.6vw,5.4rem); line-height:1.02; letter-spacing:0; }
h1 em { display:block; margin-top:.08em; color:var(--gold); }
.hero-inner picture { display:block; min-width:0; }
.hero-photo { display:block; width:100%; height:auto; aspect-ratio:1400/773; object-fit:cover; border:1px solid var(--gold); }

.ranking-section { background:var(--linen); border-bottom:1px solid var(--sand); }
.ranking-inner { display:flex; flex-direction:column; align-items:center; padding-block:2.8rem 2.6rem; }
.ranking-title { margin-bottom:1.3rem; color:var(--green); font-size:clamp(1.7rem,2.6vw,2.2rem); line-height:1.15; text-align:center; }
#ranking-message { color:var(--muted); font-size:.88rem; }
.ranking-list { width:min(100%, 38rem); margin:0; padding:0; list-style:none; }
.ranking-row { display:grid; grid-template-columns:2.4rem minmax(0, 1fr) 3rem; align-items:center; gap:.45rem; min-height:2.6rem; padding:.45rem .4rem; border-bottom:1px solid var(--silver); font-size:.92rem; line-height:1.35; }
.ranking-position { color:var(--gold-text); font-variant-numeric:tabular-nums; }
.ranking-name { font-weight:600; text-decoration:none; }
.ranking-name:hover { color:var(--green); text-decoration:underline; text-underline-offset:.18em; }
.ranking-count { text-align:right; font-weight:700; color:var(--green); font-variant-numeric:tabular-nums; }
.ranking-toggle { margin-top:1.3rem; padding:.55rem .9rem; background:var(--gold-button); color:var(--white); border:0; border-radius:2px; font-size:.84rem; font-weight:700; }
.ranking-toggle:hover { background:var(--gold-text); }
.ranking-toggle::after { content:""; display:inline-block; width:.42rem; height:.42rem; margin:0 .06rem .16rem .6rem; border-right:1.5px solid; border-bottom:1.5px solid; transform:rotate(45deg); }
.ranking-toggle[aria-expanded="true"]::after { transform:rotate(225deg); margin-bottom:-.06rem; }

.directory { padding-block:3.3rem 4rem; }
.section-head { display:flex; align-items:end; justify-content:space-between; gap:1rem; margin-bottom:1.45rem; }
h2 { color:var(--green); font-size:clamp(2.65rem,4.7vw,4.4rem); line-height:1; letter-spacing:-.01em; }
.freshness { align-self:end; color:var(--muted); font-size:.83rem; line-height:1.4; }
.filters { scroll-margin-top:.75rem; display:grid; grid-template-columns:1.6fr repeat(4,minmax(0,1fr)); gap:.95rem; background:var(--linen); border:1px solid var(--sand); padding:1.08rem; border-radius:4px; }
.filters label { display:grid; gap:.48rem; font-size:.83rem; font-weight:700; min-width:0; }
select, input[type=search] { min-width:0; height:43px; width:100%; color:var(--ink); background:var(--white); border:1px solid var(--silver); border-radius:3px; font-size:.88rem; font-weight:400; }
select { appearance:none; padding:0 1.9rem 0 .65rem; text-overflow:ellipsis; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'%3E%3Cpath d='m3 3 4 4 4-4' fill='none' stroke='%23004e38' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E"); background-position:right .65rem center; background-repeat:no-repeat; }
input[type=search] { padding:0 .7rem; }
input[type=search]::placeholder { color:var(--muted); opacity:1; }
.search-control { position:relative; }
.search-control svg { position:absolute; top:12px; left:10px; color:var(--green); pointer-events:none; }
.search-control input { padding-left:2.1rem; }
.results-toolbar, .results-toolbar > div, .results-toolbar label { display:flex; align-items:center; gap:.7rem; }
.results-toolbar { justify-content:space-between; min-height:62px; }
.results-toolbar p { font-size:.88rem; font-weight:600; }
.results-toolbar label { white-space:nowrap; font-size:.8rem; color:var(--muted); }
.results-toolbar select { width:auto; height:34px; font-size:.81rem; }
.link-button { padding:0; border:0; background:none; color:var(--gold-text); font-weight:600; text-decoration:underline; text-underline-offset:.18em; }
.link-button:hover { color:var(--green); }
#reset { font-size:.8rem; }
.table-frame { overflow:hidden; border:1px solid var(--silver); border-radius:4px; background:var(--white); }
table { width:100%; border-collapse:collapse; text-align:left; }
thead { background:var(--green); }
th { color:var(--white); font-size:.78rem; font-weight:700; letter-spacing:.029em; padding:.78rem .9rem; }
td { padding:.95rem .9rem; border-top:1px solid var(--silver); vertical-align:middle; font-size:.85rem; line-height:1.45; }
tr:hover td { background:var(--linen); }
th:first-child, td:first-child { padding-left:1.15rem; }
.person-name { display:block; font-weight:700; }
.person-detail { color:var(--muted); font-size:.8rem; }
.practice-tags { display:flex; flex-wrap:wrap; gap:.25rem; max-width:24rem; }
.practice-tag { padding:.18rem .43rem; background:var(--linen); border:1px solid var(--sand); border-radius:3px; color:var(--green); font-size:.74rem; line-height:1.3; }
.person-link { color:var(--green); text-decoration:none; text-underline-offset:.18em; }
tr.linked { cursor:pointer; }
tr.linked:hover .person-link, .person-link:focus-visible { text-decoration:underline; }
.directory-message { padding:2rem 1rem; text-align:center; color:var(--muted); line-height:1.5; }
.pagination { display:flex; align-items:center; justify-content:center; gap:.75rem; margin-top:1.3rem; font-size:.86rem; }
.pagination button { background:var(--white); color:var(--ink); padding:.45rem .7rem; border:1px solid var(--silver); border-radius:3px; }
.pagination button:disabled { opacity:.5; cursor:default; }

.about { max-width:44rem; padding-block:3.5rem 4.5rem; }
.about h1 { color:var(--green); font-size:clamp(2.8rem,5vw,4.2rem); margin-bottom:1.6rem; }
.about-copy { font-size:1rem; line-height:1.7; }
.about-copy p { margin-bottom:1rem; }
.about-lede { font-size:1.12rem; }
.about-copy h2 { margin:2rem 0 .7rem; font-size:clamp(1.7rem,2.6vw,2.1rem); line-height:1.1; }
.about-fineprint { margin-top:2.6rem; padding-top:1.4rem; border-top:1px solid #e2e0da; color:var(--muted); font-size:.86rem; line-height:1.6; }
.about-fineprint p { margin-bottom:.6rem; }
.about-fineprint .photo-credit { font-size:.8rem; }
.about-copy a { color:var(--gold-text); text-underline-offset:.18em; }
.about-copy a:hover { color:var(--green); }

footer { background:linear-gradient(var(--footer-top) 0%, var(--footer-bottom) 100%); color:var(--mint); font-size:.8rem; }
.contact a { color:inherit; text-underline-offset:.18em; }
.contact { padding-block:1.4rem; color:#f4f1ea; font-size:.84rem; text-align:center; }

@media(max-width:970px) {
  .shell { width:calc(100% - 56px); }
  .filters { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .search-label { grid-column:1/-1; }
  .hero-inner { grid-template-columns:max-content minmax(0, 21rem); }
}
@media(max-width:667px) {
  .shell { width:calc(100% - 34px); }
  .masthead-inner { min-height:67px; gap:.5rem; }
  .masthead nav { gap:.9rem; font-size:.75rem; }
  .brand-mark { width:38px; height:38px; }
  .brand { gap:.5rem; }
  .brand-name { font-size:1.12rem; white-space:nowrap; }
  .brand-name b { font-size:.49rem; }
  .hero-inner { grid-template-columns:1fr; gap:1.4rem; padding-block:1.8rem 1.6rem; }
  h1 { font-size:clamp(3.4rem,14vw,5rem); }
  .ranking-inner { padding-block:2.1rem 1.85rem; }
  .directory { padding-block:2.5rem 3rem; }
  .section-head { align-items:start; flex-direction:column; gap:.55rem; }
  .freshness { align-self:start; }
  .filters { grid-template-columns:repeat(2,minmax(0,1fr)); padding:.75rem; gap:.75rem; }
  .results-toolbar { flex-wrap:wrap; gap:.5rem 1rem; padding-block:.75rem; }
  .results-toolbar > div { flex:1 1 100%; justify-content:space-between; }
  .results-toolbar p { white-space:nowrap; }
  select, input[type=search] { font-size:1rem; }
  table, tbody { display:block; }
  thead { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  tr { display:grid; grid-template-columns:1fr auto; padding:.85rem; gap:.32rem .55rem; border-top:1px solid var(--silver); }
  tr:first-child { border-top:0; }
  td, td:first-child { border:0; padding:0; }
  td:nth-child(1), td:nth-child(2), td:nth-child(4) { grid-column:1/-1; }
  td:nth-child(4) { grid-row:4; }
}
@media(max-width:375px) {
  .brand-name b { display:none; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
