/* WordPress-only additions on top of the redesign's style.css (copied from the static site) */

/* The sticky header sits below the admin bar when you are logged in */
.admin-bar .site-header {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}
@media (max-width: 600px) {
  .admin-bar .site-header {
    top: 0;
  }
}

/* Contact form: spam trap and result message */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-alert {
  padding: 12px 16px;
  border-left: 3px solid var(--red);
  border-radius: var(--r-sm);
  background: #fff4f2;
  color: var(--ink);
  font-size: 15px;
}

/* Without The Newsletter Plugin there is nowhere to subscribe, so the forms are hidden */
.no-newsletter .footer__news,
.no-newsletter #newsletter,
.no-newsletter #articles .card {
  display: none;
}

/* Posts and other WordPress content (index.php) */
.wp-prose {
  max-width: 760px;
  color: var(--body);
  font-size: 17px;
  line-height: 1.75;
}
.wp-prose > * + * {
  margin-top: 1.1em;
}
.wp-prose h2 {
  margin-top: 1.6em;
  font-size: clamp(24px, 3vw, 32px);
}
.wp-prose h3 {
  margin-top: 1.4em;
  font-size: 22px;
}
.wp-prose a {
  color: var(--teal-deep);
  text-decoration: underline;
}
.wp-prose ul,
.wp-prose ol {
  padding-left: 1.4em;
}
.wp-prose ul {
  list-style: disc;
}
.wp-prose ol {
  list-style: decimal;
}
.wp-prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--r-sm);
}
.wp-prose blockquote {
  padding-left: 18px;
  border-left: 3px solid var(--teal);
  color: var(--muted);
}
.wp-prose figcaption,
.wp-prose .wp-caption-text {
  font-size: 14px;
  color: var(--muted);
}
.wp-prose .alignleft {
  float: left;
  margin: 0 1.2em 1em 0;
}
.wp-prose .alignright {
  float: right;
  margin: 0 0 1em 1.2em;
}
.wp-prose .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.wp-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}
.wp-pagination .page-numbers {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink);
}
.wp-pagination .current {
  background: var(--teal);
  border-color: var(--teal);
}
