/* V0.2 全站组件与主题。保留 styles.css 中已确认的首页像素视觉。 */
:root {
  color-scheme: light;
  --edge: #191919;
  --shadow: #191919;
  --rule: #b4b1a6;
  --subtle: #d5d1c5;
  --soft-text: #57564f;
  --hover: #f7f4eb;
  --alert: #aa331c;
  --highlight: #e0fa70;
  --line: 2px solid var(--edge);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #17191f;
  --white: #22252e;
  --ink: #f3efe4;
  --muted: #b2b4c1;
  --edge: #85899a;
  --shadow: #08090c;
  --rule: #4d5261;
  --subtle: #3b404e;
  --soft-text: #c1c3ce;
  --hover: #2b303c;
  --alert: #ffa182;
  --highlight: #384827;
}
[hidden] { display: none !important; }
button, a, select { touch-action: manipulation; }
select { font: inherit; color: inherit; border-radius: 0; }
input { border-radius: 0; }
select:focus-visible, summary:focus-visible { outline: 3px solid #8a63df; outline-offset: 4px; }
[data-theme="dark"] :is(button, a, input, select):focus-visible { outline-color: var(--purple); }
button, .solid-link, .card-text-link, .row-arrow { min-height: 38px; }
#main-content { outline: none; min-height: 58vh; }
.preview-bar { background: #191919; color: #fffdf6; }
.site-header { gap: 22px; }
.site-header nav { gap: 25px; }
.site-header nav a { white-space: nowrap; min-height: 44px; }
.site-header nav a:hover { color: #7550c7; }
[data-theme="dark"] .site-header nav a:hover { color: var(--purple); }
.header-tools { display: flex; align-items: center; gap: 13px; }
.header-search { font: 31px var(--mono); width: 32px; text-align: center; }
.theme-picker { display: flex; align-items: center; border: 1px solid var(--edge); padding-left: 9px; gap: 4px; background: var(--white); }
.theme-picker > span { font: 18px var(--mono); }
.theme-picker select { border: 0; background: transparent; padding: 10px 7px; font-size: 11px; cursor: pointer; max-width: 108px; }
.theme-picker select option, .select-field select option, .sort-control select option { background: var(--white); color: var(--ink); }
.hero-art, .opportunity { color: #191919; border-color: #191919; box-shadow: 6px 6px 0 var(--shadow); }
.hero-art { background-color: var(--purple); }
.hero-art .art-footer, .hero-art .art-sticker { border-color: #191919; }
.hero-art .art-sticker { box-shadow: 4px 4px 0 #191919; }
.hero-copy > p, .row-summary, .source-note p, .empty-state p { color: var(--soft-text); }
.headline-accent:before { background: var(--highlight); }
.search { box-shadow: 4px 4px 0 var(--shadow); }
.search input::placeholder { color: var(--muted); }
.search button { background: #191919; color: #fffdf6; border-color: var(--edge); }
.deadline-intro { background: #191919; color: #fffdf6; }
.deadline-intro > .mono, .deadline-intro h2 span { color: var(--lime); }
.deadline-intro small { color: #c3c2bb; }
.deadline-card:hover { background: var(--highlight); }
.deadline-card { border-color: var(--edge); }
.filter { border-color: var(--subtle); min-height: 44px; }
.filter.active { background: var(--ink); color: var(--paper); }
.filter:hover:not(.active) { background: var(--highlight); }
.feed-row { border-color: var(--rule); }
.feed-row:hover { background: var(--hover); }
.row-index { color: var(--muted); }
.row-state { color: var(--alert); }
.topic { color: #191919; border-color: #191919; }
.topic.service { color: var(--ink); border-color: var(--edge); }
.row-heading { margin: 0; font-size: inherit; }
a.row-title { display: inline; }
.row-arrow { display: flex; justify-content: center; align-items: center; min-width: 34px; min-height: 38px; border-color: var(--edge); }
.row-arrow:hover { background: var(--highlight); box-shadow: 3px 3px 0 var(--shadow); }
.row-deadline { font-size: 11px; margin: 0 0 10px; line-height: 1.7; }
.row-deadline strong { color: var(--alert); }
.row-deadline > span { font-size: 10px; color: var(--muted); }
.row-meta { font-size: 11px; }
.row-summary { font-size: 13px; }
.row-top { gap: 8px; }
.uncertain { font-size: 10px; color: var(--muted); line-height: 1.5; }
.home-facets { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 13px 0 8px; }
.home-facets .select-field { flex-direction: row; align-items: center; gap: 6px; }
.home-facets .select-field select { min-width: 110px; max-width: 185px; padding: 8px 25px 8px 8px; font-size: 10px; }
.home-facets .select-field > span { font-size: 10px; }
.home-facets .reset-link { margin-left: auto; font-size: 10px; }
.result-status { font-size: 10px; color: var(--muted); line-height: 1.8; margin: 4px 0 2px; }
.sort-control { margin-left: auto; margin-right: 7px; }
.sort-control select { padding: 10px 3px; border: 0; background: transparent; font-size: 10px; }
.feed-end { flex-wrap: wrap; }
.feed-end > a { margin-left: auto; text-decoration: underline; text-underline-offset: 3px; }
.opportunity .demo-chip { border-color: #191919; }
.opportunity-button { background: #191919; color: #fffdf6; border-color: #191919; }
.opportunity-button:hover { background: var(--lime); color: #191919; }
.opportunity-button:hover span { color: #191919; }
.scene-ground { background: #191919; }
.source-note > .card-text-link { display: flex; margin-top: 4px; margin-bottom: 15px; font-size: 11px; }
.source-note:before { border-color: #191919; }
.source-note > div { border-color: var(--rule); }
.site-footer { gap: 24px; }
.site-footer > div { gap: 10px; flex-direction: column; align-items: flex-start; }
.site-footer nav { display: flex; gap: 25px; font-size: 11px; flex-wrap: wrap; }
.site-footer nav a { padding: 8px 0; }
.site-footer nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer strong > span, .heading-dot, .feed-end > span:first-child { color: #8560cc; }
[data-theme="dark"] .site-footer strong > span, [data-theme="dark"] .heading-dot, [data-theme="dark"] .feed-end > span:first-child { color: var(--purple); }
.pixel-icon { width: 32px; height: 32px; flex: none; shape-rendering: crispEdges; }
.page-head { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 30px; padding: 46px 0 35px; align-items: center; }
.page-head h1 { font-size: clamp(30px, 3.6vw, 52px); font-weight: 900; letter-spacing: -2px; line-height: 1.35; margin: 18px 0 14px; }
.page-head p { font-size: 13px; line-height: 1.9; color: var(--soft-text); margin: 0; max-width: 680px; }
.page-head .eyebrow { font-size: 10px; letter-spacing: .6px; }
.page-emblem { width: 140px; height: 140px; background: var(--lime); color: #191919; border: 2px solid #191919; box-shadow: 5px 5px 0 var(--shadow); transform: rotate(4deg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.page-emblem .pixel-icon { width: 62px; height: 62px; }
.page-emblem .mono { font-size: 10px; }
.page-search { margin-bottom: 24px; }
.page-search .pixel-icon { width: 21px; height: 21px; }
.filter-panel { display: flex; flex-wrap: wrap; gap: 16px 22px; align-items: flex-end; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.select-field { display: flex; flex-direction: column; gap: 9px; }
.select-field > span { font-size: 11px; color: var(--muted); }
.select-field select { border: 1px solid var(--edge); padding: 11px 27px 11px 12px; background-color: var(--white); min-height: 40px; font-size: 12px; max-width: 250px; cursor: pointer; }
.reset-link { background: none; border: 0; text-decoration: underline; text-underline-offset: 4px; padding: 10px 2px; font-size: 12px; color: var(--muted); }
.filter-panel .reset-link { margin-left: auto; }
.filter-hint { font-size: 11px; color: var(--muted); line-height: 1.9; margin: 15px 0 0; }
.results-line { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 11px; color: var(--muted); padding: 24px 0 18px; }
.results-line strong { font: bold 16px var(--mono); color: var(--ink); padding-inline: 3px; }
.results-line > .mono { font-size: 9px; text-align: right; }
.activity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.activity-card { border: var(--line); background: var(--white); min-width: 0; }
.activity-art { height: 170px; position: relative; display: block; overflow: hidden; border-bottom: var(--line); }
.accent-purple, .accent-lime, .accent-orange { color: #191919; background-color: var(--purple); background-image: linear-gradient(#19191915 1px, transparent 1px), linear-gradient(90deg, #19191915 1px, transparent 1px); background-size: 20px 20px; }
.accent-lime { background-color: var(--lime); }
.accent-orange { background-color: var(--orange); }
.activity-art > .mono { position: absolute; top: 13px; left: 15px; font-size: 9px; }
.activity-art > .pixel-icon { position: absolute; width: 82px; height: 82px; left: calc(50% - 41px); top: 43px; transition: transform .2s steps(3); }
.activity-art:hover > .pixel-icon { transform: translateY(-6px) rotate(-4deg); }
.activity-status { position: absolute; left: 14px; bottom: 13px; border: 1px solid #191919; background: #fffdf6; color: #191919; font-size: 10px; padding: 4px 8px; }
.activity-status.open { background: #191919; color: var(--lime); }
.activity-status.ended { background: #e5e1d7; color: #57564f; }
.art-corner { position: absolute; bottom: 7px; right: 16px; font-size: 35px; }
.activity-body { padding: 22px; }
.activity-campus { font-size: 10px !important; margin-top: 0 !important; color: var(--muted); }
.activity-body h2 { font-size: 20px; margin: 10px 0; line-height: 1.5; font-weight: 800; }
.activity-body h2 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.activity-body > p { font-size: 12px; line-height: 1.9; margin-bottom: 18px; color: var(--soft-text); }
.activity-body dl, .source-card dl { margin: 0 0 17px; border-top: 1px solid var(--rule); padding-top: 10px; }
.activity-body dl > div, .source-card dl > div { display: grid; grid-template-columns: 65px 1fr; gap: 12px; font-size: 11px; padding: 7px 0; line-height: 1.65; }
.activity-body dt, .source-card dt { color: var(--muted); }
.activity-body dd, .source-card dd { margin: 0; }
.card-text-link { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 12px; font-weight: 700; border-top: 1px solid var(--rule); padding-top: 13px; }
.card-text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.card-text-link > span { font-size: 22px; }
.inline-note { display: flex; align-items: flex-start; gap: 10px; background: var(--white); border: 1px solid var(--edge); padding: 18px 20px; font-size: 11px; line-height: 1.9; margin-top: 32px; color: var(--soft-text); }
.inline-note > .square { margin-top: 6px; color: #8058c6; }
.library-tabs, .news-tabs, .source-tabs { overflow-x: auto; }
.library-tabs .filters, .news-tabs .filters, .source-tabs .filters { width: max-content; }
.file-row { display: grid; grid-template-columns: 65px minmax(0, 1fr) 100px; gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.file-symbol { border: var(--line); min-height: 77px; background: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.file-symbol .pixel-icon { width: 29px; height: 29px; }
.file-symbol .mono { font-size: 9px; }
.file-row h2 { font-size: 19px; line-height: 1.6; margin: 0 0 8px; }
.file-row h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.file-row p { font-size: 12px; line-height: 1.9; color: var(--soft-text); margin: 0 0 10px; }
.file-open { display: flex; justify-content: center; align-items: center; padding: 13px 9px; font-size: 11px; border: 1px solid var(--edge); background: var(--white); }
.file-open:hover { background: var(--highlight); box-shadow: 3px 3px 0 var(--shadow); }
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.news-card { border: var(--line); min-width: 0; background: var(--white); }
.news-featured { display: grid; grid-template-columns: 1.1fr 1fr; grid-column: 1 / -1; }
.news-art { height: 230px; display: block; position: relative; overflow: hidden; border-bottom: var(--line); }
.news-featured .news-art { height: 100%; min-height: 300px; border-bottom: 0; border-right: var(--line); }
.news-art > .mono { position: absolute; left: 19px; top: 16px; font-size: 9px; }
.news-art .pixel-icon { width: 98px; height: 98px; position: absolute; right: 27px; bottom: 27px; transform: rotate(-6deg); }
.news-art-word { font: 900 38px/1.12 var(--mono); letter-spacing: -2px; position: absolute; left: 22px; top: 66px; }
.news-featured .news-art-word { font-size: 55px; top: 70px; }
.news-body { padding: 26px; display: flex; flex-direction: column; }
.news-body h2 { font-size: 23px; line-height: 1.5; margin: 17px 0 13px; letter-spacing: -.5px; }
.news-body h2 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.news-body p { color: var(--soft-text); font-size: 13px; line-height: 1.9; margin: 0 0 23px; }
.news-body .card-text-link { margin-top: auto; }
.news-tabs { margin-bottom: 25px; }
.source-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: var(--line); background: var(--white); margin-bottom: 30px; }
.source-stats > div { padding: 26px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; gap: 10px; }
.source-stats > div:last-child { border: 0; }
.source-stats strong { font: 900 40px var(--mono); }
.source-stats > div:nth-child(2) strong { color: var(--alert); }
.source-stats span { color: var(--muted); font-size: 12px; }
.source-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.source-card { padding: 24px; background: var(--white); border: var(--line); }
.source-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.source-card-top > .mono { font-size: 10px; color: var(--muted); }
.status-badge { display: inline-flex; gap: 6px; align-items: center; padding: 5px 7px; border: 1px solid var(--edge); font-size: 10px; }
.status-badge > i { width: 6px; height: 6px; background: var(--orange); }
.status-badge.paused > i { background: var(--muted); }
.status-badge.auth > i { background: #986fe8; }
.source-card h2 { font-size: 20px; margin: 18px 0 10px; }
.source-card > p { font-size: 12px; color: var(--soft-text); line-height: 1.8; margin: 0 0 18px; }
.source-card dl > div { grid-template-columns: 87px minmax(0, 1fr); }
.unavailable-link { display: block; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--muted); }
.explanation-panel { border: var(--line); padding: 30px; background: var(--white); margin-top: 30px; }
.explanation-panel > .mono { font-size: 10px; color: var(--muted); }
.explanation-panel h2 { font-size: 26px; line-height: 1.5; margin: 18px 0 14px; }
.explanation-panel p { font-size: 13px; line-height: 2; color: var(--soft-text); max-width: 850px; }
.breadcrumbs { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px; color: var(--muted); padding: 28px 0; line-height: 1.8; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 38px; padding-bottom: 15px; align-items: start; }
.detail-article { min-width: 0; }
.detail-header { padding: 12px 0 27px; }
.detail-header h1 { font-size: clamp(28px, 3vw, 42px); line-height: 1.5; letter-spacing: -1px; margin: 20px 0 16px; font-weight: 900; }
.demo-chip { font-size: 10px; border-color: var(--edge); }
.detail-lead { font-size: 15px; color: var(--soft-text); line-height: 2; margin: 22px 0 0; }
.facts-panel { border: var(--line); background: var(--white); box-shadow: 5px 5px 0 var(--shadow); }
.facts-panel h2 { display: flex; justify-content: space-between; align-items: center; gap: 15px; background: var(--purple); color: #191919; margin: 0; padding: 16px 21px; font-size: 17px; border-bottom: var(--line); }
.facts-panel h2 > .mono { font-size: 9px; font-weight: normal; }
.facts-panel dl { padding: 4px 21px; margin: 0; }
.detail-fact { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--rule); font-size: 13px; line-height: 1.8; }
.detail-fact:last-child { border: 0; }
.detail-fact dt { color: var(--muted); }
.detail-fact dd { margin: 0; overflow-wrap: anywhere; }
.reading-section { margin-top: 36px; scroll-margin-top: 25px; }
.section-kicker { color: var(--muted); font-size: 10px; border-top: 1px solid var(--rule); padding-top: 22px; }
.reading-section h2 { font-size: 23px; margin: 13px 0 20px; }
.reading-section p { font-size: 14px; line-height: 2; color: var(--soft-text); }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 15px; align-items: start; margin-bottom: 17px; }
.steps li > .mono { background: var(--highlight); border: 1px solid var(--edge); min-height: 33px; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.steps p { margin: 0; font-size: 14px; }
.reading-section blockquote { margin: 0; border-left: 5px solid #9672d8; background: var(--white); padding: 22px; font-size: 14px; line-height: 2; }
.reading-note { font-size: 11px !important; line-height: 1.9 !important; color: var(--muted) !important; }
.inline-warning { padding: 13px 16px; border: 1px solid var(--alert); color: var(--alert) !important; font-size: 12px !important; }
.attachment-row { border: var(--line); background: var(--white); display: flex; align-items: center; gap: 15px; padding: 16px; margin-top: 14px; }
.attachment-row > .pixel-icon { width: 25px; height: 25px; }
.attachment-row > span { min-width: 0; }
.attachment-row strong { display: block; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.attachment-row small { display: block; font-size: 10px; color: var(--muted); margin-top: 5px; }
.attachment-row button { margin-left: auto; flex: none; padding: 9px 10px; border: 1px solid var(--edge); background: var(--highlight); font-size: 11px; }
.article-actions { display: flex; flex-wrap: wrap; gap: 15px; align-items: center; justify-content: space-between; border-top: var(--line); margin-top: 35px; padding: 23px 0; font-size: 12px; }
.article-actions button { padding: 10px 12px; background: var(--white); border: 1px solid var(--edge); }
.detail-source { background: var(--white); border: var(--line); padding: 23px; margin-top: 12px; }
.detail-source > .mono { font-size: 9px; }
.detail-source h3 { font-size: 19px; line-height: 1.6; margin: 18px 0 12px; }
.detail-source p { font-size: 12px; line-height: 1.9; color: var(--soft-text); }
.detail-source .source-name { font-size: 10px; border-top: 1px dashed var(--rule); padding-top: 14px; margin-top: 18px; }
.solid-link { display: inline-flex; gap: 15px; justify-content: center; align-items: center; border: var(--line); background: var(--ink); color: var(--paper); padding: 13px 17px; font-size: 12px; font-weight: 700; }
.solid-link:hover { background: var(--lime); color: #191919; border-color: #191919; box-shadow: 4px 4px 0 var(--shadow); }
.detail-source .solid-link { font-size: 11px; width: 100%; margin-top: 8px; padding: 13px 8px; }
.related-panel { border-top: var(--line); margin-top: 28px; padding-top: 21px; }
.related-panel > .mono { font-size: 10px; color: var(--muted); }
.related-panel h3 { font-size: 18px; margin: 13px 0; }
.related-panel > a { display: flex; gap: 18px; justify-content: space-between; padding: 17px 0; border-bottom: 1px solid var(--rule); font-size: 12px; line-height: 1.8; }
.related-panel > a:hover { text-decoration: underline; text-underline-offset: 4px; }
.related-panel > a span { flex: none; }
.document-number { font: 13px var(--mono); color: var(--muted); line-height: 1.9; }
.document-demo-note { display: flex; align-items: flex-start; gap: 8px; color: var(--alert); font-size: 11px; line-height: 1.9; border-block: 1px solid var(--rule); padding: 14px 0; }
.document-demo-note .square { margin-top: 6px; width: 6px; height: 6px; }
.document-toc { display: flex; flex-direction: column; align-items: flex-start; border: var(--line); background: var(--white); padding: 20px; margin-top: 25px; gap: 9px; }
.document-toc > .mono { color: var(--muted); font-size: 10px; margin-bottom: 5px; }
.document-toc button { border: 0; background: transparent; padding: 6px 0; text-align: left; font-size: 12px; }
.document-toc button:hover { text-decoration: underline; text-underline-offset: 5px; }
.locked-panel { background: var(--white); border: var(--line); padding: 34px; text-align: center; }
.locked-panel .pixel-icon { width: 70px; height: 70px; display: block; margin: 0 auto 24px; color: #9874d7; }
.locked-panel > .mono { font-size: 10px; color: var(--muted); }
.locked-panel h2 { font-size: 27px; line-height: 1.5; }
.locked-panel p { font-size: 13px; line-height: 2; color: var(--soft-text); margin-bottom: 25px; }
.article-art { height: 270px; display: flex; align-items: center; justify-content: space-around; gap: 25px; border: 2px solid #191919; padding: 30px; }
.article-art > .pixel-icon { width: 130px; height: 130px; }
.article-art > .mono { font-size: clamp(14px, 2vw, 23px); font-weight: 900; line-height: 1.6; }
.art-caption { font-size: 10px; color: var(--muted); margin: 12px 0 28px; }
.news-prose p { font-size: 15px; line-height: 2.2; margin: 0 0 22px; color: var(--soft-text); }
.search-result { padding: 25px 0; border-bottom: 1px solid var(--rule); }
.search-result h2 { font-size: 20px; line-height: 1.6; margin: 11px 0; }
.search-result h2 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.search-result p { font-size: 13px; line-height: 1.9; color: var(--soft-text); }
.pagination { display: flex; justify-content: center; gap: 9px; padding: 28px 0 15px; }
.pagination button { border: 1px solid var(--edge); background: var(--white); min-width: 40px; min-height: 40px; font: 12px var(--mono); }
.pagination button[aria-current] { background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 var(--shadow); }
.pagination button:disabled { opacity: .35; }
.pagination button:not(:disabled):hover { background: var(--highlight); color: var(--ink); }
.empty-state { grid-column: 1 / -1; width: 100%; border: var(--line); background: var(--white); text-align: center; padding: 45px 20px; }
.empty-state > .mono { color: #7550c7; }
[data-theme="dark"] .empty-state > .mono { color: var(--purple); }
.empty-state > .pixel-icon { display: block; width: 50px; height: 50px; margin: 23px auto; color: var(--muted); }
.empty-state h3 { font-size: 21px; line-height: 1.7; overflow-wrap: anywhere; }
.empty-state p { font-size: 12px; line-height: 1.9; }
.empty-state button { background: var(--highlight); font-size: 12px; padding: 12px 16px; border-color: var(--edge); }
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; }
.about-grid .explanation-panel { margin-top: 0; }
.about-manifesto { border: 2px solid #191919; box-shadow: 6px 6px 0 var(--shadow); padding: 30px; }
.about-manifesto > .mono { font-size: 10px; }
.about-manifesto ol { font-size: 35px; line-height: 1.6; font-weight: 900; margin: 20px 0 0; padding-left: 40px; }
.about-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; padding: 40px 0 25px; }
.about-details h2 { font-size: 19px; line-height: 1.6; border-top: var(--line); padding-top: 20px; }
.about-details p { font-size: 13px; line-height: 2; color: var(--soft-text); }
.not-found { text-align: center; padding: 60px 15px; }
.not-found > .mono { font-size: 12px; color: var(--muted); }
.pixel-404 { font: 900 clamp(85px, 14vw, 170px)/1 var(--mono); letter-spacing: -7px; margin: 35px 0; text-shadow: 6px 6px 0 var(--shadow); }
.pixel-404 > span { color: #9971df; }
.not-found h1 { font-size: clamp(23px, 3vw, 32px); line-height: 1.6; }
.not-found p { font-size: 13px; color: var(--muted); line-height: 1.9; margin-bottom: 25px; }
.toast { position: fixed; left: 50%; bottom: 25px; transform: translateX(-50%); z-index: 20; width: max-content; max-width: calc(100% - 36px); border: 2px solid #191919; background: var(--lime); color: #191919; box-shadow: 4px 4px 0 var(--shadow); font-size: 12px; line-height: 1.8; padding: 13px 20px; }
.copy-label { display: block; font-size: 12px; margin-top: 20px; color: var(--muted); }
.copy-input { width: 100%; border: var(--line); background: var(--paper); color: var(--ink); padding: 13px 10px; font: 11px var(--mono); margin-block: 8px 12px; }
dialog { border-color: var(--edge); box-shadow: 8px 8px 0 var(--shadow); }
.dialog-top { color: #191919; border-color: #191919; }
.dialog-done { background: var(--ink); color: var(--paper); }
.noscript-note { border: var(--line); background: var(--white); padding: 25px; line-height: 1.9; }
@media (min-width: 1600px) {
  .wrap { width: min(1360px, calc(100% - 120px)); }
}
@media (max-width: 1150px) {
  .site-header { gap: 15px; }
  .site-header nav { gap: 20px; font-size: 12px; }
  .brand { font-size: 20px; }
  .header-tools { gap: 7px; }
  .theme-picker select { font-size: 10px; padding-inline: 4px; }
  .activity-grid { gap: 20px; }
  .activity-body { padding: 18px; }
  .activity-body h2 { font-size: 18px; }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; }
  .detail-source { padding: 20px; }
  .news-featured .news-art-word { font-size: 44px; }
}
@media (max-width: 900px) {
  .site-header { display: grid; grid-template-columns: 1fr auto; min-height: 125px; gap: 0 20px; padding-top: 18px; }
  .site-header nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 15px; padding-top: 10px; }
  .site-header nav a { padding: 12px 4px; font-size: 12px; }
  .site-header nav a span { display: inline; }
  .header-tools { grid-column: 2; grid-row: 1; }
  .activity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-top: 15px; }
  .detail-source, .detail-sidebar .source-note, .related-panel { margin-top: 0; }
  .source-stats > div { padding: 22px 18px; }
  .page-head { grid-template-columns: minmax(0, 1fr) 115px; gap: 25px; }
  .page-emblem { width: 108px; height: 108px; }
  .page-emblem .pixel-icon { width: 46px; height: 46px; }
  .page-emblem .mono { font-size: 8px; }
  .page-head h1 { font-size: 37px; }
  .site-footer { flex-wrap: wrap; }
  .site-footer nav { gap: 20px; }
  .site-footer > .mono { width: 100%; text-align: left; }
  .news-featured { grid-template-columns: 1fr 1fr; }
  .news-featured .news-art-word { font-size: 37px; }
  .news-featured .news-art .pixel-icon { width: 75px; height: 75px; right: 15px; bottom: 20px; }
  .news-body { padding: 22px; }
  .news-body h2 { font-size: 20px; }
  .about-manifesto ol { font-size: 28px; }
  .about-details { grid-template-columns: 1fr; gap: 4px; padding-top: 25px; }
}
@media (max-width: 600px) {
  .brand { font-size: 18px; }
  .brand-mark { width: 31px; height: 31px; }
  .brand small { font-size: 8px; letter-spacing: 1px; }
  .header-search { font-size: 29px; width: 27px; }
  .theme-picker { gap: 0; padding-left: 6px; }
  .theme-picker select { font-size: 10px; width: 84px; }
  .site-header nav a { font-size: 11px; }
  .site-header nav a span { font-size: 8px; }
  .page-head { padding: 32px 0 27px; grid-template-columns: minmax(0, 1fr); gap: 22px; position: relative; }
  .page-head .eyebrow { font-size: 8px; letter-spacing: 0; line-height: 1.7; }
  .page-head h1 { font-size: 35px; margin: 16px 0 13px; letter-spacing: -1.5px; }
  .page-head p { font-size: 12px; padding-right: 0; }
  .page-emblem { display: none; }
  .page-search { margin-bottom: 21px; }
  .filter-panel { gap: 17px 15px; padding-block: 5px 20px; }
  .select-field { flex: 1 1 40%; min-width: 0; }
  .select-field select { width: 100%; max-width: none; min-width: 0; font-size: 11px; }
  .filter-panel .reset-link { margin-left: 0; }
  .filter-hint { font-size: 10px; }
  .results-line { font-size: 11px; align-items: flex-start; }
  .results-line > .mono { font-size: 8px; max-width: 120px; line-height: 1.7; }
  .activity-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .activity-art { height: 175px; }
  .activity-art .pixel-icon { width: 87px; height: 87px; }
  .activity-body { padding: 22px; }
  .activity-body h2 { font-size: 22px; }
  .activity-body > p { font-size: 13px; }
  .activity-body dl > div { font-size: 12px; }
  .inline-note { padding: 16px; font-size: 10px; }
  .file-row { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; padding: 23px 0; }
  .file-symbol { min-height: 61px; gap: 6px; margin-top: 3px; }
  .file-symbol .pixel-icon { width: 23px; height: 23px; }
  .file-symbol .mono { font-size: 8px; }
  .file-row h2 { font-size: 17px; }
  .file-row p { font-size: 11px; }
  .file-row .row-meta { font-size: 10px; }
  .file-open { grid-column: 2; width: max-content; min-height: 40px; padding: 9px 13px; margin-top: 0; }
  .news-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .news-featured { display: block; grid-column: auto; }
  .news-featured .news-art { border-right: 0; border-bottom: var(--line); min-height: 0; height: 220px; }
  .news-art, .news-featured .news-art { height: 220px; }
  .news-art-word, .news-featured .news-art-word { font-size: 37px; top: 66px; }
  .news-art .pixel-icon, .news-featured .news-art .pixel-icon { width: 90px; height: 90px; right: 20px; bottom: 20px; }
  .news-body h2 { font-size: 23px; }
  .news-body p { font-size: 12px; }
  .source-stats { grid-template-columns: 1fr 1fr; }
  .source-stats > div { padding: 20px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  .source-stats > div:nth-child(2) { border-right: 0; }
  .source-stats > div:nth-child(3) { border-bottom: 0; }
  .source-stats strong { font-size: 33px; }
  .source-stats span { font-size: 11px; }
  .source-grid { grid-template-columns: minmax(0, 1fr); }
  .source-card { padding: 21px; }
  .source-card dl > div { grid-template-columns: 84px minmax(0, 1fr); font-size: 11px; }
  .explanation-panel { padding: 24px; }
  .explanation-panel h2 { font-size: 23px; }
  .explanation-panel p { font-size: 12px; }
  .detail-header { padding-top: 5px; }
  .detail-header h1 { font-size: 28px; }
  .detail-lead { font-size: 14px; }
  .facts-panel h2 { padding: 16px; font-size: 16px; }
  .facts-panel h2 > .mono { font-size: 8px; }
  .facts-panel dl { padding-inline: 16px; }
  .detail-fact { grid-template-columns: 77px minmax(0, 1fr); gap: 13px; font-size: 12px; }
  .reading-section h2 { font-size: 22px; }
  .reading-section p, .steps p, .reading-section blockquote { font-size: 13px; }
  .reading-section blockquote { padding: 18px; }
  .steps li { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
  .attachment-row { flex-wrap: wrap; gap: 13px; padding: 16px 13px; }
  .attachment-row > span { flex: 1 1 calc(100% - 50px); }
  .attachment-row button { margin-left: 38px; }
  .article-actions { font-size: 11px; }
  .detail-sidebar { grid-template-columns: minmax(0, 1fr); }
  .detail-source { padding: 23px; }
  .locked-panel { padding: 30px 22px; }
  .locked-panel h2 { font-size: 24px; }
  .article-art { height: 210px; gap: 22px; padding: 20px; }
  .article-art > .pixel-icon { width: 85px; height: 85px; }
  .article-art > .mono { font-size: 13px; }
  .news-prose p { font-size: 14px; }
  .search-result h2 { font-size: 19px; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-manifesto { padding: 27px; }
  .about-manifesto ol { font-size: 32px; }
  .site-footer nav { font-size: 10px; gap: 18px; }
  .empty-state { padding-inline: 15px; }
  .empty-state h3 { font-size: 19px; }
}
@media (max-width: 520px) {
  .home-facets { gap: 7px 12px; }
  .home-facets .select-field { flex: 1 1 40%; align-items: flex-start; flex-direction: column; }
  .home-facets .select-field select { max-width: none; width: 100%; padding: 9px 5px; }
  .home-facets .reset-link { margin-left: 0; }
  .home-facets .select-field > span { font-size: 10px; }
  .feed-toolbar { gap: 0; }
  .feed-toolbar .filters { min-width: 0; overflow-x: auto; }
  .filter { font-size: 11px; padding-inline: 11px; }
  .sort-control { margin-right: 2px; flex: none; }
  .sort-control select { font-size: 9px; width: 86px; padding-inline: 0; }
  .row-summary { font-size: 12px; }
  .row-meta { font-size: 10px; }
  .feed-row { grid-template-columns: 22px minmax(0, 1fr) 34px; }
  .row-arrow { min-width: 34px; min-height: 40px; }
  .result-status { font-size: 9px; }
  .section-heading > .mono { font-size: 8px; }
}
@media (max-width: 359px) {
  .wrap { width: calc(100% - 28px); }
  .preview-bar { padding-inline: 14px; }
  .preview-bar > span:first-child { font-size: 7px; }
  .preview-bar > span:last-child { font-size: 8px; }
  .brand { font-size: 16px; gap: 6px; }
  .brand-mark { width: 26px; height: 26px; }
  .brand small { font-size: 7px; }
  .site-header { column-gap: 9px; }
  .header-tools { gap: 3px; }
  .theme-picker select { width: 77px; font-size: 9px; }
  .site-header nav { gap: 8px; }
  .site-header nav a span { display: none; }
  .hero h1 { font-size: 55px; }
  .filter { padding-inline: 8px; font-size: 10px; }
  .page-head h1 { font-size: 31px; }
  .section-heading h2 { font-size: 21px; }
  .section-heading > .mono { font-size: 7px; }
}
@media print {
  .preview-bar, .site-header, .site-footer, .detail-sidebar, .article-actions, .toast, dialog { display: none !important; }
  :root, :root[data-theme] { --paper: #fff; --white: #fff; --ink: #191919; --muted: #555; --soft-text: #333; --edge: #191919; --rule: #bbb; }
  .wrap { width: 100%; }
  .detail-layout { display: block; }
  .facts-panel { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .activity-art > .pixel-icon { transition: none; }
}
