/* /selling-guide — Home Seller's Guide (2026-11-25). Scoped to .sg so site.css is untouched. */
.sg { --sg-max: 1180px; }
.sg-wrap { max-width: var(--sg-max); margin: 0 auto; padding: 0 56px; }
.sg-hero { padding: 84px 0 56px; border-bottom: 1px solid var(--rule); }
.sg-kicker { font-family: var(--sans); font-size: 11.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
html[lang="zh"] .sg-kicker { letter-spacing: .12em; font-size: 13px; }
.sg-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.2vw, 56px); line-height: 1.1; color: var(--navy); margin: 16px 0 0; max-width: 820px; }
.sg-lede { margin: 22px 0 0; max-width: 680px; font-size: 18px; line-height: 1.7; color: var(--ink-soft); }
.sg-pdf { margin: 26px 0 0; }
.sg-pdf a { font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: .08em; color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--navy); padding-bottom: 4px; }
html[lang="en"] .sg-pdf a { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; }

.sg-layout { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 72px; padding-top: 8px; padding-bottom: 72px; }
.sg-nav { position: sticky; top: 24px; align-self: start; padding-top: 48px; }
.sg-nav summary { list-style: none; cursor: default; font-family: var(--sans); font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--navy); }
html[lang="zh"] .sg-nav summary { letter-spacing: .1em; font-size: 13px; }
.sg-nav summary::-webkit-details-marker { display: none; }
.sg-toc { list-style: none; margin: 16px 0 0; padding: 0; }
.sg-toc li { margin: 0; border-top: 1px solid var(--rule); }
.sg-toc a { display: flex; gap: 12px; padding: 10px 0; font-size: 14.5px; line-height: 1.45; color: var(--ink); text-decoration: none; }
.sg-toc a:hover { color: var(--navy); }
.sg-toc .n { flex: 0 0 22px; color: var(--gold); font-variant-numeric: tabular-nums; }

.sg-article { min-width: 0; }
.sg-ch { padding: 48px 0 52px; border-bottom: 1px solid var(--rule); scroll-margin-top: 16px; }
.sg-ch:last-child { border-bottom: 0; }
.sg-eyebrow { font-family: var(--sans); font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
html[lang="zh"] .sg-eyebrow { letter-spacing: .1em; font-size: 13px; }
.sg-ch h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3vw, 40px); line-height: 1.15; color: var(--navy); margin: 12px 0 0; }
.sg-sub { margin: 12px 0 0; font-size: 18px; line-height: 1.6; color: var(--ink-soft); }
.sg-ch h3 { font-family: var(--sans); font-size: 18px; font-weight: 600; line-height: 1.45; color: var(--navy); margin: 34px 0 10px; }
.sg-ch p { margin: 0 0 14px; font-size: 17px; line-height: 1.75; color: var(--ink); }
html[lang="zh"] .sg-ch p { line-height: 1.85; }
.sg-ch p a, .sg-ch dd a { color: var(--navy); text-underline-offset: 4px; }
.sg-note { font-size: 14.5px !important; color: var(--ink-soft) !important; }

.sg-table { margin: 22px 0 16px; overflow-x: auto; }
.sg-table table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.6; }
.sg-table th { text-align: left; font-weight: 600; color: var(--navy); background: var(--paper-deep); padding: 12px 14px; border-bottom: 1px solid var(--navy); }
.sg-table td { padding: 12px 14px; vertical-align: top; border-bottom: 1px solid var(--rule); }
.sg-t2 td:first-child, .sg-t3 td:first-child { font-weight: 600; color: var(--navy); width: 34%; }
.sg-t3 td:first-child { width: 22%; } .sg-t3 td:nth-child(2) { width: 30%; }
.sg-half td { width: 50%; }
.sg-money td.num, .sg-money th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sg-money tr.sum td { font-weight: 600; color: var(--navy); border-top: 1px solid var(--navy); }

.sg-ours { margin: 30px 0 0; padding: 20px 24px; background: var(--paper-deep); border-left: 3px solid var(--navy); }
.sg-ours-t { font-family: var(--sans); font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--navy); margin-bottom: 8px; }
html[lang="zh"] .sg-ours-t { letter-spacing: .1em; font-size: 13px; }
.sg-ours p { margin: 0 !important; font-size: 16.5px !important; }

