:root {
  color-scheme: light;
  --ink: #14283b;
  --muted: #4b5d6f;
  --accent: #135b51;
  --accent-deep: #0d473f;
  --surface: #fff;
  --line: #d9e4e6;
  font-family: "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  color: var(--ink);
  background: #f4f8f7;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
h1, h2, h3, p { margin: 0; }
a { color: var(--accent); text-underline-offset: .2em; }
button, select, input { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #238477; outline-offset: 3px; }
.wrap { width: min(71rem, 100% - 3rem); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.site-header .wrap { min-height: 4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .5rem .8rem; }
.brand { text-decoration: none; color: var(--ink); font-weight: 750; }
.brand span {
  display: inline-grid; place-items: center; margin-right: .38rem; width: 1.85rem; height: 1.85rem;
  border-radius: .55rem; background: var(--accent); color: #fff;
}
.intro { padding: clamp(2.6rem, 7vw, 4.75rem) 0 clamp(1.8rem, 4vw, 3rem); }
.intro h1 { font-size: clamp(2.6rem, 7vw, 4.9rem); line-height: 1.11; letter-spacing: -.07em; }
.intro p:last-child { margin-top: .85rem; color: var(--muted); }
.eyebrow, .card-type { color: var(--accent); font-size: .875rem; font-weight: 700; }
.eyebrow { margin-bottom: .55rem; }
.layout { display: grid; grid-template-columns: minmax(18rem, .82fr) minmax(0, 1.18fr); gap: 1.6rem; align-items: start; }
.panel { border: 1px solid var(--line); background: var(--surface); border-radius: 1rem; }
.finder, .card { padding: clamp(1.1rem, 3vw, 1.75rem); }
h2 { font-size: 1.4rem; letter-spacing: -.035em; }
.subtle { color: var(--muted); font-size: .875rem; }
.finder .subtle { margin-bottom: 1.2rem; }
.field { display: grid; gap: .35rem; min-width: 0; margin: 0 0 .95rem; padding: 0; border: 0; }
.field label, .field legend { font-size: .9rem; font-weight: 650; }
.field legend { padding: 0; margin-bottom: .25rem; }
select, input:not([type=checkbox]) {
  display: block; width: 100%; min-width: 0; min-height: 2.75rem; border: 1px solid #a9bac0;
  border-radius: .5rem; padding: .55rem .7rem; color: var(--ink); background: #fff;
}
select {
  appearance: none; padding-right: 2rem;
  background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%234b5d6f' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right .55rem center;
}
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chips label { display: flex; align-items: center; gap: .34rem; padding: .38rem .55rem; border: 1px solid var(--line); border-radius: .45rem; cursor: pointer; }
.chips input { margin: 0; accent-color: var(--accent); }
button, .secondary { cursor: pointer; }
.primary, .secondary {
  display: inline-flex; align-items: center; justify-content: center; border-radius: .55rem;
  font-size: .9rem; font-weight: 700; text-decoration: none;
}
.primary { width: 100%; padding: .75rem 1rem; border: 1px solid var(--accent); background: var(--accent); color: #fff; }
.primary:hover { background: var(--accent-deep); }
.primary:disabled { opacity: .6; cursor: default; }
.secondary { border: 1px solid #b8cecb; color: var(--accent-deep); background: #f3f8f7; padding: .48rem .75rem; }
.secondary:hover { background: #e4f1ee; }
.results-head { display: flex; justify-content: space-between; margin-bottom: .65rem; }
.segmented { display: inline-flex; gap: .3rem; border: 1px solid var(--line); padding: .25rem; border-radius: .65rem; margin-bottom: .85rem; }
.segmented button { border: 0; border-radius: .4rem; color: var(--muted); background: transparent; padding: .4rem .75rem; font-size: .9rem; font-weight: 700; }
.segmented button[aria-pressed=true] { background: var(--accent); color: #fff; }
.empty { border: 1px dashed #b4c9c8; color: var(--muted); border-radius: .7rem; padding: 1.15rem; }
.card { margin-bottom: .8rem; min-width: 0; }
.card h3 { font-size: 1.21rem; letter-spacing: -.03em; margin: .14rem 0 .8rem; }
.card-info { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.card-info > div { min-width: 0; padding: .7rem; border-radius: .6rem; background: #f4f7f7; overflow-wrap: anywhere; }
.card-info p { margin-top: .35rem; font-size: .9rem; }
.card-info p.subtle { font-size: .8rem; }
.badges { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem; font-size: .83rem; }
.badge { padding: .1rem .37rem; border-radius: .35rem; color: #734813; background: #fff0d6; }
.badge.met { color: #075144; background: #d8efe8; }
.badge.unmet { color: #824439; background: #f9e8e5; }
.badge.intake { color: #264a61; background: #e1ecf4; }
.card-action { display: grid; gap: .55rem; margin-top: 1rem; }
.card-action > a { justify-self: start; }
summary { cursor: pointer; font-weight: 650; font-size: .9rem; }
.follow-up { border-top: 1px solid var(--line); padding-top: .8rem; margin-top: .6rem; }
.sources { border-top: 1px solid var(--line); margin-top: .8rem; padding-top: .6rem; }
.sources p { margin-top: .4rem; }
.unmatched > summary { margin-bottom: .7rem; }
.official-notices { margin-top: 2rem; }
.official-sources { margin: .55rem 0 1rem; }
.notice-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: 1rem; }
.notice-pagination span { margin-inline: .2rem; }
.notice-pagination button:disabled { opacity: .55; cursor: default; }
.notice-card { margin-bottom: .65rem; padding: 1rem; overflow-wrap: anywhere; }
.notice-card h3 { margin: .15rem 0 .3rem; font-size: 1.04rem; }
.notice-card p { margin-bottom: .28rem; }
.notice-card a { margin-top: .4rem; }
footer { padding-block: 2rem; font-size: .875rem; color: var(--muted); }
@media (max-width: 48rem) { .layout { grid-template-columns: 1fr; } }
@media (max-width: 28rem) {
  .wrap { width: calc(100% - 1.4rem); }
  .card-info { grid-template-columns: 1fr; }
}
