/*
 * TRI-MAN v1.5.4: screenshot-based visual regression adjustment.
 * Source comparisons: original-home / original-about statistics,
 * original-menu-and-header, original-bottom-and-footer (Nov 2026).
 * PRESENTATION ONLY: all copy, numbers, photographs, icons, links,
 * forms, footer columns, logos and page blocks remain in Alfa Builder.
 * No template-generated icons or text; editor choices remain meaningful.
 * The 1170px Template Style width is never replaced with a fixed wider width.
 */

/* 1. Inner header: original solid header is ~140px high on desktop,
   not the current ~183px. Keep the Builder header/navigation intact. */
@media (min-width:1021px) {
  body.triman-inner #sp-header.trm-wy-header {
    height:140px!important;
    min-height:140px!important;
    border-top:0!important;
    box-sizing:border-box!important;
  }
  body.triman-inner #sp-header .trm-wy-global-header,
  body.triman-inner #sp-header .trm-wy-global-header > .tb-container,
  body.triman-inner #sp-header .tb-section,
  body.triman-inner #sp-header .tb-container {
    min-height:0!important;
    padding-top:0!important;
    padding-bottom:0!important;
  }
  body.triman-inner #sp-header .tb-row {
    min-height:140px!important;
    height:140px!important;
    max-height:140px!important;
    box-sizing:border-box!important;
    gap:12px!important;
    margin-bottom:0!important;
    padding-block:0!important;
  }
  body.triman-inner #sp-header .trm-wy-header-links .tb-button {
    height:140px!important;
    min-height:140px!important;
    max-height:140px!important;
    box-sizing:border-box!important;
    padding-block:0!important;
    padding-inline:clamp(10px,1vw,19px)!important;
    font-family:'Open Sans',Arial,sans-serif;
    font-size:clamp(14px,.96vw,18px)!important;
    font-weight:400!important;
    line-height:1.2!important;
  }
  body.triman-inner #sp-header .trm-wy-header-brand {
    flex:0 0 auto!important;
    min-width:90px!important;
    max-width:115px!important;
  }
  body.triman-inner #sp-header .trm-wy-header-brand img,
  body.triman-inner #sp-header .trm-wy-header-brand .tb-image img {
    width:82px!important;
    max-width:82px!important;
    max-height:52px!important;
  }
  body.triman-inner #sp-header .trm-wy-header-links {
    margin-left:auto!important;
    flex:0 1 auto!important;
    justify-content:flex-end!important;
  }
  /* Sticky header remains compact so it does not obscure editable content. */
  body.triman-inner #sp-header.trm-wy-header.is-sticky {height:74px!important;min-height:74px!important;}
  body.triman-inner #sp-header.is-sticky .tb-row {height:74px!important;min-height:74px!important;max-height:74px!important;}
  body.triman-inner #sp-header.is-sticky .trm-wy-header-links .tb-button {
    height:74px!important;min-height:74px!important;max-height:74px!important;
  }
  /* The intended active tab is one uninterrupted column of blue. */
  body.triman-inner #sp-header .trm-wy-header-links .tb-button.is-current {background:#145da6!important;color:#fff!important;}
}

/* Preserve original blue home symbol without adding a second glyph. */
body.triman-inner .trm-wy-header .trm-wy-nav-home .tb-button::before {
  width:22px!important;
  height:22px!important;
  background-color:#0b4b86;
}

/* 2. Shared section-width safeguard. Full-width diagonals and backgrounds
   continue across the viewport; all Builder content honors the style option. */
body.triman-wysiwyg .trm-wy-main .tragbuilder-page .tb-container,
body.triman-wysiwyg #sp-header .tb-container,
body.triman-wysiwyg #sp-footer .tb-container {
  max-width:var(--triman-container,1170px)!important;
}

/* 3. HOME STATS: lighter ~45px centered title, generous icon circles,
   centered counts and labels, 4 tall cards, like original-homer.jpeg. */
