/* Presentation only: no copy, headings, links, schemas or approved font roles
   change. Shared rhythm, reading measures and responsive editorial grouping. */
body[data-site-typography="edition"] {
  --reading-measure: 70ch;
  --reading-gap: clamp(40px, 6vw, 80px);
}
html[lang^="zh"] body[data-site-typography="edition"] { --reading-measure: 36ic; }

body[data-site-typography="edition"] :is(.search-main, .search-content, .service-main, .legal-main) {
  min-width: 0;
}
body[data-site-typography="edition"] :is(.search-main, .search-content, .service-main, .legal-main) :is(p, dd, li) {
  text-wrap: pretty;
}
body[data-site-typography="edition"] :is(.search-main, .search-content, .service-main, .legal-main) :is(h1, h2, h3) {
  text-wrap: balance;
}

/* Service photography keeps the original asymmetric grid. Captions become a
   single coherent reading group rather than a very narrow second column. */
body.service-detail-page[data-site-typography="edition"] .service-main {
  width: min(1280px, calc(100% - 96px));
  padding-bottom: 32px;
}
body.service-detail-page[data-site-typography="edition"] .service-hero {
  align-items: flex-start;
  justify-content: center;
  min-height: clamp(480px, 64svh, 660px);
  padding: clamp(48px, 5vw, 80px);
}
body.service-detail-page[data-site-typography="edition"] .service-hero h1 {
  max-width: min(18ch, calc(100vw - clamp(370px, 36vw, 520px) - max(48px, (100vw - 1280px) / 2) - 144px));
  margin-bottom: 24px;
}
body.service-detail-page[data-site-typography="edition"] .service-hero > p {
  max-width: min(55ch, calc(100vw - clamp(370px, 36vw, 520px) - max(48px, (100vw - 1280px) / 2) - 144px));
  margin: 0 0 28px;
  line-height: 1.85;
}
body.service-detail-page[data-site-typography="edition"] .service-tags { margin-top: 28px; }
body.service-detail-page[data-site-typography="edition"] .service-gallery { padding-top: var(--reading-gap); gap: 24px; }
body.service-detail-page[data-site-typography="edition"] .detail-card { min-height: 0; }
body.service-detail-page[data-site-typography="edition"] .detail-media { min-height: clamp(280px, 32vw, 460px); }
body.service-detail-page[data-site-typography="edition"] .detail-copy {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: 28px 20px 32px;
}
body.service-detail-page[data-site-typography="edition"] .detail-copy h2 { max-width: 20ch; line-height: 1.2; }
body.service-detail-page[data-site-typography="edition"] .detail-copy p { max-width: 58ch; line-height: 1.8; }
body.service-detail-page[data-site-typography="edition"] .detail-card-list { min-height: 0; padding: clamp(32px, 4vw, 56px); gap: 32px; align-items: start; }
body.service-detail-page[data-site-typography="edition"] .detail-list-heading h2 { line-height: 1.2; }
body.service-detail-page[data-site-typography="edition"] .detail-list-heading p { max-width: 40ch; line-height: 1.8; }
body.service-detail-page[data-site-typography="edition"] .detail-service-list li { gap: 16px; padding: 20px 0; }
body.service-detail-page[data-site-typography="edition"] .detail-service-list span { line-height: 1.8; }

/* The fixed sphere occupies the right side throughout a desktop visit. Keep
   service reading text in the clear left lane, as on Website Design. */
body.service-detail-page[data-site-typography="edition"] .search-content {
  width: min(100%, calc(100vw - clamp(370px, 36vw, 520px) - max(48px, (100vw - 1280px) / 2) - 64px));
  margin: var(--reading-gap) 0;
}
body.pc-hardware-page[data-site-typography="edition"] .search-content {
  width: min(1180px, calc(100vw - clamp(370px, 36vw, 520px) - max(48px, (100vw - 1180px) / 2) - 64px));
  margin: var(--reading-gap) 0 var(--reading-gap) max(48px, (100vw - 1180px) / 2);
}
body[data-site-typography="edition"] .search-content > section + section { margin-top: var(--reading-gap); }
body[data-site-typography="edition"] .search-content :is(p, dd) { line-height: 1.85; }
body[data-site-typography="edition"] .search-content h2 { margin-bottom: 24px; }
body[data-site-typography="edition"] .search-content .search-overview {
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding-top: 32px;
}
body[data-site-typography="edition"] .search-overview p { max-width: var(--reading-measure); }
body[data-site-typography="edition"] .search-overview dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
body[data-site-typography="edition"] .search-overview dl > div { padding: 20px 0 0; border-top: 1px solid var(--search-line); border-bottom: 0; }
body[data-site-typography="edition"] .search-overview dt { margin-bottom: 10px; }
body[data-site-typography="edition"] .search-content .search-scope dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
body[data-site-typography="edition"] .search-scope dl > div {
  display: grid;
  grid-template-columns: minmax(160px, 0.65fr) minmax(0, 1.35fr);
  align-items: start;
  gap: 28px;
  padding: 28px 0;
}
body[data-site-typography="edition"] .search-scope dt { margin-bottom: 0; line-height: 1.5; }
body[data-site-typography="edition"] .search-scope dd { max-width: var(--reading-measure); }
body[data-site-typography="edition"] .search-content .search-process ol { grid-template-columns: minmax(0, 1fr); gap: 0; }
body[data-site-typography="edition"] .search-process li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px 24px; padding: 26px 0; border-top-width: 1px; }
body[data-site-typography="edition"] .search-process li::before { grid-row: 1 / 3; padding-top: 3px; font-variant-numeric: tabular-nums; }
body[data-site-typography="edition"] .search-process h3 { margin: 0; line-height: 1.5; }
body[data-site-typography="edition"] .search-process p { grid-column: 2; max-width: var(--reading-measure); margin: 0; }
body[data-site-typography="edition"] .search-answers { scroll-margin-top: 120px; }
body[data-site-typography="edition"] .search-answers .search-section-heading h2 { margin-bottom: 0; }
body[data-site-typography="edition"] .search-answers summary { align-items: start; gap: 24px; padding: 24px 0; line-height: 1.65; }
body[data-site-typography="edition"] .search-answers summary svg { flex: 0 0 20px; margin-top: 3px; }
body[data-site-typography="edition"] .search-answers details p { max-width: var(--reading-measure); padding-right: 32px; padding-bottom: 28px; line-height: 1.85; }
body[data-site-typography="edition"] .search-related { gap: 16px 28px; }

