* { 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, textarea { 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%; }
.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 a { text-underline-offset: 3px; }
.style-guide h3 { margin: 1.25rem 0 .35rem; font-size: 1.1rem; }
#drop-in-preview { margin-bottom: 1.25rem; }
#drop-in-preview h2 { font-size: 1.35rem; }
#drop-in-preview-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; list-style: none; margin: .5rem 0 0; padding: 0; }
#drop-in-preview-list li { display: grid; gap: .2rem; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 4px; background: #fffefa; overflow-wrap: anywhere; }
#drop-in-preview-list time, #drop-in-preview-list span { font-size: .86rem; color: var(--muted); }
#drop-in-preview-list a { text-underline-offset: 3px; }
#filters { background: #fffefa; border: 1px solid var(--line); padding: 20px 24px; border-radius: 6px; }
.shortcuts:not([hidden]) { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 16px; }
.shortcuts button { min-height: 44px; padding: .4rem .75rem; color: var(--ink); background: #f3f5ee; border: 1px solid var(--line); border-radius: 4px; font-size: .9rem; font-weight: 600; cursor: pointer; }
.shortcuts button:hover { border-color: #526f58; }
.shortcuts button[aria-pressed="true"] { color: #fffefa; background: var(--ink); border-color: var(--ink); }
.fields { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)) repeat(2, minmax(0, 1.25fr)); gap: 16px; }
.schedule-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.main-filters { grid-template-columns: repeat(2, minmax(0, 14rem)); }
.extra-filters { margin-top: .5rem; }
.extra-filters > summary { width: fit-content; min-height: 44px; padding-block: .65rem; font-size: .9rem; font-weight: 600; cursor: pointer; }
.extra-filters > .check { margin-block-start: .75rem; }
#people-fields { display: contents; }
#people-toggle { display: none; }
.fields label { min-width: 0; font-weight: 600; font-size: .85rem; }
.fields input:not([type="checkbox"]), .fields select, .multi-trigger { 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; }
.multi-filter { position: relative; min-width: 0; }
.multi-filter summary { list-style: none; cursor: pointer; }
.multi-filter summary::-webkit-details-marker { display: none; }
.multi-label { display: block; font-size: .85rem; font-weight: 600; }
.multi-trigger { display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
.multi-trigger > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.multi-trigger::after { content: ""; flex: 0 0 6px; height: 6px; margin-top: -3px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.multi-filter[open] .multi-trigger::after { margin-top: 3px; transform: rotate(225deg); }
.multi-options { position: absolute; z-index: 1; inset: calc(100% + 4px) 0 auto; max-height: min(19rem, 50vh); overflow: auto; overscroll-behavior: contain; padding: .25rem; border: 1px solid #a8b4a8; border-radius: 4px; background: white; box-shadow: 0 8px 20px #1a372f1a; }
.multi-options label { display: flex; align-items: center; gap: .5rem; min-height: 40px; padding: .3rem .35rem; border-radius: 3px; font-size: .9rem; font-weight: 400; overflow-wrap: anywhere; cursor: pointer; }
.multi-options label:hover, .multi-options label:has(:checked) { background: #edf1e8; }
.multi-options input { flex: none; width: 17px; height: 17px; margin: 0; accent-color: var(--ink); }
.filter-end { margin-top: 14px; }
.filter-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1rem; margin-inline-start: auto; }
.check { display: flex; align-items: center; gap: 7px; font-size: .9rem; }
.check[hidden] { display: none; }
.check input { accent-color: var(--ink); width: 16px; height: 16px; }
#clear { margin-inline-start: auto; color: var(--ink); background: none; padding: 5px 0; border: 0; text-decoration: underline; cursor: pointer; }
#remember-error { margin: .5rem 0 0; color: var(--muted); font-size: .86rem; }
#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; }
.format-badge { display: inline-block; vertical-align: .1em; padding: .13em .55em; border-radius: .35em; background: #e2eade; color: #274438; font-size: .72rem; font-weight: 700; letter-spacing: .045em; white-space: nowrap; }
.clock { font-variant-numeric: tabular-nums; font-weight: 600; }
.place, .admission { font-size: .93rem; }
.row small, .offer { display: block; }
.row .level-label { margin-top: .2rem; color: var(--muted); font-size: .85rem; }
.result-actions:not([hidden]) { display: flex; flex-wrap: wrap; gap: .5rem; }
.row a { text-underline-offset: 4px; font-weight: 600; font-size: .88rem; }
.quiz-button, .quiz-secondary { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: .55rem 1rem; border: 1px solid var(--ink); border-radius: 4px; font-weight: 600; text-decoration: none; cursor: pointer; }
.quiz-button { color: #fffefa; background: var(--ink); }
.quiz-button:hover { background: #2d5244; }
.quiz-secondary { color: var(--ink); background: transparent; border-color: var(--line); }
.quiz-secondary:hover { background: #e9ede4; }
.quiz-secondary[hidden] { display: none; }
.intro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; margin-top: 1.15rem; }
.intro-dropin { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; font-weight: 600; text-underline-offset: 4px; }
.quiz-page { padding-bottom: 3rem; }
.quiz-page .intro, .quiz-panel, .quiz-shortcuts, .quiz-sources { max-width: 45rem; margin-inline: auto; }
.quiz-page .intro p { max-width: 39rem; }
.quiz-panel { padding: clamp(1rem, 4vw, 2rem); background: #fffefa; border: 1px solid var(--line); border-radius: 6px; }
.quiz-progress { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .8rem; color: var(--muted); font-size: .9rem; }
.quiz-progress progress { width: min(36%, 9rem); height: .45rem; appearance: none; border: 0; border-radius: 1rem; background: #e4eadb; }
.quiz-progress progress::-webkit-progress-bar { border-radius: inherit; background: #e4eadb; }
.quiz-progress progress::-webkit-progress-value { border-radius: inherit; background: #526f58; }
.quiz-progress progress::-moz-progress-bar { border-radius: inherit; background: #526f58; }
.quiz-panel h2 { line-height: 1.12; }
.quiz-panel fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.quiz-panel legend { padding: 0; }
.quiz-options, .quiz-matches { display: grid; gap: .55rem; margin: 1rem 0 0; padding: 0; }
.quiz-options label { display: flex; min-height: 46px; align-items: center; gap: .7rem; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 4px; background: white; cursor: pointer; }
.quiz-options label:hover, .quiz-options label:has(:checked) { border-color: #526f58; background: #edf1e8; }
.quiz-options input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.quiz-error { margin: .65rem 0 0; color: #8a3b20; }
.quiz-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.15rem; }
#quiz-next { margin-inline-start: auto; }
.quiz-matches { list-style: none; }
.quiz-matches a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .15rem .65rem; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; background: white; }
.quiz-matches li:first-child a { border-color: #92a78d; background: #e9ede4; }
.quiz-matches a:hover { border-color: #526f58; }
.quiz-matches strong { font-size: 1.125rem; }
.quiz-rank, .quiz-match { grid-column: 1 / -1; color: var(--muted); font-size: .9rem; }
.quiz-rank, .quiz-card-action { font-weight: 600; }
.quiz-card-action { grid-column: 2; grid-row: 2; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; }
.quiz-sources { margin-top: 1rem; color: var(--muted); font-size: .9rem; }
.quiz-sources summary { width: fit-content; min-height: 44px; padding-block: .65rem; cursor: pointer; }
.quiz-sources p { margin: 0 0 .6rem; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.site-footer a { display: inline-flex; align-items: center; min-height: 48px; text-underline-offset: 3px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
#cookie-settings { min-height: 48px; border: 0; padding: 0; color: inherit; background: transparent; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#statistics-consent { position: fixed; inset: auto auto max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); z-index: 5; width: min(29rem, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow: auto; padding: 1rem; border: 1px solid var(--line); border-radius: 6px; background: #fffefa; box-shadow: 0 6px 24px #1a372f26; }
#statistics-consent h2 { font-size: 1.35rem; line-height: 1.2; }
#statistics-consent p { margin: .55rem 0 .8rem; font-size: .91rem; }
.statistics-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.statistics-actions button { padding-inline: .35rem; font-size: .88rem; }
.privacy-note { margin-top: 1.75rem; }
.articles-page { max-width: 49rem; padding-block: clamp(1rem, 4vw, 2.25rem) 3rem; }
.editorial-header h1 { margin: 0; font: 400 clamp(2rem, 5vw, 3.7rem)/1.08 "Hedvig Letters Serif", Georgia, serif; letter-spacing: -.045em; text-wrap: balance; }
.editorial-header p { margin: .65rem 0 0; color: var(--muted); }
.article-breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: .9rem; }
.article-byline { font-size: .9rem; }
.article-lead { margin-block: 1.25rem; font-size: 1.08rem; }
.article-body a, .article-card a, .article-breadcrumb a { text-underline-offset: .2em; }
.article-body h2 { line-height: 1.15; }
.article-body > h2 { margin-top: 1.8rem; }
.article-body > h2 + p { margin-top: .65rem; }
.article-body .guide-sources { color: var(--muted); font-size: .9rem; }
.article-comparison { margin-block: 1.5rem; }
.article-comparison table { width: 100%; margin-top: .7rem; table-layout: fixed; border-collapse: collapse; background: #fffefa; }
.article-comparison th, .article-comparison td { padding: .62rem .55rem; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; overflow-wrap: anywhere; }
.article-comparison thead { background: #e4eadb; }
.article-comparison thead th:nth-child(1) { width: 30%; }
.article-comparison thead th:nth-child(2) { width: 23%; }
.article-comparison th a { display: inline-flex; align-items: center; min-height: 44px; }
.article-prices { margin-block: 1.3rem; }
.article-prices table { width: 100%; margin-top: .7rem; border-collapse: collapse; background: #fffefa; }
.article-prices th, .article-prices td { padding: .55rem .4rem; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.article-prices thead { background: #e4eadb; }
.article-prices small { color: var(--muted); white-space: nowrap; }
.article-prices summary { display: list-item; padding: .7rem .55rem; border: 1px solid var(--line); border-radius: 4px; font-weight: 600; cursor: pointer; }
.article-prices details + details { margin-top: .55rem; }
.article-prices details > p, .article-prices details > h3 { margin-block: .9rem .4rem; }
.article-next { margin-top: 2rem; padding: clamp(1rem, 4vw, 1.5rem); background: #e4eadb; border-radius: 6px; }
.article-next p { margin: .8rem 0 0; }
.article-next .quiz-button { margin-top: .8rem; }
.article-style-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: .5rem; padding: 0; list-style: none; }
.article-style-links a { display: flex; align-items: center; min-height: 44px; height: 100%; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 4px; background: #fffefa; font-weight: 600; }
.article-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1rem; padding: 0; margin: 1.25rem 0 0; list-style: none; }
.article-card { max-width: 31rem; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fffefa; }
.article-card img { display: block; width: 100%; height: auto; }
.article-card-copy { padding: 1rem; }
.article-card-copy h2 { font-size: 1.55rem; line-height: 1.15; }
.article-card-copy p { margin: .6rem 0 0; color: var(--muted); }
.about-page { max-width: 45rem; padding-bottom: 2.5rem; }
.about-story { max-width: 65ch; }
.contact-panel { margin-top: 1.75rem; padding: clamp(1rem, 4vw, 2rem); background: #fffefa; border: 1px solid var(--line); border-radius: 6px; }
.contact-panel > p { margin: .65rem 0 1.25rem; }
#contact-form label { display: block; margin-bottom: .3rem; font-weight: 600; }
#contact-form label span { color: var(--muted); font-size: .88rem; font-weight: 400; }
#contact-form textarea, #contact-email { display: block; width: 100%; min-height: 44px; margin-bottom: 1rem; padding: .65rem .75rem; color: var(--ink); background: white; border: 1px solid #a8b4a8; border-radius: 4px; }
#contact-form textarea { resize: vertical; }
.contact-privacy { color: var(--muted); font-size: .86rem; }
.contact-status { margin: .75rem 0 0; }
.contact-status:empty { margin: 0; }
.contact-status[data-error] { color: #8a3b20; }
#contact-form button:disabled { opacity: .65; cursor: wait; }
@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) {
  .article-comparison th, .article-comparison td { padding-inline: .4rem; font-size: .875rem; }
  .article-prices th, .article-prices td { font-size: .875rem; }
  .article-comparison thead th:nth-child(2) { width: 25%; }
  .mast-inner { flex-wrap: wrap; gap: 0 1rem; padding-top: 4px; }
  .brand { min-height: 44px; }
  .mast-nav { flex: 1 0 100%; justify-content: space-between; gap: 0 .5rem; border-top: 1px solid var(--line); }
  .mast-nav > a, .nav-menu summary, .nav-menu a { min-height: 44px; padding: 11px 6px; }
  .nav-menu ul { margin-top: 0; }
  .nav-menu:first-of-type ul { inset-inline-end: 50%; transform: translateX(50%); }
  .intro { margin: 16px 0; padding: 22px 20px; }
  .intro h1, .intro p { max-width: 100%; }
  .intro h1 { text-wrap: balance; }
  .radar { opacity: .28; right: -310px; }
  #drop-in-preview-list { grid-template-columns: 1fr; gap: .35rem; }
  #drop-in-preview-list li { gap: 0; padding: .4rem .65rem; }
  #filters { padding: 18px; }
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
  .schedule-fields > label:has(#q), .geo-fields > label:first-child { grid-column: 1 / -1; }
  .home-shortcuts { column-gap: .75rem; row-gap: 0; }
  .fields input:not([type="checkbox"]), .fields select, .multi-trigger { height: 48px; margin-top: 6px; font-size: 1rem; font-weight: 400; }
  .multi-trigger { padding-inline: .55rem; font-size: .95rem; }
  .multi-options label { min-height: 44px; }
  #people-toggle:not([hidden]) { grid-column: 1 / -1; display: flex; align-items: center; min-height: 48px; padding: 8px 12px; color: var(--ink); background: #f3f5ee; border: 1px solid var(--line); border-radius: 4px; font-weight: 600; text-align: start; cursor: pointer; }
  #people-count:not(:empty) { margin-inline-start: .35em; }
  #people-toggle::after { content: ""; width: 8px; height: 8px; margin: -4px 3px 0 auto; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
  #people-toggle[aria-expanded="true"]::after { margin-top: 4px; transform: rotate(225deg); }
  #people-fields { grid-column: 1 / -1; display: grid; gap: 16px; }
  #people-toggle:not([hidden])[aria-expanded="false"] + #people-fields { display: none; }
  .filter-end { flex-wrap: wrap; gap: 0 12px; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 6px; }
  .filter-actions { gap: 0 12px; }
  .filter-actions:has(#remember-option:not([hidden])) { flex-basis: 100%; }
  .check, #clear { min-height: 44px; }
  .check input { width: 20px; height: 20px; margin: 0; }
  .row { grid-template-columns: minmax(0,1fr) auto; gap: 6px 12px; padding: 14px 4px 18px; }
  .clock { align-self: center; }
  .row .class-info, .place, .admission { grid-column: 1 / -1; }
  .row > a { grid-column: 2; grid-row: 1; display: inline-flex; align-items: center; min-height: 44px; padding-inline: 10px; }
  .row > * { overflow-wrap: anywhere; }
  h2 { font-size: 1.75rem; }
}
@media (max-width: 360px) {
  .fields { grid-template-columns: minmax(0, 1fr); }
}

.fields.geo-fields { grid-template-columns: minmax(12rem, 24rem) minmax(6rem, 8rem) max-content; align-items: end; margin-bottom: 1rem; }
#locate { min-height: 44px; }
#geo-status { color: var(--muted); margin: -.35rem 0 1rem; }
.geo-credit { display: block; margin: 1rem 0 2rem; color: var(--muted); }
@media (max-width: 660px) {
  .fields.geo-fields { grid-template-columns: minmax(0, 1fr) minmax(6rem, 8rem); gap: 12px; }
  .geo-fields #locate { justify-self: start; }
}
