/* BLISS Research Library. Original design reference: bliss-reference/index.html.
   Local-first: system fonts remain fully usable when web fonts are unavailable. */
:root {
  --bg: #fafafa;
  --white: #fff;
  --text: #1a1a1a;
  --text-secondary: #555;
  --text-muted: #696969;
  --accent: #0055ff;
  --accent-dark: #0044cc;
  --accent-soft: #e8effe;
  --border: #e5e5e5;
  --border-light: #efefef;
  --max-width: 1320px;
  --gutter: 36px;
  --sans: "Inter", "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --brand: "Space Grotesk", "Inter", -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
html:lang(ko) body { font-family: "Pretendard Variable", "Pretendard", var(--sans); word-break: keep-all; }
h1, h2, h3, h4, p, ul, ol, dl, blockquote, figure { margin: 0; }
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -.025em; text-wrap: balance; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent-dark); }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
input, select, button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:disabled { cursor: default; }
img, svg { max-width: 100%; height: auto; }
img { display: block; }
[hidden] { display: none !important; }
::selection { background: #cbdcff; color: #131313; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
:target { scroll-margin-top: 100px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 20px; top: -90px; z-index: 100; padding: 12px 20px; background: var(--accent); color: var(--white); font-weight: 600; border-radius: 4px; }
.skip-link:focus { top: 12px; color: var(--white); }
.container { width: min(100%, var(--max-width)); padding-inline: var(--gutter); margin-inline: auto; }
main.container { min-height: 65vh; }

/* The header works with direct children or an optional .header-inner wrapper. */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(250,250,250,.97); border-bottom: 1px solid var(--border); }
.site-header, .header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-header { min-height: 72px; padding: 12px max(var(--gutter), calc((100vw - var(--max-width)) / 2 + var(--gutter))); }
.site-header:has(> .header-inner) { padding: 0; }
.header-inner { width: min(100%, var(--max-width)); min-height: 72px; padding: 12px var(--gutter); margin-inline: auto; }
.brand { display: inline-flex; flex-shrink: 0; align-items: baseline; gap: 8px; font-family: var(--brand); font-size: 1.35rem; font-weight: 700; line-height: 1.2; letter-spacing: -.025em; color: var(--text); text-decoration: none; }
.brand span, .brand .accent { color: var(--accent); }
.brand small { font-family: var(--sans); font-size: .66rem; font-weight: 500; letter-spacing: .03em; color: var(--text-secondary); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 26px; }
.nav a { padding-block: 8px; font-size: .8rem; font-weight: 500; color: var(--text-secondary); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 9px; text-decoration-thickness: 2px; }
.lang-switch { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 5px 12px !important; border: 1px solid #d5d5d5; border-radius: 4px; color: var(--text-secondary); font-size: .72rem !important; font-weight: 600; letter-spacing: .035em; text-decoration: none; }
.lang-switch:hover { border-color: var(--accent); color: var(--accent); }
.menu-toggle { display: none; min-height: 44px; padding: 8px 14px; background: var(--white); border: 1px solid var(--border); border-radius: 4px; font-size: .8rem; font-weight: 600; }

/* Editorial scale and the same restrained blue accent as the BLISS homepage. */
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; color: var(--accent); font-family: var(--brand); font-size: .69rem; font-weight: 600; line-height: 1.5; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 24px; height: 2px; flex: 0 0 24px; background: currentColor; }
.hero { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(280px,.8fr); align-items: start; gap: clamp(32px,5vw,76px); padding: 76px 0 58px; }
.hero-copy { min-width: 0; }
.hero h1 { max-width: 870px; margin-bottom: 24px; font-family: var(--serif); font-size: clamp(2.65rem,4.7vw,4.2rem); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; overflow-wrap: anywhere; }
.hero h1 em { color: var(--accent); font-weight: 400; }
html:lang(ko) .hero h1:not([lang="en"]) { font-family: "Pretendard Variable", "Pretendard", var(--sans); font-size: clamp(2.2rem,4vw,3.55rem); font-weight: 650; line-height: 1.2; }
.hero-copy > p:not(.eyebrow), .hero-copy .lead { max-width: 740px; color: var(--text-secondary); font-size: 1rem; line-height: 1.9; }
.hero-copy > p + p { margin-top: 14px; }
.hero-aside { margin-top: 4px; padding: 26px; border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: 0 0 6px 6px; background: var(--white); }
.hero-aside > * + * { margin-top: 15px; }
.hero-aside h2, .hero-aside h3 { font-size: 1rem; line-height: 1.5; }
.hero-aside p, .hero-aside li { font-size: .83rem; color: var(--text-secondary); }
.hero-aside ul { padding-left: 19px; }
.hero-aside .eyebrow { margin-bottom: 10px; }
.hero-actions, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.button, .btn-primary, .btn-outline { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border: 1px solid var(--accent); border-radius: 5px; background: var(--accent); color: var(--white); font-size: .82rem; font-weight: 600; line-height: 1.5; text-decoration: none; }
.button:hover, .btn-primary:hover { background: var(--accent-dark); color: var(--white); }
.button.secondary, .btn-outline { background: transparent; border-color: #d5d5d5; color: var(--text); }
.button.secondary:hover, .btn-outline:hover { background: var(--white); border-color: var(--text); }
.text-link { font-size: .84rem; font-weight: 600; }
.stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-block: 1px solid var(--border); margin: 0 0 56px; }
.stat { min-width: 0; padding: 24px 28px; border-right: 1px solid var(--border); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat strong, .stat .stat-number { display: block; margin-bottom: 4px; font-family: var(--brand); color: var(--text); font-size: 1.8rem; font-weight: 600; line-height: 1.25; letter-spacing: -.035em; }
.stat span, .stat p, .stat small { display: block; color: var(--text-secondary); font-size: .77rem; line-height: 1.55; }
.hero-aside .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); margin-bottom: 0; border-bottom: 0; }
.hero-aside .stat { padding: 15px 12px; }
.hero-aside .stat:nth-child(2n) { border-right: 0; }
.hero-aside .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
.hero-aside .stat strong { font-size: 1.5rem; }
.small { font-size: .78rem; line-height: 1.85; color: var(--text-secondary); }
.lead { max-width: 880px; color: var(--text-secondary); font-size: 1rem; line-height: 1.9; }
.page-heading { padding: 42px 0 42px; }
.page-heading > * + * { margin-top: 18px; }
.page-heading > .eyebrow { margin: 0 0 16px; max-width: 800px; }
.page-heading h1 { max-width: 1050px; font-family: var(--serif); font-size: clamp(2.2rem,3.9vw,3.4rem); font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
.page-heading .paper-title { max-width: 1120px; font-size: clamp(2rem,3.15vw,2.85rem); line-height: 1.22; text-wrap: initial; }
.page-heading .paper-meta { align-items: center; gap: 12px 20px; }
.page-heading .paper-meta .eyebrow { margin: 0; }
.page-heading .authors { max-width: 980px; color: var(--text-secondary); font-size: .85rem; line-height: 1.9; }
.page-heading > a { display: inline-block; margin-top: 12px; font-size: .85rem; overflow-wrap: anywhere; }
.page-heading .lead { margin-top: 18px; }
.page-heading .authors + .lead { margin-top: 11px; font-size: .91rem; }
.page-heading + .notice { margin-top: 0; }

.section { padding: 14px 0 60px; }
.section + .section { padding-top: 22px; }
.section-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 28px; margin-bottom: 26px; }
.section-heading h2 { font-family: var(--serif); font-size: clamp(1.8rem,2.7vw,2.45rem); font-weight: 700; letter-spacing: -.02em; }
html:lang(ko) .section-heading h2:not([lang="en"]) { font-family: "Pretendard Variable", "Pretendard", var(--sans); font-size: clamp(1.55rem,2.3vw,2rem); }
.section-heading p { max-width: 600px; margin-top: 10px; color: var(--text-secondary); font-size: .86rem; }
.section-heading > p { flex-basis: 100%; margin-top: 0; }
.section-heading .eyebrow { margin-bottom: 10px; }
.theme-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.theme-card { position: relative; display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 30px; border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: 6px; background: var(--white); color: var(--text); text-decoration: none; }
.theme-card[data-theme="tissue-coupling"], .theme-card[data-theme="tissue"] { --theme-color: #0055ff; }
.theme-card[data-theme="deformable-electrical-routing"], .theme-card[data-theme="routing"] { --theme-color: #6a1b9a; }
.theme-card[data-theme="component-integration"], .theme-card[data-theme="integration"] { --theme-color: #b8421e; }
.theme-card[data-theme="host-interaction"], .theme-card[data-theme="host"] { --theme-color: #00796b; }
.theme-card { border-top-color: var(--theme-color,var(--accent)); }
.theme-card h3 { font-size: 1.17rem; line-height: 1.35; }
.theme-card h3 a { color: var(--text); text-decoration: none; }
.theme-card h3 a:hover { color: var(--accent); text-decoration: underline; }
.theme-card p, .theme-card li { color: var(--text-secondary); font-size: .87rem; line-height: 1.8; }
.theme-card ul { padding-left: 19px; }
.theme-card .theme-index { font-family: var(--brand); color: var(--theme-color,var(--accent)); font-size: .7rem; font-weight: 600; letter-spacing: .1em; }
.theme-card .text-link, .theme-card .card-footer { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border-light); }
.theme-card .eyebrow { margin-bottom: 0; }
.theme-card .eyebrow::before { display: none; }
@media (hover:hover) { a.theme-card:hover { border-color: #b2c8fa; color: var(--text); box-shadow: 0 8px 24px rgba(0,0,0,.035); } }
.tag-list, .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag, .badge { display: inline-flex; align-items: center; max-width: 100%; padding: 3px 8px; border: 1px solid #e1e5ed; border-radius: 3px; background: #f5f7fa; color: #4b566b; font-size: .69rem; font-weight: 500; line-height: 1.6; vertical-align: middle; text-decoration: none; overflow-wrap: anywhere; }
.tag a { color: inherit; }
.badge { background: var(--accent-soft); border-color: #d2defa; color: #234e9e; }
.badge.pending, .badge[data-status="pending"] { background: #fff9ec; border-color: #eadabc; color: #77591d; }
.badge.verified, .badge[data-status="verified"] { background: #eef7f3; border-color: #cee6db; color: #21674b; }
.badge.neutral, .badge[data-status="unverified"] { background: #f3f3f3; border-color: #e0e0e0; color: #5b5b5b; }
.badge[data-level="catalogue"] { background: #f3f3f3; border-color: #e0e0e0; color: #5b5b5b; }
.badge[data-level="metadata"] { background: #f0f3f9; border-color: #dce2ec; color: #4b5870; }
.badge[data-level="abstract"] { background: var(--accent-soft); border-color: #d2defa; color: #234e9e; }
.badge[data-level="full_text"] { background: #eef7f3; border-color: #cee6db; color: #21674b; }
.badge.ambiguity { background: #fff9ec; border-color: #eadabc; color: #77591d; }
.correspondence-badge { border-style: dashed; }
.correspondence-badge[data-correspondence="confirmed_corresponding"] { background: #eff3ff; border-color: #a9bce7; color: #2e4b8a; }
.correspondence-badge[data-correspondence="confirmed_not_corresponding"] { background: #f5f5f5; border-color: #c8c8c8; color: #565656; }
.correspondence-badge[data-correspondence="unresolved"] { background: #fff9ee; border-color: #d7be8c; color: #735b2d; }
.correspondence-overview { margin: 0 0 28px; padding: 22px 24px; border: 1px solid var(--border); border-left: 3px solid var(--accent); background: var(--white); border-radius: 0 5px 5px 0; }
.correspondence-overview h2 { font-size: 1rem; line-height: 1.5; margin-bottom: 10px; }
.correspondence-overview > p { color: var(--text-secondary); font-size: .84rem; line-height: 1.8; }
.correspondence-overview > p.small { margin-top: 14px; font-size: .77rem; }
.correspondence-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.correspondence-jump a { min-height: 36px; padding: 5px 11px; }
.correspondence-filter-note { margin: 0 0 18px; color: var(--text-secondary); font-size: .8rem; line-height: 1.8; }
.correspondence-review { padding: 24px; border: 1px solid var(--border); border-radius: 5px; background: var(--white); }
.correspondence-review .proof-notation { margin-block: 7px 0; color: var(--text); font-size: .8rem; overflow-wrap: anywhere; }
.correspondence-review .correspondence-scope, .depth-review-scope dl { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); font-size: .8rem; }
.correspondence-proofs li + li { margin-top: 18px; }
.depth-review-scope { margin-block: 20px; }
.concept-figure figcaption > strong { color: #514b85; }
.figure-pending { color: #735b2d; }
.notice { margin-block: 24px; padding: 18px 22px; border: 1px solid #d9e3f7; border-left: 3px solid var(--accent); border-radius: 0 4px 4px 0; background: #f2f6fe; color: #35496f; font-size: .85rem; line-height: 1.8; }
.notice > * + * { margin-top: 8px; }
.notice strong { color: #223d6a; }
.notice ul, .notice ol { padding-left: 20px; }
.notice.warning, .notice.pending { background: #fdfaf4; border-color: #e8dfcb; border-left-color: #9c7a33; color: #695735; }
.notice.warning strong, .notice.pending strong { color: #594521; }
.notice.compact { padding: 12px 16px; font-size: .79rem; }

/* Filtered lists remain regular HTML lists when JavaScript is unavailable. */
.filters { display: none; }
.filters[data-filters-ready="true"] { display: grid; grid-template-columns: minmax(200px,1.7fr) repeat(2,minmax(160px,1fr)); gap: 16px; padding: 22px; margin: 0 0 20px; border: 1px solid var(--border); border-radius: 6px; background: var(--white); }
.filters.has-correspondence[data-filters-ready="true"] { grid-template-columns: minmax(190px,1.5fr) repeat(3,minmax(150px,1fr)); }
.filters > * { min-width: 0; }
.filters label { display: block; color: var(--text-secondary); font-size: .76rem; font-weight: 600; }
.filters label input, .filters label select { margin-top: 7px; }
.filters input, .filters select { display: block; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #d8d8d8; border-radius: 4px; background: var(--white); color: var(--text); font-size: .84rem; line-height: 1.4; }
.filters input::placeholder { color: #767676; }
.filters .filter-search { grid-column: auto; }
.filters .filter-summary { grid-column: 1/-1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.filters button { min-height: 36px; padding: 4px 10px; border: 1px solid #d8d8d8; border-radius: 4px; background: var(--white); color: var(--text-secondary); font-size: .77rem; }
#result-count { color: var(--text-secondary); font-size: .79rem; font-variant-numeric: tabular-nums; }
.paper-list { list-style: none; display: grid; gap: 12px; padding: 0; margin-top: 18px; }
.paper-card { min-width: 0; padding: 24px 27px; border: 1px solid var(--border); border-radius: 5px; background: var(--white); }
.paper-card > * + * { margin-top: 11px; }
.paper-card h2, .paper-card h3 { max-width: 1000px; font-family: var(--sans); font-size: 1.04rem; font-weight: 600; line-height: 1.55; letter-spacing: -.015em; text-wrap: initial; overflow-wrap: anywhere; }
.paper-card h2 a, .paper-card h3 a { color: var(--text); text-decoration: none; }
.paper-card h2 a:hover, .paper-card h3 a:hover { color: var(--accent); text-decoration: underline; }
.paper-card p { color: var(--text-secondary); font-size: .84rem; line-height: 1.8; overflow-wrap: anywhere; }
.paper-card .paper-number { color: var(--accent); font-family: var(--brand); font-size: .7rem; font-weight: 600; letter-spacing: .06em; }
.paper-card .paper-journal { color: #6a6a6a; font-size: .78rem; }
.paper-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 14px; color: var(--text-secondary); font-size: .76rem; line-height: 1.65; }
.paper-meta a, .doi { overflow-wrap: anywhere; }
.paper-meta .authors { flex-basis: 100%; }
.paper-card .paper-meta p { font-size: inherit; }
.paper-card .card-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 15px; }
.paper-card .tag, .paper-card .badge { margin-right: 3px; }
.paper-card .read-link { display: inline-flex; min-height: 36px; align-items: center; font-size: .78rem; font-weight: 600; }
.empty-state { padding: 44px 24px; margin-block: 20px; border: 1px dashed #c5ccda; border-radius: 5px; background: var(--white); color: var(--text-secondary); text-align: center; }

/* Static article pages, provenance, and comparison content. */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; margin: 28px 0 0; color: var(--text-muted); font-size: .74rem; line-height: 1.7; overflow-wrap: anywhere; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 9px; padding: 0; }
.breadcrumbs li + li::before { content: "/"; padding-right: 9px; color: #a0a0a0; }
.breadcrumbs a { color: var(--text-secondary); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumbs + .hero { padding-top: 42px; }
.content-grid { display: grid; grid-template-columns: minmax(0,1fr) 285px; gap: 48px; align-items: start; padding-bottom: 64px; }
.article-body { min-width: 0; }
.article-body > .section { padding-bottom: 40px; }
.article-body > section + section { margin-top: 34px; }
.article-body h2 { margin-bottom: 18px; font-size: 1.4rem; line-height: 1.4; }
.article-body h3 { margin: 24px 0 12px; font-size: 1.05rem; line-height: 1.5; }
.article-body .paper-card h3 { margin: 0; }
.article-body .section-heading h2 { margin-bottom: 0; }
.sidebar { position: sticky; top: 100px; display: grid; gap: 20px; min-width: 0; }
.sidebar > section, .sidebar > .sidebar-card { min-width: 0; padding: 22px; border: 1px solid var(--border); border-radius: 5px; background: var(--white); overflow-wrap: anywhere; }
.sidebar h2, .sidebar h3 { margin-bottom: 14px; font-size: .87rem; line-height: 1.5; }
.sidebar p, .sidebar li, .sidebar dt, .sidebar dd { color: var(--text-secondary); font-size: .77rem; line-height: 1.85; }
.sidebar ul, .sidebar ol { padding-left: 18px; }
.sidebar li + li { margin-top: 7px; }
.sidebar a { overflow-wrap: anywhere; }
.sidebar nav a { display: block; padding: 5px 0; font-size: .78rem; }
.sidebar dt { font-weight: 600; color: var(--text); }
.sidebar dd { margin: 2px 0 12px; }
.sidebar .notice { margin: 0; padding: 16px; }
.sidebar section > * + * { margin-top: 10px; }
.sidebar section h3:not(:first-child) { padding-top: 13px; border-top: 1px solid var(--border-light); }
.sidebar section > .eyebrow { margin-bottom: 13px; }
.sidebar section > a { display: inline-block; font-size: .77rem; }
.prose { font-size: .95rem; line-height: 1.9; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 16px; }
.prose section > * + * { margin-top: 14px; }
.prose section + section { margin-top: 32px; }
.container > .prose { max-width: 940px; padding-bottom: 60px; }
.container > .prose h2 { font-size: 1.35rem; line-height: 1.5; }
.prose p, .prose li { color: #444; }
.prose h2, .prose h3, .prose h4 { color: var(--text); }
.prose h2 { margin-top: 38px; }
.prose h3 { margin-top: 28px; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 23px; }
.prose li + li { margin-top: 9px; }
.prose blockquote { padding: 12px 20px; border-left: 2px solid var(--accent); background: #f1f5fd; color: var(--text-secondary); }
.prose dl { display: grid; grid-template-columns: minmax(120px,.3fr) minmax(0,1fr); gap: 13px 24px; }
.prose dt { font-weight: 600; }
.prose dd { margin: 0; color: var(--text-secondary); }
.prose code { padding: .1em .3em; border: 1px solid var(--border); border-radius: 3px; background: #f1f1f1; font-size: .88em; overflow-wrap: anywhere; }
.prose pre { padding: 18px; overflow: auto; background: #f1f1f1; border: 1px solid var(--border); border-radius: 4px; }
.prose pre code { border: 0; padding: 0; }
.related-paper { margin-top: 18px; padding: 22px 24px; background: var(--white); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 0 5px 5px 0; }
.related-paper > * + * { margin-top: 12px; }
.related-paper h3, .prose .related-paper h3:first-child { margin: 0; font-family: var(--serif); font-size: 1.15rem; line-height: 1.45; letter-spacing: -.015em; }
.related-paper > p { font-size: .86rem; }
.related-paper .small { font-size: .77rem; }
.source-list { padding-left: 22px; color: var(--text-secondary); font-size: .82rem; line-height: 1.85; overflow-wrap: anywhere; }
.source-list li + li { margin-top: 16px; }
.source-list strong { color: var(--text); font-weight: 600; }
.source-list small { display: block; margin-top: 4px; color: var(--text-muted); font-size: .74rem; }
.table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: 5px; background: var(--white); }
.comparison-table { width: 100%; border-collapse: collapse; font-size: .79rem; line-height: 1.75; }
.comparison-table caption { padding: 15px 18px; color: var(--text-secondary); font-size: .78rem; text-align: left; caption-side: top; }
.comparison-table th, .comparison-table td { padding: 16px 18px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.comparison-table thead th { color: #424c5f; background: #f0f3f8; font-size: .73rem; font-weight: 600; }
.comparison-table tbody th { font-weight: 600; }
.comparison-table td { color: var(--text-secondary); }
.comparison-table tr:last-child > * { border-bottom: 0; }
.comparison-table a { overflow-wrap: anywhere; }
.comparison-table ul { padding-left: 17px; }
.comparison-table .badge, .comparison-table .tag { font-size: .65rem; }
.comparison-table .badge + .badge { margin-top: 4px; }
.site-footer { margin-top: 28px; padding: 34px 0; border-top: 1px solid var(--border); background: #f6f6f6; }
.site-footer > .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 22px 40px; }
.site-footer p, .site-footer small { max-width: 690px; color: var(--text-secondary); font-size: .73rem; line-height: 1.8; }
.site-footer .brand { margin-bottom: 11px; font-size: 1.1rem; }
.site-footer a:not(.brand) { color: var(--text-secondary); }
.site-footer > .container > strong { flex-basis: 100%; font-family: var(--brand); font-size: .88rem; font-weight: 600; }
.site-footer > .container > a { font-size: .73rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: .75rem; }

@media (min-width:1400px) { .hero { padding-top: 88px; } }
@media (max-width:1050px) {
  :root { --gutter: 28px; }
  .site-header, .header-inner { gap: 20px; }
  .nav { gap: 17px; }
  .hero { grid-template-columns: minmax(0,1.25fr) minmax(250px,.8fr); gap: 32px; padding-top: 56px; }
  .hero h1 { font-size: 3.25rem; }
  .hero-aside { padding: 22px; }
  .content-grid { grid-template-columns: minmax(0,1fr) 250px; gap: 28px; }
  .theme-card { padding: 25px; }
  .stat { padding-inline: 20px; }
  .comparison-table th, .comparison-table td { padding: 13px; }
}
@media (max-width:800px) {
  :root { --gutter: 22px; }
  html { scroll-padding-top: 90px; }
  .site-header { position: relative; }
  .site-header, .header-inner { flex-wrap: wrap; gap: 8px 18px; }
  .site-header { padding-block: 14px; }
  .site-header:has(> .header-inner) { padding: 0; }
  .header-inner { padding-block: 14px; }
  .brand { font-size: 1.25rem; }
  .nav { flex-basis: 100%; justify-content: flex-start; gap: 8px 24px; padding: 12px 0 2px; }
  .nav a { min-height: 40px; display: inline-flex; align-items: center; }
  .site-header[data-menu-ready="true"] .menu-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
  .site-header[data-menu-ready="true"][data-menu-open="false"] .nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 30px; padding: 44px 0 36px; }
  .hero h1 { font-size: clamp(2.6rem,6.8vw,3.5rem); max-width: 690px; }
  html:lang(ko) .hero h1:not([lang="en"]) { font-size: clamp(2.1rem,5.7vw,3rem); }
  .hero-copy > p:not(.eyebrow) { font-size: .94rem; }
  .hero-aside { margin-top: 0; padding: 22px; }
  .stat-grid { margin-bottom: 38px; }
  .stat { padding: 20px 16px; }
  .stat strong { font-size: 1.6rem; }
  .content-grid { grid-template-columns: 1fr; gap: 30px; }
  .sidebar { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sidebar > .notice { grid-column: 1/-1; }
  .filters[data-filters-ready="true"] { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 18px; }
  .filters.has-correspondence[data-filters-ready="true"] { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .filters.has-correspondence > label:last-of-type { grid-column: 1/-1; }
  .filters .filter-search, .filters > label:first-child, .filters > div:first-child { grid-column: 1/-1; }
  .table-wrap .comparison-table { min-width: 620px; }
  .section { padding-bottom: 44px; }
  .breadcrumbs { margin-top: 24px; }
  .breadcrumbs + .hero { padding-top: 32px; }
  .page-heading { padding: 34px 0 36px; }
  .page-heading h1 { font-size: clamp(2rem,5.8vw,3rem); }
  .page-heading .paper-title { font-size: clamp(1.85rem,4.8vw,2.5rem); }
}
@media (max-width:560px) {
  :root { --gutter: 20px; }
  body { font-size: 15px; }
  .brand { flex-wrap: wrap; gap: 4px 7px; }
  .brand small { display: none; }
  .hero { padding-top: 36px; }
  .hero h1 { font-size: 2.68rem; line-height: 1.1; margin-bottom: 20px; }
  html:lang(ko) .hero h1:not([lang="en"]) { font-size: 2.12rem; line-height: 1.25; }
  .eyebrow { font-size: .64rem; letter-spacing: .11em; margin-bottom: 15px; }
  .hero-copy > p:not(.eyebrow), .hero-copy .lead { font-size: .9rem; }
  .page-heading { padding: 28px 0 32px; }
  .page-heading h1 { font-size: 2.05rem; line-height: 1.22; }
  .page-heading .paper-title { font-size: 1.8rem; line-height: 1.28; }
  .page-heading .authors { font-size: .77rem; }
  .lead { font-size: .89rem; }
  .page-heading .authors + .lead, .page-heading > a { font-size: .8rem; }
  .hero-aside { padding: 20px; }
  .hero-actions, .actions { gap: 10px; }
  .button, .btn-primary, .btn-outline { padding-inline: 16px; }
  .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stat { padding: 18px 15px; }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
  .stat strong { font-size: 1.7rem; }
  .theme-grid { grid-template-columns: 1fr; gap: 16px; }
  .theme-card { padding: 24px 22px; gap: 14px; }
  .theme-card h3 { font-size: 1.12rem; }
  .section-heading { gap: 12px; margin-bottom: 22px; }
  .section-heading h2 { font-size: 1.9rem; }
  html:lang(ko) .section-heading h2:not([lang="en"]) { font-size: 1.5rem; }
  .section-heading p { font-size: .82rem; }
  .notice { padding: 16px 17px; font-size: .8rem; }
  .correspondence-overview, .correspondence-review { padding: 20px 18px; }
  .filters[data-filters-ready="true"] { gap: 13px; padding: 16px; }
  .filters input, .filters select { font-size: 16px; }
  .filters label { font-size: .73rem; }
  .paper-card { padding: 21px 19px; }
  .paper-card h2, .paper-card h3 { font-size: .98rem; line-height: 1.6; }
  .paper-card p { font-size: .8rem; }
  .paper-meta { gap: 5px 10px; font-size: .71rem; }
  .tag, .badge { font-size: .65rem; }
  .sidebar { grid-template-columns: 1fr; }
  .article-body h2 { font-size: 1.3rem; }
  .prose { font-size: .88rem; }
  .prose dl { grid-template-columns: 1fr; gap: 4px; }
  .prose dd { margin-bottom: 14px; }
  .source-list { font-size: .78rem; }
  .related-paper { padding: 20px 18px; }
  .related-paper h3, .prose .related-paper h3:first-child { font-size: 1.07rem; }
  .related-paper > p { font-size: .81rem; }
  .site-footer { margin-top: 12px; padding: 28px 0; }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print {
  :root { --gutter: 0; }
  body { background: #fff; font-size: 10pt; }
  .site-header, .filters, .menu-toggle, .skip-link, .hero-actions, .sidebar { display: none !important; }
  main.container { max-width: none; width: 100%; }
  .hero, .content-grid { display: block; padding: 18pt 0; }
  .hero h1, html:lang(ko) .hero h1:not([lang="en"]) { font-size: 25pt; }
  .hero-aside { margin-top: 20pt; }
  .theme-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .theme-card, .paper-card, .notice { break-inside: avoid; }
  a { color: #174a99; }
  .table-wrap { overflow: visible; }
  .table-wrap .comparison-table { min-width: 0; }
  .comparison-table { font-size: 8pt; }
  .site-footer { background: #fff; }
}

/* Subtheme navigation keeps long catalogues directly addressable. */
.subtheme-links { display:flex; flex-wrap:wrap; gap:10px; margin:28px 0 8px; }
.subtheme-links .tag { padding:9px 12px; font-size:.82rem; }
.subtheme-links .tag span { margin-left:6px; color:var(--accent); }

/* Image-led local hero. The supplied concept image remains whole and uncropped. */
.library-hero { padding:38px 0 32px; border-bottom:1px solid #cbd0d8; }
.hero-visual-layout { display:grid; grid-template-columns:minmax(0,36fr) minmax(0,64fr); align-items:center; gap:26px; }
.hero-statement { min-width:0; padding:12px 0 30px; }
.hero-kicker { margin-bottom:19px; color:var(--text-secondary); font-family:var(--brand); font-size:.68rem; font-weight:600; letter-spacing:.11em; text-transform:uppercase; }
.hero-statement h1 { margin:0 0 24px; color:var(--accent); font-family:var(--serif); font-size:clamp(2.8rem,4.2vw,3.75rem); font-weight:500; line-height:1.04; letter-spacing:-.045em; text-wrap:balance; }
html:lang(ko) .hero-statement h1 { font-family:var(--sans); font-size:clamp(2.45rem,3.25vw,3rem); font-weight:650; line-height:1.18; letter-spacing:-.055em; }
.hero-deck { max-width:370px; color:var(--text-secondary); font-size:.97rem; line-height:1.85; }
.hero-statement .hero-actions { align-items:flex-start; gap:18px 24px; margin-top:28px; }
.hero-statement .btn-primary { gap:20px; border-radius:2px; }
.hero-statement .text-link { align-self:center; font-size:.8rem; white-space:nowrap; }
.hero-figure { min-width:0; margin:0; }
.hero-figure img { display:block; width:100%; height:auto; aspect-ratio:3/2; object-fit:contain; background:#fff; }
.hero-figure figcaption { margin-top:12px; color:var(--text-muted); font-size:.66rem; line-height:1.65; }
.interface-no { font-family:var(--brand); color:var(--accent); font-size:.68rem; letter-spacing:.07em; }
.interface-section { padding-top:44px; }
.interface-index { border-top:1px solid #b9bec8; }
.interface-row { display:grid; grid-template-columns:34px minmax(0,1.3fr) minmax(0,1.5fr) 96px; align-items:start; gap:25px; padding:31px 0; border-bottom:1px solid #d5d8df; }
.interface-row h3 { font-family:var(--serif); font-weight:500; font-size:1.65rem; line-height:1.2; max-width:290px; }
.interface-row h3 a { text-decoration:none; color:var(--text); }
.interface-row h3 a:hover { color:var(--accent); }
.boundary-label { font-size:.67rem; margin-bottom:12px; color:#666d78; }
.interface-row > p { font-size:.84rem; line-height:1.95; color:#555; }
.interface-count { text-align:right; }
.interface-count strong { display:block; font-family:var(--serif); font-size:2rem; font-weight:400; line-height:1; }
.interface-count span { display:block; color:#666; font-size:.65rem; margin:7px 0 12px; }
.interface-count a { font-size:.72rem; }
.index-note { font-size:.73rem; color:#696f78; max-width:940px; margin-top:22px; line-height:1.85; }
.selected-briefs .paper-list { grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 40px; }
.selected-briefs .paper-card { padding:25px 0; background:none; border:0; border-top:1px solid #d5d8df; border-radius:0; }
.selected-briefs .paper-card h3 { font-family:var(--serif); font-size:1.3rem; font-weight:500; line-height:1.4; }
.selected-briefs .paper-card p:last-child { font-size:.77rem; }
.library-outro { padding:50px 0 65px; margin-top:5px; border-top:1px solid #b9bec8; }
.library-outro h2 { font-family:var(--serif); font-size:clamp(2.2rem,4vw,3.5rem); font-weight:500; margin-bottom:22px; }
html:lang(ko) .library-outro h2 { font-family:var(--sans); font-weight:600; letter-spacing:-.05em; }
.library-outro > p:not(.eyebrow) { color:#555; font-size:.9rem; max-width:620px; margin-bottom:25px; }
.library-outro .text-link { display:inline-block; margin:8px 28px 0 0; font-size:.82rem; }
@media(max-width:1050px) {
  .hero-visual-layout { grid-template-columns:minmax(0,37fr) minmax(0,63fr); gap:22px; }
  .hero-statement h1 { font-size:2.8rem; }
  html:lang(ko) .hero-statement h1 { font-size:2.45rem; }
  .hero-statement .hero-actions { gap:16px; }
  .hero-deck { font-size:.88rem; }
  .nav { gap:16px; }
  .interface-row { gap:18px; }
}
@media(max-width:800px) {
  .library-hero { padding:28px 0 28px; }
  .hero-visual-layout { grid-template-columns:1fr; gap:24px; }
  .hero-statement { padding:0; max-width:560px; }
  .hero-kicker { margin-bottom:12px; }
  .hero-statement h1 { margin-bottom:17px; font-size:2.8rem; max-width:500px; }
  html:lang(ko) .hero-statement h1 { font-size:2.45rem; }
  .hero-deck { max-width:490px; font-size:.9rem; line-height:1.75; }
  .hero-statement .hero-actions { margin-top:20px; }
  .hero-figure { width:100%; max-width:640px; margin-inline:auto; }
  .hero-figure figcaption { margin-top:9px; }
  .interface-section { padding-top:38px; }
  .interface-row { grid-template-columns:25px minmax(0,1fr) 65px; gap:15px; }
  .interface-row>p { grid-column:2/3; grid-row:2; }
  .interface-count { grid-column:3; grid-row:1/3; }
  .selected-briefs .paper-list { grid-template-columns:1fr; }
}
@media(max-width:560px) {
  .library-hero { padding-top:22px; padding-bottom:23px; }
  .hero-visual-layout { gap:22px; }
  .hero-kicker { font-size:.61rem; letter-spacing:.075em; }
  .hero-statement h1 { font-size:2.52rem; line-height:1.04; max-width:340px; }
  html:lang(ko) .hero-statement h1 { font-size:2.13rem; line-height:1.2; }
  .hero-deck { font-size:.86rem; line-height:1.75; }
  .hero-statement .hero-actions { flex-wrap:wrap; gap:15px 20px; margin-top:19px; }
  .hero-statement .btn-primary { font-size:.78rem; padding-inline:15px; gap:16px; }
  .hero-statement .text-link { font-size:.73rem; }
  .hero-figure figcaption { font-size:.63rem; line-height:1.6; }
  .interface-row { padding:25px 0; gap:12px; }
  .interface-row h3 { font-size:1.38rem; }
  .interface-row>p { font-size:.77rem; }
  .interface-count strong { font-size:1.7rem; }
  .interface-count a { font-size:.64rem; }
  .interface-count span { font-size:.57rem; }
  .selected-briefs .paper-card h3 { font-size:1.2rem; }
  .library-outro { padding:35px 0 45px; }
}
/* Source-aware media links stay secondary to the research brief. */
.paper-media { border-top:1px solid #d5d8df; padding-top:26px; }
.media-intro,.media-empty { font-size:.81rem; color:#666; }
.media-list { list-style:none; padding:0!important; }
.media-item { padding:21px 0; border-bottom:1px solid #e1e4e9; overflow-wrap:anywhere; }
.media-item h3,.prose .media-item h3 { margin:8px 0 10px; font-family:var(--sans); font-size:.91rem; font-weight:600; line-height:1.65; }
.media-item h3 a { color:#263f69; }
.media-item p { font-size:.79rem; line-height:1.85; }
.media-meta { color:#686f79; font-size:.69rem; line-height:1.8; }
.media-item .media-scope { margin-top:11px; font-size:.71rem; color:#707681; }
.candidate-label { color:#855b1f; font-size:.76rem; }
.media-details { padding:16px 0; }
.media-details summary,.media-record summary { cursor:pointer; }
.paper-media > a { font-size:.76rem; }
.media-summary { display:flex; flex-wrap:wrap; gap:25px 70px; padding:25px 0; border-block:1px solid #b9bec8; }
.media-summary strong { font-family:var(--serif); font-size:2.6rem; font-weight:400; display:block; }
.media-summary span { font-size:.75rem; color:#626973; }
.media-records { margin:30px 0 70px; border-top:1px solid #c5cbd5; }
.media-record { border-bottom:1px solid #c5cbd5; }
.media-record summary { display:grid; grid-template-columns:36px minmax(0,1fr) 90px; gap:20px; align-items:start; padding:22px 4px; font-size:.91rem; line-height:1.7; }
.media-record summary:hover { color:var(--accent); }
.media-record .paper-number { color:var(--accent); font-size:.7rem; padding-top:3px; }
.media-record-count { font-size:.7rem; text-align:right; color:#636b78; }
.media-record-count:after { content:' +'; margin-left:8px; }
.media-record[open] .media-record-count:after { content:' −'; }
.media-record-body { max-width:1050px; padding:0 0 35px 60px; }
.media-record-body>p { font-size:.79rem; }
.channel-coverage { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:18px; margin:24px 0; padding:20px 0; border-block:1px solid #e0e3e9; }
.channel-coverage dt { font-size:.71rem; color:#5d6470; margin-bottom:9px; }
.channel-coverage dd { margin:0; font-size:.69rem; line-height:1.8; }
.channel-coverage dd strong { color:#30476b; font-weight:500; }
.channel-coverage p { color:#6a717c; margin-top:8px; }
.search-log { padding-left:20px; margin:18px 0; font-size:.73rem; line-height:1.8; }
.search-log>li { margin:18px 0; }
.search-log code { white-space:normal; overflow-wrap:anywhere; font-size:.71rem; }
.search-log p { color:#5e6672; }
.search-log ul { margin-top:7px; padding-left:16px; overflow-wrap:anywhere; }
.media-record-body h3 { font-size:.9rem; margin-top:24px; }
@media(max-width:800px) { .channel-coverage{grid-template-columns:repeat(2,minmax(0,1fr));} .media-record-body{padding-left:0;} .media-record summary{gap:12px;grid-template-columns:28px minmax(0,1fr) 68px;font-size:.83rem;} }
@media(max-width:560px) { .media-summary{gap:25px 30px;} .media-summary strong{font-size:2rem;} .media-summary span{font-size:.63rem;} .media-record summary{grid-template-columns:25px minmax(0,1fr);padding-block:20px;} .media-record-count{grid-column:2;text-align:left;} }
.research-figure { margin:28px 0 34px; padding:20px; border:1px solid #dfe3ea; background:#fff; }
.research-figure img { width:100%; height:auto; object-fit:contain; }
.research-figure figcaption { margin-top:20px; padding-top:17px; border-top:1px solid #e3e6eb; font-size:.78rem; line-height:1.8; }
.research-figure figcaption p { margin-top:8px; font-size:.78rem; }
.research-figure .figure-credit { color:#6a707a; font-size:.67rem; }
.figure-reference { margin:25px 0; padding:20px; border-left:2px solid #b8c7e2; font-size:.78rem; }
@media(max-width:560px) { .research-figure{padding:12px;margin:23px 0 28px;} .research-figure figcaption p{font-size:.73rem;} .research-figure .figure-credit{font-size:.64rem;} }

/* Mobile concept captions: preserve the existing typefaces, layout and imagery. */
@media screen and (max-width:560px) {
  .concept-figure figcaption,
  .concept-figure figcaption p { font-size:.875rem; }
  .concept-figure .figure-credit { color:var(--text-secondary); font-size:.8125rem; }
}
