.guide-header .header-inner {
  justify-content: space-between;
}
.guide-header .button {
  min-height: 48px;
}
.guide-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding-block: 56px 64px;
}
.guide-hero h1 {
  margin-block: 32px;
  font-size: clamp(32px, 4vw, 58px);
  letter-spacing: 0;
  line-height: 1.2;
}
.guide-hero .guide-cover {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.guide-byline {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.guide-author-photo {
  width: 60px;
  height: 76px;
  flex-shrink: 0;
  overflow: hidden;
}
.guide-byline img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0 0;
  transform: scale(3);
  transform-origin: 0 37%;
}
.guide-byline strong {
  display: block;
  color: var(--cream);
}
.guide-paper {
  background: var(--cream);
  color: var(--black);
  padding-block: clamp(40px, 6vw, 80px);
}
.guide-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.guide-toc {
  position: sticky;
  top: 32px;
  border-top: 3px solid var(--black);
  padding-top: 20px;
  font-size: 13px;
}
.guide-toc ol {
  margin: 16px 0 0;
  padding-left: 24px;
}
.guide-toc li + li {
  margin-top: 14px;
}
.guide-toc a {
  display: inline-block;
  padding-block: 4px;
}
.guide-copy {
  max-width: 72ch;
  min-width: 0;
  font-size: 16px;
  line-height: 1.95;
}
.guide-copy > p + p {
  margin-top: 24px;
}
.guide-copy h2 {
  margin-block: 64px 24px;
  font-size: clamp(25px, 2.5vw, 34px);
  letter-spacing: 0;
  scroll-margin-top: 112px;
}
.guide-copy a,
.guide-toc a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}
.guide-paper a:focus-visible {
  outline-color: var(--black);
}
.guide-copy ul {
  padding-left: 24px;
  margin-block: 24px;
}
.guide-copy li + li {
  margin-top: 12px;
}
.guide-table {
  margin-block: 32px;
}
.guide-table table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
  font-size: 14px;
  line-height: 1.7;
}
.guide-table th,
.guide-table td {
  text-align: left;
  vertical-align: top;
  padding: 18px 16px;
  border-bottom: 1px solid var(--light-line);
  overflow-wrap: anywhere;
}
.guide-table thead {
  background: var(--black);
  color: var(--cream);
}
.guide-table tbody th {
  font-weight: 400;
}
.guide-table td:empty {
  background: #e6e4dc;
}
.guide-table table.worksheet th:first-child {
  width: 65%;
}
.guide-table table.worksheet td {
  min-height: 64px;
}
.guide-close {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding-block: 48px;
}
@media (max-width: 900px) {
  .guide-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .guide-toc {
    position: static;
  }
}
@media (max-width: 600px) {
  .guide-header .brand {
    width: 100px;
  }
  .guide-header .button {
    padding: 12px;
    font-size: 12px;
  }
  .guide-hero {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 32px 40px;
  }
  .guide-hero .guide-cover {
    aspect-ratio: 16 / 10;
    object-position: center 35%;
  }
  .guide-copy {
    font-size: 15px;
    line-height: 1.9;
  }
  .guide-table th,
  .guide-table td {
    padding: 14px 10px;
    font-size: 13px;
  }
}
@media print {
  .guide-header,
  .guide-cover,
  .guide-toc,
  .guide-close,
  .site-footer {
    display: none;
  }
  body,
  .guide-paper {
    background: white;
    color: black;
  }
  .guide-hero,
  .guide-layout {
    display: block;
  }
  .guide-hero h1 {
    font-size: 30px;
  }
  .guide-byline,
  .guide-byline strong {
    color: black;
  }
  .guide-copy {
    max-width: none;
  }
  .guide-copy h2 {
    break-after: avoid;
  }
  .guide-table tr {
    break-inside: avoid;
  }
}
