/*
 * Compatibility boundary for NewMain2-2026.master.
 *
 * The legacy page-body stylesheet intentionally loads after the normal 2026
 * stylesheet. These shell-only rules restore properties that legacy global
 * selectors otherwise change. Nothing below targets .legacy-newmain2-content.
 */
.announcement-bar,
.announcement-bar *,
.site-header.site-header--two-row,
.site-header.site-header--two-row *,
.site-footer,
.site-footer *,
.pdf-modal,
.pdf-modal * {
  box-sizing: border-box;
}

.announcement-bar,
.site-header.site-header--two-row,
.site-footer,
.pdf-modal {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.site-header.site-header--two-row {
  position: relative;
  top: auto;
  left: auto;
  z-index: 100;
  width: 100%;
  padding: 14px 0;
  background: #fff;
  border-bottom: 1px solid #f1f1f1;
}

/*
 * Bootstrap 3's legacy container clearfix pseudo-elements become grid items
 * inside the 2026 header and displace the logo/nav/account columns.
 */
.site-header.site-header--two-row .header-grid::before,
.site-header.site-header--two-row .header-grid::after {
  content: none;
  display: none;
}

.site-footer {
    width: 100%;
    padding: 60px 0 0;
    background: #fff;
    color: #0f1e3d;
    line-height: normal;
    border-top: 1px solid #e5e7eb;
}

/* Restore Bootstrap 5 container widths inside the shared shell only. */
.announcement-bar > .container,
.site-header.site-header--two-row > .container,
.site-footer > .container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 12px;
  padding-left: 12px;
}

@media (min-width: 576px) {
  .announcement-bar > .container,
  .site-header.site-header--two-row > .container,
  .site-footer > .container { max-width: 540px; }
}

@media (min-width: 768px) {
  .announcement-bar > .container,
  .site-header.site-header--two-row > .container,
  .site-footer > .container { max-width: 720px; }
}

@media (min-width: 992px) {
  .announcement-bar > .container,
  .site-header.site-header--two-row > .container,
  .site-footer > .container { max-width: 960px; }
}

@media (min-width: 1200px) {
  .announcement-bar > .container,
  .site-header.site-header--two-row > .container,
  .site-footer > .container { max-width: 1140px; }
}

@media (min-width: 1400px) {
  .announcement-bar > .container,
  .site-header.site-header--two-row > .container,
  .site-footer > .container { max-width: 1320px; }
}

/* Bootstrap 3's later .row rule removes the 2026 footer flex layout. */
.site-footer > .container > .row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -12px;
  margin-left: -12px;
}

.site-footer > .container > .row > * {
  padding-right: 24px;
  padding-left: 24px;
}

.site-footer .brand-blurb,
.site-footer .contact-row,
.site-footer .copyright-bar {
  font-family: 'Roboto', sans-serif;
}

/*
 * The legacy 200px offset allowed for NewMain2's fixed header. The 2026
 * header is in normal document flow, so retain normal section breathing room
 * without leaving the old fixed-header gap.
 */
.legacy-newmain2-content .new-main-container {
  margin-top: 50px;
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .legacy-newmain2-content .new-main-container {
    margin-top: 30px;
  }
}