.sg-case { margin: 34px 0 0; }
.sg-case-l { font-family: var(--sans); font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
html[lang="zh"] .sg-case-l { letter-spacing: .1em; font-size: 13px; }
.sg-case h3 { margin-top: 6px; }
.sg-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.sg-figs-hero { grid-template-columns: 1.6fr 1fr; }
.sg-fig { margin: 0; }
.sg-fig img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #e9ecf1; }
.sg-figs-hero .sg-fig img { aspect-ratio: auto; height: 300px; }
.sg-figs-hero .sg-fig.wide img { object-position: center 30%; }
.sg-fig figcaption { padding-top: 8px; font-size: 13.5px; color: var(--ink-soft); }

.sg-ol { margin: 6px 0 0; padding-left: 1.3em; }
.sg-ol li { margin: 8px 0; font-size: 17px; line-height: 1.6; }
.sg-checks { list-style: none; margin: 8px 0 0; padding: 0; columns: 2; column-gap: 32px; }
.sg-checks li { break-inside: avoid; padding: 10px 0 10px 26px; border-top: 1px solid var(--rule); position: relative; font-size: 16px; line-height: 1.5; }
.sg-checks li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 12px; height: 12px; border: 1.5px solid var(--navy); }
.sg-terms { margin: 8px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.sg-terms > div { padding: 10px 0; border-top: 1px solid var(--rule); }
.sg-terms dt { font-weight: 600; color: var(--navy); font-size: 15.5px; }
.sg-terms dd { margin: 2px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }

.sg-about-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 48px; margin-top: 28px; align-items: center; }
.sg-about-ph { margin: 0; }
.sg-about-ph img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.sg-about-ph figcaption { display: grid; gap: 10px; padding-top: 12px; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.sg-about-ph figcaption b { display: block; color: var(--navy); font-weight: 600; }
.sg-about h3 { margin-top: 24px; }
.sg-disc { margin-top: 32px !important; font-size: 13px !important; color: var(--ink-soft) !important; }

/* Contact block (same as Team page) */
.contact-section.tm-end .wrap { max-width: 1280px; padding: 0 56px; }
.contact-section.tm-end { padding: 76px 0 80px; }
.tm-end .contact-cta { margin-top: 30px; }
.tm-end .m-br { display: none; }
.tm-end-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: end; }
.tm-wx { padding-left: 40px; border-left: 1px solid rgba(255,255,255,0.2); display: flex; gap: 18px; align-items: center; }
.tm-wx .wx-qr-btn { margin: 0; }
.tm-wx .wx-qr-btn img { width: 88px; height: 88px; }
.tm-wx-l { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: 0.1em; color: rgba(248,244,237,0.6); }
.tm-wx-v { display: block; margin-top: 2px; font-family: var(--serif); font-size: 22px; color: #fff; }
.contact-section .contact-cta { display: flex; flex-wrap: wrap; gap: 12px 14px; }
.contact-section .tm-btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.75); }
.contact-section .tm-btn-ghost:hover { background: #fff; color: #1a2849; border-color: #fff; }

@media (max-width: 1000px) {
  .sg-wrap { padding: 0 28px; }
  .sg-hero { padding: 44px 0 36px; }
  .sg-lede { font-size: 17px; }
  .sg-layout { display: block; }
  .sg-nav { position: static; padding-top: 28px; }
  .sg-nav summary { cursor: pointer; display: flex; justify-content: space-between; }
  .sg-nav summary::after { content: "+"; font-size: 16px; letter-spacing: 0; }
  .sg-nav details[open] summary::after { content: "–"; }
  .sg-ch { padding: 36px 0 40px; }
  .sg-ch h2 { font-size: 28px; }
  .sg-sub { font-size: 17px; }
  .sg-ch p { font-size: 16.5px; }
  .sg-about-grid { grid-template-columns: 1fr; gap: 22px; }
  .sg-about-ph img { aspect-ratio: 4 / 3; }
  .tm-end-grid { grid-template-columns: 1fr; gap: 0; }
  .tm-wx { margin-top: 32px; padding: 24px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,0.2); }
  .contact-section.tm-end .wrap { padding: 0 28px; }
  .contact-section.tm-end { padding: 52px 0 56px; }
}
@media (max-width: 700px) { .tm-end .m-br { display: inline; } }
@media (max-width: 600px) {
  .sg-wrap { padding: 0 22px; }
  .sg-table { margin-left: -22px; margin-right: -22px; padding: 0 22px; }
  .sg-table table { font-size: 15px; }
  .sg-t3 table { min-width: 560px; }
  .sg-figs, .sg-figs-hero { grid-template-columns: 1fr; }
  .sg-figs-hero .sg-fig img { height: auto; aspect-ratio: 3 / 2; }
  .sg-checks, .sg-terms { columns: 1; grid-template-columns: 1fr; }
  .contact-section.tm-end .wrap { padding: 0 22px; }
  .contact-section .contact-cta .btn { width: 100%; text-align: center; justify-content: center; text-wrap: balance; line-height: 1.4; }
}
@media print { header, .sg-nav, .contact-section, footer { display: none; } .sg-layout { display: block; } }

