/* Shared reading grid and Gutenberg rhythm for single blog posts. */
body.single-post main.asta-content {
  --asta-post-column-width: 860px;
  --asta-post-copy: #303b2f;
  color: var(--asta-post-copy);
}

body.single-post main.asta-content > .asta-entry-hero > * {
  width: min(1240px, calc(100vw - 48px));
  max-width: 1240px;
}

body.single-post main.asta-content > .asta-entry-hero {
  display: flex;
  min-height: clamp(360px, 36vw, 480px);
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding-block: clamp(48px, 6vw, 80px);
  overflow: hidden;
  isolation: isolate;
  background-color: #222b23;
  background-image:
    linear-gradient(90deg, rgb(13 22 15 / 82%) 0%, rgb(13 22 15 / 68%) 43%, rgb(13 22 15 / 38%) 100%),
    var(--asta-entry-hero-image);
  background-position: center;
  background-size: cover;
  color: #fff;
}

body.single-post main.asta-content > .asta-entry-hero > * {
  margin-inline: auto;
}

body.single-post main.asta-content > .asta-entry-hero .asta-page-breadcrumbs {
  margin-block: 0 18px;
  color: rgb(255 255 255 / 86%);
}

body.single-post main.asta-content > .asta-entry-hero .asta-breadcrumbs__separator {
  color: rgb(255 255 255 / 58%);
}

body.single-post main.asta-content > .asta-entry-hero .wp-block-post-title {
  width: 100%;
  max-width: 860px;
  margin: 0 auto 0 0 !important;
  color: #fff;
  text-shadow: 0 2px 20px rgb(0 0 0 / 24%);
}

body.single-post main.asta-content > .asta-entry-hero .wp-block-post-date {
  margin: 18px auto 0 0;
  color: rgb(255 255 255 / 82%);
}

body.single-post main.asta-content > .asta-entry-hero h1 {
  font-size: clamp(2.5rem, 4.3vw, 3.4rem);
  line-height: 1.1;
  text-wrap: balance;
}

body.single-post main.asta-content > .wp-block-post-featured-image,
body.single-post main.asta-content > .wp-block-post-content,
body.single-post main.asta-content > .wp-block-post-navigation-link {
  width: min(var(--asta-post-column-width), calc(100vw - 48px));
  max-width: none;
  margin-inline: auto;
}

body.single-post main.asta-content > .wp-block-post-featured-image {
  aspect-ratio: 16 / 9;
  margin-block: 0 clamp(32px, 4vw, 48px);
  overflow: hidden;
  border-radius: var(--asta-radius);
}

body.single-post main.asta-content > .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.single-post main.asta-content > .wp-block-post-content {
  color: var(--asta-post-copy);
  font-size: 1rem;
  line-height: 1.72;
}

body.single-post main.asta-content > .wp-block-post-content p:not(.has-large-font-size):not(.has-x-large-font-size) {
  margin-block: 0 1rem;
  font-size: 1rem !important;
  line-height: 1.72 !important;
}

body.single-post main.asta-content > .wp-block-post-content p.has-large-font-size {
  font-size: clamp(1.08rem, 1.4vw, 1.25rem) !important;
  line-height: 1.58 !important;
}

body.single-post main.asta-content > .wp-block-post-content :is(h2, h3, h4) {
  color: var(--asta-ink);
  font-family: inherit;
  font-weight: 700;
  letter-spacing: -.025em;
  text-wrap: balance;
}

body.single-post main.asta-content > .wp-block-post-content h2 {
  margin-block: 2em .65em;
  font-size: clamp(1.6rem, 2.5vw, 2.05rem) !important;
  line-height: 1.22 !important;
}

body.single-post main.asta-content > .wp-block-post-content h3 {
  margin-block: 1.55em .55em;
  font-size: clamp(1.22rem, 1.9vw, 1.5rem) !important;
  line-height: 1.3 !important;
}

body.single-post main.asta-content > .wp-block-post-content h4 {
  margin-block: 1.35em .5em;
  font-size: 1.1rem !important;
  line-height: 1.35 !important;
}

body.single-post main.asta-content > .wp-block-post-content > :first-child:is(h2, h3, h4) {
  margin-block-start: 0;
}

body.single-post main.asta-content > .wp-block-post-content :is(ul, ol) {
  margin-block: 0 1.15em;
  padding-inline-start: 1.4em;
  line-height: 1.72;
}

body.single-post main.asta-content > .wp-block-post-content li {
  margin-block-end: .4em;
  padding-inline-start: .15em;
}

body.single-post main.asta-content > .wp-block-post-content li > :last-child {
  margin-block-end: 0;
}

body.single-post main.asta-content > .wp-block-post-content .wp-block-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  align-items: stretch;
  gap: clamp(16px, 2.2vw, 24px);
  margin-block: clamp(24px, 3vw, 36px);
}

body.single-post main.asta-content > .wp-block-post-content .wp-block-column {
  width: auto !important;
  min-width: 0;
  max-width: none;
  margin: 0 !important;
  flex-basis: auto !important;
}

