/* China Research Map: the header, Display panel and footer shared by every page (2026-11-12).
   Ported from the approved homepage prototype (platform_v2/prototype_hybrid_v2/proto.css). Tokens are prefixed --c-
   so they do not meet ui.css (inner pages) or home.css (homepage). Fonts: Newsreader and Atkinson Hyperlegible Next,
   self-hosted, SIL Open Font License 1.1 (fonts/OFL-*.txt). */
/* Self-hosted 2026-11-12 from Google Fonts (SIL Open Font License 1.1, see OFL-*.txt). Variable weight; Latin and Latin Extended only. */
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/atkinson-hyperlegible-next-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-style: normal; font-weight: 400 700; font-display: swap; src: url("fonts/atkinson-hyperlegible-next-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 400 600; font-display: swap; src: url("fonts/newsreader-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 400 600; font-display: swap; src: url("fonts/newsreader-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

.hd, .ft, .dsp-p { font-family: var(--sans); line-height: var(--lh-body); -webkit-font-smoothing: antialiased; }
.hd *, .ft * { letter-spacing: normal; }
.hd a, .ft a { text-underline-offset: 2px; }
/* header: sticky, solid, with a phone menu */
.hd { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--page) 94%, transparent); border-bottom: var(--bw) solid var(--hair); transition: box-shadow var(--t-fast); }
@supports (backdrop-filter: blur(8px)) { .hd { backdrop-filter: saturate(1.4) blur(8px); } }
.hd.is-scrolled { box-shadow: var(--lift); }
.hd-in { max-width: 1296px; margin: 0 auto; padding: 0 var(--gut); height: var(--hdr); display: flex; align-items: center; gap: var(--s-7); }
.wm { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; white-space: nowrap; font: 500 var(--fs-h4)/1 var(--display); letter-spacing: -0.2px; color: var(--ink); text-decoration: none; margin: 0; }
.wm-mark { position: relative; width: 18px; height: 18px; flex: none; }
.wm-mark::before, .wm-mark::after { content: ""; position: absolute; width: 10px; height: 10px; border-radius: var(--r-mark); }
.wm-mark::before { left: 0; top: 0; background: var(--brand-a); } .wm-mark::after { right: 0; bottom: 0; background: var(--brand-b); }
.hd-nav { display: flex; align-items: center; gap: var(--s-1); font-size: var(--fs-list); margin-right: auto; }
.hd-nav a { color: var(--ink); text-decoration: none; padding: var(--s-2) var(--s-2); border-radius: var(--r-s); white-space: nowrap; }
.hd-nav a:hover { background: var(--soft); }
.hd-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--ink); border-radius: 0; }
.hd-tools { display: flex; align-items: center; gap: var(--s-2); }
.hd-sl { display: inline-flex; align-items: center; gap: var(--s-2); height: 40px; padding: 0 var(--s-3); color: var(--ink); text-decoration: none; font-size: var(--fs-list); border-radius: var(--r-s); }
.hd-sl:hover { background: var(--soft); }
.hd-sl svg { width: 17px; height: 17px; }
.hd-n { min-width: 20px; height: 20px; padding: 0 var(--s-1); border-radius: var(--r-m); background: var(--soft); border: var(--bw) solid var(--hair); font-size: var(--fs-micro); font-weight: 700; display: inline-grid; place-items: center; }
.menu-b { display: none; }
@media (max-width: 1099px) { .dsp-t { display: none; } .hd-sl-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .hd-in { gap: var(--s-3); } .hd-nav a { padding: var(--s-2) var(--s-2); } .wm { font-size: var(--fs-lede); } .hd-sl { padding: 0 var(--s-2); } .dsp-b { padding: 0 var(--s-2); } }
@media (max-width: 759px) {
.wm { font-size: var(--fs-lede); }
  .hd-in { gap: var(--s-2); justify-content: space-between; }
  .hd-tools { margin-left: auto; gap: 2px; }
  .dsp-t { display: none; }
  .hd-sl { padding: 0 var(--s-2); }
  .menu-b { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); cursor: pointer; border-radius: var(--r-s); }
  .menu-b svg { width: 22px; height: 22px; }
  .menu-b[aria-expanded=true] { background: var(--soft); }
  .hd-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: var(--s-2) var(--gut) var(--s-4); background: var(--page); border-bottom: var(--bw) solid var(--hair); box-shadow: var(--lift); margin: 0; }
  .hd-nav.is-open { display: flex; }
  .hd-nav a { padding: var(--s-3) var(--s-1); border-bottom: var(--bw) solid var(--hair); border-radius: 0; font-size: var(--fs-lede); }
  .hd-nav a:last-child { border-bottom: 0; }
}
/* display settings */
.dsp { position: relative; }
.dsp-b { display: inline-flex; align-items: center; gap: var(--s-2); height: 40px; padding: 0 var(--s-3); border: var(--bw) solid var(--hair); background: var(--page); color: var(--ink); cursor: pointer; font-size: var(--fs-list); font-weight: 700; }
.dsp-b:hover { border-color: var(--ink); }
.dsp-b svg { width: 18px; height: 18px; }
.dsp-b[aria-expanded=true] { border-color: var(--ink); background: var(--soft); }
.dsp-p { position: absolute; right: 0; top: calc(100% + 10px); width: 320px; max-width: calc(100vw - 24px); background: var(--page); color: var(--ink); border: var(--bw) solid var(--hair); border-radius: var(--r-l); padding: var(--s-4) var(--s-5) var(--s-3); z-index: 50; box-shadow: var(--lift); }
.dsp-h { font: 400 var(--fs-h4)/var(--lh-tight) var(--display); margin: 0 0 var(--s-2); }
.dsp-p fieldset { border: 0; border-top: var(--bw) solid var(--hair); margin: 0; padding: var(--s-3) 0 var(--s-2); }
.dsp-p legend { font-weight: 700; font-size: var(--fs-micro); color: var(--ink-2); padding: 0; float: left; width: 100%; margin-bottom: var(--s-2); }
.dsp-p .seg { clear: both; display: flex; padding: var(--s-1); gap: var(--s-1); background: var(--soft); border-radius: var(--r-m); border: var(--bw) solid var(--hair); }
.dsp-p .seg > *, .seg label { flex: 1; text-align: center; padding: var(--s-2) var(--s-2); border-radius: var(--r-s); font-size: var(--fs-meta); text-decoration: none; color: var(--ink); cursor: pointer; position: relative; }
.dsp-p .seg > span[aria-current], .seg label:has(input:checked) { background: var(--page); box-shadow: 0 0 0 var(--bw) var(--hair); font-weight: 700; }
.dsp-p .seg a:hover { text-decoration: underline; }
.dsp-p .seg-r input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.dsp-p .seg-r label:has(input:focus-visible) { outline: 3px solid var(--link); outline-offset: 1px; }
.dsp-p .opt { clear: both; display: flex; gap: var(--s-2); align-items: flex-start; padding: var(--s-1) 0; cursor: pointer; }
.dsp-p .opt input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--link); flex: none; }
.dsp-p .opt b { display: block; font-size: var(--fs-list); } .dsp-p .opt small { display: block; color: var(--ink-2); font-size: var(--fs-micro); line-height: var(--lh-snug); }
.dsp-n { font-size: var(--fs-micro); color: var(--ink-2); margin: var(--s-1) 0 0; clear: both; }
@media (max-width: 759px) { .dsp-b { border: 0; width: 44px; height: 44px; padding: 0; justify-content: center; } .dsp-p { position: fixed; left: 12px; right: 12px; top: calc(var(--hdr) + 6px); width: auto; } }
/* footer */
.ft { background: var(--soft); border-top: var(--bw) solid var(--hair); color: var(--ink-2); font-size: var(--fs-meta); margin-top: 0; }
.ft-in { max-width: 1296px; margin: 0 auto; padding: var(--s-9) var(--gut) var(--s-7); display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: var(--s-7); }
.ft-brand p:not(.wm) { margin: var(--s-3) 0 0; max-width: 30em; }
.ft-col { display: flex; flex-direction: column; gap: var(--s-2); }
.ft-col h2 { font-size: var(--fs-micro); color: var(--ink); margin: 0 0 var(--s-1); }
.ft-col a { color: var(--ink-2); text-decoration: none; padding: 2px 0; } .ft-col a:hover { color: var(--ink); text-decoration: underline; }
.ft-base { max-width: 1296px; margin: 0 auto; padding: var(--s-4) var(--gut) var(--s-7); border-top: var(--bw) solid var(--hair); display: flex; justify-content: space-between; gap: var(--s-2) var(--s-6); flex-wrap: wrap; font-size: var(--fs-micro); }
.ft-base p { margin: 0; }
@media (max-width: 899px) { .ft-in { grid-template-columns: 1fr 1fr; } .ft-brand { grid-column: 1 / -1; } }
.is-ws .ft { display: none; }
/* header search appears once the first-screen search has scrolled away (desktop) */
.hd .hd-search { display: none; flex: 0 1 380px; margin-left: auto; }
.hd .hd-search .sf { max-width: none; } .hd .hd-search .sf input { height: 38px; font-size: var(--fs-list); } .hd .hd-search .sf button[type=submit] { height: 41px; font-size: var(--fs-list); padding: 0 var(--s-3); }
.hd.has-search .hd-search { display: block; animation: hdIn var(--t-base) var(--var(--ease)); }
@keyframes hdIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 1279px) { .hd.has-search .hd-nav { display: none; } }
@media (max-width: 899px) { .hd.has-search .hd-search { display: none; } .hd.has-search .hd-nav { display: flex; } }
@media (max-width: 759px) { .hd.has-search .hd-nav { display: none; } .hd.has-search .hd-nav.is-open { display: flex; } }

