/* Public support pages share the site's quiet UI scale. This layer is loaded last. */
html body.site-surface {
  --site-font:var(--project-font,"PingFang SC","Microsoft YaHei UI","Microsoft YaHei","Noto Sans CJK SC","Noto Sans SC",-apple-system,BlinkMacSystemFont,sans-serif);
  --site-paper:#f5f1ea;
  --site-sheet:#fdfcf9;
  --site-ink:#3d3428;
  --site-muted:#9a8b72;
  --site-line:rgba(60,52,44,.16);
  margin:0;
  color:var(--site-ink);
  background:var(--site-paper);
  font:400 var(--gg-type-body,16px)/1.8 var(--site-font);
}
html body.site-surface :is(h1,h2,h3,h4,button,input,select,textarea) {
  font-family:var(--site-font);
  letter-spacing:0;
}
html body.site-surface h1 {
  margin:0 0 24px;
  font-size:var(--gg-type-page,clamp(24px,2.4vw,28px));
  font-weight:600;
  line-height:1.45;
  overflow-wrap:anywhere;
}
html body.site-surface h2 {
  margin:40px 0 16px;
  font-size:var(--gg-type-section,18px);
  font-weight:600;
  line-height:1.6;
}
html body.site-surface h3 {
  font-size:var(--gg-type-subheading,16px);
  font-weight:600;
  line-height:1.65;
}
html body.site-surface :is(p,li) {
  font-size:var(--gg-type-body,16px);
  line-height:1.8;
}
html body.site-surface p { margin:0 0 16px; }
html body.site-surface li { margin:8px 0; }
html body.site-surface strong { font-weight:600; }
html body.site-surface :is(main,section,header,footer,nav) { min-width:0; }
html body.site-surface :is(button,input,select,textarea) { max-width:100%; }
html body.site-surface :is(button,select) { min-height:44px; }
html body.site-surface button { font-size:var(--gg-type-control,13px); }
html body.site-surface :is(a,button) { touch-action:manipulation; }
html body.site-surface :is(a,button,input,select,textarea):focus-visible {
  outline:2px solid #d9570f;
  outline-offset:3px;
}
html body.site-surface :is(.meta,.method-note,#account-status,#status,.muted,.private-label,footer) {
  color:var(--site-muted);
  font-size:var(--gg-type-label,13px);
  line-height:1.8;
}
html body.site-surface code { font-size:.92em; overflow-wrap:anywhere; }
html body.site-surface .page-back { background:transparent; box-shadow:none; }

/* Explanatory pages use one continuous reading column, with sources at the end. */
html body.site-surface[data-site-surface="scoring"] main,
html body.site-surface[data-site-surface="recharge"] main {
  width:100%;
  max-width:824px;
  margin:0 auto;
  padding:32px 32px 80px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
html body.site-surface[data-site-surface="scoring"] .site-header {
  max-width:824px;
  margin:0 auto;
  padding:20px 32px;
  border:0;
}
html body.site-surface[data-site-surface="scoring"] .brand {
  font-size:var(--gg-type-brand,19px);
  font-weight:600;
}
html body.site-surface[data-site-surface="scoring"] table {
  width:100%;
  margin:20px 0 24px;
  border-collapse:collapse;
  border:0;
  background:transparent;
  font-size:var(--gg-type-label,13px);
}
html body.site-surface[data-site-surface="scoring"] :is(th,td) {
  padding:12px 0;
  border:0;
  border-bottom:1px solid var(--site-line);
  text-align:left;
  font-weight:400;
}
html body.site-surface[data-site-surface="scoring"] th { color:var(--site-muted); }
html body.site-surface[data-site-surface="scoring"] :is(th,td):last-child { text-align:right; }
html body.site-surface[data-site-surface="scoring"] .method-sources {
  margin-top:48px;
  padding-top:24px;
  border-top:1px solid var(--site-line);
}
html body.site-surface[data-site-surface="scoring"] .method-sources h2 { margin-top:0; }
html body.site-surface[data-site-surface="scoring"] .method-sources li { font-size:13px; }
html body.site-surface[data-site-surface="scoring"] .method-sources a {
  display:inline-flex;
  align-items:center;
  min-height:44px;
}

/* Payment instructions and the original QR image retain their existing content. */
html body.site-surface[data-site-surface="recharge"] nav { margin:0 0 32px; align-items:center; }
html body.site-surface[data-site-surface="recharge"] nav>a:not(.page-back) {
  color:var(--site-ink);
  font-size:var(--gg-type-brand,19px);
  font-weight:600;
}
html body.site-surface[data-site-surface="recharge"] .member {
  margin:32px 0 0;
  padding:24px 0 0;
  border:0;
  border-top:1px solid var(--site-line);
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
html body.site-surface[data-site-surface="recharge"] .member h2 { margin-top:0; }
html body.site-surface[data-site-surface="recharge"] .member>img { display:block; margin:20px 0 24px; }
html body.site-surface[data-site-surface="recharge"] .member>button {
  min-width:88px;
  margin:4px 0 16px;
  padding:10px 16px;
  border:1px solid var(--site-line);
  border-radius:10px;
  background:var(--site-sheet);
  box-shadow:none;
}
html body.site-surface[data-site-surface="recharge"] #account-link {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  font-size:var(--gg-type-label,13px);
}

/* Analytics keeps compact numeric labels; prose follows the same 16px body scale. */
html body.site-surface[data-site-surface="analytics"] h2 { margin:0 0 16px; }
html body.site-surface[data-site-surface="analytics"] .heading h1 { margin:8px 0 0; }
html body.site-surface[data-site-surface="analytics"] :is(.eyebrow,.muted,footer) { font-size:13px; }
html body.site-surface[data-site-surface="analytics"] .eyebrow { margin:0; }
html body.site-surface[data-site-surface="analytics"] :is(.metric strong,.funnel strong) { font-weight:600; }

@media(max-width:650px) {
  html body.site-surface[data-site-surface="scoring"] main,
  html body.site-surface[data-site-surface="recharge"] main { padding:24px 16px 48px; }
  html body.site-surface[data-site-surface="scoring"] .site-header { padding:16px; }
  html body.site-surface h2 { margin-top:32px; }
  html body.site-surface :is(input,select,textarea) { font-size:16px; }
  html body.site-surface[data-site-surface="recharge"] nav { gap:16px; }
}

body.site-surface[data-site-surface="directory"] .index-row h3 a{display:inline-flex;align-items:center;min-height:44px}
