.content-main,
.error-page {
  min-height: 70vh;
}

.content-hero,
.listing-hero {
  color: #fff;
  background: var(--green-deep);
  border-bottom: 8px solid var(--orange);
}

.content-hero-inner,
.listing-hero-inner {
  padding-top: 72px;
  padding-bottom: 72px;
}

.content-hero-inner {
  max-width: 940px;
}

.content-hero h1,
.listing-hero h1 {
  max-width: 980px;
  margin-bottom: 0;
  color: #fff;
  font-size: 52px;
}

.content-hero-page .content-hero-inner,
.listing-hero-compact .listing-hero-inner {
  padding-top: 56px;
  padding-bottom: 56px;
}

.listing-hero p:not(.eyebrow),
.archive-description {
  max-width: 720px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.archive-description p {
  margin: 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.breadcrumbs a {
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: #fff;
}

.content-kicker,
.content-card-kicker {
  margin: 0 0 14px;
  color: #ffc071;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.content-taxonomy {
  margin-top: 24px;
  font-size: 14px;
}

.content-taxonomy a {
  color: #fff;
}

.article-shell {
  max-width: 920px;
  padding-top: 72px;
  padding-bottom: 88px;
}

.article-body {
  color: #27312d;
  font-size: 18px;
  line-height: 1.75;
}

.article-body > :first-child {
  margin-top: 0;
}

.article-body > :last-child {
  margin-bottom: 0;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body table,
.article-body blockquote,
.article-body figure {
  margin-top: 0;
  margin-bottom: 28px;
}

.article-body h2,
.article-body h3,
.article-body h4 {
  max-width: 760px;
  margin-top: 52px;
  margin-bottom: 18px;
  color: var(--ink);
}

.article-body h2 {
  font-size: 36px;
}

.article-body h3 {
  font-size: 27px;
}

.article-body h4 {
  font-size: 21px;
}

.article-body a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-body ul,
.article-body ol {
  padding-left: 26px;
}

.article-body li + li {
  margin-top: 9px;
}

.article-body blockquote {
  padding: 26px 28px;
  border-left: 5px solid var(--orange);
  background: #e7ebe7;
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

.article-body img {
  width: auto;
  max-width: 100%;
  height: auto;
}

.article-body figure,
.article-featured {
  margin-right: 0;
  margin-left: 0;
}

.article-featured img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.article-body figcaption,
.wp-caption-text {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.article-body table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 16px;
}

.article-body th,
.article-body td {
  min-width: 150px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-body th {
  background: #e7ebe7;
}

.article-body iframe,
.article-body video {
  max-width: 100%;
}

.article-tags,
.page-links {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.article-cta {
  margin-top: 72px;
  padding: 40px;
  color: #fff;
  background: var(--green-deep);
  border-left: 8px solid var(--orange);
}

.article-cta h2 {
  max-width: 650px;
  margin-bottom: 16px;
  color: #fff;
  font-size: 38px;
}

.article-cta > p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.article-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
}

.button-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 48px;
  background: var(--line);
  border: 1px solid var(--line);
}

.post-navigation > div {
  min-width: 0;
  background: var(--paper);
}

.post-navigation a {
  display: block;
  min-height: 130px;
  padding: 24px;
  text-decoration: none;
}

.post-navigation a:hover {
  background: #e7ebe7;
}

.post-navigation span,
.post-navigation strong {
  display: block;
}

.post-navigation span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.post-navigation strong {
  font-size: 17px;
  line-height: 1.35;
}

.listing-shell {
  padding-top: 64px;
  padding-bottom: 88px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.content-card {
  min-width: 0;
  min-height: 290px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.content-card-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--orange);
}

.content-card-kicker a {
  color: inherit;
  text-decoration: none;
}

.content-card h2 {
  margin-bottom: 16px;
  font-size: 28px;
}

.content-card h2 a {
  text-decoration: none;
}

.content-card h2 a:hover {
  color: var(--green);
}

.content-card-excerpt {
  color: var(--muted);
}

.content-card-excerpt p {
  margin: 0 0 20px;
}

.text-link {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.navigation.pagination {
  margin-top: 40px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.search-form {
  display: flex;
  width: min(100%, 620px);
  margin-top: 28px;
}

.search-form label {
  flex: 1;
}

.search-field {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
}

.search-submit {
  min-height: 50px;
  padding: 12px 20px;
  color: #fff;
  border: 0;
  background: var(--orange);
  font-weight: 800;
  cursor: pointer;
}

.empty-state {
  max-width: 700px;
  padding: 40px;
  border-left: 6px solid var(--orange);
  background: var(--paper);
}

.empty-state h2 {
  margin-bottom: 12px;
  font-size: 32px;
}

.error-page {
  display: flex;
  align-items: center;
  background: #e7ebe7;
}

.error-page-inner {
  padding-top: 88px;
  padding-bottom: 96px;
}

.error-code {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 18px;
  font-weight: 900;
}

.error-page h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: 58px;
}

.error-page-inner > p:not(.error-code) {
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.error-page .button-outline {
  color: var(--green-deep);
  border-color: var(--green-deep);
}

.comments-area {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  width: auto;
  height: auto;
  padding: 10px 14px;
  margin: 0;
  overflow: visible;
  clip: auto;
  color: #fff;
  background: var(--green-deep);
}

@media (max-width: 900px) {
  .content-hero h1,
  .listing-hero h1 {
    font-size: 42px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .content-hero-inner,
  .listing-hero-inner,
  .content-hero-page .content-hero-inner,
  .listing-hero-compact .listing-hero-inner {
    padding-top: 42px;
    padding-bottom: 44px;
  }

  .content-hero h1,
  .listing-hero h1,
  .error-page h1 {
    font-size: 35px;
  }

  .article-shell,
  .listing-shell {
    padding-top: 44px;
    padding-bottom: 64px;
  }

  .article-body {
    font-size: 17px;
  }

  .article-body h2 {
    font-size: 30px;
  }

  .article-body h3 {
    font-size: 24px;
  }

  .article-cta {
    margin-top: 52px;
    padding: 28px 24px;
  }

  .article-cta h2 {
    font-size: 30px;
  }

  .post-navigation {
    grid-template-columns: 1fr;
  }

  .content-card {
    min-height: 0;
    padding: 24px;
  }

  .content-card h2 {
    font-size: 24px;
  }

  .search-form {
    flex-direction: column;
  }

  .search-submit {
    width: 100%;
  }
}
