/* HJ Guide & Support visual system — Phase 5
   Technical editorial, trust, conversion, coverage and document-reading modes.
   This file is intentionally inert unless the synchroniser applies the Phase 5
   body contract. Authored copy, forms, schemas and legal text remain untouched. */

body[data-hj-guide-support-version="phase5"] {
  --hj-gs-ink: #03070d;
  --hj-gs-ink-raised: #070d17;
  --hj-gs-panel: #0a1320;
  --hj-gs-panel-strong: #0d1928;
  --hj-gs-paper: #f5f8fb;
  --hj-gs-text: #e7eef7;
  --hj-gs-copy: #afbdcd;
  --hj-gs-dim: #8091a8;
  --hj-gs-cyan: #63dff8;
  --hj-gs-cyan-bright: #9deeff;
  --hj-gs-cyan-soft: rgba(99, 223, 248, .10);
  --hj-gs-line: rgba(178, 216, 235, .14);
  --hj-gs-line-strong: rgba(99, 223, 248, .34);
  --hj-gs-positive: #7ce2a3;
  --hj-gs-caution: #f4c96f;
  --hj-gs-danger: #ff8e91;
  --hj-gs-max: 1200px;
  --hj-gs-reading: 720px;
  --hj-gs-radius: 14px;
  --hj-gs-shadow: 0 28px 70px rgba(0, 0, 0, .28);
  --hj-gs-section: clamp(68px, 7vw, 108px);
  min-width: 0;
  color: var(--hj-gs-text);
  background: var(--hj-gs-ink);
}

body[data-hj-support-view="guide-hub"][data-hj-guide-support-version="phase5"] {
  --hj-gs-view-accent: #63dff8;
}

body[data-hj-support-view="guide-detail"][data-hj-guide-support-version="phase5"] {
  --hj-gs-view-accent: #79e4fb;
}

body[data-hj-support-view="company"][data-hj-guide-support-version="phase5"] {
  --hj-gs-view-accent: #7ce2d2;
}

body[data-hj-support-view="contact"][data-hj-guide-support-version="phase5"] {
  --hj-gs-view-accent: #76e0a1;
}

body[data-hj-support-view="assessment"][data-hj-guide-support-version="phase5"] {
  --hj-gs-view-accent: #67dcf6;
}

body[data-hj-support-view="service-area"][data-hj-guide-support-version="phase5"] {
  --hj-gs-view-accent: #8adce9;
}

body[data-hj-support-view="legal"][data-hj-guide-support-version="phase5"] {
  --hj-gs-view-accent: #a8c9da;
}

body[data-hj-guide-support-version="phase5"] main {
  position: relative;
  min-width: 0;
  overflow: clip;
  background:
    radial-gradient(circle at 92% 7%, rgba(68, 197, 229, .055), transparent 27rem),
    var(--hj-gs-ink);
}

body[data-hj-guide-support-version="phase5"] :where(
  main > *,
  section,
  article,
  nav,
  aside,
  form,
  fieldset,
  .container,
  .hj-container,
  .split,
  .grid,
  [data-hj-phase5-module]
) {
  min-width: 0;
}

body[data-hj-guide-support-version="phase5"] :where(
  a,
  button,
  input,
  select,
  textarea,
  summary
):focus-visible {
  outline: 2px solid var(--hj-gs-cyan-bright);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(99, 223, 248, .12);
}

body[data-hj-guide-support-version="phase5"] main :where(p, li, dd) a:not([class]) {
  color: var(--hj-gs-cyan-bright);
  text-decoration-color: rgba(157, 238, 255, .62);
  text-decoration-thickness: .08em;
  text-underline-offset: .2em;
}

body[data-hj-guide-support-version="phase5"] main :where(p, li, dd) a:not([class]):hover {
  color: #d6f8ff;
  text-decoration-color: currentColor;
}

/* ---------- Shared editorial hero ---------- */

body[data-hj-guide-support-version="phase5"] .hj-support-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: clamp(500px, 64vh, 690px);
  padding: clamp(62px, 7vw, 104px) 0 !important;
  overflow: clip;
  border-block: 1px solid var(--hj-gs-line);
  background:
    linear-gradient(90deg, rgba(3, 7, 13, .98), rgba(3, 7, 13, .82) 58%, rgba(3, 7, 13, .62)),
    radial-gradient(circle at 79% 42%, rgba(71, 203, 234, .11), transparent 27rem),
    var(--hj-gs-ink);
}

body[data-hj-guide-support-version="phase5"] .hj-support-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .42;
  background:
    linear-gradient(rgba(128, 212, 234, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128, 212, 234, .07) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .18) 38%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .18) 38%, #000 100%);
}

body[data-hj-guide-support-version="phase5"] .hj-support-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: clamp(24px, 7vw, 110px);
  width: 1px;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(transparent, var(--hj-gs-line-strong) 32%, transparent 84%);
}

body[data-hj-guide-support-version="phase5"] .hj-support-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
  gap: clamp(44px, 7vw, 104px);
  align-items: center;
  width: min(calc(100% - 40px), var(--hj-gs-max));
  margin-inline: auto;
}

body[data-hj-guide-support-version="phase5"] .hj-support-hero-copy {
  max-width: 760px;
}

body[data-hj-guide-support-version="phase5"] .hj-support-hero-copy :where(.eyebrow, .hj-section-kicker) {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 20px;
  color: var(--hj-gs-view-accent, var(--hj-gs-cyan));
  font: 650 .7rem/1.2 'JetBrains Mono', monospace;
  letter-spacing: .13em;
  text-transform: uppercase;
}

body[data-hj-guide-support-version="phase5"] .hj-support-hero-copy :where(.eyebrow, .hj-section-kicker)::before {
  content: "";
  flex: 0 0 22px;
  height: 1px;
  background: currentColor;
}

body[data-hj-guide-support-version="phase5"] .hj-support-hero-copy h1 {
  max-width: 850px;
  margin: 0;
  color: #f7fbff;
  font: 650 clamp(2.65rem, 5.3vw, 4.75rem)/.98 'Space Grotesk', sans-serif;
  letter-spacing: -.052em;
  text-wrap: balance;
}

