.guide-header,
.guide-footer,
.guide-main {
  width: min(72rem, calc(100% - 2rem));
  margin-inline: auto;
}

.guide-header {
  min-height: 5.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.guide-header nav,
.guide-footer nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}

.guide-header nav a,
.guide-footer a {
  color: var(--navy);
  font-size: .92rem;
  font-weight: 750;
  text-decoration: none;
  text-underline-offset: .25rem;
}

.guide-header nav a:hover,
.guide-footer a:hover {
  text-decoration: underline;
}

.guide-hero,
.category-hero {
  max-width: 53rem;
  padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(3rem, 7vw, 5rem);
}

.guide-hero h1,
.category-hero h1,
.article-header h1 {
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  letter-spacing: -.045em;
}

.guide-hero > p:last-child,
.category-hero > p:last-child {
  max-width: 46rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.category-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.category-nav a {
  min-height: 11rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.35rem;
  border: 2px solid var(--navy);
  border-radius: 9px;
  background: var(--white);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease;
}

.category-nav a:nth-child(2) { border-color: var(--teal); }
.category-nav a:nth-child(3) { border-color: var(--coral); }
.category-nav a:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 rgba(23, 50, 77, .16); }
.category-nav strong { color: var(--navy); font: 700 1.45rem/1.15 Georgia, "Times New Roman", serif; }
.category-nav span { color: var(--muted); font-size: .94rem; }

.guide-list {
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--line);
}

.guide-section-heading { margin-bottom: 2rem; }
.guide-section-heading h2 { margin: 0; font: 700 clamp(2.2rem, 5vw, 3.6rem)/1.1 Georgia, "Times New Roman", serif; }
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }

.guide-card {
  min-height: 18rem;
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
}

.guide-card-category {
  margin-bottom: .75rem;
  color: var(--teal);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.guide-card h2 { margin-bottom: .8rem; font: 700 clamp(1.55rem, 3vw, 2.05rem)/1.15 Georgia, "Times New Roman", serif; }
.guide-card h2 a { text-decoration: none; }
.guide-card h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25rem; }
.guide-card > p:not(.guide-card-category) { color: var(--muted); }
.guide-card > div { margin-top: auto; display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .88rem; }
.guide-card > div span { color: var(--muted); }
.guide-card > div a { color: var(--teal); font-weight: 800; text-decoration: none; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding-top: 1.5rem;
  color: var(--muted);
  font-size: .84rem;
}

.breadcrumbs a { color: var(--teal); font-weight: 700; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

.category-switcher {
  margin: clamp(4rem, 9vw, 7rem) 0;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper-deep);
}

.category-switcher h2 { font-size: 1.15rem; }
.category-switcher div { display: flex; flex-wrap: wrap; gap: .75rem; }
.category-switcher a { padding: .65rem .85rem; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--navy); font-weight: 750; text-decoration: none; }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 47rem) minmax(14rem, 1fr);
  align-items: start;
  gap: clamp(2rem, 7vw, 6rem);
}

.article-header { padding: clamp(3.5rem, 8vw, 6.5rem) 0 3rem; border-bottom: 1px solid var(--line); }
.article-header h1 { font-size: clamp(2.75rem, 6vw, 4.9rem); }
.article-dek { max-width: 43rem; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.28rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: .7rem 1.4rem; color: var(--muted); font-size: .85rem; }
.article-cta { margin-top: 1.6rem; }

.article-body { padding: 1rem 0 3rem; }
.article-body section { padding-top: 2.4rem; }
.article-body h2,
.faq h2 { font: 700 clamp(1.75rem, 4vw, 2.45rem)/1.15 Georgia, "Times New Roman", serif; }
.article-body p,
.article-body li,
.faq p { color: #3f505d; font-size: 1.04rem; line-height: 1.75; }
.article-body ul { padding-left: 1.3rem; }
.article-body li + li { margin-top: .55rem; }

.faq { margin-bottom: clamp(4rem, 8vw, 7rem); padding-top: 3rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 1.15rem 2rem 1.15rem 0; color: var(--navy); font-weight: 800; cursor: pointer; }
.faq details p { padding-right: 2rem; }

.related-guides {
  position: sticky;
  top: 1.5rem;
  margin-top: 8rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
}

.related-guides h2 { font: 700 1.4rem/1.15 Georgia, "Times New Roman", serif; }
.related-guides > a { display: grid; gap: .3rem; padding: 1rem 0; border-top: 1px solid var(--line); color: var(--navy); text-decoration: none; }
.related-guides > a strong { line-height: 1.3; }
.related-guides > a span { color: var(--muted); font-size: .8rem; }
.related-guides > a:hover strong { text-decoration: underline; }
.related-guides .all-guides-link { display: block; color: var(--teal); font-weight: 800; }

.guide-footer {
  min-height: 8rem;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 2rem;
  border-top: 1px solid var(--line);
}

.guide-footer > p { margin: 0; color: var(--muted); font-size: .8rem; }

@media (max-width: 820px) {
  .category-nav { grid-template-columns: 1fr; }
  .category-nav a { min-height: 8rem; }
  .article-layout { grid-template-columns: 1fr; }
  .related-guides { position: static; margin: 0 0 4rem; }
  .guide-footer { grid-template-columns: 1fr; gap: 1rem; padding-block: 2rem; }
}

@media (max-width: 620px) {
  .guide-header { min-height: 4.5rem; }
  .guide-header nav a:first-child { display: none; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card { min-height: 16rem; }
}
