/* Guide pages (guide.php): hero, figures, contents rail, illustrated
   installation steps, experience panel, troubleshooting, interactive
   checklist, product card and print layout. Shared components live in
   site.css; this file only arranges and extends them. */

/* ---------- Hero ---------- */
.guide-hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(28px, 4.5vw, 64px); align-items: center;
}
.guide-hero h1 { font-size: clamp(2.05rem, 4.6vw, 3.25rem); max-width: 19ch; }
.guide-hero .lead { max-width: 56ch; }
.guide-hero__actions { margin-top: 1.5rem; }
.guide-hero__answer { box-shadow: var(--shadow); }
.guide-hero__answer p { font-size: 1rem; line-height: 1.7; }
@media (max-width: 960px) { .guide-hero__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Top figure + quick facts ---------- */
.guide-top { padding-bottom: 0; }
.guide-figure .blueprint { padding: clamp(14px, 2.6vw, 34px); }
.guide-figure .blueprint > img, .guide-figure .blueprint__scroll > img { margin-inline: auto; }
/* Upright or square drawings: never taller than the viewport allows. */
.guide-figure .blueprint > img { width: auto; max-width: 100%; max-height: min(560px, 72vh); }
.guide-top__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(16px, 2vw, 24px); }
.guide-top__inner--split { grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); align-items: start; }
.guide-top__inner--split .guide-figure .blueprint { display: grid; place-items: center; }
.guide-top__inner--split .guide-figure .blueprint__label { justify-self: end; }
.guide-top__inner--split .guide-facts { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
@media (max-width: 900px) {
  .guide-top__inner--split { grid-template-columns: minmax(0, 1fr); }
  .guide-top__inner--split .guide-facts { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
}

/* Cell borders instead of the .stats 1px-gap background, so a wrapped last
   row never shows an empty grey cell. */
.guide-facts { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; background: var(--surface); box-shadow: var(--shadow-xs); }
.guide-fact { display: flex; flex-direction: column; gap: .4rem; margin: -1px 0 0 -1px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.guide-fact__label {
  display: flex; align-items: center; gap: .45rem;
  font-family: var(--font-display); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase;
  font-weight: 700; color: var(--ink-3);
}
.guide-fact__label .icon { width: 16px; height: 16px; color: var(--accent-ink); }
.guide-fact__value { font-size: clamp(1.05rem, 1.6vw, 1.2rem); letter-spacing: -0.015em; line-height: 1.3; }
.guide-fact .stat__label { margin-top: 0; font-size: .82rem; line-height: 1.45; }

/* ---------- Layout: contents rail + article ---------- */
.guide-layout { padding-top: clamp(40px, 5vw, 64px); }
.guide-layout--after-top { padding-top: clamp(36px, 4.5vw, 56px); }
.guide-layout__grid {
  display: grid; grid-template-columns: 248px minmax(0, 1fr);
  gap: clamp(32px, 4.2vw, 64px); align-items: start;
}
.guide-main { min-width: 0; }

.guide-aside { position: sticky; top: calc(var(--header-h) + 22px); }
.guide-aside__inner { display: grid; gap: 1.1rem; }

.guide-toc__title {
  display: flex; align-items: center; gap: .5rem; margin: 0 0 .7rem;
  font-family: var(--font-display); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; color: var(--ink-3);
}
.guide-toc__title .icon { color: var(--accent-ink); }
.guide-toc__list {
  list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line);
  max-height: calc(100vh - var(--header-h) - 330px); min-height: 160px; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin;
}
.guide-toc__list a {
  display: block; margin-left: -2px; padding: .4rem .5rem .4rem .95rem;
  border-left: 2px solid transparent; border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  color: var(--ink-3); text-decoration: none; font-size: .87rem; line-height: 1.4;
  transition: color var(--t), border-color var(--t), background var(--t);
}
.guide-toc__list a:hover { color: var(--ink); border-left-color: var(--line-2); background: var(--surface-3); }
.guide-toc__group {
  margin: .7rem 0 .2rem; padding: .3rem .5rem .3rem .95rem;
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--ink-3);
}
.guide-toc__list .is-sub a { padding-left: 1.4rem; font-size: .85rem; }
.guide-toc__list a[aria-current="true"] { color: var(--ink); font-weight: 600; border-left-color: var(--accent); background: var(--accent-soft); }

.guide-buy {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.05rem 1.05rem; box-shadow: var(--shadow-xs);
}
.guide-buy__name { margin: 0 0 .35rem; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--ink-3); }
.guide-buy__row { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; margin-bottom: .25rem; }
.guide-buy .stock { font-size: .8rem; }
.guide-buy__spec { margin: 0 0 .85rem; font-size: .8rem; color: var(--ink-3); }