body[data-hj-guide-support-version="phase5"] .hj-support-hero-copy .lead,
body[data-hj-guide-support-version="phase5"] .hj-support-hero-copy > p {
  max-width: 66ch !important;
  margin: 27px 0 0;
  color: var(--hj-gs-copy);
  font-size: clamp(1.04rem, 1.45vw, 1.18rem) !important;
  line-height: 1.72;
}

body[data-hj-guide-support-version="phase5"] .hj-support-hero-copy .cta-row {
  justify-content: flex-start;
  margin-top: 30px;
}

/* ---------- Generated system visual ---------- */

body[data-hj-guide-support-version="phase5"] .hj-phase5-visual {
  position: relative;
  isolation: isolate;
  min-height: 360px;
  padding: clamp(24px, 3.4vw, 42px) 0 clamp(20px, 3vw, 36px) clamp(26px, 3.5vw, 46px);
  overflow: hidden;
  border-left: 1px solid var(--hj-gs-line-strong);
  background: linear-gradient(90deg, rgba(99, 223, 248, .035), transparent 68%);
}

body[data-hj-guide-support-version="phase5"] .hj-phase5-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .48;
  background:
    linear-gradient(rgba(104, 207, 233, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(104, 207, 233, .075) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: linear-gradient(135deg, #000, transparent 88%);
  mask-image: linear-gradient(135deg, #000, transparent 88%);
}

body[data-hj-guide-support-version="phase5"] .hj-phase5-visual::after {
  content: "";
  position: absolute;
  top: 0;
  left: -1px;
  width: 62px;
  height: 1px;
  background: var(--hj-gs-cyan-bright);
  box-shadow: 0 0 16px rgba(99, 223, 248, .42);
}

body[data-hj-guide-support-version="phase5"] .hj-phase5-visual > * {
  position: relative;
  z-index: 1;
}

body[data-hj-guide-support-version="phase5"] .hj-phase5-signal {
  position: relative;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 20px;
  color: var(--hj-gs-dim);
  font: 600 .68rem/1.4 'JetBrains Mono', monospace;
  letter-spacing: .09em;
  text-transform: uppercase;
}

body[data-hj-guide-support-version="phase5"] .hj-phase5-signal::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 1px solid var(--hj-gs-cyan-bright);
  border-radius: 50%;
  background: rgba(99, 223, 248, .2);
  box-shadow: 0 0 0 5px rgba(99, 223, 248, .06), 0 0 16px rgba(99, 223, 248, .25);
  animation: hj-phase5-signal 3.2s ease-in-out infinite;
}

body[data-hj-guide-support-version="phase5"] .hj-phase5-node-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: hj-phase5-node;
  border-top: 1px solid var(--hj-gs-line-strong);
}

body[data-hj-guide-support-version="phase5"] .hj-phase5-node-list > :where(li, article, div, a) {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
  padding: 15px 2px;
  color: var(--hj-gs-copy);
  border-bottom: 1px solid var(--hj-gs-line);
  background: transparent;
  counter-increment: hj-phase5-node;
}

body[data-hj-guide-support-version="phase5"] .hj-phase5-node-list > :where(li, article, div, a)::before {
  content: none;
}

body[data-hj-guide-support-version="phase5"] .hj-phase5-node-list > :where(li, article, div, a) > span:first-child {
  display: block;
  margin: 0;
  padding-top: .28em;
  color: var(--hj-gs-view-accent, var(--hj-gs-cyan));
  font: 600 .65rem/1 'JetBrains Mono', monospace;
  letter-spacing: .06em;
}

body[data-hj-guide-support-version="phase5"] .hj-phase5-node-list > a {
  text-decoration: none;
  transition: color .2s ease, padding-left .2s ease, background-color .2s ease;
}

body[data-hj-guide-support-version="phase5"] .hj-phase5-node-list > a:hover {
  padding-left: 8px;
  color: #f5fbff;
  background: linear-gradient(90deg, rgba(99, 223, 248, .07), transparent 82%);
}

body[data-hj-guide-support-version="phase5"] .hj-phase5-node-list :where(strong, h3) {
  display: block;
  margin: 0;
  color: #eef7fd;
  font: 620 .95rem/1.35 'Space Grotesk', sans-serif;
  letter-spacing: -.015em;
}

body[data-hj-guide-support-version="phase5"] .hj-phase5-node-list :where(span, p, small) {
  display: block;
  margin: 4px 0 0;
  color: var(--hj-gs-dim);
  font-size: .82rem;
  line-height: 1.55;
}

@keyframes hj-phase5-signal {
  0%, 100% { opacity: .58; transform: scale(.9); }
  50% { opacity: 1; transform: scale(1); }
}

/* ---------- Shared Phase 5 modules ---------- */

body[data-hj-guide-support-version="phase5"] [data-hj-phase5-module] {
  position: relative;
  min-width: 0;
  scroll-margin-top: calc(var(--hj-header-height, 74px) + 22px);
}

body[data-hj-guide-support-version="phase5"] section[data-hj-phase5-module] {
  padding-block: var(--hj-gs-section);
  border-top: 1px solid var(--hj-gs-line);
  background: transparent;
}

body[data-hj-guide-support-version="phase5"] section[data-hj-phase5-module].section-alt {
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, .012) 20%, rgba(255, 255, 255, .012) 80%, transparent),
    var(--hj-gs-ink-raised);
}

body[data-hj-guide-support-version="phase5"] [data-hj-phase5-module] :where(.section-head, .hj-section-head) {
  max-width: 850px;
  margin-bottom: clamp(30px, 4vw, 54px);
  text-align: left;
}

body[data-hj-guide-support-version="phase5"] [data-hj-phase5-module] :where(.section-head, .hj-section-head) h2 {
  max-width: 780px;
  color: #f5f9fd;
  font: 640 clamp(2rem, 3.8vw, 3.2rem)/1.04 'Space Grotesk', sans-serif;
  letter-spacing: -.042em;
}

body[data-hj-guide-support-version="phase5"] [data-hj-phase5-module] :where(.section-head, .hj-section-head) p {
  max-width: 68ch;
  margin-top: 16px;
  color: var(--hj-gs-copy);
  line-height: 1.72;
}

/* ---------- Guide hub: open ledger, not a card wall ---------- */

body[data-hj-support-view="guide-hub"][data-hj-guide-support-version="phase5"] .hj-support-hero {
  min-height: min(720px, calc(100vh - var(--hj-header-height, 74px)));
}

