.guide-page {
  --reading-width: 1140px;
  background: #f8fbfd;
  color: #112e48;
}
.guide-wrap {
  width: min(calc(100% - 2 * clamp(18px, 4.6vw, 68px)), var(--reading-width));
  margin-inline: auto;
}
.guide-header, .guide-header nav, .guide-footer .guide-wrap, .guide-crumbs {
  display: flex;
  align-items: center;
}
.guide-header { min-height: 64px; gap: 24px; }
.guide-header nav { gap: 4px; margin-left: auto; }
.guide-header nav a, .guide-footer a {
  padding: 8px 12px;
  border-radius: 5px;
  transition: color .18s ease, background .18s ease;
}
.guide-header nav a:hover, .guide-footer a:hover { color: white; background: #224561; }
.guide-hero {
  color: #f4faff;
  background-color: #0b2943;
  background-image: linear-gradient(90deg, #071f38 12%, #092c49f7 49%, #092b46d6 76%, #08304d99), url('/assets/station.webp');
  background-position: center, right 53%;
  background-size: cover, cover;
  padding: clamp(18px, 2.6vw, 32px) 0 clamp(27px, 4vw, 48px);
}
.guide-crumbs { gap: 8px; color: #c3dae8; font-size: 13px; line-height: 1.42; }
.guide-crumbs a { color: #a3eaff; text-underline-offset: .2em; }
.guide-crumbs a:hover { text-decoration: underline; }
.guide-hero h1 {
  max-width: 21ch;
  margin-top: 18px;
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 1.05;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
.guide-intro {
  max-width: 74ch;
  color: #edf7ff;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.52;
  margin-top: 16px;
}
.guide-byline { margin-top: 17px; color: #afd0df; font-size: 13px; }
.guide-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(205px, .32fr);
  grid-template-areas: "copy contents";
  gap: clamp(24px, 5.5vw, 80px);
  padding-block: clamp(26px, 3.4vw, 42px);
}
.guide-copy { grid-area: copy; min-width: 0; }
.guide-contents { grid-area: contents; min-width: 0; }
.guide-contents nav {
  position: sticky;
  top: 18px;
  border-left: 2px solid #9ccddf;
  padding: 3px 0 2px 17px;
}
.guide-contents h2 {
  margin-bottom: 8px;
  font-size: 17px;
  letter-spacing: -.01em;
}
.guide-contents ul, .guide-related ul { list-style: none; margin: 0; padding: 0; }
.guide-contents li + li { margin-top: 2px; }
.guide-contents a { display: block; padding: 5px 0; font-size: 14px; line-height: 1.43; color: #365872; }
.guide-contents a:hover { color: #065a8f; text-decoration: underline; text-underline-offset: .18em; }
.guide-section + .guide-section { margin-top: clamp(24px, 3vw, 38px); border-top: 1px solid #d0dfe8; padding-top: clamp(20px, 2.3vw, 28px); }
.guide-section h2, .guide-related h2 { font-size: clamp(24px, 2.6vw, 35px); line-height: 1.15; letter-spacing: -.035em; }
.guide-section h2 { scroll-margin-top: 20px; }
.guide-section p { margin-top: 12px; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.6; }
.guide-section p a, .guide-sources a { color: #075487; text-decoration: underline; text-decoration-color: #86adc1; text-underline-offset: .15em; }
.guide-section p a:hover, .guide-sources a:hover { color: #003359; text-decoration-color: currentColor; }
.guide-table {
  max-width: 100%;
  overflow-x: auto;
  margin-top: 16px;
  border: 1px solid #b5cfdc;
  border-radius: 8px;
  background: white;
  scrollbar-width: thin;
}
.guide-table table { width: 100%; border-collapse: collapse; font-size: clamp(14px, 1.13vw, 16px); line-height: 1.48; }
.guide-table th, .guide-table td { text-align: left; vertical-align: top; padding: 10px 14px; overflow-wrap: break-word; }
.guide-table thead th { background: #143c5c; color: white; font-weight: 650; }
.guide-table tbody th { font-weight: 540; }
.guide-table tbody tr + tr { border-top: 1px solid #d6e5eb; }
.guide-table tbody tr:nth-child(even) { background: #f1f7fa; }
.guide-terms { margin-top: 13px; }
.guide-terms > div { padding: 12px 15px; background: #eff6fa; border-left: 3px solid #8bbccf; }
.guide-terms > div + div { margin-top: 7px; }
.guide-terms dt { font-weight: 700; color: #174d71; margin-bottom: 2px; }
.guide-terms dd { line-height: 1.5; }
.guide-sources { margin: 13px 0 0; padding-inline-start: 1.2em; font-size: 14px; }
.guide-sources li + li { margin-top: 5px; }
.guide-related { background: #e6f0f6; border-top: 1px solid #c9dbe6; padding-block: clamp(23px, 3vw, 34px); }
.guide-related ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; margin-top: 12px; }
.guide-related a { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 100%; padding: 9px 3px; border-bottom: 1px solid #bdd2df; color: #184964; }
.guide-related a::after { content: "→"; color: #11679a; flex: none; }
.guide-related a:hover { color: #064369; background: #d8eaf3; }
.guide-footer { padding-block: 15px; background: #09243c; color: #d3e7f3; font-size: 14px; }
.guide-footer .guide-wrap { flex-wrap: wrap; gap: 3px 14px; }
.guide-footer span { margin-right: auto; }
@media (max-width: 760px) {
  .guide-body { grid-template-columns: 1fr; grid-template-areas: "contents" "copy"; gap: 24px; }
  .guide-contents nav { position: static; }
  .guide-contents ul { columns: 2; column-gap: 15px; }
  .guide-contents li { break-inside: avoid; }
  .guide-header { min-height: 58px; gap: 12px; }
  .guide-header nav { display: none; }
  .guide-header .mast-cta { margin-left: auto; }
}
@media (max-width: 500px) {
  .guide-hero { background-image: linear-gradient(112deg, #071e38, #103a57); }
  .guide-crumbs { align-items: baseline; font-size: 12px; }
  .guide-header .brand { font-size: 25px; }
  .guide-contents ul { columns: auto; }
  .guide-related ul { grid-template-columns: 1fr; }
  .guide-table th, .guide-table td { padding: 8px; min-width: 4.4em; }
  .guide-footer .guide-wrap { align-items: flex-start; flex-direction: column; }
  .guide-footer a { padding-inline: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .guide-page *, .guide-page *::before, .guide-page *::after { transition: none !important; }
}
