body.page-guides {
  --guide-bg: var(--dmx-bg);
  --guide-surface: var(--dmx-surface);
  --guide-surface-raised: var(--dmx-surface-raised);
  --guide-text: var(--dmx-ink);
  --guide-muted: var(--dmx-muted);
  --guide-accent: var(--dmx-accent);
  --guide-border: var(--dmx-border);
  --guide-border-strong: var(--dmx-border-strong);
  overflow-x: clip;
  color: var(--guide-text);
  background:
    radial-gradient(ellipse at 88% 12%, rgba(255, 111, 97, .075), transparent 37rem),
    radial-gradient(ellipse at 10% 70%, rgba(218, 165, 32, .055), transparent 32rem),
    var(--guide-bg);
}

body.page-guides *,
body.page-guides *::before,
body.page-guides *::after { box-sizing: border-box; }

.guide-container { width: min(calc(100% - 3rem), 1240px); margin-inline: auto; }
.guide-eyebrow { margin: 0; color: var(--guide-accent); font-size: .71rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.guide-breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.8rem; color: var(--guide-muted); font-size: .82rem; }
.guide-breadcrumb a { color: inherit; text-decoration: none; }
.guide-breadcrumb a:hover { color: var(--guide-accent); }

/* Guides hub — mirrors the Use Cases visual rhythm. */
.guide-hub-hero { padding: clamp(6.5rem, 9vw, 8rem) 0 clamp(2.75rem, 5vw, 4rem); }
.guide-hub-hero .guide-breadcrumb { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.guide-hub-hero h1 { max-width: 720px; margin: 0; color: var(--guide-text); font: 800 clamp(3rem, 6.1vw, 5.4rem)/.98 var(--series-display, 'Poppins', sans-serif); letter-spacing: -.065em; }
.guide-hub-hero > .guide-container > p:not(.guide-eyebrow) { max-width: 620px; margin: 1.1rem 0 0; color: var(--guide-muted); font-size: clamp(1rem, 1.55vw, 1.12rem); line-height: 1.7; }
.guide-pathways { padding: 0 0 clamp(4.5rem, 7vw, 6.5rem); }
.guide-pathways h2 { max-width: 680px; margin: .7rem 0 0; color: var(--guide-text); font: 700 clamp(2rem, 3.7vw, 3.5rem)/1 var(--series-display, 'Poppins', sans-serif); letter-spacing: -.06em; }
.guide-pathway-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(1.7rem, 3vw, 2.5rem); }
.guide-pathway-card { display: flex; min-height: 250px; flex-direction: column; padding: clamp(1.35rem, 2.1vw, 1.9rem); border: 1px solid var(--guide-border); border-radius: 18px; background: linear-gradient(145deg, rgba(255, 215, 0, .08), transparent 52%), var(--guide-surface); }
.guide-pathway-card h3 { margin: 0; color: var(--guide-text); font: 700 clamp(1.2rem, 1.7vw, 1.45rem)/1.15 var(--series-display, 'Poppins', sans-serif); }
.guide-pathway-card p { margin: .8rem 0 1.4rem; color: var(--guide-muted); line-height: 1.68; }
.guide-pathway-card div { display: grid; gap: .45rem; margin-top: auto; }
.guide-pathway-card a { color: var(--guide-text); font-size: .9rem; font-weight: 700; text-decoration: none; }
.guide-pathway-card a::after { margin-left: .5rem; color: var(--guide-accent); content: '\2192'; }
.guide-pathway-card a:hover { color: var(--guide-accent); }
.guide-showcase-section { padding-bottom: clamp(5rem, 8vw, 7rem); }
.guide-showcase-list { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }
.guide-showcase { display: grid; grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr); align-items: center; gap: clamp(5rem, 9vw, 9rem); padding-top: clamp(2rem, 3.8vw, 3rem); border-top: 1px solid var(--guide-border); }
.guide-showcase.is-reversed { grid-template-columns: minmax(0, 1.18fr) minmax(280px, .82fr); }
.guide-showcase.is-reversed .guide-showcase-visual { order: 2; }
.guide-showcase:last-child { padding-bottom: clamp(2rem, 3.8vw, 3rem); border-bottom: 1px solid var(--guide-border); }
.guide-showcase-visual,
.guide-article-photo {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--guide-border);
  border-radius: 24px;
  background: var(--guide-surface-raised);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, .28),
    0 0 30px rgba(255, 215, 0, .12),
    0 0 70px rgba(255, 69, 0, .07);
}
.guide-showcase-visual { aspect-ratio: 4 / 3; margin: 0; }
.guide-showcase-visual a { position: absolute; inset: 0; display: block; }
.guide-showcase-visual img,
.guide-article-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .55s ease; }
.guide-showcase-copy { min-width: 0; }
.guide-showcase-copy .guide-eyebrow { margin-bottom: .95rem; }
.guide-showcase-copy h2 { max-width: 620px; margin: 0; color: var(--guide-text); font: 800 clamp(2.1rem, 3.8vw, 3.85rem)/1.02 var(--series-display, 'Poppins', sans-serif); letter-spacing: -.055em; }
.guide-showcase-copy h2 a { color: inherit; text-decoration: none; }
.guide-showcase-copy h2 a:hover { color: var(--guide-accent); }
.guide-showcase-copy > p { max-width: 620px; margin: 1rem 0 0; color: var(--guide-muted); font-size: clamp(.98rem, 1.3vw, 1.06rem); line-height: 1.7; }
.guide-showcase-link { display: inline-flex; align-items: center; gap: .65rem; margin-top: 1.3rem; color: var(--guide-text); font-size: .84rem; font-weight: 700; text-decoration: none; }
.guide-showcase-link span { color: var(--guide-accent); font-size: 1.1rem; transition: transform .2s ease; }
@media (hover: hover) and (pointer: fine) {
  .guide-showcase-visual:hover img,
  .guide-article-photo:hover img { transform: scale(1.035); }
  .guide-showcase-link:hover { color: var(--guide-accent); }
  .guide-showcase-link:hover span { transform: translateX(4px); }
}