body[data-hj-guide-support-version="phase5"] .hj-phase5-guide-ledger {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: hj-guide-ledger;
  border-top: 1px solid var(--hj-gs-line-strong);
}

body[data-hj-guide-support-version="phase5"] .hj-phase5-guide-ledger > :where(li, article, a) {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 18px 0;
  color: inherit;
  border-bottom: 1px solid var(--hj-gs-line);
  background: transparent;
  text-decoration: none;
  counter-increment: hj-guide-ledger;
  transition: color .2s ease, background-color .2s ease, padding-inline .2s ease;
}

body[data-hj-guide-support-version="phase5"] .hj-phase5-guide-ledger > :where(li, article, a)::before {
  content: counter(hj-guide-ledger, decimal-leading-zero);
  color: var(--hj-gs-cyan);
  font: 600 .68rem/1 'JetBrains Mono', monospace;
  letter-spacing: .08em;
}

body[data-hj-guide-support-version="phase5"] .hj-phase5-guide-ledger > a:hover {
  padding-inline: 10px;
  color: #fff;
  background: linear-gradient(90deg, rgba(99, 223, 248, .08), transparent 78%);
}

body[data-hj-guide-support-version="phase5"] .hj-phase5-guide-ledger :where(h2, h3, strong) {
  display: block;
  margin: 0;
  color: #f2f8fc;
  font: 620 clamp(.96rem, 1.6vw, 1.12rem)/1.35 'Space Grotesk', sans-serif;
  letter-spacing: -.018em;
}

body[data-hj-guide-support-version="phase5"] .hj-phase5-guide-ledger :where(p, small, time, span) {
  margin: 4px 0 0;
  color: var(--hj-gs-dim);
  font-size: .76rem;
  line-height: 1.5;
}

body[data-hj-guide-support-version="phase5"] .hj-phase5-guide-ledger > :where(li, article, a)::after {
  content: "\2192";
  color: var(--hj-gs-cyan);
  font-size: 1.05rem;
}

body[data-hj-support-view="guide-hub"][data-hj-guide-support-version="phase5"] [data-hj-phase5-module] :where(.grid, .grid-3) {
  gap: 0;
  border-top: 1px solid var(--hj-gs-line-strong);
}