@media(min-width:1021px) {
  body.triman-home .trm-wy-main .trm-wy-home-stats {
    padding-top:48px!important;
    padding-bottom:48px!important;
  }
}
body.triman-home .trm-wy-home-stats .trm-wy-section-heading {
  text-align:center!important;
  margin-bottom:30px!important;
}
body.triman-home .trm-wy-home-stats .trm-wy-section-heading .tb-heading {
  font-family:'Raleway','Open Sans',Arial,sans-serif;
  font-size:clamp(28px,2.4vw,45px)!important;
  line-height:1.25!important;
  font-weight:400!important;
  letter-spacing:0!important;
  text-align:center!important;
  margin:0 0 12px!important;
}
body.triman-home .trm-wy-home-stats .trm-wy-section-heading .tb-text {
  font-size:clamp(13px,1vw,18px)!important;
  font-weight:300!important;
  font-style:italic!important;
  text-align:center!important;
  margin:0!important;
}
body.triman-home .trm-wy-home-stats .tb-row:not(.trm-wy-section-heading) {
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:28px!important;
  align-items:stretch!important;
}
body.triman-home .trm-wy-home-stats .trm-wy-home-stat {
  min-height:290px!important;
  box-sizing:border-box!important;
  padding:28px 12px 32px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  background:#fff!important;
  border-radius:4px;
  text-align:center!important;
}
body.triman-home .trm-wy-home-stats .trm-wy-home-stat .trm-wy-stat-icon .tb-heading {
  box-sizing:border-box!important;
  width:91px!important;
  height:91px!important;
  min-width:91px!important;
  min-height:91px!important;
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  line-height:1!important;
  font-size:46px!important;
  border:2px solid #1769aa!important;
  border-radius:50%!important;
  margin:0 auto 14px!important;
  padding:0!important;
  color:#1563aa!important;
  font-weight:400!important;
}
body.triman-home .trm-wy-home-stats .trm-wy-home-stat .tb-heading,
body.triman-home .trm-wy-home-stats .trm-wy-home-stat .tb-text {
  text-align:center!important;
}
body.triman-home .trm-wy-home-stats .trm-wy-home-stat > .tb-addon .tb-heading,
body.triman-home .trm-wy-home-stats .trm-wy-home-stat .tb-heading:not(.trm-wy-stat-icon .tb-heading) {
  font-size:clamp(30px,2.2vw,42px)!important;
  font-weight:400!important;
  line-height:1.18!important;
  color:#1765a8!important;
  margin:0 auto 19px!important;
}
body.triman-home .trm-wy-home-stats .trm-wy-home-stat .tb-text {
  font-size:clamp(13px,1vw,18px)!important;
  line-height:1.45!important;
  font-weight:400!important;
  color:#333!important;
}
/* The icon above each number is stored in the respective Builder addon.
   Do not force an icon name by nth-child: that would break WYSIWYG editing. */

/* 4. ABOUT STATS intentionally differ from Home in the original:
   bold centered heading, larger circles and cards, even spacing. */
