/* Consistent reading frame. No content, heading, navigation or SEO changes. */
html[data-m1988-readable] {
  --m1988-reading-width: 1160px;
  --m1988-reading-gutter: clamp(20px, 4vw, 48px);
  --m1988-reading-edge: max(var(--m1988-reading-gutter), calc((100% - var(--m1988-reading-width)) / 2));
}
/* Full-width backgrounds retain one shared, balanced content frame. */
html[data-m1988-readable] body :is(.section, .sr-section, .hero, section.hero-profile, .mission, .timeline, .founder, .achievements, .cta-banner, .cta-section, .site-footer, .footer-profile, .sr-footer, .metrics-bar) {
  padding-inline: var(--m1988-reading-edge) !important;
}
html[data-m1988-readable] body :is(.section-narrow, .sr-inner, .container, .hero-inner, .metrics-inner, .footer-grid) {
  width: 100%; max-width: var(--m1988-reading-width) !important;
  margin-inline: auto !important; min-width: 0; box-sizing: border-box;
}
/* Text stays aligned to a predictable reading edge within its layout. */
html[data-m1988-readable] body :is(.hero-sub, .lead, .sr-intro, .blog-sub, .contact-desc, .bento-desc, .p-desc, .ai-local-card p, .ai-local-note, .qs-relevance-section p, .sr-card p, .sr-video-card > p, .sr-native-answer, .sr-faq details > p, .faq-a, .doc-section p) {
  text-align: start !important;
  line-height: 1.75 !important;
  word-break: normal; overflow-wrap: break-word;
  text-wrap: pretty;
}
html[data-m1988-readable] body :is(.hero-sub, .hero-content > .lead) {
  max-width: 65ch; margin-inline: auto;
}
/* Articles: eliminate repeated outer padding, preserve the existing TOC. */
html[data-m1988-readable] body .s-layout {
  width: calc(100% - 2 * var(--m1988-reading-gutter));
  max-width: 1048px;
  margin-inline: auto; padding-inline: 0;
  grid-template-columns: minmax(0, 1fr) 240px; gap: 48px;
}
html[data-m1988-readable] body :is(.s-content, .s-sidebar) { min-width: 0; }
html[data-m1988-readable] body :is(.s-hero, .s-related, .blog-wrap) {
  width: calc(100% - 2 * var(--m1988-reading-gutter));
  max-width: var(--m1988-reading-width);
  margin-inline: auto; padding-inline: 0;
}
html[data-m1988-readable] body .s-content :is(p, li) {
  text-align: start; line-height: 1.85; overflow-wrap: break-word;
}
html[data-m1988-readable] body .s-content .m88-editorial {
  max-width: 100%; margin: 24px 0;
  padding: clamp(20px, 3vw, 32px);
}
html[data-m1988-readable] body .doc-body {
  width: calc(100% - 2 * var(--m1988-reading-gutter));
  max-width: 840px; margin-inline: auto; padding-inline: 0;
}
html[data-m1988-readable] body .doc-section :is(p, li) { font-size: 17px; line-height: 1.85 !important; }
@media (max-width: 1024px) {
  html[data-m1988-readable] body .s-layout { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 760px; }
}
@media (max-width: 600px) {
  html[data-m1988-readable] { --m1988-reading-gutter: 20px; }
  html[data-m1988-readable] body :is(.hero-sub, .lead, .sr-intro, .sr-card p, .sr-native-answer, .sr-faq details > p, .faq-a, .doc-section p) { font-size: 16px !important; }
  html[data-m1988-readable] body .s-content .m88-editorial { padding: 18px 16px; border-radius: 12px; }
  html[data-m1988-readable] body .s-content p { font-size: 17px; }
  html[data-m1988-readable] body .doc-section li { font-size: 16px; }
}

/* The profile template reused its section class on H1; restore a text box. */
html[data-m1988-readable] body h1.hero-profile {
  display: block; min-height: 0; padding: 0 !important;
  position: static; overflow: visible; max-width: 100%;
}
html[data-m1988-readable] body .hero-inner-profile {
  max-width: var(--m1988-reading-width); grid-template-columns: repeat(2, minmax(0, 1fr));
}
html[data-m1988-readable] body .hero-inner-profile > * { min-width: 0; }
html[data-m1988-readable] body .hero-company-tag { max-width: 100%; white-space: normal; }
@media (max-width: 1024px) {
  html[data-m1988-readable] body .hero-inner-profile { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  html[data-m1988-readable] body .nav-profile { padding-inline: 20px; gap: 12px; }
  html[data-m1988-readable] body .nav-cta-profile .nav-tel { display: none; }
  html[data-m1988-readable] body .nav-cta-profile .btn-primary { white-space: nowrap; padding: 10px 12px !important; }
}

/* Shared pricing cards must shrink with the available mobile column. */
@media (max-width: 1024px) {
  html[data-m1988-readable] body .pricing-grid { grid-template-columns: minmax(0, 1fr) !important; }
  html[data-m1988-readable] body .pricing-grid > .p-card {
    min-width: 0; width: 100%; padding: clamp(20px, 5vw, 32px); box-sizing: border-box;
  }
  html[data-m1988-readable] body .p-price-main { font-size: clamp(32px, 9vw, 40px); letter-spacing: -1px; }
  html[data-m1988-readable] body :is(.p-name, .p-qty-tag, .p-feats li) { overflow-wrap: break-word; }
}

@media (max-width: 1024px) {
  html[data-m1988-readable] body .pricing-grid > .p-card.feat,
  html[data-m1988-readable] body .pricing-grid > .p-card.feat:hover { transform: none !important; }
}
