:root {
  color-scheme: light;
  --canvas: #f1f5fa;
  --white: #fff;
  --ink: #10223e;
  --muted: #4c607e;
  --line: #dbe5f1;
  --navy: #10203a;
  --blue: #1754d6;
  --pale-blue: #eaf0ff;
  font-family: "Inter", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-width: 280px; margin: 0; line-height: 1.6; }
a { color: var(--blue); text-underline-offset: 4px; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #377dff; outline-offset: 4px; }
main:focus { outline: none; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.25; }
svg { flex: none; }
.shell { width: min(1120px, calc(100% - 72px)); margin-inline: auto; }
.skip { position: absolute; top: 6px; left: 6px; z-index: 4; padding: 8px 16px; background: white; clip-path: inset(50%); }
.skip:focus { clip-path: none; }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 45px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 13px; font-weight: 800; font-size: 1.17rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; gap: 4px; width: 23px; }
.brand-mark i { width: 100%; height: 3px; background: var(--blue); border-radius: 2px; }
.brand-mark i:last-child { width: 68%; }
.main-nav { display: flex; gap: 22px; align-self: stretch; }
.main-nav a { display: grid; place-items: center; padding-inline: 8px; text-decoration: none; color: var(--ink); font-weight: 700; border-bottom: 3px solid transparent; border-top: 3px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--blue); }
.main-nav a[aria-current] { border-bottom-color: var(--blue); }
.edition { margin-left: auto; color: var(--muted); font-size: .88rem; white-space: nowrap; }
.main { min-height: 66vh; padding-top: 38px; }
.site-footer { display: flex; justify-content: space-between; gap: 10px 22px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 46px; padding-block: 17px 25px; color: var(--muted); font-size: .8rem; }

