* { box-sizing: border-box; }
:root { color-scheme: light; --ink: #1a372f; --muted: #52675e; --line: #d4dad0; --paper: #f8f7f1; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.5 "DM Sans", "Segoe UI", sans-serif; }
.wrap { width: min(1140px, 92%); margin-inline: auto; }
a { color: inherit; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid #a34c27; outline-offset: 3px; }
.skip { position: absolute; left: .5rem; top: -5rem; padding: .5rem; background: white; z-index: 2; }
.skip:focus { top: .5rem; }
.mast { border-bottom: 1px solid var(--line); }
.mast-inner, .filter-end, .section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.mast-inner { min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-size: 1.45rem; font-weight: 700; letter-spacing: -.06em; }
.mark { width: 28px; height: 28px; border: 2px solid currentColor; display: grid; place-items: center; border-radius: 50% 50% 50% 0; transform: rotate(-15deg); }
.mark::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #b26541; }
.mast-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .35rem clamp(.65rem, 3vw, 1.8rem); }
.mast-nav a, .nav-menu summary, #clear { font-size: .88rem; text-underline-offset: 4px; }
.mast-nav a { color: var(--muted); text-decoration: none; }
.mast-nav a:hover, .mast-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }
.nav-menu { position: relative; }
.nav-menu summary { color: var(--muted); cursor: pointer; }
.nav-menu summary:hover, .nav-menu[open] summary { color: var(--ink); }
.nav-menu ul { position: absolute; z-index: 2; inset-block-start: 100%; inset-inline-end: 0; min-width: 11rem; margin: .4rem 0 0; padding: .3rem; list-style: none; background: #fffefa; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 20px #1a372f1a; }
.nav-menu a { display: block; padding: .4rem .6rem; white-space: nowrap; }
.intro { position: relative; isolation: isolate; overflow: hidden; margin: 28px 0 20px; padding: clamp(26px, 3.5vw, 44px); background: #e4eadb; border-radius: 6px; }
.intro h1, h2, .group h3 { font-family: "Hedvig Letters Serif", Georgia, serif; font-weight: 400; }
.intro h1 { font-size: clamp(2.25rem, 5.25vw, 4.2rem); letter-spacing: -.055em; line-height: 1.05; margin: 0; max-width: 88%; }
#headline-count { font-variant-numeric: tabular-nums; }
.intro p { max-width: 60%; margin: .9rem 0 0; color: #385348; }
.radar { position: absolute; z-index: -1; width: 390px; height: 390px; top: -32%; right: -12%; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 30px, #9aaa8e 31px, transparent 32px 52px); opacity: .8; }
.radar i { position: absolute; background: #ab6946; width: 10px; height: 10px; border-radius: 50%; left: 25%; top: 39%; }
.radar i:nth-child(2) { left: 43%; top: 70%; width: 7px; height: 7px; }
.radar i:nth-child(3) { left: 18%; top: 74%; }
.style-guide { max-width: 73ch; margin: 0 0 24px; }
.style-guide p { margin: .6rem 0; }
.style-guide .guide-sources { color: var(--muted); font-size: .86rem; }
.style-guide a { text-underline-offset: 3px; }
#filters { background: #fffefa; border: 1px solid var(--line); padding: 20px 24px; border-radius: 6px; }
.fields { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)) repeat(2, minmax(0, 1.25fr)); gap: 16px; }
.fields--five { grid-template-columns: minmax(0, 1.7fr) repeat(2, minmax(0, 1fr)) repeat(2, minmax(0, 1.25fr)); }
.fields label { min-width: 0; font-weight: 600; font-size: .85rem; }
.fields input, select { display: block; width: 100%; min-width: 0; height: 43px; color: var(--ink); border: 1px solid #a8b4a8; border-radius: 4px; background: white; margin-top: 5px; padding: 0 .7rem; font-size: .94rem; }
.filter-end { margin-top: 14px; }
.check { display: flex; align-items: center; gap: 7px; font-size: .9rem; }
.check input { accent-color: var(--ink); width: 16px; height: 16px; }
#clear { color: var(--ink); background: none; padding: 5px 0; border: 0; text-decoration: underline; cursor: pointer; }
#results { padding: 32px 0 60px; }
h2 { margin: 0; font-size: 2.1rem; letter-spacing: -.045em; }
#count, #updated, .meta, .place small, .admission small { color: var(--muted); font-size: .86rem; }
#updated { margin: 3px 0 20px; }
.group { margin: 16px 0 24px; }
.group h3 { font-size: 1.22rem; padding: 7px 14px; margin: 0; background: #e9ede4; border-block: 1px solid var(--line); }
.group h3::first-letter { text-transform: uppercase; }
.row { display: grid; grid-template-columns: 105px minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr) auto; gap: 14px; align-items: start; padding: 17px 14px; border-bottom: 1px solid var(--line); }
.row h4 { margin: 0; font-size: 1.05rem; line-height: 1.35; }
.clock { font-variant-numeric: tabular-nums; font-weight: 600; }
.place, .admission { font-size: .93rem; }
.row small, .offer { display: block; }
.row a { text-underline-offset: 4px; font-weight: 600; font-size: .88rem; }
@media (max-width: 1040px) {
  .fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .fields { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 95px 1.2fr 1fr; }
  .admission { grid-column: 2; }
  .radar { right: -26%; }
}
@media (max-width: 560px) {
  .intro { padding: 26px 20px; }
  .intro p { max-width: 86%; }
  .radar { opacity: .28; right: -310px; }
  #filters { padding: 15px; }
  .fields { gap: 10px; }
  .fields label:first-child { grid-column: 1 / -1; }
  .row { grid-template-columns: minmax(0,1fr) auto; gap: 6px 12px; }
  .clock, .place, .admission { grid-column: 1; }
  .row .class-info { grid-column: 1 / -1; }
  .row a { grid-column: 2; grid-row: 1; }
  .row > * { overflow-wrap: anywhere; }
  h2 { font-size: 1.75rem; }
}