@media(min-width:1021px) {
  body.triman-inner .tragbuilder-page.triman-alfa-designed .trm-alfa-stats {
    padding-top:30px!important;
    padding-bottom:65px!important;
  }
}
body.triman-inner .tragbuilder-page.triman-alfa-designed .trm-alfa-stats .trm-section-heading {
  text-align:center!important;
  margin-bottom:42px!important;
}
body.triman-inner .tragbuilder-page.triman-alfa-designed .trm-alfa-stats .trm-section-heading .tb-heading {
  font-family:'Raleway','Open Sans',Arial,sans-serif;
  font-size:clamp(29px,2.55vw,46px)!important;
  font-weight:650!important;
  line-height:1.2!important;
  text-align:center!important;
  color:#0f61ab!important;
  margin-bottom:13px!important;
  letter-spacing:0!important;
}
body.triman-inner .tragbuilder-page.triman-alfa-designed .trm-alfa-stats .trm-section-heading .tb-text {
  text-align:center!important;
  font-size:clamp(13px,1vw,18px)!important;
  font-style:italic!important;
  color:#888!important;
}
body.triman-inner .tragbuilder-page.triman-alfa-designed .trm-alfa-stats .tb-row:not(.trm-section-heading) {
  width:97%!important;
  margin-inline:auto!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:29px!important;
  align-items:stretch!important;
}
body.triman-inner .tragbuilder-page.triman-alfa-designed .trm-alfa-stats .trm-stat-card {
  min-height:286px!important;
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  padding:30px 12px 28px!important;
  background:#fff!important;
  border-radius:4px;
  text-align:center!important;
}
body.triman-inner .tragbuilder-page.triman-alfa-designed .trm-alfa-stats .trm-stat-card .trm-stat-icon {
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:91px!important;
  height:91px!important;
  min-width:91px!important;
  min-height:91px!important;
  line-height:1!important;
  padding:0!important;
  border:2px solid #1769aa!important;
  border-radius:50%!important;
  margin:0 auto 13px!important;
  font-size:42px!important;
  font-weight:400!important;
  color:#1563aa!important;
}
body.triman-inner .tragbuilder-page.triman-alfa-designed .trm-alfa-stats .trm-stat-card .tb-heading {
  font-size:clamp(30px,2.2vw,43px)!important;
  line-height:1.2!important;
  font-weight:400!important;
  margin:0 auto 20px!important;
  text-align:center!important;
  color:#1765a8!important;
}
body.triman-inner .tragbuilder-page.triman-alfa-designed .trm-alfa-stats .trm-stat-card .tb-text:not(.trm-stat-icon) {
  font-size:clamp(13px,1vw,18px)!important;
  font-weight:400!important;
  line-height:1.4!important;
  text-align:center!important;
  color:#333!important;
}

/* 5. Home quote CTA: original has ONE horizontal line at desktop,
   with the Builder's editable message + phone button; no bogus club glyph. */
@media(min-width:1021px) {
  body.triman-home .trm-wy-main .trm-wy-home-quote {
    min-height:112px!important;
    box-sizing:border-box!important;
    padding:14px 0!important;
    display:flex!important;
    align-items:center!important;
  }
  body.triman-home .trm-wy-home-quote .tb-container {width:min(calc(100% - 50px),var(--triman-container,1170px))!important;}
  body.triman-home .trm-wy-home-quote .tb-row,
  body.triman-home .trm-wy-home-quote .tb-col {
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:center!important;
    column-gap:36px!important;
    row-gap:0!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
  }
  body.triman-home .trm-wy-home-quote .tb-col {width:auto!important;flex:0 1 auto!important;}
  body.triman-home .trm-wy-home-quote .tb-addon,
  body.triman-home .trm-wy-home-quote .tb-button-wrap {margin:0!important;}
  body.triman-home .trm-wy-home-quote .tb-heading,
  body.triman-home .trm-wy-home-quote .tb-button {
    font-size:clamp(22px,1.8vw,33px)!important;
    font-weight:300!important;
    line-height:1.25!important;
    white-space:nowrap!important;
    padding-block:0!important;
    margin:0!important;
  }
}
/* Remove v1.5.2 accidental playing-card/club character. The telephone
   graphic should be selected in the editable Builder icon addon. */
body.triman-home .trm-wy-home-quote .trm-wy-phone-link::before {
  content:none!important;
  display:none!important;
}

/* 6. Shared footer: 3 balanced columns + more accurate original typography.
   Keep Builder-provided images/URLs, legal text and social links intact. */