/* Contents on small screens: a collapsible panel at the top of the article */
.guide-toc-m { display: none; }
@media (max-width: 1020px) {
  .guide-layout__grid { grid-template-columns: minmax(0, 1fr); }
  .guide-aside { display: none; }
  .guide-toc-m {
    display: block; margin-bottom: clamp(28px, 5vw, 40px);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs);
  }
  .guide-toc-m summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; gap: .6rem;
    min-height: 52px; padding: .8rem 1.1rem; font-weight: 650; color: var(--ink);
  }
  .guide-toc-m summary::-webkit-details-marker { display: none; }
  .guide-toc-m summary > .icon:first-child { color: var(--accent-ink); }
  .guide-toc-m__n { margin-left: auto; font-size: .8rem; font-weight: 500; color: var(--ink-3); }
  .guide-toc-m__chev { width: 18px; height: 18px; color: var(--ink-3); transition: transform var(--t); }
  .guide-toc-m[open] .guide-toc-m__chev { transform: rotate(180deg); }
  .guide-toc-m ul { list-style: none; margin: 0; padding: .5rem 1.1rem 1rem; border-top: 1px solid var(--line); display: grid; }
  .guide-toc-m li { font-size: .92rem; }
  .guide-toc-m .guide-toc-m__group { margin-top: .6rem; padding: .3rem 0; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--ink-3); }
  .guide-toc-m .is-sub a { padding-left: .9rem; border-left: 2px solid var(--line); }
  .guide-toc-m a { display: block; padding: .45rem 0; color: var(--ink-2); text-decoration: none; line-height: 1.4; }
  .guide-toc-m a:hover { color: var(--accent-ink); }
}

/* ---------- Article blocks ---------- */
.guide-block + .guide-block { margin-top: clamp(56px, 7vw, 92px); }
.guide-block__head { max-width: 64ch; margin-bottom: clamp(20px, 3vw, 32px); }
.guide-block__head h2, .guide-block > h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); margin-bottom: .35em; }
.guide-block__head .eyebrow, .guide-block > .eyebrow { margin-bottom: .7rem; }
.guide-block__head--split { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 1.5rem; }
.guide-block__head--split > div { max-width: 64ch; }
.guide-block__lead { margin: 0; color: var(--ink-2); font-size: 1.04rem; line-height: 1.65; }

/* ---------- What you need ---------- */
/* The tools drawing is wide (2:1), so it spans the block and the Tools and
   Parts cards sit side by side beneath it. */
