:root {
  --paper: #faf9f7;
  --ink: #1d1c1a;
  --muted: #5a5854;
  --rule: #d9d6d1;
  --sans: Inter, Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}
.wrap { width: min(1220px, calc(100% - 80px)); }
header { background: var(--paper); }
.nav { min-height: 54px; }
.nav nav { gap: 24px; }
.brand { font-size: 1.12rem; letter-spacing: -.04em; }
.brand .mark { color: #af4b28; font-size: 1.5rem; }
.nav nav a { color: #54514e; font-weight: 550; }
.data-jumps { position: relative; border: 0; margin: 0; padding: 0; }
.data-jumps > summary {
  display: flex; align-items: center; gap: 6px; list-style: none;
  color: #45413d; font-size: .91rem; font-weight: 550;
}
.data-jumps > summary::-webkit-details-marker { display: none; }
.data-jumps > summary::after {
  content: ""; width: 6px; height: 6px; margin-top: -3px;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.data-jumps[open] > summary::after { transform: rotate(225deg); margin-top: 3px; }
.data-jumps ul {
  position: absolute; z-index: 5; right: 0; top: calc(100% + 8px); min-width: 204px; margin: 0;
  padding: 5px; list-style: none; background: #fff; border: 1px solid #d7d4cf;
  border-radius: 7px; box-shadow: 0 5px 20px #1d181112;
}
#tool-shortcuts ul a { display: block !important; padding: 7px 10px; border-radius: 4px; font-size: .88rem; line-height: 1.4; }
#tool-shortcuts ul a:hover, #tool-shortcuts ul a:focus-visible { background: #f1eeeb; }
#tool-shortcuts li:last-child { border-top: 1px solid var(--rule); margin-top: 3px; padding-top: 3px; }
.chapter-header.tools-head { margin-bottom: 10px; }
.language-picker select { border-color: #c9c5c0; border-radius: 5px; }
.hero { background: var(--paper); color: var(--ink); }
.hero .hero-inner { padding: clamp(28px, 4.5vw, 63px) 0 clamp(27px, 3.7vw, 51px); }
html[lang] .hero h1 {
  font: 720 clamp(2.65rem, 5.7vw, 5.18rem)/1.06 var(--sans);
  letter-spacing: -.058em; text-wrap: balance; margin: 0;
}
.hero .deck {
  margin: 17px 0 0; max-width: 55ch; font: 400 clamp(1.15rem, 1.8vw, 1.55rem)/1.46 Georgia, "Songti SC", "Noto Serif CJK SC", serif;
  color: #494640; text-wrap: pretty;
}
.edition-meta { margin: 12px 0 0; font-size: .85rem; line-height: 1.45; color: var(--muted); }
.edition-meta a { color: #295f83; }
#shifts, #movers, #course, #data-tools { border: 0; border-top: 1px solid #363431; }
#shifts { padding: 19px 0 clamp(34px, 4.6vw, 60px); }
.chapter-header { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 3px 20px; margin: 0 0 16px; }
.chapter-header h2 { font-size: clamp(1.4rem, 2.3vw, 1.88rem); }
.chapter-header p { margin: 0; color: var(--muted); font-size: .87rem; }
.analysis-chapter { padding: clamp(28px, 3.7vw, 48px) 0 clamp(38px, 4.7vw, 66px); }
.chapter-kicker { margin: 0 0 6px; color: #625e59; font-size: .77rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.analysis-chapter > h2 { font-size: clamp(1.8rem, 3.1vw, 2.7rem); line-height: 1.14; font-weight: 690; }
.chapter-intro { margin: 14px 0 26px; padding-left: 13px; border-left: 3px solid #cc582d; color: #45413d; font-size: 1.04rem; line-height: 1.5; max-width: 78ch; }
html[lang=zh-CN] .hero h1, html[lang=zh-CN] .analysis-chapter > h2 { letter-spacing: -.035em; }
#data-tools { padding-top: 28px; }
footer { background: #f0eeeb; }
@media (max-width: 860px) { .wrap { width: calc(100% - 44px); } }
@media (max-width: 620px) {
  .wrap { width: calc(100% - 32px); }
  .nav nav { position: relative; gap: 0 clamp(8px, 3vw, 17px); }
  .data-jumps { position: static; }
  .data-jumps ul { right: 0; max-width: 100%; }
  .data-jumps > summary { font-size: .83rem; }
  .hero .hero-inner { padding: 26px 0 24px; }
  .hero .deck { margin-top: 11px; }
  .edition-meta { font-size: .77rem; margin-top: 9px; }
  .chapter-header { margin-bottom: 12px; }
  .chapter-header p { font-size: .8rem; }
  .chapter-intro { font-size: .92rem; margin: 12px 0 17px; }
}
