/* Shared finishing layer for the desk, directory, and author workspace. */
body { text-rendering: optimizeLegibility; }
.priority-signals { padding: 18px; border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: 12px; background: var(--paper); box-shadow: var(--shadow-small); margin-bottom: 24px; }
.priority-signals h2 { margin: 0; font-size: 14px; }
.priority-signals > .muted, .signal-notice { font-size: 12px; line-height: 1.6; }
.priority-signal { padding: 14px 0; border-bottom: 1px solid var(--line); }
.priority-signal:last-child { border-bottom: 0; }
.priority-signal button { display: block; border: 0; padding: 6px 0; background: none; color: var(--ink); font: 600 14px/1.5 var(--font-ui); text-align: start; cursor: pointer; }
.priority-signal button:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.priority-signal p, .signal-type { font-size: 11px; margin: 4px 0 0; line-height: 1.5; }
.signal-type { color: var(--green); }
.signal-notice { color: var(--muted); margin-bottom: 0; }
.coverage-overview, .story-check { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); margin-bottom: 16px; }
.coverage-overview summary, .story-check summary { cursor: pointer; font-weight: 600; }
.coverage-overview p, .story-check p { color: var(--muted); line-height: 1.6; font-size: 13px; }
.coverage-topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.coverage-topic { display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 14px; text-decoration: none; }
.coverage-topic span { color: var(--muted); font-size: 12px; }
.coverage-topic .coverage-gap { color: var(--ink); font-weight: 600; }
.coverage-attention { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
.story-check label { display: block; margin-bottom: 8px; font-size: 13px; }
.story-check-input { display: flex; gap: 8px; }
.story-check-input input { flex: 1; min-width: 0; }
.coverage-match { display: block; margin: 12px 0; }
.coverage-formats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.source-history { font-size: 12px; margin-top: 8px; }
.source-history summary { cursor: pointer; color: var(--green); padding-block: 4px; }
.source-history p { max-width: 240px; line-height: 1.6; }
@media (max-width: 760px) { .story-check-input { flex-direction: column; } .coverage-topics { grid-template-columns: 1fr; } }
:is(h1, h2, h3) { text-wrap: pretty; }
:is(button, a, summary, input, select, textarea):focus-visible {
  outline: 2px solid var(--focus, var(--green));
  outline-offset: 3px;
}
:is(input, textarea, select) { caret-color: var(--green); }
.site-footer .footer-maker { margin: 8px 0; font-size: 12px; color: var(--muted); }
.site-footer .footer-maker a { color: var(--green); text-decoration: none; }
:is(.source-row, .contribution-panel, .directory-results-panel) {
  box-shadow: inset 0 1px 0 var(--edge-highlight), var(--shadow-small);
}
.reading .story h3 { line-height: 1.22; }
.reading .story:focus-within { box-shadow: 0 0 0 2px var(--sage), var(--shadow-raised); }
.reading .story-bottom { gap: 10px; }
.workspace-links button[aria-current="page"] { box-shadow: inset 3px 0 0 var(--green), inset 0 1px 0 var(--edge-highlight); }
.source-row { transition: background-color 160ms, box-shadow 160ms; }
.source-row:focus-within { background: var(--wash); }
.directory-intro, .contribution-intro { border-top: 3px solid var(--accent-line); }
.contribution-panel:focus-within { border-color: var(--accent-line); }
.dossier-body { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.dossier-text, .dossier-full-body { line-height: 1.85; }
.dossier-section-title { letter-spacing: .015em; }
.dossier-highlights { background: var(--wash); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.dossier-highlights .dossier-reading-notice { border: 0; margin-top: 8px; padding-top: 0; }
.dossier-highlights .dossier-takeaways { margin-bottom: 0; }
.dossier-audit-grid dd { overflow-wrap: anywhere; }
.reader-tools { border-bottom: 1px solid var(--line); padding: 0 0 14px; }
.reader-tools > summary { cursor: pointer; font-size: 13px; font-weight: 600; padding: 10px 0; color: var(--muted); }
.reader-tools[open] > summary { color: var(--ink); }
.reader-tools .dossier-actions-bar { margin: 8px 0 0; }
.saved-views-panel { box-shadow: var(--shadow-overlay); }
#saved-views-list > li { display: flex; align-items: center; gap: 6px; }
.saved-view-open { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.saved-view-remove { flex-shrink: 0; min-height: 36px; }
@media (hover: hover) and (pointer: fine) {
  .source-row:hover { background: var(--wash); }
  .reading .stories:not(.story-list) > .story:hover { transform: translateY(-2px); box-shadow: var(--shadow-raised); }
  .edition-link:hover .edition-stack > span { transform: rotateY(0) rotateZ(0) translateY(-2px); }
}
@media (max-width: 760px) {
  .dossier-highlights { padding: 14px; }
  .saved-view-remove { min-height: 44px; }
  .reading .story h3 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .reading .stories > .story, .edition-stack > span { transform: none !important; }
}
@media (forced-colors: active) {
  .dossier-highlights { border-color: CanvasText; }
  .workspace-links button[aria-current="page"] { border-color: Highlight; }
}

/* Shared surfaces use the same edges and depth on every route. */
:is(.research-panel, .directory-filters, .directory-results-panel, .contribution-panel,
    .information-card, .privacy-dashboard, .analytics-panel, .evidence-list article) {
  border-radius: var(--radius-panel);
  box-shadow: inset 0 1px 0 var(--edge-highlight), var(--shadow-small);
}
:is(.directory-intro, .contribution-intro, .information-hero) {
  background: linear-gradient(112deg, var(--wash), var(--paper) 70%);
  border-top: 1px solid var(--line);
  box-shadow: inset 0 1px 0 var(--edge-highlight), var(--shadow-small);
}
:is(.directory-intro, .contribution-intro, .information-hero) h1 {
  letter-spacing: -.035em;
  line-height: 1.05;
}
.site-header .site-nav { gap: clamp(14px, 2vw, 26px); }
.site-header .site-nav > a { font-size: 12px; }
.site-header .brand-name { white-space: nowrap; }
.site-tools .theme-select, .cmd-pill {
  background: var(--control-surface);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 var(--edge-highlight), var(--shadow-small);
}
.site-tools .theme-select:hover, .cmd-pill:hover { border-color: var(--accent-line); }
.site-footer { padding-block: 28px 36px; gap: 28px; }
.site-footer .footer-nav { row-gap: 8px; }
.site-footer .footer-nav a { min-height: 32px; display: inline-flex; align-items: center; }

/* The search label and research link share one row so filters align. */
.reading-search-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reading-search-heading label { margin: 0; }
.reading-search-heading a { flex-shrink: 0; font-size: 11px; font-weight: 550; color: var(--green); text-decoration: none; }
.reading-search-heading a:hover { text-decoration: underline; }
.reading .discovery-fields { align-items: end; }
.reading .discovery-fields > :not(.reading-search) { min-width: 0; }
.reading .reading-search .search-wrap { margin-top: 6px; box-shadow: var(--shadow-small); }
.reading .search-wrap:focus-within { outline: 0; box-shadow: var(--shadow-focus); }
.reading .discovery-fields label { font-size: 12px; }
.desk-controls { margin-top: 14px; }
.reading .results-line { margin-top: 16px; padding-block: 12px; }
.reading .reading-result-context p, .reading #sort { font-size: 12px; }
.reading .reading-reload { font-size: 12px; min-height: 36px; }
.reading .health-pill { font-size: 11px; }
.workspace-sidebar { border-inline-end: 1px solid var(--line); padding-inline-end: 16px; }
.workspace-sidebar > nav { padding-bottom: 2px; }
.sidebar-section > a.sidebar-secondary {
  display: flex; align-items: center; min-height: 42px; margin-bottom: 20px;
  text-decoration: none; border: 1px solid var(--line); background: var(--paper);
  box-shadow: var(--shadow-small); font-weight: 600;
}
.sidebar-section h2 { font-size: 10px; letter-spacing: .09em; }
.workspace-links button[aria-current="page"] {
  background: linear-gradient(105deg, var(--sage), var(--wash));
  border-color: var(--accent-line);
}
.reading .story { padding: 22px 22px 18px; }
.reading .story h3 { font-size: 27px; line-height: 1.18; margin-block: 12px; }
.reading .story-summary { color: var(--summary); font-size: 14px; line-height: 1.7; }
.reading .story-top .source-badge { font-size: 10px; font-weight: 650; background: var(--wash); }
.reading .story-bottom { padding-top: 14px; }
.reading .story-byline { gap: 9px; }
.reading .story-attribution strong { font-size: 12px; line-height: 1.4; }
.reading .story-attribution > span { font-size: 11px; }
.reading .source-mark { background: var(--sage); border: 1px solid var(--line); }
.reading .story-actions .card-original-link { text-decoration: none; }
.reading .story-actions .card-original-link:hover { text-decoration: underline; }
.reading .story-actions button { background: var(--control-surface); }
.reading .story-actions button:is(:hover, [aria-pressed="true"]) { background: var(--sage); }
.reading .story-list .story { padding: 22px 18px; }
.reading .story-list .story h3 { font-size: 19px; line-height: 1.4; }
.desk-masthead { overflow: hidden; border-color: #456958; }
.desk-masthead h1 { letter-spacing: -.035em; }
.intelligence-rail .coverage-lead { box-shadow: var(--shadow-small); }
.intelligence-rail .coverage-lead h3 { line-height: 1.18; }
.intelligence-rail .headline-list h3 { line-height: 1.5; }
.intelligence-rail .coverage-lead p { font-size: 13px; line-height: 1.75; }
.dossier-header { box-shadow: 0 1px 0 var(--line), var(--shadow-small); }
.dossier-body { padding-inline: clamp(20px, 3vw, 36px); }
.dossier-headline { letter-spacing: -.025em; }
.dossier-highlights { background: linear-gradient(130deg, var(--wash), var(--paper)); }
.dossier-actions-bar :is(button, a) { border-radius: var(--radius-control); }
.dossier-section + .dossier-section { margin-top: 24px; }

/* A quieter research form leaves the source evidence as the focal point. */
.research-main { padding-top: 40px; }
.research-header { padding-bottom: 28px; margin-bottom: 28px; }
.research-header h1 { font-size: clamp(43px, 5vw, 68px); margin-bottom: 14px; }
.research-header > p:last-child { font-size: 15px; line-height: 1.7; margin-bottom: 0; max-width: 65ch; }
.research-form { background: linear-gradient(150deg, var(--wash), var(--paper) 56%); border-color: var(--accent-line); }
.research-form > label { font-size: 14px; }
.research-form textarea {
  min-height: 126px; padding: 15px 16px; margin-block: 12px 18px; font-size: 16px;
  line-height: 1.65; border-radius: 10px; box-shadow: inset 0 1px 2px #14291c04;
}
.research-form textarea:focus-visible { box-shadow: var(--shadow-focus); outline-offset: 2px; }
.research-controls { gap: 12px; }
.research-controls label { margin: 0; }
.research-controls select { min-height: 44px; font-size: 13px; }
.research-controls button { min-height: 44px; margin: 0; }
.research-privacy { font-size: 11px; line-height: 1.7; margin-top: 16px; }
.research-panel h2 { font-size: 28px; line-height: 1.2; }
.research-rail .research-panel h2 { font: 650 17px/1.35 var(--font-ui); letter-spacing: -.025em; }
.research-rail .research-label { font-size: 10px; }
.research-rail .research-panel > p:not(.research-label) { font-size: 13px; line-height: 1.7; }
.research-evidence li { padding: 16px 6px 20px; }
.research-evidence li::marker, .research-claims li::marker { color: var(--green); font-size: 12px; font-weight: 650; }
.research-evidence h3 { font-size: 17px; line-height: 1.45; letter-spacing: -.015em; }
.research-evidence h3 a { text-decoration: none; }
.research-evidence h3 a:hover { text-decoration: underline; }
.research-evidence p { font-size: 14px; line-height: 1.8; }
.research-evidence p.research-meta { font-size: 11px; margin-block: 9px; }
.research-evidence li > a:last-child { display: inline-flex; align-items: center; min-height: 36px; color: var(--green); font-size: 12px; }
.research-claims p { font-size: 15px; line-height: 1.85; }
.research-cite { border: 1px solid var(--accent-line); padding: 2px 3px; line-height: 1.4; text-decoration: none; border-radius: 5px; }
.research-cite:hover { background: var(--green); color: var(--action-text); }
.research-note { line-height: 1.75; padding-top: 8px; }
.research-evidence li:target { border-radius: 8px; background: var(--wash); outline-offset: 4px; }
.research-evidence li:last-child, .research-claims li:last-child { border-bottom: 0; padding-bottom: 4px; }
.research-status:not(:empty) { padding-block: 8px; }
.monitor-consent { border: 1px solid var(--accent-line); padding: 13px 14px; background: var(--wash); }
.monitor-alerts > li { border-radius: 7px; padding: 14px 10px; }
.monitor-alerts h4 { line-height: 1.55; }

/* Directory, author workspace, and information pages follow one scale. */
.directory-fields { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.directory-intro { padding: clamp(24px, 3vw, 40px); }
.directory-intro .directory-reading-note { max-width: 70ch; }
.directory-overview { border-radius: 10px; box-shadow: var(--shadow-raised); }
.directory-overview dd { font-size: 26px; letter-spacing: -.045em; }
.directory-overview > div { padding: 18px 20px; }
.directory-columns { font-size: 11px; letter-spacing: .02em; padding-block: 14px; }
.directory-row { min-height: 100px; padding-block: 16px; }
.directory-identity h2 { font-size: 15px; line-height: 1.4; }
.directory-state { border-radius: 20px; padding: 3px 9px; }
.directory-links a { font-size: 12px; border-radius: 7px; text-decoration: none; }
.directory-links a:hover { background: var(--sage); }
.contribution-intro { margin-bottom: 20px; padding-block: 36px; }
.author-steps { margin-bottom: 28px; box-shadow: none; }
.author-steps a { padding-block: 17px; }
.author-steps span { border: 1px solid var(--accent-line); box-shadow: inset 0 1px 0 var(--edge-highlight); }
.contribution-panel h2 { font-size: 20px; margin-bottom: 16px; }
.contribution-panel input, .contribution-panel textarea { padding: 12px; }
.contribution-panel textarea { line-height: 1.7; }
.contribution-selected { border: 1px solid var(--accent-line); border-radius: 10px; }
.information-hero h1 { font-size: clamp(42px, 4.7vw, 66px); }
.information-nav { gap: 6px; }
.information-nav a { border-radius: 20px; padding: 9px 16px; min-height: 38px; }
.information-nav a[aria-current="page"] { border-color: var(--accent-line); background: var(--sage); box-shadow: none; color: var(--green); }
.information-hero .information-lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.75; }
.about-note { transform: perspective(900px) rotateY(-4deg) rotateZ(.7deg); border-color: var(--accent-line); box-shadow: inset 0 1px 0 var(--edge-highlight), 8px 16px 28px -24px #14291c70; }
.about-note .note-mark { opacity: .65; }
.creator-panel { border-radius: 16px; }
.creator-portrait { transition: transform var(--motion-panel) var(--ease-out), box-shadow var(--motion-panel); }
.creator-identity { background: linear-gradient(145deg, var(--wash), var(--sage)); }
.creator-story p { max-width: 65ch; }
.information-prose p, .information-prose li { max-width: 74ch; }
.information-prose section:last-child { border-bottom: 0; }
.privacy-counts { background: var(--subtle); }
.privacy-counts strong { font-size: 32px; font-variant-numeric: tabular-nums; }
.privacy-selections { gap: 8px; }
.privacy-selections label { min-height: 42px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-size: 12px; cursor: pointer; }
.privacy-selections label:has(input:checked) { background: var(--sage); border-color: var(--accent-line); color: var(--green); }
.privacy-selections label:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.page-contents a { border-radius: 0 6px 6px 0; }

@media (hover: hover) and (pointer: fine) {
  .creator-portrait:hover { transform: perspective(600px) rotateY(-4deg) translateY(-2px); box-shadow: var(--shadow-raised); }
  .research-evidence li { transition: background-color var(--motion-fast); }
  .research-evidence li:hover { background: var(--surface-bottom); }
  .information-nav a, .privacy-selections label { transition: color var(--motion-fast), background-color var(--motion-fast), border-color var(--motion-fast); }
}
@media (max-width: 1150px) {
  .directory-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .site-header .site-nav { gap: 13px; }
  .site-header .site-nav > a { font-size: 11px; }
  .research-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .research-rail .research-panel { min-width: 0; }
}
@media (max-width: 760px) {
  .site-header .site-nav > a { font-size: 12px; }
  .workspace-sidebar { border-inline-end: 0; padding-inline-end: 0; }
  .reading .story { padding: 19px 18px 16px; }
  .reading .story h3 { font-size: 26px; }
  .reading .reading-search-heading a { min-height: 28px; font-size: 11px; }
  .reading .reading-result-tools { row-gap: 6px; }
  .reading .health-pill { font-size: 10px; }
  .reading .story-list .story { padding-inline: 12px; }
  .directory-intro, .contribution-intro { padding: 26px 22px; }
  .directory-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-row { gap: 14px; padding: 18px 16px; }
  .directory-overview > div { padding: 13px 10px; }
  .directory-overview dd { font-size: 22px; }
  .author-steps a { padding-block: 12px; }
  .research-main { padding-top: 26px; }
  .research-header { margin-bottom: 22px; padding-bottom: 22px; }
  .research-form textarea { min-height: 110px; padding: 12px; }
  .research-panel h2 { font-size: 25px; }
  .research-evidence h3 { font-size: 16px; }
  .research-evidence, .research-claims { padding-inline-start: 18px; }
  .research-cite { min-width: 29px; padding: 4px; }
  .information-hero h1 { font-size: clamp(39px, 10.5vw, 54px); }
  .information-card { padding: 24px; }
  .about-note { transform: none; }
  .site-footer { padding-block: 26px; }
}
@media (max-width: 590px) {
  .research-controls { grid-template-columns: minmax(0, 1fr); }
  .research-controls :is(select, button) { font-size: 16px; }
}
@media (max-width: 699px) {
  .site-header .site-nav { grid-column: 1 / -1; }
  .information-page .site-tools > .button { display: none; }
}
@media (max-width: 380px) {
  .site-header .site-nav { width: 100%; gap: 10px; justify-content: space-between; }
  .site-header .site-nav > a { font-size: 11px; padding-inline: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .about-note, .creator-portrait:hover { transform: none; }
}
@media (forced-colors: active) {
  .research-cite, .privacy-selections label:has(input:checked) { border-color: Highlight; }
  .desk-masthead { background: Canvas; color: CanvasText; border-color: CanvasText; }
  .desk-masthead :is(p, .edition-date) { color: CanvasText; }
}