body[data-hj-support-view="guide-hub"][data-hj-guide-support-version="phase5"] [data-hj-phase5-module] .card {
  min-height: 100%;
  padding: clamp(24px, 3vw, 38px);
  border: 0;
  border-right: 1px solid var(--hj-gs-line);
  border-bottom: 1px solid var(--hj-gs-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-hj-support-view="guide-hub"][data-hj-guide-support-version="phase5"] [data-hj-phase5-module] .card:last-child {
  border-right: 0;
}

/* ---------- Guide detail: TOC / prose / authority ledger ---------- */

body[data-hj-support-view="guide-detail"][data-hj-guide-support-version="phase5"] .hj-support-hero {
  min-height: clamp(470px, 58vh, 620px);
}

body[data-hj-guide-support-version="phase5"] .hj-guide-article {
  position: relative;
  width: min(calc(100% - 40px), var(--hj-gs-max));
  margin-inline: auto;
  padding-block: clamp(64px, 7vw, 106px);
}

body[data-hj-guide-support-version="phase5"] :where(
  .hj-guide-article.container,
  .hj-guide-article.hj-container,
  .hj-guide-article > .container,
  .hj-guide-article > .hj-container
) {
  display: grid;
  grid-template-columns: minmax(160px, 210px) minmax(0, var(--hj-gs-reading)) minmax(185px, 235px);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  width: 100%;
  max-width: none !important;
}

body[data-hj-guide-support-version="phase5"] :where(
  .hj-guide-article.container,
  .hj-guide-article.hj-container,
  .hj-guide-article > .container,
  .hj-guide-article > .hj-container
) > :not(.hj-guide-toc, .hj-guide-source-ledger) {
  grid-column: 2;
  min-width: 0;
}

body[data-hj-guide-support-version="phase5"] .hj-guide-toc {
  position: sticky;
  top: calc(var(--hj-header-height, 74px) + 30px);
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  padding: 4px 22px 4px 0;
  border-right: 1px solid var(--hj-gs-line);
}

body[data-hj-guide-support-version="phase5"] .hj-guide-toc :where(h2, h3, strong, .hj-guide-toc-title) {
  display: block;
  margin: 0 0 16px;
  color: var(--hj-gs-dim);
  font: 650 .66rem/1.3 'JetBrains Mono', monospace;
  letter-spacing: .11em;
  text-transform: uppercase;
}

body[data-hj-guide-support-version="phase5"] .hj-guide-toc :where(ol, ul) {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: hj-guide-toc;
}

body[data-hj-guide-support-version="phase5"] .hj-guide-toc li {
  min-width: 0;
  border-top: 1px solid var(--hj-gs-line);
  counter-increment: hj-guide-toc;
}

body[data-hj-guide-support-version="phase5"] .hj-guide-toc a {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  padding: 11px 0;
  color: var(--hj-gs-dim);
  font-size: .78rem;
  line-height: 1.42;
  text-decoration: none;
  transition: color .18s ease, padding-left .18s ease;
}

body[data-hj-guide-support-version="phase5"] .hj-guide-toc a::before {
  content: none;
}

body[data-hj-guide-support-version="phase5"] .hj-guide-toc a > span:first-child {
  padding-top: .18em;
  color: var(--hj-gs-cyan);
  font: 600 .58rem/1.5 'JetBrains Mono', monospace;
}

body[data-hj-guide-support-version="phase5"] .hj-guide-toc a:hover {
  padding-left: 5px;
  color: #f4fbff;
}

body[data-hj-guide-support-version="phase5"] .hj-guide-source-ledger {
  position: sticky;
  top: calc(var(--hj-header-height, 74px) + 30px);
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
  padding: 20px 0 0 20px;
  border-top: 1px solid var(--hj-gs-line-strong);
  border-left: 1px solid var(--hj-gs-line);
}

body[data-hj-guide-support-version="phase5"] .hj-guide-source-ledger::before {
  content: "SOURCE / RESPONSIBILITY";
  display: block;
  margin-bottom: 14px;
  color: var(--hj-gs-cyan);
  font: 650 .61rem/1.35 'JetBrains Mono', monospace;
  letter-spacing: .1em;
}

body[data-hj-guide-support-version="phase5"] .hj-guide-source-ledger :where(h2, h3, strong) {
  display: block;
  margin: 0 0 8px;
  color: #eff8fd;
  font: 620 .95rem/1.35 'Space Grotesk', sans-serif;
  letter-spacing: -.012em;
}

body[data-hj-guide-support-version="phase5"] .hj-guide-source-ledger :where(p, li, small, time) {
  color: var(--hj-gs-dim);
  font-size: .78rem;
  line-height: 1.62;
}

body[data-hj-guide-support-version="phase5"] .hj-guide-source-ledger :where(ul, ol) {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

body[data-hj-guide-support-version="phase5"] .hj-guide-source-ledger a {
  color: var(--hj-gs-cyan-bright);
  overflow-wrap: anywhere;
  text-underline-offset: .2em;
}

body[data-hj-guide-support-version="phase5"] .hj-guide-article :where(.hj-guide-prose, .hj-guide-content, article) {
  max-width: var(--hj-gs-reading);
}

body[data-hj-guide-support-version="phase5"] .hj-guide-article :where(.hj-guide-prose, .hj-guide-content, article, .container) > p {
  margin: 0 0 1.35em;
  color: var(--hj-gs-copy);
  font-size: clamp(1.02rem, 1.25vw, 1.11rem);
  line-height: 1.82;
}

body[data-hj-guide-support-version="phase5"] .hj-guide-article :where(.hj-guide-prose, .hj-guide-content, article, .container) > h2 {
  margin: clamp(48px, 6vw, 74px) 0 20px;
  padding-top: 7px;
  color: #f5f9fd;
  font: 640 clamp(1.72rem, 3vw, 2.45rem)/1.12 'Space Grotesk', sans-serif;
  letter-spacing: -.035em;
  scroll-margin-top: calc(var(--hj-header-height, 74px) + 28px);
}

body[data-hj-guide-support-version="phase5"] .hj-guide-article :where(.hj-guide-prose, .hj-guide-content, article, .container) > h2:first-of-type {
  margin-top: 0;
}

body[data-hj-guide-support-version="phase5"] .hj-guide-article :where(.hj-guide-prose, .hj-guide-content, article, .container) > h2::before {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  margin-bottom: 18px;
  background: var(--hj-gs-line-strong);
}

body[data-hj-guide-support-version="phase5"] .hj-guide-article :where(.hj-guide-prose, .hj-guide-content, article, .container) > :where(ul, ol) {
  display: grid;
  gap: 10px;
  margin: 0 0 1.6em;
  padding-left: 1.25em;
  color: var(--hj-gs-copy);
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.72;
}

body[data-hj-guide-support-version="phase5"] .hj-guide-article :where(blockquote, .callout) {
  margin: 34px 0;
  padding: 22px 24px;
  color: var(--hj-gs-copy);
  border: 0;
  border-left: 2px solid var(--hj-gs-cyan);
  border-radius: 0;
  background: linear-gradient(90deg, rgba(99, 223, 248, .08), transparent);
  box-shadow: none;
}

/* ---------- Company / responsibility mode ---------- */

body[data-hj-guide-support-version="phase5"] .hj-company-section {
  position: relative;
  padding-block: var(--hj-gs-section);
  border-top: 1px solid var(--hj-gs-line);
  background: var(--hj-gs-ink);
}

body[data-hj-guide-support-version="phase5"] .hj-company-section :where(.split, .grid) {
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

body[data-hj-guide-support-version="phase5"] .hj-company-section :where(.card, .hj-role-panel, article) {
  position: relative;
  min-width: 0;
  padding: 27px 0;
  border: 0;
  border-top: 1px solid var(--hj-gs-line-strong);
  border-bottom: 1px solid var(--hj-gs-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-hj-guide-support-version="phase5"] .hj-company-section :where(.card, .hj-role-panel, article) h3 {
  color: #f1f7fb;
  font-size: clamp(1.18rem, 2vw, 1.48rem);
}

body[data-hj-guide-support-version="phase5"] .hj-company-section :where(.card, .hj-role-panel, article) p {
  color: var(--hj-gs-copy);
  line-height: 1.72;
}

body[data-hj-support-view="company"][data-hj-guide-support-version="phase5"] .hj-phase5-visual {
  border-left-color: rgba(124, 226, 210, .38);
  background: linear-gradient(90deg, rgba(124, 226, 210, .045), transparent 72%);
}

/* ---------- Contact / assessment: the real form is the product ---------- */

body[data-hj-support-view="contact"][data-hj-guide-support-version="phase5"] .hj-support-hero,
body[data-hj-support-view="assessment"][data-hj-guide-support-version="phase5"] .hj-support-hero {
  min-height: clamp(360px, 44vh, 480px);
  padding-block: clamp(38px, 4.5vw, 58px) !important;
}

body[data-hj-support-view="contact"][data-hj-guide-support-version="phase5"] .hj-support-hero-grid,
body[data-hj-support-view="assessment"][data-hj-guide-support-version="phase5"] .hj-support-hero-grid {
  gap: clamp(30px, 4.5vw, 64px);
}

body[data-hj-support-view="contact"][data-hj-guide-support-version="phase5"] .hj-support-hero .hj-phase5-visual,
body[data-hj-support-view="assessment"][data-hj-guide-support-version="phase5"] .hj-support-hero .hj-phase5-visual {
  min-height: 220px;
  padding-block: 20px;
}

body[data-hj-support-view="contact"][data-hj-guide-support-version="phase5"] .hj-support-hero .hj-phase5-node-list,
body[data-hj-support-view="assessment"][data-hj-guide-support-version="phase5"] .hj-support-hero .hj-phase5-node-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-hj-support-view="contact"][data-hj-guide-support-version="phase5"] .hj-support-hero .hj-phase5-node-list > li,
body[data-hj-support-view="assessment"][data-hj-guide-support-version="phase5"] .hj-support-hero .hj-phase5-node-list > li {
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  padding-block: 12px;
}

body[data-hj-guide-support-version="phase5"] .hj-conversion-section {
  position: relative;
  padding: clamp(34px, 4vw, 58px) 0 var(--hj-gs-section) !important;
  border-top: 1px solid var(--hj-gs-line);
  background:
    linear-gradient(180deg, rgba(99, 223, 248, .025), transparent 32rem),
    var(--hj-gs-ink);
}

body[data-hj-guide-support-version="phase5"] .hj-conversion-section .split {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(420px, 1.18fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: start;
}

body[data-hj-guide-support-version="phase5"] .hj-conversion-section .split > :has(form#enquiryForm) {
  position: relative;
  padding: clamp(26px, 3.5vw, 42px) !important;
  border: 1px solid var(--hj-gs-line-strong) !important;
  border-radius: var(--hj-gs-radius) !important;
  background:
    linear-gradient(145deg, rgba(99, 223, 248, .08), transparent 42%),
    var(--hj-gs-panel) !important;
  box-shadow: var(--hj-gs-shadow) !important;
}

body[data-hj-guide-support-version="phase5"] .hj-conversion-section .split > :has(form#enquiryForm)::before {
  content: "";
  position: absolute;
  top: -1px;
  left: clamp(24px, 5vw, 62px);
  width: 84px;
  height: 1px;
  background: var(--hj-gs-cyan-bright);
  box-shadow: 0 0 18px rgba(99, 223, 248, .45);
}

body[data-hj-guide-support-version="phase5"] .hj-conversion-section .split > :not(:has(form#enquiryForm)) .card {
  padding: 24px 0 !important;
  border: 0;
  border-top: 1px solid var(--hj-gs-line-strong);
  border-bottom: 1px solid var(--hj-gs-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-hj-guide-support-version="phase5"] .hj-conversion-section form#enquiryForm {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

body[data-hj-guide-support-version="phase5"] .hj-conversion-section form#enquiryForm > div {
  display: grid;
  gap: 8px;
  min-width: 0;
}

body[data-hj-guide-support-version="phase5"] .hj-conversion-section form#enquiryForm label {
  color: #d8e6f1;
  font: 650 .72rem/1.35 'JetBrains Mono', monospace;
  letter-spacing: .055em;
  text-transform: uppercase;
}

body[data-hj-guide-support-version="phase5"] .hj-conversion-section form#enquiryForm :where(input, select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding-inline: 15px;
  color: #eef6fb;
  border: 1px solid rgba(183, 218, 235, .24);
  border-radius: 9px;
  background: rgba(2, 7, 13, .72);
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}

body[data-hj-guide-support-version="phase5"] .hj-conversion-section form#enquiryForm :where(input, select, textarea):focus {
  border-color: var(--hj-gs-cyan);
  background: rgba(4, 11, 19, .94);
}

body[data-hj-guide-support-version="phase5"] .hj-conversion-section form#enquiryForm button[type="submit"] {
  min-height: 54px;
  margin-top: 4px;
  border-radius: 9px;
  font-weight: 750;
  box-shadow: 0 14px 34px rgba(37, 211, 102, .14);
}

body[data-hj-guide-support-version="phase5"] .hj-conversion-section form#enquiryForm .form-note {
  margin: 0;
  padding-top: 13px;
  color: var(--hj-gs-dim);
  border-top: 1px solid var(--hj-gs-line);
  font-size: .78rem;
  line-height: 1.6;
}

