.guide-hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(11rem, .45fr);
  gap: clamp(1rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 5.25rem);
}
.guide-hero h1 {
  max-inline-size: 21ch;
  margin-block: .65rem .9rem;
  font-size: clamp(1.7rem, 3.2vw, 2.65rem);
  line-height: 1.23;
}
.guide-hero p { max-inline-size: 55ch; color: var(--muted); }
.guide-hero .actions { justify-content: start; }
.guide-hero img { justify-self: center; width: min(100%, 22rem); height: auto; }
.guide-home { justify-self: center; color: var(--primary); font-weight: 700; }
.guide-home:hover { text-decoration: underline; }

.guide-article-layout {
  display: grid;
  grid-template-columns: minmax(11rem, .27fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(1.5rem, 3vw, 2.5rem) 4rem;
}
.guide-index {
  position: sticky;
  inset-block-start: 1rem;
  display: block;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: var(--wash);
}
.guide-index strong { color: var(--ink); }
.guide-index ul { margin: .35rem 0 0; padding: 0; list-style: none; }
.guide-index a { display: flex; padding-block: .35rem; color: var(--primary); line-height: 1.5; }
.guide-index a:hover { text-decoration: underline; }
.guide-chapter + .guide-chapter { margin-block-start: clamp(2rem, 4vw, 3.5rem); padding-block-start: clamp(2rem, 4vw, 3.5rem); border-block-start: 1px solid var(--line); }
.guide-chapter h2 { margin-block-end: .7rem; }
.guide-chapter h3 { margin-block-end: .5rem; }
.guide-chapter p + p { margin-block-start: .7rem; }
.guide-chapter p, .guide-chapter li, .guide-chapter dd { color: var(--muted); }
.guide-chapter strong { color: var(--ink); }
.guide-chapter a { color: var(--primary); text-decoration: underline; text-underline-offset: .18em; }
.guide-chapter :is(ul, ol) { margin-block: .6rem 0; padding-inline-start: 1.4rem; }
.guide-chapter .guide-numbered { list-style: none; padding-inline-start: 0; }
.guide-chapter .guide-features + p { margin-block-start: .9rem; }
.guide-chapter li + li { margin-block-start: .55rem; }
.guide-chapter code { direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; }
.guide-chapter .guide-tip {
  margin-block-start: .85rem;
  padding: .75rem 1rem;
  border-radius: .65rem;
  background: var(--wash);
}
.guide-block { min-width: 0; }
.guide-block + .guide-block { margin-block-start: clamp(1.5rem, 3vw, 2.5rem); }
.guide-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(10rem, 15rem);
  align-items: start;
  gap: clamp(1.2rem, 3vw, 2rem);
}
.guide-shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 1rem;
  align-items: start;
  margin-block-start: 1.1rem;
}
.guide-shot {
  width: min(100%, 15rem);
  justify-self: center;
  align-self: start;
}
.guide-screen {
  position: relative;
  isolation: isolate;
  direction: ltr;
  border-radius: 1.12rem;
  box-shadow: 0 0 0 1px #dce4f3, 0 .45rem 1rem #1226551a;
}
.guide-screen img { width: 100%; height: auto; border-radius: inherit; }
.guide-mark {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  border: 2px solid #d91431;
  border-radius: .45rem;
  box-shadow: 0 0 0 1px #fffc;
  pointer-events: none;
}
.guide-mark b, .guide-step {
  display: inline-grid;
  place-items: center;
  width: 1.45rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #c8102e;
  color: #fff;
  font-size: .79rem;
  font-weight: 850;
  line-height: 1;
}
.guide-mark b { position: absolute; inset: -.65rem -.5rem auto auto; box-shadow: 0 0 0 2px #fff; }
.guide-step { vertical-align: middle; margin-inline-end: .25rem; }
.guide-shot figcaption { margin-block-start: .55rem; color: var(--muted); font-size: .86rem; text-align: center; line-height: 1.5; }
.guide-features { margin: .8rem 0 0; }
.guide-features div { padding-block: .55rem; border-block-end: 1px solid var(--line); }
.guide-features div:last-child { padding-block-end: 0; border-block-end: 0; }
.guide-features dt { font-weight: 800; }
.guide-features dd { margin: 0; }
.guide-chapter details { padding-block: .8rem; border-block-start: 1px solid var(--line); }
.guide-chapter summary { cursor: pointer; font-weight: 750; }
.guide-chapter summary:hover { color: var(--primary); }
.guide-chapter details[open] summary { margin-block-end: .5rem; }

@media (max-width: 53rem) {
  .guide-article-layout { grid-template-columns: minmax(0, 1fr); }
  .guide-index { position: static; }
  .guide-index ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .15rem 1.2rem; }
}
@media (max-width: 45rem) {
  .guide-home { display: none; }
}
@media (max-width: 36rem) {
  .guide-hero .wrap, .guide-media { grid-template-columns: minmax(0, 1fr); }
  .guide-hero img { display: none; }
  .guide-media > .guide-shot { margin-inline: auto; }
}