body.single-post main.asta-content > .wp-block-post-content > .wp-block-group.has-background:not(.asta-layout) {
  margin-block: clamp(24px, 3vw, 34px) !important;
  padding: clamp(20px, 3vw, 28px) !important;
  border-radius: var(--asta-radius) !important;
  box-shadow: 0 5px 20px rgb(31 36 44 / 6%);
}

body.single-post main.asta-content > .wp-block-post-content > .wp-block-group.has-background:not(.asta-layout) > :last-child {
  margin-block-end: 0;
}

body.single-post main.asta-content > .wp-block-post-content .wp-block-group:not(.asta-layout)[style*="border-left"] {
  margin-block: clamp(24px, 3vw, 34px) !important;
  padding: clamp(20px, 3vw, 28px) !important;
  border-inline-start-color: var(--asta-green) !important;
  border-radius: var(--asta-radius) !important;
  background: #f6f9f4 !important;
  box-shadow: 0 5px 20px rgb(31 36 44 / 6%);
  color: #354432;
}

body.single-post main.asta-content > .wp-block-post-content .wp-block-group.has-text-color[style*="color: rgb(255, 255, 255)"] {
  color: #fff !important;
}

body.single-post main.asta-content > .wp-block-post-content .wp-block-image {
  max-width: 100%;
  margin-block: clamp(24px, 3.5vw, 36px);
  text-align: center;
}

body.single-post main.asta-content > .wp-block-post-content .wp-block-image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  border-radius: var(--asta-radius);
}

body.single-post main.asta-content > .wp-block-post-content .wp-block-image figcaption {
  margin-block: .65em 0;
  color: #667361;
  font-size: .88rem;
  line-height: 1.5;
}

body.single-post main.asta-content > .wp-block-post-content .wp-block-table {
  max-width: 100%;
  margin-block: clamp(24px, 3.5vw, 36px);
  overflow-x: auto;
  border: 1px solid #dce5d7;
  border-radius: var(--asta-radius);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

body.single-post main.asta-content > .wp-block-post-content .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
}

body.single-post main.asta-content > .wp-block-post-content .wp-block-table :is(th, td) {
  padding: .72em .85em;
  border: 1px solid #dce5d7;
  vertical-align: top;
}

body.single-post main.asta-content > .wp-block-post-content .wp-block-table th {
  background: #f0f4f9;
  color: var(--asta-ink);
  font-weight: 700;
}

body.single-post main.asta-content > .wp-block-post-content .wp-block-table tbody tr:nth-child(even) {
  background: #f8faf7;
}

body.single-post main.asta-content > .wp-block-post-content blockquote,
body.single-post main.asta-content > .wp-block-post-content .wp-block-pullquote {
  margin-block: clamp(24px, 3vw, 34px);
  padding: clamp(20px, 3vw, 28px);
  border-inline-start: 4px solid var(--asta-green);
  border-radius: var(--asta-radius);
  background: #f6f9f4;
  color: #354432;
  box-shadow: 0 5px 20px rgb(31 36 44 / 6%);
}

body.single-post main.asta-content > .wp-block-post-content .wp-block-pullquote > blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
}

body.single-post main.asta-content > .wp-block-post-content blockquote > :last-child,
body.single-post main.asta-content > .wp-block-post-content .wp-block-pullquote > :last-child {
  margin-block-end: 0;
}

body.single-post main.asta-content > .wp-block-post-content .wp-block-separator {
  width: 100%;
  margin-block: clamp(30px, 4vw, 44px);
  border-color: #dce5d7;
}

body.single-post main.asta-content > .wp-block-post-content a {
  color: var(--asta-dark-green);
  text-underline-offset: .18em;
  text-decoration-thickness: 1px;
}

body.single-post main.asta-content > .wp-block-post-content a:hover {
  color: var(--asta-green);
}

body.single-post main.asta-content > .wp-block-post-content .wp-block-button__link {
  color: #fff;
}

body.single-post main.asta-content > .wp-block-post-content .wp-block-button__link:is(:hover, :focus-visible) {
  background-color: var(--asta-dark-green);
  color: #fff;
}

body.single-post main.asta-content > .wp-block-post-content :is(.wp-block-embed, iframe, video) {
  max-width: 100%;
}

body.single-post main.asta-content > .wp-block-post-content .wp-block-embed__wrapper:has(iframe, video, object, embed) {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--asta-radius);
}

body.single-post main.asta-content > .wp-block-post-content .wp-block-embed__wrapper:not(:has(iframe, video, object, embed)) {
  min-height: 0;
  padding: 16px 20px;
  overflow-wrap: anywhere;
  border: 1px solid #dce5d7;
  border-radius: var(--asta-radius);
  background: #f7faf5;
  color: var(--asta-dark-green);
  font-size: .92rem;
  line-height: 1.55;
}

body.single-post main.asta-content > .wp-block-post-content .wp-block-embed__wrapper iframe {
  display: block;
  width: 100%;
  height: 100%;
}

body.single-post main.asta-content > .wp-block-post-content > .wp-block-spacer {
  height: clamp(18px, 2.5vw, 32px) !important;
}

