:root {
  --paper: #f7f7f2;
  --ink: #24344d;
  --muted: #64748b;
  --line: #cbd5e1;
  --orange: #f59e0b;
  --orange-dark: #b45309;
  --blue: #b45309;
  --acid: #f59e0b;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: inherit; }
button, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header { height: 76px; padding: 0 clamp(24px, 5vw, 78px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--ink); position: relative; z-index: 5; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-size: 21px; font-weight: 900; letter-spacing: -.05em; }
.brand-icon { width: 33px; height: 42px; display: grid; place-items: center; overflow: hidden; background: #fff; }
.brand img { width: 30px; height: 39px; object-fit: contain; }
.brand em { padding: 4px 6px 3px; background: #fff7ed; color: var(--orange-dark); border: 1px solid #fdba74; font-size: 9px; font-style: normal; letter-spacing: .12em; }
.site-header nav { display: flex; align-self: stretch; gap: 32px; }
.site-header nav a { display: flex; align-items: center; position: relative; color: #434a55; text-decoration: none; font-size: 14px; font-weight: 700; }
.site-header nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; background: transparent; }
.site-header nav a.is-active::after, .site-header nav a:hover::after { background: var(--orange); }
.profile-button { justify-self: end; width: 38px; height: 38px; border: 1px solid var(--ink); border-radius: 50%; background: transparent; color: var(--ink); font-size: 12px; font-weight: 900; cursor: pointer; }

main { overflow: hidden; }
.research-console { min-height: 480px; display: grid; grid-template-columns: minmax(0, .86fr) minmax(500px, 1.14fr); gap: clamp(38px, 6vw, 88px); padding: 62px clamp(24px, 7vw, 108px) 58px; border-bottom: 1px solid var(--ink); position: relative; }
.research-console::before { content: "IX"; position: absolute; right: -36px; top: -92px; color: transparent; -webkit-text-stroke: 1px rgba(16,21,29,.08); font: 900 420px/1 Arial, sans-serif; letter-spacing: -.13em; pointer-events: none; }
.console-intro, .research-input { position: relative; z-index: 1; }
.eyebrow, .section-index { margin: 0 0 28px; font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--orange-dark); }
.eyebrow > span:first-child { width: 8px; height: 8px; flex: 0 0 8px; background: var(--orange); }
#research-intelligence-date { width: auto; height: auto; background: transparent; }
h1 { margin: 0; max-width: 560px; font-family: Georgia, "Songti SC", serif; font-size: clamp(38px, 4.1vw, 56px); font-weight: 600; line-height: 1.13; letter-spacing: -.045em; }
.console-intro > p:last-child { max-width: 540px; margin: 22px 0 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.research-input { align-self: center; min-height: 280px; padding: 25px 27px 20px; background: #fff; color: var(--ink); border: 1px solid #94a3b8; box-shadow: 10px 10px 0 #fdba74; }
.research-input label { display: block; color: var(--muted); font-size: 13px; font-weight: 750; letter-spacing: .06em; }
.research-input textarea { width: 100%; min-height: 112px; padding: 16px 0; resize: none; border: 0; border-bottom: 1px solid #cbd5e1; outline: none; background: transparent; color: var(--ink); font-family: Georgia, "Songti SC", serif; font-size: clamp(19px, 1.75vw, 25px); line-height: 1.5; }
.research-input textarea::placeholder { color: #94a3b8; }
.research-input textarea:focus { border-bottom-color: var(--orange); }
.research-actions { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 20px; }
.mode-switch { display: flex; gap: 4px; }
.mode-switch button { padding: 8px 10px; border: 0; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; }
.mode-switch button.is-selected { background: #fff7ed; color: var(--orange-dark); box-shadow: inset 0 0 0 1px #fdba74; }
.mode-experiment-tag { display: inline-block; margin-left: 4px; padding: 2px 4px; border: 1px solid #fdba74; background: #fff; color: #9a4b08; font-size: 8px; font-weight: 900; line-height: 1; letter-spacing: .04em; vertical-align: 1px; }
.start-button { flex: 0 0 auto; padding: 13px 17px; border: 0; background: var(--orange); color: #fff; font-size: 13px; font-weight: 900; cursor: pointer; }
.start-button span { margin-left: 14px; }
.form-status { min-height: 18px; margin: 13px 0 -7px; color: var(--orange-dark); font-size: 12px; }
.start-button:disabled { cursor: wait; opacity: .72; }

.exploration-results { scroll-margin-top: 20px; border-bottom: 1px solid var(--ink); background: #fffaf3; }
.exploration-results-inner { padding: 56px clamp(24px, 7vw, 108px) 68px; }
.exploration-results-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 26px; }
.exploration-results-head .section-index { margin-bottom: 10px; color: var(--orange-dark); }
.exploration-results-head h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(28px, 3vw, 42px); font-weight: 600; letter-spacing: -.035em; }
.exploration-close, .exploration-path button { padding: 9px 12px; border: 1px solid #cbd5e1; background: #fff; color: #475569; font-size: 11px; font-weight: 800; cursor: pointer; }
.exploration-funnel { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 18px; padding: 0; border: 1px solid #d8dee8; list-style: none; background: #fff; }
.exploration-funnel li { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 12px 16px; border-right: 1px solid #e2e8f0; color: #94a3b8; font-size: 12px; }
.exploration-funnel li:last-child { border-right: 0; }
.exploration-funnel li span { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 auto; border: 1px solid #cbd5e1; border-radius: 50%; font-size: 10px; }
.exploration-funnel li.is-active { color: #9a4b08; background: #fff7ed; box-shadow: inset 0 -3px 0 var(--orange); }
.exploration-funnel li.is-active span { border-color: var(--orange); background: var(--orange); color: #fff; }
.exploration-funnel li.is-done { color: #475569; }
.exploration-funnel li.is-done span { border-color: #fdba74; background: #ffedd5; color: #9a4b08; }
.exploration-path { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; padding: 13px 15px; border-left: 3px solid var(--orange); background: #fff; color: #64748b; font-size: 12px; }
.exploration-path span { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.exploration-path strong { color: var(--ink); }
.exploration-path i { color: var(--orange-dark); font-style: normal; }
.exploration-progress-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; padding: 28px; border: 1px solid #d8dee8; border-top: 3px solid var(--orange); background: #fff; box-shadow: 0 14px 38px rgba(36,52,77,.055); }
.exploration-progress-copy span { display: block; color: var(--orange-dark); font-size: 10px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.exploration-progress-copy strong { display: block; margin-top: 9px; font-family: Georgia, "Songti SC", serif; font-size: 22px; line-height: 1.45; }
.exploration-progress-copy small { display: block; margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.exploration-cancel { min-height: 40px; margin-top: 16px; padding: 8px 12px; border: 1px solid #b91c1c; background: transparent; color: #991b1b; font-size: 12px; font-weight: 850; cursor: pointer; }
.exploration-cancel:hover, .exploration-cancel:focus-visible { background: #fff1f2; }
.exploration-progress-value { color: var(--orange-dark); font: 500 34px/1 Georgia, serif; }
.exploration-progress-track { grid-column: 1 / -1; height: 5px; overflow: hidden; background: #ffedd5; }
.exploration-progress-track i { display: block; position: relative; overflow: hidden; height: 100%; background: var(--orange); transition: width .35s ease; }
.exploration-progress-track i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, #ffffff99, transparent); animation: research-progress-loading 1.6s linear infinite; }
@keyframes research-progress-loading { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .exploration-progress-track i::after { animation: none; } }
.exploration-progress-overview { margin-top: 18px; }
.research-progress-overview { margin: 0 0 24px; padding: 22px 24px; border: 1px solid #fed7aa; border-top: 4px solid var(--orange); background: #fff; }
.research-progress-kicker { margin: 0 0 8px; color: var(--orange-dark); font-size: 10px; font-weight: 900; letter-spacing: .11em; }
.research-progress-overview h3 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(22px, 2vw, 29px); font-weight: 600; line-height: 1.4; }
.research-progress-lead { margin: 11px 0 0; color: #475569; font-size: 14px; line-height: 1.75; }
.research-progress-summary { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.research-progress-claims { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 17px 0 0; padding: 0; list-style: none; counter-reset: research-progress; }
.research-progress-claims li { position: relative; min-height: 62px; padding: 12px 13px 12px 38px; background: #fffaf3; color: #475569; font-size: 12px; line-height: 1.65; counter-increment: research-progress; }
.research-progress-claims li::before { content: counter(research-progress, decimal-leading-zero); position: absolute; left: 12px; top: 13px; color: var(--orange-dark); font: 700 10px/1 Georgia, serif; }
.research-progress-papers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.research-progress-papers a { padding: 7px 9px; border: 1px solid #e2e8f0; color: #526070; font-size: 10px; text-decoration: none; }
.exploration-intro { margin: 24px 0; max-width: 920px; }
.exploration-intro p { margin: 0 0 8px; color: var(--orange-dark); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.exploration-intro h3 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(23px, 2.2vw, 31px); font-weight: 600; }
.exploration-intro span { display: block; margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.exploration-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.exploration-card { display: flex; flex-direction: column; min-width: 0; padding: 23px; border: 1px solid #d8dee8; border-top: 3px solid var(--ink); background: #fff; }
.exploration-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--orange-dark); font-size: 10px; font-weight: 850; }
.exploration-card-meta strong { color: #475569; white-space: nowrap; }
.exploration-card h3 { margin: 20px 0 10px; font-family: Georgia, "Songti SC", serif; font-size: 22px; font-weight: 600; line-height: 1.42; }
.exploration-card > p { margin: 0; color: #526070; font-size: 13px; line-height: 1.72; }
.exploration-card > ol { margin: 18px 0 0; padding-left: 21px; color: #475569; font-size: 12px; line-height: 1.7; }
.exploration-callout, .exploration-warning { margin-top: 17px; padding: 13px 14px; border-left: 3px solid var(--orange); background: #fffaf3; color: #475569; font-size: 12px; line-height: 1.65; }
.exploration-callout strong { display: block; margin-bottom: 4px; color: #9a4b08; }
.exploration-warning { border-left-color: #94a3b8; background: #f8fafc; }
.exploration-known { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 17px; }
.exploration-known div { padding: 13px; background: #f8fafc; color: #526070; font-size: 11px; line-height: 1.6; }
.exploration-known strong { display: block; margin-bottom: 5px; color: var(--ink); }
.exploration-card footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 20px; }
.exploration-card footer span { color: var(--muted); font-size: 10px; }
.exploration-card footer button, .exploration-error button { flex: 0 0 auto; padding: 10px 12px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-size: 11px; font-weight: 850; cursor: pointer; }
.exploration-card footer button:disabled { border-color: #cbd5e1; background: #e2e8f0; color: #64748b; cursor: not-allowed; }
.exploration-stats { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.exploration-stats span { padding: 7px 9px; border: 1px solid #fed7aa; background: #fff; color: #64748b; font-size: 10px; }
.exploration-stats strong { color: #9a4b08; }
.exploration-evidence { margin-top: 18px; border: 1px solid #d8dee8; background: #fff; }
.exploration-evidence summary { padding: 13px 15px; color: #475569; font-size: 11px; font-weight: 850; cursor: pointer; }
.exploration-evidence > div { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid #e2e8f0; }
.exploration-evidence a { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 13px 15px; border-right: 1px solid #edf0f4; border-bottom: 1px solid #edf0f4; text-decoration: none; }
.exploration-evidence a strong { overflow: hidden; color: var(--ink); font-size: 11px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.exploration-evidence a span { color: var(--muted); font-size: 9px; }
.exploration-constraints { margin: 20px 0; padding: 18px; border: 1px solid #fed7aa; background: #fff; }
.exploration-constraints > strong { font-size: 13px; }
.exploration-constraints > div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 13px; }
.exploration-constraints label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 800; }
.exploration-constraints select { width: 100%; height: 36px; border: 1px solid #cbd5e1; background: #fff; color: #334155; font-size: 11px; }
.exploration-error, .exploration-empty { padding: 26px; border: 1px solid #d8dee8; background: #fff; color: #526070; }
.exploration-error strong { color: var(--ink); font-family: Georgia, "Songti SC", serif; font-size: 22px; }
.exploration-error p { line-height: 1.7; }
.paper-search-state { padding: 28px; border: 1px solid #d8dee8; border-top: 3px solid var(--orange); background: #fff; }
.paper-search-state > span { color: var(--orange-dark); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.paper-search-state > strong { display: block; margin-top: 10px; font-family: Georgia, "Songti SC", serif; font-size: 23px; }
.paper-search-state > p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.paper-search-loading { height: 4px; margin-top: 22px; overflow: hidden; background: #ffedd5; }
.paper-search-loading i { display: block; width: 42%; height: 100%; background: var(--orange); animation: paper-search-loading 1.15s ease-in-out infinite alternate; }
@keyframes paper-search-loading { from { transform: translateX(-30%); } to { transform: translateX(170%); } }
.paper-search-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; padding: 12px 15px; border-left: 3px solid var(--orange); background: #fff; }
.paper-search-summary span { color: var(--orange-dark); font-size: 11px; font-weight: 900; }
.paper-search-summary p { margin: 0; color: var(--muted); font-size: 11px; }
.paper-search-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.paper-search-card { display: grid; grid-template-columns: 40px minmax(0, 1fr) 42px; min-width: 0; border: 1px solid #d8dee8; background: #fff; }
.paper-search-rank { padding: 20px 8px; border-right: 1px solid #e2e8f0; color: var(--orange-dark); font: 700 11px/1 Georgia, serif; text-align: center; }
.paper-search-copy { min-width: 0; padding: 19px 18px 20px; }
.paper-search-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.paper-search-meta b { color: var(--orange-dark); font-weight: 850; text-align: right; }
.paper-search-copy h3 { margin: 12px 0 7px; font-family: Georgia, "Songti SC", serif; font-size: 19px; line-height: 1.35; }
.paper-search-copy h3 a { color: var(--ink); text-decoration: none; }
.paper-search-copy h3 a:hover { color: var(--orange-dark); }
.paper-search-authors { overflow: hidden; margin: 0 0 9px !important; color: #64748b !important; font-size: 10px !important; text-overflow: ellipsis; white-space: nowrap; }
.paper-search-copy > p { display: -webkit-box; overflow: hidden; margin: 0; color: #526070; font-size: 12px; line-height: 1.68; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.paper-search-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 13px; }
.paper-search-tags span { padding: 4px 6px; background: #f1f5f9; color: #64748b; font-size: 9px; }
.paper-search-open { display: grid; place-items: center; border-left: 1px solid #e2e8f0; color: var(--orange-dark); font-size: 18px; text-decoration: none; }
.paper-search-refine { margin-top: 18px; padding: 17px; border: 1px solid #fed7aa; background: #fff; }
.paper-search-refine > strong { font-size: 11px; }
.paper-search-refine > div { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.paper-search-refine button { padding: 7px 9px; border: 1px solid #d8dee8; background: #fff; color: #475569; font-size: 10px; cursor: pointer; }
.paper-search-refine button:hover, .paper-search-refine button:focus-visible { border-color: var(--orange); color: var(--orange-dark); outline: none; }

.signal-section { padding: 68px clamp(24px, 7vw, 108px); }
.section-heading { display: grid; grid-template-columns: 1fr minmax(260px, 430px); align-items: end; gap: 36px; margin-bottom: 30px; }
.section-heading .section-index { margin-bottom: 12px; color: var(--orange-dark); }
.section-heading h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(30px, 3vw, 42px); font-weight: 600; letter-spacing: -.035em; }
.section-heading > p, .section-heading > a { justify-self: end; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; text-decoration: none; }
.lead-signal { display: grid; grid-template-columns: 62px minmax(0, 1.5fr) minmax(260px, .72fr); border-top: 5px solid var(--ink); border-bottom: 1px solid var(--ink); }
.signal-number { padding: 28px 15px; border-right: 1px solid var(--line); color: var(--orange-dark); font: 700 14px/1 Georgia, serif; }
.signal-copy { padding: 24px clamp(22px, 3vw, 40px) 28px; }
.signal-meta { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; }
.signal-meta span { color: var(--blue); font-weight: 800; }
.signal-copy h3 { margin: 24px 0 13px; max-width: 780px; font-family: Georgia, "Songti SC", serif; font-size: clamp(24px, 2.35vw, 33px); line-height: 1.3; letter-spacing: -.025em; }
.signal-copy > p { max-width: 790px; color: #444c56; font-size: 16px; line-height: 1.85; }
.signal-implication { display: grid; grid-template-columns: 92px 1fr; gap: 16px; margin-top: 26px; padding-top: 20px; border-top: 1px dashed var(--line); font-size: 14px; line-height: 1.7; }
.signal-implication strong { color: var(--orange-dark); }
.evidence-panel { padding: 28px; border-left: 1px solid var(--ink); background: #efefe8; }
.evidence-panel > p { margin: 0 0 18px; color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.evidence-panel button { width: 100%; margin-top: 26px; padding: 13px; border: 1px solid var(--ink); background: transparent; font-size: 12px; font-weight: 800; cursor: pointer; }
.signal-list article { display: grid; grid-template-columns: 62px minmax(0, 1fr) 50px; align-items: start; border-bottom: 1px solid var(--line); }
.signal-list article > span { align-self: stretch; padding: 26px 15px; border-right: 1px solid var(--line); color: #737a84; font: 700 13px/1 Georgia, serif; }
.signal-list article > div { display: grid; grid-template-columns: 145px minmax(280px, .9fr) minmax(260px, 1.1fr); gap: 28px; align-items: center; padding: 23px 34px; }
.signal-list small { color: var(--blue); font-size: 11px; font-weight: 800; }
.signal-list h3 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 20px; line-height: 1.42; }
.signal-list p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.signal-list article > a { display: grid; place-items: center; height: 100%; border-left: 1px solid var(--line); text-decoration: none; font-size: 20px; }

.topics-section { padding: 82px clamp(24px, 7vw, 108px) 88px; background: #f2f0e9; border-top: 1px solid var(--ink); }
.topic-heading { align-items: start; margin-bottom: 38px; }
.topic-heading h2 { max-width: 760px; font-size: clamp(38px, 4.3vw, 58px); line-height: 1.12; }
.topic-heading-copy { justify-self: end; max-width: 430px; padding-top: 28px; border-top: 3px solid var(--orange); }
.topic-heading-copy strong { display: block; color: var(--ink); font-family: Georgia, "Songti SC", serif; font-size: 18px; }
.topic-heading-copy p { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.topic-principles { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 20px; border: 1px solid var(--ink); background: var(--ink); color: #fff; }
.topic-principles > div { display: grid; grid-template-columns: 34px 104px 1fr; gap: 14px; align-items: center; min-height: 92px; padding: 18px 22px; border-right: 1px solid rgba(255,255,255,.19); }
.topic-principles > div:last-child { border-right: 0; }
.topic-principles span { color: #fdba74; font: 600 12px/1 Georgia, serif; }
.topic-principles strong { font-size: 13px; letter-spacing: .04em; }
.topic-principles p { margin: 0; color: #cbd5e1; font-size: 11px; line-height: 1.6; }
.topic-workbench { display: grid; grid-template-columns: 320px minmax(0, 1fr); border: 1px solid var(--ink); border-top: 5px solid var(--ink); background: #fff; box-shadow: 14px 14px 0 #fed7aa; }
.topic-selector { display: flex; flex-direction: column; border-right: 1px solid var(--ink); background: #f8f7f2; }
.topic-selector-label { margin: 0; padding: 18px 20px 13px; border-bottom: 1px solid #cbd5e1; color: #64748b; font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.topic-selector button { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 5px 10px; min-height: 105px; padding: 18px 20px; border: 0; border-bottom: 1px solid #cbd5e1; background: transparent; color: var(--ink); text-align: left; cursor: pointer; transition: background .18s ease, color .18s ease; }
.topic-selector button::after { content: "→"; position: absolute; right: 18px; top: 20px; color: transparent; font-size: 14px; transition: color .18s ease, transform .18s ease; }
.topic-selector button:hover { background: #fff7ed; }
.topic-selector button:hover::after { color: var(--orange-dark); transform: translateX(3px); }
.topic-selector button.is-active { background: var(--ink); color: #fff; box-shadow: inset 5px 0 0 var(--orange); }
.topic-selector button.is-active::after { color: #fdba74; }
.topic-selector button > span { grid-row: 1 / 4; padding-top: 3px; color: var(--orange-dark); font: 700 11px/1 Georgia, serif; }
.topic-selector button.is-active > span { color: #fdba74; }
.topic-selector strong { padding-right: 18px; font-family: Georgia, "Songti SC", serif; font-size: 15px; line-height: 1.4; }
.topic-selector em { color: #526070; font-size: 10px; font-style: normal; line-height: 1.45; }
.topic-selector button.is-active em { color: #cbd5e1; }
.topic-selector small { color: #7c8797; font-size: 9px; }
.topic-selector button.is-active small { color: #aeb9c8; }
.topic-stage { min-width: 0; padding: 36px 38px 34px; }
.topic-stage-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; }
.topic-stage-head > div > span { color: var(--orange-dark); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.topic-stage-head h3 { max-width: 720px; margin: 10px 0 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(28px, 2.8vw, 38px); font-weight: 600; line-height: 1.22; letter-spacing: -.025em; }
.topic-evidence { flex: 0 0 184px; margin: 0; padding: 11px 13px; border-left: 3px solid var(--orange); background: #fff7ed; }
.topic-evidence span, .topic-evidence strong { display: block; }
.topic-evidence span { color: var(--orange-dark); font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.topic-evidence strong { margin-top: 5px; color: #526070; font-size: 10px; line-height: 1.45; }
.topic-question { display: grid; gap: 10px; margin: 26px 0 0; padding: 22px 24px; border-left: 5px solid var(--orange); background: var(--ink); color: #fff; }
.topic-question strong { color: #fdba74; font-size: 9px; letter-spacing: .12em; }
.topic-question span { max-width: 920px; font-family: Georgia, "Songti SC", serif; font-size: clamp(17px, 1.65vw, 22px); line-height: 1.55; }
.topic-definition { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 28px; margin-top: 0; padding: 24px 0; border-bottom: 1px solid #cbd5e1; }
.topic-definition strong { color: var(--orange-dark); font-size: 9px; letter-spacing: .1em; line-height: 1.6; }
.topic-definition p { margin: 0; color: #475569; font-family: Georgia, "Songti SC", serif; font-size: 16px; line-height: 1.85; }
.topic-lenses, .topic-features { margin-top: 25px; }
.topic-subhead { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 12px; }
.topic-subhead > span { color: var(--orange-dark); font-size: 9px; font-weight: 900; letter-spacing: .11em; }
.topic-subhead h4 { margin: 0; color: var(--ink); font-family: Georgia, "Songti SC", serif; font-size: 15px; font-weight: 600; }
.topic-lens-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid #cbd5e1; background: #f8fafc; }
.topic-lens-grid article { display: grid; grid-template-columns: 30px 1fr; gap: 8px 12px; min-width: 0; min-height: 122px; padding: 21px 19px; border-right: 1px solid #cbd5e1; }
.topic-lens-grid article:last-child { border-right: 0; }
.topic-lens-grid span { grid-row: 1 / 3; color: var(--orange-dark); font: 700 11px/1.4 Georgia, serif; }
.topic-lens-grid strong { color: var(--ink); font-size: 14px; line-height: 1.45; }
.topic-lens-grid p { margin: 0; color: #526071; font-size: 13px; line-height: 1.65; }
.topic-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid #cbd5e1; }
.topic-feature-card { min-width: 0; min-height: 230px; padding: 21px; border-right: 1px solid #cbd5e1; background: #fff; box-shadow: inset 0 3px 0 var(--ink); }
.topic-feature-card:nth-child(2) { background: #f7f9fc; }
.topic-feature-card:nth-child(3) { border-right: 0; background: #fffaf3; box-shadow: inset 0 3px 0 var(--orange); }
.topic-feature-card > span { color: var(--orange-dark); font-size: 9px; font-weight: 900; letter-spacing: .07em; }
.topic-feature-card h4 { margin: 15px 0 10px; color: #172033; font-family: Georgia, "Songti SC", serif; font-size: 16px; line-height: 1.45; }
.topic-feature-card p { margin: 0; color: #526071; font-size: 11px; line-height: 1.78; }
.topic-actions { display: flex; align-items: stretch; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.topic-actions a, .topic-actions button { min-height: 50px; padding: 11px 16px; border: 1px solid var(--ink); font-size: 11px; font-weight: 850; cursor: pointer; }
.topic-actions a { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--ink); color: #fff; text-decoration: none; }
.topic-actions a span { color: #fdba74; font-size: 16px; }
.topic-actions button { display: grid; grid-template-columns: auto auto; gap: 20px; align-items: center; background: #fff; color: var(--ink); text-align: left; }
.topic-actions button i { color: var(--orange-dark); font-size: 9px; font-style: normal; font-weight: 750; }
.topic-actions a:hover, .topic-actions a:focus-visible { background: #33445f; }
.topic-actions button:hover, .topic-actions button:focus-visible { border-color: var(--orange-dark); background: #fff7ed; outline: none; }

.weekly-section { padding: 68px clamp(24px, 7vw, 108px) 74px; background: #fff; border-top: 1px solid #e2e8f0; }
.weekly-heading-side { justify-self: end; max-width: 430px; }
.weekly-heading-side p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.weekly-heading-side a { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 900; text-decoration: none; }
.week-overview { display: grid; grid-template-columns: repeat(2, minmax(150px, 220px)) minmax(260px, 1fr); gap: 18px; align-items: center; width: 100%; margin: 0; padding: 17px 20px; border: 1px solid var(--line); background: #f8fafc; }
.week-overview div { display: grid; gap: 5px; }
.week-overview span { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.week-overview strong { font: 500 18px/1.25 Georgia, serif; color: var(--ink); }
.week-overview p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.weekly-board { border-top: 5px solid var(--ink); }
.weekly-lead { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, .55fr); background: var(--white); border-bottom: 1px solid var(--ink); }
.weekly-rank { display: flex; align-items: center; flex-direction: column; gap: 13px; padding: 27px 12px; border-right: 1px solid var(--line); }
.weekly-rank strong { font: 500 31px/1 Georgia, serif; }
.weekly-rank span { color: var(--orange-dark); font-size: 10px; font-weight: 900; }
.weekly-lead-copy { padding: 30px clamp(24px, 3.5vw, 48px) 34px; }
.paper-tags { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 11px; }
.paper-tags span { color: var(--blue); font-weight: 900; letter-spacing: .1em; }
.weekly-lead-copy h3 { max-width: 760px; margin: 22px 0 14px; font-family: Georgia, serif; font-size: clamp(23px, 2.2vw, 32px); font-weight: 500; line-height: 1.24; letter-spacing: -.02em; }
.weekly-lead-copy > p { color: #48505a; font-size: 15px; line-height: 1.75; }
.why-hot { display: grid; grid-template-columns: 130px 1fr; gap: 18px; margin-top: 25px; padding: 18px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); font-size: 13px; line-height: 1.65; }
.why-hot strong { color: var(--orange-dark); }
.weekly-lead-copy footer { display: flex; gap: 20px; margin-top: 24px; color: var(--muted); font-size: 11px; }
.weekly-lead-copy footer a { margin-left: auto; color: var(--ink); font-weight: 900; text-decoration: none; }
.paper-figure { padding: 30px 27px; border-left: 1px solid #fdba74; background: #fff7ed; color: var(--ink); }
.paper-figure > p { margin: 0 0 28px; color: var(--orange-dark); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.paper-figure > div { display: grid; grid-template-columns: 70px 1fr 25px; align-items: center; gap: 8px; margin: 16px 0; font-size: 10px; }
.paper-figure i { height: 4px; background: #fed7aa; }
.paper-figure b { display: block; height: 100%; background: var(--orange); }
.paper-figure em { color: var(--orange-dark); font-style: normal; text-align: right; }
.paper-figure > strong { display: block; margin-top: 34px; color: var(--orange-dark); font: 500 44px/1 Georgia, serif; }
.paper-figure > small { display: block; margin-top: 8px; color: var(--muted); font-size: 9px; letter-spacing: .14em; }
.weekly-list article { display: grid; grid-template-columns: minmax(0, 1fr) 58px; align-items: stretch; min-height: 132px; background: var(--white); border-bottom: 1px solid var(--line); }
.weekly-list article > div:first-child { align-self: center; padding: 22px 34px; }
.weekly-list small { color: var(--blue); font-size: 9px; font-weight: 900; letter-spacing: .09em; }
.weekly-list h3 { margin: 9px 0 6px; font-family: Georgia, serif; font-size: 21px; font-weight: 600; }
.weekly-list p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.weekly-score { display: flex; justify-content: center; align-items: center; flex-direction: column; border-left: 1px solid var(--line); }
.weekly-score strong { font: 500 25px/1 Georgia, serif; }
.weekly-score span { margin-top: 7px; color: var(--muted); font-size: 9px; }
.weekly-list article > a { display: grid; place-items: center; border-left: 1px solid var(--line); text-decoration: none; font-size: 20px; }

.site-footer { min-height: 90px; display: flex; align-items: center; gap: 30px; padding: 20px clamp(24px, 7vw, 108px); border-top: 1px solid var(--ink); font-size: 11px; }
.site-footer span:first-child { font-size: 16px; font-weight: 900; }
.site-footer span:last-child { margin-left: auto; }

@media (max-width: 1080px) {
  .research-console { grid-template-columns: 1fr; }
  .research-input { max-width: 760px; }
  .topic-principles > div { grid-template-columns: 28px 1fr; }
  .topic-principles p { grid-column: 2; }
  .topic-workbench { grid-template-columns: 285px minmax(0, 1fr); }
  .topic-stage { padding: 31px 28px 28px; }
  .topic-feature-card { min-height: 250px; padding: 17px; }
  .signal-list article > div { grid-template-columns: 110px 1fr; }
  .signal-list p { grid-column: 2; }
  .weekly-lead { grid-template-columns: 70px minmax(0, 1fr); }
  .paper-figure { grid-column: 1 / -1; border-left: 0; }
  .exploration-constraints > div { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .site-header { height: 64px; grid-template-columns: 1fr auto; padding: 0 18px; }
  .site-header nav { display: none; }
  .brand em { display: none; }
  .research-console { min-height: auto; gap: 46px; padding: 54px 20px 64px; }
  h1 { font-size: 34px; }
  .console-intro > p:last-child { font-size: 15px; }
  .research-input { min-height: 360px; margin-right: 8px; padding: 25px 20px 19px; box-shadow: 8px 8px 0 var(--orange); }
  .research-actions { align-items: stretch; flex-direction: column; }
  .mode-switch { overflow-x: auto; }
  .mode-switch button { white-space: nowrap; }
  .start-button { width: 100%; }
  .signal-section, .topics-section, .weekly-section { padding: 50px 20px; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; margin-bottom: 30px; }
  .section-heading > p, .section-heading > a { justify-self: start; }
  .lead-signal { grid-template-columns: 44px 1fr; }
  .signal-number { padding-left: 10px; }
  .signal-copy { padding: 24px 18px 30px; }
  .signal-copy h3 { margin-top: 20px; font-size: 24px; }
  .signal-implication { grid-template-columns: 1fr; }
  .evidence-panel { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--ink); }
  .signal-list article { grid-template-columns: 44px 1fr 42px; }
  .signal-list article > span { padding-left: 10px; }
  .signal-list article > div { display: block; padding: 22px 16px; }
  .signal-list h3 { margin: 9px 0; font-size: 18px; }
  .topic-workbench { grid-template-columns: 1fr; }
  .topic-heading h2 { font-size: 35px; }
  .topic-heading-copy { justify-self: start; padding-top: 20px; }
  .topic-principles { grid-template-columns: 1fr; }
  .topic-principles > div { min-height: 82px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.19); }
  .topic-principles > div:last-child { border-bottom: 0; }
  .topic-selector { display: grid; grid-template-columns: 1fr; border-right: 0; border-bottom: 1px solid var(--ink); }
  .topic-selector button { min-width: 0; min-height: 86px; }
  .topic-stage { padding: 24px 18px 20px; }
  .topic-stage-head { flex-direction: column; gap: 14px; }
  .topic-stage-head h3 { font-size: 23px; }
  .topic-evidence { flex-basis: auto; width: 100%; }
  .topic-question { padding: 19px 18px; }
  .topic-definition { grid-template-columns: 1fr; gap: 8px; }
  .topic-definition p { font-size: 15px; }
  .topic-subhead { align-items: flex-start; flex-direction: column; gap: 6px; }
  .topic-lens-grid, .topic-feature-grid { grid-template-columns: 1fr; }
  .topic-lens-grid article, .topic-feature-card { min-height: auto; border-right: 0; border-bottom: 1px solid #cbd5e1; }
  .topic-lens-grid article:last-child, .topic-feature-card:last-child { border-bottom: 0; }
  .topic-actions { flex-direction: column; }
  .topic-actions button { grid-template-columns: 1fr auto; }
  .weekly-heading-side { justify-self: start; }
  .week-overview { grid-template-columns: 1fr 1fr; }
  .week-overview p { grid-column: 1 / -1; }
  .weekly-lead { grid-template-columns: 1fr; }
  .weekly-rank { padding: 22px 8px; }
  .weekly-rank strong { font-size: 22px; }
  .weekly-lead-copy { padding: 25px 18px 28px; }
  .weekly-lead-copy h3 { font-size: 23px; }
  .why-hot { grid-template-columns: 1fr; }
  .weekly-lead-copy footer { flex-wrap: wrap; }
  .weekly-lead-copy footer a { width: 100%; margin-left: 0; }
  .paper-figure { padding: 27px 22px; }
  .paper-figure > strong { margin-top: 35px; }
  .weekly-list article { grid-template-columns: 48px minmax(0, 1fr) 42px; }
  .weekly-list article > div:nth-child(2) { padding: 20px 14px; }
  .weekly-score { display: none; }
  .weekly-list article > a { grid-column: 3; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 10px; }
  .site-footer span:last-child { margin-left: 0; }
  .exploration-results-inner { padding: 42px 20px 52px; }
  .exploration-results-head { align-items: flex-start; }
  .research-progress-claims { grid-template-columns: 1fr; }
  .exploration-funnel { grid-template-columns: 1fr; }
  .exploration-funnel li { border-right: 0; border-bottom: 1px solid #e2e8f0; }
  .exploration-funnel li:last-child { border-bottom: 0; }
  .exploration-path { align-items: flex-start; flex-direction: column; }
  .exploration-progress-card { grid-template-columns: 1fr; padding: 22px 18px; }
  .exploration-progress-value { grid-row: 1; }
  .exploration-progress-track { grid-column: 1; }
  .exploration-grid { grid-template-columns: 1fr; }
  .paper-search-grid { grid-template-columns: 1fr; }
  .exploration-known { grid-template-columns: 1fr; }
  .exploration-card footer { align-items: stretch; flex-direction: column; }
  .exploration-card footer button { width: 100%; }
  .exploration-evidence > div { grid-template-columns: 1fr; }
  .exploration-constraints > div { grid-template-columns: 1fr; }
}

/* Weekly editorial spread: one continuous page, not a wall of cards. */
.signal-section { padding-top: 72px; padding-bottom: 86px; }
.signal-section .section-heading { grid-template-columns: 1fr; margin-bottom: 28px; }
.signal-section .section-heading > div { position: relative; padding-bottom: 22px; }
.signal-section .section-heading > div::after { content: ""; position: absolute; left: 0; bottom: 0; width: 38px; height: 3px; background: var(--orange); }
.signal-section .section-heading h2 { font-size: clamp(36px, 3.3vw, 48px); }
.lead-signal { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, .72fr); overflow: hidden; border: 0; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--line); background: transparent; box-shadow: none; }
.signal-copy { padding: 32px clamp(28px, 3.2vw, 44px) 30px 0; }
.signal-copy h3 { margin: 20px 0 13px; max-width: 900px; font-size: clamp(27px, 2.45vw, 36px); line-height: 1.3; }
.signal-copy > p { display: -webkit-box; overflow: hidden; margin-bottom: 0; max-width: 900px; color: #475569; font-size: 15px; line-height: 1.8; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.lead-signal-context { padding: 34px 0 30px 34px; border-left: 1px solid var(--line); background: transparent; }
.lead-signal-context > strong { color: var(--orange-dark); font-size: 10px; letter-spacing: .12em; }
.lead-signal-context > p { display: -webkit-box; overflow: hidden; margin: 14px 0 16px; color: #53657b; font-size: 12px; line-height: 1.75; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.lead-signal-context > span { display: -webkit-box; overflow: hidden; padding-top: 13px; border-top: 1px solid #e5e7eb; color: #8490a0; font-size: 9px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.signal-source-strip { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; min-height: 62px; padding: 11px 0; border-top: 1px solid #e5e7eb; background: transparent; }
.signal-source-strip > b { flex: 0 0 auto; color: #94a3b8; font-size: 9px; letter-spacing: .14em; }
.signal-source-strip > button { flex: 0 0 auto; margin-left: auto; padding: 8px 0 8px 12px; border: 0; background: transparent; color: var(--ink); font-size: 10px; font-weight: 850; cursor: pointer; }
.signal-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 0; border-bottom: 1px solid var(--line); }
.signal-list article { grid-column: auto; display: flex; flex-direction: column; min-width: 0; min-height: 286px; padding: 31px 28px 26px; border: 0; border-right: 1px solid var(--line); background: transparent; box-shadow: none; transition: background-color .18s ease; }
.signal-list article:nth-child(3n) { border-right: 0; }
.signal-list article:nth-child(n+4) { border-top: 1px solid var(--line); }
.signal-list article:hover { background: rgba(255,255,255,.58); }
.signal-list[data-count="5"] article:nth-child(n+4) { grid-column: auto; min-height: 286px; }
.signal-card-meta { display: flex; align-items: center; gap: 9px; }
.signal-list .signal-list-index { color: var(--orange-dark); font: 850 10px/1 Inter, sans-serif; letter-spacing: .08em; }
.signal-card-meta small { padding-left: 9px; border-left: 1px solid #fdba74; color: var(--orange-dark); font-size: 9px; font-weight: 850; letter-spacing: .1em; }
.signal-list .signal-list-copy { display: block; padding: 22px 0 19px; }
.signal-list h3 { display: -webkit-box; overflow: hidden; margin: 0 0 11px; font-size: clamp(19px, 1.45vw, 23px); line-height: 1.38; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.signal-list p { display: -webkit-box; overflow: hidden; margin: 0; color: #64748b; font-size: 12px; line-height: 1.72; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.signal-sources { display: flex; gap: 10px; min-width: 0; margin-top: auto; padding-top: 13px; border-top: 1px solid rgba(203,213,225,.72); }
.signal-source-link { position: relative; display: grid; flex: 1 1 0; gap: 3px; min-width: 0; padding: 0 17px 0 0; color: var(--ink); text-decoration: none; transition: color .18s ease; }
.signal-source-link + .signal-source-link { padding-left: 10px; border-left: 1px solid #e5e7eb; }
.signal-source-link:hover, .signal-source-link:focus-visible { color: var(--orange-dark); outline: none; }
.signal-source-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.signal-source-head b { padding: 0; background: transparent; color: #526070; font-size: 8px; line-height: 1; letter-spacing: .1em; }
.signal-source-link.is-podcast .signal-source-head b { background: #fef0df; color: var(--orange-dark); }
.signal-source-head time { color: #94a3b8; font: 500 9px/1.2 monospace; }
.signal-source-link > strong { overflow: hidden; color: currentColor; font-size: 11px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.signal-source-title { overflow: hidden; color: #64748b; font-size: 9px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.signal-source-link > i { position: absolute; right: 1px; bottom: 1px; color: var(--orange-dark); font-size: 11px; font-style: normal; }
.signal-source-strip .signal-source-link { flex: 0 1 420px; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.signal-source-strip .signal-source-head { grid-row: 1 / 3; display: grid; justify-items: start; gap: 4px; }
.signal-source-strip .signal-source-title { max-width: 360px; }

.weekly-board { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(330px, .78fr); gap: 22px; border-top: 0; }
.weekly-lead { grid-template-columns: minmax(0, 1.25fr) minmax(245px, .62fr); overflow: hidden; border: 1px solid #d8dee8; border-top: 3px solid var(--ink); box-shadow: 0 14px 40px rgba(36,52,77,.05); }
.paper-figure { background: #fffaf3; }
.paper-figure dl { margin: 0; }
.paper-figure dl div { display: block; padding: 15px 0; border-top: 1px solid #fed7aa; }
.paper-figure dt { color: var(--orange-dark); font-size: 10px; font-weight: 900; letter-spacing: .06em; }
.paper-figure dd { margin: 6px 0 0; color: #475569; font-size: 12px; line-height: 1.55; }
.paper-figure > small { margin-top: 23px; font-size: 10px; letter-spacing: 0; }
.weekly-list { display: grid; grid-template-rows: repeat(3, 1fr); border: 1px solid #d8dee8; }
.weekly-list article { grid-template-columns: minmax(0, 1fr) 46px; min-height: 0; }
.weekly-list article:last-child { border-bottom: 0; }
.weekly-list article > div:first-child { align-self: center; padding: 21px 22px; }
.weekly-list h3 { margin: 8px 0 6px; font-size: 19px; line-height: 1.25; }
.weekly-list article > div > span { display: block; margin-top: 13px; color: var(--orange-dark); font-size: 10px; font-weight: 750; }
.weekly-list article > a { color: var(--orange-dark); font-size: 18px; }
.paper-abstract { margin-top: 24px; padding-top: 20px; border-top: 1px solid #e2e8f0; }
.paper-abstract strong { color: var(--orange-dark); font-size: 11px; letter-spacing: .08em; }
.paper-abstract p { margin: 9px 0 0; color: #48505a; font-size: 14px; line-height: 1.8; }
.weekly-lead-copy footer { justify-content: flex-end; }
.weekly-lead-copy footer a { margin-left: 0; }
.paper-highlights { margin: 0; padding: 0; list-style: none; }
.paper-highlights li { position: relative; padding: 14px 0 14px 18px; border-top: 1px solid #fed7aa; color: #475569; font-size: 12px; line-height: 1.6; }
.paper-highlights li::before { content: ""; position: absolute; left: 0; top: 21px; width: 5px; height: 5px; background: var(--orange); }
.keyword-block { margin-top: 22px; padding-top: 18px; border-top: 1px solid #fed7aa; }
.keyword-block > span { color: var(--orange-dark); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.keyword-block > div, .compact-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.keyword-block b, .compact-tags b { padding: 5px 7px; border: 1px solid #fdba74; background: #fff; color: #9a4b08; font-size: 9px; font-weight: 800; }
.weekly-list article > div > .compact-tags { display: flex; margin-top: 13px; }

/* Keep weekly papers consistent with the established homepage feed cards. */
.weekly-browser { display: grid; gap: 18px; width: 100%; }
.weekly-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; border: 1px solid var(--ink); background: var(--white); }
.weekly-tab { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; min-height: 76px; padding: 14px 16px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.weekly-tab:last-child { border-right: 0; }
.weekly-tab strong { font-family: Georgia, "Songti SC", serif; font-size: 16px; font-weight: 600; }
.weekly-tab span { grid-column: 1; color: var(--muted); font-size: 11px; }
.weekly-tab small { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--orange-dark); font-size: 10px; font-weight: 850; }
.weekly-tab:hover { background: #fff7ed; }
.weekly-tab[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: inset 0 -4px 0 var(--orange-dark); }
.weekly-tab[aria-selected="true"] span { color: #cbd5e1; }
.weekly-tab[aria-selected="true"] small { color: #fdba74; }
.weekly-paper-stream { display: grid; gap: 12px; width: 100%; }
.weekly-paper-card { overflow: hidden; padding: 20px; border: 1px solid #d8dee8; border-left: 3px solid var(--orange-dark); border-radius: 10px; background: var(--white); box-shadow: 0 2px 8px rgba(36,52,77,.035); transition: transform .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease; }
.weekly-paper-card:hover { transform: translateY(-2px); border-left-color: #9a4b08; background: #fffaf3; box-shadow: 0 14px 30px rgba(36,52,77,.1); }
.weekly-paper-layout { display: flex; align-items: stretch; gap: 22px; }
.weekly-paper-main { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.weekly-paper-source { display: inline-flex; align-items: center; gap: 8px; min-width: 0; margin-bottom: 11px; }
.weekly-paper-source-mark { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex: 0 0 26px; border-radius: 6px; background: var(--orange-dark); color: #fff; font-size: 12px; font-weight: 850; }
.weekly-paper-source > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.weekly-paper-source strong { color: #0f172a; font-size: 12px; line-height: 1.05; }
.weekly-paper-source small { overflow: hidden; max-width: 180px; color: #94a3b8; font-size: 9px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.weekly-paper-card h3 { margin: 0 0 10px; color: #0f172a; font-family: Inter, "SF Pro Display", "PingFang SC", sans-serif; font-size: 19px; font-weight: 800; line-height: 1.28; letter-spacing: 0; overflow-wrap: anywhere; }
.weekly-paper-card h3 a { color: inherit; text-decoration: none; }
.weekly-paper-card h3 a:hover { color: #c2410c; }
.weekly-paper-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 12px; color: #64748b; font-size: 11px; }
.weekly-paper-meta span:first-child { color: #334155; font-weight: 700; white-space: nowrap; }
.weekly-paper-meta span:last-child { display: -webkit-box; flex: 1 1 260px; min-width: 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.weekly-paper-summary { display: -webkit-box; overflow: hidden; max-width: 82ch; margin: 0 0 12px; color: #475569; font-size: 13px; line-height: 1.68; text-wrap: pretty; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.weekly-paper-tags { display: flex; flex-wrap: wrap; gap: 6px; min-height: 20px; margin-bottom: 10px; }
.weekly-paper-tags span { padding: 3px 7px; border: 1px solid #e2e8f0; border-radius: 5px; background: #f8fafc; color: #64748b; font-size: 10px; font-weight: 700; }
.weekly-paper-main footer { display: flex; align-items: center; min-height: 36px; margin-top: auto; padding-top: 4px; border-top: 1px solid #f1f3f6; }
.weekly-paper-main footer a, .weekly-paper-main footer > span { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; padding: 7px 9px; color: var(--orange-dark); font-size: 12px; font-weight: 750; text-decoration: none; }
.weekly-paper-main footer a:hover { background: #fff7ed; color: #7c2d12; }
.weekly-paper-sidebar { width: 184px; min-width: 184px; flex: 0 0 184px; align-self: flex-start; }
.weekly-paper-sidebar[hidden] { display: none; }
.weekly-paper-sidebar > div { position: relative; overflow: hidden; width: 100%; height: 232px; min-height: 232px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; }
.weekly-paper-sidebar span { position: absolute; top: 7px; right: 7px; z-index: 1; padding: 3px 7px; border: 1px solid #fdba74; border-radius: 5px; background: rgba(255,255,255,.96); color: var(--orange-dark); box-shadow: 0 1px 4px rgba(36,52,77,.08); font-size: 10px; font-weight: 750; }
.weekly-paper-sidebar img { display: block; width: 100%; height: 100%; min-height: 232px; object-fit: cover; background: #fff; }

@media (max-width: 1080px) {
  .signal-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signal-list article, .signal-list[data-count="5"] article:last-child { grid-column: auto; min-height: 270px; border-top: 0; border-right: 1px solid var(--line); }
  .signal-list article:nth-child(even) { border-right: 0; }
  .signal-list article:nth-child(n+3) { border-top: 1px solid var(--line); }
  .weekly-board { grid-template-columns: 1fr; }
  .weekly-lead { grid-template-columns: minmax(0, 1fr) minmax(245px, .5fr); }
  .weekly-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; border: 0; background: transparent; }
  .weekly-tab, .weekly-tab:last-child { border: 1px solid var(--line); background: #fff; }
  .weekly-tab[aria-selected="true"] { border-color: var(--ink); background: var(--ink); }
}

@media (max-width: 760px) {
  .lead-signal { grid-template-columns: 1fr; }
  .signal-copy { padding: 24px 20px 21px; }
  .lead-signal-context { padding: 20px; border-left: 0; border-top: 1px solid #fed7aa; }
  .signal-source-strip { align-items: flex-start; flex-wrap: wrap; gap: 10px; padding: 14px 18px; }
  .signal-source-strip > b { width: 100%; }
  .signal-source-strip .signal-source-link { flex-basis: calc(100% - 100px); }
  .signal-source-strip > button { margin-left: 0; }
  .signal-list { display: flex; gap: 10px; overflow-x: auto; margin-right: -20px; padding: 0 20px 8px 0; scroll-padding-left: 0; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .signal-list article, .signal-list article:nth-child(n+4), .signal-list article:last-child, .signal-list[data-count="5"] article:last-child { flex: 0 0 min(82vw, 320px); min-height: 326px; padding: 24px 22px 20px; border-top: 0; border-right: 1px solid var(--line); scroll-snap-align: start; }
  .signal-list .signal-list-copy { padding: 15px 0 14px; }
  .signal-list h3 { -webkit-line-clamp: 2; }
  .signal-list p { -webkit-line-clamp: 3; }
  .signal-sources { flex-direction: column; }
  .signal-source-link + .signal-source-link { padding-top: 9px; padding-left: 0; border-top: 1px solid #e5e7eb; border-left: 0; }
  .weekly-lead { grid-template-columns: 1fr; }
  .paper-figure { border-left: 0; border-top: 1px solid #fed7aa; }
  .weekly-list article { grid-template-columns: minmax(0, 1fr) 42px; }
  .weekly-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 5px; scroll-snap-type: x proximity; }
  .weekly-tab, .weekly-tab:last-child { flex: 0 0 164px; min-height: 72px; scroll-snap-align: start; }
  .weekly-paper-card { padding: 16px; }
  .weekly-paper-layout { flex-direction: column; gap: 16px; }
  .weekly-paper-card h3 { font-size: 18px; }
  .weekly-paper-summary { max-width: none; font-size: 15px; }
  .weekly-paper-sidebar { width: 100%; min-width: 0; }
  .weekly-paper-sidebar > div, .weekly-paper-sidebar img { height: 208px; min-height: 208px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* P0 production states: live data, authentication and accessible controls. */
button, input, textarea { font: inherit; }
button, a, input, textarea, summary { outline-offset: 3px; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #7c2d12;
}
.start-button { min-height: 44px; background: #9a4b08; color: #fff; }
.profile-button { width: auto; min-width: 58px; height: 44px; padding: 0 13px; border-radius: 0; }
.mobile-menu-button { display: none; min-width: 52px; min-height: 44px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 12px; font-weight: 850; }
.data-state { min-height: 150px; display: grid; place-items: center; padding: 32px; border: 1px solid #d8dee8; background: #fff; color: var(--muted); line-height: 1.7; text-align: center; }
.data-state:has(.lead-signal), .data-state:has(.week-overview) { display: block; width: 100%; min-height: 0; padding: 0; border: 0; background: transparent; text-align: left; place-items: initial; }
.data-error { max-width: 620px; }
.data-error strong { display: block; margin-bottom: 8px; color: var(--ink); }
.data-error button, .empty-state button { min-height: 44px; margin-top: 14px; padding: 10px 13px; border: 1px solid currentColor; background: transparent; color: inherit; font-weight: 800; }
.freshness-note { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; padding: 6px 8px; border: 1px solid #fed7aa; background: #fff7ed; color: #7c2d12; font-size: 11px; font-weight: 750; }
.freshness-note.is-fresh { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
.evidence-level { display: inline-flex; margin-top: 8px; color: #6b7280; font-size: 10px; font-weight: 750; }
.evidence-panel button { min-height: 44px; }
.weekly-empty { padding: 32px; border: 1px solid #d8dee8; background: #fff; color: var(--muted); text-align: center; }
.weekly-list article > div:first-child { min-width: 0; }
.weekly-list h3, .weekly-list p { overflow-wrap: anywhere; }
.empty-state { width: 100%; padding: 34px; border: 1px solid #d8dee8; background: #fff; color: var(--muted); }
.empty-state h3 { margin: 0 0 10px; color: var(--ink); font-family: Georgia, "Songti SC", serif; font-size: 24px; }
.empty-state p { max-width: 680px; line-height: 1.7; }
.empty-state-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.empty-state-actions a, .empty-state-actions button { min-height: 44px; display: inline-flex; align-items: center; padding: 10px 14px; border: 1px solid var(--ink); background: var(--ink); color: #fff; text-decoration: none; font-weight: 800; }
.empty-state-actions .secondary { background: transparent; color: var(--ink); }
.site-footer a { color: inherit; }

.research-dialog { width: min(560px, calc(100% - 28px)); max-height: calc(100vh - 40px); padding: 0; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); box-shadow: 18px 18px 0 rgba(36,52,77,.22); }
.research-dialog::backdrop { background: rgba(15,23,42,.58); }
.research-dialog-shell { margin: 0; padding: 25px; }
.research-dialog-shell header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.research-dialog-shell header small { color: var(--orange-dark); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.research-dialog-shell h2 { margin: 6px 0 0; font-family: Georgia, "Songti SC", serif; font-size: 27px; }
.research-dialog-shell header button, .auth-actions button { min-height: 44px; padding: 9px 12px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-weight: 800; }
.research-dialog-shell > p, #evidence-method-content { color: var(--muted); font-size: 13px; line-height: 1.75; }
.research-dialog-shell label { display: block; margin: 16px 0 7px; font-size: 12px; font-weight: 800; }
.research-dialog-shell input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #94a3b8; background: #fff; color: var(--ink); font-size: 16px; }
.auth-actions { display: flex; gap: 10px; margin-top: 18px; }
.auth-actions #auth-confirm { background: var(--ink); color: #fff; }
#evidence-method-content dl { margin: 18px 0 0; }
#evidence-method-content dt { margin-top: 14px; color: var(--ink); font-weight: 850; }
#evidence-method-content dd { margin: 5px 0 0; }

@media (max-width: 760px) {
  .site-header { height: auto; min-height: 68px; grid-template-columns: 1fr auto auto; gap: 8px; padding: 10px 16px; }
  .brand em { display: none; }
  .mobile-menu-button { display: inline-flex; align-items: center; justify-content: center; }
  .site-header nav { display: none; position: absolute; left: 16px; right: 16px; top: calc(100% + 1px); flex-direction: column; align-items: stretch; gap: 0; padding: 8px; border: 1px solid var(--ink); background: var(--paper); box-shadow: 8px 8px 0 rgba(36,52,77,.14); }
  .site-header nav[data-open="true"] { display: flex; }
  .site-header nav a { min-height: 44px; padding: 0 10px; }
  .profile-button { min-width: 52px; padding-inline: 10px; }
  .mode-switch button { min-height: 44px; }
  .week-overview { grid-template-columns: 1fr; }
  .week-overview p { grid-column: auto; }
  .auth-actions { flex-direction: column; }
  .auth-actions button { width: 100%; }
  .research-dialog-shell { padding: 20px; }
}

.previous-weekly-picks { margin-top: 44px; }
.previous-weekly-picks > header { padding: 20px 0; border-top: 2px solid var(--ink); }
.previous-weekly-picks > header span { color: var(--orange-dark); font-size: 12px; font-weight: 800; }
.previous-weekly-picks > header h3 { margin: 8px 0 0; font-size: 22px; }
.signal-list[data-count="1"] { grid-template-columns: minmax(0,1fr); }
.signal-list[data-count="1"] article { border-right: 0; }

/* Keep the weekly selection compact until the reader asks for more. */
.signal-list article[hidden] { display: none; }
.signal-list.is-collapsed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.signal-list.is-collapsed article:nth-child(2) { border-right: 0; }
.weekly-picks-disclosure { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.weekly-picks-disclosure > span { color: var(--muted); font-size: 12px; }
.weekly-picks-disclosure button { display: inline-flex; align-items: center; gap: 18px; min-height: 44px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: transparent; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.weekly-picks-disclosure button:hover { background: #fff; border-color: var(--ink); }
.weekly-picks-disclosure button:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
@media (max-width: 700px) { .signal-list.is-collapsed { grid-template-columns: minmax(0, 1fr); } }
