/* Maylove locked typography, measure, header, footer, and 4:3 slots.
   Extends (does not replace) Customizer Additional CSS. */

/* Body 16/26; content h1 28/36 (override Astra's 30px and 32px title). */
body, button, input, select, textarea,
.entry-content, .entry-content p, .entry-content li,
.ml-case, .ml-case p, .ml-article, .ml-article p {
  font-size: 16px;
  line-height: 26px;
  line-height: 1.625rem;
}

.entry-content h1,
.entry-content h1.wp-block-heading,
.ml-case h1,
.ml-article h1,
.ml-articles h1,
h1.wp-block-heading {
  font-size: 28px !important;
  font-size: 1.75rem !important;
  line-height: 36px !important;
  line-height: 2.25rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  margin: 0 0 1rem;
}

/* 42rem measure for body copy, ledes, and lists — not product grids. */
.entry-content > p,
.entry-content > ul,
.entry-content > ol,
.entry-content > .wp-block-list,
.entry-content > .wp-block-paragraph,
.entry-content .lede,
.entry-content .meta,
.ml-case > p,
.ml-case .lede,
.ml-case .meta,
.ml-case ul,
.ml-case ol,
.ml-article > p,
.ml-article .meta,
.ml-articles .lede,
.ml-articles .list {
  max-width: 42rem;
}

/* Content top gap ~2.25rem */
.ast-plain-container #primary,
.ast-plain-container.ast-no-sidebar #primary,
.site-main, main.site-main {
  margin-top: 0 !important;
  padding-top: 2.25rem;
  padding-bottom: 4rem;
}

/* Hide Astra theme titles so content/template h1 is the only heading. */
.ast-single-post .entry-header,
.page .entry-header,
.single .entry-header,
.single-post .entry-header,
h1.entry-title,
.ast-page-title,
.ast-archive-title,
.ast-archive-description,
header.entry-header,
.entry-header .entry-title {
  display: none !important;
}

/* Header: 56px logo, tighter padding and menu line-height (~not 119px). */
.site-logo-img img,
.custom-logo-link img,
.ast-header-logo img,
.custom-logo {
  height: 56px !important;
  width: auto !important;
  max-width: none !important;
}
.ast-desktop .ast-primary-header-bar.main-header-bar,
.ast-header-break-point #masthead .ast-primary-header-bar.main-header-bar {
  padding-top: 1rem !important;
  padding-bottom: 0.85rem !important;
}
.ast-mobile-header-wrap .ast-primary-header-bar,
.ast-primary-header-bar .site-primary-header-wrap {
  min-height: 0 !important;
}
.ast-desktop:not(:has(.ast-header-sticked)) .ast-primary-header-bar .main-header-menu > .menu-item {
  line-height: 1.4 !important;
}
.main-header-menu > .menu-item > .menu-link,
.ast-builder-menu-1 .menu-item > .menu-link,
#astra-footer-menu > .menu-item > .menu-link {
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  height: auto !important;
  padding-top: 0.15rem !important;
  padding-bottom: 0.15rem !important;
}
.ast-builder-menu a,
.main-header-menu a,
.ast-off-canvas-menu a {
  font-size: 13px;
  font-weight: 500;
}

/* Footer: 880px row centered with the content column; text left-aligned, not centered.
   Do not set justify-content:flex-start on the outer wrap — that pins the row to the viewport edge. */
.site-below-footer-wrap[data-section="section-below-footer-builder"] .ast-builder-grid-row {
  max-width: 880px !important;
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
}
.site-below-footer-wrap .site-footer-section,
.site-footer-below-section-1,
.ast-footer-html-1,
.ast-footer-html-1 .ast-builder-html-element,
.ml-footer,
.ml-footer .company,
.site-footer .company,
.footer-links,
#colophon p {
  text-align: left !important;
  align-items: flex-start !important;
}
.ml-footer {
  max-width: none;
  margin: 0;
  padding: 1.35rem 0 1.75rem;
  color: #5C5954;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  text-align: left !important;
}
.ml-footer .company,
.site-footer .company {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #5C5954;
  font-weight: 500;
  max-width: none;
  text-align: left !important;
}

/* Product / form card grids: uniform 4:3 slots so titles share a baseline.
   height:auto on the img was fighting aspect-ratio; slot the figure instead. */
.entry figure,
.entry .wp-block-image,
.entry .elementor-widget-image .elementor-widget-container,
.entry .elementor-image {
  aspect-ratio: 4 / 3;
  background: #F7F7F5;
  margin: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
}
.entry figure img,
.entry .wp-block-image img,
.entry .elementor-widget-image img,
.entry .elementor-image img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  aspect-ratio: auto;
  object-fit: contain;
  background: #F7F7F5;
}

/* Articles and cases: no sidebar, no author module, no blog cards.
   Do not target footer .widget-area — Astra stores the footer HTML widget there. */
.blog #secondary,
.blog #secondary .widget-area,
.archive #secondary,
.archive #secondary .widget-area,
.single-post #secondary,
.single-post #secondary .widget-area,
.sidebar-main,
#secondary.widget-area,
.ast-author-box,
.ast-single-author,
.ast-author-meta,
.post-author-bio,
.single-post .entry-meta,
.single-post .post-thumb,
.single-post .ast-blog-featured-section,
.blog .ast-article-post .post-thumb,
.comments-area,
#comments {
  display: none !important;
}

@media (max-width: 720px) {
  .site-logo-img img, .custom-logo-link img, .custom-logo { height: 44px !important; }
  .site-main, main.site-main, .ast-plain-container #primary { padding-top: 1.5rem; }
}


/* Stronger header tightening (Astra menu-link vertical padding + 56px line-height was ~119px). */
body.ast-desktop .ast-primary-header-bar.main-header-bar {
  padding-top: 1rem !important;
  padding-bottom: 0.85rem !important;
}
body .ast-primary-header-bar .site-primary-header-wrap,
body .ast-primary-header-bar .ast-builder-grid-row,
body .ast-primary-header-bar .site-header-section {
  min-height: 0 !important;
  height: auto !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
body.ast-desktop .ast-primary-header-bar .main-header-menu > .menu-item,
body.ast-desktop:not(:has(.ast-header-sticked)) .ast-primary-header-bar .main-header-menu > .menu-item {
  line-height: 1.4 !important;
}
body.ast-desktop .main-header-menu > .menu-item > .menu-link,
body.ast-desktop .ast-builder-menu-1 .menu-item > .menu-link,
body.ast-desktop .ast-builder-menu .menu-item > .menu-link {
  height: auto !important;
  min-height: 0 !important;
  line-height: 1.4 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
body .site-branding,
body .ast-site-identity,
body .site-logo-img {
  line-height: 0 !important;
  padding: 0 !important;
}

/* WordPress block gap adds 24px margin-top on 2nd/3rd cards and breaks the shared title baseline. */
.entries > .entry,
.entries > .wp-block-group,
.wp-block-group.entries > .wp-block-group {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