/* Article pages */
.guide-article-hero { padding: clamp(6.5rem, 9vw, 8.5rem) 0 clamp(3rem, 5vw, 4.5rem); }
.guide-article-hero-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(340px, .94fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.guide-article-title h1 { max-width: 620px; margin: .8rem 0 0; color: var(--guide-text); font: 800 clamp(2.45rem, 4.7vw, 4.7rem)/1 var(--series-display, 'Poppins', sans-serif); letter-spacing: -.055em; }
.guide-article-intro { max-width: 600px; margin: 1.1rem 0 0; color: var(--guide-muted); font-size: clamp(1.04rem, 1.45vw, 1.17rem); line-height: 1.78; }
.guide-article-photo { min-height: 0; aspect-ratio: 4 / 3; }
.guide-article-photo::after { background: linear-gradient(135deg, rgba(24, 24, 24, .18), transparent 55%), linear-gradient(0deg, rgba(24, 24, 24, .3), transparent 48%); }
.guide-article-photo figcaption { position: absolute; z-index: 1; right: 1.3rem; bottom: 1.2rem; left: 1.3rem; color: var(--guide-text); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.guide-article { padding-bottom: clamp(5rem, 9vw, 9rem); }
.guide-article-content { width: min(calc(100% - 3rem), 1240px); margin-inline: auto; }
.guide-topic-overview { max-width: 820px; padding-top: clamp(3rem, 5vw, 4.5rem); border-top: 1px solid var(--guide-border); }
.guide-topic-overview h2 { max-width: 720px; margin: .7rem 0 0; color: var(--guide-text); font: 700 clamp(2.25rem, 4.2vw, 4.25rem)/1 var(--series-display, 'Poppins', sans-serif); letter-spacing: -.06em; }
.guide-topic-summary { max-width: 820px; margin: 1.2rem 0 0; color: var(--guide-muted); font-size: clamp(1rem, 1.45vw, 1.12rem); line-height: 1.75; }
.guide-topic-flow { margin-top: clamp(2rem, 4vw, 3.25rem); border-top: 1px solid var(--guide-border); }
.guide-topic-flow section { padding-block: clamp(1.6rem, 3vw, 2.4rem); }
.guide-topic-flow section + section { border-top: 1px solid var(--guide-border); }
.guide-topic-flow h3 { margin: 0; color: var(--guide-text); font: 700 clamp(1.15rem, 1.8vw, 1.4rem)/1.2 var(--series-display, 'Poppins', sans-serif); }
.guide-topic-flow p { max-width: 760px; margin: .8rem 0 0; color: var(--guide-muted); font-size: clamp(.98rem, 1.3vw, 1.06rem); line-height: 1.78; }
.guide-device-link { display: flex; flex-wrap: wrap; align-items: baseline; gap: .45rem .7rem; margin-top: 1.65rem; padding-top: 1.25rem; color: var(--guide-text); border-top: 1px solid var(--guide-border); font-size: .9rem; font-weight: 700; text-decoration: none; }
.guide-device-link span { color: var(--guide-muted); font-weight: 500; }
.guide-device-link b { color: var(--guide-accent); font-size: 1.1rem; }
.guide-device-link:hover { color: var(--guide-accent); }
.guide-copy,
.guide-related,
.guide-faq { max-width: 820px; }
.guide-toc { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-bottom: clamp(3rem, 6vw, 5rem); padding-block: 1.1rem; border-top: 1px solid var(--guide-border); border-bottom: 1px solid var(--guide-border); }
.guide-toc strong { width: 100%; color: var(--guide-accent); font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; }
.guide-toc a { color: var(--guide-muted); font-size: .88rem; font-weight: 700; text-decoration: none; }
.guide-toc a:hover { color: var(--guide-accent); }
.guide-copy section + section { margin-top: clamp(3.4rem, 6vw, 5.4rem); }
.guide-copy h2, .guide-faq h2, .guide-related h2 { margin: 0; color: var(--guide-text); font: 700 clamp(2rem, 3.7vw, 3.5rem)/1 var(--series-display, 'Poppins', sans-serif); letter-spacing: -.06em; }
.guide-copy p { margin: 1.1rem 0 0; color: var(--guide-muted); font-size: 1.02rem; line-height: 1.82; }
.guide-planning-note { margin-top: 1.6rem; padding: 1.35rem 1.45rem; color: var(--guide-muted); border-left: 2px solid var(--guide-accent); background: rgba(255, 215, 0, .06); line-height: 1.7; }
.guide-planning-note strong { color: var(--guide-text); }
.guide-related { margin-top: clamp(4rem, 7vw, 6rem); padding-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--guide-border); }
.guide-related h2 { margin-bottom: 1.4rem; }
.guide-related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.guide-related-link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 82px; padding: 1rem 1.1rem; color: var(--guide-text); border: 1px solid var(--guide-border); border-radius: 14px; background: var(--guide-surface); font-size: .94rem; font-weight: 700; text-decoration: none; transition: border-color .25s ease, background .25s ease; }
.guide-related-link:hover { border-color: var(--guide-border-strong); background: var(--guide-surface-raised); }
.guide-related-link span { color: var(--guide-accent); font-size: 1.15rem; }
.guide-faq { margin-top: clamp(4rem, 7vw, 6rem); padding-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--guide-border); }
.guide-faq h2 { margin-bottom: 1.4rem; }
.guide-faq details { border-bottom: 1px solid var(--guide-border); }
.guide-faq summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 1.25rem;
  align-items: center;
  min-height: 76px;
  padding: 1.2rem 0;
  color: var(--guide-text);
  cursor: pointer;
  list-style: none;
  font: 600 clamp(.98rem, 1.7vw, 1.12rem)/1.45 var(--series-display, 'Poppins', sans-serif);
  text-align: left;
}
.guide-faq summary::-webkit-details-marker,
.guide-faq summary::marker { display: none; content: ''; }
.guide-faq summary::after {
  display: flex;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  color: var(--guide-muted);
  border: 1px solid var(--guide-border);
  border-radius: 50%;
  background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  content: '';
  transform-origin: center;
  will-change: transform;
  transition: color .22s ease, border-color .22s ease, transform .22s ease;
}
.guide-faq details[open] summary::after { color: var(--guide-accent); border-color: var(--guide-accent); transform: rotate(45deg); }
.guide-faq summary:hover { color: var(--guide-accent); }
.guide-faq details p { max-width: 760px; margin: 0 3rem 1.25rem 0; color: var(--guide-muted); line-height: 1.72; text-align: left; }