@media (max-width: 374px) {
  .wm { font-size: var(--fs-lede); gap: var(--s-2); white-space: normal; min-width: 0; }
  .hd-tools { flex: none; }
}   /* Newsreader is wider than the old fallback; keeps the header inside 360-px screens */

.dsp-b { border-radius: var(--r-m); font-family: inherit; }
.dsp-p .seg a { color: var(--ink); }
.dsp-p fieldset legend { font-family: var(--sans); }
.dsp-h { font-weight: 400 !important; letter-spacing: normal; }
.ft-col h2 { font: 700 var(--fs-micro)/var(--lh-body) var(--sans); letter-spacing: normal; }
.ft .wm { font-family: var(--display); }
.hd :focus-visible, .ft :focus-visible, .dsp-p :focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .hd { transition: none; } .hd.has-search .hd-search { animation: none; } }
/* the compact search in the header (homepage: once the first-screen search scrolls away; other pages: always) */
.hd .hd-search .sf { position: relative; }
.hd .hd-search .sf-row { display: flex; }
.hd .hd-search .sf-in { position: relative; flex: 1; display: flex; align-items: center; border: var(--bw-2) solid var(--ink); border-right: 0; background: var(--page); border-radius: var(--r-m) 0 0 var(--r-m);  }
.hd .hd-search .sf-in svg { position: absolute; left: 14px; width: 19px; height: 19px; color: var(--ink-2); pointer-events: none; }
.hd .hd-search .sf input { width: 100%; border: 0; padding: 0 var(--s-3) 0 var(--s-9); background: transparent; color: var(--ink); font: inherit; font-size: var(--fs-list); height: 38px; border-radius: 0; box-shadow: none; }
.hd .hd-search .sf input:focus { outline: none; }
.hd .hd-search .sf-in:focus-within { box-shadow: inset 0 0 0 1px var(--link); border-color: var(--link); }
.hd .hd-search .sf button[type=submit] { height: 41px; padding: 0 var(--s-3); border: 0; background: var(--ink); color: var(--on-ink); font: 700 var(--fs-list)/1 var(--sans); cursor: pointer; border-radius: 0 var(--r-m) var(--r-m) 0; }
.hd .hd-search ul.results, .hd .hd-search .sug { position: absolute; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 0; list-style: none; background: var(--page); border: var(--bw-2) solid var(--ink); border-radius: var(--r-m); box-shadow: var(--lift); z-index: 45; max-height: 70vh; overflow: auto; }
.hd .hd-search ul.results li a { display: grid; grid-template-columns: 96px 1fr; gap: 0 var(--s-3); padding: var(--s-3) var(--s-3); border-bottom: var(--bw) solid var(--hair); border-radius: 0; color: var(--ink); text-decoration: none; }
.hd .hd-search ul.results li:last-child a { border-bottom: 0; }
.hd .hd-search ul.results li a[aria-selected="true"], .hd .hd-search ul.results li a:hover { background: var(--hl-soft); }
.hd .hd-search ul.results .k { grid-row: span 2; align-self: start; background: none; padding: 2px 0 0; min-width: 0; text-align: left; font-size: var(--fs-micro); font-weight: 700; color: var(--ink-2); border-radius: 0; }
.hd .hd-search ul.results b { color: var(--link); font-weight: 700; } .hd .hd-search ul.results small { color: var(--ink-2); font-size: var(--fs-meta); }
.hd .hd-search ul.results .none { padding: var(--s-3) var(--s-3); color: var(--ink-2); font-size: var(--fs-meta); }
/* inner pages keep the search in the header at every width; below 1200 px it takes a second row */
.hd.hd-inner .hd-search { display: block; animation: none; }
@media (max-width: 1279px) {
  .hd.hd-inner .hd-in { flex-wrap: wrap; height: auto; min-height: var(--hdr); row-gap: 0; }
  .hd.hd-inner .wm, .hd.hd-inner .hd-tools, .hd.hd-inner .hd-nav { min-height: var(--hdr); }
  .hd.hd-inner .hd-search { order: 5; flex: 1 1 100%; margin: 0 0 var(--s-2); }
  .hd.hd-inner.has-search .hd-nav { display: flex; }
}
@media (max-width: 759px) { .hd.hd-inner .wm, .hd.hd-inner .hd-tools { min-height: var(--hdr); } .hd.hd-inner.has-search .hd-nav { display: none; } .hd.hd-inner.has-search .hd-nav.is-open { display: flex; } .hd.hd-inner .hd-nav { min-height: 0; } }
@media print { .hd, .ft { display: none !important; } }

/* 2026-11-17: brand RayKnow / 睿知. Wide screens show the product name on a second line; below 1100 px only the brand. */
.wm-t { display: inline-flex; flex-direction: column; line-height: var(--lh-tight); }
.wm-s { font: var(--fw-regular) var(--fs-micro)/var(--lh-tight) var(--sans); color: var(--ink-2); }
@media (max-width: 1099px) { .wm-s { display: none; } }