/* ---------- Service-area / operational coverage mode ---------- */

body[data-hj-guide-support-version="phase5"] .hj-coverage-section {
  position: relative;
  padding-block: var(--hj-gs-section);
  border-top: 1px solid var(--hj-gs-line);
  background:
    radial-gradient(circle at 88% 25%, rgba(95, 207, 230, .075), transparent 24rem),
    var(--hj-gs-ink);
}

body[data-hj-guide-support-version="phase5"] .hj-coverage-section::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: max(20px, calc((100vw - var(--hj-gs-max)) / 2 + 22px));
  width: 1px;
  pointer-events: none;
  background: linear-gradient(transparent, var(--hj-gs-line-strong) 18%, var(--hj-gs-line) 82%, transparent);
}

body[data-hj-guide-support-version="phase5"] .hj-coverage-section :where(.grid, .grid-6) {
  gap: 0;
  border-top: 1px solid var(--hj-gs-line-strong);
  border-left: 1px solid var(--hj-gs-line);
}

body[data-hj-guide-support-version="phase5"] .hj-coverage-section .card {
  position: relative;
  min-height: 82px;
  padding: 24px 18px !important;
  text-align: left !important;
  border: 0;
  border-right: 1px solid var(--hj-gs-line);
  border-bottom: 1px solid var(--hj-gs-line);
  border-radius: 0;
  background: rgba(255, 255, 255, .012);
  box-shadow: none;
}

body[data-hj-guide-support-version="phase5"] .hj-coverage-section .card::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 11px;
  border-radius: 50%;
  background: var(--hj-gs-view-accent, var(--hj-gs-cyan));
  box-shadow: 0 0 14px rgba(99, 223, 248, .36);
  vertical-align: .12em;
}

body[data-hj-guide-support-version="phase5"] .hj-coverage-section .card h3 {
  display: inline;
  color: #edf7fb;
  font-size: .94rem !important;
}

/* ---------- Legal: quiet document reading ---------- */

body[data-hj-support-view="legal"][data-hj-guide-support-version="phase5"] .hj-sticky-actions {
  display: none !important;
}

body[data-hj-support-view="legal"][data-hj-guide-support-version="phase5"] .hj-support-hero {
  min-height: 340px;
  padding-block: clamp(46px, 5vw, 72px) !important;
  background: var(--hj-gs-ink);
}

body[data-hj-support-view="legal"][data-hj-guide-support-version="phase5"] .hj-support-hero::before {
  opacity: .2;
}

body[data-hj-guide-support-version="phase5"] .hj-legal-section {
  position: relative;
  padding-block: clamp(58px, 7vw, 100px);
  border-top: 1px solid var(--hj-gs-line);
  background: var(--hj-gs-ink-raised);
}

body[data-hj-guide-support-version="phase5"] .hj-legal-section > :where(.container, .hj-container),
body[data-hj-guide-support-version="phase5"] :where(.hj-legal-section.container, .hj-legal-section.hj-container) {
  display: grid;
  grid-template-columns: minmax(180px, 230px) minmax(0, 760px);
  gap: clamp(38px, 6vw, 84px);
  align-items: start;
  width: min(calc(100% - 40px), 1080px);
  margin-inline: auto;
}

