﻿/* ---------------------------------------------------------------------------
   Internal page template.

   The 521 mirrored pages come from the client's CMS and were never built to one
   design. Two families matter:

     article pages  (.news-page)    h1 22px on a 966px column, right sidebar
     CMS stub pages (.clsHeading)   h4 16px running the full 1409px width

   Same site, two completely different looks. This pulls the second family onto
   the first family's grid, so an internal page reads the same way wherever the
   visitor lands.

   Deliberately NOT touched:
     - header and footer (already identical on every page, and approved)
     - blog listings (.content) â€” own layout with a sidebar, working fine
     - /newsletter/*.html â€” standalone documents, no site chrome
     - JS-driven app pages (branch locator, gallery) â€” left as-is by request

   Measured targets, taken from the article pages:
     title    22px / 700 / #545352, 16px below, hairline rule under it
     column   966px, starting at the same x as the article column
     gap      24px between the breadcrumb band and the title
   --------------------------------------------------------------------------- */

/* ---- title: one treatment ------------------------------------------------- */

.news-page h1,
.news-page.jsb-no-h1 h2:first-of-type {
  font-size: 22px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  color: #545352 !important;
  margin-top: 0 !important;
  margin-bottom: 16px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid #e6e1d8;
}

/* ---- CMS stub pages: give them the article column ------------------------ */

/* 1320px container with 12px gutters, so its content starts at the same x as
   the article column on the left. Children are then held to 966px. */
.clsHeading {
  max-width: 1320px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  /* 5px, not 12: the article column sits 5px inside its 1320px container
     (.news-page has 5px of its own padding). Matching that number is what makes
     the two families' titles line up at the same x instead of 7px apart. */
  padding-left: 5px !important;
  padding-right: 5px !important;
  box-sizing: border-box;
}

.clsHeading > *:not(.breadcrumb-section) {
  max-width: 966px;
}

/* On pages with no header chrome the breadcrumb ended up injected inside this
   wrapper. Push it back out so its pills sit at the same x as on every other
   page instead of a few px in. */
.clsHeading > .breadcrumb-section {
  margin-left: -5px !important;
  margin-right: -5px !important;
}

.clsHeading h1,
.clsHeading h2,
.clsHeading h3,
.clsHeading h4,
.clsHeading h5 {
  font-size: 22px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  color: #545352 !important;
  margin: 0 0 16px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid #e6e1d8;
}

/* body copy on those pages was creeping out to 1409px as well */
.clsHeading p,
.clsHeading ul,
.clsHeading ol,
.clsHeading table {
  max-width: 966px;
  font-size: 15.5px;
  line-height: 1.75;
  color: #333;
}

/* ---- one vertical rhythm ------------------------------------------------ */

/* Breathing room below the breadcrumb band, and no double padding on top of
   the content wrapper underneath it. */
.breadcrumb-section {
  padding-bottom: 24px !important;
}

.news-page {
  padding-top: 0 !important;
}

.clsHeading {
  padding-top: 0;
}

@media (max-width: 900px) {
  .news-page h1,
  .news-page.jsb-no-h1 h2:first-of-type,
  .clsHeading h1,
  .clsHeading h2,
  .clsHeading h3,
  .clsHeading h4,
  .clsHeading h5 {
    font-size: 19px !important;
  }
}