.guide-tools { display: grid; gap: 16px; }
.guide-tools__media { margin: 0; }
.guide-tools__media .blueprint { display: grid; place-items: center; padding: clamp(28px, 3.4vw, 40px) clamp(12px, 2.4vw, 28px) clamp(12px, 2.4vw, 24px); }
.guide-tools__lists { display: grid; gap: 16px; align-content: start; }
.guide-tools--media .guide-tools__lists { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.guide-tools__card { padding: clamp(18px, 2.2vw, 24px); }
.guide-tools__h { display: flex; align-items: center; gap: .55rem; margin: 0 0 .9rem; font-size: 1.02rem; }
.guide-tools__h .icon { width: 19px; height: 19px; color: var(--accent-ink); }
.guide-tools__ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem 1.3rem; font-size: .94rem; }
.guide-tools--media .guide-tools__ticks { grid-template-columns: minmax(0, 1fr); }
.guide-tools__card--parts { display: flex; flex-direction: column; }
.guide-tools__buy { margin-top: auto; align-self: flex-start; }
.guide-tools__card--parts .meta-list { margin-bottom: 1.2rem; }
.guide-tools .meta-list { font-size: .92rem; }
.guide-tools .meta-list li { font-size: .92rem; }
@media (max-width: 760px) {
  .guide-tools--media .guide-tools__lists { grid-template-columns: minmax(0, 1fr); }
  .guide-tools__ticks { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Illustrated steps ---------- */
.gsteps { --gs-gap: clamp(18px, 2.4vw, 28px); --gs-num: 48px; list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gs-gap); }
.gstep {
  position: relative; display: grid; grid-template-columns: var(--gs-num) minmax(0, 1fr);
  gap: clamp(12px, 2vw, 20px); align-items: start;
}
.gstep:not(:last-child)::before {
  content: ""; position: absolute; left: calc(var(--gs-num) / 2 - 1px); top: calc(var(--gs-num) + 8px);
  bottom: calc(-1 * var(--gs-gap) + 8px); width: 2px;
  background: repeating-linear-gradient(to bottom, var(--line-2) 0 6px, transparent 6px 12px);
}
.gstep__num {
  position: relative; z-index: 1; width: var(--gs-num); height: var(--gs-num); border-radius: 14px;
  display: grid; place-items: center; background: var(--ink); color: var(--bg);
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.gstep:target .gstep__num { background: var(--accent); color: var(--on-accent); }
.gstep:target .gstep__card { border-color: var(--accent-line); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }

.gstep__card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-xs); overflow: hidden; transition: border-color var(--t), box-shadow var(--t);
}
.gstep--media .gstep__card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "media body" "notes notes";
}
.gstep--media .gstep__media { grid-area: media; }
.gstep--media .gstep__body { grid-area: body; }
.gstep--media .gstep__notes { grid-area: notes; }

/* The media panel is a .blueprint (engineering grid, dark in both themes). */
.gstep__media.blueprint {
  margin: 0; display: grid; place-items: center; border-radius: 0; border: 0;
  padding: clamp(28px, 3vw, 36px) clamp(12px, 2vw, 20px) clamp(12px, 2vw, 20px);
  border-right: 1px solid var(--steel-line);
}
.gstep__media.blueprint img { width: 100%; height: auto; max-height: 340px; object-fit: contain; }
.gstep__fig {
  position: absolute; top: 10px; right: 12px;
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; color: var(--steel-ink-2); opacity: .85;
}

.gstep__body { padding: clamp(18px, 2.4vw, 28px); display: grid; gap: .7rem; align-content: center; }
.gstep__notes {
  display: grid; gap: 10px; align-items: start;
  padding: clamp(12px, 1.6vw, 16px) clamp(14px, 2vw, 20px);
  background: var(--surface-2); border-top: 1px solid var(--line);
}
.gstep__notes--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gstep__notes--2 .gstep__note { height: 100%; }
.gstep__kicker {
  margin: 0; font-family: var(--font-display); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; color: var(--accent-ink);
}
.gstep__kicker span { color: var(--ink-3); font-weight: 600; }
.gstep__title { margin: 0; font-size: clamp(1.14rem, 2vw, 1.34rem); }
.gstep__text { margin: 0; color: var(--ink-2); line-height: 1.65; font-size: .98rem; }
.gstep__note { padding: .75rem .9rem; gap: .65rem; font-size: .9rem; line-height: 1.55; border-radius: var(--radius-sm); }
.gstep__note > .icon { width: 18px; height: 18px; }
.gstep__note p { margin: 0; }

.guide-steps__done {
  margin: var(--gs-gap, 24px) 0 0 calc(48px + clamp(12px, 2vw, 20px));
  display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 1rem; align-items: center;
  padding: 1rem 1.2rem; border-radius: var(--radius);
  background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 26%, transparent);
}
.guide-steps__done .feature__icon { background: var(--surface); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.guide-steps__done p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.guide-steps__done strong { color: var(--ink); }

@media (max-width: 760px) {
  .gstep--media .gstep__card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "body" "notes"; }
  .gstep__notes--2 { grid-template-columns: minmax(0, 1fr); }
  .gstep__media.blueprint { border-right: 0; border-bottom: 1px solid var(--steel-line); }
  .gstep__media.blueprint img { max-height: 300px; }
}
@media (max-width: 560px) {
  .gsteps { --gs-num: 38px; }
  .gstep__num { border-radius: 11px; font-size: .92rem; }
  /* Illustrated steps use the full width; the number sits on the drawing. */
  .gstep--media { grid-template-columns: minmax(0, 1fr); }
  .gstep--media::before { display: none; }
  .gstep--media .gstep__num { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--accent); color: var(--on-accent); }
  .gstep__body { padding: 16px 16px 18px; }
  .guide-steps__done { margin-left: 0; grid-template-columns: minmax(0, 1fr); gap: .6rem; }
}

