:root {
  --ink: #172019;
  --subtle: #59635c;
  --rule: #d5d5cc;
  --wash: #f0f1eb;
  --accent: #24553a;
  --font-reading: "Noto Serif KR", "Source Han Serif K", "AppleMyungjo", "Batang", serif;
  --font-ui: "Pretendard Variable", Pretendard, SUIT, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-hanja: "Noto Serif CJK KR", "Noto Serif CJK TC", "Source Han Serif K", "Source Han Serif TW", "AppleMyungjo", "Batang", "Songti TC", "Songti SC", "Hiragino Mincho ProN", "Yu Mincho", "MingLiU-ExtB", "SimSun-ExtB", serif;
  font-family: var(--font-reading);
  color: var(--ink);
  background: #f7f6f0;
}

html { font-synthesis: none; text-rendering: optimizeLegibility; }
body { font-family: var(--font-reading); letter-spacing: -.012em; }
button, input, select, textarea { font-family: var(--font-ui); }
h1, h2, h3, h4, p, dt, dd, summary, strong { word-break: keep-all; overflow-wrap: break-word; }
h1, h2, h3, h4 { text-wrap: balance; }
p, dd, li { text-wrap: pretty; }
.hanja, .context-hanja, .source-excerpt blockquote, .cjk, [lang="zh-Hant"] { font-family: var(--font-hanja); font-synthesis: none; }
.cjk { letter-spacing: 0; }

