/* City Center Credit Union archive preview: mobile-only readability fixes. */
@media (max-width: 767px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    font-size: 16px;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }

  img,
  video,
  iframe,
  embed {
    max-width: 100%;
  }

  .container,
  .container-fluid {
    width: 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }

  .navbar-head > .container {
    padding-left: 8px;
    padding-right: 8px;
  }

  .navbar-head .navbar-header {
    min-height: 56px;
    margin: 0;
  }

  .navbar-head .navbar-header > .col-xs-2 {
    width: auto;
    padding-left: 0;
  }

  .navbar-head .brand-logo img {
    display: block;
    width: auto;
    max-width: min(58vw, 220px);
    max-height: 50px;
  }

  .navbar-head .navbar-toggle {
    min-width: 44px;
    min-height: 44px;
    margin: 6px 6px 6px 0;
    padding: 10px;
  }

  .navbar-head .navbar-collapse {
    clear: both;
    max-height: 75vh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .navbar-head .navbar-collapse.in {
    display: block;
  }

  .navbar-head .navbar-nav {
    float: none;
    margin: 7px 0;
  }

  .navbar-head .navbar-nav > li {
    float: none;
  }

  .navbar-head .navbar-nav > li > a {
    white-space: normal;
    padding: 11px 15px;
    line-height: 1.35;
  }

  .navbar-breadcrumb .breadcrumb {
    margin: 0;
    padding: 8px 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .tpl-home .feature-visual {
    height: auto;
    min-height: 220px;
    background-position: center;
    background-size: cover;
  }

  .home-page .feature-wrapper,
  .interior-page .feature-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .home-page .feature-wrapper > img,
  .interior-page .feature-wrapper > img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 48vh;
    object-fit: cover;
  }

  .feature-visual img,
  .feature-wrapper img {
    height: auto;
    max-height: 55vh;
    object-fit: cover;
  }

  .feature-content {
    position: relative;
    padding: 16px 15px;
    color: inherit;
    text-align: left;
  }

  .feature-content h1,
  .feature-content h2,
  .feature-content h3 {
    font-size: clamp(22px, 7vw, 32px);
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .feature-content p {
    font-size: 16px;
    line-height: 1.45;
  }

  .feature-content .spacer,
  .feature-content .spacer-md,
  .feature-content .spacer-lg {
    display: none;
  }

  .feature-wrapper > .col-sm-24.visible-xs {
    float: none;
    width: 100%;
    padding: 12px 15px 0;
  }

  .tpl-sidebar-left main,
  .tpl-sidebar-left [role="main"],
  .tpl-fullwidth main,
  .tpl-fullwidth [role="main"] {
    min-width: 0;
  }

  #content,
  .article-content,
  .article-page,
  .container.zero-left-pad {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .article-content {
    font-size: 16px;
    line-height: 1.6;
  }

  .article-content img,
  .article-page img {
    max-width: 100%;
    height: auto;
  }

  .col-sm-24,
  .col-md-17,
  .col-md-7 {
    min-width: 0;
  }

  .col-md-push-7,
  .col-md-pull-17 {
    left: auto;
    right: auto;
  }

  .col-md-17,
  .col-md-7 {
    float: none;
    width: 100%;
  }

  .tpl-sidebar-left .col-md-17 {
    margin-bottom: 18px;
  }

  .row {
    margin-left: -10px;
    margin-right: -10px;
  }

  .row > [class*="col-"] {
    min-width: 0;
  }

  h1 {
    font-size: clamp(25px, 7vw, 34px);
    line-height: 1.18;
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: clamp(22px, 6vw, 29px);
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  h3 {
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  p,
  li,
  dd,
  dt,
  blockquote,
  td,
  th {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  a {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .table-responsive,
  .table-scroll {
    width: 100%;
    margin-bottom: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  table {
    max-width: 100%;
  }

  .tpl-sidebar-left table,
  .tpl-fullwidth table,
  .table-scroll table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tpl-sidebar-left table th,
  .tpl-sidebar-left table td,
  .tpl-fullwidth table th,
  .tpl-fullwidth table td {
    min-width: 6.5em;
  }

  pre,
  code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .btn,
  .btn-block {
    max-width: 100%;
    white-space: normal;
    line-height: 1.3;
  }

  .footer {
    padding: 18px 0;
  }

  .footer .container {
    overflow-wrap: anywhere;
  }

  .city-footer-links,
  .city-blog-link {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .city-footer-links ul,
  .city-footer-links li {
    padding-left: 18px;
  }

  .footer .row > [class*="col-"] {
    float: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .footer p {
    padding: 0 !important;
    text-align: left !important;
  }

  .footer img {
    display: block;
    width: auto;
    max-width: min(100%, 190px);
    height: auto;
    margin: 12px auto;
  }

  .pull-left,
  .pull-right {
    float: none !important;
  }
}

/* Keep original artwork and body copy in separate blocks. */
.home-page .feature-wrapper {
  margin: 0;
  padding: 0;
  min-height: 0;
}

.home-page .feature-visual {
  position: static;
  width: 100%;
  height: auto;
  max-width: 1216px;
  min-height: 0;
  margin: 0 auto;
  overflow: hidden;
}

.home-page .feature-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
}

.interior-page .feature-wrapper {
  position: static;
  height: auto;
  min-height: 0;
  padding: 0;
  margin: 0;
}

.article-content,
.article-page,
.home-page .intro-title {
  color: #24232c;
}

.article-page,
.interior-page .article-content {
  padding: 32px 18px 44px;
}

.interior-page .article-content {
  max-width: 780px;
  min-height: 180px;
}

.article-page {
  max-width: 840px;
}

.article-content > h1:first-child,
.article-page > h1:first-child {
  margin-top: 0;
}

.city-footer-links {
  display: flex;
  justify-content: center;
  gap: 8px 22px;
  flex-wrap: wrap;
  margin: 10px 0 0;
}

.footer .city-footer-links a {
  color: inherit;
  text-decoration: underline;
}

.navbar-nav .city-blog-link a {
  color: inherit;
}

@media (max-width: 767px) {
  .home-page .feature-visual.hidden-xs {
    display: block !important;
  }

  .article-page,
  .interior-page .article-content {
    padding: 22px 0 30px;
  }

  .article-page.container {
    padding: 22px 15px 30px;
  }
}

/* The original header sits above an overlapping feature layer. Preserve the
   navigation in normal flow so the banner cannot cover its controls. */
.navbar-head {
  position: relative !important;
  inset: auto;
  z-index: 30;
  width: 100%;
  margin-bottom: 0;
}

.nav-secondary {
  position: relative;
  z-index: 20;
}

@media (max-width: 767px) {
  .navbar-head .navbar-toggle {
    position: relative;
    z-index: 2;
  }
}

/* Editorial pages share the City Center logo and navy, with readable type
   and a separate block for navigation and source references. */
:root {
  --city-ink: #202942;
  --city-navy: #1c2a4c;
  --city-link: #254f76;
  --city-muted: #49566b;
  --city-line: #ccd5de;
  --city-paper: #f1f5f8;
  --city-white: #fff;
}

body {
  font-family: system-ui, sans-serif;
  color: var(--city-ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.62;
}

body #content :is(p, li, dd, dt, blockquote) {
  color: var(--city-ink);
  font-family: inherit;
  font-weight: 400;
}

body #content :is(h1, h2, h3, h4) {
  color: var(--city-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.14;
}

body #content h1 {
  font-size: clamp(35px, 5.3vw, 64px);
  letter-spacing: -.025em;
  margin: 0 0 .34em;
}

body #content h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  margin: 0 0 .5em;
}

body #content a:not(.btn) {
  color: var(--city-link);
  text-decoration: underline;
  text-underline-offset: .18em;
}

body a:focus-visible,
body button:focus-visible {
  outline: 2px solid #286082;
  outline-offset: 3px;
}

.city-wrap {
  width: min(100% - 48px, 1100px);
  margin-inline: auto;
}

.city-guide-heading {
  padding: clamp(26px, 5vw, 66px) 0 clamp(30px, 5vw, 64px);
  background: var(--city-paper);
  border-top: 1px solid var(--city-line);
  border-bottom: 1px solid var(--city-line);
}

.city-guide-heading p {
  max-width: 64ch;
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.55;
  margin: 0;
}

.city-breadcrumb {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--city-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.city-guide-content {
  display: grid;
  grid-template-columns: minmax(0, 700px) minmax(0, 250px);
  gap: clamp(32px, 6vw, 90px);
  padding-block: clamp(30px, 5vw, 64px);
  align-items: start;
}

.city-guide-content article > section + section {
  margin-top: 26px;
}

.city-guide-content article p,
.article-page > p,
.article-content > p {
  max-width: 68ch;
  line-height: 1.67;
}

.city-guide-sources {
  border-top: 1px solid var(--city-line);
  padding-top: 22px;
}

.city-guide :is(li, a) {
  overflow-wrap: anywhere;
}

.city-guide-content .city-guide-sources h2,
.city-guide-content .city-guide-related h2 {
  font-size: 22px;
}

.city-guide-related {
  padding: 18px 0 0 20px;
  border-left: 1px solid var(--city-line);
}

.city-guide-content ul,
.city-directory ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.city-guide-content li + li {
  margin-top: 8px;
}

.city-directory {
  padding-block: 20px 44px;
}

.city-directory li {
  padding: 10px 0;
  border-bottom: 1px solid var(--city-line);
}

.city-directory li a {
  display: inline-block;
  font-weight: 650;
  min-width: 200px;
  margin-right: 8px;
}

body > .city-footer {
  margin: 0;
  padding: 30px 0 20px;
  background: var(--city-navy);
  color: var(--city-white);
  font: 400 15px/1.55 system-ui, sans-serif;
}

.city-footer-inner {
  width: min(100% - 48px, 1100px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 16px 22px;
}

.city-footer a {
  color: var(--city-white);
  text-underline-offset: .18em;
}

.city-footer a:focus-visible {
  outline-color: var(--city-white);
}

.city-footer-brand {
  font: 600 22px/1.25 Georgia, "Times New Roman", serif;
}

.city-footer p {
  margin: 6px 0 0;
  color: #e2eaf6;
  font: inherit;
}

.city-footer .city-footer-links {
  margin: 0;
  justify-content: flex-start;
}

.city-footer-legal {
  grid-column: 1 / -1;
  border-top: 1px solid #7785a0;
  padding-top: 14px;
}

@media (max-width: 767px) {
  .city-wrap,
  .city-footer-inner {
    width: calc(100% - 36px);
  }

  .city-guide-content,
  .city-footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .city-guide-related {
    border-left: 0;
    border-top: 1px solid var(--city-line);
    padding: 20px 0 0;
  }

  .city-directory li span {
    display: block;
  }

  .city-footer-links {
    row-gap: 10px;
  }
}

.city-notice {
  margin-block: 28px;
  padding: clamp(17px, 3vw, 28px);
  border-left: 4px solid #925e25;
  background: #faf3e9;
  color: var(--city-ink);
}

body #content .city-notice h2 {
  font-size: clamp(21px, 3.4vw, 28px);
  margin: 0 0 10px;
}

.city-notice p {
  margin: 0 0 12px;
  max-width: 68ch;
}

.city-notice .city-notice-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.city-notice .city-notice-links li {
  margin: 0;
}

.city-notice .city-notice-links a {
  display: inline-block;
  padding-block: 4px;
  font-weight: 650;
}

.city-editorial-lead {
  font-size: 1.12em;
}

.city-editorial > section + section {
  margin-top: 26px;
}
