:root {
  --navy: #10243a;
  --navy-2: #183650;
  --ink: #202b34;
  --muted: #6f7b82;
  --line: #dfe3e2;
  --paper: #fbfaf7;
  --white: #fff;
  --gold: #b89754;
  --gold-soft: #efe7d5;
  --blue: #316f91;
  --blue-soft: #e8f0f4;
  --green: #386853;
  --green-soft: #e8f0eb;
  --amber: #895d22;
  --amber-soft: #f5efdf;
  --shadow: 0 12px 36px rgba(20, 39, 51, .055);
  --scrollbar-track: #f0f1ed;
  --scrollbar-thumb: #aab8bb;
  --scrollbar-thumb-hover: #527d89;
  --scrollbar-thumb-active: #315f72;
  --focus: #4a94b8;
  --radius-control: 3px;
  --radius-tag: 2px;
  --radius-pill: 999px;
  --radius-circle: 50%;
  --radius-scrollbar: 999px;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --page-max: 1240px;
  --reading-max: 770px;
  --reading-body-max: 740px;
  --desktop-gutter: 28px;
  --body-line-height: 1.65;
  color-scheme: light;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  scrollbar-width: thin;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-body); font-size: 16px; line-height: var(--body-line-height); }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
button, select, input, textarea { color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
button:not(:disabled):active { filter: brightness(.92); }
img, svg { max-width: 100%; }
p, h1, h2, h3, ul, ol, dl { margin-top: 0; }
h1, h2, h3 { color: var(--navy); line-height: 1.25; }
h1, h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -.025em; }
p, li, dd, dt, a, small, span { overflow-wrap: anywhere; }
::selection { color: var(--navy); background: #eadcb8; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: var(--radius-control); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; z-index: 20; left: 12px; top: -50px; padding: 9px 14px; color: var(--navy); background: white; border: 1px solid var(--line); }
.skip-link:focus { top: 8px; }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border: 3px solid var(--scrollbar-track); border-radius: var(--radius-scrollbar); }
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); }
::-webkit-scrollbar-thumb:active { background: var(--scrollbar-thumb-active); }

