@font-face {
  font-family: InterStandard;
  src: url('/assets/shared/InterVariable-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url('/assets/shared/InterTight.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
/* Shared text roles. Display headings retain each site's own weights. */
:root {
  --type-body-weight: 400;
  --type-secondary-weight: 500;
  --type-label-weight: 600;
  --type-action-weight: 700;
  --type-reading-leading: 1.6;
}
:root { color-scheme: light; font-family: Inter, system-ui, sans-serif; font-size: 100%; line-height: 1.45; color: #121212; background: #fff; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #064fb2; outline-offset: 3px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:lang(zh) { font-family: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif; }
.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 20; transform: translateY(-160%); background: #fff; color: #111; padding: .7rem 1rem; border-radius: .3rem; }
.skip-link:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Shared guide chrome and reading tokens. Individual guides choose their own layouts. */
:root {
  --guide-paper: #fbfaf7;
  --guide-surface: #fff;
  --guide-ink: #202723;
  --guide-muted: #555e57;
  --guide-accent: #a32936;
  --guide-accent-dark: #7f1e29;
  --guide-line: #dcded6;
  --guide-tint: #f2eee8;
  --guide-accent-tint: #f7e9e8;
  --guide-width: 72rem;
  --guide-serif: Georgia, 'Times New Roman', serif;
}

body { color: var(--guide-ink); background: var(--guide-paper); font-family: InterStandard, system-ui, sans-serif; }
::selection { color: var(--guide-ink); background: #eed4d6; }
.guide-header {
  max-inline-size: var(--guide-width);
  margin-inline: auto;
  padding: .5rem clamp(1rem, 3vw, 2rem);
  min-block-size: 4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1.1rem;
  border-block-end: 1px solid var(--guide-line);
}
.guide-brand {
  display: inline-flex;
  align-items: center;
  min-block-size: 2.75rem;
  color: var(--guide-ink);
  font-weight: 750;
  font-size: 1.035rem;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.guide-independent { color: var(--guide-muted); font-size: .78rem; }
.guide-nav { display: flex; flex-wrap: wrap; gap: 0 1rem; margin-inline-start: auto; }
.guide-nav a { display: inline-flex; align-items: center; min-block-size: 2.75rem; color: var(--guide-muted); font-size: .85rem; font-weight: 600; }
.guide-nav a:hover, .guide-nav a:focus-visible { color: var(--guide-accent-dark); }
.guide-main { width: min(100%, var(--guide-width)); margin-inline: auto; padding-inline: clamp(1rem, 3vw, 2rem); }
.guide-footer { margin-block-start: 3rem; padding-block: 1.5rem; border-block-start: 1px solid var(--guide-line); color: var(--guide-muted); font-size: .875rem; }
.guide-footer a { color: var(--guide-accent-dark); }
[id] { scroll-margin-block-start: 1rem; }

@media (max-width: 42rem) {
  .guide-header { gap: 0 .7rem; }
  .guide-nav { flex-basis: 100%; margin-inline-start: 0; gap: 0 .8rem; }
}
