.guides-hero {
  padding: 54px 0 24px;
}

.guides-hero h1 {
  max-width: 760px;
  margin-bottom: 16px;
}

.guides-hero > .container > p {
  max-width: 700px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.guides-section {
  padding-top: 18px;
  padding-bottom: 70px;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

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

.guide-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}

.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.guide-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.guide-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--teal-soft);
}

.guide-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 22px 21px;
}

.guide-card-tag {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--teal-mist);
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.guide-card h2 {
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.22;
}

.guide-card p {
  flex: 1;
  margin-bottom: 17px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.guide-card-meta {
  color: #5E7173;
  font-size: 10px;
  font-weight: 700;
}

.guides-all-link {
  margin-top: 26px;
}

.home-guides {
  background: var(--bg);
}

.home-guides .guides-grid {
  margin-top: 24px;
}

.article-hero {
  padding: 34px 0 28px;
  background: var(--bg);
}

.article-hero-inner {
  max-width: 900px;
}

.article-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #8F4F12;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.article-hero h1 {
  max-width: 850px;
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
}

.article-lead {
  max-width: 760px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.75;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  margin-top: 22px;
  color: #5E7173;
  font-size: 11px;
  font-weight: 700;
}

.article-cover {
  margin: 0;
  padding: 0;
}

.article-cover img {
  width: 100%;
  height: clamp(260px, 42vw, 520px);
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
}

.article-main {
  padding: 38px 0 72px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 46px;
  align-items: start;
}

.article-body {
  max-width: 780px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.8;
}

.article-body h2 {
  margin: 34px 0 12px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(27px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.2;
}

.article-body h3 {
  margin: 25px 0 9px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.article-body p {
  margin-bottom: 16px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 21px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-body strong {
  color: var(--ink);
}

.article-callout {
  margin: 28px 0;
  padding: 20px 22px;
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  background: var(--teal-mist);
}

.article-callout strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 16px;
}

.article-callout p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.7;
}

.article-aside {
  position: sticky;
  top: 100px;
}

.article-aside-card {
  padding: 22px;
  border-radius: 16px;
  background: var(--teal-deep);
  color: var(--white);
}

.article-aside-card h2 {
  margin-bottom: 9px;
  color: var(--white);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.15;
}

.article-aside-card p {
  margin-bottom: 16px;
  color: #D1DFDB;
  font-size: 12px;
  line-height: 1.7;
}

.article-aside-card .btn {
  margin-top: 6px;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 22px;
  color: #5E7173;
  font-size: 11px;
  font-weight: 700;
}

.article-related {
  padding: 34px 0 0;
  border-top: 1px solid var(--line);
  margin-top: 44px;
}

.article-related h2 {
  margin-bottom: 20px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
}

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

.article-related-grid .guide-card h2 {
  font-size: 18px;
}

.article-related-grid .guide-card p {
  font-size: 11px;
}

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

  .article-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .article-aside {
    position: static;
  }

  .article-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .guides-hero {
    padding-top: 34px;
  }

  .guides-grid,
  .guides-grid-3,
  .article-related-grid {
    grid-template-columns: 1fr;
  }

  .guide-card-body {
    padding: 17px 18px 18px;
  }

  .guide-card h2 {
    font-size: 20px;
  }

  .article-hero {
    padding-top: 25px;
  }

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

  .article-body h2 {
    margin-top: 28px;
  }

  .article-main {
    padding-top: 25px;
  }
}
