/* ==========================================================================
   Resources: guide hub (/resources/) and guide detail template
   (/resources/<slug>/). Hub classes use the res- prefix, detail classes guide-.
   ========================================================================== */

/* ---------- Hub hero ---------- */
.res-hero {
  padding-bottom: clamp(64px, 8vw, 120px);
}
.res-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(44px, 6vw, 88px);
  align-items: end;
}
.res-hero__title {
  margin-top: var(--space-5);
  max-width: 12ch;
}
.res-hero__lede {
  margin-top: var(--space-5);
  max-width: 54ch;
}
.res-hero__facts,
.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  list-style: none;
  margin: var(--space-6) 0 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.res-hero__facts li,
.guide-meta li {
  padding-inline: 14px;
  border-left: 1px solid var(--rule-2);
  line-height: 1.5;
}
.res-hero__facts li:first-child,
.guide-meta li:first-child {
  padding-left: 0;
  border-left: 0;
}
@media (max-width: 719px) {
  .res-hero__facts,
  .guide-meta {
    flex-direction: column;
    gap: 8px;
  }
  .res-hero__facts li,
  .guide-meta li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    border-left: 0;
  }
  .res-hero__facts li::before,
  .guide-meta li::before {
    content: '';
    width: 12px;
    height: 1px;
    background: var(--rule-3);
    flex: none;
  }
}
@media (min-width: 1024px) {
  .res-hero__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  }
}

