:root { color-scheme: light; }
html { scroll-behavior: auto; }
body { margin: 0; background: #edf4f7; color: #10243a; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.6; }
.cn-topic-main { width: min(1200px, calc(100% - 3rem)); margin: 0 auto; padding: 2.2rem 0 4rem; }
.cn-topic-main a { color: #087b83; font-weight: 650; text-decoration-thickness: .08em; text-underline-offset: .15em; }
.cn-topic-main a:focus-visible { outline: 3px solid #f3a71c; outline-offset: 3px; border-radius: 3px; }
.cn-topic-crumbs { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; font-size: .9rem; margin-bottom: 1.8rem; }
.cn-topic-hero { background: linear-gradient(135deg,#0a263b,#123b59 65%,#0c6773); color: white; padding: clamp(1.6rem,4vw,3.4rem); border-radius: 18px; box-shadow: 0 15px 35px #092d3d20; }
.cn-topic-hero h1 { color: white !important; font-size: clamp(2rem,4vw,3.3rem); line-height: 1.12; margin: .4rem 0 1rem; max-width: 950px; letter-spacing: -.03em; }
.cn-topic-hero > p:not(.cn-topic-kicker) { max-width: 720px; color: #e2f1f3 !important; font-size: 1.06rem; }
.cn-topic-kicker { color: #007b78; text-transform: uppercase; font-size: .74rem; letter-spacing: .08em; font-weight: 800; margin: 0; }
.cn-topic-hero .cn-topic-kicker { color: #8ee0d7 !important; }
.cn-topic-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.5rem; }
.cn-topic-main .cn-topic-actions a { color: #073a42; background: #ddf5ef; border: 1px solid #ddf5ef; padding: .55rem .9rem; border-radius: 7px; text-decoration: none; }
.cn-topic-main .cn-topic-actions a:not(:first-child) { color: white !important; background: transparent; border-color: #9bc5c9; }
.cn-topic-notice { margin-top: 1.1rem; padding: .9rem 1.2rem; border: 1px solid #e6c66e; border-left: 5px solid #be8b16; border-radius: 8px; background: #fff9e9; }
.cn-topic-notice p { margin: .25rem 0 0; font-size: .92rem; }
.cn-topic-section { margin-top: 3.4rem; scroll-margin-top: 1.5rem; }
.cn-topic-section > p { max-width: 900px; color: #415568; }
.cn-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; border-bottom: 1px solid #c7d6de; padding-bottom: .7rem; }
.cn-section-heading h2 { font-size: clamp(1.55rem,2.8vw,2rem); margin: .15rem 0 0; line-height: 1.2; }
.cn-section-heading > span { color: #40576c; font-weight: 650; font-size: .9rem; white-space: nowrap; }
.cn-history-notes { margin: 1rem 0; }
.cn-history-notes summary { width: fit-content; color: #116568; font-weight: 700; cursor: pointer; }
.cn-history-notes summary:focus-visible { outline: 3px solid #f3a71c; outline-offset: 3px; }
.cn-story-steps { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); gap: .85rem; list-style: none; margin: 1rem 0; padding: 0; }
.cn-story-steps li { background: #e1f1ef; border: 1px solid #c4ddda; border-radius: 10px; padding: 1rem; }
.cn-story-steps h3 { margin: 0; color: #143b43; font-size: 1rem; line-height: 1.3; }
.cn-story-steps p { font-size: .88rem; margin: .5rem 0 0; }
.cn-story-links { font-size: .78rem !important; }
.cn-topic-branches { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,235px),1fr)); gap: .9rem; margin-top: 1.3rem; }
.cn-topic-branch { background: #fff; border: 1px solid #c6d9dd; border-top: 4px solid #168b89; border-radius: 10px; padding: 1rem; }
.cn-topic-branch h3 { font-size: 1rem; margin: 0 0 .7rem; line-height: 1.3; }
.cn-topic-branch ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.cn-topic-branch a { display: block; background: #f1f8fa; border: 1px solid #d6e7ea; padding: .45rem .55rem; border-radius: 6px; font-size: .85rem; text-decoration: none; }
.cn-topic-branch a span { color: #415568; font-variant-numeric: tabular-nums; }
.cn-timeline { list-style: none; margin: 1.3rem 0 0; padding: .3rem 0 .3rem 1.4rem; border-left: 3px solid #96c8c7; display: grid; gap: .6rem; }
.cn-timeline li { position: relative; scroll-margin-top: 1.5rem; }
.cn-timeline li::before { content: ""; position: absolute; top: 1rem; left: -1.94rem; width: .8rem; height: .8rem; background: #0e8582; border: 3px solid #edf4f7; border-radius: 50%; }
.cn-timeline a { display: grid; grid-template-columns: 4rem 1fr; gap: .7rem; align-items: start; background: #fff; border: 1px solid #d1e0e4; border-radius: 8px; padding: .65rem .85rem; text-decoration: none; }
.cn-timeline a:hover, .cn-topic-branch a:hover { border-color: #148680; background: #f4fbfa; }
.cn-time-year { color: #086c70; font-weight: 800; }
.cn-topic-section > .cn-time-intro { max-width: 78ch; font-size: 1.05rem; color: #223c50; }
#timeline .cn-section-heading { gap: .35rem 1rem; }
.cn-time-periods { display: flex; flex-wrap: wrap; gap: .45rem 1rem; margin: 1rem 0; font-size: .88rem; }
.cn-time-finding { display: block; max-width: 86ch; margin: .2rem 0; color: #263d50; font-size: .94rem; font-weight: 400; }
.cn-timeline a > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.cn-topic-section#timeline, .cn-paper-card { scroll-margin-top: 1.5rem; }
.cn-timeline small { display: block; color: #506579; font-weight: 500; }
.cn-paper-grid,.cn-map-directory { display: grid; gap: 1.25rem; margin-top: 1.2rem; }
.cn-paper-grid { grid-template-columns: minmax(0,1fr); }
.cn-map-directory { grid-template-columns: repeat(2,minmax(0,1fr)); }
.cn-paper-card,.cn-map-directory-card { background: #fff; border: 1px solid #cfdee2; border-radius: 10px; padding: 1.25rem; box-shadow: 0 8px 22px #1737470b; }
.cn-paper-card:target { outline: 3px solid #17938c; outline-offset: 4px; }
.cn-paper-card { container-type: inline-size; min-width: 0; padding: clamp(1rem,2.2vw,1.7rem); }
.cn-paper-card h3 { font-size: clamp(1.14rem,2vw,1.45rem); line-height: 1.3; margin: 1rem 0 .25rem; color: #10243a; overflow-wrap: anywhere; }
.cn-paper-card p { margin: .55rem 0; font-size: .93rem; }
.cn-paper-badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.cn-paper-status,.cn-impact-tag { display: inline-block; border-radius: 999px; padding: .18rem .55rem; font-size: .69rem; font-weight: 800; line-height: 1.4; }
.cn-paper-status { border: 1px solid #b3ddd1; color: #126147; background: #ecfaf3; }
.cn-paper-status.preprint { border-color: #f1cb6c; color: #824600; background: #fff8e6; }
.cn-paper-status.unknown { border-color: #cbd5df; color: #425466; background: #f2f5f7; }
.cn-paper-status.concern { border-color: #e6a6a6; color: #8d2020; background: #fff1f1; }
.cn-impact-tag { color: #006481; border: 1px solid #b7dce6; background: #edf8fb; }
.cn-card-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.cn-paper-card .cn-paper-meta { margin: 0; color: #445d71; font: .73rem/1.5 ui-monospace,Consolas,monospace; overflow-wrap: anywhere; }
.cn-paper-card .cn-byline { margin: 0 0 1rem; color: #365061; overflow-wrap: anywhere; }
.cn-spotlight { color: #912853; background: #fff1f6; border-color: #e4b3c7; }
.cn-evidence-panels { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .8rem; }
.cn-evidence-panels section { background: #f7f9fc; border: 1px solid #d9e2ec; border-radius: .55rem; padding: .95rem 1rem; overflow-wrap: anywhere; }
.cn-evidence-panels section:nth-child(2) { background: #fffcf4; border-color: #eedda6; }
.cn-evidence-panels section:nth-child(3) { background: #f1f8f7; border-color: #bfe1dc; }
.cn-evidence-panels h4,.cn-card-targets span { margin: 0; font-size: .72rem; letter-spacing: .035em; text-transform: uppercase; }
.cn-evidence-panels p { line-height: 1.65; margin: .35rem 0 0; }
.cn-evidence-panels .cn-hypothesis { color: #006d69; font-size: .8rem; font-weight: 650; }
.cn-paper-card .cn-card-correction { margin: .85rem 0; }
.cn-paper-actions { border-top: 1px solid #dce7eb; padding-top: .9rem; margin-top: 1.1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; font-size: .79rem; }
.cn-card-targets,.cn-citation-links { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; min-width: 0; }
.cn-card-targets { flex: 1 1 24rem; }
.cn-card-targets a,.cn-citation-links a { padding: .3rem .55rem; border-radius: .3rem; border: 1px solid #c9d9e3; background: #f6f9fb; text-decoration: none; overflow-wrap: anywhere; }
.cn-topic-main .cn-citation-links a:first-child { color: white !important; background: #08736f; border-color: #08736f; }
.cn-paper-actions .cn-timeline-return { flex-basis: 100%; width: fit-content; }
@container (max-width: 45rem) { .cn-evidence-panels { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 700px) { .cn-evidence-panels { grid-template-columns: minmax(0,1fr); } }
.cn-map-search { display: grid; gap: .3rem; font-weight: 700; max-width: 480px; margin-top: 1.2rem; }
.cn-map-search input { width: 100%; box-sizing: border-box; border: 1px solid #9bb9c2; border-radius: 7px; padding: .7rem .8rem; font: inherit; background: white; color: #10243a; }
.cn-map-directory-card h2 { font-size: 1.05rem; margin: .35rem 0 1rem; line-height: 1.35; }
.cn-map-directory-card > div { border-top: 1px solid #e1ebee; padding-top: .7rem; display: flex; justify-content: space-between; gap: .5rem; color: #506579; font-size: .8rem; }
.cn-map-directory-card[hidden],.cn-map-empty[hidden] { display: none; }
.cn-sparse { border-left: 3px solid #be8b16; padding-left: .8rem; }
.cn-topic-footer { border-top: 1px solid #c7d6de; margin-top: 4rem; padding-top: 1rem; font-size: .85rem; }
@media (max-width: 700px) { .cn-topic-main { width: min(100% - 2rem,1200px); padding-top: 1.2rem; } .cn-paper-grid,.cn-map-directory { grid-template-columns: 1fr; } .cn-section-heading { align-items: start; flex-direction: column; } }
@media (max-width: 700px) { .cn-topic-section#timeline, .cn-paper-card, .cn-timeline li { scroll-margin-top: 4rem; } }
@media (max-width: 520px) { .cn-timeline a { grid-template-columns: 1fr; gap: .15rem; } .cn-time-year { font-size: .85rem; } }
