.skip-link {
  background: #ffffff;
  border-radius: 0 0 8px 8px;
  color: #173b38;
  font-weight: 700;
  left: 16px;
  padding: 10px 16px;
  position: fixed;
  top: -80px;
  z-index: 10001;
}

.skip-link:focus {
  top: 0;
}

.blog-page {
  background: #f5f8f7;
  color: #1d2b2a;
}

.blog-page main {
  background: #f5f8f7;
}

.blog-page a:focus-visible,
.blog-page button:focus-visible {
  outline: 3px solid #f24e2a;
  outline-offset: 4px;
}

.blog-page .header button {
  background: transparent;
  border: 0;
}

.blog-page .header #mobile-menu {
  align-items: center;
  display: flex;
  justify-content: center;
}

.blog-page .header #menu-close {
  display: block;
  margin: 0 0 20px 5px;
  padding: 0;
}

.blog-page .header #menu-close img {
  display: block;
  width: 25px;
}

.blog-container,
.article-container {
  margin: 0 auto;
  max-width: 1180px;
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
}

.blog-archive-hero {
  background:
    radial-gradient(circle at 82% 20%, rgba(80, 176, 168, 0.22), transparent 28%),
    linear-gradient(145deg, #ffffff 0%, #edf7f5 100%);
  border-bottom: 1px solid #dce9e6;
  overflow: hidden;
  padding: 96px 0 78px;
  position: relative;
}

.blog-archive-hero .blog-container {
  max-width: 900px;
  text-align: center;
}

.blog-eyebrow {
  color: #25786f;
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.blog-archive-hero h1,
.article-header h1 {
  color: #122523;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0;
}

.blog-archive-hero h1 {
  font-size: clamp(44px, 6vw, 68px);
  line-height: 1.04;
}

.blog-archive-hero p {
  color: #4e6461;
  font-size: 21px;
  line-height: 1.6;
  margin: 26px auto 0;
  max-width: 720px;
}

.blog-count {
  background: #ffffff;
  border: 1px solid #d3e5e2;
  border-radius: 999px;
  color: #2f6d67;
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  margin-top: 30px;
  padding: 8px 15px;
}

.blog-list {
  padding: 76px 0 100px;
}

.blog-list-heading {
  align-items: end;
  display: flex;
  gap: 30px;
  justify-content: space-between;
  margin-bottom: 34px;
}

.blog-list-heading h2 {
  color: #17312e;
  font-size: 34px;
  line-height: 1.2;
  margin: 0;
}

.blog-list-heading p {
  color: #627572;
  font-size: 16px;
  margin: 0;
}

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

.post-card {
  min-width: 0;
}

.post-card > a {
  background: #ffffff;
  border: 1px solid #e0e8e6;
  border-radius: 18px;
  box-shadow: 0 8px 26px rgba(25, 66, 61, 0.08);
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.post-card > a:hover {
  border-color: #aacfc9;
  box-shadow: 0 16px 38px rgba(25, 66, 61, 0.14);
  color: inherit;
  text-decoration: none;
  transform: translateY(-5px);
}

.post-card-media {
  aspect-ratio: 16 / 9;
  background: #e7f1ef;
  overflow: hidden;
}

.post-card-media img {
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
  width: 100%;
}

.post-card > a:hover .post-card-media img {
  transform: scale(1.025);
}

.post-image-placeholder {
  align-items: center;
  background:
    radial-gradient(circle at 74% 20%, rgba(255, 255, 255, 0.34), transparent 30%),
    linear-gradient(135deg, #287f77, #55b7ae);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.post-image-placeholder span {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-image-placeholder small {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  letter-spacing: 0.04em;
  margin-top: 3px;
}

.post-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.post-card-meta,
.article-meta {
  align-items: center;
  color: #66807c;
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 8px;
}

.post-card h2 {
  color: #17312e;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.22;
  margin: 14px 0 12px;
}

.post-card p {
  color: #5c6e6b;
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 22px;
}

.post-card-link {
  color: #d74e30;
  font-size: 15px;
  font-weight: 700;
  margin-top: auto;
}

.blog-cta {
  padding: 68px 0;
}

.blog-cta h2 {
  color: #ffffff;
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 28px;
}

.article-header {
  background: linear-gradient(145deg, #ffffff 0%, #edf7f5 100%);
  border-bottom: 1px solid #dce9e6;
  padding: 64px 0 58px;
}

.article-header--no-image {
  padding-bottom: 76px;
}

.article-header .article-container {
  max-width: 980px;
}

.article-back-link {
  color: #397a74;
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 42px;
  text-decoration: none;
}

.article-back-link:hover {
  color: #d74e30;
  text-decoration: none;
}

.article-header h1 {
  font-size: clamp(40px, 5.2vw, 62px);
  line-height: 1.08;
  max-width: 920px;
}

.article-meta {
  font-size: 16px;
  margin-top: 26px;
}

.article-hero-image {
  margin: 52px auto 0;
  max-width: 1120px;
  padding: 0 24px;
}

.article-hero-image img {
  background: #e7f1ef;
  border-radius: 18px;
  box-shadow: 0 16px 44px rgba(25, 66, 61, 0.14);
  display: block;
  max-height: 660px;
  object-fit: cover;
  width: 100%;
}

.article-content {
  color: #273835;
  font-size: 19px;
  line-height: 1.78;
  margin: 0 auto;
  max-width: 860px;
  padding: 62px 24px 28px;
}

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

.article-content p,
.article-content li {
  color: #344744;
  font-size: 19px;
  line-height: 1.78;
}

.article-content p {
  margin: 0 0 24px;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  color: #17312e;
  font-weight: 700;
  letter-spacing: -0.018em;
  scroll-margin-top: 105px;
}

.article-content h2 {
  font-size: 36px;
  line-height: 1.25;
  margin: 52px 0 20px;
}

.article-content h3 {
  font-size: 29px;
  line-height: 1.3;
  margin: 42px 0 18px;
}

.article-content h4 {
  font-size: 23px;
  line-height: 1.35;
  margin: 34px 0 16px;
}

.article-content ul,
.article-content ol {
  margin: 0 0 28px;
  padding-left: 28px;
}

.article-content li {
  margin-bottom: 10px;
  padding-left: 5px;
}

.article-content a {
  color: #267a72;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-content a:hover {
  color: #c74629;
}

.article-content blockquote {
  background: #edf7f5;
  border-left: 5px solid #45a79d;
  color: #274a46;
  font-size: 21px;
  margin: 36px 0;
  padding: 24px 28px;
}

.article-content details {
  background: #ffffff;
  border: 1px solid #dce8e6;
  border-radius: 10px;
  margin: 14px 0;
  padding: 16px 18px;
}

.article-content summary {
  color: #17312e;
  cursor: pointer;
  font-weight: 700;
}

.article-content img {
  border-radius: 12px;
  display: block;
  height: auto;
  margin: 34px auto;
  max-width: 100%;
}

.article-content table {
  border-collapse: collapse;
  display: block;
  margin: 30px 0;
  max-width: 100%;
  overflow-x: auto;
  width: max-content;
}

.article-content th,
.article-content td {
  border: 1px solid #ccdcd9;
  padding: 12px 14px;
  vertical-align: top;
}

.article-content pre {
  background: #172a27;
  border-radius: 10px;
  color: #f1f8f7;
  overflow-x: auto;
  padding: 20px;
}

.article-actions {
  margin: 22px auto 64px;
  max-width: 860px;
  padding: 0 24px;
  text-align: center;
}

.article-nav {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto 82px;
  max-width: 980px;
  padding: 0 24px;
}

.article-nav-card {
  background: #ffffff;
  border: 1px solid #dbe6e4;
  border-radius: 14px;
  color: #17312e;
  display: flex;
  flex-direction: column;
  min-height: 126px;
  padding: 22px;
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease;
}

.article-nav-card:hover {
  border-color: #91c5bf;
  color: #17312e;
  text-decoration: none;
  transform: translateY(-3px);
}

.article-nav-label {
  color: #43817b;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.article-nav-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
}

.posts-grid--home .post-card > a {
  border-radius: 12px;
}

.posts-grid--home .post-card-content {
  padding: 20px;
}

.posts-grid--home .post-card h2 {
  font-size: 20px;
}

.posts-grid--home .post-card p {
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .posts-grid--home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .blog-archive-hero {
    padding: 72px 0 58px;
  }

  .blog-list {
    padding: 58px 0 72px;
  }

  .blog-list-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .posts-grid,
  .posts-grid--home,
  .article-nav {
    grid-template-columns: 1fr;
  }

  .post-card h2 {
    font-size: 22px;
  }

  .article-header {
    padding: 48px 0 45px;
  }

  .article-back-link {
    margin-bottom: 30px;
  }

  .article-hero-image {
    margin-top: 30px;
    padding: 0 16px;
  }

  .article-hero-image img {
    border-radius: 12px;
  }

  .article-content {
    font-size: 18px;
    padding: 44px 20px 20px;
  }

  .article-content p,
  .article-content li {
    font-size: 18px;
  }

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

  .article-content h3 {
    font-size: 25px;
  }

  .blog-cta h2 {
    font-size: 32px;
  }
}

@media (max-width: 430px) {
  .blog-container,
  .article-container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .blog-archive-hero p {
    font-size: 18px;
  }

  .post-card-content {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .post-card > a,
  .post-card-media img,
  .article-nav-card {
    transition: none;
  }
}