/* Schematic lot plan */
.res-hero__plan {
  position: relative;
  margin: 0;
  padding: clamp(24px, 2.4vw, 30px) clamp(24px, 2.4vw, 30px) clamp(32px, 3vw, 36px);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-l);
  background:
    radial-gradient(90% 70% at 70% 30%, rgba(70, 219, 232, 0.06), transparent 70%),
    linear-gradient(180deg, rgba(13, 22, 38, 0.8), rgba(7, 12, 22, 0.5));
}
.res-hero__plan .figure-caption {
  margin-top: var(--space-4);
}
.lp {
  width: 100%;
  height: auto;
  overflow: visible;
}
.lp path,
.lp rect,
.lp circle {
  vector-effect: non-scaling-stroke;
  stroke-width: 1;
}
.lp-site {
  fill: none;
  stroke: var(--line-d3);
}
.lp-road {
  fill: none;
  stroke: var(--line-d2);
}
.lp-road--centre {
  stroke: var(--line-d1);
  stroke-dasharray: 10 8;
}
.lp-building {
  fill: url(#lp-hatch);
  stroke: var(--line-d3);
}
.lp-hatch {
  stroke: rgba(160, 185, 215, 0.16);
}
.lp-zone {
  fill: rgba(70, 219, 232, 0.035);
  stroke: rgba(126, 234, 243, 0.45);
  stroke-dasharray: 3 4;
}
.lp-zone--seasonal {
  fill: rgba(160, 185, 215, 0.03);
  stroke: rgba(160, 185, 215, 0.45);
  stroke-dasharray: 1 4;
}
.lp-row {
  fill: none;
  stroke: rgba(160, 185, 215, 0.45);
}
.lp-tick {
  fill: none;
  stroke: rgba(160, 185, 215, 0.26);
}
.lp-unmarked {
  fill: none;
  stroke: rgba(160, 185, 215, 0.34);
  stroke-dasharray: 2 6;
}
.lp-ref circle,
.lp-ref path,
.lp-ref-mini {
  fill: none;
  stroke: var(--cyan-400);
}
.lp-vehicle {
  fill: var(--cyan-400);
  stroke: none;
}
.lp-ring {
  fill: none;
  stroke: var(--cyan-400);
  opacity: 0.55;
  transform-box: fill-box;
  transform-origin: center;
}
.lp-tag {
  fill: rgba(5, 9, 17, 0.88);
  stroke: rgba(126, 234, 243, 0.6);
}
.lp-leader {
  fill: none;
  stroke: rgba(126, 234, 243, 0.6);
}
.lp-north {
  fill: none;
  stroke: var(--text-2);
}
.lp-t {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  fill: var(--text-2);
}
.lp-t--minor {
  font-size: 11.5px;
  fill: var(--text-3);
}
.lp-t--accent {
  fill: var(--cyan-300);
}
.lp-t--tag {
  font-size: 11px;
  fill: #e6fbfd;
}
@media (max-width: 599px) {
  .lp-t {
    font-size: 19px;
  }
  .lp-t--minor,
  .lp-legend,
  .lp-tagset {
    display: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .lp-g {
    animation: lp-in 900ms var(--ease-out) both;
    animation-delay: calc(250ms + var(--d, 0) * 110ms);
  }
  .lp-ring {
    animation: lp-pulse 2.8s var(--ease-out) 1.4s 4 both;
  }
}
@keyframes lp-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes lp-pulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  60% {
    transform: scale(2.3);
    opacity: 0;
  }
  61% {
    transform: scale(1);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0.55;
  }
}

/* ---------- Hub featured guide ---------- */
.res-featured__grid {
  display: grid;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
.res-featured__box {
  left: 6.5%;
  top: 67.5%;
  width: 12%;
  height: 9%;
}
.res-featured__title {
  margin-top: var(--space-4);
  max-width: 17ch;
}
.res-featured__meta {
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.res-featured__summary {
  margin-top: var(--space-5);
  max-width: 48ch;
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--fg-2);
}
.res-featured__inside {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--rule-2);
}
.res-featured__toc {
  display: grid;
  gap: 0 28px;
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
}
.res-featured__toc a {
  display: flex;
  gap: 12px;
  padding: 7px 0;
  color: var(--fg-2);
  font-size: 0.93rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color var(--dur-fast);
}
.res-featured__toc a span {
  flex: none;
  padding-top: 0.18em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
}
.res-featured__toc a:hover {
  color: var(--fg);
}
.res-featured .btn-row {
  margin-top: var(--space-6);
}
@media (min-width: 600px) {
  .res-featured__toc {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 960px) {
  .res-featured__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

/* ---------- Hub library index ---------- */
.res-index {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule-3);
}
.res-index__item {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 24px;
  gap: 12px 14px;
  padding-block: clamp(26px, 3vw, 40px);
  border-bottom: 1px solid var(--rule-2);
}
.res-index__item::before {
  content: '';
  position: absolute;
  inset: 0 calc(-1 * clamp(10px, 1.6vw, 24px));
  z-index: -1;
  border-radius: var(--radius);
  background: var(--surface);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
}
.res-index__num {
  grid-column: 1;
  grid-row: 1;
  padding-top: 0.2em;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--fg-3);
}
.res-index__head,
.res-index__summary,
.res-index__meta {
  grid-column: 2;
}
.res-index__topic {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.res-index__title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-wrap: balance;
}
.res-index__title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast);
}
.res-index__title a::after {
  content: '';
  position: absolute;
  inset: 0 calc(-1 * clamp(10px, 1.6vw, 24px));
  border-radius: var(--radius);
}
.res-index__title a:focus-visible {
  outline: none;
}
.res-index__title a:focus-visible::after {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.res-index__summary {
  max-width: 56ch;
  color: var(--fg-2);
}
.res-index__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 0;
}
.res-index__meta div {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.res-index__meta dt {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.res-index__meta dd {
  margin: 0;
  font-size: 0.92rem;
  color: var(--fg-2);
}
.res-index__go {
  grid-column: 3;
  grid-row: 1;
  padding-top: 0.1em;
  color: var(--fg-3);
  transition:
    color var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
}
.res-index__item:hover::before {
  opacity: 1;
}
.res-index__item:hover .res-index__title a {
  color: var(--accent);
}
.res-index__item:hover .res-index__go {
  color: var(--accent);
  transform: translateX(4px);
}
@media (min-width: 1024px) {
  .res-index__item {
    grid-template-columns: 64px minmax(0, 5fr) minmax(0, 4.2fr) minmax(0, 2.2fr) 32px;
    gap: 0 clamp(24px, 3vw, 48px);
    align-items: start;
  }
  .res-index__head {
    grid-column: 2;
    grid-row: 1;
  }
  .res-index__summary {
    grid-column: 3;
    grid-row: 1;
    padding-top: 1.75rem;
  }
  .res-index__meta {
    grid-column: 4;
    grid-row: 1;
    flex-direction: column;
    padding-top: 1.75rem;
  }
  .res-index__meta div {
    display: grid;
    gap: 2px;
  }
  .res-index__go {
    grid-column: 5;
    padding-top: 1.75rem;
    justify-self: end;
  }
  .res-index__num {
    padding-top: 0.1em;
  }
}

/* ---------- Hub: about these guides ---------- */
.res-about__grid {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
}
.res-about h2 {
  max-width: 15ch;
}
.res-about__body {
  max-width: 64ch;
}
@media (min-width: 960px) {
  .res-about__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(48px, 7vw, 112px);
  }
}

/* ---------- Guide hero ---------- */
.guide-hero {
  padding-bottom: clamp(44px, 5.5vw, 80px);
}
.guide-hero__inner {
  position: relative;
  z-index: 1;
}
.guide-hero__of {
  color: var(--fg-3);
}
.guide-hero__title {
  margin-top: var(--space-5);
  max-width: 21ch;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 1.55rem + 3.1vw, 4.5rem);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.016em;
  color: var(--fg);
  text-wrap: balance;
}
.guide-hero__lede {
  margin-top: var(--space-5);
  max-width: 62ch;
}
@media (min-width: 1024px) {
  .guide-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 8fr) minmax(0, 3.2fr);
    gap: clamp(48px, 6vw, 112px);
    align-items: end;
  }
  .guide-meta {
    flex-direction: column;
    gap: 0;
    margin: 0;
    border-top: 1px solid var(--rule-2);
  }
  .guide-meta li,
  .guide-meta li:first-child {
    padding: 13px 0;
    border-left: 0;
    border-bottom: 1px solid var(--rule);
  }
}

