/* ════════════════════════════════════════════════════════════════════════════════════════════════
   /diy-guides and /diy-guides/<slug> (tools/diy_guides.py, tools/diy-guides.js)
   ════════════════════════════════════════════════════════════════════════════════════════════════
   The site's own tokens throughout (Funnel Display and Funnel Sans, --base / --base-tint / --t-*, the accent and the
   light and dark switch), so the pages sit in handyman.ai's look. Two things keep the app's colours on purpose: the
   words drawn over a render (the app's player: a white pill, its green for "go", violet for Handyman speaking), because
   they sit on the render's own light picture in either theme; and the step that is playing, in the same green.
   Cards float; a picture sits flush in its card and takes the card's rounding. Nothing fades into the page. */

.hm-dg-main, .hm-dg-topic__pop {
  --dg-card: var(--base-tint);
  --dg-line: color-mix(in srgb, var(--t-bright) 9%, transparent);
  --dg-line-strong: color-mix(in srgb, var(--t-bright) 18%, transparent);
  --dg-soft: color-mix(in srgb, var(--t-bright) 5%, transparent);
  --dg-ink: var(--hm-accent-ink, #6b55cf);
  --dg-shadow: 0 1px 2px rgba(16, 16, 20, .05), 0 1.6rem 4rem -2.4rem rgba(16, 16, 20, .26);
  --dg-shadow-lift: 0 2px 4px rgba(16, 16, 20, .06), 0 3rem 6.4rem -3rem rgba(16, 16, 20, .45);
  --dg-r: 2.4rem;
  --dg-go: #67bb3a;           /* the app's primary, the colour of doing */
  --dg-go-ink: #3f7a22;
  --dg-warn-bg: #fdeeee;
  --dg-warn: #b42318;
  --dg-media: #eef2ec;        /* a render's own ground, behind a poster that is still on its way */
}
[color-scheme="dark"] .hm-dg-main, [color-scheme="dark"] .hm-dg-topic__pop {
  --dg-line: rgba(255, 255, 255, .08);
  --dg-line-strong: rgba(255, 255, 255, .16);
  --dg-soft: rgba(255, 255, 255, .06);
  --dg-shadow: 0 0 0 1px rgba(255, 255, 255, .03), 0 2rem 5rem -2.4rem rgba(0, 0, 0, .75);
  --dg-shadow-lift: 0 0 0 1px rgba(255, 255, 255, .05), 0 3rem 7rem -3rem rgba(0, 0, 0, .9);
  --dg-warn-bg: rgba(240, 89, 93, .14);
  --dg-warn: #ff9b9e;
  --dg-media: #2a2d29;
}

.hm-dg-main button { font-family: var(--_font-default); }
.hm-dg-main :focus-visible { outline: 2px solid var(--dg-ink); outline-offset: 2px; }
/* Rayo gives every <section> min-width: 360px, meant for its full-width page sections. The guides' sections sit inside
   the page's gutters, so on a 360-374 px phone they ran past the window and the page scrolled sideways (16 px at 360;
   lane 128). */
.hm-dg-main section { min-width: 0; }

/* ── the kicker over a title ─────────────────────────────────────────────────────────────────── */
.hm-dg-kicker {
  display: inline-flex; align-items: center; gap: .9rem; margin: 0;
  font: 600 1.3rem/1.2 var(--_font-default); letter-spacing: .14em; text-transform: uppercase; color: var(--dg-ink);
}
.hm-dg-kicker__dot { width: .9rem; height: .9rem; border-radius: 50%; background: var(--dg-go); box-shadow: 0 0 0 .4rem color-mix(in srgb, var(--dg-go) 22%, transparent); }
.hm-dg-kicker__sep { width: .4rem; height: .4rem; border-radius: 50%; background: currentColor; opacity: .5; }

/* ── buttons ─────────────────────────────────────────────────────────────────────────────────── */
.hm-dg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 1rem; min-height: 5.2rem; padding: 0 2.4rem;
  border: 1px solid transparent; border-radius: 99rem; background: var(--base-opp); color: var(--base) !important;
  font: 600 1.6rem/1 var(--_font-accent); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.hm-dg-btn i { font-size: 1.8rem; }
.hm-dg-btn:hover { transform: translateY(-1px); }
.hm-dg-btn--ghost { background: transparent; color: var(--t-bright) !important; border-color: var(--dg-line-strong); }
.hm-dg-btn--ghost:hover { border-color: currentColor; }
.hm-dg-link { display: inline-flex; align-items: center; gap: .6rem; font: 600 1.5rem/1 var(--_font-default); color: var(--t-bright); text-decoration: none; }
.hm-dg-link i { transition: transform .2s ease; }
.hm-dg-link:hover i { transform: translateX(.3rem); }

/* ════ THE HERO ═════════════════════════════════════════════════════════════════════════════════ */
.hm-dg-hero { padding: 13rem 0 4rem; }
.hm-dg-hero__grid { display: grid; gap: 4.8rem; align-items: center; }
.hm-dg-hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 2.4rem; min-width: 0; }
.hm-dg-hero__title {
  margin: 0; font: 600 clamp(4.6rem, 6vw, 9.2rem)/.98 var(--_font-accent); letter-spacing: -.035em; color: var(--t-bright);
}
.hm-dg-hero__pill {
  display: inline-block; margin-top: .08em; padding: .02em .32em .1em; border-radius: 99rem;
  background: var(--accent); color: var(--t-opp-bright); white-space: nowrap;
}
.hm-dg-hero__lede { margin: 0; max-width: 54ch; font: 400 1.9rem/1.5 var(--_font-default); color: var(--t-medium); }

