/* Marco Labs reading sizes. Load after the existing theme and page styles. */
body {
  font-size: 18px;
  line-height: 1.7;
}

/* Include the retained solution pages as well as the rebuilt page layouts. */
#main-content :where(p, li) {
  font-size: 18px;
  line-height: 1.7;
}

#main-content :is(.home-hero .lead, .solution-hero .lead, .hero-bottom > p, .detail-intro, .sme-lead, .sp-hero-lead, .page-lead) {
  font-size: 20px;
  line-height: 1.7;
}

.btn {
  font-size: 16px !important;
  min-height: 48px;
  gap: 16px;
}

.site-header .nav { gap: 22px; }
.site-header .menu { gap: 22px; }
.site-header .menu > a,
.site-header summary,
.site-header .mega-columns a,
.site-header .small-menu a,
.site-header .menu-toggle {
  font-size: 16px;
  line-height: 1.5;
}
.mega-top { font-size: 14px; }
.mega-columns p { font-size: 18px; min-height: 50px; }
.mega-columns small { font-size: 14px; }
.small-menu { width: 290px; }

#main-content :is(.text-link, .feature-links a, .related-links a, .solution-jumps a, .sme-section-nav a, .sme-light-link, .sme-text-link, .industry-card-links a) {
  font-size: 16px;
  line-height: 1.6;
}

/* Secondary labels use a distinct, readable size instead of competing with copy. */
#main-content :is(.eyebrow, .resource-type, .resource-meta, .entry-note, .breadcrumbs, .document-facts, .hero-label > span, .hero-bottom > span, .diagram-label, .row-index, .home-proof, .hero-photo-caption, .results-heading, .sme-eyebrow, .sme-label, .sme-icon, .sme-source, .sme-note, .sme-caveat, .sme-demo-note, .industry-section-label, .industry-card-label, .industry-disclaimer p, .industry-scope-list span, .sp-kicker, .sp-note, .sme-demo-head small, .sme-chat-result small, .document-placeholder span, .document-placeholder small) {
  font-size: 14px !important;
  line-height: 1.6;
}
#main-content :is(.home-proof, .hero-photo-caption) { flex-wrap: wrap; }
#main-content .hero-photo-caption { gap: 8px 20px; letter-spacing: .06em; }
#main-content :is(.delivery-steps > div > span, .process-list > li > span, .topic-list > li > span) {
  font-size: 14px;
}
#main-content .industry-card h3 { font-size: 16px; line-height: 1.5; }
#main-content .industry-scope-list strong { font-size: 18px; }
#main-content .governance-grid h3 { font-size: 20px; }
#main-content .sme-chat-result { font-size: 16px; }
#main-content small,
#main-content :is(.sp-step-num, .bridge-grid span, .big-num, .contact-meta span, .usecase-detailed dt, .usecase-detailed > article > span) {
  font-size: 14px;
  line-height: 1.6;
}
#main-content .sp-deploy-item strong { font-size: 18px; }
#main-content .contact-meta a { font-size: 16px; overflow-wrap: anywhere; }

/* Form controls and their labels remain comfortably readable on all devices. */
#main-content :is(label, legend, input:not([type=checkbox]):not([type=radio]), select, textarea),
#main-content .seo-options summary,
#main-content .password-panel > summary,
#main-content .manager-table {
  font-size: 16px;
  line-height: 1.5;
}
#main-content :is(.form-panel small, .manager-table small, .manager-table th, .status-pill) {
  font-size: 14px;
  line-height: 1.6;
}
#main-content .resource-filters { gap: 20px; }
#main-content .resource-filters :is(input, select) { height: 52px; }
#main-content .resource-filters .btn { min-height: 52px; }
#main-content .field > span { font-size: 16px; }
#main-content .form-actions small a { font-size: inherit; }

.rebuilt-footer h2 { font-size: 16px; }
.rebuilt-footer a:not(.brand) { font-size: 16px; overflow-wrap: anywhere; }
.footer-upper p { font-size: 16px; }
.footer-bottom, .footer-bottom a { font-size: 14px !important; }
.footer-upper { grid-template-columns: 1.25fr .7fr 1.1fr 1.35fr; gap: 32px; }
.footer-upper > div { min-width: 0; }

/* Switch layout before larger navigation labels become crowded. */
@media (min-width: 981px) and (max-width: 1100px) {
  .site-header .nav { gap: 16px; }
  .site-header .menu { gap: 16px; }
  .site-header .nav-cta { min-width: 0; gap: 8px; }
  .site-header .brand-copy strong { font-size: 18px; }
  .mega-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .mega-columns > div + div { border: 0; padding-left: 0; }
  .mega-columns p { min-height: 0; }
  .delivery-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .site-header .menu > a, .site-header summary { padding: 15px 0; }
  .site-header .mega-columns a { padding: 9px 0; }
  .mega-columns p { min-height: 0; }
  .resource-grid, .content-columns, .new-offerings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-upper { grid-template-columns: 1fr 1fr; gap: 30px; }
  .resource-filters { grid-template-columns: 1fr 1fr; }
  .home-proof { display: grid; grid-template-columns: 1fr 1fr; }
  .offering-row { grid-template-columns: 30px 1fr 1.1fr 25px; gap: 22px; }
}

@media (max-width: 640px) {
  #main-content :is(.home-hero .lead, .solution-hero .lead, .hero-bottom > p, .detail-intro, .sme-lead, .sp-hero-lead, .page-lead) {
    font-size: 18px;
  }
  .resource-grid, .content-columns, .new-offerings-grid, .resource-filters { grid-template-columns: 1fr; }
  .offering-row { grid-template-columns: 25px 1fr 22px; gap: 15px; }
  .hero-photo-caption { left: 18px; right: 18px; }
  .footer-upper { grid-template-columns: 1fr; gap: 30px; }
  .footer-upper > div { grid-column: auto !important; }
  .mega-columns p { font-size: 18px; }
}
