/* Guides: /guides/ and /guides/<slug>/. Copied into dist/ and linked after styles.css on
   every page only once a guide is published, so styles.css never changes for guides.
   Uses the tokens in styles.css. */

/* The Guides link adds a primary nav item; keep the desktop header on one line until the
   menu collapses at 820px. */
@media (min-width: 821px) and (max-width: 1040px) {
  .site-header {
    gap: 14px;
  }

  .site-nav {
    gap: 12px;
    font-size: 12.5px;
  }

  .site-nav .nav-cta {
    padding: 9px 14px;
  }
}

.guide-container {
  max-width: 760px;
}

.guide-hero {
  padding: 140px 0 56px;
}

.guide-page .guide-hero .breadcrumb a {
  color: var(--text-soft);
  font-weight: inherit;
}

.guide-hero .breadcrumb li[aria-current="page"] {
  overflow-wrap: anywhere;
}

.guide-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--navy-deep);
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.guide-type {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(31, 95, 191, 0.08);
  color: var(--link);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.guide-dek {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--text-soft);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5;
}

.guide-intro {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 16px;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 22px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.guide-meta span:not(:last-child)::after {
  content: "\00b7";
  margin: 0 10px;
}

.guide-body-section {
  padding: 56px 0 88px;
}

.guide-body {
  color: var(--text);
  font-size: 18px;
  line-height: 1.7;
}

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

.guide-body h2 {
  margin: 44px 0 12px;
  color: var(--navy-deep);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 780;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

.guide-body h3 {
  margin: 32px 0 8px;
  color: var(--navy-deep);
  font-size: 20px;
  font-weight: 760;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.guide-body p {
  margin: 0 0 18px;
}

.guide-body strong {
  color: var(--navy-deep);
}

.guide-page .guide-body ul,
.guide-page .guide-body ol {
  margin: 0 0 22px;
  padding-left: 1.3em;
  color: var(--text);
}

.guide-page .guide-body li {
  margin: 0.5em 0;
  padding-left: 0.2em;
}

.guide-page .guide-body a {
  overflow-wrap: anywhere;
}

.guide-related {
  padding: 64px 0;
}

.guide-related h2 {
  margin: 0 0 18px;
  color: var(--navy-deep);
  font-size: 22px;
  font-weight: 780;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.guide-related ul + h2 {
  margin-top: 44px;
}

.guide-page ul.guide-related-list,
.guide-page ul.guide-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: inherit;
}

.guide-page ul.guide-related-list {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.guide-page .guide-related-list > li,
.guide-page .guide-list > li {
  margin: 0;
}

.guide-page .guide-related-list a {
  display: block;
  height: 100%;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(10, 25, 48, 0.05);
  color: var(--text);
  font-weight: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.guide-page .guide-related-list a:hover {
  border-color: var(--line-strong);
  box-shadow: 0 16px 40px rgba(10, 25, 48, 0.09);
}

.guide-related-list strong {
  display: block;
  color: var(--navy-deep);
  font-size: 16px;
  font-weight: 760;
}

.guide-related-list span {
  display: block;
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.5;
}

.guide-card {
  position: relative;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: 0 20px 60px rgba(10, 25, 48, 0.06);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.guide-card:hover {
  border-color: var(--line-strong);
}

.guide-card .guide-type {
  margin-bottom: 12px;
}

.guide-card h2,
.guide-card h3 {
  margin: 0;
  color: var(--navy-deep);
  font-size: clamp(22px, 2.6vw, 26px);
  font-weight: 780;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.guide-card h3 {
  font-size: 19px;
}

.guide-page .guide-card h2 a,
.guide-page .guide-card h3 a {
  color: inherit;
  font-weight: inherit;
}

.guide-card h2 a::after,
.guide-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.guide-card h2 a:hover,
.guide-card h3 a:hover,
.guide-card h2 a:focus-visible,
.guide-card h3 a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guide-card-description {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 16px;
}

.guide-card .guide-meta {
  margin-top: 14px;
  font-size: 13.5px;
}

.guide-related .guide-card {
  padding: 22px 24px;
  box-shadow: 0 12px 34px rgba(10, 25, 48, 0.05);
}

@media (max-width: 820px) {
  .guide-hero {
    padding: 120px 0 40px;
  }

  .guide-body-section {
    padding: 40px 0 64px;
  }

  .guide-related {
    padding: 48px 0;
  }
}

@media (max-width: 560px) {
  .guide-hero h1 {
    font-size: 34px;
  }

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

  .guide-card {
    padding: 22px 20px;
  }
}
