/* Archive-compatible layer: keeps the original Giffey visual language while
   styling the new SEO, Blog and accessibility additions. */

header img { height: auto; }

/* The archive stylesheet offsets the footer by 50px for the original
   content-only layout. The new support and recent-post sections are normal
   flow content, so that offset would cover their last line. */
body > .site-footer,
.site-footer { margin-top: 0 !important; }

.home-content-block {
  clear: both;
  margin: 22px 20px;
  padding: 24px 30px 18px;
  background: #fff;
  border: 1px solid #016c7c;
}

.home-content-block--planning { background: #f4f4f4; }

.home-content-block h2 {
  margin: 0 0 18px;
  padding: 0 0 18px;
  color: #016c7c;
  font-size: 28px;
  font-variant: small-caps;
  text-align: center;
  background: url('/_assets/dfadf4062a5e.png') bottom center no-repeat;
}

.home-content-block p {
  margin: 0 0 14px;
  padding: 0;
  line-height: 1.55;
}

.home-content-block a { color: #016c7c; text-decoration: underline; }

.new-service-page {
  margin: 0;
  padding: 20px 30px 30px;
  background: #fff;
}

.new-service-page h2 {
  margin: 24px 0 12px;
  padding-bottom: 8px;
  color: #016c7c;
  font-size: 25px;
  font-variant: small-caps;
}

.new-service-page p {
  margin: 0 0 16px;
  padding: 0;
  line-height: 1.55;
}

.new-service-page ul {
  margin: 0 0 20px;
  padding-left: 26px;
  line-height: 1.55;
}

.new-service-page a { color: #016c7c; text-decoration: underline; }

.site-tagline {
  color: #fff;
  font-family: 'RotisSemiSansW01-Light', Verdana, sans-serif;
  font-size: 20px;
  line-height: 1.25;
  margin: 18px 0 0;
  text-align: center;
}

.breadcrumbs {
  display: block;
  height: auto !important;
  min-height: 0;
  margin: 0;
  padding: 0 0 14px;
  background: none !important;
  border: 0 !important;
  color: #56676a;
  font-size: 14px;
}

.breadcrumbs a {
  color: #016c7c;
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 10px 15px;
  color: #fff;
  background: #016c7c;
}

.skip-link:focus { left: 10px; }

.seo-support,
.related-links,
.recent-posts {
  clear: both;
  margin: 20px 0 0;
  padding: 20px;
  background: #fff;
}

.seo-support h2,
.related-links h2,
.recent-posts h2 {
  width: 100%;
  margin: 0 0 16px;
  padding: 0 0 20px;
  color: #016c7c;
  font-size: 30px;
  font-variant: small-caps;
  text-align: center;
  background: url('/_assets/dfadf4062a5e.png') bottom center no-repeat;
}

.related-links ul,
.recent-posts ul { padding-left: 30px; }

.related-links a,
.recent-posts a {
  color: #016c7c;
  text-decoration: underline;
}

.site-footer-links {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 30px;
  color: #fff;
}

.site-footer-links a {
  margin-right: 18px;
  color: #fff;
  text-decoration: underline;
}

.map-placeholder {
  display: grid;
  min-height: 260px;
  place-items: center;
  margin: 20px 0;
  padding: 20px;
  color: #016c7c;
  background: #ececec;
  border: 1px solid #56676a;
  font-size: 20px;
  text-align: center;
}

img[loading="lazy"] { content-visibility: auto; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #e1996d;
  outline-offset: 3px;
}

/* New Blog pages use the same header, hero area and teal/orange accents as
   the archived pages. */
body:has(.blog-header) { background: #ececec; }
.blog-header { background: #016c7c; }

.blog-header .max1280 {
  position: relative;
  width: 100%;
  max-width: 1280px;
  min-height: 130px;
  margin: 0 auto;
  padding: 0;
  background: url('/_assets/c310a7b3c13c.jpg') right top / 33.333% auto no-repeat;
}

.blog-header .max1280 > a {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 16.666%;
  max-width: 175px;
}

.blog-header .max1280 img { width: 100%; }

.blog-header .max1280::after {
  display: none;
}

.blog-header .site-tagline {
  display: block;
  width: auto;
  margin: 0;
  padding: 42px 33.333% 0 16.666%;
  box-sizing: border-box;
}

.blog-nav {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  width: 100%;
  max-width: 1280px;
  min-height: 320px;
  margin: 0 auto;
  padding: 0;
  border-top: 5px solid #56676a;
  border-bottom: 30px solid #56676a;
  background: url('/_assets/f261eedb0415.jpg') top center no-repeat;
}

.blog-nav a {
  flex: 1 1 0;
  min-width: 0;
  padding: 12px 0;
  color: #016c7c;
  background: rgba(255, 255, 255, .85);
  font-family: 'RotisSemiSansW01-Light', Verdana, sans-serif;
  font-size: 13px;
  font-variant: small-caps;
  line-height: 24px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: normal;
  overflow-wrap: anywhere;
}

.blog-nav a:hover,
.blog-nav a:focus,
.blog-nav a[aria-current="page"] {
  color: #fff;
  background: #027c8e;
}

body:has(.blog-header) #content_container {
  width: 100%;
  max-width: 1240px;
  min-height: 300px;
  margin: 0 auto;
  padding: 20px;
  overflow: hidden;
  position: relative;
  top: -15px;
  background: #fff;
  box-sizing: border-box;
}

body:has(.blog-header) .page-title {
  padding: 0 30px 20px;
  color: #016c7c;
  font-size: 30px;
  text-align: center;
}

.article-layout { max-width: 100%; margin: 0 auto; }

.article-meta,
.article-layout figcaption {
  color: #56676a;
  font-size: 14px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.blog-card {
  overflow: hidden;
  border: 1px solid #56676a;
  background: #fff;
}

.blog-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-card__body { padding: 10px 20px 20px; }

.blog-card h2 {
  width: auto;
  padding: 0 0 12px;
  font-size: 24px;
  text-align: left;
}

.blog-card a {
  color: #016c7c;
  text-decoration: underline;
}

.article-layout figure { margin: 20px 30px; }

.article-layout figure img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.article-layout table {
  width: calc(100% - 60px);
  margin: 20px 30px;
  border-collapse: collapse;
  background: #fff;
}

.article-layout th,
.article-layout td {
  padding: 10px;
  border: 1px solid #56676a;
  text-align: left;
  vertical-align: top;
}

.article-layout th { color: #fff; background: #016c7c; }

.article-layout blockquote {
  margin: 20px 30px;
  padding: 15px 20px;
  border-left: 5px solid #e1996d;
  background: #ececec;
}

@media (min-width: 769px) {
  #main-menu > li { width: 11.111% !important; }
}

@media (max-width: 768px) {
  .site-tagline { font-size: 16px; }
  .seo-support, .related-links, .recent-posts { padding: 10px; }
  .seo-support h2, .related-links h2, .recent-posts h2 { font-size: 24px; }
  .blog-header .max1280 > a,
  .blog-header .max1280 img { width: 33.333%; max-width: 175px; }
  .blog-header .max1280 { min-height: 110px; }
  .blog-header .max1280::after { width: 55%; height: 90px; }
  .blog-header .site-tagline {
    width: 100%;
    padding: 30px 25% 0;
    font-size: 14px;
  }
  .blog-nav { min-height: 320px; }
  .blog-nav a {
    flex-basis: 25%;
    min-width: 25%;
    padding: 6px 5px;
    font-size: 14px;
    line-height: 22px;
  }
  body:has(.blog-header) #content_container { top: 0; padding: 10px; }
  .blog-grid { grid-template-columns: 1fr; }
  .article-layout figure,
  .article-layout table,
  .article-layout blockquote { margin-left: 0; margin-right: 0; }
  .article-layout table { width: 100%; }
}