body[data-hj-guide-support-version="phase5"] .hj-legal-section > :where(.container, .hj-container) > :not(.hj-legal-toc),
body[data-hj-guide-support-version="phase5"] :where(.hj-legal-section.container, .hj-legal-section.hj-container) > :not(.hj-legal-toc) {
  grid-column: 2;
  min-width: 0;
}

body[data-hj-guide-support-version="phase5"] .hj-legal-toc {
  position: sticky;
  top: calc(var(--hj-header-height, 74px) + 30px);
  grid-column: 1;
  grid-row: 1;
  padding-right: 24px;
  border-right: 1px solid var(--hj-gs-line);
}

body[data-hj-guide-support-version="phase5"] .hj-legal-toc::before {
  content: none;
}

body[data-hj-guide-support-version="phase5"] .hj-legal-toc > span {
  display: block;
  margin-bottom: 6px;
  color: var(--hj-gs-dim);
  font: 650 .64rem/1.3 'JetBrains Mono', monospace;
  letter-spacing: .11em;
  text-transform: uppercase;
}

body[data-hj-guide-support-version="phase5"] .hj-legal-toc > strong {
  display: block;
  margin-bottom: 14px;
  color: #eef6fb;
  font: 620 .94rem/1.35 'Space Grotesk', sans-serif;
}

body[data-hj-guide-support-version="phase5"] .hj-legal-toc :where(ol, ul) {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: hj-legal-toc;
}

body[data-hj-guide-support-version="phase5"] .hj-legal-toc li {
  border-top: 1px solid var(--hj-gs-line);
  counter-increment: hj-legal-toc;
}

body[data-hj-guide-support-version="phase5"] .hj-legal-toc a {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  padding: 10px 0;
  color: var(--hj-gs-dim);
  font-size: .76rem;
  line-height: 1.45;
  text-decoration: none;
}

body[data-hj-guide-support-version="phase5"] .hj-legal-toc a::before {
  content: none;
}

body[data-hj-guide-support-version="phase5"] .hj-legal-toc a > span:first-child {
  color: var(--hj-gs-view-accent);
  font: 600 .57rem/1.65 'JetBrains Mono', monospace;
}

body[data-hj-guide-support-version="phase5"] .hj-legal-toc a:hover {
  color: #f2f8fc;
}

body[data-hj-guide-support-version="phase5"] .hj-legal-section :where(h2, h3) {
  max-width: 760px;
  color: #f2f7fa;
  scroll-margin-top: calc(var(--hj-header-height, 74px) + 28px);
}

body[data-hj-guide-support-version="phase5"] .hj-legal-section h2 {
  margin: clamp(46px, 6vw, 70px) 0 18px;
  padding-top: 20px;
  border-top: 1px solid var(--hj-gs-line-strong);
  font: 640 clamp(1.55rem, 2.5vw, 2.05rem)/1.18 'Space Grotesk', sans-serif;
  letter-spacing: -.028em;
}

body[data-hj-guide-support-version="phase5"] .hj-legal-section h2:first-of-type {
  margin-top: 0;
}

body[data-hj-guide-support-version="phase5"] .hj-legal-section h3 {
  margin: 30px 0 12px;
  font-size: 1.12rem;
}

body[data-hj-guide-support-version="phase5"] .hj-legal-section :where(p, li, dd) {
  max-width: 760px;
  color: #b7c4d1;
  font-size: 1rem;
  line-height: 1.8;
}

body[data-hj-guide-support-version="phase5"] .hj-legal-section :where(ul, ol) {
  display: grid;
  gap: 9px;
  max-width: 760px;
  margin-block: 18px 28px;
  padding-left: 1.3em;
}

/* ---------- Existing FAQ surfaces, refined per reading mode ---------- */

body[data-hj-guide-support-version="phase5"] [data-hj-phase5-module] .faq-list {
  max-width: 880px;
  border-top: 1px solid var(--hj-gs-line-strong);
}

body[data-hj-guide-support-version="phase5"] [data-hj-phase5-module] .faq-item {
  border: 0;
  border-bottom: 1px solid var(--hj-gs-line);
  border-radius: 0;
  background: transparent;
}

body[data-hj-guide-support-version="phase5"] [data-hj-phase5-module] .faq-item summary {
  padding: 20px 44px 20px 0;
  color: #eaf3f9;
  font: 590 clamp(.98rem, 1.6vw, 1.1rem)/1.45 'Space Grotesk', sans-serif;
}

body[data-hj-guide-support-version="phase5"] [data-hj-phase5-module] .faq-a {
  max-width: 72ch;
  padding: 0 0 23px;
  color: var(--hj-gs-copy);
  line-height: 1.75;
}

/* ---------- Mid-size layouts ---------- */

@media (max-width: 1080px) {
  body[data-hj-guide-support-version="phase5"] :where(
    .hj-guide-article.container,
    .hj-guide-article.hj-container,
    .hj-guide-article > .container,
    .hj-guide-article > .hj-container
  ) {
    grid-template-columns: minmax(145px, 185px) minmax(0, 1fr) minmax(165px, 205px);
    gap: 30px;
  }

  body[data-hj-guide-support-version="phase5"] .hj-support-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
    gap: 48px;
  }
}

/* ---------- Tablet and mobile: form first, reading rails inline ---------- */

