/* ---------------------------------------------------------------------------
   MedOfficeAssist - overrides for WordPress / Twenty Twenty-Five defaults that
   the original stylesheet does not declare and therefore cannot override.
   Order matters: reset first, then re-assert the original's own values.
   --------------------------------------------------------------------------- */

/* 1. WP wraps template parts in an extra <header>/<footer>; that wrapper becomes
      the containing block for position:sticky and would unstick .site-header. */
header.wp-block-template-part,
footer.wp-block-template-part { display: contents; }

/* 2. TT5 sets font-weight:300 + preset size/line-height/letter-spacing on body. */
body {
  font-size: 1rem; font-weight: 400; line-height: normal; letter-spacing: normal;
  --wp--style--root--padding-top: 0; --wp--style--root--padding-right: 0;
  --wp--style--root--padding-bottom: 0; --wp--style--root--padding-left: 0;
}

/* 3. TT5 sets h1..h6{font-weight:400}; the original declares weights for h1/h2
      only, so every <h3> lost its default bold. h1/h2 letter-spacing comes from
      `h1,h2{letter-spacing:-.055em}` in the original - do NOT touch it. */
h3 { font-weight: bold; line-height: normal; }
h4, h5, h6 { font-weight: bold; line-height: normal; letter-spacing: normal; text-transform: none; }
h4 { font-size: 1em; } h5 { font-size: 0.83em; } h6 { font-size: 0.67em; }

/* 4. WP injects `margin-block-start:1.2rem` on every non-first child of
      .is-layout-flow / .is-layout-constrained, at a specificity the original
      element selectors cannot beat. Strip it everywhere... */
:root .is-layout-flow > *,
:root .is-layout-constrained > *,
:root .wp-block-group-is-layout-flow > *,
:root .wp-block-group-is-layout-constrained > * { margin-block-start: 0; margin-block-end: 0; }

/* 5. ...then re-assert every margin the ORIGINAL stylesheet declares, at a
      specificity that wins over the reset above. Generated from styles.css. */
:root:root .container{margin:auto}
:root:root .section-intro{margin-bottom:46px}
:root:root .section-intro.center p{margin:auto}
:root:root .hero-copy .eyebrow{margin-bottom:22px}
:root:root .hero-copy .subhead{margin-top:25px}
:root:root .call-row-content strong{margin-bottom:4px}
:root:root .floating-note small{margin-top:4px}
:root:root .feature-card h3{margin-bottom:9px}
:root:root .speaker{margin-bottom:6px}
:root:root .workspace-nav-item{margin-bottom:5px}
:root:root .specialty .symbol{margin-bottom:28px}
:root:root .check-list{margin:25px 0}
:root:root .cta-panel p{margin-top:14px}
:root:root .footer-brand p{margin-top:18px}
:root:root .platform-hero .subhead{margin-top:26px}
:root:root .platform-pillar h3{margin:14px 0 9px}
:root:root .capability b{margin:10px 0 6px}
:root:root .journey-step .num{margin-bottom:26px}
:root:root .subtle-rule{margin:18px 0}
:root:root .mt-20{margin-top:20px}
:root:root /* Publication details and website privacy notice */
.site-footer .product-company{margin-top:7px}
:root:root .privacy-page .privacy-heading{margin-bottom:40px}
:root:root .privacy-page .privacy-heading h1{margin:15px 0 18px}
:root:root .privacy-page .privacy-article section+section{margin-top:29px}
:root:root .privacy-page .privacy-article h2{margin-bottom:10px}
:root:root .privacy-page .privacy-article ul{margin:12px 0 0}
:root:root .site-footer .footer-origin{margin-top:12px}
:root:root .about-copy h1{margin-top:24px}
:root:root .founder-role{margin-bottom:8px}
:root:root .legal-hero h1{margin:22px 0 20px}
:root:root .legal-meta{margin-top:30px}
:root:root .terms-sidebar p{margin:0 0 14px 12px}
:root:root .legal-article .legal-notice{margin-bottom:35px}
:root:root .legal-notice p{margin-top:6px}
:root:root .legal-contact h3{margin-bottom:7px}
:root:root .legal-article h2{margin:0 0 11px}
:root:root .phase-copy h1{margin-top:24px}
:root:root .phase-trust{margin-top:21px}
:root:root .comparison-side h3{margin:18px 0 20px}
:root:root .resource-article p:last-child{margin-bottom:0}
:root:root .resource-article ol{margin:0}
:root:root .checklist-grid ul{margin:0}
:root:root .sample-thread{margin:0 auto}
:root:root .sample-thread>div{margin-bottom:13px}
:root:root .related-journey{margin-top:45px}
@media(max-width:760px){
  :root:root .mobile-nav .btn{margin-top:15px}
  :root:root .footer-bottom{margin-top:42px}
  :root:root .platform-visual{margin-top:40px}
}
@media(max-width:850px){
  :root:root .phase-art{margin:auto}
}