@media(min-width:1021px) {
  body.triman-wysiwyg #sp-footer.trm-wy-footer {
    padding-top:88px!important;
    padding-bottom:28px!important;
  }
  body.triman-wysiwyg #sp-footer .trm-wy-global-footer .tb-row {
    grid-template-columns:minmax(0,1fr) minmax(0,1.12fr) minmax(0,1fr)!important;
    gap:26px!important;
    align-items:start!important;
  }
  body.triman-wysiwyg #sp-footer .trm-wy-global-footer .tb-col {
    padding-left:26px!important;
    padding-right:26px!important;
  }
}
body.triman-wysiwyg #sp-footer .trm-wy-global-footer .tb-heading {
  font-family:'Raleway','Open Sans',Arial,sans-serif;
  font-size:clamp(21px,1.5vw,28px)!important;
  font-weight:400!important;
  line-height:1.25!important;
  margin-bottom:24px!important;
}
body.triman-wysiwyg #sp-footer .trm-wy-global-footer .trm-wy-footer-link .tb-button {
  font-family:'Open Sans',Arial,sans-serif;
  font-size:clamp(13px,.9vw,16px)!important;
  line-height:1.5!important;
  padding-block:7px!important;
}
body.triman-wysiwyg #sp-footer .trm-wy-footer-center .tb-image img {
  width:165px!important;
  max-width:165px!important;
  height:auto!important;
  margin:0 auto 17px!important;
}
body.triman-wysiwyg #sp-footer .trm-wy-footer-center .tb-text,
body.triman-wysiwyg #sp-footer .trm-wy-footer-center .tb-text p {
  font-size:clamp(13px,.9vw,16px)!important;
  line-height:1.65!important;
  font-weight:400!important;
  text-align:center!important;
}
body.triman-wysiwyg #sp-footer .trm-wy-footer-contact .tb-text,
body.triman-wysiwyg #sp-footer .trm-wy-footer-contact .tb-button {
  font-size:clamp(13px,.9vw,16px)!important;
  line-height:1.8!important;
}
body.triman-wysiwyg #sp-footer .trm-wy-copyright {padding-top:70px!important;}
body.triman-wysiwyg #sp-footer .trm-wy-copyright .tb-text {
  font-size:13px!important;
  font-family:Georgia,'Times New Roman',serif;
}

/* 7. Don't sacrifice tablet/mobile layout to match desktop screenshots. */
@media (min-width:651px) and (max-width:1020px) {
  body.triman-home .trm-wy-home-stats .tb-row:not(.trm-wy-section-heading),
  body.triman-inner .tragbuilder-page.triman-alfa-designed .trm-alfa-stats .tb-row:not(.trm-section-heading) {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:18px!important;
    width:100%!important;
  }
}
@media(max-width:650px) {
  body.triman-home .trm-wy-home-stats .tb-row:not(.trm-wy-section-heading),
  body.triman-inner .tragbuilder-page.triman-alfa-designed .trm-alfa-stats .tb-row:not(.trm-section-heading) {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    width:100%!important;
    gap:12px!important;
  }
  body.triman-home .trm-wy-home-stats .trm-wy-home-stat,
  body.triman-inner .tragbuilder-page.triman-alfa-designed .trm-alfa-stats .trm-stat-card {
    min-height:218px!important;
    padding:18px 7px 18px!important;
  }
  body.triman-home .trm-wy-home-stats .trm-wy-home-stat .trm-wy-stat-icon .tb-heading,
  body.triman-inner .tragbuilder-page.triman-alfa-designed .trm-alfa-stats .trm-stat-card .trm-stat-icon {
    width:66px!important;height:66px!important;min-height:66px!important;min-width:66px!important;
    font-size:28px!important;
  }
  body.triman-home .trm-wy-home-stats .trm-wy-home-stat .tb-heading:not(.trm-wy-stat-icon .tb-heading),
  body.triman-inner .tragbuilder-page.triman-alfa-designed .trm-alfa-stats .trm-stat-card .tb-heading {
    font-size:26px!important;
  }
  body.triman-home .trm-wy-home-stats .trm-wy-home-stat .tb-text,
  body.triman-inner .tragbuilder-page.triman-alfa-designed .trm-alfa-stats .trm-stat-card .tb-text {
    font-size:12px!important;
    line-height:1.4!important;
  }
  body.triman-wysiwyg #sp-footer .trm-wy-global-footer .tb-col {
    padding:0!important;
    border-left:0!important;
  }
  body.triman-home .trm-wy-home-quote .tb-row,
  body.triman-home .trm-wy-home-quote .tb-col {
    display:flex!important;flex-direction:column!important;gap:10px!important;
    align-items:center!important;justify-content:center!important;
  }
  body.triman-home .trm-wy-home-quote .tb-heading,
  body.triman-home .trm-wy-home-quote .tb-button {
    font-size:21px!important;white-space:normal!important;
  }
}