@media (max-width: 920px) {
  .guide-article-hero-grid { grid-template-columns: 1fr; }
  .guide-article-photo { min-height: 0; order: -1; }
  .guide-showcase,
  .guide-showcase.is-reversed { grid-template-columns: 1fr; gap: 2rem; }
  .guide-showcase.is-reversed .guide-showcase-visual { order: 0; }
  .guide-showcase-visual { min-height: 0; aspect-ratio: 16 / 11; }
  .guide-pathway-grid { grid-template-columns: 1fr; }
  .guide-pathway-card { min-height: 0; }
}
@media (max-width: 620px) {
  .guide-container, .guide-article-content { width: min(calc(100% - 2rem), 1240px); }
  .guide-hub-hero, .guide-article-hero { padding-top: 7rem; }
  .guide-showcase-list { gap: 3.5rem; }
  .guide-showcase { gap: 1.5rem; padding-top: 2.25rem; }
  .guide-showcase-visual { min-height: 0; aspect-ratio: 4 / 3; border-radius: 20px; }
  .guide-showcase-copy h2 { font-size: clamp(2.7rem, 14vw, 4.2rem); }
  .guide-related-grid { grid-template-columns: 1fr; }
  .guide-article-photo { min-height: 0; }
  .guide-toc { gap: .6rem 1rem; }
  .guide-faq summary { min-height: 72px; }
  .guide-faq details p { margin-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .guide-primary-link, .guide-faq summary::after { transition: none; }
}
