/* Shared page edges for headings, grids, images, navigation and footer. */
:root {
  --hlp-page-gutter: clamp(20px, 4vw, 60px);
  --hlp-content-width: 1296px;
}

.site-main > .section-gap-x,
.tj-footer-section.section-gap-x,
.header-area.header-1.section-gap-x {
  margin-inline: 0;
}

.site-main .container,
.tj-footer-section .container,
.header-area.header-1 > .container-fluid,
.tj-banner-section .banner-area {
  width: calc(100% - var(--hlp-page-gutter) * 2);
  max-width: var(--hlp-content-width);
  margin-inline: auto;
  padding-inline: 0;
}

/* Rows cancel their own column gutters, including the footer's wider gaps. */
.site-main .container > .row,
.tj-footer-section .container > .row {
  margin-inline: calc(-0.5 * var(--bs-gutter-x));
}

.header-area.header-1.header-absolute,
.header-area.header-1.header-sticky {
  width: 100%;
  inset-inline: 0;
}

.header-area.header-1 .header-wrapper {
  padding-inline: 0;
}

/* A clear, proportionate wordmark with consistent desktop and sticky sizing. */
.header-area.header-1 {
  border-radius: 0;
  box-shadow: 0 1px 0 rgba(12, 52, 53, 0.08);
}

.header-area.header-1 .header-wrapper {
  min-height: 90px;
  flex-wrap: nowrap;
  gap: 28px;
  padding-block: 8px;
}

.header-area.header-1 .site_logo {
  flex: 0 0 auto;
}

.header-area.header-1 .site_logo .logo,
.hamburger-area .hamburger_logo .mobile_logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  /* Exclude the HD asset's extra transparent lower margin from header sizing. */
  aspect-ratio: 3 / 1;
  overflow: hidden;
  max-width: none;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  line-height: 0;
}

.header-area.header-1 .site_logo .logo img,
.hamburger-area .hamburger_logo .mobile_logo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  align-self: flex-start;
  filter: none;
  box-shadow: none;
}

.header-area.header-1 .mainmenu > ul {
  flex-wrap: nowrap;
  column-gap: clamp(18px, 2.2vw, 30px);
}

.header-area.header-1 .mainmenu > ul > li > a {
  padding-block: 29px;
  white-space: nowrap;
}

.header-area.header-1 .logo:focus-visible,
.hamburger-area .mobile_logo:focus-visible {
  outline: 3px solid #00a19b;
  outline-offset: 4px;
}

@media (max-width: 991px) {
  .header-area.header-1 .header-wrapper {
    min-height: 80px;
    padding-block: 8px;
    gap: 16px;
  }

  .header-area.header-1 .site_logo .logo,
  .hamburger-area .hamburger_logo .mobile_logo {
    width: 184px;
    padding: 0;
  }

  .header-area.header-1 .mobile_menu_bar {
    flex: 0 0 auto;
  }
}

/*
 * The theme's CTA card (main.css .tj-cta-section) carries a large negative
 * margin-bottom (-195px, deeper on smaller screens) so it bleeds into a much
 * taller footer top-padding the demo footer used to have. Every page now
 * places the CTA as its own section directly above the footer, and this
 * site's footer keeps a shorter top-padding (hlp-footer.css), so that bleed
 * would drag the card down over the footer's real content. Cancel it; the
 * CTA is now a band like any other and hlp-sections.css gives it the same
 * top and bottom padding as its neighbours, which supplies the gap.
 */
.site-main > .tj-cta-section {
  margin-bottom: 0;
}

/* The split hero follows the same content edges as the sections below it. */
.site-main > .tj-banner-section {
  background-color: var(--tj-color-theme-dark);
  overflow: hidden;
}

/* Extend the hero photograph through the right page gutter. */
.tj-banner-section .banner-right-box .banner-img {
  width: calc(100% + max(var(--hlp-page-gutter), (100vw - var(--hlp-content-width)) / 2));
  border-radius: 0;
}

.tj-banner-section .banner-right-box .banner-img img {
  border-radius: 0;
}

.tj-banner-section .banner-left-box {
  padding-inline: 0;
}

.tj-banner-section .banner-content {
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
}

.tj-banner-section .banner-scroll {
  inset-inline-start: max(var(--hlp-page-gutter), calc((100% - var(--hlp-content-width)) / 2));
}