/* Information pages: confident introduction, then distinct reading bands.
   FAQs and the guide directory use a quiet heading rail, not more cards. */
body.search-page[data-site-typography="edition"] .search-hero { margin-bottom: var(--reading-gap); }
body.search-page[data-site-typography="edition"] .search-hero > p { max-width: var(--reading-measure); line-height: 1.85; }
body.search-page:not(.website-service-page)[data-site-typography="edition"] .search-answers {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: var(--reading-gap);
  margin-top: var(--reading-gap);
}
body.search-page:not(.website-service-page)[data-site-typography="edition"] .search-section-heading { display: block; align-self: start; }
body.search-page:not(.website-service-page)[data-site-typography="edition"] .search-section-heading h2 { margin-bottom: 24px; }
body.search-page[data-site-typography="edition"] .search-faq-nav { padding-bottom: 28px; border-bottom: 1px solid var(--search-line); }
body.search-page[data-site-typography="edition"] .search-service-link { margin-bottom: 56px; text-align: right; }
body.search-page[data-site-typography="edition"] .search-guide-list article { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 20px 64px; padding: 40px 0; }
body.search-page[data-site-typography="edition"] .search-guide-list p { max-width: var(--reading-measure); line-height: 1.85; }
body.search-page[data-site-typography="edition"] .search-guide-body { grid-template-columns: minmax(180px, 230px) minmax(0, 1fr); gap: var(--reading-gap); }
body.search-page[data-site-typography="edition"] .search-guide-body > div { max-width: var(--reading-measure); }
body.search-page[data-site-typography="edition"] .search-guide-contents { padding: 24px 0; border-top: 1px solid var(--search-line); }
body.search-page[data-site-typography="edition"] .search-guide-contents ol { margin: 20px 0 0; padding-left: 20px; }
body.search-page[data-site-typography="edition"] .search-guide-contents li { padding-left: 4px; margin-bottom: 18px; }
body.search-page[data-site-typography="edition"] .search-guide-body section { padding-bottom: 40px; margin-bottom: 48px; }
body.search-page[data-site-typography="edition"] .search-guide-body section h2 { margin-bottom: 20px; line-height: 1.3; }
body.search-page[data-site-typography="edition"] .search-guide-body section p { margin: 0 0 20px; line-height: 1.85; }
body.search-page[data-site-typography="edition"] .search-guide-next { padding-top: 8px; }
body.search-page[data-site-typography="edition"] .search-about { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--reading-gap); }
body.search-page[data-site-typography="edition"] .search-about > div > p { max-width: var(--reading-measure); line-height: 1.85; }
body.search-page[data-site-typography="edition"] .search-company { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; margin-top: 32px; }
body.search-page[data-site-typography="edition"] .search-company > div { padding-top: 20px; border-top: 1px solid var(--search-line); }
body.search-page[data-site-typography="edition"] .search-company dd { margin: 10px 0 0; line-height: 1.8; overflow-wrap: anywhere; }
body.search-page[data-site-typography="edition"] .search-contact-layout { gap: var(--reading-gap); padding-top: 36px; border-top: 1px solid var(--search-line); }
body.search-page[data-site-typography="edition"] .search-contact-copy h2 { margin-bottom: 24px; }
body.search-page[data-site-typography="edition"] .search-contact-copy :is(p, li) { max-width: var(--reading-measure); line-height: 1.85; }
body.search-page[data-site-typography="edition"] .search-contact-copy li { margin-bottom: 16px; }

