/* Reading pages (support / privacy). Styles the original, MAS-reviewed markup as-is:
   only class selectors here, no text changes. */
body { background: var(--bg); }
main { display: block; }
[hidden] { display: none !important; }
.site-width { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.subpage-stage { position: static; overflow: visible; background: none; }
[data-reveal] { opacity: 1 !important; transform: none !important; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--text); color: var(--bg) !important; padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { left: 8px; }
.policy-version small { display: block; font: 500 11px/1.4 var(--mono); letter-spacing: .1em; }
.policy-nav-v5 a span { font: 11px var(--mono); color: var(--muted); margin-right: 6px; }
.policy-nav-v5 a b { font-weight: 500; }

/* shared bits */
.stage-kicker, .section-label, .guide-fact-label, .guide-step-time { font: 500 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.button, .button-primary { display: inline-flex; align-items: center; border-radius: 999px; padding: 11px 20px; font-size: 15px; font-weight: 600; text-decoration: none; background: var(--orange); color: #1b0f05; border: 0; }
.button:hover { background: #f08f48; }
main a:not(.button) { color: var(--text); text-decoration-color: rgba(235, 228, 216, .35); text-underline-offset: 3px; }
main p, main li { color: var(--text-2); }
main h2, main h3 { color: var(--text); }
main h2 { font-family: var(--serif); font-weight: 400; letter-spacing: .02em; font-size: clamp(26px, 3vw, 34px); line-height: 1.25; margin: 0 0 14px; text-wrap: balance; }
main h3 { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
main .english { color: var(--muted); }

/* hero */
.subpage-hero { padding-top: clamp(64px, 10vh, 104px); padding-bottom: 56px; }
.subpage-title h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 58px); line-height: 1.15; letter-spacing: .02em; margin: 0 0 20px; }
html[lang="en"] .subpage-title h1, html[lang="en"] main h2 { letter-spacing: -.005em; }
.guide-hero-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.guide-hero-lede, .guide-hero-en { font-size: 17px; max-width: 32em; margin: 0 0 28px; }
.guide-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.guide-text-link { text-decoration: none !important; color: var(--text-2) !important; }
.guide-hero-aside { border-top: 1px solid var(--line); padding-top: 18px; }
.guide-hero-aside ol { list-style: none; margin: 0 0 28px; padding: 0; }
.guide-hero-aside li { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.guide-hero-aside li span { font: 12px/1.6 var(--mono); color: var(--muted); }
.guide-hero-aside li strong { font-weight: 500; color: var(--text); }
.guide-direct-contact small { display: block; font: 500 11px/1.4 var(--mono); letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; }
.guide-direct-contact > a { font-size: 18px; font-weight: 600; text-decoration: none; }
.guide-direct-contact p { font-size: 14px; margin: 6px 0 10px; }
.guide-direct-contact button { font: inherit; font-size: 13px; color: var(--text-2); background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.guide-direct-contact button.copied { color: var(--orange-hi); border-color: var(--orange); }

/* section nav */
.guide-section-nav { position: sticky; top: 60px; z-index: 10; background: rgba(17, 20, 23, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.guide-section-nav .site-width { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.guide-section-nav a { flex: none; display: flex; gap: 6px; align-items: baseline; padding: 13px 0; text-decoration: none !important; color: var(--text-2) !important; font-size: 14px; border-bottom: 2px solid transparent; }
.guide-section-nav a span { font: 11px var(--mono); color: var(--muted); }
.guide-section-nav a strong { font-weight: 500; }
.guide-section-nav a[aria-current] { color: var(--text) !important; border-bottom-color: var(--orange); }

/* sections */
.guide-section { padding: clamp(72px, 10vh, 104px) 0 0; scroll-margin-top: 110px; }
.guide-section-layout { display: grid; grid-template-columns: minmax(220px, .38fr) 1fr; gap: 48px; }
.guide-section-heading { align-self: start; position: sticky; top: 130px; }
.guide-section-heading p { font-size: 15px; }
.guide-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: s; }
.guide-steps > li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.guide-step-copy p:not(.guide-step-time) { margin: 0 0 6px; }
.guide-explainer, .guide-topic-list, .troubleshooting-list, .boundary-grid { border-top: 1px solid var(--line); }
.guide-callout, .guide-fact-pair > div, .guide-secure-note, .guide-topic-list > article, .boundary-grid > section, .ranking-boundary-note { padding: 22px 0; border-bottom: 1px solid var(--line); }
.guide-callout p, .guide-fact-pair p, .guide-secure-note p, .guide-topic-copy p, .ranking-boundary-note p { margin: 0 0 6px; }
.guide-fact-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.boundary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.boundary-grid ul, .guide-topic-copy ol, .troubleshooting-answer ol, .guide-mail-template ol { margin: 8px 0 8px; padding-left: 1.2em; }
.boundary-grid li, .guide-topic-copy li, .troubleshooting-answer li, .guide-mail-template li { margin: 5px 0; }
.boundary-mark { font: 500 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; margin: 0 0 8px; }
.boundary-mark-kept { color: var(--orange-hi); }
.boundary-mark-never { color: var(--muted); }
.ranking-boundary-note { grid-column: 1 / -1; }
.guide-topic-heading h3 { margin-bottom: 10px; }
.guide-disclosure, .troubleshooting-list details { border-bottom: 1px solid var(--line); }
.guide-disclosure summary, .troubleshooting-list summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative; font-weight: 500; color: var(--text); }
.guide-disclosure summary::-webkit-details-marker, .troubleshooting-list summary::-webkit-details-marker { display: none; }
.guide-disclosure summary::after, .troubleshooting-list summary::after { content: "+"; position: absolute; right: 2px; top: 15px; color: var(--muted); font-size: 18px; font-weight: 300; transition: transform .25s; }
.guide-disclosure[open] summary::after, .troubleshooting-list details[open] summary::after { transform: rotate(45deg); }
.guide-disclosure > div, .troubleshooting-answer { padding: 0 0 18px; }
.guide-contact { padding-bottom: clamp(80px, 12vh, 120px); }
.guide-contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.guide-contact-email { display: inline-block; font-size: 22px; font-weight: 600; text-decoration: none !important; margin: 10px 0 0; }
.guide-mail-template { border-top: 1px solid var(--line); padding-top: 18px; }
.guide-mail-warning { font-size: 14px; color: var(--muted) !important; }

/* privacy */
.privacy-hero-v5 { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; border-bottom: 1px solid var(--line); }
.privacy-hero-v5 .subpage-title > p:last-child { font-size: 17px; max-width: 34em; margin: 0; }
.policy-version { text-align: right; color: var(--muted); }
.policy-version p { margin: 0; color: var(--muted); font-size: 13px; }
.policy-version strong { display: block; font: 400 28px/1.2 var(--serif); color: var(--text); }
.policy-nav-v5 { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.policy-nav-v5 a { font-size: 14px; color: var(--text-2) !important; text-decoration: none !important; }
.policy-nav-v5 a:hover { color: var(--text) !important; }
.policy-row-v5 { padding: 56px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.policy-row-v5 .site-width { display: grid; grid-template-columns: 36px minmax(200px, .34fr) 1fr; gap: 32px; }
.policy-row-v5 .site-width > span { font: 12px/2.2 var(--mono); color: var(--muted); }
.policy-row-v5 h2 { margin: 0; }
.policy-row-v5 .site-width > div:last-child p { margin: 0 0 14px; }
.support-final-v5 { padding: clamp(80px, 12vh, 120px) 0; }
.final-layout { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.final-layout p:not(.section-label) { margin: 0; }

@media (max-width: 820px) {
  .guide-hero-layout, .guide-section-layout, .guide-contact-layout, .policy-row-v5 .site-width, .privacy-hero-v5, .final-layout { grid-template-columns: 1fr; gap: 16px; }
  .guide-section-heading { position: static; }
  .guide-fact-pair, .boundary-grid { grid-template-columns: 1fr; }
  .policy-version { text-align: left; }
}

/* static bilingual pages: the support page keeps its paired zh/en paragraphs (unchanged text);
   show the one that matches the page language — what global-language.js used to do at runtime */
html[lang="zh-CN"] body.support-guide-page .english { display: none !important; }
html[lang="en"] body.support-guide-page *:has(+ .english) { display: none !important; }
