.site-nav{display:flex;gap:22px;align-items:center}.site-nav a{color:var(--navy);text-decoration:none;font-size:.9rem;padding:12px 0}.site-nav a[aria-current=page]{font-weight:750;border-bottom:2px solid var(--cyan)}
@media(max-width:680px){.site-nav{gap:14px}.site-nav a{font-size:.78rem}}
@media(max-width:360px){.site-header{flex-wrap:wrap;gap:10px}.site-nav{width:100%;justify-content:flex-start}}
:root {
  color-scheme: light;
  --ink: #142236;
  --muted: #627186;
  --line: #dce5ed;
  --panel: #ffffff;
  --canvas: #f4f8fb;
  --navy: #123b63;
  --blue: #1773b6;
  --cyan: #22a6a1;
  --verified: #157a67;
  --candidate: #8a641a;
  --disputed: #a44432;
  --withdrawn: #6e7180;
  --shadow: 0 18px 50px rgba(25, 56, 86, .09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--canvas);
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 82% 8%, rgba(34,166,161,.10), transparent 27rem), var(--canvas); }
button, select { font: inherit; }
button { cursor: pointer; }
.skip-link { position: fixed; z-index: 20; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: .5rem; }
.skip-link:focus { top: 1rem; }

.site-header { height: 76px; display: flex; align-items: center; justify-content: space-between; max-width: 1440px; margin: 0 auto; padding: 0 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(145deg, var(--navy), var(--blue)); color: #fff; font-weight: 800; letter-spacing: -.04em; box-shadow: 0 8px 20px rgba(18,59,99,.24); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.05rem; letter-spacing: -.02em; }
.brand small { color: var(--muted); margin-top: 2px; }
.header-note { color: var(--muted); font-size: .9rem; }

main { max-width: 1440px; margin: 0 auto; padding: 20px 32px 72px; }
.hero { min-height: 270px; display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 48px; align-items: center; padding: 52px 56px; border-radius: 28px; background: linear-gradient(125deg, #0e3357 0%, #155680 56%, #1a7b82 125%); color: #fff; box-shadow: var(--shadow); overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; width: 330px; height: 330px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; right: -100px; top: -160px; box-shadow: 0 0 0 55px rgba(255,255,255,.025), 0 0 0 110px rgba(255,255,255,.018); }
.hero-copy { position: relative; z-index: 1; max-width: 760px; }
.eyebrow { margin: 0 0 9px; font-size: .72rem; letter-spacing: .16em; font-weight: 750; opacity: .74; }
h1 { margin: 0; font-size: clamp(2.1rem, 4vw, 3.7rem); line-height: 1.08; letter-spacing: -.045em; }
.hero-copy > p:last-child { margin: 20px 0 0; max-width: 680px; line-height: 1.8; color: rgba(255,255,255,.83); }
.summary { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; position: relative; z-index: 1; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.04); backdrop-filter: blur(12px); border-radius: 20px; overflow: hidden; }
.summary div { padding: 24px 18px; text-align: center; border-right: 1px solid rgba(255,255,255,.15); }
.summary div:last-child { border: 0; }
.summary dt { font-size: .75rem; color: #fff; }
.summary dd { margin: 8px 0 0; font-weight: 750; font-size: 1.05rem; }

.directory-shell { margin-top: 28px; display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 24px; align-items: start; }
.filters, .results-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 9px 30px rgba(30,63,94,.055); }
.filters { padding: 22px; position: sticky; top: 16px; display: grid; gap: 18px; }
.filter-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.filter-heading button { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--blue); padding: 0 8px; font-size: .85rem; }
.filters label { display: grid; gap: 8px; color: var(--muted); font-size: .8rem; font-weight: 650; }
.filters select { width: 100%; height: 44px; border: 1px solid var(--line); background: #f9fbfd; color: var(--ink); border-radius: 10px; padding: 0 34px 0 12px; }
.filters select:focus, button:focus-visible { outline: 3px solid rgba(23,115,182,.2); outline-offset: 2px; }
.results-panel { min-height: 520px; padding: 26px; }
.results-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; }
.results-toolbar h2 { margin: 0; font-size: 1.65rem; letter-spacing: -.025em; }
.results-toolbar #page-meta { color: var(--muted); font-size: .88rem; margin: 0; }
.state-panel { min-height: 220px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; color: var(--muted); text-align: center; border: 1px dashed var(--line); border-radius: 16px; }
.state-panel[hidden] { display: none; }
.state-panel strong { color: var(--ink); font-size: 1.05rem; }
.state-panel button { min-height: 44px; margin-top: 8px; border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 9px; padding: .62rem .9rem; }
.state-error { background: #fff8f5; border-color: #efd4ca; }
.spinner { width: 24px; height: 24px; border: 3px solid #d8e6ef; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; border-color: var(--blue); } }

.directory-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.directory-card { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: linear-gradient(180deg, #fff, #fcfdfe); min-height: 210px; display: flex; flex-direction: column; gap: 16px; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.directory-card:hover { border-color: #b9cfde; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(33,72,105,.08); }
.card-top { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; }
.card-id { min-width: 0; }
.card-id h3 { margin: 0; font-size: 1.15rem; line-height: 1.35; letter-spacing: -.015em; overflow-wrap: anywhere; }
.card-id p { margin: 7px 0 0; color: var(--muted); font-size: .82rem; }
.status { flex: 0 0 auto; border-radius: 999px; padding: .34rem .6rem; font-size: .72rem; font-weight: 750; border: 1px solid currentColor; background: #fff; }
.status-verified { color: var(--verified); }
.status-candidate, .status-not_evaluated { color: var(--candidate); }
.status-disputed, .status-rejected { color: var(--disputed); }
.status-withdrawn, .status-expired, .status-historical { color: var(--withdrawn); }
.status-future { color: #685724; }
.endpoint { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .81rem; color: #2f617f; overflow-wrap: anywhere; }
.endpoint-muted { color: var(--muted); font-family: inherit; }
.card-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.meta-chip { border-radius: 7px; padding: .32rem .5rem; background: #eef5f9; color: #476277; font-size: .72rem; }
.relations { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; }
.relations summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--navy); font-size: .82rem; font-weight: 700; }
.relations ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: .8rem; line-height: 1.6; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 14px; padding-top: 26px; }
.pagination button { min-height: 44px; border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 9px; padding: .58rem .9rem; }
.pagination button:disabled { opacity: .42; cursor: not-allowed; }
.pagination span { color: var(--muted); font-size: .82rem; min-width: 110px; text-align: center; }
footer { max-width: 1440px; margin: 0 auto; padding: 0 32px 42px; color: var(--muted); font-size: .78rem; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; gap: 30px; }
  .summary { max-width: 620px; }
  .directory-shell { grid-template-columns: 230px minmax(0, 1fr); }
  .directory-list { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .site-header { height: 66px; padding: 0 18px; }
  .header-note { display: none; }
  main { padding: 8px 14px 48px; }
  .hero { min-height: auto; gap: 18px; padding: 22px 18px; border-radius: 20px; }
  h1 { font-size: 1.85rem; }
  .hero-copy > p:last-child { margin-top: 12px; font-size: .86rem; line-height: 1.55; }
  .summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .summary div { padding: 10px 6px; text-align: center; }
  .summary dt { font-size: .68rem; }
  .summary dd { margin-top: 4px; font-size: .88rem; }
  .directory-shell { grid-template-columns: 1fr; margin-top: 16px; }
  .filters { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px; gap: 12px; }
  .filter-heading { grid-column: 1 / -1; }
  .results-panel { padding: 18px 14px; border-radius: 16px; }
  .results-toolbar { align-items: flex-start; }
  .directory-card { min-height: 0; padding: 17px; }
  footer { padding: 0 18px 28px; }
}
@media (max-width: 430px) {
  .results-toolbar { display: block; }
  .results-toolbar #page-meta { margin-top: 8px; }
}
@media (max-width: 359px) {
  .filters { grid-template-columns: 1fr; }
}