body { background: #f7f6f0; }
body > header {
  height: 62px;
  border-bottom: 1px solid #cbcdc5;
  background: rgba(247,246,240,.96);
  box-shadow: none;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.global-search { position: relative; display: flex; width: min(28vw, 320px); margin: 0 22px; border: 0; border-bottom: 1px solid #aeb7b0; border-radius: 0; padding: 0; background: transparent; box-shadow: none; font-family: var(--font-ui); }
.global-search input { min-width: 0; padding: 9px 2px; font-size: 13px; }
.global-search button { padding: 0 4px 0 12px; background: transparent; color: var(--ink); font-size: 18px; }
.global-search-results { position: absolute; top: calc(100% + 10px); left: 0; width: min(430px, 72vw); border: 1px solid #c8cdc7; background: #fbfaf5; box-shadow: 0 18px 40px #17201920; }
.global-search-results a { display: grid; grid-template-columns: 72px 1fr; gap: 12px; border-top: 1px solid #e0e2dc; padding: 11px 13px; }
.global-search-results a:first-child { border-top: 0; }
.global-search-results a:hover { background: #eef0e9; }
.global-search-results span { font: 10px var(--font-ui); color: #68756c; }
.global-search-results strong { font-size: 14px; }
.global-search-results p { margin: 0; padding: 14px; font: 12px var(--font-ui); color: var(--subtle); }
.global-search-results .global-search-all { border-top: 1px solid var(--ink); background: #eef0e9; }
.global-search-results .global-search-all strong { color: var(--accent); font: 700 12px var(--font-ui); }
.brand { display: inline-flex; align-items: center; white-space: nowrap; }
.brand img { display: block; width: 184px; height: auto; }
nav { gap: 19px; font-size: 13px; }
.primary-nav { position: relative; display: flex; align-items: center; gap: 21px; white-space: nowrap; font: 700 12px var(--font-ui); }
.primary-nav > a { padding: 8px 0; }
.primary-nav > a:hover, .header-explore summary:hover { color: var(--accent); }
.header-explore { position: relative; }
.header-explore summary { display: flex; align-items: center; gap: 7px; padding: 8px 0; cursor: pointer; list-style: none; }
.header-explore summary::-webkit-details-marker { display: none; }
.header-explore summary::after { content: "+"; color: #6e786f; font-size: 14px; font-weight: 500; }
.header-explore[open] summary::after { content: "−"; }
.summary-compact { display: none; }
.header-explore-panel { position: absolute; top: calc(100% + 13px); right: 0; z-index: 20; width: 390px; border: 1px solid #bfc5bf; padding: 19px 20px 20px; background: #fbfaf5; box-shadow: 0 18px 45px #17201920; }
.header-explore-panel > div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px 12px; }
.header-explore-panel strong { grid-column: 1 / -1; margin-bottom: 8px; color: #69736c; font-size: 10px; letter-spacing: .08em; }
.header-explore-panel a { padding: 8px 0; font-size: 12px; }
.header-research-links { display: none !important; }
main { max-width: 1180px; padding-top: 46px; }

.search-home { max-width: 940px; margin: 0 auto; padding: 58px 0 58px; text-align: center; }
.search-home h1 { margin: 16px auto 22px; max-width: 850px; font-size: clamp(48px, 5.25vw, 66px); font-weight: 800; line-height: 1.15; letter-spacing: -.055em; }
.search-home h1 span, .search-home h1 em { display: block; }
.search-home h1 em { color: var(--accent); font-style: normal; }
.search-home > p:not(.eyebrow) { max-width: 720px; margin: 0 auto; color: var(--subtle); font-size: 16px; line-height: 1.82; text-wrap: pretty; }
.search-home > p:not(.eyebrow) span { display: block; }
.home-search { display: flex; max-width: 720px; margin: 34px auto 0; border: 1px solid #87978c; border-radius: 0; padding: 6px 7px 6px 17px; background: #fff; box-shadow: 0 14px 40px #253a2a12; text-align: left; }
.home-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px #24553a12, 0 14px 40px #253a2a12; }
.home-search input { padding: 13px 5px; font-size: 16px; }
.home-search button { border-radius: 0; padding: 0 25px; background: var(--accent); }
.search-examples { display: flex; justify-content: center; gap: 9px; flex-wrap: wrap; margin-top: 16px; font: 12px var(--font-ui); color: #667169; }
.search-examples span { padding: 6px 2px; }
.search-examples a { border-bottom: 1px solid #b8c0ba; padding: 6px 8px; color: var(--ink); }
.search-examples a:hover { border-color: var(--accent); color: var(--accent); }
.atlas-pulse { display: grid; grid-template-columns: minmax(260px, 1.55fr) repeat(3, minmax(145px, .72fr)) minmax(175px, .85fr); align-items: stretch; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.atlas-pulse > div { border-right: 1px solid var(--rule); }
.pulse-intro { padding: 19px 22px 18px; }
.pulse-intro small,.pulse-stat small { color: var(--subtle); font: 10px var(--font-ui); }
.pulse-intro p { max-width: 280px; margin: 7px 0 0; color: var(--subtle); font: 12px/1.65 var(--font-ui); }
.pulse-intro p strong { color: var(--ink); font: 750 12px var(--font-ui); }
.pulse-stat { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 16px 18px; }
.pulse-stat > strong { font-size: 27px; line-height: 1; letter-spacing: -.04em; }
.pulse-stat > strong em { margin-left: 3px; color: var(--subtle); font: 500 10px var(--font-ui); font-style: normal; letter-spacing: 0; }
.atlas-pulse > a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 20px; color: var(--accent); font: 750 11px/1.55 var(--font-ui); }
.atlas-pulse > a:hover { background: #eef0e9; }
.knowledge-entrances { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.knowledge-entrances a { grid-column: span 3; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 13px; min-height: 106px; border-right: 1px solid var(--rule); padding: 21px 20px; text-align: left; }
.knowledge-entrances a:nth-child(4) { border-right: 0; }
.knowledge-entrances a:nth-child(n+5) { grid-column: span 4; border-top: 1px solid var(--rule); }
.knowledge-entrances a:last-child { border-right: 0; }
.knowledge-entrances a:hover { background: #eef0e9; }
.knowledge-entrances span { grid-row: 1 / 3; font: 10px ui-monospace, monospace; color: #8a918b; }
.knowledge-entrances strong { align-self: end; font-size: 18px; line-height: 1.35; }
.knowledge-entrances small { max-width: 18em; font: 11px/1.55 var(--font-ui); color: var(--subtle); }
.search-output { padding-top: 62px; }
.status-view { max-width: 1080px; margin: 0 auto; }
.status-head { max-width: 760px; padding: 28px 0 48px; }
.status-head h1 { margin: 13px 0 18px; font-size: clamp(48px, 7vw, 74px); letter-spacing: -.06em; line-height: 1.05; }
.status-head > p:not(.eyebrow) { color: var(--subtle); font-size: 15px; line-height: 1.85; }
.status-method-link { margin: 0 0 28px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.status-method-link a { display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; color: var(--ink); text-decoration: none; }
.status-method-link span { color: var(--subtle); }
.method-view { max-width: 1080px; margin: 0 auto; }
.method-head { max-width: 890px; padding: 30px 0 72px; }
.method-head h1 { margin: 15px 0 24px; font: 500 clamp(50px, 7.6vw, 86px)/.98 var(--font-display); letter-spacing: -.065em; }
.method-head > p:not(.eyebrow) { max-width: 720px; color: var(--subtle); font-size: 17px; line-height: 1.85; }
.method-head nav { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.method-head nav a { padding: 9px 13px; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink); text-decoration: none; font: 12px var(--font-ui); }
.method-live { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.method-live > div { padding: 24px 20px; border-right: 1px solid var(--rule); }
.method-live > div:last-of-type { border-right: 0; }
.method-live small { display: block; color: var(--subtle); font: 11px var(--font-ui); }
.method-live strong { display: block; margin-top: 8px; font: 500 30px var(--font-display); }
.method-live > p { grid-column: 1/-1; margin: 0; padding: 13px 20px; border-top: 1px solid var(--rule); color: var(--subtle); font-size: 12px; }
.method-live a,.method-links a { color: var(--green); }
.method-section { display: grid; grid-template-columns: minmax(230px,.72fr) minmax(0,1.28fr); gap: 70px; padding: 82px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 100px; }
.method-section h2 { margin: 12px 0 0; font: 500 clamp(30px,4vw,46px)/1.12 var(--font-display); letter-spacing: -.045em; }
.method-section > div:last-child > p { margin: 0 0 22px; color: #343a36; font-size: 16px; line-height: 1.9; }
.method-steps { margin: 0; padding: 0; list-style: none; }
.method-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 18px; padding: 0 0 25px; margin-bottom: 25px; border-bottom: 1px solid var(--rule); }
.method-steps li > span { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--ink); border-radius: 50%; font: 11px var(--font-ui); }
.method-steps strong { font-size: 17px; }
.method-steps p { margin: 7px 0 0; color: var(--subtle); line-height: 1.75; }
.method-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 26px 0 34px; }
.method-links a { padding: 15px; border: 1px solid var(--rule); text-decoration: none; font: 13px var(--font-ui); }
.method-limit { padding: 22px; background: #f2f1eb; font-size: 14px !important; }
.research-spectrum { padding: 64px 0; border-top: 1px solid var(--ink); }
.research-spectrum > div:last-child { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 30px; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.research-spectrum article { padding: 23px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.research-spectrum article small { color: var(--subtle); font: 11px var(--font-ui); }
.research-spectrum article strong { display: block; margin: 9px 0; font: 500 29px var(--font-display); }
.research-spectrum article p { margin: 0; color: var(--subtle); font-size: 12px; line-height: 1.65; }
.footer-guide { display: flex; gap: 16px; margin-top: 12px; }
.footer-guide a { color: var(--ink); font: 12px var(--font-ui); }
.status-totals { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.status-totals > div { border-right: 1px solid var(--rule); padding: 25px 20px 24px; }
.status-totals > div:last-child { border-right: 0; }
.status-totals small,.status-totals span { display: block; color: var(--subtle); font: 10px var(--font-ui); }
.status-totals strong { display: inline-block; margin: 12px 5px 2px 0; font-size: 35px; letter-spacing: -.04em; }
.status-totals span { display: inline; }
.status-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 58px; padding: 68px 0; }
.status-panel-head { margin-bottom: 28px; }
.status-panel-head h2 { margin: 9px 0 0; font-size: 28px; letter-spacing: -.035em; }
.status-panel-head > p:not(.eyebrow) { max-width: 610px; color: var(--subtle); font: 12px/1.7 var(--font-ui); }
.stage-bars > div,.world-bars > a,.world-bars > div { display: grid; grid-template-columns: 110px 1fr 48px; gap: 15px; align-items: center; border-bottom: 1px solid var(--rule); padding: 13px 0; }
.stage-bars span,.world-bars span { font: 12px var(--font-ui); }
.stage-bars progress,.world-bars progress { width: 100%; height: 5px; border: 0; appearance: none; background: #e4e6df; }
.stage-bars progress::-webkit-progress-bar,.world-bars progress::-webkit-progress-bar { background: #e4e6df; }
.stage-bars progress::-webkit-progress-value,.world-bars progress::-webkit-progress-value { background: var(--accent); }
.stage-bars progress::-moz-progress-bar,.world-bars progress::-moz-progress-bar { background: var(--accent); }
.stage-bars strong,.world-bars strong { text-align: right; font: 700 12px var(--font-ui); }
.world-bars > a:hover span { color: var(--accent); }
.status-note { margin: 20px 0 0; color: var(--subtle); font: 11px/1.7 var(--font-ui); }

.research-api-view { max-width: 1080px; margin: 0 auto; }
.research-api-head { max-width: 920px; padding: 30px 0 66px; }
.research-api-head h1 { max-width: 860px; margin: 13px 0 24px; font-size: clamp(44px, 5.1vw, 60px); line-height: 1.1; letter-spacing: -.055em; }
.research-api-head > p:not(.eyebrow) { max-width: 760px; margin: 0; color: var(--subtle); font-size: 17px; line-height: 1.85; }
.api-demo { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 34px 0 38px; }
.api-demo-intro { display: grid; grid-template-columns: 180px minmax(240px, .8fr) minmax(280px, 1fr); gap: 28px; align-items: end; }
.api-demo-intro h2 { margin: 0; font-size: 29px; line-height: 1.3; letter-spacing: -.04em; }
.api-demo-intro > p:last-child { margin: 0; color: var(--subtle); font: 13px/1.7 var(--font-ui); }
.graph-query-form { display: grid; grid-template-columns: minmax(260px, 1fr) 210px 130px; gap: 12px; max-width: none; margin: 30px 0 0; border: 0; border-radius: 0; padding: 0; background: transparent; box-shadow: none; }
.graph-query-form label { display: grid; gap: 7px; }
.graph-query-form label span { color: #667168; font: 700 10px var(--font-ui); }
.graph-query-form input, .graph-query-form select { min-width: 0; height: 48px; border: 1px solid #aeb8b0; border-radius: 0; padding: 0 13px; background: #fff; font: 14px var(--font-ui); }
.graph-query-form button { align-self: end; height: 48px; border-radius: 0; }
.graph-query-status { margin-top: 25px; color: var(--subtle); font: 12px var(--font-ui); }
.graph-query-results { display: grid; grid-template-columns: 210px 1fr; align-items: start; gap: 30px; margin-top: 14px; }
.graph-seed { display: flex; flex-direction: column; justify-content: center; min-height: 164px; border: 1px solid var(--accent); padding: 23px; background: #edf1e9; }
.graph-seed small, .graph-neighbors small { color: #68736b; font: 10px var(--font-ui); }
.graph-seed strong { margin: 10px 0 20px; font-size: 25px; }
.graph-seed a { color: var(--accent); font: 700 11px var(--font-ui); }
.graph-neighbors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.graph-neighbors > a { display: flex; flex-direction: column; min-height: 118px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 15px 16px; }
.graph-neighbors > a:hover { background: #eef0e9; }
.graph-neighbors strong { margin: 7px 0 12px; font-size: 16px; line-height: 1.4; }
.graph-neighbors span { margin-top: auto; color: var(--accent); font: 10px/1.5 var(--font-ui); }
.graph-neighbors > p { padding: 24px; color: var(--subtle); font: 13px var(--font-ui); }
.graph-response-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 18px; border-top: 1px solid var(--rule); padding-top: 12px; color: var(--subtle); font: 10px var(--font-ui); }
.graph-response-meta code { overflow-wrap: anywhere; color: #415148; }
.api-contract, .api-access { display: grid; grid-template-columns: 230px 1fr; gap: 70px; padding: 72px 0; border-bottom: 1px solid var(--rule); }
.api-contract h2, .api-access h2 { margin: 10px 0 0; font-size: 27px; line-height: 1.4; letter-spacing: -.04em; }
.api-endpoints { border-top: 1px solid var(--ink); }
.api-endpoints article { display: grid; grid-template-columns: 130px minmax(250px, 1fr) minmax(220px, .8fr); gap: 22px; align-items: start; border-bottom: 1px solid var(--rule); padding: 19px 0; }
.api-endpoints strong { font-size: 15px; }
.api-endpoints code { overflow-wrap: anywhere; color: var(--accent); font: 11px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
.api-endpoints p { margin: 0; color: var(--subtle); font: 12px/1.65 var(--font-ui); }
.api-access > div:last-child > p { margin: 0 0 25px; color: #46544b; font-size: 16px; line-height: 1.85; }
.api-access dl { margin: 0; border-top: 1px solid var(--ink); }
.api-access dl div { display: grid; grid-template-columns: 140px 1fr; gap: 25px; border-bottom: 1px solid var(--rule); padding: 16px 0; }
.api-access dt { font-weight: 800; }
.api-access dd { margin: 0; color: var(--subtle); font: 13px/1.7 var(--font-ui); }
.api-access .api-access-note { margin-top: 22px; border-left: 3px solid #8aa08f; padding-left: 16px; color: #657168; font: 11px/1.7 var(--font-ui); }
.interest-panel { border-top: 1px solid var(--ink); padding-top: 52px; }
.interest-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.interest-list a { display: grid; grid-template-columns: 42px 1fr auto; gap: 18px; align-items: center; border-bottom: 1px solid var(--rule); padding: 18px 6px; }
.interest-list a:hover { background: #eef0e9; }
.interest-list > li > a > span { color: #8a918b; font: 10px ui-monospace,monospace; }
.interest-list small { display: block; color: var(--subtle); font: 10px var(--font-ui); }
.interest-list strong { display: block; margin-top: 4px; font-size: 17px; }
.interest-list b { font: 700 12px var(--font-ui); }
.interest-empty { border: 1px solid var(--rule); padding: 34px; }
.interest-empty p { margin-bottom: 0; color: var(--subtle); font: 12px/1.7 var(--font-ui); }
.interest-summary { display: flex; gap: 22px; padding: 18px 4px; color: var(--subtle); font: 10px var(--font-ui); }
.privacy-note { margin: 36px 0 0; color: #7b837d; font: 10px/1.7 var(--font-ui); }
.search-output > .section-title { margin-top: 0; }
.search-view { max-width: 980px; margin: 0 auto; }
.search-back { display: inline-block; margin: 5px 0 34px; font: 700 12px var(--font-ui); color: var(--subtle); }
.search-view-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 520px); gap: 64px; align-items: end; padding: 28px 0 48px; border-bottom: 1px solid var(--ink); }
.search-view-head h1 { margin: 10px 0 12px; font-size: clamp(42px, 6vw, 66px); line-height: 1.08; letter-spacing: -.055em; }
.search-view-head p:not(.eyebrow) { max-width: 470px; margin: 0; color: var(--subtle); font: 14px/1.75 var(--font-ui); }
.result-search { margin: 0; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; padding: 0; background: transparent; box-shadow: none; }
.result-search input { padding: 16px 4px; }
.result-search button { border-radius: 0; padding: 0 7px 0 22px; background: transparent; color: var(--ink); white-space: nowrap; }
.search-output-active { padding-top: 48px; }
.search-results { padding-top: 24px; }
.search-primary { display: block; border: 1px solid var(--ink); padding: clamp(28px, 5vw, 52px); background: #faf9f3; }
.search-primary:hover { background: #f0f2eb; }
.search-primary h2 { margin: 26px 0 12px; font-size: clamp(36px, 5vw, 54px); line-height: 1.15; letter-spacing: -.045em; }
.search-primary p { max-width: 760px; margin: 0; color: var(--subtle); font-size: 15px; line-height: 1.8; }
.search-primary > strong { display: block; margin-top: 34px; color: var(--accent); font: 750 13px var(--font-ui); }
.search-primary > strong span { float: right; }
.search-results mark { padding: 0 .04em; background: #e4eadb; color: inherit; }
.search-group { margin-top: 54px; }
.search-group-head, .search-detail-heading { display: flex; align-items: end; justify-content: space-between; border-bottom: 1px solid var(--rule); padding-bottom: 11px; }
.search-group-head h2, .search-detail-heading h3 { margin: 0; font-size: 21px; }
.search-group-head span, .search-detail-heading span { font: 11px var(--font-ui); color: var(--subtle); }
.search-related { display: grid; grid-template-columns: 1fr 1fr; }
.search-row { display: grid; grid-template-columns: 82px minmax(0,1fr) auto; gap: 16px; align-items: start; border-bottom: 1px solid var(--rule); padding: 22px 18px 23px 0; }
.search-related .search-row:nth-child(odd) { border-right: 1px solid var(--rule); }
.search-related .search-row:nth-child(even) { padding-left: 20px; }
.search-row:hover { background: #eef0e9; }
.search-row-type { padding-top: 3px; color: #69756c; font: 10px var(--font-ui); }
.search-row > span > strong { display: block; font-size: 18px; line-height: 1.4; }
.search-row > span > small { display: -webkit-box; margin-top: 5px; overflow: hidden; color: var(--subtle); font: 12px/1.65 var(--font-ui); -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.search-row > b { color: var(--accent); font: 500 14px var(--font-ui); }
.search-detail-group { margin-top: 50px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.search-detail-group > summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 4px; cursor: pointer; list-style: none; }
.search-detail-group > summary::-webkit-details-marker { display: none; }
.search-detail-group > summary span strong, .search-detail-group > summary span small { display: block; }
.search-detail-group > summary span strong { font-size: 20px; }
.search-detail-group > summary span small { margin-top: 5px; color: var(--subtle); font: 12px/1.6 var(--font-ui); }
.search-detail-group > summary b { flex: 0 0 auto; color: var(--accent); font: 700 12px var(--font-ui); }
.search-detail-group[open] > summary { border-bottom: 1px solid var(--rule); }
.search-detail-body { padding: 20px 0 34px; }
.search-detail-body section + section { margin-top: 36px; }
.search-detail-body .search-row { grid-template-columns: 82px minmax(0,1fr) auto; padding-right: 4px; }
.context-groups { grid-column: 1 / -1; display: grid; gap: 64px; width: 100%; }
.context-group { min-width: 0; }
.context-group-head { display: flex; align-items: end; justify-content: space-between; border-bottom: 1px solid var(--ink); padding-bottom: 12px; }
.context-group-head p { margin: 0; }
.context-group-head span { font: 11px var(--font-ui); color: var(--subtle); }
.context-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.context-result { min-height: 250px; }
.context-hanja { margin-top: -12px !important; color: var(--subtle) !important; font-size: 16px !important; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
  column-gap: 80px;
  align-items: end;
  max-width: none;
  padding: 60px 0 76px;
  border-bottom: 1px solid var(--rule);
}
.hero .eyebrow, .hero h1, .hero > p { grid-column: 1; }
.hero h1 { margin: 12px 0 20px; font-size: clamp(44px, 5.6vw, 70px); line-height: 1.12; letter-spacing: -.06em; }
.hero > p:not(.eyebrow) { margin: 0; font-size: 17px; line-height: 1.8; }
.hero form { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin: 0; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; padding: 0; background: transparent; box-shadow: none; }
.hero input { padding: 18px 4px; font-size: 16px; }
.hero button { border-radius: 0; padding: 0 6px 0 24px; background: transparent; color: var(--ink); }
.world-filter { grid-column: 2; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; font: 12px var(--font-ui); }
.world-filter a { padding: 7px 11px; border: 1px solid #c9cec7; }
.world-filter a:hover { border-color: var(--accent); color: var(--accent); }
.section-title { margin-top: 54px; }
.section-title .eyebrow { font-size: 11px; letter-spacing: .09em; }
.results { grid-template-columns: repeat(3, 1fr); gap: 0; padding: 0; border-top: 1px solid var(--rule); }
.result { min-height: 220px; border: 0; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); border-radius: 0; padding: 27px 24px; background: transparent; box-shadow: none; }
.result:nth-child(3n) { border-right: 0; }
.result:hover { transform: none; background: #eef0e9; box-shadow: none; }
.result h3 { margin-top: 35px; font-size: 24px; line-height: 1.35; }
.result p { font-size: 14px; line-height: 1.8; }

.browse-view { padding-top: 4px; }
.browse-head { display: grid; grid-template-columns: minmax(0, 720px) 1fr; margin-top: 26px; padding: 34px 0 38px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.browse-head h1 { margin: 9px 0 13px; font-size: clamp(45px, 6vw, 68px); line-height: 1.08; letter-spacing: -.06em; }
.browse-head p:not(.eyebrow) { max-width: 620px; margin: 0; color: var(--subtle); font: 14px/1.8 var(--font-ui); }
.browse-controls { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(150px, 210px) auto; gap: 12px; max-width: none; margin: 22px 0 0; border: 0; border-radius: 0; padding: 0; background: transparent; box-shadow: none; }
.browse-controls label { display: grid; gap: 7px; }
.browse-controls label > span { color: var(--subtle); font: 700 10px var(--font-ui); letter-spacing: .04em; }
.browse-controls input, .browse-controls select { width: 100%; min-height: 48px; border: 1px solid #c7cbc4; border-radius: 0; padding: 0 13px; background: #fbfaf5; color: var(--ink); font: 14px var(--font-ui); }
.browse-controls button { align-self: end; min-height: 48px; border-radius: 0; padding: 0 23px; }
.browse-output { padding-top: 24px; }
.browse-result .browse-hanja { min-height: 0; margin: -2px 0 14px; color: #6f7771; font: 14px/1.5 var(--font-cjk); letter-spacing: .05em; }
.browse-result .browse-hanja + p { margin-top: 0; }
.browse-visual { display: grid; place-items: center; height: 190px; margin: 18px -1px 2px; overflow: hidden; border: 1px solid #d0cfc5; background: #e9e6dc; }
.browse-visual--image { position: relative; display: block; padding: 0; }
.browse-visual img { position: absolute; inset: 10px; display: block; width: calc(100% - 20px); height: calc(100% - 20px); max-width: none; max-height: none; object-fit: contain; object-position: center; filter: saturate(.82) contrast(.98); transition: transform .35s ease; }
.browse-result:hover .browse-visual img { transform: scale(1.01); }
.browse-visual--fallback { position: relative; align-content: center; justify-items: start; gap: 8px; padding: 23px 26px; background: linear-gradient(90deg, #deded5 0 1px, transparent 1px) 18px 0 / 12px 100%, #eeece3; }
.browse-visual--fallback::after { content: ""; position: absolute; inset: 10px; border: 1px solid #cfcec4; pointer-events: none; }
.browse-visual--fallback small { position: relative; z-index: 1; color: #788078; font: 700 9px var(--font-ui); letter-spacing: .08em; }
.browse-visual--fallback strong { position: relative; z-index: 1; max-width: 100%; font-size: 24px; line-height: 1.25; letter-spacing: -.045em; }
.browse-visual--fallback em { position: relative; z-index: 1; color: #737a74; font: normal 13px/1.4 var(--font-hanja); letter-spacing: .06em; }
.browse-result.has-visual h3 { margin-top: 20px; }
.pagination { display: grid; grid-template-columns: 100px 1fr 100px; align-items: center; gap: 18px; margin-top: 34px; border-top: 1px solid var(--ink); padding-top: 20px; font: 13px var(--font-ui); }
.pagination > span:last-child { min-height: 1px; }
.pagination-direction:last-child { text-align: right; }
.pagination-pages { display: flex; justify-content: center; align-items: center; gap: 5px; }
.pagination-pages a { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid transparent; }
.pagination-pages a:hover { border-color: #b9c1ba; }
.pagination-pages a[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.pagination-gap { padding: 0 4px; color: var(--subtle); }

.wiki { max-width: 1080px; }
.wiki-topline { display: flex; justify-content: space-between; margin-bottom: 28px; border-bottom: 1px solid var(--rule); padding-bottom: 12px; font: 12px var(--font-ui); color: var(--subtle); }
.wiki-topline .back { margin: 0; }
.wiki-head { grid-template-columns: minmax(0, 1fr) 300px; gap: 70px; align-items: start; padding: 38px 0 42px; border-bottom: 1px solid var(--ink); }
.wiki-head--illustrated { grid-template-areas: "title aside" "details aside"; grid-template-columns: minmax(0, 1fr) minmax(300px, 340px); grid-template-rows: min-content 1fr; column-gap: clamp(38px, 5vw, 62px); row-gap: 0; }
.wiki-head--illustrated .wiki-title-block { grid-area: title; }
.wiki-head--illustrated .wiki-head-aside { grid-area: aside; }
.work-head-details { grid-area: details; min-width: 0; }
.wiki-title-block { min-width: 0; padding: 12px 0 24px; }
.wiki-title-block .eyebrow { display: flex; align-items: center; gap: 14px; max-width: 390px; }
.wiki-title-block .eyebrow::after { content: ""; flex: 1; height: 1px; background: #aeb6af; }
.wiki-head h1 { max-width: 10em; margin: 24px 0 20px; font-size: clamp(50px, 6.3vw, 74px); line-height: 1.02; letter-spacing: -.065em; }
.wiki-title-block .hanja { width: min(100%, 390px); margin: 0; border-top: 1px solid var(--rule); padding-top: 16px; color: #56625a; font-size: 21px; line-height: 1.45; letter-spacing: .14em; }
.work-head-lead { max-width: 35em; margin: 14px 0 30px; color: #29342d; font-size: 19px; line-height: 1.78; letter-spacing: -.02em; }
.wiki-head-aside { min-width: 0; }
.wiki-head-aside:empty { display: none; }
.wiki-head--person { grid-template-columns: minmax(320px, 390px) minmax(0, 1fr); gap: clamp(48px, 7vw, 86px); }
.person-head-intro { margin-bottom: 28px; border-top: 1px solid var(--ink); padding-top: 15px; }
.person-head-intro small { display: block; margin-bottom: 12px; color: var(--accent); font: 700 10px var(--font-ui); letter-spacing: .04em; }
.person-head-intro p { margin: 0; font-size: 19px; line-height: 1.75; letter-spacing: -.02em; }
.wiki--person > .fact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wiki--formula > .fact-grid { border-top: 2px solid var(--ink); }
.wiki--formula .page-layout { padding-top: 46px; }
.wiki--formula .formula-records { margin-top: 0; }
.wiki--herb > .fact-grid { border-top: 1px solid var(--ink); }
.wiki--herb .lead { max-width: 31em; }
.work-visual { margin: 0 0 26px; }
.work-visual > a { display: grid; place-items: center; min-height: 220px; overflow: hidden; border: 1px solid #c9c8bf; padding: 12px; background: #e9e6dc; }
.work-visual img { display: block; width: auto; height: auto; max-width: 100%; max-height: 420px; margin: auto; object-fit: contain; object-position: center; filter: saturate(.84) contrast(.97); transition: transform .35s ease; }
.work-visual > a:hover img { transform: scale(1.015); }
.work-visual--placeholder > div { position: relative; display: grid; align-content: center; justify-items: start; gap: 9px; min-height: 250px; border: 1px solid #c9c8bf; padding: 30px; background: linear-gradient(90deg, #deded5 0 1px, transparent 1px) 20px 0 / 13px 100%, #eeece3; }
.work-visual--placeholder > div::after { content: ""; position: absolute; inset: 12px; border: 1px solid #cfcec4; }
.work-visual--placeholder small, .work-visual--placeholder strong, .work-visual--placeholder span { position: relative; z-index: 1; }
.work-visual--placeholder small { color: #778078; font: 700 9px var(--font-ui); letter-spacing: .08em; }
.work-visual--placeholder strong { font-size: 25px; line-height: 1.3; }
.work-visual--placeholder span { color: #707870; font: 14px/1.4 var(--font-hanja); letter-spacing: .06em; }
.work-visual figcaption { display: grid; gap: 4px; border-bottom: 1px solid var(--rule); padding: 11px 1px 13px; font-family: var(--font-ui); }
.work-visual figcaption strong { color: var(--ink); font-size: 12px; line-height: 1.45; }
.work-visual figcaption > span { color: #59655d; font-size: 10px; line-height: 1.5; }
.work-visual figcaption small { color: #7c817d; font-size: 9px; line-height: 1.45; }
.work-visual figcaption a { width: max-content; margin-top: 3px; color: var(--accent); font-size: 10px; font-weight: 700; }
.review-card { border: 0; border-left: 3px solid #7a9682; border-radius: 0; padding: 5px 0 5px 18px; background: transparent; }
.review-card strong { font-size: 16px; }
.curation-card-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--rule); }
.curation-card-meta span { font: 10px var(--font-ui); color: #66736a; }
.fact-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: transparent; }
.fact-grid div { border-right: 1px solid var(--rule); padding: 17px 16px 18px; }
.fact-grid div:first-child { padding-left: 0; }
.fact-grid div:last-child { border-right: 0; }
.fact-grid dt { font-size: 10px; color: #6c746e; }
.fact-grid dd { font-size: 15px; }
.fact-grid--hero { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.fact-grid--hero div { min-width: 0; border-bottom: 1px solid var(--rule); padding: 14px 14px 15px; }
.fact-grid--hero div:nth-child(odd) { padding-left: 0; }
.fact-grid--hero div:nth-child(even) { border-right: 0; }
.fact-grid--hero div:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
.fact-grid--hero dd { overflow-wrap: anywhere; }

.curation-workbench { max-width: 1320px; margin: 0 auto; }
.curation-workbench > header { max-width: 800px; margin: 24px 0 38px; }
.curation-workbench > header h1 { margin: 12px 0 18px; font-size: clamp(44px, 6vw, 72px); letter-spacing: -.055em; }
.curation-workbench > header > p:last-child { color: var(--muted); font: 16px/1.75 var(--font-ui); }
.curation-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.curation-filters a { border: 1px solid var(--rule); border-radius: 999px; padding: 7px 12px; font: 11px var(--font-ui); background: var(--paper); }
.curation-filters a[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.curation-summary { display: flex; justify-content: space-between; margin-top: 28px; border-bottom: 2px solid var(--ink); padding: 0 2px 12px; font: 12px var(--font-ui); }
.curation-table-wrap { overflow-x: auto; }
.curation-table { width: 100%; min-width: 1240px; border-collapse: collapse; font: 12px/1.45 var(--font-ui); }
.curation-table th { padding: 12px 10px; text-align: left; color: var(--subtle); font-size: 10px; }
.curation-table td { border-top: 1px solid var(--rule); padding: 14px 10px; vertical-align: top; }
.curation-table td:first-child { min-width: 190px; }
.curation-table td:last-child { min-width: 190px; }
.curation-table strong,.curation-table td > span { display: block; color: var(--ink); }
.curation-table small { display: block; margin-top: 4px; color: var(--subtle); }
.curation-deficits { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; max-width: 18rem; }
.curation-deficits span { display: inline-flex; padding: 2px 6px; border: 1px solid var(--rule); border-radius: 999px; color: var(--subtle); font-size: 9px; line-height: 1.25; white-space: nowrap; }
.curation-stage { display: inline-block !important; width: max-content; border-radius: 999px; padding: 4px 8px; background: #e3e8e1; font-size: 10px; }
.curation-stage.stage-mature { background: #d9eadc; color: #1d5a34; }
.curation-stage.stage-stale,.curation-stage.stage-disputed { background: #f1dfd5; color: #814326; }
.curation-pagination { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; margin-top: 24px; border-top: 1px solid var(--rule); padding-top: 16px; font: 12px var(--font-ui); }
.curation-pagination a:last-child { text-align: right; }

.page-layout { display: grid; grid-template-columns: 155px minmax(0, 760px); gap: 72px; align-items: start; padding-top: 54px; }
.page-index { position: sticky; top: 90px; font: 12px/1.5 var(--font-ui); }
.page-index > strong { display: block; border-bottom: 1px solid var(--ink); padding-bottom: 10px; font-size: 11px; }
.page-index nav { display: block; }
.page-index nav a { display: block; border-bottom: 1px solid var(--rule); padding: 9px 0; color: #4d5d52; }
.page-index nav a:hover { color: var(--accent); }
.page-index > small { display: block; margin-top: 18px; color: #7a817b; line-height: 1.65; }
.page-body { min-width: 0; }
.lead { margin: 0 0 62px; font-size: 23px; line-height: 1.8; letter-spacing: -.025em; }

.connections { margin: 58px 0 68px; scroll-margin-top: 82px; }
.connection-head { align-items: end; padding-bottom: 13px; border-bottom: 2px solid var(--ink); }
.connection-head h2 { font-size: 25px; }
.relation-group { padding: 0; border-bottom: 1px solid var(--rule); }
.relation-label { display: flex; justify-content: space-between; margin-bottom: 8px; }
.relation-group > .relation-label { align-items: center; margin: 0; padding: 17px 3px; cursor: pointer; list-style: none; }
.relation-group > .relation-label::-webkit-details-marker { display: none; }
.relation-group > .relation-label::after { content: '＋'; margin-left: 14px; color: var(--accent); }
.relation-group[open] > .relation-label::after { content: '－'; }
.relation-group[open] > .relation-list { border-top: 1px solid #e0e1da; }
.relation-label h3 { margin: 0; font: 700 12px var(--font-ui); color: #48564d; }
.relation-label span { font: 11px var(--font-ui); color: #7b837d; }
.relation-list { display: block; }
.relation-row { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; min-height: 54px; border-top: 1px solid #e0e1da; padding: 7px 3px; background: transparent; }
.relation-row:first-child { border-top: 0; }
.relation-row:hover { background: #eef0e9; }
.relation-row i { font: 11px ui-monospace, monospace; color: #8a908b; }
.relation-row > span { display: flex; align-items: baseline; gap: 15px; }
.relation-row small { min-width: 72px; font: 11px var(--font-ui); color: #66736a; }
.relation-row strong { font-size: 16px; }
.relation-row > b { font: 12px var(--font-ui); color: var(--accent); }
.relation-context .relation-row,
.relation-formula .relation-row,
.relation-passage .relation-row,
.relation-ingredient .relation-row { grid-template-columns: minmax(0, 1fr) auto; }
.relation-context .relation-row > span,
.relation-formula .relation-row > span,
.relation-passage .relation-row > span,
.relation-ingredient .relation-row > span { min-width: 0; gap: 14px; }
.relation-formula .relation-row strong,
.relation-passage .relation-row strong,
.relation-ingredient .relation-row strong { word-break: keep-all; overflow-wrap: anywhere; }
.relation-row.pending { color: #777d78; }
.relation-group .relation-range { border-top: 1px solid var(--rule); }
.relation-group .relation-range > summary { padding: 12px 3px; cursor: pointer; font: 12px var(--font-ui); color: var(--accent); }

.article-section { display: grid; grid-template-columns: 178px minmax(0, 1fr); gap: 34px; padding: 45px 0; scroll-margin-top: 82px; }
.article-section h2 { margin: 0; font-size: 19px; line-height: 1.5; letter-spacing: -.035em; }
.section-copy { grid-column: 2; }
.article-section.wide-heading { grid-template-columns: 1fr; gap: 19px; }
.article-section.wide-heading .section-copy { grid-column: 1; }
.section-copy p { margin: 0; font-size: 16px; line-height: 2; color: #354139; }
.section-copy p + p { margin-top: 20px; }
.entity-link { color: var(--accent); text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: #8aa391; }
.entity-link:hover { background: #e6ece5; text-decoration-color: var(--accent); }
.section-copy dl { margin: 4px 0 0; }
.section-copy dl div { display: grid; grid-template-columns: 110px 1fr; gap: 20px; border-bottom: 1px solid var(--rule); padding: 13px 0; }
.section-copy dt { font-weight: 800; }
.section-copy dd { margin: 0; line-height: 1.75; color: #4f5c53; }

.sources, .history { margin-top: 58px; border-radius: 0; padding: 0; background: transparent; scroll-margin-top: 82px; }
.source-heading { display: grid; grid-template-columns: 1fr auto; align-items: end; border-bottom: 2px solid var(--ink); padding-bottom: 13px; }
.source-heading .eyebrow { grid-column: 1 / -1; }
.source-heading h2 { margin: 6px 0 0; font-size: 25px; }
.source-heading > span { font: 11px var(--font-ui); color: #6c756e; }
.source { display: grid; grid-template-columns: 1fr 145px; gap: 4px 22px; border-top: 1px solid var(--rule); padding: 22px 0; }
.source:first-of-type { border-top: 0; }
.source-title { grid-column: 1 / -1; }
.source-title strong { font-size: 15px; }
.source-title span { border: 0; font-size: 10px; }
.source-lane { grid-column: 1; justify-self: start; margin-top: 5px; border-radius: 0; padding: 3px 6px; background: #e4e8e1; }
.source p { grid-column: 1; margin: 10px 0 2px; font-size: 14px; line-height: 1.75; }
.source cite, .source-provider { grid-column: 1; }
.source-link { grid-column: 2; grid-row: 3 / span 3; align-self: end; justify-self: end; border-bottom: 1px solid var(--accent); padding-bottom: 3px; }
.history-row { display: grid; grid-template-columns: 105px 90px 1fr; gap: 18px; border-bottom: 1px solid var(--rule); padding: 16px 0; }
.history-row strong { font-size: 13px; }
.history-row span { font: 11px var(--font-ui); color: #788079; }
.history-row p { margin: 0; font-size: 13px; line-height: 1.6; color: #4f5a52; }
.history-archive { border-bottom: 1px solid var(--rule); }
.history-archive > summary { cursor: pointer; list-style: none; padding: 15px 2px; color: var(--accent); font: 700 12px/1.5 var(--font-ui); }
.history-archive > summary::-webkit-details-marker { display: none; }
.history-archive > summary::after { content: ' ＋'; }
.history-archive[open] > summary::after { content: ' －'; }
.history-archive > div { border-top: 1px solid var(--rule); }
.history-range, .history-empty { margin: 13px 0 0; color: var(--subtle); font: 11px/1.65 var(--font-ui); }
.caution { margin-top: 36px; border: 0; border-left: 3px solid #ae9b64; border-radius: 0; padding: 10px 0 10px 18px; background: transparent; }
body > footer.site-footer { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(280px, .72fr); gap: 34px 90px; align-items: start; max-width: 1180px; margin: 80px auto 0; padding: 38px 20px 42px; border-top: 1px solid var(--ink); text-align: left; }
.footer-primary { display: grid; gap: 20px; }
.footer-brand { display: grid; justify-items: start; gap: 11px; }
.footer-brand img { width: 226px; height: auto; }
.footer-brand span { color: var(--subtle); font-size: 12px; }
.footer-primary p { margin: 0; font: 12px var(--font-ui); color: var(--subtle); }
.footer-primary p a { border-bottom: 1px solid #aab2ac; color: var(--ink); }
.network-menu { width: 100%; font: 12px var(--font-ui); }
.network-menu summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 4px 0 14px; border-bottom: 1px solid var(--ink); cursor: pointer; list-style: none; }
.network-menu summary::-webkit-details-marker { display: none; }
.network-menu summary > span { display: grid; gap: 4px; }
.network-menu summary strong { color: var(--ink); font-size: 12px; }
.network-menu summary small { color: var(--subtle); font-size: 10px; font-weight: 400; }
.network-menu summary::after { content: ''; width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 160ms ease; }
.network-menu[open] summary::after { transform: translateY(2px) rotate(225deg); }
.network-menu nav { display: grid; gap: 0; margin-top: 4px; }
.network-menu nav a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--rule); color: #455248; }
.network-menu nav a:hover { color: var(--accent); }
.network-menu nav a span { color: #929a94; }
body > footer.site-footer > small { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--rule); color: #7b837d; font: 11px/1.6 var(--font-ui); }

.formula-records { margin: 0 0 64px; border-top: 2px solid var(--ink); padding-top: 26px; }
.formula-records-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.formula-records-head h2 { margin: 7px 0 0; font-size: 27px; letter-spacing: -.04em; }
.formula-records-head > span { color: var(--subtle); font: 12px var(--font-ui); }
.formula-records-intro { max-width: 620px; margin: 18px 0 28px; color: #5a655d; font: 14px/1.8 var(--font-ui); }
.formula-record { border-top: 1px solid var(--rule); }
.formula-record:last-child { border-bottom: 1px solid var(--rule); }
.formula-record > summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 4px; cursor: pointer; list-style: none; }
.formula-record > summary::-webkit-details-marker { display: none; }
.formula-record > summary span { display: grid; gap: 4px; }
.formula-record > summary small { color: var(--subtle); font: 11px var(--font-ui); }
.formula-record > summary strong { font-size: 18px; }
.formula-record > summary b { color: var(--accent); font: 700 11px var(--font-ui); white-space: nowrap; }
.formula-record > summary b::after { content: ' ＋'; }
.formula-record[open] > summary b::after { content: ' －'; }
.formula-record-body { padding: 4px 4px 30px; }
.record-summary { margin: 0 0 20px; color: #34453a; font-size: 16px; line-height: 1.85; }
.composition-scroll { overflow-x: auto; border: 1px solid var(--rule); background: #fffefa; }
.composition-scroll table { width: 100%; border-collapse: collapse; min-width: 520px; font: 13px/1.5 var(--font-ui); }
.composition-scroll th { background: #f2f0e7; color: #687168; text-align: left; font-size: 10px; letter-spacing: .08em; }
.composition-scroll th, .composition-scroll td { padding: 11px 13px; border-bottom: 1px solid var(--rule); }
.composition-scroll tbody tr:last-child td { border-bottom: 0; }
.composition-scroll td:first-child { font-weight: 750; }
.composition-scroll td:first-child a { color: var(--accent); border-bottom: 1px solid #9db2a4; }
.composition-scroll td small { display: block; margin-top: 2px; color: var(--subtle); font-size: 10px; font-weight: 400; }
.source-excerpt { margin: 20px 0 0; border-left: 2px solid #9caf9f; padding: 2px 0 2px 18px; }
.source-excerpt figcaption { color: var(--subtle); font: 700 10px var(--font-ui); letter-spacing: .08em; }
.source-excerpt blockquote { margin: 8px 0; color: #46534a; font-size: 14px; line-height: 1.8; }
.source-excerpt > small { color: var(--subtle); font: 10px var(--font-ui); }
.record-link { display: inline-block; margin-top: 18px; color: var(--accent); font: 750 12px var(--font-ui); }
.analytical-reading { margin: 0 0 64px; border-top: 2px solid var(--ink); padding-top: 26px; }
.reading-head h2 { margin: 7px 0 28px; font-size: 28px; letter-spacing: -.04em; }
.reading-section { display: grid; grid-template-columns: 180px 1fr; gap: 34px; padding: 25px 0; border-top: 1px solid var(--rule); }
.reading-section h3 { margin: 0; font-size: 17px; line-height: 1.45; }
.reading-section-body { display: grid; gap: 22px; min-width: 0; }
.reading-paragraph { display: grid; gap: 10px; }
.reading-paragraph + .reading-paragraph { border-top: 1px solid #e7e4da; padding-top: 20px; }
.reading-paragraph > p { margin: 0; color: #354139; font-size: 16px; line-height: 1.95; }
.evidence-chips { grid-column: 2; display: flex; flex-wrap: wrap; gap: 7px; }
.reading-section.wide-heading { grid-template-columns: 1fr; gap: 12px; }
.reading-section.wide-heading .evidence-chips { grid-column: 1; }
.evidence-chip { cursor: pointer; border: 1px solid #c6d1c8; border-radius: 999px; padding: 5px 9px; color: #476052; background: #f5f7f1; font: 700 10px var(--font-ui); transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.evidence-chip:hover { border-color: var(--accent); background: #eef3eb; transform: translateY(-1px); }
.evidence-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.evidence-chip sup { margin-left: 3px; color: var(--accent); }
.evidence-dialog { width: min(680px, calc(100vw - 32px)); max-height: min(82vh, 760px); margin: auto; border: 0; border-radius: 8px; padding: 0; color: var(--ink); background: #fffefa; box-shadow: 0 24px 80px rgba(20,38,27,.24); }
.evidence-dialog::backdrop { background: rgba(20,31,24,.46); backdrop-filter: blur(2px); }
.evidence-dialog-close { display: flex; justify-content: flex-end; width: auto; max-width: none; margin: 0; border: 0; border-radius: 0; padding: 15px 18px 0; background: transparent; box-shadow: none; }
.evidence-dialog-close button { cursor: pointer; border: 0; background: transparent; color: var(--subtle); font: 700 11px var(--font-ui); }
.evidence-dialog-close span { margin-left: 5px; font-size: 19px; vertical-align: -2px; }
.evidence-dialog-head { padding: 8px 40px 24px; border-bottom: 1px solid var(--rule); }
.evidence-dialog-head h2 { margin: 7px 0 14px; font-size: 27px; letter-spacing: -.035em; }
.evidence-dialog-meta { display: flex; flex-wrap: wrap; gap: 7px; color: #526158; font: 700 10px var(--font-ui); }
.evidence-dialog-meta span { border-radius: 999px; background: #f0f3ed; padding: 5px 9px; }
.evidence-dialog-body { overflow-y: auto; padding: 27px 40px 30px; }
.evidence-dialog-body > section + section { margin-top: 23px; border-top: 1px solid #e4e2d9; padding-top: 20px; }
.evidence-dialog-label { margin: 0 0 12px; color: var(--subtle); font: 750 10px var(--font-ui); letter-spacing: .04em; }
.evidence-dialog blockquote { margin: 0; white-space: pre-wrap; color: #344139; font: 15px/1.95 var(--font-cjk); }
.evidence-dialog-translation > p:last-child, .evidence-dialog-interpretation > p:last-child { margin: 0; color: #405047; font-size: 14px; line-height: 1.85; }
.evidence-dialog-interpretation > p:last-child { color: #59665e; }
.evidence-dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--rule); padding: 17px 40px 20px; }
.evidence-dialog-actions a, .evidence-dialog-actions button { color: var(--accent); font: 750 11px var(--font-ui); }
.evidence-dialog-actions button { cursor: pointer; border: 0; padding: 0; background: transparent; }
.narrative-evidence { margin-top: 22px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.narrative-evidence > summary { cursor: pointer; padding: 15px 2px; color: var(--accent); font: 750 12px var(--font-ui); }
.narrative-evidence article { padding: 18px 4px; border-top: 1px solid var(--rule); }
.narrative-evidence article strong { font-size: 13px; }
.narrative-evidence article p { margin: 8px 0; color: #58635b; font-size: 13px; line-height: 1.75; }
.narrative-evidence article a { color: var(--accent); font: 700 11px var(--font-ui); }
.narrative-scope { margin: 16px 0 0; color: #747d76; font: 11px/1.7 var(--font-ui); }

.passage-records { margin: 0 0 64px; border-top: 2px solid var(--ink); padding-top: 26px; }
.passage-records-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.passage-records-head h2 { margin: 7px 0 0; font-size: 28px; letter-spacing: -.04em; }
.passage-records-tools { display: flex; align-items: center; gap: 10px; }
.passage-records-tools > span { color: var(--subtle); font: 12px var(--font-ui); }
.passage-records-tools button { cursor: pointer; border: 1px solid #c9cec7; border-radius: 999px; padding: 6px 10px; background: transparent; color: var(--accent); font: 750 10px var(--font-ui); }
.passage-records-intro { max-width: 650px; margin: 18px 0 22px; color: #5a655d; font: 14px/1.8 var(--font-ui); }
.passage-filters { display: flex; gap: 10px; margin: 0 0 28px; }
.passage-filters label { display: grid; gap: 5px; color: var(--subtle); font: 700 10px var(--font-ui); }
.passage-filters select { min-width: 170px; border: 1px solid #c9cec7; border-radius: 4px; background: #fffefa; padding: 9px 30px 9px 10px; color: var(--ink); font: 12px var(--font-ui); }
.passage-list { border-bottom: 1px solid var(--rule); }
.passage-card { border-top: 1px solid var(--rule); }
.passage-card[hidden] { display: none; }
.passage-card-head { cursor: pointer; display: flex; align-items: start; justify-content: space-between; gap: 24px; padding: 24px 4px; list-style: none; }
.passage-card-head::-webkit-details-marker { display: none; }
.passage-card-head::after { content: '+'; flex: 0 0 auto; color: var(--accent); font: 18px/1 var(--font-ui); }
.passage-card[open] .passage-card-head::after { content: '−'; }
.passage-card-head small { color: var(--subtle); font: 11px var(--font-ui); }
.passage-card-head h3 { margin: 5px 0 0; font-size: 19px; line-height: 1.45; }
.passage-card-head > span { flex: 0 0 auto; margin-left: auto; border: 1px solid #c6d1c8; border-radius: 999px; padding: 5px 9px; color: var(--accent); background: #f5f7f1; font: 700 10px var(--font-ui); }
.passage-card-body { padding: 0 4px 30px; }
.passage-card section { display: grid; grid-template-columns: 116px minmax(0,1fr); gap: 22px; padding: 17px 0; border-top: 1px solid #e3e1d8; }
.passage-card h4 { margin: 0; color: #657168; font: 750 11px var(--font-ui); }
.passage-card blockquote, .passage-card section > p { margin: 0; color: #344139; font-size: 15px; line-height: 1.95; }
.passage-card blockquote { font-family: var(--font-cjk); }
.passage-card section > small { grid-column: 2; color: var(--subtle); font: 10px var(--font-ui); }
.passage-translation { background: linear-gradient(90deg, transparent, #f7f5ed 12%, #f7f5ed 88%, transparent); }
.passage-interpretation > p { color: #516057 !important; }
.passage-empty { padding: 28px 4px; color: var(--subtle); font: 13px var(--font-ui); }

.ingredient-role { color: var(--accent, #24553a); font-weight: 650; }

@media (max-width: 860px) {
  body > header nav:not(.primary-nav) { display: none; }
  .primary-nav { display: flex; }
  .primary-nav > a { display: none; }
  .summary-wide { display: none; }
  .summary-compact { display: inline; }
  .header-explore-panel { right: 0; width: min(390px, 86vw); }
  .header-research-links { display: grid !important; margin-top: 15px; border-top: 1px solid var(--rule); padding-top: 15px; }
  .global-search { width: min(48vw, 330px); margin-right: 0; }
  main { padding-top: 34px; }
  .hero { grid-template-columns: 1fr; padding-top: 20px; }
  .hero form, .world-filter { grid-column: 1; grid-row: auto; margin-top: 30px; }
  .world-filter { margin-top: 12px; }
  .results { grid-template-columns: repeat(2, 1fr); }
  .context-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .knowledge-entrances { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .knowledge-entrances a, .knowledge-entrances a:nth-child(n+5) { grid-column: span 1; }
  .knowledge-entrances a:nth-child(3n) { border-right: 0; }
  .search-view-head { grid-template-columns: 1fr; gap: 28px; }
  .result-search { max-width: none; }
  .result:nth-child(3n) { border-right: 1px solid var(--rule); }
  .result:nth-child(2n) { border-right: 0; }
  .page-layout { grid-template-columns: 1fr; gap: 0; }
  .page-index { position: static; display: none; }
  .api-demo-intro { grid-template-columns: 1fr 1fr; }
  .api-demo-intro .eyebrow { grid-column: 1 / -1; }
  .graph-neighbors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .api-contract, .api-access { grid-template-columns: 190px 1fr; gap: 45px; }
  .api-endpoints article { grid-template-columns: 110px 1fr; }
  .api-endpoints p { grid-column: 2; }
  body > footer.site-footer { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 620px) {
  body > header { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "brand nav" "search search"; height: auto; gap: 10px 14px; padding-top: 11px; padding-bottom: 10px; }
  .brand { grid-area: brand; }
  .brand img { width: 148px; }
  .primary-nav { grid-area: nav; justify-self: end; }
  .global-search { grid-area: search; width: 100%; margin: 0; }
  .global-search input { padding: 7px 2px; }
  .global-search-results { left: auto; right: 0; width: min(88vw, 430px); }
  main { padding: 22px 18px 80px; }
  .hero { padding-bottom: 52px; }
  .search-home { padding: 34px 0 40px; }
  .search-home h1 { margin-top: 13px; font-size: clamp(34px, 10.4vw, 41px); line-height: 1.2; letter-spacing: -.05em; }
  .search-home > p:not(.eyebrow) { max-width: 342px; font-size: 14px; line-height: 1.78; }
  .home-search { flex-direction: row; margin-top: 26px; padding: 5px 5px 5px 11px; }
  .home-search input { min-width: 0; padding: 11px 4px; font-size: 14px; }
  .home-search button { flex: 0 0 auto; padding: 0 18px; }
  .search-examples { justify-content: flex-start; flex-wrap: nowrap; gap: 4px; margin-right: -18px; padding-right: 18px; overflow-x: auto; scrollbar-width: none; }
  .search-examples::-webkit-scrollbar { display: none; }
  .search-examples span, .search-examples a { flex: 0 0 auto; }
  .atlas-pulse { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 -18px; }
  .pulse-intro { grid-column: 1 / -1; border-right: 0 !important; padding: 16px 18px 15px; }
  .pulse-intro p { max-width: 350px; margin-top: 5px; }
  .pulse-stat { min-width: 0; border-top: 1px solid var(--rule); padding: 15px 10px 14px; }
  .pulse-stat:nth-of-type(4) { border-right: 0; }
  .pulse-stat > strong { font-size: 24px; }
  .pulse-stat small { font-size: 9px; line-height: 1.45; word-break: keep-all; }
  .atlas-pulse > a { grid-column: 1 / -1; border-top: 1px solid var(--ink); padding: 14px 18px; }
  .status-head { padding: 18px 0 34px; }
  .status-head h1 { font-size: 44px; }
  .method-head { padding-bottom: 48px; }
  .method-head h1 { font-size: 48px; }
  .research-api-head { padding: 18px 0 48px; }
  .research-api-head h1 { font-size: 38px; line-height: 1.13; }
  .research-api-head > p:not(.eyebrow) { font-size: 15px; line-height: 1.8; }
  .api-demo { padding-top: 29px; }
  .api-demo-intro { grid-template-columns: 1fr; gap: 12px; }
  .api-demo-intro .eyebrow { grid-column: auto; }
  .graph-query-form { grid-template-columns: 1fr; gap: 13px; }
  .graph-query-form button { height: 45px; padding: 0 18px; }
  .graph-query-results { grid-template-columns: 1fr; gap: 16px; }
  .graph-seed { min-height: 125px; }
  .graph-neighbors { grid-template-columns: 1fr 1fr; }
  .graph-neighbors > a { min-height: 110px; padding: 13px; }
  .graph-response-meta { flex-direction: column; gap: 7px; }
  .api-contract, .api-access { grid-template-columns: 1fr; gap: 29px; padding: 56px 0; }
  .api-endpoints article { grid-template-columns: 1fr; gap: 8px; padding: 18px 0; }
  .api-endpoints p { grid-column: auto; }
  .api-access dl div { grid-template-columns: 1fr; gap: 7px; }
  .method-live { grid-template-columns: 1fr 1fr; }
  .method-live > div:nth-child(2) { border-right: 0; }
  .method-live > div { border-bottom: 1px solid var(--rule); }
  .method-section { grid-template-columns: 1fr; gap: 30px; padding: 58px 0; }
  .method-links { grid-template-columns: 1fr; }
  .research-spectrum > div:last-child { grid-template-columns: 1fr 1fr; }
  .status-totals { grid-template-columns: 1fr 1fr; }
  .status-totals > div:nth-child(2n) { border-right: 0; }
  .status-totals > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .status-totals strong { font-size: 29px; }
  .status-grid { grid-template-columns: 1fr; gap: 52px; padding: 52px 0; }
  .stage-bars > div,.world-bars > a,.world-bars > div { grid-template-columns: 94px 1fr 40px; gap: 10px; }
  .interest-summary { flex-direction: column; gap: 7px; }
  .knowledge-entrances { grid-template-columns: 1fr 1fr; }
  .knowledge-entrances a, .knowledge-entrances a:nth-child(n+5), .knowledge-entrances a:nth-child(3n) { grid-column: span 1; min-height: 104px; border-right: 1px solid var(--rule); padding: 18px 14px; }
  .knowledge-entrances a:nth-child(2n) { border-right: 0; }
  .knowledge-entrances a:last-child { grid-column: 1 / -1; min-height: 88px; border-right: 0; }
  .knowledge-entrances strong { font-size: 17px; }
  .knowledge-entrances small { font-size: 11px; line-height: 1.45; }
  .hero h1 { font-size: 43px; }
  .results { grid-template-columns: 1fr; }
  .search-output { padding-top: 48px; }
  .search-view { margin-top: 2px; }
  .search-back { margin-bottom: 20px; }
  .search-view-head { padding: 18px 0 34px; }
  .search-view-head h1 { font-size: 39px; }
  .search-view-head p:not(.eyebrow) { font-size: 13px; }
  .result-search { flex-direction: row; }
  .result-search input { min-width: 0; padding: 13px 3px; font-size: 14px; }
  .result-search button { flex: 0 0 auto; padding-left: 14px; }
  .search-output-active { padding-top: 34px; }
  .search-results { padding-top: 16px; }
  .search-primary { padding: 27px 20px 29px; }
  .search-primary h2 { margin-top: 23px; font-size: 35px; }
  .search-primary p { font-size: 13px; }
  .search-primary > strong { margin-top: 27px; }
  .search-group { margin-top: 42px; }
  .search-related { grid-template-columns: 1fr; }
  .search-related .search-row:nth-child(odd) { border-right: 0; }
  .search-related .search-row:nth-child(even) { padding-left: 0; }
  .search-row, .search-detail-body .search-row { grid-template-columns: 65px minmax(0,1fr) auto; gap: 10px; padding: 18px 2px; }
  .search-row > span > strong { font-size: 16px; }
  .search-detail-group { margin-top: 40px; }
  .search-detail-group > summary { align-items: flex-start; padding: 20px 2px; }
  .search-detail-group > summary span small { max-width: 230px; }
  .search-output .section-title { align-items: end; gap: 14px; }
  .search-output .section-title h2 { font-size: 25px; line-height: 1.3; }
  .search-output .section-title > span { flex: 0 0 auto; padding-bottom: 3px; font-size: 11px; }
  .context-groups { gap: 46px; }
  .context-grid { grid-template-columns: 1fr; }
  .context-result { min-height: 0; }
  .result, .result:nth-child(3n) { min-height: 0; border-right: 0; padding: 24px 15px 25px; }
  .result h3 { margin-top: 25px; font-size: 24px; }
  .result p { min-height: 0; font-size: 13px; line-height: 1.75; }
  .browse-head { display: block; margin-top: 18px; padding: 26px 0 30px; }
  .browse-head h1 { font-size: 46px; }
  .browse-controls { grid-template-columns: 1fr 132px; gap: 10px; }
  .browse-controls label:first-child { grid-column: 1 / -1; }
  .browse-controls button { padding: 0 13px; }
  .browse-output { padding-top: 10px; }
  .browse-result .browse-hanja { margin-bottom: 11px; font-size: 13px; }
  .browse-visual { height: 190px; }
  .pagination { grid-template-columns: 66px 1fr 66px; gap: 4px; font-size: 11px; }
  .pagination-pages { gap: 1px; }
  .pagination-pages a { width: 29px; height: 31px; }
  .wiki-topline > span { display: none; }
  .wiki-head, .wiki-head--illustrated { grid-template-columns: 1fr; gap: 30px; padding-top: 24px; }
  .wiki-head--person { grid-template-columns: 1fr; }
  .wiki-head--illustrated { grid-template-areas: "title" "aside" "details"; grid-template-rows: auto auto auto; }
  .wiki-title-block { padding: 0 0 4px; }
  .wiki-head h1 { margin-top: 20px; font-size: clamp(44px, 14vw, 56px); }
  .wiki-title-block .hanja { font-size: 18px; }
  .work-head-lead { margin: 0 0 24px; font-size: 18px; }
  .wiki-head-aside { display: grid; gap: 22px; }
  .work-visual { margin-bottom: 0; }
  .work-visual > a { padding: 10px; }
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
  .wiki--person > .fact-grid { grid-template-columns: repeat(2, 1fr); }
  .fact-grid div, .fact-grid div:first-child { border-bottom: 1px solid var(--rule); padding-left: 10px; }
  .fact-grid--hero div:nth-child(odd) { padding-left: 0; }
  .lead { font-size: 20px; }
  .article-section { grid-template-columns: 1fr; gap: 18px; }
  .section-copy { grid-column: 1; }
  .relation-row { grid-template-columns: 30px 1fr auto; }
  .relation-context .relation-row,
  .relation-formula .relation-row,
  .relation-passage .relation-row,
  .relation-ingredient .relation-row { grid-template-columns: minmax(0, 1fr) auto; }
  .relation-row > span { display: block; }
  .relation-row small { display: block; margin-bottom: 3px; }
  .source { grid-template-columns: 1fr; }
  .source-link { grid-column: 1; grid-row: auto; justify-self: start; }
  .history-row { grid-template-columns: 85px 1fr; }
  .history-row p { grid-column: 1 / -1; }
  .formula-records { margin-bottom: 48px; }
  .formula-record > summary { align-items: end; }
  .passage-records { margin-bottom: 48px; }
  .passage-filters { display: grid; grid-template-columns: 1fr 1fr; }
  .passage-filters select { width: 100%; min-width: 0; }
  .passage-card section { grid-template-columns: 1fr; gap: 8px; }
  .passage-card section > small { grid-column: 1; }
  .reading-section { grid-template-columns: 1fr; gap: 10px; }
  .evidence-dialog-head, .evidence-dialog-body { padding-left: 22px; padding-right: 22px; }
  .evidence-dialog-actions { align-items: flex-start; flex-direction: column; padding-left: 22px; padding-right: 22px; }
  .evidence-chips { grid-column: 1; }
  body > footer.site-footer { margin-top: 52px; padding: 30px 18px 36px; }
}
