/* Softer typography and link palette across the site. */
:root {
  --bs-font-sans-serif: "Nunito Sans", sans-serif;
  --bs-link-color-rgb: 35, 91, 96;
  --bs-link-hover-color-rgb: 24, 67, 72;
  --bs-info-rgb: 53, 107, 109; /* #356B6D: section headings */
}
main h1, main h2, main h3, main h4, main h5, main h6 {
  font-weight: 600;
}
main strong, main b { font-weight: 700; }
main a:not(.btn) {
  color: #235b60;
  text-decoration: underline;
  text-underline-offset: .16em;
}
main a:not(.btn):hover, main a:not(.btn):focus-visible {
  color: #184348;
  text-decoration-thickness: 2px;
}

.community-invite { max-width: 760px; margin: 1.75rem auto 0; text-align: center; line-height: 1.65; font-size: .95rem; }

/* Shared reading layout for editorial pages. */
.test-link-line { display: block; margin: 1rem 0 1.15rem; }
.article-layout .clean-block.clean-post .post-body {
  font-size: .9rem;
  line-height: 1.75;
}
.article-layout .post-body > p,
.article-layout .post-body > ul,
.article-layout .post-body > .small-step {
  max-width: 72ch;
}
.article-layout .post-body > .row {
  margin-top: 2rem;
}
.article-layout .post-body > figure {
  display: block;
  max-width: 760px;
  margin: 1.5rem 0 2rem;
}
.article-layout .post-body > figure img { width: 100%; height: auto; }
.article-layout .post-body > .row figure {
  display: block;
  margin: 0 0 1.5rem;
}
.article-layout .post-body > .row img { width: 100%; height: auto; }
.article-layout .post-body > .row p { max-width: 72ch; }
.article-layout .post-body h1 { line-height: 1.3; }
.article-layout .post-body h2.h4 { margin-top: 2.25rem; margin-bottom: .8rem; padding: 0; }

.relationship-layout .relationship-content img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}
.relationship-layout .clean-block.clean-post .post-image {
  display: block;
  width: 100%;
  object-fit: cover;
  object-position: 68% 55%;
}
.relationship-layout .post-body .small-step {
  padding: 0;
  border: 0;
  background: transparent;
}

.summary-layout .block-heading { max-width: 780px; margin: 0 auto 3.5rem; }
.summary-layout .block-heading p { max-width: 70ch; margin: 1rem auto 0; line-height: 1.7; font-size: .9rem; }
.summary-layout .summary-image img { width: 100%; max-width: 284px; height: auto; }
.summary-layout .summary-text { font-size: .9rem; }
.summary-layout .summary-text h2 { font-size: 1.3rem; margin: 0 0 1.5rem; }
.summary-layout .summary-topics { list-style: none; padding: 0; margin: 0; }
.summary-layout .summary-topics li { margin-bottom: 1.5rem; line-height: 1.7; overflow-wrap: break-word; }
.summary-layout .summary-topics a { color: #235b60; text-decoration: underline; text-underline-offset: .16em; }
.summary-layout .summary-note { max-width: 70ch; margin: .5rem 0 0; line-height: 1.7; }
.summary-layout .summary-topics a:hover,
.summary-layout .summary-topics a:focus-visible { text-decoration: underline; }

.story-layout .story-card { text-align: left; max-width: 780px; margin: 0 auto; }
.story-layout .block-heading p,
.story-layout .story-card,
.contact-us-page .block-heading p { font-size: .9rem; }
.story-layout .story-card .card-body { padding: clamp(1.5rem, 4vw, 3rem); }
.story-layout .story-card .card-title { margin-bottom: 1.5rem; }
.story-layout .story-card p { line-height: 1.75; max-width: 70ch; }

.contact-us-page .block-heading { max-width: 680px; margin-inline: auto; }
.contact-us-page .block-heading p { max-width: 60ch; line-height: 1.7; }
.clean-block.clean-form .contact-form {
  max-width: 720px;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(28, 48, 66, .07);
}
.contact-form .form-label { font-weight: 600; margin-bottom: .4rem; }
.contact-form .form-control { border-radius: 8px; padding: .75rem .9rem; }
.contact-form .form-control:focus { border-color: #4e83a4; box-shadow: 0 0 0 .2rem rgba(78, 131, 164, .14); }
.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form-action { margin-top: 1.5rem; }
.contact-submit {
  background: none;
  border: 0;
  border-bottom: 2px solid currentColor;
  padding: .3rem 0;
  color: #235b60;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.contact-submit:hover, .contact-submit:focus-visible { color: #184348; }
.contact-submit:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.contact-submit span { margin-left: .35rem; }

.clean-navbar .navbar-nav .dropdown-menu .dropdown-item {
  font-family: inherit;
  font-size: .8rem;
  font-weight: 400;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .article-layout .clean-block.clean-post .post-body { padding: 2rem 1.25rem; }
  .story-layout .story-card { margin: 0 1rem; }
}
@media (max-width: 991px) {
  .summary-layout .summary-image { margin-bottom: 2rem; text-align: center; }
}

/* Quiet related links below the main content. */
.related-reading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .25rem .65rem;
  max-width: 760px;
  margin: 1.5rem auto 0;
  color: #526668;
  font-size: .85rem;
  line-height: 1.6;
}
.related-reading h2 {
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: 600;
}
.related-reading h2::after { content: ":"; }
.related-reading ul {
  display: flex;
  flex-wrap: wrap;
  gap: .15rem .65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.related-reading li + li::before { content: "·"; margin-right: .65rem; color: #9ba9a9; }
.related-reading a { color: #356b6d; text-decoration: underline; text-underline-offset: .15em; }
.related-reading a:hover, .related-reading a:focus-visible { color: #184348; }
.related-reading a:focus-visible { outline: 2px solid #356b6d; outline-offset: 2px; }

/* Center the two content logos inside their own white columns. */
.blog-post .post-body .home-logo { display: block; width: 100%; text-align: center; margin: 0 auto 1.5rem; }
.blog-post .post-body .home-logo img { display: block; width: 284px; max-width: 100%; height: auto; margin-inline: auto; }
.summary-layout .summary-image { text-align: center; }
.summary-layout .summary-image img { display: block; margin-inline: auto; }