/* ---------- Experience (dark engineering panel) ---------- */
.guide-exp {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px);
  background:
    radial-gradient(760px 320px at 100% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 65%),
    var(--steel-bg);
  border: 1px solid var(--steel-line); color: var(--steel-ink);
}
.guide-exp .eyebrow { color: var(--accent-2); }
.guide-exp > h2 { color: var(--steel-ink); }
.guide-exp__intro { max-width: 62ch; margin: 0 0 clamp(20px, 3vw, 32px); color: var(--steel-ink-2); font-size: 1.04rem; line-height: 1.65; }
.guide-exp__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
  background: var(--steel-line); border: 1px solid var(--steel-line); border-radius: var(--radius); overflow: hidden;
}
.guide-exp__item { background: var(--steel-2); padding: clamp(18px, 2.4vw, 26px); display: grid; gap: .55rem; align-content: start; }
.guide-exp__item .feature__icon {
  width: 42px; height: 42px; border-radius: 11px;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent-2);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}
.guide-exp__item h3 { margin: .25rem 0 0; font-size: 1.05rem; line-height: 1.35; color: var(--steel-ink); }
.guide-exp__item p { margin: 0; color: var(--steel-ink-2); font-size: .93rem; line-height: 1.62; }
@media (max-width: 700px) { .guide-exp__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Troubleshooting ---------- */
.guide-trouble .table { font-size: .93rem; }
.guide-trouble thead th:nth-child(1) { width: 30%; }
.guide-trouble thead th:nth-child(2) { width: 33%; }
.guide-trouble tbody th { position: relative; padding-left: 2.7rem; line-height: 1.45; }
.guide-trouble__ico { position: absolute; left: 1rem; top: .95rem; width: 17px; height: 17px; color: var(--warn); }
.guide-trouble td { color: var(--ink-2); line-height: 1.55; }
.guide-trouble td:last-child { color: var(--ink); }
.guide-trouble tbody tr:hover > * { background: var(--surface-2); }
@media (max-width: 720px) {
  .guide-trouble { border: 0; background: none; overflow: visible; }
  .guide-trouble table, .guide-trouble tbody, .guide-trouble tr, .guide-trouble th, .guide-trouble td { display: block; width: auto; }
  .guide-trouble thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .guide-trouble tbody { display: grid; gap: 12px; }
  .guide-trouble tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xs); }
  .guide-trouble tbody tr:hover > * { background: transparent; }
  .guide-trouble tbody th { background: var(--warn-soft) !important; padding: .9rem 1rem .9rem 2.7rem; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .guide-trouble td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
  .guide-trouble tbody tr td:last-child { border-bottom: 0; }
  .guide-trouble td::before {
    content: attr(data-label); display: block; margin-bottom: .25rem;
    font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--ink-3);
  }
}