/* Image band: straddles the dark hero and the light article. */
.guide-band {
  position: relative;
  background: linear-gradient(180deg, transparent 0 52%, var(--fog-50) 52% 100%);
}
.guide-band .guide-band__frame {
  aspect-ratio: 4 / 3;
  box-shadow: 0 40px 80px -48px rgba(5, 9, 17, 0.55);
}
.guide-band__caption {
  margin: 12px 0 0;
  text-align: right;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-text-3);
}
@media (min-width: 600px) {
  .guide-band .guide-band__frame {
    aspect-ratio: 16 / 9;
  }
}
@media (min-width: 960px) {
  .guide-band .guide-band__frame {
    aspect-ratio: 21 / 9;
  }
}

/* ---------- Guide layout ---------- */
.guide-main {
  padding-block: clamp(40px, 5vw, 80px) clamp(80px, 9vw, 140px);
}
.guide-layout {
  display: grid;
  gap: 40px;
}
.guide-article {
  min-width: 0;
  max-width: 46rem;
}
.guide-aside {
  display: none;
}
@media (min-width: 1080px) {
  .guide-layout {
    grid-template-columns: minmax(210px, 3fr) minmax(0, 8fr) minmax(0, 1fr);
    gap: clamp(48px, 5vw, 88px);
    align-items: start;
  }
  .guide-aside {
    position: sticky;
    top: calc(var(--header-h) + 36px);
    display: grid;
    gap: var(--space-6);
    justify-items: start;
    max-height: calc(100vh - var(--header-h) - 72px);
    overflow-y: auto;
    padding: 4px 4px 4px 0;
  }
}

