.guide-page {
  font-family: "Manrope Navigation", Manrope, Arial, sans-serif;
}

.guide-hero {
  border-bottom: 1px solid var(--line);
}

.guide-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 12px;
  padding-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

.guide-breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.guide-breadcrumb a:hover {
  text-decoration: underline;
}

.guide-breadcrumb .guide-parent-link {
  color: var(--purple);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guide-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 74px);
  padding-block: 36px 62px;
}

.guide-title h1 {
  font-size: clamp(39px, 4.2vw, 58px);
  font-weight: 800;
  line-height: 1.08;
  text-wrap: balance;
}

.guide-title h1 em {
  color: var(--purple);
}

.guide-byline {
  margin-top: 21px;
  color: var(--purple);
  font-size: 14px;
  font-weight: 800;
}

.guide-lead {
  max-width: 59ch;
  margin-top: 19px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.8;
}

.guide-cover,
.guide-inline-photo {
  overflow: hidden;
  margin: 0;
  background: var(--lavender);
}

.guide-cover {
  aspect-ratio: 8 / 5;
  border-radius: 76px 12px 12px 12px;
}

.guide-cover img,
.guide-inline-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(205px, 250px) minmax(0, 850px);
  justify-content: space-between;
  align-items: start;
  gap: clamp(30px, 6vw, 95px);
  padding-block: 54px 84px;
}

.guide-toc {
  position: sticky;
  top: 122px;
  padding: 20px 18px 14px;
  border-radius: 12px;
  background: var(--lavender);
}

.guide-toc h2 {
  padding-inline: 8px;
  color: var(--purple-deep);
  font-size: 18px;
  font-weight: 800;
}

.guide-toc ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.guide-toc a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 8px;
  border-radius: 5px;
  color: var(--purple-deep);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.guide-toc a:hover {
  background: var(--white);
  text-decoration: underline;
}

.guide-copy {
  min-width: 0;
}

.guide-copy p {
  max-width: 72ch;
  color: var(--ink);
  line-height: 1.8;
}

.guide-copy p + p {
  margin-top: 17px;
}

.guide-section {
  margin-top: 45px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.guide-section h2 {
  max-width: 30ch;
  margin-block: 12px 17px;
  color: var(--purple-deep);
  font-size: clamp(26px, 2.5vw, 38px);
  text-wrap: balance;
}

.guide-section h3 {
  margin-block: 32px 12px;
  color: var(--purple);
  font-size: clamp(20px, 2vw, 25px);
}

.guide-inline-photo {
  aspect-ratio: 2 / 1;
  margin-top: 30px;
  border-radius: 12px;
}

.guide-inline-photo img {
  object-position: 50% 44%;
}

.guide-table-wrap {
  margin-block: 20px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}

.guide-table th,
.guide-table td {
  padding: 13px 14px;
  text-align: start;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.guide-table thead {
  background: var(--purple-deep);
  color: var(--white);
}

.guide-table tbody th {
  color: var(--purple-deep);
  font-weight: 800;
}

.guide-table tbody tr:nth-child(even) {
  background: var(--paper);
}

.guide-table tbody tr + tr {
  border-top: 1px solid var(--line);
}

.guide-table-label {
  display: none;
}

.guide-copy .guide-source {
  color: var(--muted);
  font-size: 14px;
}

.guide-copy a {
  color: var(--purple);
  font-weight: 800;
  text-decoration: underline;
}

.guide-copy a:hover {
  color: var(--pink-dark);
}

.guide-copy .guide-related {
  margin-top: 38px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.guide-related a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (max-width: 1020px) {
  .guide-layout {
    grid-template-columns: minmax(0, 850px);
    justify-content: center;
    gap: 30px;
    padding-block: 33px 62px;
  }

  .guide-toc {
    position: static;
  }

  .guide-toc ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 760px) {
  .guide-breadcrumb {
    gap: 0 8px;
    padding-top: 9px;
  }

  .guide-intro {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 17px 32px;
  }

  .guide-title h1 {
    max-width: 16ch;
    font-size: clamp(34px, 6.8vw, 48px);
  }

  .guide-lead {
    font-size: 16px;
  }

  .guide-cover {
    border-top-left-radius: 46px;
  }

  .guide-inline-photo {
    aspect-ratio: 3 / 2;
  }

  .guide-section {
    margin-top: 33px;
  }

  /* Keep table headers in the accessibility tree when rows reflow. */
  .guide-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .guide-table,
  .guide-table tbody,
  .guide-table tbody tr,
  .guide-table tbody th {
    display: block;
  }

  .guide-table tbody th {
    padding-block: 14px 9px;
  }

  .guide-table td {
    display: grid;
    grid-template-columns: minmax(88px, 0.55fr) minmax(0, 1fr);
    gap: 12px;
    padding-block: 6px 10px;
  }

  .guide-table-label {
    display: block;
    color: var(--muted);
    font-weight: 800;
  }
}

@media (max-width: 480px) {
  .guide-toc ul {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media print {
  .guide-page > .header,
  .guide-page > footer,
  .guide-page .skip,
  .guide-breadcrumb,
  .guide-cover,
  .guide-inline-photo,
  .guide-toc {
    display: none;
  }

  .guide-page,
  .guide-table,
  .guide-table thead {
    background: white;
    color: black;
  }

  .guide-page .wrap {
    width: 100%;
  }

  .guide-intro,
  .guide-layout {
    display: block;
    padding-block: 10px;
  }

  .guide-title h1 {
    max-width: none;
    font-size: 30pt;
  }

  .guide-section {
    margin-top: 16pt;
  }

  .guide-section h2,
  .guide-section h3,
  .guide-table tr {
    break-inside: avoid;
  }

  .guide-section h2,
  .guide-section h3 {
    break-after: avoid;
  }

  .guide-table-wrap {
    overflow: visible;
  }
}