/* Legal copy already sits beside the fixed sphere. Stacking each section's
   heading over its prose prevents a second narrow column inside that lane. */
body.legal-page[data-site-typography="edition"] .legal-document { max-width: 78ch; }
body.legal-page[data-site-typography="edition"] .legal-section { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: clamp(28px, 3vw, 40px); }
body.legal-page[data-site-typography="edition"] .legal-section-copy { max-width: var(--reading-measure); }
body.legal-page[data-site-typography="edition"] .legal-section :is(p, li) { line-height: 1.85; }
body.legal-page[data-site-typography="edition"] .legal-section p + p,
body.legal-page[data-site-typography="edition"] .legal-section p + ul,
body.legal-page[data-site-typography="edition"] .legal-section ul + p { margin-top: 20px; }

html[lang^="zh"] body[data-site-typography="edition"] :is(.search-content, .search-main, .service-main) :is(p, dd) { line-height: 1.95; }
html[lang^="zh"] body.service-detail-page[data-site-typography="edition"] :is(.detail-copy h2, .detail-list-heading h2) { line-height: 1.45; }
html[lang^="zh"] body.service-detail-page[data-site-typography="edition"] .service-hero h1 { line-height: 1.4; }
html[lang^="zh"] body.search-page[data-site-typography="edition"] .search-guide-body section h2 { line-height: 1.5; }

@media (max-width: 1100px) {
  body.search-page[data-site-typography="edition"] .search-about { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px; }
  body.service-detail-page[data-site-typography="edition"] .detail-card-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  body.service-detail-page[data-site-typography="edition"] .service-main { width: calc(100% - 48px); }
  body.service-detail-page[data-site-typography="edition"] .service-hero { min-height: 0; padding: 56px 32px; }
  body.service-detail-page[data-site-typography="edition"] .service-hero :is(h1, p) { max-width: 100%; }
  body.service-detail-page[data-site-typography="edition"] .search-content { width: 100%; }
  body.pc-hardware-page[data-site-typography="edition"] .search-content { width: calc(100% - 64px); margin: var(--reading-gap) auto; }
  body.service-detail-page[data-site-typography="edition"] .detail-media { min-height: clamp(300px, 62vw, 540px); }
  body.search-page:not(.website-service-page)[data-site-typography="edition"] .search-answers { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  body.search-page:not(.website-service-page)[data-site-typography="edition"] .search-section-heading { display: flex; }
  body.search-page:not(.website-service-page)[data-site-typography="edition"] .search-section-heading h2 { margin-bottom: 0; }
  body.search-page[data-site-typography="edition"] :is(.search-about, .search-guide-body) { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  body.search-page[data-site-typography="edition"] .search-guide-contents { position: static; padding: 24px; border: 1px solid var(--search-line); border-radius: 18px; }
  body.search-page[data-site-typography="edition"] .search-guide-contents li:last-child { margin-bottom: 0; }
}
@media (max-width: 600px) {
  body[data-site-typography="edition"] { --reading-gap: 48px; }
  body.pc-hardware-page[data-site-typography="edition"] .search-content { width: calc(100% - 40px); }
  body.service-detail-page[data-site-typography="edition"] .service-main { width: calc(100% - 32px); padding-top: 104px; }
  body.service-detail-page[data-site-typography="edition"] .service-hero { padding: 36px 24px; }
  body.service-detail-page[data-site-typography="edition"] .service-hero h1 { margin-bottom: 20px; }
  body.service-detail-page[data-site-typography="edition"] .service-tags { gap: 8px; margin-top: 24px; }
  body.service-detail-page[data-site-typography="edition"] .service-gallery { gap: 16px; }
  body.service-detail-page[data-site-typography="edition"] .detail-media { min-height: 300px; }
  body.service-detail-page[data-site-typography="edition"] .detail-copy { padding: 24px 12px 28px; gap: 14px; }
  body.service-detail-page[data-site-typography="edition"] .detail-card-list { padding: 32px 24px; }
  body[data-site-typography="edition"] .search-overview dl { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  body[data-site-typography="edition"] .search-scope dl > div { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 24px 0; }
  body[data-site-typography="edition"] .search-process li { grid-template-columns: 28px minmax(0, 1fr); gap: 8px 16px; padding: 24px 0; }
  body[data-site-typography="edition"] .search-answers summary { gap: 16px; padding: 22px 0; }
  body[data-site-typography="edition"] .search-answers details p { padding-right: 0; }
  body.search-page[data-site-typography="edition"] .search-guide-list article { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 32px 0; }
  body.search-page[data-site-typography="edition"] .search-guide-list article > a { grid-column: auto; }
  body.search-page[data-site-typography="edition"] .search-company { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  body.search-page[data-site-typography="edition"] .search-contact-layout { padding-top: 28px; }
  body.search-page[data-site-typography="edition"] .search-guide-body section { margin-bottom: 36px; padding-bottom: 28px; }
  body.legal-page[data-site-typography="edition"] .legal-section { padding: 28px 24px; }
}
