:root {
  color-scheme: light;
  --blue: #4099ca;
  --link: #2477a8;
  --heading: #3287bb;
  --ink: #30343b;
  --muted: #676e77;
  --line: #e7e8ea;
  --shadow: 0 3px 6px #00000012;
  font: 16px/1.5 "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--ink);
  background: #f5f5f5;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #176c9e; outline-offset: 3px; }
h1, h2, p, figure { margin: 0; }
[hidden] { display: none !important; }
.wrap { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }
.skip { position: absolute; z-index: 2; left: 16px; top: -60px; background: white; padding: 8px; }
.skip:focus { top: 4px; }
header { background: white; }
.utility { background: #eef0f3; color: var(--muted); font-size: 13px; }
.utility-inner { min-height: 30px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.utility a:hover { color: var(--link); text-decoration: underline; }
.masthead { min-height: 130px; display: flex; align-items: center; gap: clamp(28px, 6vw, 88px); }
.masthead h1 { font-size: clamp(24px, 2.2vw, 31px); color: #222831; font-weight: 750; line-height: 1.2; white-space: nowrap; }
.masthead h1 a { display: flex; gap: 9px; align-items: center; }
.masthead h1 img { flex: none; }
.search { display: flex; min-width: 0; flex: 1; max-width: 531px; border: 1px solid #d7dce2; border-radius: 3px; }
.search:focus-within { border-color: var(--blue); }
.search input { background: white url('./assets/icons/search.svg') no-repeat 11px center / 14px; color: var(--ink); flex: 1; width: 100%; min-width: 0; height: 36px; padding: 0 9px 0 30px; border: 0; border-radius: 3px 0 0 3px; font-size: 14px; }
.search input::placeholder { color: #737d89; }
.search input:focus-visible { outline-offset: -2px; }
.search button { border: 0; background: #318fc1; color: white; white-space: nowrap; padding: 0 20px; font-weight: 650; text-shadow: 0 1px 2px #174f71; }
.search button + button { background: #287eaf; border-radius: 0 2px 2px 0; }
.search button:hover { background: #17638f; }
nav { background: var(--blue); }
.nav-inner { display: flex; }
.nav-inner a { display: grid; place-items: center; min-width: 100px; min-height: 50px; padding: 0 15px; white-space: nowrap; font-weight: 650; color: #fff; text-shadow: 0 1px 2px #185476; }
.nav-inner a[aria-current] { background: #54aadd; }
.nav-inner a:hover { background: #227baa; }
.nav-inner a:focus-visible { outline-offset: -4px; outline-color: white; }
main { padding-block: 20px 34px; }
.overview { display: grid; grid-template-columns: minmax(0, 440fr) minmax(0, 740fr); gap: 20px; }
.left-column, .right-column { display: grid; grid-template-rows: auto 1fr; min-width: 0; align-content: start; }
.right-column { gap: 20px; }
.panel { background: white; box-shadow: var(--shadow); }
.feature img { display: block; width: 100%; height: auto; aspect-ratio: 11 / 7; object-fit: cover; }
.feature figcaption { min-height: 38px; text-align: center; padding: 4px 10px; font-size: 20px; font-weight: 650; }
.panel-heading { min-height: 60px; display: flex; align-items: center; justify-content: space-between; padding-inline: 20px; gap: 14px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { color: var(--heading); font-size: 22px; font-weight: 670; }
.panel-heading a, .text-button { color: var(--link); font-size: 13px; white-space: nowrap; }
.panel-heading a:hover, .text-button:hover { text-decoration: underline; }
.text-button { border: 0; background: transparent; padding: 8px 0; }
.tabs { display: flex; align-items: center; gap: 36px; padding-inline: 20px; }
.tabs button { min-height: 40px; padding: 0 0 2px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; }
.tabs button:hover, .tabs button[aria-pressed="true"] { color: var(--link); }
.tabs button[aria-pressed="true"] { border-bottom-color: var(--blue); }
.entries { list-style: none; margin: 0; padding: 13px 20px; }
.entries li { display: flex; gap: 10px; align-items: baseline; min-height: 32px; font-size: 14px; padding-block: 5px; }
.entries li::before { content: ""; flex: none; align-self: center; width: 4px; height: 4px; background: currentColor; }
.entries button { border: 0; background: none; color: inherit; padding: 0; text-align: left; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.entries button:hover { color: var(--link); text-decoration: underline; }
.entries .meta { color: var(--muted); flex: none; font-size: 13px; }
.entries .empty { color: var(--muted); }
.entries .empty::before { display: none; }
.notices .entries { padding-block: 17px; }
.news { min-height: 319px; }
.quick-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.quick-link { border: 0; color: inherit; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 12px; min-height: 126px; font-size: 20px; font-weight: 650; }
.quick-link:hover { color: var(--link); background: #f3faff; }
.icon { width: 49px; height: 49px; flex: none; background: var(--blue); mask: var(--icon) center / contain no-repeat; }
.icon-user { --icon: url('./assets/icons/person-vcard-fill.svg'); }
.icon-buildings { --icon: url('./assets/icons/buildings-fill.svg'); }
.icon-expert { --icon: url('./assets/icons/mortarboard-fill.svg'); }
.section-block { margin-top: 20px; scroll-margin-top: 14px; }
.section-banner { background: #217eb0; color: white; min-height: 58px; padding: 10px 20px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.section-banner h2 { font-size: 22px; }
.section-banner a { font-size: 13px; }
.section-banner a:hover { text-decoration: underline; }
.empty-state { color: var(--muted); text-align: center; padding: 27px 16px; font-size: 14px; }
.support-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
footer { border-top: 1px solid var(--line); background: #eef0f3; color: var(--muted); text-align: center; font-size: 13px; padding: 22px 16px; }
#search-results { min-height: 200px; }
.summary { padding: 14px 20px 0; color: var(--muted); overflow-wrap: anywhere; }
dialog { width: min(620px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0; color: var(--ink); box-shadow: 0 12px 40px #0004; }
dialog::backdrop { background: #101c2c77; }
#detail-body > p { padding: 18px 20px 0; }
#detail-body > p:last-child { padding-bottom: 20px; }
#detail-body > a { display: inline-block; margin: 14px 20px 20px; color: var(--link); text-decoration: underline; }

@media (max-width: 950px) {
  .masthead { gap: 25px; }
  .search button { padding-inline: 12px; }
  .nav-inner a { min-width: 0; flex: 1; }
  .quick-link { gap: 8px; font-size: 16px; }
  .icon { width: 36px; height: 36px; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 28px); }
  .utility-inner { font-size: 12px; min-height: 32px; }
  .masthead { flex-direction: column; align-items: stretch; justify-content: center; gap: 13px; min-height: 115px; padding-block: 12px; }
  .masthead h1 { font-size: clamp(19px, 5.5vw, 28px); }
  .masthead h1 img { width: 36px; height: 36px; }
  .search { max-width: none; flex: none; }
  .nav-inner { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nav-inner a { font-size: 14px; min-height: 42px; padding: 0 5px; }
  .overview, .support-grid { grid-template-columns: 1fr; gap: 14px; }
  .right-column, .quick-links { gap: 10px; }
  .support-grid .section-block + .section-block { margin-top: 0; }
  .feature figcaption { font-size: 18px; }
  .panel-heading { padding-inline: 15px; min-height: 48px; }
  .panel-heading h2, .section-banner h2 { font-size: 19px; }
  .entries, .tabs { padding-inline: 15px; }
  .quick-link { flex-direction: column; min-height: 91px; text-align: center; padding: 8px 4px; font-size: 14px; }
}