.site-header { background: var(--navy); color: #f5f3ed; border-bottom: 1px solid rgba(255,255,255,.09); }
.header-inner { min-height: 72px; max-width: var(--page-max); margin: 0 auto; padding: 0 var(--desktop-gutter); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .13em; white-space: nowrap; }
.brand:hover, .section-name:hover, .primary-nav a:hover, .header-tools a:hover { color: #f2dca9; }
.brand-mark { width: 26px; height: 26px; border: 1px solid var(--gold); color: var(--gold); display: inline-grid; place-items: center; border-radius: var(--radius-circle); font: 15px Georgia, serif; letter-spacing: 0; }
.brand-dot { color: var(--gold); }
.section-name { color: #e4e7e9; font-size: 14px; white-space: nowrap; padding-left: 19px; border-left: 1px solid rgba(255,255,255,.2); }
.primary-nav { display: flex; align-items: center; gap: 23px; margin-left: auto; }
.nav-disclosure { position: relative; margin-left: auto; }
.nav-disclosure > summary { display: none; }
.nav-disclosure .primary-nav { margin-left: 0; }
.primary-nav a, .header-tools a { color: #d5dce1; font-size: 13px; white-space: nowrap; transition: color .15s ease; }
.primary-nav a[aria-current="page"] { color: #f1d99f; }
.header-tools { display: flex; align-items: center; gap: 18px; margin-left: 5px; }
.saved-nav span { min-width: 19px; height: 19px; padding: 0 4px; margin-left: 3px; display: inline-grid; place-items: center; border-radius: var(--radius-pill); color: var(--navy); background: #e8ddc4; font-size: 11px; }
.header-tools .update-link { color: #ead49e; }
.page-shell { max-width: var(--page-max); min-height: 70vh; padding: 0 var(--desktop-gutter) 76px; margin: 0 auto; }
.site-footer { background: #f1f0eb; border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { max-width: 1184px; padding: 31px 28px 23px; margin: auto; display: flex; justify-content: space-between; gap: 32px; }
.footer-inner p { margin: 0; font-size: 13px; }
.footer-inner strong { color: var(--navy); }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: flex-start; font-size: 13px; }
.copyright { max-width: 1184px; margin: 0 auto; padding: 0 28px 20px; font-size: 11px; color: #899197; }

.hero-section { position: relative; padding: 73px 0 44px; max-width: 900px; }
.eyebrow { margin: 0 0 13px; color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .19em; line-height: 1.5; text-transform: uppercase; }
.eyebrow-mark { width: 7px; height: 7px; margin-right: 9px; display: inline-block; border-radius: var(--radius-circle); background: var(--gold); vertical-align: 1px; }
.hero-section h1 { margin: 0; color: var(--navy); font-size: clamp(40px, 5.2vw, 64px); line-height: 1.2; }
.hero-section h1 em { color: var(--blue); font-style: normal; }
.hero-intro { max-width: 625px; margin: 20px 0 22px; color: #63717a; font-size: 17px; line-height: 1.85; }
.hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; color: #7a858a; font-size: 12px; }
.hero-meta strong { margin-left: 4px; color: var(--navy); font-weight: 600; }
.hero-meta .status-note { margin: 0; color: #7a858a; font-size: 12px; }
.hero-search { display: flex; align-items: center; max-width: 640px; height: 54px; margin-top: 28px; padding: 0 7px 0 17px; gap: 11px; background: var(--white); border: 1px solid #dfe3e2; box-shadow: 0 5px 18px rgba(20,39,51,.035); }
.hero-search > span { color: var(--blue); font-size: 24px; line-height: 1; }
.hero-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; font-size: 14px; }
.hero-search input::placeholder { color: #929ba0; }
.hero-search button, .primary-button { min-height: 40px; border: 0; border-radius: var(--radius-control); padding: 9px 16px; background: var(--navy); color: white; font-size: 13px; font-weight: 600; }
.hero-search button:hover, .primary-button:hover { color: white; background: var(--blue); }
.home-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 56px; align-items: start; }
.main-column, .side-column { min-width: 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 6px 0 16px; }
.section-heading .eyebrow { margin-bottom: 6px; }
.section-heading h2, .side-panel h2 { margin: 0; font-size: 29px; }
.light-note { color: #899297; font-size: 12px; }
.text-link, .plain-link { color: var(--blue); font-size: 13px; font-weight: 600; }
.text-link:hover, .plain-link:hover { text-decoration: underline; }
.plain-link { padding: 0; border: 0; background: transparent; }
.featured-list { border-top: 1px solid var(--line); }
.featured-entry { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.feature-index { color: #b2a276; font: 18px Georgia, serif; padding-top: 4px; }
.article-card { padding: 21px 23px 20px; background: var(--white); border: 1px solid #e3e5e2; box-shadow: 0 3px 14px rgba(24,43,54,.025); min-width: 0; }
.article-card-compact { padding: 0; background: transparent; border: 0; box-shadow: none; }
.featured-entry .article-card { background: transparent; }
.card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 9px; color: #79848a; font-size: 11px; }
.card-meta a { color: var(--blue); font-weight: 600; }
.meta-dot { color: #c3c8c9; }
.read-flag { padding: 1px 7px; border-radius: var(--radius-pill); color: var(--green); background: var(--green-soft); font-size: 10px; }
.tag-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 9px 0 7px; }
.tag { display: inline-flex; align-items: center; min-height: 23px; padding: 2px 8px; border-radius: var(--radius-tag); background: var(--blue-soft); color: #35647c; font-size: 10px; line-height: 1.3; }
.tag:hover { color: #183f57; background: #dae9f0; }
.tag-muted { color: #657067; background: #efeee8; }
.scope-badge { display: inline-flex; align-items: center; min-height: 23px; padding: 2px 8px; border: 1px solid #d9e6dc; border-radius: var(--radius-tag); color: #38634c; background: #f5f8f4; font-size: 10px; }
.scope-badge.scope-draft { border-color: #ead9b7; color: #7e5b20; background: #fbf6e9; }
.publisher-note { color: #79848a; font-size: 10px; }
.scope-rss_summary { color: var(--amber); border-color: #e8ddc2; background: #faf7ee; }
.scope-event_page { color: #596678; border-color: #d8dfe5; background: #f5f7f8; }
.scope-title_only { color: #767b7d; border-color: #dedfdf; background: #f7f7f5; }
.article-card h3 { margin: 4px 0 5px; font-size: 22px; line-height: 1.4; }
.article-card h3 a:hover { color: var(--blue); }
.original-title { margin: 0 0 10px; color: #8b9498; font: 12px/1.6 Georgia, serif; }
.article-summary { margin: 0 0 11px; color: #4f5c63; font-size: 14px; line-height: 1.8; }
.takeaway-line { margin: 0; color: #56646b; font-size: 12px; line-height: 1.75; }
.takeaway-line strong { margin-right: 8px; color: var(--gold); font-size: 10px; letter-spacing: .08em; }
.card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 13px; }
.card-actions .text-link { font-size: 11px; }
.quiet-button { padding: 4px 2px; border: 0; background: transparent; color: #7e898d; font-size: 11px; }
.quiet-button:hover { color: var(--blue); }
.quiet-button[aria-pressed="true"] { color: var(--green); }
.latest-heading { margin-top: 45px; }
.latest-list { border-top: 1px solid var(--line); }
.latest-list .article-card { padding: 18px 0; border-bottom: 1px solid var(--line); }
.latest-list .article-card h3, .related-list .article-card h3 { font-size: 19px; }
.more-link { display: inline-flex; gap: 20px; margin-top: 20px; color: var(--blue); font-size: 13px; font-weight: 700; }
.side-column { padding-top: 28px; }
.side-panel { margin-bottom: 23px; padding: 23px 22px; background: #f1f1ec; border-top: 2px solid var(--gold); }
.side-panel h2 { font-size: 22px; }
.side-intro { margin: 9px 0 16px; color: #778187; font-size: 12px; }
.topic-list { display: grid; gap: 0; }
.topic-chip { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #dadeda; color: #334853; font-size: 12px; }
.topic-chip span:last-child { color: #a0a8a7; font-size: 10px; }
.method-links { margin-top: 15px; display: grid; gap: 7px; }
.method-links a { display: flex; justify-content: space-between; gap: 10px; color: #50636d; font-size: 12px; }
.method-links a span { color: var(--gold); }
.editorial-note { padding: 18px 19px 19px; border-left: 2px solid var(--gold); background: var(--white); }
.note-mark { color: var(--gold); font: 31px Georgia, serif; line-height: .9; }
.editorial-note p { margin: 7px 0 12px; color: #58676e; font: 15px/1.75 Georgia, "Noto Serif SC", serif; }
.editorial-note a, .mini-panel a { color: var(--blue); font-size: 11px; font-weight: 600; }
.empty-note { padding: 20px; border: 1px dashed #d4d9d7; color: #79848a; font-size: 13px; }

.page-intro { padding: 52px 0 28px; max-width: 820px; }
.page-intro h1 { margin: 0 0 11px; font-size: clamp(36px, 4.5vw, 48px); }
.page-intro > p:not(.eyebrow) { max-width: 680px; margin: 0; color: #66737a; font-size: 15px; line-height: 1.85; }
.library-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 30px; align-items: start; }
.filter-panel { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow: auto; padding: 20px; background: #f0f0eb; border: 1px solid #e0e3df; }
.filter-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.filter-top h2 { margin: 0; font-size: 18px; }
.field-label { display: block; margin: 13px 0 6px; color: #66747a; font-size: 11px; font-weight: 600; }
.text-input, .select-input, .sort-select { width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px; border: 1px solid #d6ddda; border-radius: var(--radius-control); background: white; font-size: 12px; }
.text-input::placeholder { color: #a0a7aa; }
.filter-group { margin-top: 16px; border-top: 1px solid #d7dcd9; }
.filter-group summary { padding: 12px 0 7px; color: var(--navy); font-size: 13px; font-weight: 700; cursor: pointer; }
.check-list { display: grid; gap: 3px; }
.check-row { display: flex; align-items: flex-start; gap: 8px; padding: 5px 0; color: #5d6a70; font-size: 11px; line-height: 1.45; cursor: pointer; }
.check-row input { width: 15px; height: 15px; flex: 0 0 auto; margin: 0; accent-color: var(--blue); }
.results-toolbar { min-height: 46px; margin-bottom: 13px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.results-toolbar p { margin: 0; color: #7b878d; font-size: 12px; }
.results-toolbar strong { color: var(--navy); font-size: 16px; }
.results-toolbar label { display: flex; align-items: center; gap: 7px; color: #7a858a; font-size: 11px; }
.sort-select { width: auto; min-height: 34px; padding: 5px 26px 5px 8px; }
.article-list { display: grid; gap: 13px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 17px; margin: 25px 0 0; color: #78838a; font-size: 12px; }
.page-button { min-height: 38px; padding: 7px 12px; border: 1px solid var(--line); background: white; color: var(--blue); border-radius: var(--radius-control); display: inline-flex; align-items: center; justify-content: center; }
.page-button:hover { color: var(--navy); background: var(--blue-soft); text-decoration: none; }
.page-button:active { filter: brightness(.92); }
.page-button-disabled { opacity: .45; color: var(--muted); }
.empty-state { display: grid; justify-items: center; padding: 54px 20px; text-align: center; background: white; border: 1px solid #e3e5e2; }
.empty-state h1, .empty-state h2 { margin: 7px 0; font-size: 24px; }
.empty-state p { max-width: 440px; color: var(--muted); font-size: 13px; }
.empty-state .primary-button { margin-top: 8px; }
.empty-icon { color: var(--gold); font: 34px Georgia, serif; }

.reading-page { max-width: 100%; padding-top: 32px; }
.back-link { display: inline-flex; align-items: center; min-height: 38px; color: #63757f; font-size: 12px; }
.reading-header { max-width: var(--reading-max); padding: 18px 0 35px; margin: auto; }
.reading-header .tag-row { margin: 0 0 15px; }
.reading-byline { display: flex; flex-wrap: wrap; gap: 0 8px; margin: 0 0 12px; color: #7d888d; font-size: 12px; }
.reading-byline a { color: var(--blue); font-weight: 600; }
.reading-header h1 { margin: 0 0 12px; font-size: clamp(34px, 4.7vw, 52px); line-height: 1.25; }
.reading-header .original-title { margin-bottom: 18px; font-size: 14px; }
.reading-source { display: flex; align-items: flex-start; gap: 11px; padding: 12px 14px; margin: 0 0 18px; background: #f0f1ec; color: #69767c; font-size: 11px; line-height: 1.6; }
.reading-source .scope-badge { flex: 0 0 auto; }
.source-button { display: inline-flex; align-items: center; gap: 20px; min-height: 45px; padding: 10px 18px; }
.reading-content { max-width: var(--reading-body-max); padding: 0 0 35px; margin: 0 auto; }
.summary-block { padding: 24px 28px 25px; border-left: 2px solid var(--gold); background: #f1f0eb; }
.summary-block .eyebrow { margin-bottom: 9px; }
.lead { margin: 0; color: #34464f; font: 20px/1.85 Georgia, "Noto Serif SC", serif; }
.reading-section { padding: 27px 0; border-bottom: 1px solid var(--line); }
.reading-section h2 { margin-bottom: 12px; font-size: 22px; }
.reading-section p, .reading-section li { color: #4e5d65; font-size: 15px; line-height: 1.9; }
.reading-section ul { padding-left: 23px; margin-bottom: 0; }
.reading-section li + li { margin-top: 7px; }
.takeaway-block { padding: 24px 26px; border: 0; background: #f7f4eb; }
.takeaway-block .eyebrow { margin-bottom: 5px; }
.takeaway-block p:last-child { margin: 0; color: #334b55; font: 18px/1.8 Georgia, "Noto Serif SC", serif; }
.limitation-block { padding-left: 16px; border-left: 2px solid #9da9ac; }
.limitation-block p { margin-bottom: 0; }
.source-record dl { margin: 0; }
.source-record dl > div { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 13px; padding: 9px 0; border-top: 1px solid #e5e7e4; }
.source-record dt { color: #849095; font-size: 11px; }
.source-record dd { margin: 0; color: #56646b; font-size: 12px; }
.reading-tools { padding: 25px; margin-top: 25px; background: white; border: 1px solid #e0e4e1; }
.tool-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.secondary-button, .file-button { min-height: 40px; padding: 9px 13px; border: 1px solid #ccd5d6; border-radius: var(--radius-control); color: var(--navy); background: white; font-size: 12px; font-weight: 600; }
.secondary-button:hover, .file-button:hover { border-color: var(--blue); color: var(--blue); }
.reading-tools > label, .saved-note-label { display: block; margin-bottom: 7px; color: var(--navy); font-size: 12px; font-weight: 700; }
.reading-tools > label span { margin-left: 7px; color: #929a9d; font-size: 10px; font-weight: 400; }
.reading-tools textarea, .saved-item textarea { width: 100%; min-height: 78px; resize: vertical; padding: 11px 12px; border: 1px solid #dce1de; border-radius: var(--radius-control); background: #fdfdfb; font-size: 13px; line-height: 1.6; }
.storage-message { margin: 9px 0 0; color: #8b9598; font-size: 10px; }
.related-section { max-width: 740px; padding: 20px 0 10px; margin: auto; }
.related-list { display: grid; gap: 18px; }

.topic-section { margin: 32px 0 44px; }
.topic-section .section-heading { margin-bottom: 17px; }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 13px; }
.method-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.topic-card { position: relative; display: block; min-height: 164px; padding: 22px; background: white; border: 1px solid #e0e4e1; transition: transform .15s ease, box-shadow .15s ease; }
.topic-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.topic-card-count { color: #8a9397; font-size: 10px; }
.topic-card h3 { margin: 10px 0 7px; font: 21px/1.35 Georgia, "Noto Serif SC", serif; }
.topic-card p { max-width: 300px; margin: 0; color: #758086; font-size: 11px; line-height: 1.65; }
.topic-arrow { position: absolute; right: 18px; bottom: 15px; color: var(--gold); }
.topic-intro { padding-bottom: 20px; }
.topic-intro .back-link { margin-bottom: 18px; }
.topic-intro .eyebrow { margin-bottom: 7px; }
.heading-count { margin-left: 8px; color: #9aa3a3; font: 14px/1 sans-serif; }

.source-stats { margin-top: 13px; }
.source-stats .status-note { color: var(--blue); font-size: 12px; }
.source-controls { display: grid; grid-template-columns: minmax(200px,1fr) auto minmax(150px,220px) auto minmax(150px,220px) auto; align-items: center; gap: 8px 12px; padding: 14px; margin: 4px 0 12px; background: #f0f0eb; }
.source-controls > label:not(.sr-only) { color: #78848a; font-size: 11px; }
.source-controls .text-input, .source-controls .select-input { min-height: 38px; }
.result-count { margin: 0 0 13px; color: #818d91; font-size: 11px; }
.source-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.source-card { display: flex; min-width: 0; flex-direction: column; padding: 19px; background: white; border: 1px solid #e0e4e1; }
.source-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.status-label { display: inline-flex; max-width: 100%; padding: 4px 8px; color: var(--green); background: var(--green-soft); font-size: 10px; line-height: 1.45; }
.status-waiting { color: var(--amber); background: var(--amber-soft); }
.source-count { color: #929a9e; font-size: 10px; white-space: nowrap; }
.source-card h2 { margin: 13px 0 2px; font-size: 20px; line-height: 1.35; }
.source-kind { margin: 0 0 10px; color: #8a9398; font-size: 10px; }
.source-card > p:not(.source-kind) { margin-bottom: 10px; color: #637078; font-size: 12px; line-height: 1.7; }
.source-card .tag-row { margin-top: auto; padding-top: 8px; }
.source-card-actions { display: flex; flex-wrap: wrap; gap: 10px 17px; margin-top: 11px; }
.source-card-actions .text-link { font-size: 10px; }
.source-detail { max-width: 860px; padding: 27px 0 12px; }
.source-detail .back-link { margin-bottom: 20px; }
.source-detail-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.source-detail-title h1 { margin: 0 0 5px; font-size: 43px; }
.source-detail-title p { margin: 0; color: #8a9498; font-size: 12px; }
.source-detail-title .status-label { flex: 0 0 auto; margin-top: 7px; }
.source-focus { max-width: 700px; margin: 15px 0 21px; color: #56666d; font-size: 16px; line-height: 1.85; }
.source-detail .source-record { max-width: 760px; padding: 20px; background: #f1f1ec; border: 0; }
.source-detail .source-record h2 { margin: 0 0 8px; font-size: 18px; }
.source-detail .source-record > p { color: #67757c; font-size: 12px; }
.source-link-list { display: grid; gap: 8px; margin-top: 13px; }
.source-link-list a { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 11px 12px; background: white; color: var(--blue); font-size: 12px; font-weight: 600; }
.source-link-list small { flex-basis: 100%; color: #8d969a; font-size: 10px; font-weight: 400; }

.saved-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; margin-bottom: 10px; background: #f0f0eb; color: #708087; font-size: 12px; }
.saved-toolbar strong { color: var(--navy); font-size: 16px; }
.saved-toolbar .tool-buttons { margin: 0; }
.file-button { display: inline-flex; align-items: center; cursor: pointer; }
.saved-list { display: grid; gap: 15px; margin-top: 18px; }
.saved-item { padding: 20px 22px; background: white; border: 1px solid #e0e4e1; }
.saved-item .article-card { padding-bottom: 17px; border-bottom: 1px solid #eceeeb; }
.saved-note-label { margin-top: 15px; }
.saved-item-actions { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 11px; }
.saved-item-actions .secondary-button { min-height: 34px; padding: 6px 10px; }

.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 44px; align-items: start; }
.guide-main, .guide-aside { min-width: 0; }
.guide-callout { display: flex; gap: 15px; padding: 20px; background: #f1f0eb; border-left: 2px solid var(--gold); }
.callout-icon { width: 33px; height: 33px; flex: 0 0 auto; display: grid; place-items: center; border-radius: var(--radius-circle); color: var(--navy); background: #e6dcc3; }
.guide-callout h2 { margin: 0 0 5px; font-size: 18px; }
.guide-callout p { margin: 0; color: #718087; font-size: 12px; }
.guide-steps { padding: 29px 0 19px; }
.guide-steps h2, .guide-rules h2, .guide-prompt h2 { margin-bottom: 15px; font-size: 22px; }
.guide-steps ol { padding-left: 23px; margin: 0; }
.guide-steps li { padding: 0 0 16px 5px; color: var(--gold); }
.guide-steps li::marker { color: var(--gold); font-family: Georgia,serif; }
.guide-steps li strong { color: var(--navy); font-size: 13px; }
.guide-steps li p { margin: 4px 0 0; color: #69767c; font-size: 12px; line-height: 1.75; }
.guide-rules { padding: 20px; margin-bottom: 24px; background: white; border: 1px solid #e1e5e2; }
.guide-rules ul { margin: 0; padding-left: 18px; }
.guide-rules li { padding: 4px 0; color: #617078; font-size: 12px; }
.guide-prompt { padding: 21px; background: #f2f2ed; }
.guide-prompt .section-heading { align-items: center; }
.guide-prompt .section-heading h2 { margin: 0; }
.guide-prompt pre { max-width: 100%; padding: 16px; margin: 0 0 13px; overflow-wrap: anywhere; white-space: pre-wrap; color: #dfe9ef; background: var(--navy); font: 12px/1.75 ui-monospace, "Cascadia Code", monospace; }
.guide-aside { padding-top: 26px; }
.update-log, .mini-panel { padding: 19px; margin-bottom: 14px; background: white; border: 1px solid #e1e5e2; }
.update-log h2 { margin-bottom: 11px; font-size: 17px; }
.update-log p, .mini-panel p { color: #718087; font-size: 11px; line-height: 1.75; }
.update-log p:last-child, .mini-panel p:last-child { margin-bottom: 0; }
.update-log strong { color: var(--navy); }
.mini-panel .eyebrow { margin-bottom: 8px; }
.mini-panel a { display: inline-block; margin-top: 10px; }
.loading { padding: 50px 0; color: #879196; }

@media (max-width: 960px) {
  .header-inner { gap: 17px; padding-right: 20px; padding-left: 20px; }
  .primary-nav { gap: 14px; }
  .header-tools { gap: 11px; }
  .section-name { padding-left: 12px; }
  .home-layout { grid-template-columns: minmax(0,1fr) 250px; gap: 28px; }
  .source-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .source-controls { grid-template-columns: minmax(180px,1fr) auto minmax(145px,200px); }
  .source-controls #source-status { grid-column: 3; }
  .source-controls label[for="source-status"] { grid-column: 2; }
  .source-controls [data-clear-source] { grid-column: 1; grid-row: 2; justify-self: start; }
}

@media (max-width: 720px) {
  .header-inner { min-height: 64px; gap: 11px; flex-wrap: wrap; padding: 10px 17px; }
  .brand { font-size: 12px; }
  .brand-mark { width: 23px; height: 23px; }
  .section-name { margin-right: auto; font-size: 12px; }
  .nav-disclosure { display: block; order: 3; margin-left: auto; }
  .nav-disclosure > summary { min-height: 38px; display: flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.34); border-radius: var(--radius-control); color: white; cursor: pointer; list-style: none; }
  .nav-disclosure > summary::-webkit-details-marker { display: none; }
  .nav-disclosure > summary:hover { border-color: #f2dca9; color: #f2dca9; }
  .nav-disclosure > summary::after { content: '⌄'; color: #ead49e; }
  .nav-disclosure[open] > summary::after { content: '⌃'; }
  .nav-disclosure .primary-nav { display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; width: max-content; min-width: 210px; max-width: calc(100vw - 24px); padding: 8px; margin: 0; border: 1px solid rgba(255,255,255,.16); background: var(--navy); box-shadow: var(--shadow); }
  .nav-disclosure[open] .primary-nav { display: grid; gap: 2px; }
  .nav-disclosure .primary-nav a { min-height: 44px; display: flex; align-items: center; padding: 0 12px; }
  .header-tools { order: 2; gap: 10px; }
  .header-tools a { font-size: 11px; }
  .header-tools .update-link { display: none; }
  .page-shell { padding: 0 17px 53px; }
  .hero-section { padding: 51px 0 34px; }
  .hero-section h1 { font-size: clamp(38px, 9vw, 53px); }
  .hero-intro { margin: 16px 0 18px; font-size: 15px; }
  .hero-meta { gap: 7px 14px; }
  .hero-meta .status-note { flex-basis: 100%; }
  .hero-search { height: 50px; margin-top: 21px; }
  .hero-search button { min-height: 38px; padding: 8px 11px; font-size: 11px; }
  .home-layout { grid-template-columns: minmax(0,1fr); gap: 27px; }
  .side-column { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; padding: 0; }
  .side-panel { margin: 0; padding: 17px; }
  .side-panel h2 { font-size: 18px; }
  .editorial-note { grid-column: 1 / -1; }
  .section-heading h2 { font-size: 25px; }
  .featured-entry { grid-template-columns: 25px minmax(0,1fr); gap: 8px; }
  .feature-index { font-size: 14px; }
  .article-card h3 { font-size: 20px; }
  .page-intro { padding: 39px 0 22px; }
  .page-intro h1 { font-size: 37px; }
  .library-layout { grid-template-columns: minmax(0,1fr); gap: 17px; }
  .filter-panel { position: static; max-height: none; padding: 16px; }
  .filter-panel .filter-group:first-of-type .check-list { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 12px; }
  .filter-group[open] .check-list { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 12px; }
  .article-card { padding: 17px; }
  .article-card-compact { padding: 0; }
  .results-toolbar { margin-bottom: 10px; }
  .reading-page { padding-top: 18px; }
  .reading-header { padding: 13px 0 25px; }
  .reading-header h1 { font-size: 36px; }
  .reading-source { flex-wrap: wrap; }
  .lead { font-size: 18px; }
  .summary-block { padding: 19px; }
  .reading-content { padding-bottom: 23px; }
  .reading-section { padding: 22px 0; }
  .reading-section h2 { font-size: 20px; }
  .reading-section p, .reading-section li { font-size: 14px; }
  .source-record dl > div { grid-template-columns: 82px minmax(0,1fr); gap: 8px; }
  .topic-grid, .method-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .topic-card { min-height: 152px; padding: 17px; }
  .topic-card h3 { font-size: 18px; }
  .source-controls { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .source-controls .text-input { grid-column: 1 / -1; }
  .source-controls label[for="source-domain"], .source-controls label[for="source-status"] { grid-column: auto; }
  .source-controls #source-domain, .source-controls #source-status { grid-column: auto; }
  .source-controls [data-clear-source] { grid-column: 1 / -1; grid-row: auto; }
  .source-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .source-card { padding: 15px; }
  .source-card h2 { font-size: 18px; }
  .source-detail-title { align-items: flex-start; flex-direction: column; }
  .source-detail-title h1 { font-size: 36px; }
  .guide-layout { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .guide-aside { padding-top: 0; }
  .saved-toolbar { align-items: flex-start; flex-direction: column; }
  .footer-inner { padding: 25px 17px 18px; flex-direction: column; gap: 18px; }
  .copyright { padding: 0 17px 18px; }
}

@media (max-width: 430px) {
  body { font-size: 15px; }
  .header-inner { padding-right: 12px; padding-left: 12px; }
  .brand { gap: 6px; letter-spacing: .08em; }
  .section-name { font-size: 11px; padding-left: 8px; }
  .header-tools { gap: 6px; }
  .header-tools a { font-size: 10px; }
  .saved-nav span { min-width: 16px; height: 16px; }
  .page-shell { padding-right: 13px; padding-left: 13px; }
  .hero-section { padding-top: 41px; }
  .hero-section h1 { font-size: clamp(34px, 9.8vw, 43px); }
  .hero-intro { font-size: 14px; }
  .hero-search { gap: 6px; padding-left: 10px; }
  .hero-search input { font-size: 12px; }
  .hero-search button { padding: 7px 8px; }
  .section-heading { align-items: flex-start; }
  .section-heading .text-link { align-self: end; text-align: right; font-size: 11px; }
  .side-column { grid-template-columns: minmax(0,1fr); }
  .editorial-note { grid-column: auto; }
  .article-card h3 { font-size: 19px; }
  .article-summary { font-size: 13px; }
  .card-actions { gap: 7px 13px; }
  .card-actions .text-link, .quiet-button { font-size: 10px; }
  .filter-panel .filter-group:first-of-type .check-list, .filter-group[open] .check-list { grid-template-columns: minmax(0,1fr); }
  .results-toolbar label { gap: 4px; }
  .sort-select { max-width: 123px; }
  .article-card { padding: 14px; }
  .article-card-compact { padding: 0; }
  .reading-header h1 { font-size: 32px; }
  .reading-source { padding: 10px; }
  .topic-grid, .method-grid { grid-template-columns: minmax(0,1fr); }
  .topic-card { min-height: 133px; }
  .source-controls { grid-template-columns: minmax(0,1fr); }
  .source-controls .text-input, .source-controls label[for="source-domain"], .source-controls label[for="source-status"], .source-controls #source-domain, .source-controls #source-status, .source-controls [data-clear-source] { grid-column: 1; }
  .source-grid { grid-template-columns: minmax(0,1fr); }
  .source-card { padding: 17px; }
  .source-detail-title h1 { font-size: 32px; }
  .saved-item { padding: 15px; }
  .guide-callout { padding: 15px; }
  .guide-prompt { padding: 15px; }
  .guide-prompt .section-heading { align-items: flex-start; }
  .footer-links { gap: 9px 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media (forced-colors: active) {
  :root { scrollbar-color: auto; }
  ::-webkit-scrollbar-track { background: Canvas; }
  ::-webkit-scrollbar-thumb { background: ButtonText; border-color: Canvas; }
  ::-webkit-scrollbar-thumb:hover, ::-webkit-scrollbar-thumb:active { background: Highlight; }
}

/* Visible, persistent article favourites. */
button[data-save] { min-height:40px; padding:8px 13px; border:1px solid #d8c58d; border-radius:6px; background:#fffaf0; color:#6f5219; font-size:13px; font-weight:600; cursor:pointer; }
button[data-save]:hover { background:#f6ebce; }
button[data-save][aria-pressed="true"] { background:#f2e4bd; border-color:#b99745; color:#604511; }
button[data-save]:focus-visible, .saved-nav:focus-visible { outline:2px solid #287ca2; outline-offset:3px; }
.update-log details { margin-top:16px; }
.update-log summary { cursor:pointer; font-weight:600; }
.update-log li { margin:10px 0; line-height:1.7; }
@media(max-width:360px) { .header-inner { column-gap:8px; } .saved-nav { font-size:11px; white-space:nowrap; } }

.guide-manual { margin-top:32px; }
.guide-manual > p { color:var(--text-muted, #526575); line-height:1.9; }
.manual-section { border-top:1px solid #dedfd9; padding:20px 0; }
.manual-section summary { cursor:pointer; font-size:20px; font-weight:600; line-height:1.6; color:#18354a; }
.manual-section p { font-size:15px; line-height:1.95; margin:16px 0; overflow-wrap:anywhere; }
.manual-section pre { padding:18px; background:#eef1f2; white-space:pre-wrap; overflow-wrap:anywhere; font-size:12px; }
.guide-resource-links { display:flex; gap:14px 20px; flex-wrap:wrap; margin-top:18px; font-size:13px; }
.guide-prompt #update-prompt { max-height:340px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; }
@media(max-width:600px) { .manual-section summary { font-size:18px; } .guide-prompt .section-heading { flex-wrap:wrap; gap:12px; } }

/* Homepage identity: gold ring and blue water drop; retain geometry on dark header. */
.brand { font-family:Georgia,serif; font-weight:400; letter-spacing:.18em; }
.brand .brand-mark { box-sizing:border-box; position:relative; display:block; flex:0 0 auto; width:23px; height:23px; border:2px solid #bc9b53; border-radius:50%; }
.brand .brand-mark::after { content:''; position:absolute; width:7px; height:7px; bottom:-5px; left:6px; border-radius:0 65% 65%; transform:rotate(45deg); background:#468aa5; box-shadow:0 0 0 3px #10243a; }
.brand .brand-dot { color:#468aa5; }


/* Source filters: wrap as complete label/control pairs. */
.source-controls {display:flex;flex-wrap:wrap;align-items:center;gap:14px;}
.source-controls > .text-input {flex:1 1 100%;min-width:0;}
.source-filter {display:flex;align-items:center;gap:8px;min-width:0;flex:1 1 230px;}
.source-filter .select-input {flex:1;min-width:0;max-width:100%;}
@media(max-width:720px){.source-filter{flex-basis:100%;}.source-filter label{flex:0 0 64px;}.source-controls > .plain-link{margin-left:auto;}}

/* Long-form editorial reading: comfortable measure and direct chapter links. */
.guide-toc {margin:28px 0 8px;padding:22px 24px;border:1px solid var(--line);background:#faf9f5;}
.guide-toc-heading {display:flex;align-items:baseline;justify-content:space-between;gap:12px;}
.guide-toc h2 {font-size:21px;margin:0;}
.guide-toc-heading span {font-size:12px;color:#63757f;flex-shrink:0;}
.guide-scope {font-size:13px;line-height:1.8;color:#65717a;}
.guide-toc ol {padding-left:24px;margin:14px 0 0;}
.guide-toc li {padding:4px 0;color:#94723c;font-size:14px;line-height:1.65;}
.guide-toc a {color:#32637a;text-decoration:underline;text-decoration-color:#c4d0d4;text-underline-offset:4px;}
.guide-section {scroll-margin-top:96px;}
.long-guide .reading-section p {font-size:17px;line-height:2;letter-spacing:.01em;color:#354852;margin:0 0 16px;overflow-wrap:anywhere;}
.long-guide .reading-section p:last-child {margin-bottom:0;}
.long-guide .reading-section h2 {font-size:24px;line-height:1.5;margin:0 0 18px;}
.guide-section:focus {outline:2px solid #bc9b53;outline-offset:7px;}
@media(max-width:720px){.guide-toc{padding:18px 16px;}.long-guide .reading-section p{font-size:16px;line-height:1.95;}.long-guide .reading-section h2{font-size:22px;}.guide-section{scroll-margin-top:80px;}}

.channel-audit {margin-top:32px;padding-top:28px;border-top:1px solid var(--line);}
.channel-checks {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.channel-check {padding:20px;background:#faf9f5;border:1px solid var(--line);min-width:0;}
.channel-check-heading {display:flex;flex-wrap:wrap;align-items:center;gap:10px;justify-content:space-between;}
.channel-check h3 {font-size:17px;margin:0;}.channel-check p{font-size:14px;line-height:1.9;overflow-wrap:anywhere;}.channel-check small{color:#65717a;}
.channel-check a,.supplementary-sources a{color:#32637a;text-underline-offset:4px;}
.supplementary-sources a{display:block;margin:12px 0;overflow-wrap:anywhere;}
@media(max-width:720px){.channel-checks{grid-template-columns:1fr;}.channel-check{padding:18px;}}