body.single-post main.asta-content > .wp-block-post-content > :last-child,
body.single-post main.asta-content > .wp-block-post-content p:last-child {
  margin-block-end: 0;
}

body.single-post main.asta-content > .asta-post-navigation {
  display: grid;
  width: min(var(--asta-post-column-width), calc(100vw - 48px));
  max-width: none;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  align-items: stretch;
  gap: 16px;
  margin: clamp(40px, 5vw, 64px) auto 0;
}

body.single-post main.asta-content > .asta-post-navigation > .wp-block-post-navigation-link:empty {
  display: none;
}

body.single-post main.asta-content > .asta-post-navigation > .wp-block-post-navigation-link {
  position: relative;
  min-width: 0;
  min-height: 132px;
  margin: 0;
  padding: 22px 24px 64px;
  overflow: hidden;
  border: 1px solid #dce5d7;
  border-radius: var(--asta-radius);
  background: #f7faf5;
  box-shadow: 0 5px 20px rgb(31 36 44 / 5%);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

body.single-post main.asta-content > .asta-post-navigation > .wp-block-post-navigation-link:hover {
  transform: translateY(-2px);
  border-color: #b9d1ad;
  background: #f1f7ed;
  box-shadow: 0 10px 26px rgb(31 36 44 / 9%);
}

body.single-post main.asta-content > .asta-post-navigation .wp-block-post-navigation-link a {
  display: flex;
  position: static;
  flex-direction: column;
  gap: 9px;
  width: 100%;
  color: var(--asta-ink);
  text-decoration: none;
}

body.single-post main.asta-content > .asta-post-navigation .wp-block-post-navigation-link a::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
}

body.single-post main.asta-content > .asta-post-navigation .wp-block-post-navigation-link a:focus-visible::after {
  outline: 3px solid var(--asta-green);
  outline-offset: -4px;
}

body.single-post main.asta-content > .asta-post-navigation .post-navigation-link__label {
  color: var(--asta-dark-green);
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .045em;
  text-transform: uppercase;
}

body.single-post main.asta-content > .asta-post-navigation .post-navigation-link__title {
  margin-top: 8px;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  font-weight: 700;
  line-height: 1.38;
  text-wrap: balance;
}

body.single-post main.asta-content > .asta-post-navigation .wp-block-post-navigation-link__arrow-previous,
body.single-post main.asta-content > .asta-post-navigation .wp-block-post-navigation-link__arrow-next {
  position: absolute;
  bottom: 15px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #d4e5cc;
  border-radius: 50%;
  background: #eaf3e6;
  color: var(--asta-green);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

body.single-post main.asta-content > .asta-post-navigation .wp-block-post-navigation-link__arrow-previous {
  right: auto;
  left: 24px;
  margin: 0;
}

body.single-post main.asta-content > .asta-post-navigation .wp-block-post-navigation-link__arrow-next {
  right: 24px;
  left: auto;
  margin: 0;
}

body.single-post main.asta-content > .asta-post-navigation > .wp-block-post-navigation-link:hover :is(.wp-block-post-navigation-link__arrow-previous, .wp-block-post-navigation-link__arrow-next) {
  border-color: var(--asta-green);
  background: var(--asta-green);
  color: #fff;
}

body.single-post main.asta-content > .asta-post-navigation > .wp-block-post-navigation-link:hover .wp-block-post-navigation-link__arrow-previous {
  transform: translateX(-2px);
}

body.single-post main.asta-content > .asta-post-navigation > .wp-block-post-navigation-link:hover .wp-block-post-navigation-link__arrow-next {
  transform: translateX(2px);
}

@media (max-width: 600px) {
  body.single-post main.asta-content > .asta-entry-hero > *,
  body.single-post main.asta-content > .wp-block-post-featured-image,
  body.single-post main.asta-content > .wp-block-post-content,
  body.single-post main.asta-content > .asta-post-navigation {
    width: calc(100vw - 48px);
  }

  body.single-post main.asta-content > .asta-entry-hero {
    min-height: 360px;
    padding-block: 48px;
    padding-inline: 24px;
    background-position: 58% center;
    background-image:
      linear-gradient(90deg, rgb(13 22 15 / 78%) 0%, rgb(13 22 15 / 60%) 100%),
      var(--asta-entry-hero-image);
  }

  body.single-post main.asta-content > .wp-block-post-featured-image {
    margin-bottom: 32px;
  }

  body.single-post main.asta-content > .wp-block-post-content {
    font-size: .98rem;
    line-height: 1.7;
  }

  body.single-post main.asta-content > .wp-block-post-content h2 {
    margin-block-start: 1.8em;
    font-size: 1.48rem !important;
  }

  body.single-post main.asta-content > .wp-block-post-content h3 {
    font-size: 1.2rem !important;
  }

  body.single-post main.asta-content > .asta-entry-hero h1 {
    font-size: clamp(1.9rem, 6.3vw, 2.2rem);
    line-height: 1.12;
  }

  body.single-post main.asta-content > .wp-block-post-content .wp-block-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  body.single-post main.asta-content > .wp-block-post-content .wp-block-table table {
    min-width: 520px;
  }
}
