:root {
  color-scheme: light;
  --ink: #142b40;
  --muted: #4e6067;
  --paper: #f5f3ed;
  --accent: #dbef88;
  --line: #c7cec6;
  --sans: "Inter", "Pretendard", "Noto Sans KR", "Noto Sans SC", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible, #directory:focus-visible { outline: 3px solid #187e80; outline-offset: 4px; }
.wrap { width: min(1168px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; top: -8rem; left: 1rem; color: var(--ink); background: white; padding: .7rem 1rem; z-index: 3; }
.skip:focus { top: .5rem; }
header { background: #fffdfa; border-bottom: 1px solid var(--line); }
.nav { min-height: 77px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .7rem 1.5rem; padding-block: .7rem; }
.wordmark { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-size: clamp(.89rem, 2vw, 1.11rem); letter-spacing: -.05em; font-weight: 780; }
.wordmark svg { flex: none; }
.wordmark small { display: block; margin-top: .15rem; font-size: .62rem; font-weight: 520; letter-spacing: .025em; color: var(--muted); }
nav { display: flex; gap: 1.2rem; align-items: center; }
nav a { text-decoration: none; font-size: .88rem; font-weight: 640; }
nav a:hover, .wordmark:hover, .links a:hover, footer a:hover { text-decoration: underline; }
nav .lang { border: 1px solid #a8b7ad; border-radius: 5px; padding: .45rem .72rem; }
.crumb { display: flex; gap: .7rem; align-items: center; padding-block: 1.3rem; font-size: .78rem; color: var(--muted); }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.crumb > span { color: #87998d; }
.spread { display: grid; grid-template-columns: 1fr 46%; overflow: hidden; background: var(--ink); color: #fff; }
.spread-copy { align-self: center; padding: clamp(2rem, 4vw, 4.4rem); border-left: 5px solid var(--accent); }
h1,h2,h3,p,figure { margin: 0; }
h1 { margin-bottom: 1.1rem; font-size: clamp(2.7rem,5.3vw,4.7rem); line-height: 1.04; letter-spacing: -.073em; font-weight: 780; }
.spread-copy p { max-width: 25em; color: #dce5e5; font-size: clamp(.96rem,1.55vw,1.12rem); line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; }
figure { position: relative; min-height: 255px; }
figure img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 50% 51%; }
figcaption { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; align-items: end; gap: .8rem; color: #fff; background: linear-gradient(transparent,rgba(8,25,29,.85)); padding: 2rem 1.15rem .92rem; font-size: .76rem; font-weight: 650; }
time { color: #edf6bd; font-size: .7rem; font-variant-numeric: tabular-nums; letter-spacing: .08em; }
#directory { padding-block: clamp(2.3rem,5vw,4.6rem) clamp(3.2rem,7vw,6rem); }
.section-head { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; border-bottom: 2px solid var(--ink); padding-bottom: 1rem; }
h2 { font-size: clamp(1.6rem,3.2vw,2.25rem); letter-spacing: -.065em; line-height: 1.15; }
.section-head > span { color: var(--muted); font-size: .84rem; }
.cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-bottom: 1px solid var(--line); }
article { display: flex; align-items: flex-start; flex-direction: column; position: relative; padding: clamp(1.45rem,3.5vw,2.55rem); word-break: keep-all; overflow-wrap: anywhere; }
article:nth-child(odd) { border-right: 1px solid var(--line); }
article:nth-child(n + 3) { border-top: 1px solid var(--line); }
.sector { display: inline-block; background: #e3eacb; color: #324331; padding: .28rem .58rem; font-weight: 640; font-size: .77rem; border-radius: 3px; }
h3 { margin-top: 1.25rem; font-size: clamp(1.6rem,3vw,2.35rem); letter-spacing: -.06em; line-height: 1.22; }
.alias { margin-top: .23rem; font-size: .83rem; color: #5a6b6e; }
.description,.record { font-size: .97rem; line-height: 1.75; }
.description { margin-top: 1.2rem; }
.record { margin: .8rem 0 1.5rem; color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: .7rem 1.25rem; margin-top: auto; }
.links a { font-size: .84rem; font-weight: 700; }
.links span { color: #49705d; }
footer { background: var(--ink); color: #f7f6ec; }
footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem 1.1rem; padding-block: 1.6rem; font-size: .84rem; }
footer a { color: var(--accent); }
:lang(zh-CN) p, :lang(zh-CN) article { word-break: normal; }
@media (max-width: 720px) {
 .wrap { width: calc(100% - 36px); }
 nav { gap: .85rem; }
 .spread { grid-template-columns: 1fr; }
 .spread-copy { padding: 1.9rem 1.45rem; }
 figure { min-height: 0; height: clamp(175px,39vw,250px); }
 .cards { grid-template-columns: 1fr; }
 article { padding: 1.55rem .2rem; }
 article:nth-child(odd) { border-right: 0; }
 article + article { border-top: 1px solid var(--line); }
}
@media (max-width: 490px) {
 .nav { min-height: 65px; gap: .55rem; }
 .wordmark { gap: .45rem; }
 .wordmark svg { width: 31px; height: 31px; }
 .wordmark small { font-size: .49rem; }
 .nav nav a:not(.lang) { display: none; }
 nav .lang { font-size: .77rem; }
 .crumb { padding-block: 1rem; }
}
#directory { padding-bottom: clamp(2.1rem,4vw,3.5rem); }
.historic { padding-bottom: clamp(2.7rem,5vw,4.5rem); }
.historic .context { margin: 1rem 0 1.3rem; color: var(--muted); line-height: 1.7; font-size: .91rem; }
.historic dl { margin: 0; border-top: 1px solid var(--line); }
.historic dl > div { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.5fr) auto; gap: .5rem 1rem; align-items: center; border-bottom: 1px solid var(--line); padding: .85rem .2rem; }
.historic dt { font-size: .96rem; font-weight: 700; }
.historic dd { margin: 0; color: var(--muted); font-size: .89rem; }
.historic time { color: var(--muted); }
.source-note { margin-top: 1.2rem; color: var(--muted); font-size: .8rem; line-height: 1.7; }
@media(max-width: 540px) {
 .historic dl > div { grid-template-columns: 1fr auto; gap: .3rem .8rem; }
 .historic dd:not(.ref) { grid-column: 1; }
 .historic .ref { grid-column: 2; grid-row: 1 / span 2; }
}

[hidden] { display:none !important; }
:root { --card: #fffefa; }
.metrics { display:flex; align-items:center; flex-wrap:wrap; gap:1.45rem; margin-top:1.5rem; color:#e8f2bf; }
.metrics span { display:inline-flex; align-items:baseline; gap:.4rem; font-size:.8rem; font-weight:600; }
.metrics strong { color:var(--accent); font-size:1.75rem; font-weight:720; line-height:1; font-variant-numeric:tabular-nums; letter-spacing:-.05em; }
.section-jump { display:flex; flex-wrap:wrap; gap:.75rem 1.8rem; align-items:center; border-bottom:1px solid var(--line); padding-block:.95rem; }
.section-jump a { display:inline-flex; align-items:center; gap:.45rem; }
.section-jump a::after { content:"↓"; color:#466158; }
.filters { display:flex; align-items:flex-end; flex-wrap:wrap; gap:.75rem; padding:1.3rem 0 .8rem; }
.filters label { display:flex; flex-direction:column; gap:.4rem; font-size:.78rem; letter-spacing:-.025em; font-weight:700; }
.filters label:first-of-type { flex:1 1 260px; }
.filters label:nth-of-type(2) { flex:0 1 265px; }
.filters input, .filters select { width:100%; min-width:0; border:1px solid #80908e; border-radius:4px; color:var(--ink); background:var(--card); font:inherit; font-size:.94rem; font-weight:500; padding:.67rem .85rem; min-height:44px; }
.filters input:focus-visible, .filters select:focus-visible, button:focus-visible { outline:3px solid #187e80; outline-offset:2px; }
.filters button { border:1px solid var(--ink); background:var(--ink); color:#fff; border-radius:4px; min-height:44px; padding:.64rem 1.6rem; font:inherit; font-size:.88rem; font-weight:660; cursor:pointer; }
.filters button:hover { background:#284957; }
.results { display:flex; justify-content:space-between; align-items:baseline; gap:1rem; min-height:40px; padding-block:.15rem 1rem; font-size:.82rem; color:var(--muted); }
.results a { color:var(--ink); }
.members-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.8rem; }
.member-entry, .member-entry:nth-child(odd), .member-entry:nth-child(n + 3) {
  padding:clamp(1.1rem,2.4vw,1.7rem); gap:0; border:1px solid var(--line); border-radius:6px; background:var(--card); min-height:142px;
}
.member-entry:hover, .member-entry:focus-within { border-color:#708c77; }
.member-entry .sector { font-size:.72rem; }
.member-entry h3 { align-self:stretch; margin:.76rem 0 0; font-size:clamp(1.2rem,2.15vw,1.65rem); }
.member-entry h3:first-child { margin-top:0; }
.member-profile-link { display:flex; align-items:baseline; justify-content:space-between; gap:.6rem; text-decoration:none; }
.member-profile-link:hover { text-decoration:underline; }
.profile-arrow { flex:none; color:#42674e; font:normal .93rem/1.3 var(--sans); }
.member-entry .alias { margin-top:.4rem; font-size:.77rem; }
.member-entry .description { margin:.75rem 0 0; color:var(--muted); font-size:.88rem; line-height:1.65; }
.member-entry .links { margin:.95rem 0 0; font-size:.76rem; }
.member-entry .links:empty { display:none; }
.roster-empty { color:var(--muted); border:1px dashed var(--line); text-align:center; padding:2.4rem 1rem; line-height:1.65; }
.history-feature { padding:1rem 0 clamp(2.7rem,5vw,4.5rem); }
.history-feature, .member-entry, .historic { scroll-margin-top:1rem; }
.detail-page { padding-bottom:clamp(2.7rem,6vw,5.5rem); }
.detail-page .crumb { width:100%; flex-wrap:wrap; }
.detail-page .crumb span:last-child { color:var(--ink); max-width:100%; overflow-wrap:anywhere; }
.detail-banner { border-inline-start:5px solid var(--accent); color:#fff; background:var(--ink); padding:clamp(1.7rem,4vw,3.4rem); }
.detail-banner h1 { margin:.7rem 0; font-size:clamp(2rem,5.3vw,4rem); line-height:1.15; word-break:keep-all; overflow-wrap:anywhere; }
.detail-banner p { color:#dce5e5; font-size:clamp(.9rem,1.6vw,1.08rem); overflow-wrap:anywhere; }
.detail-content { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(230px,.8fr); gap:clamp(2rem,6vw,5.5rem); padding:clamp(1.9rem,4vw,3.5rem) 0; }
.detail-content h2 { border-bottom:1px solid #9aaba4; padding-bottom:.7rem; font-size:clamp(1.18rem,2.5vw,1.55rem); }
.detail-main p, .service-list { margin-top:1rem; font-size:1rem; color:#354951; line-height:1.82; word-break:keep-all; overflow-wrap:anywhere; }
:lang(zh-CN) .detail-main p { word-break:normal; }
.detail-main .services-title { margin-top:2.2rem; }
.service-list { padding-inline-start:1.4rem; }
.service-list li+li { margin-top:.4rem; }
.profile-resources { padding-bottom:1.6rem; }
.profile-resources a { display:flex; align-items:baseline; justify-content:space-between; gap:.6rem; border-bottom:1px solid var(--line); padding-block:.9rem; font-size:.88rem; font-weight:640; text-decoration:none; overflow-wrap:anywhere; }
.profile-resources a:hover { text-decoration:underline; }
.back { font-size:.9rem; font-weight:700; }
.missing { padding:3rem 0; }
.missing h1 { font-size:clamp(1.8rem,5vw,3rem); }
.missing p { margin:1rem 0 1.5rem; }
@media (max-width:900px) { .members-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:660px) {
 .filters{gap:.7rem .5rem;}
 .filters label:first-of-type { flex-basis:100%; }
 .filters label:nth-of-type(2) { flex:1 1 60%; }
 .filters button { flex:0 1 auto; }
 .members-grid { grid-template-columns:1fr; }
 .member-entry { min-height:0; }
 .detail-content { grid-template-columns:minmax(0,1fr); }
 .section-jump { display:flex; }
 .section-jump a { display:inline-flex; }
}

.detail-main .profile-note { border-inline-start:3px solid #a6bf78; background:#e9edda; color:#344b42; font-size:.87rem; padding:.7rem .95rem; }