/* Table of contents (sticky aside on desktop, details on mobile) */
.guide-toc .label {
  display: block;
  margin-bottom: var(--space-4);
}
.guide-toc__list {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--rule-2);
}
.guide-toc__list a {
  display: grid;
  grid-template-columns: 2.2em minmax(0, 1fr);
  gap: 4px;
  margin-left: -1px;
  padding: 7px 0 7px 16px;
  border-left: 1px solid transparent;
  color: var(--fg-3);
  font-size: 0.9rem;
  line-height: 1.4;
  text-decoration: none;
  transition:
    color var(--dur-fast),
    border-color var(--dur-fast);
}
.guide-toc__num {
  padding-top: 0.2em;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-3);
}
.guide-toc__list a:hover {
  color: var(--fg);
}
/* site.js marks the h2 crossing the viewport centre: data-active-step = its index. */
.guide-layout[data-active-step='1'] .guide-toc__list > li:nth-child(1) > a,
.guide-layout[data-active-step='2'] .guide-toc__list > li:nth-child(2) > a,
.guide-layout[data-active-step='3'] .guide-toc__list > li:nth-child(3) > a,
.guide-layout[data-active-step='4'] .guide-toc__list > li:nth-child(4) > a,
.guide-layout[data-active-step='5'] .guide-toc__list > li:nth-child(5) > a,
.guide-layout[data-active-step='6'] .guide-toc__list > li:nth-child(6) > a,
.guide-layout[data-active-step='7'] .guide-toc__list > li:nth-child(7) > a,
.guide-layout[data-active-step='8'] .guide-toc__list > li:nth-child(8) > a,
.guide-layout[data-active-step='9'] .guide-toc__list > li:nth-child(9) > a,
.guide-layout[data-active-step='10'] .guide-toc__list > li:nth-child(10) > a,
.guide-layout[data-active-step='11'] .guide-toc__list > li:nth-child(11) > a,
.guide-layout[data-active-step='12'] .guide-toc__list > li:nth-child(12) > a,
.guide-layout[data-active-step='13'] .guide-toc__list > li:nth-child(13) > a,
.guide-layout[data-active-step='14'] .guide-toc__list > li:nth-child(14) > a {
  border-left-color: var(--accent);
  color: var(--fg);
}
.guide-layout[data-active-step='1'] .guide-toc__list > li:nth-child(1) .guide-toc__num,
.guide-layout[data-active-step='2'] .guide-toc__list > li:nth-child(2) .guide-toc__num,
.guide-layout[data-active-step='3'] .guide-toc__list > li:nth-child(3) .guide-toc__num,
.guide-layout[data-active-step='4'] .guide-toc__list > li:nth-child(4) .guide-toc__num,
.guide-layout[data-active-step='5'] .guide-toc__list > li:nth-child(5) .guide-toc__num,
.guide-layout[data-active-step='6'] .guide-toc__list > li:nth-child(6) .guide-toc__num,
.guide-layout[data-active-step='7'] .guide-toc__list > li:nth-child(7) .guide-toc__num,
.guide-layout[data-active-step='8'] .guide-toc__list > li:nth-child(8) .guide-toc__num,
.guide-layout[data-active-step='9'] .guide-toc__list > li:nth-child(9) .guide-toc__num,
.guide-layout[data-active-step='10'] .guide-toc__list > li:nth-child(10) .guide-toc__num,
.guide-layout[data-active-step='11'] .guide-toc__list > li:nth-child(11) .guide-toc__num,
.guide-layout[data-active-step='12'] .guide-toc__list > li:nth-child(12) .guide-toc__num,
.guide-layout[data-active-step='13'] .guide-toc__list > li:nth-child(13) .guide-toc__num,
.guide-layout[data-active-step='14'] .guide-toc__list > li:nth-child(14) .guide-toc__num {
  color: var(--accent);
}
/* Reading progress along the contents rail, where scroll-driven animation exists. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .guide-layout {
      timeline-scope: --guide-article;
    }
    .guide-article {
      view-timeline-name: --guide-article;
    }
    .guide-toc__list::before {
      content: '';
      position: absolute;
      top: 0;
      bottom: 0;
      left: -1px;
      width: 1px;
      background: var(--accent);
      opacity: 0.45;
      transform: scaleY(0);
      transform-origin: top;
      animation: guide-progress linear both;
      animation-timeline: --guide-article;
      animation-range: contain 0% contain 100%;
    }
  }
}
@keyframes guide-progress {
  to {
    transform: scaleY(1);
  }
}
.guide-aside__back {
  font-size: 0.92rem;
}

.guide-toc-m {
  margin-bottom: var(--space-6);
  border-block: 1px solid var(--rule-2);
}
.guide-toc-m summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  cursor: pointer;
  list-style: none;
}
.guide-toc-m summary::-webkit-details-marker {
  display: none;
}
.guide-toc-m summary .label {
  color: var(--fg);
}
.guide-toc-m__count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.08em;
  color: var(--fg-3);
}
.guide-toc-m summary .icon {
  flex: none;
  color: var(--fg-2);
  transition: transform var(--dur) var(--ease-out);
}
.guide-toc-m[open] summary .icon {
  transform: rotate(180deg);
}
.guide-toc-m nav {
  padding: 4px 0 var(--space-5);
}
@media (min-width: 1080px) {
  .guide-toc-m {
    display: none;
  }
}

/* Key takeaways */
.guide-takeaways {
  position: relative;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: 0 28px 56px -40px rgba(11, 19, 34, 0.3);
}
.guide-takeaways::before {
  content: '';
  position: absolute;
  top: -1px;
  left: clamp(22px, 3vw, 36px);
  width: 56px;
  height: 2px;
  background: var(--accent);
}
.guide-takeaways__title {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.guide-takeaways__list {
  display: grid;
  gap: 16px;
  list-style: none;
  margin: var(--space-5) 0 0;
  padding: 0;
}
.guide-takeaways__list li {
  display: grid;
  grid-template-columns: 2.2em minmax(0, 1fr);
  gap: 6px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--fg);
}
.guide-takeaways__num {
  padding-top: 0.25em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
}
@media (min-width: 720px) {
  .guide-takeaways__list {
    grid-template-columns: 1fr 1fr;
    gap: 20px 36px;
  }
}