/* links to related pages on the site (2026-11-25) */
.sg-more{margin:22px 0 0;font-size:15px;line-height:1.7;color:var(--ink-soft,#5a5b5c)}
.sg-more .sg-more-k{margin-right:4px}
.sg-more a{color:var(--navy,#1a2849);text-decoration:underline;text-decoration-color:rgba(26,40,73,.35);text-underline-offset:3px;white-space:nowrap}
.sg-more a:hover{text-decoration-color:var(--navy,#1a2849)}
.sg-more .sg-dot{margin:0 6px;opacity:.5}
.sg-cases{list-style:none;margin:14px 0 0;padding:0;border-top:1px solid var(--rule,rgba(20,24,31,.16))}
.sg-cases li{border-bottom:1px solid var(--rule,rgba(20,24,31,.16))}
.sg-cases a{display:grid;grid-template-columns:150px 1fr;gap:6px 20px;padding:16px 0;color:inherit;text-decoration:none}
.sg-cases a b{font-family:var(--serif);font-weight:400;font-size:20px;color:var(--navy,#1a2849)}
.sg-cases a span{font-size:15.5px;line-height:1.65}
.sg-cases a:hover b{text-decoration:underline;text-underline-offset:4px}
.sg-cases a span::after{content:" \2192";color:var(--navy,#1a2849)}
@media (max-width:600px){.sg-more a{white-space:normal}.sg-cases a{grid-template-columns:1fr}.sg-more,.sg-cases a span{font-size:16.5px}}

/* about: names sit beside the photo with the text (2026-11-25) */
.sg-about-tx > p:first-child { margin-top: 0; }
.sg-about-names { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 8px 40px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--rule, rgba(20,24,31,.16)); }
.sg-about-names p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-soft, #5a5b5c); }
.sg-about-names b { display: block; font-size: 16px; font-weight: 600; color: var(--navy, #1a2849); }
.sg-about-tx .sg-more { margin-top: 22px; }
@media (max-width: 700px) { .sg-about-names { grid-template-columns: 1fr 1fr; gap: 8px 20px; } }
@media (min-width: 701px) { .sg-about-names { grid-template-columns: max-content max-content; } .sg-about-names span { white-space: nowrap; } }

/* contact block: full copy of the Team page rules (2026-11-25) */
.contact-section.tm-end .wrap { max-width: 1280px; padding: 0 56px; }
.contact-section.tm-end { padding: 76px 0 80px; }
@media (max-width: 1000px) {
.contact-section.tm-end .wrap { padding: 0 28px; }
}
@media (max-width: 560px) {
.contact-section.tm-end .wrap { padding: 0 22px; }
}
.tm-end .contact-cta { margin-top: 30px; }
.tm-end .m-br { display: none; }
@media (max-width: 700px) {
.tm-end .m-br { display: inline; }
}
.tm-end-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: end; }
.tm-lines { margin-top: 34px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.2); display: flex; flex-wrap: wrap; gap: 20px 44px; }
.tm-lines a { display: block; color: #fff; text-decoration: none; }
.tm-line-wx { display: flex; align-items: center; gap: 18px; color: #fff; }
.tm-line-wx .wx-qr-btn { margin: 0; }
.tm-line-wx .wx-qr-btn img { width: 96px; height: 96px; }
.tm-line-wx .copy-link { display: inline-block; }
.tm-end .tm-wx-v { margin-top: 2px; font-size: 18px; }
html body .tm-end .tm-wx .copy-link:not(#_z) { font-size: 13px !important; letter-spacing: 0.06em; padding: 6px 12px; margin-top: 8px; min-height: 0; }
@media (max-width: 700px) {
.tm-lines { flex-direction: column; gap: 12px; margin-top: 26px; padding-top: 20px; }
.tm-end .tm-wx-v { font-size: 17px; }
}
.tm-wx .wx-qr-btn { margin: 0; }
.tm-wx .wx-qr-btn img { width: 88px; height: 88px; }
.tm-wx-l { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: 0.1em; color: rgba(248,244,237,0.6); }
.tm-wx-v { display: block; margin-top: 2px; font-family: var(--serif); font-size: 22px; color: #fff; }
@media (max-width: 1000px) {
.tm-end-grid { grid-template-columns: 1fr; gap: 0; }
.contact-section.tm-end { padding: 52px 0 56px; }
}
/* phones: the three-column presentation table stacks, one property type per block (2026-11-25) */
@media (max-width: 600px) {
  .sg-t3 table { min-width: 0; }
  .sg-t3 thead { display: none; }
  .sg-t3 tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule, rgba(20,24,31,.16)); }
  .sg-t3 td { display: block; width: auto !important; border: 0 !important; padding: 2px 0 !important; }
  .sg-t3 td:first-child { padding-bottom: 6px !important; }
  .sg-t3 td[data-l]::before { content: attr(data-l); display: block; margin-top: 6px; font-size: 13px; color: var(--ink-soft, #5a5b5c); }
  html[lang="zh"] .sg-t3 td[data-lz]::before { content: attr(data-lz); }
}

/* byline under the lede (2026-11-25) */
.sg-by { margin: 18px 0 0; font-size: 14.5px; color: var(--ink-soft, #5a5b5c); }
.sg-by a { color: var(--navy, #1a2849); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(26,40,73,.3); }
.sg-by a:hover { border-bottom-color: var(--navy, #1a2849); }
.sg-by + .sg-pdf { margin-top: 18px; }
@media (max-width: 600px) { html .sg-by:not(#_z) { font-size: 15px !important; } }
.sg-by a { font-weight: 500; color: var(--ink-soft, #5a5b5c); border-bottom: 0; }
.sg-by a:hover { color: var(--navy, #1a2849); }

/* rules audit (2026-11-25): keep only lines that separate or structure content */
.sg .sg-ch { border-top: 0; }                         /* site.css adds a top rule to every section → doubled lines */
.sg-toc li { border-top: 0; }                         /* contents list reads fine as a list */
.sg-toc a { padding-top: 7px; padding-bottom: 7px; }
.sg-ours { border-left: 0; }                          /* the tinted box already sets it apart */
.sg-checks li { border-top: 0; padding-top: 7px; padding-bottom: 7px; }
.sg-terms > div { border-top: 0; padding: 7px 0; }
.sg-cases { border-top: 0; }
.sg-cases li { border-bottom: 0; }
.sg-cases li + li { border-top: 1px solid var(--rule, rgba(20,24,31,.16)); }

/* at-a-glance overview of the eight steps, under the intro (2026-11-25) */
.sg-ov { padding: 40px 0 8px; border: 0; }
.sg-ov h2 { margin: 0 0 18px; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold, #9a7c3c); }
html[lang="zh"] .sg-ov h2 { font-size: 15px; letter-spacing: .08em; }
.sg-ov-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; counter-reset: none; }
.sg-ov-steps a { display: flex; align-items: baseline; gap: 12px; height: 100%; padding: 16px 18px; background: var(--paper-deep, #eef1f6); color: var(--ink); text-decoration: none; font-size: 15.5px; line-height: 1.4; transition: background .2s, color .2s; }
.sg-ov-steps a:hover { background: var(--navy, #1a2849); color: #fff; }
.sg-ov-steps .n { font-family: var(--serif); font-size: 22px; color: var(--navy, #1a2849); line-height: 1; }
.sg-ov-steps a:hover .n { color: #d4b878; }
.sg-ov-tools { margin: 16px 0 0; font-size: 15px; color: var(--ink-soft, #5a5b5c); }
.sg-ov-tools .k { margin-right: 4px; }
.sg-ov-tools a { color: var(--navy, #1a2849); text-decoration: underline; text-decoration-color: rgba(26,40,73,.35); text-underline-offset: 3px; }
.sg-ov-tools .sg-dot { margin: 0 6px; opacity: .5; }
@media (max-width: 1000px) {
  .sg-ov-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sg-nav { display: none; }                          /* the overview replaces the collapsed contents list on tablets and phones */
}
@media (max-width: 600px) {
  .sg-ov { padding-top: 32px; }
  .sg-ov-steps { gap: 8px; }
  .sg-ov-steps a { padding: 14px 14px; font-size: 15.5px; }
  .sg-ov-steps .n { font-size: 20px; }
  .sg-ov-tools a { display: inline-block; padding: 6px 0; }
}
/* desktop: the side contents list appears once the overview has scrolled away, so the two never show together */
@media (min-width: 1001px) {
  .sg-nav.sg-nav-wait { opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s linear .25s; }
  .sg-nav.sg-nav-wait.sg-nav-on { opacity: 1; visibility: visible; transition: opacity .25s; }
}
@media (max-width: 600px) { .sg-ov-tools .sg-dot { display: none; } .sg-ov-tools .k { display: block; } .sg-ov-tools a { display: block; width: max-content; padding: 5px 0; } }

/* ── Reading as modules (2026-11-25) ─────────────────────────────────────────
   Hero stays white. Below it a pale band; each step is a white card with a big
   step number, and ends with a "Next" link so the reader finishes one module
   at a time. Tools are cards with a gold top edge. Cases sit in an outlined panel. */
.sg-band { background: #e9edf3; padding-bottom: 72px; }
.sg-hero { border-bottom: 0; }
.sg .sg-ov { padding-top: 48px; }
.sg-ov-steps a { background: #fff; box-shadow: 0 1px 0 rgba(20,24,31,.06); }
.sg-layout { padding-top: 28px; padding-bottom: 0; }
.sg-nav { padding-top: 0; top: 28px; }

.sg .sg-ch { background: #fff; border: 0; padding: 48px 56px 0; margin: 0 0 20px; scroll-margin-top: 20px; box-shadow: 0 1px 2px rgba(20,24,31,.05); }
.sg .sg-ch:last-child { margin-bottom: 0; padding-bottom: 48px; }
.sg-ch-h { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 26px; align-items: start; padding-bottom: 26px; margin-bottom: 8px; border-bottom: 1px solid var(--rule); }
.sg-ch-n { font-family: var(--serif); font-size: 72px; line-height: .9; color: var(--gold); letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.sg-ch-h .sg-eyebrow { margin-top: 4px; }
.sg-ch-h h2 { margin-top: 10px; }
.sg-ch-h .sg-sub { margin: 10px 0 0 !important; }

/* tools: same card, gold top edge, no big number */
.sg .sg-tool { border-top: 3px solid var(--gold); }
.sg-tool > .sg-eyebrow { margin-bottom: 0; }
.sg-tool > h2 { margin-top: 10px; }

/* end of module: next step */
.sg-ch-f { margin: 40px -56px 0; padding: 0; border-top: 1px solid var(--rule); }
.sg-next { display: flex; align-items: baseline; gap: 14px; padding: 20px 56px 22px; color: var(--navy); text-decoration: none; transition: background .2s; }
.sg-next:hover { background: #f7f8fa; }
.sg-next .k { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
html[lang="zh"] .sg-next .k { font-size: 13.5px; letter-spacing: .08em; }
.sg-next .v { font-family: var(--serif); font-size: 21px; line-height: 1.3; }
.sg-next .ar { margin-left: auto; font-size: 20px; transition: transform .2s; }
.sg-next:hover .ar { transform: translateX(4px); }

/* content types */
.sg-ch h3 { margin-top: 38px; }
.sg-ch-h + h3, .sg-ch-h + .sg-table, .sg-ch-h + .sg-cases { margin-top: 28px; }
.sg-case { margin-top: 36px; padding: 24px 24px 26px; border: 1px solid var(--rule); }
.sg-case .sg-figs { margin-top: 16px; }
.sg-ours { margin-top: 32px; }
.sg-more { margin-top: 26px; }

/* side contents: where you are, what's done */
.sg-toc a { position: relative; padding-left: 0; transition: color .2s; }
.sg-toc a[aria-current] { color: var(--navy); font-weight: 600; }
.sg-toc a[aria-current]::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 2px; background: var(--gold); }
.sg-toc a.is-done { color: var(--ink-soft); }
.sg-toc a.is-done .n { color: var(--ink-soft); }

/* reading progress: thin gold bar at the top of the screen while inside the guide */
.sg-prog { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 90; pointer-events: none; opacity: 0; transition: opacity .2s; }
.sg-prog.on { opacity: 1; }
.sg-prog i { display: block; height: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); }

@media (max-width: 1000px) {
  .sg-layout { padding-top: 20px; }
  .sg .sg-ch { padding: 40px 40px 0; }
  .sg-ch-f { margin: 36px -40px 0; }
  .sg-next { padding: 18px 40px 20px; }
}
@media (max-width: 600px) {
  .sg-band { padding-bottom: 40px; }
  .sg-layout.sg-wrap { padding-left: 0; padding-right: 0; }
  .sg .sg-ch { padding: 32px 22px 0; margin-bottom: 12px; box-shadow: none; }
  .sg .sg-ch:last-child { padding-bottom: 36px; }
  .sg-ch-h { grid-template-columns: 1fr; gap: 0; padding-bottom: 20px; }
  .sg-ch-n { font-size: 52px; margin-bottom: 10px; }
  .sg-ch-f { margin: 30px -22px 0; }
  .sg-next { padding: 16px 22px 18px; }
  .sg-next .v { font-size: 19px; }
  .sg-case { padding: 18px 16px 20px; margin-left: -6px; margin-right: -6px; }
  .sg-ov-steps a { box-shadow: none; }
}
@media print { .sg-band { background: none; } .sg .sg-ch { box-shadow: none; padding: 24px 0; } .sg-ch-f, .sg-prog { display: none; } }

/* hero as a manual's title block (2026-11-25): title = 卖房指南, tighter spacing */
.sg-hero { padding: 56px 0 38px; }
.sg-hero h1 { margin-top: 0; font-size: clamp(38px, 4.4vw, 58px); }
.sg-h1sub { margin: 10px 0 0; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; color: var(--navy); }
.sg-hero .sg-lede { margin-top: 16px; }
.sg-hero .sg-by { margin-top: 14px; }
.sg-hero .sg-by + .sg-pdf { margin-top: 12px; }
.sg .sg-ov { padding-top: 30px; }
.sg-ov h2 { margin-bottom: 14px; }
.sg-layout { padding-top: 20px; }
@media (max-width: 600px) {
  .sg-hero { padding: 36px 0 28px; }
  .sg-h1sub { font-size: 21px; }
  .sg .sg-ov { padding-top: 24px; }
  .sg-layout { padding-top: 16px; }
}

/* phones/tablets: floating contents button, bottom-left (the share button sits bottom-right) */
.sg-fab { display: none; }
@media (max-width: 1000px) {
  .sg-fab { display: block; position: fixed; left: 16px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 80; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility 0s linear .2s; }
  .sg-fab.on { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s; }
  .sg-fab-b { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border: 0; border-radius: 22px; background: var(--navy, #1a2849); color: #fff; font: 500 14px/1 var(--sans); letter-spacing: .04em; box-shadow: 0 6px 18px rgba(12,18,32,.25); cursor: pointer; }
  .sg-fab-b::before { content: ""; width: 14px; height: 10px; background: linear-gradient(#fff,#fff) 0 0/100% 1.5px no-repeat, linear-gradient(#fff,#fff) 0 50%/100% 1.5px no-repeat, linear-gradient(#fff,#fff) 0 100%/100% 1.5px no-repeat; }
  html[lang="zh"] .sg-fab-b { font-size: 15px; }
  .sg-fab-p { position: absolute; left: 0; bottom: 54px; width: min(300px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto; background: #fff; padding: 8px 18px; box-shadow: 0 12px 32px rgba(12,18,32,.22); }
  .sg-fab-p[hidden] { display: none; }
  .sg-fab-p .sg-toc { margin: 0; }
  .sg-fab-p .sg-toc a { padding: 11px 0; font-size: 15.5px; }
  .sg-fab-p .sg-toc li + li { border-top: 1px solid var(--rule, rgba(20,24,31,.16)); }
}

/* lighter transitions (2026-11-25): a quiet text link at the end of each card; no bar, no gold edge on tools */
.sg .sg-tool { border-top: 0; }
.sg-ch-f { margin: 34px 0 0; padding: 0 0 40px; border-top: 0; text-align: right; }
.sg-next { display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 0; background: none !important; color: var(--navy); }
.sg-next .k { font-family: var(--sans); font-size: 14px; letter-spacing: .04em; text-transform: none; color: var(--ink-soft); }
html[lang="zh"] .sg-next .k { font-size: 14.5px; letter-spacing: .02em; }
.sg-next .k::after { content: "："; }
html[lang="en"] .sg-next .k::after { content: ":"; }
.sg-next .v { font-family: var(--sans); font-size: 15.5px; font-weight: 600; }
.sg-next .ar { margin-left: 2px; font-size: 16px; }
/* header: big number + step name + heading; no "step N of 8" */
.sg-ch-h .sg-eyebrow { margin-top: 6px; font-size: 13px; }
html[lang="zh"] .sg-ch-h .sg-eyebrow { font-size: 14px; }
@media (max-width: 1000px) { .sg-ch-f { margin: 30px 0 0; padding-bottom: 32px; } .sg-next { padding: 6px 0; } }
@media (max-width: 600px) { .sg-ch-f { margin-top: 26px; padding-bottom: 26px; } .sg-next .v { font-size: 16px; } }
/* spacing between blocks (2026-11-25): .sg-ch p margin was cancelling these */
.sg-ch .sg-more { margin-top: 24px; }
.sg-ch .sg-ours + .sg-more { margin-top: 22px; }
.sg-ch .sg-table + .sg-note { margin-top: -4px; }
.sg-ch .sg-note + .sg-ours, .sg-ch .sg-table + .sg-ours { margin-top: 28px; }
.sg-ch .sg-case + .sg-ours { margin-top: 32px; }
/* no next-chapter links (2026-11-25): every card closes with its own bottom padding */
.sg .sg-ch { padding-bottom: 48px; }
@media (max-width: 1000px) { .sg .sg-ch { padding-bottom: 40px; } }
@media (max-width: 600px) { .sg .sg-ch { padding-bottom: 32px; } }

/* one quiet meta line under the intro: author · PDF (2026-11-25) */
.sg-meta { margin: 18px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 14.5px; color: var(--ink-soft, #5a5b5c); }
.sg-meta .k { margin-right: 4px; }
html[lang="en"] .sg-meta .k::after { content: " "; }
.sg-meta a { color: var(--ink-soft, #5a5b5c); text-decoration: none; }
.sg-meta a:hover { color: var(--navy, #1a2849); }
.sg-meta .sep { width: 1px; height: 13px; background: var(--rule, rgba(20,24,31,.25)); margin: 0 14px; }
.sg-meta a.dl { color: var(--navy, #1a2849); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(26,40,73,.35); text-underline-offset: 4px; }
.sg-meta a.dl::after { content: " \2193"; text-decoration: none; }
html:not([lang="zh"]) .sg-meta a.dl[data-zh-only], html[lang="zh"] .sg-meta a.dl[data-en-only] { display: none; }
@media (max-width: 600px) { html .sg-meta:not(#_z) { font-size: 15px; } .sg-meta a.dl { display: inline-block; padding: 8px 0; } }
