:root {
  color-scheme: dark;
  --bg: #121410;
  --surface: #1b1e18;
  --fg: #e6e5db;
  --muted: #a2a698;
  --line: #34392e;
  --acid: #d4dda4;
  --rust: #c68670;
  --serif: "Noto Serif KR", "Batang", serif;
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font-size: 14px; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, select, input { color: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--acid); outline-offset: 5px; }
::selection { background: var(--acid); color: var(--bg); }
svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.4; }
h1, h2, h3, p { margin: 0; }
button { border: 0; background: transparent; }
.skip { position: absolute; top: -100px; left: 20px; z-index: 20; padding: 15px; background: var(--acid); color: var(--bg); }
.skip:focus { top: 12px; }
.concept-bar { padding: 10px 4.5%; background: #22271d; color: #c6ccb6; display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .07em; }
.concept-bar span:last-child { display: flex; align-items: center; gap: 10px; }
.concept-bar i { width: 4px; height: 4px; border-radius: 50%; background: var(--acid); }
.header { height: 102px; margin: 0 4.5%; display: flex; gap: 32px; align-items: center; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 13px; font-family: var(--serif); font-size: 29px; font-weight: 600; letter-spacing: .13em; flex-shrink: 0; }
.brand small { display: block; font: 8px sans-serif; letter-spacing: .23em; margin-top: 5px; color: var(--muted); }
.seal { color: var(--rust); border: 1px solid var(--rust); font: 26px var(--serif); width: 39px; height: 43px; display: grid; place-items: center; transform: rotate(-4deg); }
.primary-nav { display: flex; gap: 31px; margin: 0 auto; height: 100%; align-items: center; }
.primary-nav a { color: var(--muted); position: relative; padding: 14px 0; white-space: nowrap; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--fg); }
.primary-nav a[aria-current="page"]::after { content: ""; position: absolute; width: 4px; height: 4px; border-radius: 50%; bottom: 1px; left: calc(50% - 2px); background: var(--acid); }
.header-actions { display: flex; align-items: center; gap: 23px; }
.icon-link { display: flex; padding: 8px; }
.library-link { white-space: nowrap; font-size: 12px; }
.library-link span { color: var(--acid); margin-left: 7px; }
.page { padding: 0 4.5% 80px; max-width: 1700px; margin: auto; }
.eyebrow { font: 10px monospace; letter-spacing: .16em; color: var(--acid); text-transform: uppercase; }
.home-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 30px 0 24px; }
.home-intro h1 { font: 500 30px/1.4 var(--serif); letter-spacing: -.05em; }
.home-intro p { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.home-intro .text-link { flex-shrink: 0; }
.home-page .arrival-strip { margin-top: 32px; border-top: 1px solid var(--line); }
.hero { position: relative; min-height: 595px; margin-top: 24px; display: flex; align-items: center; overflow: hidden; background: #101510; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,16,12,.35), transparent 90%), linear-gradient(0deg, rgba(12,16,12,.8), transparent 27%); pointer-events: none; }
.hero-copy { padding: 58px 5%; position: relative; z-index: 1; width: 66%; }
.hero-copy .eyebrow { display: flex; gap: 13px; align-items: center; margin-bottom: 32px; }
.live-dot { width: 5px; height: 5px; background: var(--acid); border-radius: 50%; display: inline-block; }
.hero h1 { font: 500 clamp(38px, 4.4vw, 68px)/1.48 var(--serif); letter-spacing: -.055em; }
.hero h1 em { font-style: normal; color: #d9e0be; }
.hero-description { color: #b7bdad; font-size: 13px; line-height: 1.95; margin-top: 24px; }
.hero-actions { margin-top: 31px; display: flex; gap: 25px; align-items: center; flex-wrap: wrap; }
.button { display: inline-flex; gap: 25px; align-items: center; justify-content: center; padding: 15px 24px; background: var(--acid); color: #1a2011; font-size: 12px; border: 1px solid var(--acid); transition: background .15s; }
.button:hover { background: #e4edb9; }
.button.secondary { background: transparent; color: var(--fg); border-color: #697359; }
.text-link { font-size: 12px; display: inline-flex; align-items: center; gap: 13px; color: #c1c6b8; }
.hero-foot { position: absolute; left: 5%; right: 5%; bottom: 24px; z-index: 1; display: flex; justify-content: space-between; color: #c2c8b5; font: 9px monospace; letter-spacing: .1em; }
.hero-foot span:last-child { text-align: right; }
.arrival-strip { display: flex; align-items: center; gap: 22px; padding: 21px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.arrival-strip .strip-label { color: var(--acid); white-space: nowrap; display: flex; gap: 9px; align-items: center; }
.arrival-strip a { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.arrival-strip .strip-end { margin-left: auto; white-space: nowrap; color: var(--muted); font-size: 11px; }
.section { margin-top: 66px; }
.section-heading { display: flex; gap: 20px; justify-content: space-between; align-items: end; margin-bottom: 27px; }
.section-heading h2 { font: 500 28px/1.4 var(--serif); letter-spacing: -.05em; margin-top: 10px; }
.section-heading .text-link { color: var(--muted); }
.genre-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.genre { display: flex; gap: 15px; align-items: center; text-align: left; padding: 26px 20px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); transition: background .2s; min-width: 0; }
.genre:hover { background: #262c20; }
.genre-number { font: 10px monospace; color: var(--muted); align-self: flex-start; padding-top: 2px; }
.genre-name { font-size: 14px; }
.genre small { display: block; color: var(--muted); font-size: 10px; margin-top: 8px; }
.genre .arrow { margin-left: auto; color: #8f9b7b; }
.content-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.work { min-width: 0; padding: 20px 0 8px; border-top: 1px solid var(--line); display: flex; flex-direction: column; height: 100%; }
.work h3 { overflow-wrap: anywhere; }
.work-art { display: block; position: relative; aspect-ratio: 1.62; overflow: hidden; background: #242b21; margin-bottom: 20px; border: 1px solid #353e2c; }
.work-art:after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 65%, #0007); }
.work-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.work:hover .work-art img { transform: scale(1.04); }
.art-mark { position: absolute; left: 16px; bottom: 14px; z-index: 1; font: 9px monospace; letter-spacing: .18em; color: #e1e5d7; }
.art-document { background: #c7c5af; color: #272d25; }
.art-document .art-mark { color: #1c241a; }
.document-sheet { position: absolute; inset: 20px 27px -32px; padding: 22px; background: #d7d5c3; transform: rotate(-5deg); box-shadow: 0 8px 25px #161e1733; }
.document-sheet b { font: 500 19px var(--serif); }
.document-sheet small { display: block; font: 8px monospace; margin: 12px 0; }
.document-sheet i { display: block; height: 4px; background: #79806e; margin: 9px 0; width: 90%; }
.document-sheet i:nth-child(3n) { width: 66%; }
.document-sheet .redacted { background: #292e25; height: 11px; width: 72%; }
.art-type { background: #29231d; color: #d3bca4; display: grid; place-items: center; }
.art-type .type-large { font: 400 84px var(--serif); letter-spacing: -.1em; opacity: .8; }
.art-type:before { content: ""; position: absolute; inset: 18px; border: 1px solid #74634a; }
.art-grid { background: #1f2926; }
.art-grid:before { content: ""; position: absolute; inset: 0; opacity: .25; background: repeating-linear-gradient(90deg, transparent 0 29px, #859d83 30px), repeating-linear-gradient(0deg, transparent 0 29px, #859d83 30px); }
.floorplan { position: absolute; width: 47%; height: 63%; border: 3px solid #98a58e; top: 18%; left: 26%; }
.floorplan:before { content: ""; position: absolute; left: 45%; height: 62%; top: 0; border-left: 3px solid #98a58e; }
.floorplan:after { content: ""; position: absolute; bottom: 35%; right: 0; width: 42%; border-bottom: 3px solid #98a58e; }
.work-meta { display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--muted); margin-bottom: 11px; flex-wrap: wrap; }
.work-meta .tag { color: var(--acid); }
.work h3 { font: 500 22px/1.55 var(--serif); letter-spacing: -.04em; margin-bottom: 11px; }
.work p { color: var(--muted); font-size: 12px; line-height: 1.9; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.work-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 10px; color: var(--muted); }
.save { padding: 8px; margin: -6px; display: flex; align-items: center; gap: 7px; }
.save svg { width: 17px; height: 17px; }
.save[aria-pressed="true"] { color: var(--acid); }
.save[aria-pressed="true"] svg { fill: #d4dda42a; }
.feature { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 345px; background: #1c2119; }
.feature-image { position: relative; overflow: hidden; min-height: 260px; }
.feature-image img { height: 100%; width: 100%; object-fit: cover; object-position: right; }
.feature-copy { padding: 42px; display: flex; flex-direction: column; justify-content: center; }
.feature-copy h2 { font: 400 34px/1.6 var(--serif); margin: 20px 0 15px; letter-spacing: -.04em; }
.feature-copy p { color: var(--muted); font-size: 12px; line-height: 1.9; margin-bottom: 25px; }
.source-line { margin-top: 50px; padding-top: 25px; border-top: 1px solid var(--line); display: flex; gap: 25px; flex-wrap: wrap; align-items: center; color: #9a9f8f; font-size: 13px; }
.source-line > span { font: 9px monospace; letter-spacing: .1em; margin-right: auto; }
.source-line a:hover { color: var(--acid); }
.footer { margin: 0 4.5%; border-top: 1px solid var(--line); padding: 35px 0 40px; display: flex; justify-content: space-between; gap: 30px; }
.footer-brand { font: 500 22px var(--serif); }
.footer-brand span { margin-left: 12px; color: #858d78; font-size: 14px; }
.footer p { font-size: 10px; color: var(--muted); line-height: 1.9; margin-top: 10px; }
.footer-note { text-align: right; }
.footer-note p { margin: 0; }
.footer-note a { font-size: 11px; display: inline-block; color: var(--acid); margin-top: 14px; }
.page-title { padding: 58px 0 35px; }
.page-title h1 { font: 500 clamp(31px, 3.7vw, 48px)/1.5 var(--serif); margin-top: 15px; letter-spacing: -.06em; }
.page-title p { margin-top: 16px; color: var(--muted); line-height: 1.9; font-size: 12px; }
.search-field { border-bottom: 1px solid #666f58; display: flex; align-items: center; gap: 18px; padding: 13px 0; margin-bottom: 25px; max-width: 600px; }
.search-field input { background: transparent; border: 0; padding: 8px 0; width: 100%; min-width: 0; font-size: 16px; }
.search-field input::placeholder { color: #969d8b; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 21px; }
.chip { padding: 10px 15px; border: 1px solid var(--line); color: #b1b8a5; font-size: 12px; }
.chip:hover { border-color: #7b8767; }
.chip[aria-pressed="true"] { background: var(--acid); color: #1a2011; border-color: var(--acid); }
.filter-options { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 4px 0 25px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.filter-options label { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; }
input[type="checkbox"] { accent-color: var(--acid); width: 16px; height: 16px; }
.filter-options select { padding: 9px; background: var(--surface); border: 1px solid var(--line); }
.results-count { margin-left: auto; font: 11px monospace; color: var(--muted); }
.empty { padding: 65px 15px; text-align: center; color: var(--muted); grid-column: 1/-1; line-height: 2; }
.empty .button { margin-top: 20px; }
.reader { max-width: 720px; margin: auto; padding: 35px 20px 75px; }
.back { color: var(--muted); font-size: 12px; display: inline-flex; gap: 13px; padding: 10px 0; }
.reader-head { margin: 45px 0 35px; }
.reader-head h1 { font: 500 43px/1.55 var(--serif); letter-spacing: -.04em; margin: 17px 0 25px; }
.reader-byline { color: var(--muted); font-size: 11px; line-height: 1.9; }
.reader-tools { display: flex; gap: 12px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 13px 0; margin-bottom: 44px; }
.type-controls { display: flex; gap: 15px; align-items: center; }
.type-controls button { border: 1px solid var(--line); padding: 8px 12px; font-size: 13px; }
.type-controls span { font-size: 10px; color: var(--muted); }
.reader-body { font: 400 var(--reading-size, 17px)/2.15 var(--serif); word-break: keep-all; overflow-wrap: break-word; }
.reader-body p { margin: 0 0 1.6em; white-space: pre-wrap; }
.reader-source { margin-top: 40px; border-top: 1px solid var(--line); padding: 25px 0; color: var(--muted); font-size: 11px; line-height: 2; }
.reader-source a { color: var(--acid); text-decoration: underline; text-underline-offset: 4px; }
.reader-end { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 25px; }
.demo-panel { margin: 30px 0; padding: 30px; border: 1px solid var(--line); background: var(--surface); }
.demo-panel h2 { font: 400 24px var(--serif); margin: 14px 0; }
.demo-panel p { font-size: 13px; color: var(--muted); line-height: 2; }
.demo-panel .button { margin-top: 25px; }
.photo-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 36px; margin-top: 25px; align-items: start; }
.photo-button { display: block; width: 100%; padding: 0; }
.photo-button img { display: block; width: 100%; }
.photo-caption { font-size: 10px; color: var(--muted); margin-top: 15px; display: flex; justify-content: space-between; gap: 15px; }
.photo-aside { padding: 8px 0; }
.photo-aside h1 { font: 500 29px/1.6 var(--serif); margin: 22px 0; }
.photo-aside p { font-size: 12px; color: var(--muted); line-height: 2; }
.photo-info { margin-top: 27px; border-top: 1px solid var(--line); padding: 20px 0; }
.photo-info div { display: flex; justify-content: space-between; gap: 15px; font-size: 11px; padding: 8px 0; color: var(--muted); }
.photo-info span:last-child { color: var(--fg); text-align: right; }
.photo-aside .button { width: 100%; margin-top: 20px; }
.photo-layout.expanded { grid-template-columns: 1fr; }
.photo-layout.expanded .photo-aside { max-width: 650px; }
.studio-label { display: inline-block; margin-bottom: 25px; padding: 10px 15px; border: 1px solid #73633e; color: #dfcea1; font-size: 11px; }
.pipeline { display: grid; grid-template-columns: repeat(6,1fr); border: 1px solid var(--line); margin: 25px 0; }
.stage { padding: 23px 16px; border-right: 1px solid var(--line); transition: background .2s; }
.stage:last-child { border: 0; }
.stage span { display: block; color: var(--muted); font: 10px monospace; margin-bottom: 18px; }
.stage strong { font-size: 13px; font-weight: 400; }
.stage.is-running { background: #343e28; }
.stage.is-complete span { color: var(--acid); }
.studio-actions { display: flex; align-items: center; gap: 25px; flex-wrap: wrap; }
.studio-actions p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.studio-actions button:disabled { opacity: .55; cursor: wait; }
.operations { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
.operations th { font-size: 10px; font-weight: 400; color: var(--muted); }
.operations td, .operations th { padding: 18px 12px; border-bottom: 1px solid var(--line); }
.operations td:first-child, .operations th:first-child { padding-left: 0; }
.status-ok { color: var(--acid); }
.status-hold { color: #d6b98a; }
.status-pill { display: inline-block; font-size: 10px; padding: 5px 8px; background: #2a3222; color: var(--acid); }
.studio-note { color: var(--muted); font-size: 12px; line-height: 2; margin-top: 28px; max-width: 720px; }
.notice { position: fixed; bottom: 25px; left: 50%; transform: translate(-50%, 20px); background: var(--acid); color: #1a2011; padding: 14px 24px; font-size: 12px; opacity: 0; transition: .2s; pointer-events: none; z-index: 10; max-width: calc(100% - 32px); text-align: center; }
.notice.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 1550px) { .header, .footer { max-width: 1550px; margin-left: auto; margin-right: auto; } }
@media (max-width: 1000px) {
  .header { gap: 20px; }
  .primary-nav { gap: 20px; font-size: 12px; }
  .header-actions { gap: 10px; }
  .hero { min-height: 520px; }
  .hero-copy { width: 75%; }
  .genre { padding: 24px 14px; gap: 10px; }
  .genre-name { font-size: 12px; }
  .genre small { font-size: 9px; }
  .content-grid { gap: 20px; }
  .work h3 { font-size: 19px; }
  .document-sheet { inset: 16px 15px -35px; padding: 14px; }
  .document-sheet b { font-size: 16px; }
  .feature-copy { padding: 28px; }
  .feature-copy h2 { font-size: 28px; }
  .photo-layout { grid-template-columns: minmax(0,1fr) 240px; gap: 23px; }
}
@media (max-width: 700px) {
  .home-intro { padding: 24px 0 20px; gap: 12px; }
  .home-intro h1 { font-size: 24px; }
  .home-intro p { font-size: 11px; }
  .home-intro .text-link { font-size: 11px; gap: 6px; }
  .home-latest .content-grid { grid-template-columns: 1fr; gap: 12px; }
  .home-latest .work { padding-top: 18px; }
  .header { height: auto; min-height: 117px; padding-top: 21px; gap: 15px; flex-wrap: wrap; }
  .brand { font-size: 25px; }
  .brand small { font-size: 7px; }
  .seal { width: 32px; height: 36px; font-size: 23px; }
  .header-actions { margin-left: auto; }
  .primary-nav { order: 3; flex-basis: 100%; justify-content: space-between; height: 43px; gap: 10px; }
  .primary-nav a { padding: 11px 0; }
  .hero { min-height: 535px; margin-top: 15px; align-items: start; }
  .hero-image { object-position: 62%; }
  .hero:after { background: linear-gradient(90deg,#0c100cac,transparent),linear-gradient(0deg,#0c100ca6,transparent 35%); }
  .hero-copy { width: 100%; padding: 52px 7%; }
  .hero-copy .eyebrow { font-size: 8px; margin-bottom: 33px; }
  .hero h1 { font-size: clamp(34px,7vw,45px); line-height: 1.6; }
  .hero-description { font-size: 12px; }
  .hero-actions { gap: 18px; margin-top: 29px; }
  .hero-actions .button { padding: 14px 17px; gap: 15px; }
  .hero-foot { font-size: 8px; left: 7%; right: 7%; gap: 15px; }
  .hero-foot span:last-child { max-width: 110px; line-height: 1.7; }
  .arrival-strip { gap: 15px; font-size: 10px; padding: 18px 0; }
  .arrival-strip .strip-end { display: none; }
  .section { margin-top: 45px; }
  .section-heading h2 { font-size: 23px; }
  .section-heading .text-link { font-size: 10px; }
  .genre-grid { grid-template-columns: repeat(2,1fr); }
  .genre { padding: 21px 13px; }
  .genre-name { font-size: 13px; }
  .content-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px 17px; }
  .work h3 { font-size: 18px; }
  .work-meta { font-size: 9px; gap: 6px; }
  .work p { font-size: 11px; }
  .work-art { aspect-ratio: 1.1; margin-bottom: 16px; }
  .work-art img { object-position: 68%; }
  .work-bottom { font-size: 9px; }
  .art-type .type-large { font-size: 60px; }
  .document-sheet b { font-size: 14px; }
  .feature { grid-template-columns: 1fr; }
  .feature-image { min-height: 235px; max-height: 280px; }
  .feature-copy { padding: 30px 25px; }
  .source-line { gap: 20px; font-size: 11px; }
  .source-line > span { width: 100%; }
  .footer { flex-direction: column; }
  .footer-note { text-align: left; }
  .page-title { padding-top: 38px; }
  .page-title h1 { font-size: 33px; }
  .filter-options { gap: 15px; }
  .filter-options label { font-size: 11px; }
  .filter-options select { max-width: 115px; }
  .results-count { margin-left: 0; }
  .chip { padding: 10px 12px; font-size: 11px; }
  .reader { padding: 25px 6% 55px; }
  .reader-head { margin-top: 30px; }
  .reader-head h1 { font-size: 35px; }
  .reader-body { line-height: 2.1; }
  .type-controls { gap: 10px; }
  .photo-layout { grid-template-columns: 1fr; }
  .photo-aside h1 { font-size: 30px; }
  .pipeline { grid-template-columns: repeat(3,1fr); }
  .stage:nth-child(3) { border-right: 0; }
  .stage:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .operations { font-size: 10px; }
  .operations td, .operations th { padding: 16px 8px; }
  .operations .optional { display: none; }
}
@media (max-width: 360px) { .hero-copy { padding-left: 6%; padding-right: 6%; } .hero h1 { font-size: 31px; } .hero-actions .text-link { font-size: 11px; gap: 8px; } .content-grid { grid-template-columns: 1fr; } .work-art { aspect-ratio: 1.6; } .header-actions { gap: 3px; } }
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Live source credits and plain-text editions. */
.reader-source p { white-space: pre-line; overflow-wrap: anywhere; }
.reader-source details { margin-top: 18px; }
.reader-source summary, .original-text summary { cursor: pointer; color: var(--cream, #dfddcd); }
.reader-origin { display: inline-block; margin-top: 20px; text-decoration: underline; text-underline-offset: 5px; }
.reader-edition { font-size: 13px; color: #b2b2a2; margin-top: 16px; }
.reader-body p { white-space: pre-line; overflow-wrap: anywhere; }
.original-text { border-top: 1px solid #37392f; padding: 24px 0; }
.original-text .reader-body { font-family: Georgia, serif; padding-top: 24px; }
.table-scroll { overflow-x: auto; }
.operations td { overflow-wrap: anywhere; }
.work-bottom > span { min-width: 0; }

/* Sharing stays available in the header, cards and reading tools. */
.site-share, .item-share { display:inline-flex; align-items:center; justify-content:center; gap:7px; padding:9px; font-size:12px; color:var(--muted); white-space:nowrap; }
.site-share:hover, .item-share:hover { color:var(--acid); }
.work-actions { display:flex; gap:3px; align-items:center; }
.reader-tools, .reader-end { flex-wrap:wrap; gap:14px; }
.reader-tools .type-controls { margin-right:auto; }
#share-dialog { width:min(500px,92vw); border:1px solid #596447; background:#191e16; color:var(--fg); padding:30px; box-shadow:0 30px 100px #0008; }
#share-dialog::backdrop { background:#080b08bb; backdrop-filter:blur(5px); }
#share-dialog h2 { font:500 25px/1.5 var(--serif); margin:14px 0; }
#share-title { color:var(--muted); line-height:1.7; margin:0 0 22px; overflow-wrap:anywhere; }
.share-close { position:absolute; right:12px; top:8px; font-size:27px; padding:8px; }
#share-dialog label { display:block; font-size:12px; margin:12px 0; }
.share-copy-row { display:flex; gap:8px; }
#share-url { flex:1; min-width:0; border:1px solid var(--line); background:var(--bg); padding:12px; font-size:12px; }
.share-copy-row .button { flex-shrink:0; padding:12px; }
.share-networks { display:flex; flex-wrap:wrap; gap:10px; margin:22px 0; }
.share-networks a { border:1px solid var(--line); padding:10px 14px; font-size:12px; }
#share-status { min-height:22px; color:var(--acid); margin-top:16px; font-size:12px; line-height:1.6; }
[hidden] { display:none !important; }
.daily-summary { display:grid; grid-template-columns:repeat(3,1fr); border:1px solid var(--line); margin:32px 0 16px; }
.daily-summary > div { padding:24px; border-right:1px solid var(--line); }
.daily-summary > div:last-child { border:0; }
.daily-summary span { display:block; color:var(--muted); font-size:12px; }
.daily-summary strong { display:block; font:32px var(--serif); margin-top:12px; }
.daily-summary small { font:12px sans-serif; color:var(--muted); }
@media(max-width:600px) { .site-share span { display:none; } .header-actions { gap:4px; } .site-share { padding:6px; } #share-dialog { padding:24px 20px; } .daily-summary { grid-template-columns:1fr; } .daily-summary > div { border-right:0; border-bottom:1px solid var(--line); padding:18px; } }

.more-records { grid-column:1/-1; text-align:center; padding:25px; }

/* Public visual collections and world source directory. */
.gallery-intro { display:flex; align-items:center; gap:24px; flex-wrap:wrap; padding:24px 0; border-block:1px solid var(--line); margin-bottom:24px; }
.gallery-intro span { color:var(--muted); font-size:13px; }
.gallery-options input { background:transparent; color:inherit; border:1px solid var(--line); padding:10px; max-width:220px; }
.image-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; }
.image-card { min-width:0; border:1px solid var(--line); background:var(--surface); }
.image-card-art { display:block; height:300px; background:#090b08; overflow:hidden; }
.image-card-art img { width:100%; height:100%; object-fit:contain; transition:transform .3s; }
.image-card-art:hover img { transform:scale(1.02); }
.image-card-copy { padding:20px; }
.image-card h3 { margin:12px 0; line-height:1.6; font-family:var(--serif); font-weight:500; overflow-wrap:anywhere; }
.image-card p,.image-card small { color:var(--muted); font-size:12px; line-height:1.7; display:block; overflow-wrap:anywhere; }
.image-card .work-actions { justify-content:flex-end; margin-top:16px; }
.image-original-title,.image-credit,.photo-info { overflow-wrap:anywhere; }
.photo-aside .photo-info div { gap:16px; }
.photo-aside .photo-info div > :last-child { min-width:0; text-align:right; }
.source-directory { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.source-place { padding:28px; border:1px solid var(--line); min-width:0; }
.source-place h3 { font:500 22px/1.6 var(--serif); margin:14px 0 6px; }
.source-place small,.source-place p { color:var(--muted); line-height:1.9; font-size:13px; }
.source-place .source-access { color:var(--acid); border-top:1px solid var(--line); padding-top:16px; }
.source-place .text-link { margin-right:16px; font-size:13px; }
.connected-sources { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.connected-sources a { border:1px solid var(--line); padding:20px; display:grid; gap:8px; }
.connected-sources span { color:var(--muted); font-size:12px; }
@media(max-width:900px) { .image-grid,.source-directory,.connected-sources { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .image-grid,.source-directory,.connected-sources { grid-template-columns:1fr; } .image-card-art { height:320px; } .gallery-intro { gap:12px; } .source-place { padding:22px; } .gallery-options { align-items:flex-start; } .photo-aside h1 { font-size:30px; } }
@media(prefers-reduced-motion:reduce) { .image-card-art img { transition:none; } }

/* Story facets: counts reflect the other active conditions. */
.story-facets { border-block:1px solid var(--line); padding:24px 0; }
.facet-heading { display:flex; flex-wrap:wrap; align-items:baseline; gap:12px 24px; margin-bottom:14px; }
.facet-heading h2 { font-size:18px; margin:0; }
.facet-heading>span,.facet-note { color:var(--muted); font-size:12px; line-height:1.8; }
.facet-count { margin-left:6px; font-variant-numeric:tabular-nums; opacity:.7; }
.chip:disabled { opacity:.35; cursor:not-allowed; }
.chip:disabled:hover { background:transparent; color:var(--muted); border-color:var(--line); }
.topic-disclosure { border-block:1px solid var(--line); padding:16px 0; margin-top:12px; }
.topic-disclosure summary { cursor:pointer; font-size:14px; }
.topic-disclosure summary span { color:var(--muted); font-size:12px; margin-left:12px; }
.topic-disclosure .filters { padding-top:16px; }
.story-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:start; gap:20px; padding:24px 0 8px; border:0; }
.story-options label { display:flex; flex-direction:column; align-items:stretch; gap:8px; min-width:0; }
.story-options select { max-width:100%; width:100%; min-width:0; padding:10px; }
.filter-summary,.story-results-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; }
.filter-summary { margin-top:18px; }
#active-filters { display:flex; flex-wrap:wrap; gap:8px; }
.active-facet { border:1px solid var(--line); padding:7px 10px; background:var(--surface); color:var(--acid); font-size:12px; cursor:pointer; }
.story-results-heading { margin:24px 0; font-size:13px; }
.genre[aria-disabled="true"] { opacity:.45; cursor:default; }
@media(max-width:600px) { .story-options { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 12px; }.story-results-heading .text-link { font-size:11px; }.facet-heading>span { font-size:11px; }.story-facets .chip { padding:9px 11px; } }

.story-tags { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:8px; }.story-tags:empty { display:none; }.story-tags span { font-size:10px; color:var(--muted); border:1px solid var(--line); padding:3px 6px; }
@media(max-width:400px) { #results.content-grid { grid-template-columns:1fr; } }

/* Reserve the same text rows on every story card, including missing tags. */
.work .work-meta { flex-wrap: nowrap; height: 18px; flex-shrink: 0; white-space: nowrap; overflow: hidden; }
.work .work-meta .tag { overflow: hidden; text-overflow: ellipsis; }
.work .work-meta > span:not(.tag) { flex-shrink: 0; }
.work .read-badge { margin-left: auto; padding: 1px 5px; border: 1px solid var(--line); color: var(--muted); }
.work.is-read h3 { color: #afb2a4; }
.work h3 { height: 3.1em; flex-shrink: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.work .story-tags, .work .story-tags:empty { display: flex; height: 24px; flex-shrink: 0; flex-wrap: nowrap; overflow: hidden; }
.work .story-tags span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.work > p { height: 3.8em; flex-shrink: 0; margin-bottom: 18px; }
.work .work-bottom { margin-top: auto; gap: 6px; }
.work .work-bottom > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.work .work-actions { flex-shrink: 0; }

.reader-media { margin: 28px 0; max-width: 100%; }
.reader-media[hidden] { display: none; }
.reader-media img, .reader-media video { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.reader-media audio { width: 100%; }
.reader-media iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.reader-media figcaption { margin-top: 10px; color: var(--muted); font: 12px/1.7 sans-serif; white-space: normal; }
.reader-image-open { display: block; width: 100%; padding: 0; background: transparent; border: 0; cursor: zoom-in; }
.reader-body .reader-media-status { color: var(--muted); font: 12px/1.7 sans-serif; }
.reader-image-dialog { max-width: 96vw; max-height: 96dvh; padding: 44px 12px 12px; background: var(--bg); border: 1px solid var(--line); }
.reader-image-dialog::backdrop { background: #000d; }
.reader-image-dialog img { display: block; max-width: 90vw; max-height: 82dvh; object-fit: contain; }
.reader-image-close { position: absolute; top: 10px; right: 12px; background: transparent; color: var(--fg); border: 0; padding: 4px 8px; }