.hm-dg-search {
  position: relative; display: flex; align-items: center; width: 100%; max-width: 62rem; height: 6.4rem; padding: 0 1.4rem 0 5.8rem;
  border: 1px solid var(--dg-line); border-radius: 99rem; background: var(--dg-card); box-shadow: var(--dg-shadow);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.hm-dg-search > i { position: absolute; left: 2.2rem; top: 50%; transform: translateY(-50%); font-size: 2.2rem; color: var(--t-muted); pointer-events: none; }
.hm-dg-search input {
  flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0 !important; border-radius: 0; background: transparent !important;
  box-shadow: none !important; outline: none; -webkit-appearance: none; appearance: none;
  font: 500 1.8rem/1 var(--_font-default); color: var(--t-bright);
}
.hm-dg-search input::placeholder { color: var(--t-muted); opacity: 1; }
.hm-dg-search:focus-within { border-color: var(--dg-ink); box-shadow: var(--dg-shadow), 0 0 0 .4rem color-mix(in srgb, var(--accent) 28%, transparent); }
.hm-dg-search__key {
  display: none; min-width: 2.8rem; height: 2.8rem; padding: 0 .8rem; margin-left: 1rem; place-items: center; border-radius: .8rem;
  border: 1px solid var(--dg-line-strong); font: 600 1.3rem/1 ui-monospace, Menlo, monospace; color: var(--t-muted);
}
@media (hover: hover) and (pointer: fine) { .hm-dg-search__key { display: grid; } .hm-dg-search:focus-within .hm-dg-search__key { display: none; } }

.hm-dg-hint { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin: -1.2rem 0 0 2.4rem; font: 500 1.5rem/1.3 var(--_font-default); color: var(--t-medium); }
.hm-dg-hint[hidden] { display: none; }
.hm-dg-hint b { font-weight: 700; color: var(--t-bright); }
.hm-dg-hint a { display: inline-flex; align-items: center; gap: .4rem; min-height: 3.2rem; color: var(--dg-ink) !important; font-weight: 600; text-decoration: none; }
.hm-dg-search--bar { flex: 1 1 18rem; min-width: 0; max-width: none; height: 5.2rem; padding-left: 4.8rem; border-color: transparent; background: var(--dg-soft); box-shadow: none; }
.hm-dg-search--bar > i { left: 1.8rem; font-size: 1.9rem; }
.hm-dg-search--bar input { font-size: 1.5rem; }
.hm-dg-search--bar:focus-within { background: var(--dg-card); }

.hm-dg-stats { display: flex; flex-wrap: wrap; gap: 1.2rem 3.2rem; margin: .4rem 0 0; padding: 0; list-style: none; }
.hm-dg-stats li { display: flex; flex-direction: column; gap: .4rem; }
.hm-dg-stats b { font: 600 3.4rem/1 var(--_font-accent); letter-spacing: -.02em; color: var(--t-bright); }
.hm-dg-stats span { font: 500 1.4rem/1.2 var(--_font-default); color: var(--t-muted); }

/* The stage: a guide playing in the app's player, in a floating card. */
.hm-dg-hero__stage { position: relative; min-width: 0; }
.hm-dg-stage {
  position: relative; margin: 0; overflow: hidden; border: 1px solid var(--dg-line); border-radius: 3.2rem;
  background: var(--dg-card); box-shadow: var(--dg-shadow-lift);
}
.hm-dg-stage__cap { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; padding: .4rem 2.2rem 2rem; }
.hm-dg-stage__now { display: inline-flex; align-items: center; gap: .6rem; font: 600 1.2rem/1 var(--_font-default); letter-spacing: .12em; text-transform: uppercase; color: var(--dg-go-ink); }
[color-scheme="dark"] .hm-dg-stage__now { color: var(--dg-go); }
.hm-dg-stage__now i { font-size: 1.6rem; }
.hm-dg-stage__title { flex: 1 1 22rem; min-width: 0; font: 600 1.9rem/1.25 var(--_font-accent); color: var(--t-bright) !important; text-decoration: none; }
.hm-dg-stage__title:hover { text-decoration: underline; text-underline-offset: .3rem; }
.hm-dg-stage__step { font: 500 1.4rem/1 var(--_font-default); color: var(--t-muted); white-space: nowrap; }
.hm-dg-stage__step b { font-weight: 600; color: var(--t-bright); }

.hm-dg-float {
  position: absolute; z-index: 2; display: none; align-items: center; gap: .9rem; max-width: 30rem; padding: 1rem 1.6rem 1rem 1rem;
  border: 1px solid var(--dg-line); border-radius: 99rem; background: var(--dg-card); box-shadow: var(--dg-shadow);
  font: 600 1.4rem/1.3 var(--_font-default); color: var(--t-bright); pointer-events: none;
}
.hm-dg-float i { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--dg-ink); font-size: 1.8rem; }
.hm-dg-float--says { border-radius: 2rem; border-color: #e2ddff; background: #f2f0ff; color: #5a4bf2; }
.hm-dg-float--says img { flex: none; width: 3.8rem; height: 3.8rem; border-radius: 50%; background: #fff; object-fit: contain; }
.hm-dg-float--says { right: 2.4rem; bottom: calc(100% + 1.2rem); }
.hm-dg-float--says::after {   /* the bubble's tail, down towards the card */
  content: ""; position: absolute; right: 3.6rem; top: 100%; width: 1.4rem; height: 1.4rem; margin-top: -.7rem; border: 1px solid #e2ddff;
  border-width: 0 1px 1px 0; background: #f2f0ff; transform: rotate(45deg);
}

@media only screen and (max-width: 991px) { .hm-dg-hero__stage { max-width: 72rem; } }
@media only screen and (min-width: 992px) {
  .hm-dg-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 4.8rem; }
}
@media only screen and (min-width: 1200px) {
  .hm-dg-hero { padding: 17rem 0 6rem; }
  .hm-dg-hero__grid { gap: 7.2rem; }
  .hm-dg-float { display: inline-flex; }
}

/* ════ THE PLAYER (the app's GuideVideo and CueLayer, handyman-go guide-video.tsx) ═══════════════ */
.hm-dg-player { position: relative; min-width: 0; }
.hm-dg-player__frame {
  position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--dg-media); container-type: inline-size; isolation: isolate;
}
.hm-dg-player__poster, .hm-dg-player__video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.hm-dg-player__video { opacity: 0; }
.hm-dg-player.is-live .hm-dg-player__video { opacity: 1; }
.hm-dg-player__cues { position: absolute; inset: 0; z-index: 2; pointer-events: none; user-select: none; }
.hm-dg-cue { position: absolute; width: max-content; }
.hm-dg-cue > span {
  display: inline-flex; align-items: center; border: 1px solid rgba(22, 22, 22, .08); border-radius: 99rem; background: #fff; color: #161616;
  box-shadow: 0 1px 2px rgba(16, 16, 20, .08), 0 8px 18px -10px rgba(16, 16, 20, .35); line-height: 1.2;
  font-family: var(--_font-default); animation: hm-dg-cue-in .35s ease-out both;
}
@keyframes hm-dg-cue-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.hm-dg-cue__t { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.hm-dg-cue--label > span { gap: .5em; padding: .3em .85em .3em .3em; font-size: clamp(12.5px, 1.7cqw, 17px); }
.hm-dg-cue--label .hm-dg-cue__n {
  display: grid; place-items: center; flex: none; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--dg-go, #67bb3a); color: #fff;
  font: 700 1em/1 ui-monospace, Menlo, monospace;
}
.hm-dg-cue--label .hm-dg-cue__t { font-weight: 700; }
.hm-dg-cue--callout > span, .hm-dg-cue--done > span { gap: .45em; padding: .3em .8em .3em .3em; font-size: clamp(12px, 1.5cqw, 15px); }
.hm-dg-cue--callout.is-bare > span { padding-left: .8em; }
.hm-dg-cue__i { display: grid; place-items: center; flex: none; width: 1.6em; height: 1.6em; border-radius: .5em; background: #f1f1f3; color: #161616; font-size: 1em; }
.hm-dg-cue--go .hm-dg-cue__i { background: rgba(103, 187, 58, .16); color: #3f7a22; }
.hm-dg-cue--callout .hm-dg-cue__t, .hm-dg-cue--done .hm-dg-cue__t { font-weight: 800; }
.hm-dg-cue--go .hm-dg-cue__t, .hm-dg-cue--done .hm-dg-cue__t { color: #3f7a22; }
.hm-dg-cue--done .hm-dg-cue__i { width: 1.55em; height: 1.55em; border-radius: 50%; background: #67bb3a; color: #fff; }
.hm-dg-cue--says > span {
  gap: .45em; padding: .35em .8em .35em .35em; border-color: #e2ddff; border-radius: 1em; background: #f2f0ff; color: #5a4bf2;
  font-size: clamp(12px, 1.45cqw, 15px);
}
.hm-dg-cue--says img { flex: none; width: 1.9em; height: 1.9em; border-radius: 50%; background: #fff; object-fit: contain; }
.hm-dg-cue--says .hm-dg-cue__t { font-weight: 700; -webkit-line-clamp: 7; }

.hm-dg-player__ui {
  position: absolute; inset: auto 0 0 0; z-index: 3; display: flex; align-items: flex-end; justify-content: space-between; gap: .8rem;
  padding: 1rem; pointer-events: none;
}
.hm-dg-player__toggle, .hm-dg-player__loop {
  pointer-events: auto; border: 1px solid rgba(22, 22, 22, .08); background: rgba(255, 255, 255, .96); color: #161616;
  box-shadow: 0 1px 2px rgba(16, 16, 20, .06), 0 6px 16px -8px rgba(16, 16, 20, .25);
}
.hm-dg-player__toggle { display: grid; place-items: center; width: 4.4rem; height: 4.4rem; padding: 0; border-radius: 50%; cursor: pointer; }
.hm-dg-player__toggle svg { width: 1.6rem; height: 1.6rem; fill: currentColor; }
.hm-dg-player__toggle .hm-dg-i-pause, .hm-dg-player.is-playing .hm-dg-player__toggle .hm-dg-i-play { display: none; }
.hm-dg-player.is-playing .hm-dg-player__toggle .hm-dg-i-pause { display: block; }
.hm-dg-player__loop { display: inline-flex; align-items: center; gap: .4rem; min-height: 4.4rem; padding: 0 .4rem 0 1.4rem; border-radius: 99rem; font: 700 1.3rem/1 var(--_font-default); }
.hm-dg-player__loop[hidden] { display: none; }
.hm-dg-player__all {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 3.6rem; padding: 0 1rem; border: 0; border-radius: 99rem;
  background: transparent; color: #3f7a22; font: 700 1.3rem/1 var(--_font-default); cursor: pointer;
}
.hm-dg-player__all i { color: #585858; }
.hm-dg-player.is-broken .hm-dg-player__ui, .hm-dg-player.is-broken .hm-dg-player__cues { display: none; }

/* One bar per step under the picture, its length the step's; the one playing fills as it plays. A tap plays that step. */
.hm-dg-player__bar { display: flex; gap: .6rem; padding: .4rem 1.6rem; }
.hm-dg-player__seg {
  position: relative; flex: 1 1 0; min-width: 0; height: 3.2rem; padding: 0; border: 0; background: transparent; cursor: pointer;
}
.hm-dg-player__seg::before, .hm-dg-player__seg i {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: .5rem; margin-top: -.25rem; border-radius: 99rem;
}
.hm-dg-player__seg::before { background: var(--dg-line-strong); }
.hm-dg-player__seg i { background: var(--dg-go); transform: scaleX(var(--p, 0)); transform-origin: left center; }
.hm-dg-player__seg:hover::before { background: color-mix(in srgb, var(--t-bright) 30%, transparent); }

/* ════ THE LIBRARY ══════════════════════════════════════════════════════════════════════════════ */
.hm-dg-lib { padding: 2.4rem 0 6rem; scroll-margin-top: 2rem; }
.hm-dg-bar {
  display: flex; flex-direction: column; gap: 1.2rem; margin-bottom: 4rem; padding: 1.6rem; border: 1px solid var(--dg-line);
  border-radius: 2.8rem; background: var(--dg-card); box-shadow: var(--dg-shadow);
}
.hm-dg-bar__row { min-width: 0; }
.hm-dg-chips { display: flex; flex-wrap: wrap; gap: .8rem; }
.hm-dg-chips[hidden] { display: none; }
.hm-dg-chip {
  display: inline-flex; align-items: center; gap: .7rem; min-height: 4.4rem; padding: 0 .8rem 0 1.6rem; border: 1px solid var(--dg-line-strong);
  border-radius: 99rem; background: transparent; color: var(--t-bright); font: 500 1.5rem/1 var(--_font-default); white-space: nowrap;
  cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.hm-dg-chip > i { font-size: 1.8rem; color: var(--dg-ink); }
.hm-dg-chip:hover { border-color: var(--t-bright); }
.hm-dg-chip.is-on { border-color: var(--base-opp); background: var(--base-opp); color: var(--base); }
.hm-dg-chip.is-on > i { color: inherit; }
.hm-dg-chip.is-none { opacity: .45; }
.hm-dg-n {
  display: inline-grid; place-items: center; min-width: 2.6rem; height: 2.6rem; padding: 0 .7rem; border-radius: 99rem;
  background: var(--dg-soft); color: var(--t-muted); font: 600 1.2rem/1 var(--_font-default);
}
.hm-dg-chip.is-on .hm-dg-n { background: color-mix(in srgb, var(--base) 16%, transparent); color: inherit; }
/* The search bar: the search and the kind of guide, then time and topic, then the count and Clear. One row on a
   computer; on a tablet the search and the kind take the first row; a phone stacks them, time and topic side by side. */
.hm-dg-bar__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--dg-line); }
.hm-dg-bar__find, .hm-dg-bar__pick, .hm-dg-bar__sum { display: flex; align-items: center; gap: 1rem 1.2rem; min-width: 0; }
.hm-dg-bar__find { flex: 1 1 52rem; }
.hm-dg-bar__pick { flex: 0 1 auto; }
.hm-dg-bar__sum { flex: 0 0 auto; margin-left: auto; }
.hm-dg-seg { display: inline-flex; gap: .2rem; padding: .4rem; border-radius: 99rem; background: var(--dg-soft); }
.hm-dg-seg button {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 4.4rem; padding: 0 1.4rem; border: 0; border-radius: 99rem;
  background: transparent; color: var(--t-medium); font: 500 1.4rem/1 var(--_font-default); white-space: nowrap; cursor: pointer;
}
.hm-dg-seg button.is-on { background: var(--dg-card); color: var(--t-bright); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 .4rem 1.2rem -.6rem rgba(0, 0, 0, .3); }
.hm-dg-seg button .hm-dg-n { min-width: 2.2rem; height: 2.2rem; }
/* "Any time" and "Any topic": a pill each, its icon, its value and a caret, as wide as its value. The time's own
   <select> lies unseen over its pill, so a tap opens the phone's own picker; the topic opens a list of ours. */
.hm-dg-select, .hm-dg-topic__btn {
  position: relative; display: inline-flex; align-items: center; min-width: 0; max-width: 100%; min-height: 5.2rem; margin: 0;
  padding: 0 3.8rem 0 4.2rem; border: 1px solid var(--dg-line-strong); border-radius: 99rem; background: transparent;
  color: var(--t-bright); font: 500 1.4rem/1 var(--_font-default); white-space: nowrap; cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.hm-dg-select:hover, .hm-dg-topic__btn:hover { border-color: var(--t-bright); }
.hm-dg-select.is-set, .hm-dg-topic.is-set .hm-dg-topic__btn { border-color: var(--t-bright); background: var(--dg-soft); }
.hm-dg-select > i, .hm-dg-topic__btn > i { position: absolute; pointer-events: none; color: var(--t-muted); font-size: 1.6rem; }
.hm-dg-select > i:first-of-type, .hm-dg-topic__btn > i:first-of-type { left: 1.6rem; }
.hm-dg-select > i:last-of-type, .hm-dg-topic__btn > i:last-of-type { right: 1.4rem; font-size: 1.3rem; transition: transform .2s ease; }
.hm-dg-topic.is-open .hm-dg-topic__btn > i:last-of-type { transform: rotate(180deg); }
.hm-dg-select__v, .hm-dg-topic__v { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hm-dg-select select {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: inherit; opacity: 0;
  font-size: 1.6rem; -webkit-appearance: none; appearance: none; cursor: pointer;
}
.hm-dg-select select option { color: #161616; background: #fff; }
.hm-dg-select:focus-within { outline: 2px solid var(--dg-ink); outline-offset: 2px; }
@supports selector(:has(*)) {
  .hm-dg-select:focus-within { outline: none; }
  .hm-dg-select:has(select:focus-visible) { outline: 2px solid var(--dg-ink); outline-offset: 2px; }
}

/* ── the topic's list: a popover under its pill on a computer, a sheet from the bottom on a phone ─────────────────
   On a phone the script moves it to the end of the page while it is open (so nothing around it clips it), which is
   why it carries the page's tokens itself (see the top of this file). */
.hm-dg-topic { position: relative; display: inline-flex; min-width: 0; }
.hm-dg-topic__btn { max-width: 26rem; }
.hm-dg-topic__pop { position: absolute; z-index: 40; top: calc(100% + .8rem); left: 0; width: min(36rem, calc(100vw - 3.2rem)); }
.hm-dg-topic__pop[hidden] { display: none; }
.hm-dg-topic__pop.is-right { left: auto; right: 0; }
.hm-dg-topic__pop.is-up { top: auto; bottom: calc(100% + .8rem); }
.hm-dg-topic__card {
  display: flex; flex-direction: column; max-height: var(--room, 44rem); overflow: hidden; border: 1px solid var(--dg-line-strong);
  border-radius: 2.2rem; background: var(--dg-card); color: var(--t-bright); box-shadow: var(--dg-shadow-lift); outline: none;
  opacity: 0; transform: translateY(-.6rem) scale(.98); transform-origin: top left; transition: opacity .16s ease, transform .2s ease;
}
.hm-dg-topic__pop.is-right .hm-dg-topic__card { transform-origin: top right; }
.hm-dg-topic__pop.is-up .hm-dg-topic__card { transform: translateY(.6rem) scale(.98); transform-origin: bottom left; }
.hm-dg-topic__pop.is-in .hm-dg-topic__card { opacity: 1; transform: none; }
.hm-dg-topic__head { display: none; }
.hm-dg-topic__find {
  position: relative; display: flex; flex: none; align-items: center; height: 4.6rem; margin: .8rem .8rem .2rem; padding: 0 1.2rem 0 4.2rem;
  border-radius: 1.4rem; background: var(--dg-soft); transition: box-shadow .2s ease;
}
.hm-dg-topic__find > i { position: absolute; left: 1.4rem; font-size: 1.7rem; color: var(--t-muted); pointer-events: none; }
.hm-dg-topic__find input {
  flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0 !important; border-radius: 0; background: transparent !important;
  box-shadow: none !important; outline: none; -webkit-appearance: none; appearance: none; font: 500 1.5rem/1 var(--_font-default); color: var(--t-bright);
}
.hm-dg-topic__find input:focus-visible { outline: none; }
.hm-dg-topic__find input::placeholder { color: var(--t-muted); opacity: 1; }
.hm-dg-topic__find:focus-within { box-shadow: inset 0 0 0 .2rem color-mix(in srgb, var(--dg-ink) 70%, transparent); }
.hm-dg-topic__none { flex: none; margin: 1.2rem 1.6rem 0; font: 500 1.4rem/1.4 var(--_font-default); color: var(--t-medium); }
.hm-dg-topic__none[hidden] { display: none; }
.hm-dg-topic__none b { color: var(--t-bright); font-weight: 600; }
.hm-dg-topic__list {
  flex: 1 1 auto; min-height: 0; margin: 0; padding: .4rem .6rem .8rem; overflow-y: auto; overscroll-behavior: contain; list-style: none;
  scrollbar-width: thin;
}
.hm-dg-topic__list ul { margin: 0; padding: 0; list-style: none; }
.hm-dg-topic__group[hidden], .hm-dg-topic__opt[hidden] { display: none; }
.hm-dg-topic__gh {
  display: flex; align-items: center; gap: .6rem; padding: 1.4rem 1rem .6rem; font: 600 1.1rem/1.2 var(--_font-default); letter-spacing: .1em;
  text-transform: uppercase; color: var(--t-muted);
}
.hm-dg-topic__gh i { font-size: 1.4rem; color: var(--dg-ink); }
.hm-dg-topic__list.is-one .hm-dg-topic__gh { display: none; }
.hm-dg-topic__opt {
  display: flex; align-items: center; gap: 1rem; min-height: 4.4rem; padding: .4rem .8rem .4rem 1rem; border-radius: 1.2rem;
  font: 500 1.5rem/1.25 var(--_font-default); color: var(--t-bright); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.hm-dg-topic__opt > i { flex: none; width: 1.6rem; font-size: 1.5rem; color: var(--dg-ink); visibility: hidden; }
.hm-dg-topic__opt.is-on > i { visibility: visible; }
.hm-dg-topic__opt.is-on .hm-dg-topic__name { font-weight: 650; }
.hm-dg-topic__name { flex: 1; min-width: 0; }
.hm-dg-topic__name mark { padding: 0 .1em; border-radius: .3rem; background: color-mix(in srgb, var(--accent) 55%, transparent); color: inherit; }
.hm-dg-topic__opt.is-active { background: color-mix(in srgb, var(--t-bright) 7%, transparent); }
.hm-dg-topic__opt.is-none { color: var(--t-muted); }
.hm-dg-topic__opt.is-on .hm-dg-n { background: var(--base-opp); color: var(--base); }
.hm-dg-topic__opt--search > i { visibility: visible; color: var(--t-muted); }
.hm-dg-topic__opt--search b { font-weight: 600; }

/* A phone: a sheet that rises from the bottom over a dimmed page, its top a handle to pull it back down. */
.hm-dg-topic__pop.is-sheet {
  position: fixed; inset: 0; z-index: 10005; width: auto; display: flex; align-items: flex-end; justify-content: center;
  padding: 0 0 var(--kb, 0px); background: rgba(14, 13, 18, 0); -webkit-tap-highlight-color: transparent; transition: background-color .3s ease;
}
.hm-dg-topic__pop.is-sheet.is-in { background: rgba(14, 13, 18, .5); }
.hm-dg-topic__pop.is-sheet .hm-dg-topic__card {
  width: 100%; max-height: min(86vh, calc(var(--vvh, 100vh) - 1.2rem)); padding-bottom: env(safe-area-inset-bottom, 0px); border: 0;
  border-radius: 2.8rem 2.8rem 0 0; box-shadow: 0 -1.6rem 5rem -1.6rem rgba(0, 0, 0, .45);
  opacity: 1; transform: translateY(105%); transition: transform .5s cubic-bezier(.2, 1.15, .35, 1);
}
.hm-dg-topic__pop.is-sheet.is-in .hm-dg-topic__card { transform: none; }
.hm-dg-topic__pop.is-sheet.is-out .hm-dg-topic__card { transform: translateY(105%); transition: transform .3s cubic-bezier(.4, 0, 1, 1); }
.hm-dg-topic__pop.is-sheet .hm-dg-topic__head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 1.2rem; padding: .6rem 1.6rem 0 2rem;
  touch-action: none; cursor: grab;
}
.hm-dg-topic__grab { grid-column: 1 / -1; display: flex; justify-content: center; padding: .4rem 0 .8rem; }
.hm-dg-topic__grab i { display: block; width: 4.2rem; height: .5rem; border-radius: 1rem; background: color-mix(in srgb, var(--t-bright) 22%, transparent); }
.hm-dg-topic__t { grid-column: 1; grid-row: 2; margin: 0; font: 600 2.2rem/1.15 var(--_font-accent); letter-spacing: -.01em; color: var(--t-bright); }
.hm-dg-topic__sub { grid-column: 1; grid-row: 3; margin: .3rem 0 0; font: 500 1.4rem/1.3 var(--_font-default); color: var(--t-muted); }
.hm-dg-topic__x {
  grid-column: 2; grid-row: 2 / span 2; display: grid; place-items: center; width: 4.4rem; height: 4.4rem; padding: 0; border: 0; border-radius: 50%;
  background: color-mix(in srgb, var(--t-bright) 7%, transparent); color: var(--t-bright); font-size: 1.8rem; cursor: pointer;
}
.hm-dg-topic__x:focus-visible { outline: 2px solid var(--dg-ink); outline-offset: 2px; }
.hm-dg-topic__pop.is-sheet .hm-dg-topic__find { height: 5.2rem; margin: 1.4rem 1.6rem .4rem; }
.hm-dg-topic__pop.is-sheet .hm-dg-topic__find input { font-size: 1.6rem; }   /* under 16px, an iPhone zooms in on the field */
.hm-dg-topic__pop.is-sheet .hm-dg-topic__list { padding: .4rem 1rem 1.6rem; }
.hm-dg-topic__pop.is-sheet .hm-dg-topic__opt { min-height: 5rem; font-size: 1.6rem; }
.hm-dg-count { margin: 0; font: 500 1.5rem/1 var(--_font-default); color: var(--t-muted); white-space: nowrap; }
.hm-dg-count b { font: 600 2rem/1 var(--_font-accent); color: var(--t-bright); }
.hm-dg-clear {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 4.4rem; padding: 0 1.4rem; border: 0; border-radius: 99rem;
  background: var(--dg-soft); color: var(--t-bright); font: 600 1.4rem/1 var(--_font-default); cursor: pointer;
}
.hm-dg-clear[hidden] { display: none; }

.hm-dg-group { margin-bottom: 6.4rem; }
.hm-dg-group[hidden] { display: none; }
/* The count sits beside the group's name, never out at the right edge, where the page's up button floats over it
   (the founder's screenshot of 2026-10-17 read "3[↑]guides"). */
.hm-dg-group__head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: .6rem 1.8rem; margin-bottom: 2.4rem;
}
.hm-dg-group__head h2 {
  display: flex; align-items: center; gap: 1.4rem; margin: 0; font: 600 clamp(2.8rem, 3.2vw, 4.4rem)/1.05 var(--_font-accent);
  letter-spacing: -.02em; color: var(--t-bright);
}
.hm-dg-group__head h2 > i {
  display: grid; place-items: center; flex: none; width: 5.2rem; height: 5.2rem; border-radius: 1.6rem;
  background: color-mix(in srgb, var(--accent) 24%, transparent); color: var(--dg-ink); font-size: 2.6rem;
}
.hm-dg-group__n { font: 500 1.5rem/1 var(--_font-default); color: var(--t-muted); }
.hm-dg-group__n b { font-weight: 600; color: var(--t-bright); }
.hm-dg-more {
  display: flex; align-items: center; gap: .8rem; min-height: 5.2rem; margin: 2.8rem auto 0; padding: 0 2.4rem; border: 1px solid var(--dg-line-strong);
  border-radius: 99rem; background: var(--dg-card); color: var(--t-bright); font: 600 1.5rem/1 var(--_font-default); cursor: pointer;
  transition: border-color .2s ease, transform .2s ease;
}
.hm-dg-more:hover { border-color: var(--t-bright); transform: translateY(-1px); }
.hm-dg-more[hidden] { display: none; }

.hm-dg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin: 0; padding: 0; list-style: none; }
.hm-dg-card { min-width: 0; }
.hm-dg-card[hidden] { display: none; }
.hm-dg-card__a {
  display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--dg-line); border-radius: 1.8rem;
  background: var(--dg-card); color: inherit !important; text-decoration: none !important; box-shadow: 0 1px 2px rgba(16, 16, 20, .04);
  transition: transform .4s var(--_animbezier), box-shadow .4s ease, border-color .4s ease;
}
.hm-dg-card__media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--dg-media); }
.hm-dg-card__poster, .hm-dg-card__media video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.hm-dg-card__poster { opacity: 0; transition: opacity .3s ease; }
.hm-dg-card__poster.is-in { opacity: 1; }
.hm-dg-card__media video { opacity: 0; transition: opacity .25s ease; }
.hm-dg-card__media video.is-on { opacity: 1; }
.hm-dg-card__tag {
  position: absolute; left: .8rem; top: .8rem; z-index: 2; padding: .5rem .9rem; border-radius: 99rem; background: rgba(22, 22, 22, .82); color: #fff;
  font: 600 1.1rem/1 var(--_font-default); letter-spacing: .01em;
}
.hm-dg-card__go {
  position: absolute; right: 1rem; top: 1rem; z-index: 2; display: none; place-items: center; width: 4rem; height: 4rem; border-radius: 50%;
  background: #fff; color: #161616; font-size: 1.8rem; box-shadow: 0 .6rem 1.6rem -.6rem rgba(0, 0, 0, .35);
  opacity: 0; transform: scale(.6); transition: opacity .25s ease, transform .35s var(--_animbezier);
}
.hm-dg-card__body { display: flex; flex: 1; flex-direction: column; gap: .5rem; padding: 1.1rem 1.2rem 1.3rem; }
.hm-dg-card__kicker { font: 600 1.05rem/1.2 var(--_font-default); letter-spacing: .08em; text-transform: uppercase; color: var(--dg-ink); }
.hm-dg-card__title { margin: 0; font: 600 1.5rem/1.22 var(--_font-accent); letter-spacing: -.005em; color: var(--t-bright); }
.hm-dg-card__meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: auto; padding-top: .4rem; font: 500 1.2rem/1.2 var(--_font-default); color: var(--t-muted); }
.hm-dg-card__meta:empty { display: none; }
.hm-dg-card__meta span { display: inline-flex; align-items: center; gap: .4rem; }
@media (hover: hover) and (pointer: fine) {
  .hm-dg-card__go { display: grid; }
  .hm-dg-card__a:hover, .hm-dg-card__a:focus-visible { transform: translateY(-.4rem); border-color: var(--dg-line-strong); box-shadow: var(--dg-shadow-lift); }
  .hm-dg-card__a:hover .hm-dg-card__go, .hm-dg-card__a:focus-visible .hm-dg-card__go { opacity: 1; transform: none; }
}

.hm-dg-empty { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; padding: 6rem 2rem; text-align: center; }
.hm-dg-empty[hidden] { display: none; }
.hm-dg-empty img { width: 9.6rem; height: 9.6rem; object-fit: contain; }
.hm-dg-empty__t { margin: 0; font: 600 3rem/1.1 var(--_font-accent); color: var(--t-bright); }
.hm-dg-empty__s { margin: 0; max-width: 46ch; font-size: 1.6rem; line-height: 1.5; color: var(--t-medium); }
.hm-dg-empty__go { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1.2rem; }

/* The way back to search and filters, once they have scrolled away. */
.hm-dg-dock {
  position: fixed; left: 50%; bottom: max(1.6rem, env(safe-area-inset-bottom)); z-index: 90; display: inline-flex; align-items: center; gap: 1rem;
  max-width: min(46rem, calc(100vw - 16rem)); min-height: 5.2rem; padding: 0 .6rem 0 1.8rem; border: 0; border-radius: 99rem;
  background: var(--base-opp); color: var(--base); box-shadow: 0 1.6rem 4rem -1.2rem rgba(0, 0, 0, .55); cursor: pointer;
  font: 600 1.5rem/1 var(--_font-default); white-space: nowrap; transform: translate(-50%, 160%); transition: transform .4s var(--_animbezier);
}
.hm-dg-dock.is-on { transform: translate(-50%, 0); }
/* The page's up button dips below the window while the search bar is under it (diy-guides.js sets html.hm-dg-duck). */
html.hm-dg-duck .btn-to-top {
  opacity: 0 !important; pointer-events: none; transform: translateY(calc(100% + 6rem)) !important;
  transition: transform var(--_animspeed-medium) var(--_animbezier), opacity .2s ease;
}
.hm-dg-dock__q { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hm-dg-dock__n { display: inline-grid; place-items: center; min-width: 4rem; height: 4rem; padding: 0 1.2rem; border-radius: 99rem; background: var(--accent); color: var(--t-opp-bright); }
[color-scheme="dark"] .hm-dg-dock__n { color: #161616; }

@media only screen and (min-width: 600px) {
  .hm-dg-grid { gap: 1.8rem; }
  .hm-dg-card__a { border-radius: var(--dg-r); }
  .hm-dg-card__body { padding: 1.4rem 1.6rem 1.6rem; gap: .6rem; }
  .hm-dg-card__kicker { font-size: 1.15rem; }
  .hm-dg-card__title { font-size: 1.8rem; }
  .hm-dg-card__meta { font-size: 1.3rem; }
  .hm-dg-card__tag { left: 1.2rem; top: 1.2rem; padding: .6rem 1.1rem; font-size: 1.2rem; }
}
@media only screen and (min-width: 900px) { .hm-dg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* A tablet: the search and the kind of guide on the first row, time, topic and the count on the second. */
@media only screen and (min-width: 768px) and (max-width: 1199px) { .hm-dg-bar__find { flex-basis: 100%; } }
@media only screen and (min-width: 1280px) { .hm-dg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.4rem; } }

/* A phone: the chip rows scroll sideways inside the card, never the page. */
@media only screen and (max-width: 767px) {
  .hm-dg-hero { padding-top: 11.6rem; }
  .hm-dg-hero__copy { gap: 2rem; }
  .hm-dg-hero__lede { font-size: 1.7rem; }
  .hm-dg-search { height: 5.8rem; padding-left: 5.2rem; }
  .hm-dg-search > i { left: 2rem; }
  .hm-dg-search input { font-size: 1.6rem; }
  .hm-dg-stats { gap: 1.2rem 2.4rem; }
  .hm-dg-stats b { font-size: 2.8rem; }
  .hm-dg-stage { border-radius: 2.4rem; }
  .hm-dg-stage__cap { padding: .2rem 1.6rem 1.6rem; }
  .hm-dg-stage__title { font-size: 1.7rem; }
  .hm-dg-bar { padding: 1.2rem; border-radius: 2.4rem; margin-bottom: 3.2rem; }
  .hm-dg-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -1.2rem; padding: 0 1.2rem; scrollbar-width: none; overscroll-behavior-x: contain; }
  .hm-dg-chips::-webkit-scrollbar { display: none; }
  .hm-dg-bar__tools, .hm-dg-bar__find, .hm-dg-bar__pick, .hm-dg-bar__sum { gap: .8rem; }
  .hm-dg-bar__find, .hm-dg-bar__pick, .hm-dg-bar__sum { flex: 1 1 100%; }
  .hm-dg-bar__find { flex-wrap: wrap; }
  .hm-dg-search--bar { flex: 1 1 100%; }
  .hm-dg-seg { width: 100%; }
  .hm-dg-seg button { flex: 1 1 auto; justify-content: center; padding: 0 .8rem; font-size: 1.35rem; }
  .hm-dg-bar__pick > .hm-dg-select, .hm-dg-bar__pick > .hm-dg-topic { flex: 1 1 50%; }   /* halves: a 0 basis would leave the time's padding out of the share */
  .hm-dg-select, .hm-dg-topic__btn { width: 100%; max-width: none; padding-right: 3.4rem; font-size: 1.5rem; }
  .hm-dg-bar__sum { justify-content: space-between; margin-left: 0; }
  .hm-dg-search--bar input { font-size: 1.6rem; }   /* under 16px, an iPhone zooms in on the field */
  .hm-dg-group { margin-bottom: 4.8rem; }
  .hm-dg-group__head { margin-bottom: 1.6rem; }
  .hm-dg-group__head h2 { gap: 1rem; font-size: 2.6rem; }
  .hm-dg-group__head h2 > i { width: 4.2rem; height: 4.2rem; border-radius: 1.3rem; font-size: 2.1rem; }
}

/* ════ A GUIDE ══════════════════════════════════════════════════════════════════════════════════ */
.hm-dg-guide { padding: 12rem 0 4rem; }
.hm-dg-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin-bottom: 2.8rem; font: 500 1.4rem/1.3 var(--_font-default); color: var(--t-muted); }
.hm-dg-crumbs a { color: var(--t-medium) !important; text-decoration: none; }
.hm-dg-crumbs a:hover { color: var(--t-bright) !important; text-decoration: underline; text-underline-offset: .3rem; }
.hm-dg-crumbs i { font-size: 1.2rem; opacity: .6; }
.hm-dg-head { display: flex; flex-direction: column; align-items: flex-start; gap: 1.6rem; max-width: 104rem; margin-bottom: 3.6rem; }
.hm-dg-head__title { margin: 0; font: 600 clamp(3.6rem, 5.2vw, 7.4rem)/1.02 var(--_font-accent); letter-spacing: -.03em; color: var(--t-bright); }
.hm-dg-head__sum { margin: 0; max-width: 62ch; font: 400 1.9rem/1.5 var(--_font-default); color: var(--t-medium); }
.hm-dg-facts { display: flex; flex-wrap: wrap; gap: .8rem; margin: .4rem 0 0; padding: 0; list-style: none; }
.hm-dg-facts li {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 3.8rem; padding: 0 1.4rem; border: 1px solid var(--dg-line); border-radius: 99rem;
  background: var(--dg-card); font: 500 1.4rem/1 var(--_font-default); color: var(--t-bright);
}
.hm-dg-facts i { font-size: 1.6rem; color: var(--dg-ink); }

.hm-dg-guide__grid { display: grid; gap: 2.8rem; }
.hm-dg-player--main, .hm-dg-player--stage { overflow: hidden; }
.hm-dg-player--main { border: 1px solid var(--dg-line); border-radius: 3.2rem; background: var(--dg-card); box-shadow: var(--dg-shadow-lift); }
.hm-dg-player--main .hm-dg-player__bar { padding: .6rem 1.8rem .8rem; }
.hm-dg-player--stage .hm-dg-player__bar { padding: .6rem 1.8rem .2rem; }

.hm-dg-steps__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1.6rem; margin-bottom: 1.6rem; }
.hm-dg-steps__head h2 { margin: 0; font: 600 3.2rem/1.1 var(--_font-accent); letter-spacing: -.02em; color: var(--t-bright); }
.hm-dg-steps__head p { margin: 0; font: 500 1.4rem/1.3 var(--_font-default); color: var(--t-muted); }
.hm-dg-steps { display: flex; flex-direction: column; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.hm-dg-step {
  position: relative; display: grid; grid-template-columns: 3.8rem minmax(0, 1fr); gap: 1.4rem; padding: 1.8rem 1.8rem 1.8rem 1.6rem;
  overflow: hidden; border: 1px solid var(--dg-line); border-radius: 2.2rem; background: var(--dg-card); cursor: pointer;
  transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.hm-dg-step:hover { border-color: var(--dg-line-strong); }
.hm-dg-step.is-on {
  border-color: color-mix(in srgb, var(--dg-go) 60%, transparent); background: color-mix(in srgb, var(--dg-go) 8%, var(--dg-card));
  box-shadow: 0 1.2rem 3rem -2rem color-mix(in srgb, var(--dg-go) 70%, transparent);
}
.hm-dg-step::after {   /* how far through the step the picture is */
  content: ""; position: absolute; left: 0; bottom: 0; height: .3rem; width: 100%; background: var(--dg-go);
  transform: scaleX(var(--p, 0)); transform-origin: left center; opacity: 0;
}
.hm-dg-step.is-on::after { opacity: 1; }
.hm-dg-step__n {
  display: grid; place-items: center; width: 3.8rem; height: 3.8rem; border-radius: 50%; background: var(--dg-soft); color: var(--t-medium);
  font: 700 1.5rem/1 ui-monospace, Menlo, monospace; transition: background-color .25s ease, color .25s ease;
}
.hm-dg-step.is-on .hm-dg-step__n { background: var(--dg-go); color: #fff; }
.hm-dg-step__body { min-width: 0; }
.hm-dg-step__t { margin: .6rem 0 0; font: 600 1.9rem/1.25 var(--_font-accent); letter-spacing: -.01em; color: var(--t-bright); }
.hm-dg-step__play {
  padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer;
}
.hm-dg-step__play::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.hm-dg-step p { margin: .6rem 0 0; font: 400 1.6rem/1.55 var(--_font-default); color: var(--t-medium); }
.hm-dg-step__safety {
  display: flex; align-items: flex-start; gap: .8rem; margin-top: 1.2rem; padding: 1rem 1.2rem; border-radius: 1.2rem;
  background: var(--dg-warn-bg); color: var(--dg-warn); font: 600 1.4rem/1.4 var(--_font-default);
}
.hm-dg-step__safety i { margin-top: .1rem; font-size: 1.6rem; }

.hm-dg-guide__facts { display: grid; gap: 2rem; margin-top: 4rem; }
.hm-dg-box { padding: 2.6rem; border: 1px solid var(--dg-line); border-radius: 2.8rem; background: var(--dg-card); }
.hm-dg-box__t { display: flex; align-items: center; gap: 1rem; margin: 0 0 1.8rem; font: 600 2.6rem/1.1 var(--_font-accent); letter-spacing: -.015em; color: inherit; }
.hm-dg-box__t i { display: grid; place-items: center; width: 4.4rem; height: 4.4rem; border-radius: 1.4rem; font-size: 2.2rem; }
.hm-dg-box ul { display: flex; flex-direction: column; gap: 1.2rem; margin: 0; padding: 0; list-style: none; }
.hm-dg-box li { display: flex; align-items: flex-start; gap: 1.2rem; font: 400 1.7rem/1.45 var(--_font-default); }
.hm-dg-needs .hm-dg-box__t i { background: color-mix(in srgb, var(--dg-go) 16%, transparent); color: var(--dg-go-ink); }
[color-scheme="dark"] .hm-dg-needs .hm-dg-box__t i { color: var(--dg-go); }
.hm-dg-needs li { color: var(--t-bright); }
.hm-dg-needs li i { margin-top: .2rem; font-size: 1.8rem; color: var(--dg-go); }
/* When to call a pro: the page's opposite colours, so the way to a pro is the loudest thing on it. */
.hm-dg-pro { border-color: transparent; background: var(--base-opp); color: var(--t-opp-bright); box-shadow: var(--dg-shadow-lift); }
.hm-dg-pro .hm-dg-box__t i { background: color-mix(in srgb, var(--additional) 22%, transparent); color: var(--additional); }
.hm-dg-pro li { color: var(--t-opp-bright); }
.hm-dg-pro li::before { content: ""; flex: none; width: .7rem; height: .7rem; margin-top: .9rem; border-radius: 50%; background: var(--additional); }
.hm-dg-says {
  display: flex; align-items: center; gap: 1.2rem; margin: 2.2rem 0 0; padding: 1.2rem 1.8rem 1.2rem 1.2rem; border: 1px solid #e2ddff;
  border-radius: 2rem; background: #f2f0ff; color: #5a4bf2;
}
.hm-dg-says img { flex: none; width: 4.8rem; height: 4.8rem; border-radius: 50%; background: #fff; object-fit: contain; }
.hm-dg-says p { margin: 0; font: 700 1.7rem/1.35 var(--_font-default); }
.hm-dg-pro__go { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hm-dg-pro .hm-dg-btn--big { min-height: 5.8rem; background: var(--additional); color: #161616 !important; font-size: 1.7rem; }
.hm-dg-pro .hm-dg-btn--ghost { color: var(--t-opp-bright) !important; border-color: color-mix(in srgb, var(--t-opp-bright) 28%, transparent); }
.hm-dg-pro .hm-dg-btn--ghost:hover { border-color: var(--t-opp-bright); }
.hm-dg-pro__fine { margin: 1.4rem 0 0; font: 400 1.4rem/1.45 var(--_font-default); color: var(--t-opp-medium); }

.hm-dg-related { margin-top: 7.2rem; }
.hm-dg-related__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2.4rem; }
.hm-dg-related__head h2 { margin: 0; font: 600 clamp(2.8rem, 3.2vw, 4.4rem)/1.05 var(--_font-accent); letter-spacing: -.02em; color: var(--t-bright); }
@media only screen and (min-width: 900px) { .hm-dg-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

@media only screen and (min-width: 768px) {
  .hm-dg-guide { padding-top: 15rem; }
  .hm-dg-guide__facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; }
  .hm-dg-guide__facts--one { grid-template-columns: minmax(0, 1fr); max-width: 72rem; }
}
@media only screen and (min-width: 1100px) {
  .hm-dg-guide__grid { grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
  .hm-dg-guide__media { position: sticky; top: 2.4rem; }
}
@media only screen and (max-width: 767px) {
  .hm-dg-head__sum { font-size: 1.7rem; }
  .hm-dg-player--main { border-radius: 2.4rem; }
  .hm-dg-player__bar { gap: .4rem; }
  .hm-dg-player--main .hm-dg-player__bar, .hm-dg-player--stage .hm-dg-player__bar { padding: .4rem 1.2rem .4rem; }
  .hm-dg-step { grid-template-columns: 3.4rem minmax(0, 1fr); gap: 1.2rem; padding: 1.5rem 1.5rem 1.6rem 1.3rem; border-radius: 2rem; }
  .hm-dg-step__n { width: 3.4rem; height: 3.4rem; font-size: 1.4rem; }
  .hm-dg-step__t { margin-top: .4rem; font-size: 1.75rem; }
  .hm-dg-step p { font-size: 1.55rem; }
  .hm-dg-box { padding: 2.2rem 2rem; border-radius: 2.4rem; }
  .hm-dg-box__t { font-size: 2.3rem; }
  .hm-dg-box li { font-size: 1.6rem; }
  .hm-dg-pro__go .hm-dg-btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hm-dg-main *, .hm-dg-dock, .hm-dg-topic__pop, .hm-dg-topic__pop * { transition: none !important; }
  .hm-dg-cue > span { animation: none; }
  .hm-dg-card__a:hover, .hm-dg-card__a:focus-visible, .hm-dg-btn:hover, .hm-dg-more:hover { transform: none !important; }
}