/* Article prose */
.guide-prose {
  margin-top: clamp(40px, 5vw, 64px);
  counter-reset: guide-section;
}
.guide-prose > p:first-child {
  font-size: var(--step-1);
  line-height: 1.65;
  color: var(--fg);
}
.guide-prose h2 {
  margin-top: clamp(3.25rem, 5vw, 4.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--rule-2);
  font-size: clamp(1.75rem, 1.38rem + 1.25vw, 2.45rem);
}
.guide-prose h2::before {
  counter-increment: guide-section;
  content: counter(guide-section, decimal-leading-zero);
  display: block;
  margin-bottom: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.guide-prose h3 {
  margin-top: 1.9em;
}
.guide-prose .table-wrap {
  margin-block: 1.8em;
  padding: 2px clamp(14px, 2vw, 22px) 6px;
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
  background: var(--surface);
}
.guide-prose .table-wrap:focus-visible {
  outline-offset: 3px;
}
.guide-prose table {
  font-size: 0.93rem;
}
/* Only genuinely wide tables (4+ columns) scroll on phones; 3-column tables wrap. */
.guide-prose .table-wrap table:has(tr > :nth-child(4)) {
  min-width: 34rem;
}
.guide-prose caption {
  caption-side: top;
  padding: 16px 0 6px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.guide-prose td:first-child {
  font-weight: 560;
  color: var(--fg);
}
.guide-prose tbody tr:last-child td {
  border-bottom: 0;
}
.guide-prose .callout p {
  margin: 0;
}
.guide-prose ul.checklist {
  list-style: none;
  padding-left: 0;
}
.guide-prose ul.checklist li {
  position: relative;
  padding-left: 2.1em;
}
.guide-prose ul.checklist li::before {
  content: '';
  position: absolute;
  top: 0.38em;
  left: 0;
  width: 1.05em;
  height: 1.05em;
  border: 1.5px solid var(--accent);
  border-radius: 4px;
}

.guide-article__foot {
  display: grid;
  gap: 10px;
  max-width: 62ch;
  margin-top: clamp(56px, 7vw, 88px);
  padding-top: var(--space-5);
  border-top: 1px solid var(--rule-3);
  font-size: 0.93rem;
  color: var(--fg-2);
}
.guide-article__updated {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* ---------- Related guides ---------- */
.guide-related__head {
  margin-bottom: clamp(32px, 4vw, 56px);
}
.guide-related__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 0 clamp(24px, 3vw, 44px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.guide-related__item {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: var(--space-5) 0 var(--space-7);
  border-top: 1px solid var(--rule-2);
  transition: border-color var(--dur) var(--ease-out);
}
.guide-related__topic {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.guide-related__title {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 400;
  line-height: 1.15;
  color: var(--fg);
  text-wrap: balance;
}
.guide-related__title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast);
}
.guide-related__title a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.guide-related__title a:focus-visible {
  outline: none;
}
.guide-related__title a:focus-visible::after {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}
.guide-related__summary {
  font-size: 0.95rem;
  color: var(--fg-2);
}
.guide-related__go {
  color: var(--fg-3);
  transition:
    color var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
}
.guide-related__item:hover {
  border-top-color: var(--accent);
}
.guide-related__item:hover .guide-related__title a,
.guide-related__item:hover .guide-related__go {
  color: var(--accent-strong);
}
.guide-related__item:hover .guide-related__go {
  transform: translateX(4px);
}
.guide-related .link-arrow {
  margin-top: var(--space-5);
}