/* ---------- Long-form body ---------- */
.guide-prose { max-width: 72ch; }
.guide-prose h2:not(:first-child) { margin-top: 1.9em; padding-top: 1.5em; border-top: 1px solid var(--line); }
.guide-prose a { font-weight: 550; }
.guide-prose .table-scroll {
  margin: 1.5em 0; overflow-x: auto; -webkit-overflow-scrolling: touch;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.guide-prose .table-scroll table { margin: 0; min-width: 540px; }
.guide-prose .table-scroll th { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.guide-prose .table-scroll td:first-child { color: var(--ink); font-weight: 600; }
.guide-prose .table-scroll tr:last-child td { border-bottom: 0; }
/* Wide tables scroll sideways on phones: say so, like .blueprint__hint does for drawings. */
@media (max-width: 640px) {
  .guide-prose .table-scroll::before {
    content: "Swipe sideways to see every column \2192";
    display: block; min-width: 540px; padding: .5rem .9rem; font-size: .78rem; line-height: 1.4; color: var(--ink-3);
    background: var(--surface-2); border-bottom: 1px solid var(--line);
  }
}
.guide-block--figure + .guide-body { margin-top: clamp(36px, 5vw, 56px); }

/* ---------- Checklist ---------- */
.guide-check {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(20px, 3.4vw, 36px); box-shadow: var(--shadow-sm);
}
.guide-check__head { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 1.1rem; align-items: start; margin-bottom: 1.3rem; }
.guide-check__head h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); margin-bottom: .3em; }
.guide-check__head .eyebrow { margin-bottom: .5rem; }
.guide-check__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--ok-soft); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 28%, transparent);
}
.guide-check__icon .icon { width: 26px; height: 26px; }
@media (max-width: 560px) {
  .guide-check__head { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
  .guide-check__icon { width: 44px; height: 44px; }
}

.guide-check__progress { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 0 0 1rem; }
.guide-check__progress[hidden] { display: none; }
.guide-check__bar { flex: 1 1 180px; height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.guide-check__bar span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width .3s var(--ease), background-color .3s; }
.guide-check.is-complete .guide-check__bar span { background: var(--ok); }
.guide-check__count { margin: 0; font-size: .88rem; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.guide-check__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.guide-check__item {
  display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: .8rem; align-items: start;
  min-height: 50px; padding: .85rem 1rem; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2);
  color: var(--ink-2); line-height: 1.5;
  transition: border-color var(--t), background var(--t), color var(--t);
}
.guide-check__item:hover { border-color: var(--line-2); }
.guide-check__item input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ok); cursor: pointer; }
.guide-check__item:has(input:checked) { border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: var(--ok-soft); color: var(--ink); }
.guide-check__item:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.guide-check__pass {
  margin-top: 1.2rem; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 1rem; align-items: start;
  padding: 1.1rem 1.2rem; border-radius: var(--radius);
  background: var(--surface-2); border: 1px dashed var(--line-2);
}
.guide-check__pass-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-3); }
.guide-check__pass-icon .icon { width: 22px; height: 22px; }
.guide-check__pass-title { margin: .45rem 0 .3rem; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--ink); }
.guide-check__pass p { color: var(--ink-2); }
.guide-check__pass p:not(.guide-check__pass-title) { margin: 0 0 .3rem; }
/* Enhanced by guide.js: the success panel appears when every box is ticked. */
.guide-check.is-enhanced .guide-check__pass { display: none; }
.guide-check.is-enhanced.is-complete .guide-check__pass {
  display: grid; background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 32%, transparent);
  animation: guide-check-in .35s var(--ease);
}
.guide-check.is-complete .guide-check__pass-icon { background: var(--ok); color: var(--surface); }
@keyframes guide-check-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) { .guide-check__pass { grid-template-columns: minmax(0, 1fr); gap: .5rem; } }

/* ---------- Compliance + the part ---------- */
.guide-end { display: grid; gap: 18px; }
.guide-legal { font-size: .92rem; }
.guide-legal p { margin: 0; }
.guide-product {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(18px, 3vw, 34px); align-items: center;
  border-color: var(--accent-line); box-shadow: var(--shadow);
  background: linear-gradient(180deg, var(--accent-soft), var(--surface) 62%);
}
.guide-product__stage { aspect-ratio: 1 / 1; border-radius: var(--radius); box-shadow: none; }
.guide-product__stage picture, .guide-product__stage img { width: 100%; height: 100%; object-fit: contain; }
.guide-product__stage img { padding: 7%; }
.guide-product .eyebrow { margin-bottom: .5rem; }
.guide-product__title { margin: 0 0 .35rem; font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.guide-product__spec { margin: 0 0 1rem; color: var(--ink-3); font-size: .92rem; }
.guide-product__buy { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; margin-bottom: 1.1rem; }
@media (max-width: 640px) {
  .guide-product { grid-template-columns: minmax(0, 1fr); }
  .guide-product__stage { max-width: 200px; }
}

/* ---------- Guide cards (related guides, 404) ---------- */
.guide-card { gap: .45rem; }
.guide-card__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .55rem; }
.guide-card__time { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 550; color: var(--ink-3); }
.guide-card__eyebrow { font-family: var(--font-display); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--accent-ink); }
.guide-card .card__title { font-size: 1.12rem; }
.guide-card .card__text { flex: 1; }