@media (max-width: 900px) {
  body[data-hj-guide-support-version="phase5"] .hj-support-hero {
    min-height: 0;
    padding-block: 56px !important;
  }

  body[data-hj-guide-support-version="phase5"] .hj-support-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
  }

  body[data-hj-guide-support-version="phase5"] .hj-support-hero-copy h1 {
    max-width: 760px;
  }

  body[data-hj-guide-support-version="phase5"] .hj-phase5-visual {
    min-height: 260px;
    padding-block: 24px;
  }

  body[data-hj-support-view="contact"][data-hj-guide-support-version="phase5"] .hj-support-hero,
  body[data-hj-support-view="assessment"][data-hj-guide-support-version="phase5"] .hj-support-hero {
    padding-block: 30px !important;
  }

  body[data-hj-support-view="contact"][data-hj-guide-support-version="phase5"] .hj-support-hero-grid,
  body[data-hj-support-view="assessment"][data-hj-guide-support-version="phase5"] .hj-support-hero-grid {
    gap: 20px;
  }

  body[data-hj-support-view="contact"][data-hj-guide-support-version="phase5"] .hj-support-hero .hj-phase5-visual,
  body[data-hj-support-view="assessment"][data-hj-guide-support-version="phase5"] .hj-support-hero .hj-phase5-visual {
    min-height: 0;
    padding: 16px 0 8px 18px;
  }

  body[data-hj-support-view="contact"][data-hj-guide-support-version="phase5"] .hj-support-hero .hj-phase5-signal,
  body[data-hj-support-view="assessment"][data-hj-guide-support-version="phase5"] .hj-support-hero .hj-phase5-signal {
    display: none;
  }

  body[data-hj-guide-support-version="phase5"] .hj-conversion-section {
    padding-top: 28px !important;
  }

  body[data-hj-guide-support-version="phase5"] .hj-conversion-section .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  body[data-hj-guide-support-version="phase5"] .hj-conversion-section .split > :has(form#enquiryForm) {
    order: -1;
  }

  body[data-hj-guide-support-version="phase5"] :where(
    .hj-guide-article.container,
    .hj-guide-article.hj-container,
    .hj-guide-article > .container,
    .hj-guide-article > .hj-container
  ) {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  body[data-hj-guide-support-version="phase5"] :where(
    .hj-guide-article.container,
    .hj-guide-article.hj-container,
    .hj-guide-article > .container,
    .hj-guide-article > .hj-container
  ) > :not(.hj-guide-toc, .hj-guide-source-ledger) {
    grid-column: 1;
    order: 2;
  }

  body[data-hj-guide-support-version="phase5"] .hj-guide-toc {
    position: static;
    grid-column: 1;
    grid-row: auto;
    order: 1;
    padding: 0 0 18px;
    border-right: 0;
    border-bottom: 1px solid var(--hj-gs-line-strong);
  }

  body[data-hj-guide-support-version="phase5"] .hj-guide-source-ledger {
    position: static;
    grid-column: 1;
    grid-row: auto;
    order: 3;
    padding: 22px 0 0;
    border-left: 0;
  }

  body[data-hj-guide-support-version="phase5"] .hj-legal-section > :where(.container, .hj-container),
  body[data-hj-guide-support-version="phase5"] :where(.hj-legal-section.container, .hj-legal-section.hj-container) {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  body[data-hj-guide-support-version="phase5"] .hj-legal-section > :where(.container, .hj-container) > :not(.hj-legal-toc),
  body[data-hj-guide-support-version="phase5"] :where(.hj-legal-section.container, .hj-legal-section.hj-container) > :not(.hj-legal-toc) {
    grid-column: 1;
  }

  body[data-hj-guide-support-version="phase5"] .hj-legal-toc {
    position: static;
    grid-column: 1;
    grid-row: auto;
    padding: 0 0 22px;
    border-right: 0;
    border-bottom: 1px solid var(--hj-gs-line-strong);
  }

  body[data-hj-guide-support-version="phase5"] .hj-company-section :where(.split, .grid) {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Narrow mobile ---------- */

@media (max-width: 640px) {
  body[data-hj-guide-support-version="phase5"] {
    --hj-gs-section: 58px;
  }

  body[data-hj-guide-support-version="phase5"] :where(.container, .hj-container),
  body[data-hj-guide-support-version="phase5"] .hj-support-hero-grid,
  body[data-hj-guide-support-version="phase5"] .hj-guide-article {
    width: min(calc(100% - 32px), var(--hj-gs-max));
  }

  body[data-hj-guide-support-version="phase5"] .hj-support-hero {
    padding-block: 42px !important;
  }

  body[data-hj-guide-support-version="phase5"] .hj-support-hero-grid {
    gap: 30px;
  }

  body[data-hj-guide-support-version="phase5"] .hj-support-hero-copy :where(.eyebrow, .hj-section-kicker) {
    margin-bottom: 16px;
    font-size: .63rem;
  }

  body[data-hj-guide-support-version="phase5"] .hj-support-hero-copy h1 {
    font-size: clamp(2.2rem, 11.2vw, 3.05rem);
    line-height: 1.02;
    letter-spacing: -.045em;
  }

  body[data-hj-support-view="contact"][data-hj-guide-support-version="phase5"] .hj-support-hero-copy h1,
  body[data-hj-support-view="assessment"][data-hj-guide-support-version="phase5"] .hj-support-hero-copy h1 {
    font-size: clamp(2rem, 9vw, 2.5rem);
    line-height: 1.01;
  }

  body[data-hj-support-view="contact"][data-hj-guide-support-version="phase5"] .hj-support-hero-copy .lead,
  body[data-hj-support-view="assessment"][data-hj-guide-support-version="phase5"] .hj-support-hero-copy .lead {
    margin-top: 16px;
    font-size: .94rem !important;
    line-height: 1.58;
  }

  body[data-hj-guide-support-version="phase5"] .hj-support-hero-copy .lead,
  body[data-hj-guide-support-version="phase5"] .hj-support-hero-copy > p {
    margin-top: 21px;
    font-size: 1rem !important;
    line-height: 1.68;
  }

  body[data-hj-guide-support-version="phase5"] .hj-phase5-visual {
    min-height: 220px;
    padding: 22px 0 18px 20px;
  }

  body[data-hj-support-view="contact"][data-hj-guide-support-version="phase5"] .hj-support-hero .hj-phase5-visual,
  body[data-hj-support-view="assessment"][data-hj-guide-support-version="phase5"] .hj-support-hero .hj-phase5-visual {
    min-height: 0;
    padding: 12px 0 4px 14px;
  }

  body[data-hj-support-view="contact"][data-hj-guide-support-version="phase5"] .hj-support-hero .hj-phase5-node-list > li,
  body[data-hj-support-view="assessment"][data-hj-guide-support-version="phase5"] .hj-support-hero .hj-phase5-node-list > li {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 5px;
    padding: 9px 3px;
  }

  body[data-hj-support-view="contact"][data-hj-guide-support-version="phase5"] .hj-support-hero .hj-phase5-node-list strong,
  body[data-hj-support-view="assessment"][data-hj-guide-support-version="phase5"] .hj-support-hero .hj-phase5-node-list strong {
    font-size: .82rem;
  }

  body[data-hj-guide-support-version="phase5"] .hj-phase5-guide-ledger > :where(li, article, a) {
    grid-template-columns: 34px minmax(0, 1fr) 16px;
    gap: 9px;
    padding-block: 15px;
  }

  body[data-hj-guide-support-version="phase5"] .hj-phase5-guide-ledger :where(p, small, time) {
    font-size: .72rem;
  }

  body[data-hj-guide-support-version="phase5"] .hj-guide-article {
    padding-block: 56px;
  }

  body[data-hj-guide-support-version="phase5"] .hj-guide-toc :where(ol, ul) {
    display: flex;
    gap: 0;
    max-width: 100%;
    padding-bottom: 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  body[data-hj-guide-support-version="phase5"] .hj-guide-toc li {
    flex: 0 0 min(76vw, 250px);
    border-top: 1px solid var(--hj-gs-line);
    border-right: 1px solid var(--hj-gs-line);
  }

  body[data-hj-guide-support-version="phase5"] .hj-guide-toc a {
    min-height: 56px;
    padding: 12px;
  }

  body[data-hj-guide-support-version="phase5"] .hj-guide-article :where(.hj-guide-prose, .hj-guide-content, article, .container) > p {
    font-size: 1rem;
    line-height: 1.76;
  }

  body[data-hj-guide-support-version="phase5"] .hj-guide-article :where(.hj-guide-prose, .hj-guide-content, article, .container) > h2 {
    margin-top: 46px;
    font-size: clamp(1.55rem, 8vw, 1.95rem);
  }

  body[data-hj-guide-support-version="phase5"] .hj-conversion-section .split > :has(form#enquiryForm) {
    padding: 24px 18px !important;
    border-radius: 11px !important;
  }

  body[data-hj-guide-support-version="phase5"] .hj-conversion-section form#enquiryForm {
    gap: 16px;
  }

  body[data-hj-guide-support-version="phase5"] .hj-conversion-section form#enquiryForm :where(input, select, textarea) {
    min-height: 50px;
    font-size: 16px;
  }

  body[data-hj-guide-support-version="phase5"] .hj-coverage-section :where(.grid, .grid-6) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-hj-guide-support-version="phase5"] .hj-coverage-section .card {
    min-height: 70px;
    padding: 20px 13px !important;
  }

  body[data-hj-guide-support-version="phase5"] .hj-legal-section > :where(.container, .hj-container),
  body[data-hj-guide-support-version="phase5"] :where(.hj-legal-section.container, .hj-legal-section.hj-container) {
    width: min(calc(100% - 32px), 1080px);
  }

  body[data-hj-guide-support-version="phase5"] .hj-legal-toc :where(ol, ul) {
    display: flex;
    gap: 0;
    padding-bottom: 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  body[data-hj-guide-support-version="phase5"] .hj-legal-toc li {
    flex: 0 0 min(76vw, 240px);
    border-right: 1px solid var(--hj-gs-line);
  }

  body[data-hj-guide-support-version="phase5"] .hj-legal-toc a {
    min-height: 54px;
    padding: 11px;
  }

  body[data-hj-guide-support-version="phase5"] [data-hj-phase5-module] .faq-item summary {
    padding-right: 34px;
  }
}

/* ---------- Motion safety ---------- */

@media (prefers-reduced-motion: reduce) {
  body[data-hj-guide-support-version="phase5"] *,
  body[data-hj-guide-support-version="phase5"] *::before,
  body[data-hj-guide-support-version="phase5"] *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Print: authoritative text without marketing chrome ---------- */

@media print {
  body[data-hj-guide-support-version="phase5"] {
    color: #111;
    background: #fff;
  }

  body[data-hj-guide-support-version="phase5"] :where(
    .hj-shell-header,
    .hj-shell-mobile-nav,
    .hj-sticky-actions,
    .hj-shell-footer,
    .hj-phase5-visual,
    .hj-support-hero::before,
    .hj-support-hero::after,
    .hj-consent-banner,
    #hjConsentPanel,
    #scrollProgress,
    #cursorGlow
  ) {
    display: none !important;
  }

  body[data-hj-guide-support-version="phase5"] main,
  body[data-hj-guide-support-version="phase5"] .hj-support-hero,
  body[data-hj-guide-support-version="phase5"] .hj-guide-article,
  body[data-hj-guide-support-version="phase5"] .hj-legal-section {
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    color: #111;
    border: 0;
    background: #fff !important;
    box-shadow: none;
  }

  body[data-hj-guide-support-version="phase5"] .hj-support-hero-grid,
  body[data-hj-guide-support-version="phase5"] :where(
    .hj-guide-article.container,
    .hj-guide-article.hj-container,
    .hj-guide-article > .container,
    .hj-guide-article > .hj-container,
    .hj-legal-section > .container,
    .hj-legal-section > .hj-container,
    .hj-legal-section.container,
    .hj-legal-section.hj-container
  ) {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  body[data-hj-guide-support-version="phase5"] :where(.hj-guide-toc, .hj-legal-toc) {
    position: static;
    display: block;
    margin: 0 0 24pt;
    padding: 0 0 12pt;
    color: #111;
    border: 0;
    border-bottom: 1px solid #bbb;
  }

  body[data-hj-guide-support-version="phase5"] .hj-guide-source-ledger {
    position: static;
    display: block;
    margin: 20pt 0 0;
    padding: 12pt 0 0;
    color: #111;
    border: 0;
    border-top: 1px solid #999;
  }

  body[data-hj-guide-support-version="phase5"] :where(h1, h2, h3, h4, p, li, dd, a, strong, time) {
    color: #111 !important;
    text-shadow: none !important;
  }

  body[data-hj-guide-support-version="phase5"] :where(h1, h2, h3) {
    break-after: avoid-page;
  }

  body[data-hj-guide-support-version="phase5"] :where(p, li, blockquote) {
    orphans: 3;
    widows: 3;
  }

  body[data-hj-guide-support-version="phase5"] :where(.hj-guide-article, .hj-legal-section) a[href^="http"]::after {
    content: " (" attr(href) ")";
    color: #444;
    font-size: 8pt;
    overflow-wrap: anywhere;
  }
}