.hero { display: grid; grid-template-columns: minmax(0, .91fr) minmax(0, 1.09fr); align-items: center; background: var(--navy); color: #f7fbff; border-radius: 15px; padding: 33px 38px; }
.hero-copy { padding-right: 24px; }
.hero h1 { font-size: clamp(2.4rem, 4.8vw, 4rem); font-weight: 850; line-height: 1.07; letter-spacing: -.05em; }
.hero p { margin-top: 19px; color: #d7e4f9; font-size: 1.03rem; }
.button { border: 1px solid transparent; border-radius: 9px; background: var(--blue); color: white; min-height: 42px; display: inline-flex; gap: 9px; align-items: center; justify-content: center; padding: 7px 16px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.button:hover, .case-row:hover .case-arrow { background: #1044b5; }
.hero-action { margin-top: 19px; background: #66adff; color: #0b2648; }
.hero-action:hover { background: #a1ccff; }
.rate-chart { min-width: 0; padding-left: 27px; border-left: 1px solid #3a4e6d; }
.rate-chart figcaption { display: flex; align-items: baseline; gap: 10px; font-size: clamp(.94rem, 1.65vw, 1.25rem); font-weight: 780; }
.rate-chart figcaption small { font-size: .75rem; color: #aac2e3; white-space: nowrap; }
.rate-chart > svg { display: block; width: 100%; max-height: 225px; }
.rate-chart .gridline { stroke: #334766; stroke-width: 1; }
.rate-chart .axis { fill: #bdcdea; font-size: 13px; font-variant-numeric: tabular-nums; }
.rate-chart .mark { fill: white; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rate-chart .rate-band { fill: #2b5797; }
.rate-chart circle { fill: white; stroke: #56a6ff; stroke-width: 2; }
.rate-chart .rate-line { fill: none; stroke: #7db8ff; stroke-width: 1.8; stroke-linejoin: round; }
.chart-data { font-size: .81rem; }
.chart-data summary { display: inline-flex; align-items: center; gap: 6px; padding: 3px 0; color: #d6e8ff; cursor: pointer; font-weight: 700; }
.chart-data[open] summary svg, .concept[open] summary svg { transform: rotate(180deg); }
.chart-data table { width: 100%; border-collapse: collapse; text-align: left; margin-top: 7px; font-variant-numeric: tabular-nums; }
.chart-data caption { text-align: left; color: #baccdf; margin-bottom: 3px; }
.chart-data td, .chart-data th { padding: 6px 3px; border-top: 1px solid #3a4e6d; }
.chart-data a { color: #b4d9ff; }

.case-section { margin-top: 34px; }
.section-heading { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.section-heading h2 { font-size: 1.8rem; }
.section-heading > span { background: #e3eaf6; color: var(--muted); border-radius: 6px; padding: 2px 9px; font-weight: 700; font-size: .8rem; }
.case-list { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
.case-row { display: grid; grid-template-columns: 124px minmax(0, 1fr) auto; align-items: center; gap: 20px; border: 1px solid var(--line); padding: 15px 20px; border-radius: 12px; text-decoration: none; background: white; color: inherit; transition: border-color .15s ease; }
.case-row:hover { border-color: #93afe2; }
.case-date { display: grid; padding-right: 12px; border-right: 1px solid var(--line); color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; font-weight: 750; }
.case-date span { font-size: .72rem; }
.case-copy h3 { font-size: 1.12rem; }
.case-copy p { color: var(--muted); margin-top: 4px; font-size: .91rem; }
.case-copy .case-context { font-size: .76rem; }
.case-arrow { width: 38px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: var(--blue); color: white; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 235px; gap: 18px; align-items: start; }
.paper, .contents, .message { border: 1px solid var(--line); border-radius: 13px; background: white; }
.paper { padding: 23px 26px 29px; }
.event-paper h1, .index h1 { font-size: clamp(1.65rem, 3.2vw, 2.45rem); letter-spacing: -.04em; }
.back { display: inline-block; text-decoration: none; font-size: .9rem; font-weight: 750; }
.back:hover, .source a:hover { text-decoration: underline; }
.event-meta { display: flex; align-items: center; gap: 11px; margin-top: 13px; margin-bottom: 6px; color: var(--muted); font-size: .85rem; font-weight: 700; }
.event-meta span { border-left: 1px solid var(--line); padding-left: 11px; }
.lede { margin-top: 8px; color: var(--muted); }
.lesson-section { margin-top: 20px; scroll-margin-top: 16px; }
.lesson-section h2 { font-size: 1.24rem; margin-bottom: 9px; border-left: 5px solid var(--blue); padding-left: 9px; }
.source { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px 18px; align-items: start; background: var(--pale-blue); border-radius: 9px; padding: 12px 15px; font-size: .92rem; }
.source-meta { font-weight: 800; font-size: .83rem; margin-bottom: 4px; }
.source a { font-size: .83rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.concept-list { display: grid; gap: 7px; }
.concept { border: 1px solid var(--line); border-radius: 9px; background: #f7f9fc; }
.concept summary { list-style: none; display: grid; grid-template-columns: minmax(105px, .27fr) minmax(0, 1fr) auto; gap: 9px 12px; align-items: center; padding: 9px 13px; cursor: pointer; font-size: .9rem; }
.concept summary::-webkit-details-marker, .chart-data summary::-webkit-details-marker { display: none; }
.concept summary span { color: var(--muted); }
.concept-body, .impact { display: grid; grid-template-columns: minmax(5.4rem, auto) minmax(0, 1fr); font-size: .9rem; }
.concept-body { border-top: 1px solid var(--line); margin-inline: 12px; padding-block: 7px; }
.concept-body dt, .concept-body dd, .impact dt, .impact dd { padding: 5px 6px; }
.concept-body dt, .impact dt { font-weight: 800; }
.impact dt:nth-of-type(2), .impact dd:nth-of-type(2) { border-top: 1px solid var(--line); }
.quiz-form { background: #f6f8fc; border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; }
.quiz-form fieldset { padding: 0; margin: 0; border: 0; min-inline-size: 0; }
.quiz-form legend { font-weight: 800; margin-bottom: 3px; padding: 0; }
.option { display: flex; width: fit-content; align-items: center; gap: 8px; padding-block: 3px; min-height: 33px; cursor: pointer; font-size: .92rem; }
.option input { accent-color: var(--blue); margin: 0; width: 16px; height: 16px; }
.quiz-form fieldset:disabled label { cursor: default; }
.quiz-error { font-size: .88rem; color: #971c25; font-weight: 700; }
.quiz-error:empty { display: none; }
.quiz-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 8px; }
.feedback { flex: 1 1 240px; padding: 7px 12px; border-radius: 9px; font-size: .88rem; }
.feedback p { margin-top: 3px; }
.feedback.correct { background: #e1f6ea; color: #115635; }
.feedback.incorrect { background: #fff1dc; color: #754008; }
.secondary { color: var(--blue); background: white; border-color: #adbee0; }
.secondary:hover { background: var(--pale-blue); }
.detail-aside { position: sticky; top: 18px; }
.contents { padding: 17px 16px; }
.contents h2 { margin-bottom: 9px; font-size: 1.18rem; }
.contents a { display: block; color: var(--ink); font-size: .89rem; text-decoration: none; font-weight: 700; border-radius: 6px; padding: 5px 10px; }
.event-paper:not(:has(.lesson-section:target)) ~ .detail-aside [href="#evidence"],
.event-paper:has(#evidence:target) ~ .detail-aside [href="#evidence"],
.event-paper:has(#concepts:target) ~ .detail-aside [href="#concepts"],
.event-paper:has(#impact:target) ~ .detail-aside [href="#impact"],
.event-paper:has(#quiz:target) ~ .detail-aside [href="#quiz"],
.contents a:hover, .contents a:focus-visible { background: var(--pale-blue); color: #204db0; }
.aside-note { font-size: .82rem; color: var(--muted); margin: 13px 5px 0; }
.mobile-contents { display: none; }
.index { max-width: 820px; }
.index .concept-list { margin-block: 20px; }
.message { padding: 27px; }
.message p { margin-block: 8px 15px; color: var(--muted); }
.loading { padding: 22px 0; color: var(--muted); }

@media (max-width: 800px) {
  .shell { width: calc(100% - 40px); }
  .hero { padding: 25px; }
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-aside { display: none; }
  .mobile-contents { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 12px; font-size: .85rem; }
}
@media (max-width: 580px) {
  .shell { width: calc(100% - 28px); }
  .header-inner { min-height: 58px; gap: 8px 14px; flex-wrap: wrap; padding-top: 8px; }
  .brand { font-size: 1rem; }
  .brand-mark { width: 17px; gap: 3px; }
  .main-nav { order: 3; width: 100%; gap: 11px; }
  .main-nav a { min-height: 37px; font-size: .86rem; }
  .edition { font-size: .77rem; }
  .main { padding-top: 16px; }
  .hero { grid-template-columns: 1fr; gap: 18px; padding: 23px 19px 16px; }
  .hero h1 { font-size: 2.55rem; }
  .hero p { font-size: .93rem; margin-top: 12px; }
  .hero-action { margin-top: 13px; }
  .rate-chart { padding: 12px 0 0; border-left: 0; border-top: 1px solid #3a4e6d; }
  .case-section { margin-top: 23px; }
  .section-heading { margin-bottom: 10px; }
  .section-heading h2 { font-size: 1.37rem; }
  .case-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 9px; padding: 11px 12px; }
  .case-date { grid-column: 1; display: flex; gap: 10px; border: 0; align-items: baseline; }
  .case-copy h3 { font-size: 1rem; }
  .case-copy p { font-size: .84rem; }
  .case-arrow { grid-column: 2; grid-row: 1 / span 2; width: 31px; height: 30px; }
  .paper { padding: 15px 13px 20px; }
  .event-paper h1 { text-wrap: balance; }
  .source { grid-template-columns: 1fr; }
  .concept summary { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 5px; }
  .concept summary span { grid-row: 2; }
  .concept summary svg { grid-row: 1 / span 2; grid-column: 2; }
  .concept-body, .impact { grid-template-columns: minmax(4.7rem, auto) minmax(0, 1fr); }
  .site-footer { margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