/* ---------- Print: the guide on paper, steps and drawings intact ---------- */
.guide-print-source { display: none; }
@media print {
  .guide-print-source { display: block; margin: 0 0 8px; font-size: 8.5pt; color: var(--ink-3); }
  @page { margin: 14mm 12mm; }
  .guide-aside, .guide-toc-m, .guide-related, .guide-product, .guide-hero__actions, .guide-block__head--split .btn,
  .blueprint__hint, .guide-check__progress, .guide-check__pass, .crumbs { display: none !important; }

  .page-hero { background: none; padding-block: 0 12px; }
  .guide-hero__grid { display: block; }
  .guide-hero h1 { font-size: 22pt; max-width: none; }
  .guide-hero .lead { font-size: 11pt; }
  .guide-hero__answer { margin-top: 10px; box-shadow: none; }
  .guide-top { padding-top: 12px; }
  .guide-layout, .guide-layout--after-top { padding-block: 12px 0; }
  .guide-layout__grid { display: block; }
  .guide-block + .guide-block { margin-top: 20px; }
  .guide-block__head h2, .guide-block > h2, .guide-check__head h2 { font-size: 16pt; }

  .guide-figure, .guide-tools__media, .guide-tools__card, .guide-facts, .guide-legal, .guide-steps__done { break-inside: avoid; }
  .guide-block__head, .guide-block > h2, .guide-check__head, .guide-prose h2, .guide-prose h3 { break-after: avoid; page-break-after: avoid; }
  .guide-check__item { break-inside: avoid; }
  .guide-tools--media .guide-tools__lists { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-tools__buy { display: none; }
  .blueprint__scroll { overflow: visible; }
  .blueprint__scroll > svg, .blueprint__scroll > img { min-width: 0 !important; }

  .gsteps { gap: 10px; }
  .gstep { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; break-inside: avoid; page-break-inside: avoid; }
  .gstep::before { display: none; }
  .gstep__num { position: static; width: 30px; height: 30px; border-radius: 8px; font-size: 10pt; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .gstep__card { box-shadow: none; }
  .gstep--media .gstep__card { grid-template-columns: 38% minmax(0, 1fr); grid-template-areas: "media body" "notes notes"; }
  .gstep__notes { padding: 6px 8px; background: none; }
  .gstep__media.blueprint { padding: 18px 8px 8px; border-right: 1px solid var(--steel-line); border-bottom: 0; }
  .gstep__media.blueprint img { max-height: 55mm; }
  .gstep__body { padding: 10px 12px; gap: 5px; }
  .gstep__title { font-size: 12pt; }
  .gstep__text { font-size: 10pt; line-height: 1.5; }
  .gstep__note { padding: 6px 8px; font-size: 9pt; line-height: 1.45; }
  .guide-steps__done { margin-left: 0; }

  .guide-exp { background: none; border: 1px solid var(--line); color: var(--ink); padding: 14px; }
  .guide-exp .eyebrow { color: var(--accent-ink); }
  .guide-exp > h2, .guide-exp__item h3 { color: var(--ink); }
  .guide-exp__intro, .guide-exp__item p { color: var(--ink-2); }
  .guide-exp__grid { background: var(--line); border-color: var(--line); }
  .guide-exp__item { background: var(--surface); break-inside: avoid; padding: 10px 12px; }
  .guide-exp__item .feature__icon { display: none; }

  .guide-trouble { overflow: visible; }
  .guide-trouble tr { break-inside: avoid; }
  .guide-check { box-shadow: none; }
  .guide-check__item { background: none; min-height: 0; padding: 6px 10px; }
  .accordion details { break-inside: avoid; box-shadow: none; }
  .accordion summary { padding: 8px 10px; }
  .accordion summary::after { display: none; }
  .accordion__body { padding: 0 10px 8px; }
  .guide-prose { max-width: none; font-size: 10.5pt; }
  .guide-prose .table-scroll { overflow: visible; }
  .guide-prose .table-scroll table { min-width: 0; }
}
.guide-check [data-checklist-reset][hidden] { display: none; }
