/* Shared heading roles: page > section > item. Font sizes are independent of tag names. */
body {
  --title-page: 32px;
  --title-section: 26px;
  --title-item: 18px;
  --title-gap: 28px;
}
body #content section :is(.title-page, .title-account, .title-section, .title-topic, .title-item, .title-feature, .title-client, .title-plan, .title-subsection, .title-minor) {
  margin: 0;
  padding: 0;
  min-height: 0;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
  word-break: normal;
  overflow-wrap: normal;
  text-wrap: pretty;
}
body #content section .title-page { font-size: var(--title-page); line-height: 1.4; letter-spacing: -.4px; }
body #content section .title-section,
body #content .reward-heading .title-section { font-size: var(--title-section); line-height: 1.45; letter-spacing: -.3px; }
body #content section .title-topic { font-size: 22px; line-height: 1.45; padding-top: 16px; }
body #content section .title-item { font-size: var(--title-item); }
body #content section .title-client,
body #content section .title-plan { font-size: 22px; line-height: 1.4; }
body #content section .title-subsection { font-size: 20px; margin-bottom: 16px; }
body #content section .title-minor { font-size: 16px; line-height: 1.5; }
body #content .benefit-grid .title-feature { font-size: var(--title-item); line-height: 1.5; margin: 12px 0 0; min-height: 0; letter-spacing: 0; }
body #content .site-page-head { padding-top: 28px; }
body #content .site-page-head .crumbs { margin-bottom: 12px; }
body #content .site-page-head .title-page + p {
  margin: 8px 0 0;
  max-width: 760px;
  color: var(--sub);
  font-size: 16px;
  line-height: 1.8;
}

/* Space the complete heading group, including the following introduction/grid. */
body #content :is(.v9-heading, .help-section-heading, .line-heading) { margin-bottom: var(--title-gap); }
body #content :is(.title-section, .title-topic) + p { margin-top: 12px; }
body #content :is(.title-item, .title-feature, .title-subsection, .title-client) + p { margin-top: 8px; }
body #content .chapter > .wrap:not(.faq-columns) > .title-section + :not(p) { margin-top: var(--title-gap); }
body.site-home #content :is(.scene-grid, .common-benefits, .device-grid, .reward-grid) { margin-top: var(--title-gap); }
body.site-home #content .device-title > p { margin-top: 12px; }
body #content .line-heading + .line-card-grid { margin-top: 0; }
body #content .windows-client-story { margin-top: var(--title-gap); }
body #content .platform-next .title-section + p { margin-top: 12px; }
body #content .product-mode-grid .mode-heading .title-item { margin: 0; }
body #content .windows-mode-options .title-item { margin-bottom: 6px; }
body #content .android-use-group > .title-item { margin: 0; }
body #content .outline-step-body .title-item { margin: 0; }

/* Home hero remains the page's primary heading, at a calmer scale. */
body.site-home #content .hero .title-hero { margin: 0; padding: 0; font-size: 48px; line-height: 1.3; letter-spacing: -1px; }
body.site-home #content .hero-copy .label { margin-bottom: 20px; }
body.site-home #content .hero-summary { margin-top: 20px; }

@media (max-width: 600px) {
  body { --title-page: 26px; --title-section: 22px; --title-item: 17px; --title-gap: 20px; }
  body #content .site-page-head { padding-top: 20px; }
  body #content .site-page-head .crumbs { margin-bottom: 10px; }
  body #content section .title-topic { font-size: 20px; padding-top: 0; }
  body #content section .title-client { font-size: 20px; }
  body #content section .title-plan { font-size: 18px; }
  body #content section .title-subsection { font-size: 18px; margin-bottom: 12px; }
  body.site-home #content .hero .title-hero { font-size: 32px; letter-spacing: -.6px; line-height: 1.3; }
  body.site-home #content .hero-copy .label { margin-bottom: 8px; }
  body.site-home #content .hero-summary { margin-top: 10px; }
}
/* At 320px the longest feature names need two lines; keep same-row copy aligned. */
@media (max-width: 360px) {
  body { --title-section: 20px; }
  body #content .benefit-grid .title-feature { min-height: 51px; }
}
