/* ============================================================
 * Compliance & Inspections Guide — long-form pillar article
 * ============================================================ */

:root {
  --guide-rail-w: 260px;
  --guide-prose-max: 720px;
  --guide-text: #2A2D33;
  --guide-text-muted: #5C6068;
  --guide-text-subtle: #8B8F96;
  --guide-rule: #E5E3DC;
}

/* ===== Reading progress bar ===== */
.guide-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 90;
  background: rgba(15,17,21,0.05);
  pointer-events: none;
}
.guide-progress > span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--color-accent);
  transition: width 90ms linear;
}

/* ===== Hero ===== */
.guide-hero {
  position: relative;
  background: linear-gradient(180deg, #FDFDFE 0%, var(--off-white-60) 80%, var(--off-white-60) 100%);
  padding: 60px 0 80px;
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}
.guide-hero::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(217,119,87,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.guide-breadcrumb {
  font-size: 13px;
  color: var(--color-text-subtle);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.guide-breadcrumb a { color: var(--color-text-subtle); text-decoration: none; transition: color 150ms; }
.guide-breadcrumb a:hover { color: var(--color-text); }
.guide-breadcrumb svg { width: 11px; height: 11px; opacity: 0.4; }
.guide-breadcrumb .here { color: var(--color-text); font-weight: 500; }

.guide-hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.guide-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent-hover);
  background: rgba(217,119,87,0.10);
  border: 1px solid rgba(217,119,87,0.22);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.guide-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); }

.guide-h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 60px;
  letter-spacing: -0.025em;
  line-height: 1.04;
  color: var(--anthracite-100);
  margin: 0 0 20px;
  text-wrap: pretty;
}
.guide-lead {
  font-size: 21px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0 0 16px;
  max-width: 580px;
}
.guide-supporting {
  font-size: 16px;
  color: var(--color-text-subtle);
  line-height: 1.55;
  margin: 0 0 32px;
  max-width: 540px;
}

.guide-cta-row {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 40px;
}

.guide-meta {
  display: flex; gap: 28px; flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--guide-rule);
  font-size: 13px;
  color: var(--color-text-subtle);
}
.guide-meta .item { display: flex; align-items: center; gap: 6px; }
.guide-meta .item svg { width: 14px; height: 14px; stroke: var(--color-text-subtle); fill: none; stroke-width: 2; flex-shrink: 0; }
.guide-meta .item strong { color: var(--color-text); font-weight: 600; }

/* Hero illustration: stacked compliance-doc visual */
.guide-hero-art {
  position: relative;
  perspective: 1400px;
}
.guide-hero-doc {
  background: #fff;
  border: 1px solid var(--guide-rule);
  border-radius: 8px;
  box-shadow: 0 28px 60px -16px rgba(15,17,21,0.22), 0 8px 18px -4px rgba(15,17,21,0.10);
  padding: 28px 30px 32px;
  position: relative;
  overflow: hidden;
}
.guide-hero-doc::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--anthracite-100) 100%);
}
.guide-hero-doc .doc-stamp {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent-hover);
  margin-bottom: 14px;
}
.guide-hero-doc .doc-stamp::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--color-accent); }
.guide-hero-doc h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.012em;
  color: var(--anthracite-100);
  margin: 0 0 18px;
  line-height: 1.2;
}
.guide-hero-doc .checklist {
  list-style: none; padding: 0; margin: 0 0 20px;
  display: grid; gap: 9px;
}
.guide-hero-doc .checklist li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px;
  color: var(--color-text);
  line-height: 1.4;
}
.guide-hero-doc .checklist li .check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(217,119,87,0.14);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.guide-hero-doc .checklist li .check svg { width: 10px; height: 10px; stroke: var(--color-accent-hover); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.guide-hero-doc .seal {
  display: flex; align-items: center; gap: 12px;
  padding-top: 16px;
  border-top: 1px dashed var(--guide-rule);
}
.guide-hero-doc .seal-stamp {
  width: 56px; height: 56px;
  border: 2px solid var(--color-accent-hover);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  flex-shrink: 0;
  transform: rotate(-6deg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--color-accent-hover);
  text-transform: uppercase;
  text-align: center;
  line-height: 1.1;
  position: relative;
}
.guide-hero-doc .seal-stamp::before {
  content: "";
  position: absolute; inset: 4px;
  border: 1px solid var(--color-accent-hover);
  border-radius: 50%;
  opacity: 0.5;
}
.guide-hero-doc .seal-stamp small { font-size: 14px; letter-spacing: -0.01em; margin-top: 1px; font-weight: 800; text-transform: none; }
.guide-hero-doc .seal-text {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.4;
}
.guide-hero-doc .seal-text strong { color: var(--color-text); font-weight: 600; display: block; margin-bottom: 2px; }

.guide-hero-stack-bg, .guide-hero-stack-mid {
  position: absolute;
  background: #fff;
  border: 1px solid var(--guide-rule);
  border-radius: 8px;
  box-shadow: 0 14px 32px -12px rgba(15,17,21,0.16);
}
.guide-hero-stack-bg {
  inset: 16px -22px -18px 18px;
  transform: rotate(2.5deg);
  z-index: 1;
  opacity: 0.6;
}
.guide-hero-stack-mid {
  inset: 8px -10px -8px 8px;
  transform: rotate(-1.5deg);
  z-index: 2;
  opacity: 0.85;
}
.guide-hero-doc { position: relative; z-index: 3; }
.guide-hero-art-wrap { position: relative; padding: 24px 18px; }

/* ===== Layout: prose + sticky TOC ===== */
.guide-body {
  background: #fff;
  padding: 80px 0 96px;
}
.guide-body-inner {
  display: grid;
  grid-template-columns: var(--guide-rail-w) 1fr;
  gap: 56px;
  align-items: start;
}

/* TOC */
.guide-toc {
  position: sticky;
  top: 110px;
  font-size: 13.5px;
}
.guide-toc h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--guide-rule);
}
.guide-toc ol {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 2px;
  counter-reset: toc;
}
.guide-toc li { counter-increment: toc; }
.guide-toc a {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--color-text-muted);
  line-height: 1.35;
  transition: all 140ms;
  border-left: 2px solid transparent;
  margin-left: -2px;
}
.guide-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text-subtle);
  flex-shrink: 0;
  padding-top: 1px;
  width: 18px;
  font-variant-numeric: tabular-nums;
}
.guide-toc a:hover {
  color: var(--color-text);
  background: var(--off-white-60);
}
.guide-toc a.active {
  color: var(--color-accent-hover);
  background: rgba(217,119,87,0.06);
  font-weight: 600;
  border-left-color: var(--color-accent);
}
.guide-toc a.active::before { color: var(--color-accent-hover); }

.guide-toc .toc-aside {
  margin-top: 24px;
  padding: 20px 18px;
  background: var(--anthracite-100);
  border-radius: 12px;
  color: rgba(255,255,255,0.92);
}
.guide-toc .toc-aside h5 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  margin: 0 0 6px;
  color: #fff;
}
.guide-toc .toc-aside p {
  font-size: 12px;
  color: rgba(255,255,255,0.62);
  line-height: 1.45;
  margin: 0 0 14px;
}
.guide-toc .toc-aside .btn {
  width: 100%;
  justify-content: center;
  padding: 9px 14px;
  font-size: 13px;
  background: var(--color-accent);
  color: var(--anthracite-100);
}
.guide-toc .toc-aside .btn:hover { background: var(--color-accent-hover); color: #fff; }

/* ===== Prose ===== */
.guide-prose {
  max-width: var(--guide-prose-max);
  font-family: var(--font-body);
  color: var(--guide-text);
  font-size: 17px;
  line-height: 1.65;
}
.guide-section {
  scroll-margin-top: 100px;
  padding: 16px 0 56px;
  border-bottom: 1px solid var(--guide-rule);
}
.guide-section:last-of-type { border-bottom: none; }
.guide-section .sec-num {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-hover);
  margin-bottom: 14px;
}
.guide-section .sec-num span.n {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 22px;
  background: rgba(217,119,87,0.10);
  border-radius: 4px;
  padding: 0 6px;
  font-variant-numeric: tabular-nums;
}
.guide-section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 36px;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--anthracite-100);
  margin: 0 0 20px;
  text-wrap: pretty;
}
.guide-section h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: var(--anthracite-100);
  margin: 32px 0 12px;
}
.guide-section p {
  margin: 0 0 18px;
  color: var(--guide-text-muted);
}
.guide-section p strong { color: var(--guide-text); font-weight: 600; }
.guide-section a.inline-link {
  color: var(--color-accent-hover);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(217,119,87,0.32);
  text-underline-offset: 3px;
  transition: text-decoration-color 150ms;
}
.guide-section a.inline-link:hover { text-decoration-color: var(--color-accent-hover); }

.guide-section ul.bullet-list,
.guide-section ol.numbered-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid; gap: 10px;
}
.guide-section ul.bullet-list li {
  position: relative;
  padding-left: 22px;
  color: var(--guide-text);
  line-height: 1.55;
}
.guide-section ul.bullet-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 10px;
  width: 6px; height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* Pull quote */
.guide-pullquote {
  margin: 32px -8px;
  padding: 28px 28px 28px 32px;
  background: var(--off-white-60);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 12px 12px 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 21px;
  letter-spacing: -0.005em;
  color: var(--anthracite-100);
  line-height: 1.45;
  text-wrap: pretty;
}
.guide-pullquote::before {
  content: "";
  display: block;
  width: 28px; height: 2px;
  background: var(--color-accent-hover);
  margin-bottom: 14px;
}

/* Comparison block (without/with) */
.guide-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0 20px;
}
.guide-comparison .col {
  background: #fff;
  border: 1px solid var(--guide-rule);
  border-radius: 14px;
  padding: 24px 26px;
  position: relative;
}
.guide-comparison .col.bad { background: linear-gradient(180deg, #FFF8F4 0%, #fff 100%); border-color: #F4D9CC; }
.guide-comparison .col.good { background: linear-gradient(180deg, #F4F8F2 0%, #fff 100%); border-color: #D4E5CB; }
.guide-comparison .col .label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.guide-comparison .col.bad .label { color: #B14A26; }
.guide-comparison .col.good .label { color: #3E7B30; }
.guide-comparison .col .label .ic {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.guide-comparison .col.bad .ic { background: rgba(177,74,38,0.12); }
.guide-comparison .col.good .ic { background: rgba(62,123,48,0.12); }
.guide-comparison .col .ic svg { width: 11px; height: 11px; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.guide-comparison .col.bad .ic svg { stroke: #B14A26; }
.guide-comparison .col.good .ic svg { stroke: #3E7B30; }
.guide-comparison .col h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--anthracite-100);
  margin: 0 0 14px;
  letter-spacing: -0.005em;
}
.guide-comparison .col ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 10px;
}
.guide-comparison .col ul li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14.5px;
  color: var(--guide-text);
  line-height: 1.45;
}
.guide-comparison .col ul li svg {
  width: 14px; height: 14px;
  flex-shrink: 0;
  margin-top: 3px;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.guide-comparison .col.bad ul li svg { stroke: #B14A26; }
.guide-comparison .col.good ul li svg { stroke: #3E7B30; }

/* Framework diagram (4-stage) */
.guide-framework {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 36px 0 24px;
  position: relative;
}
.guide-framework::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 7%; right: 7%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--color-border-strong) 0 6px, transparent 6px 12px);
  z-index: 0;
}
.guide-framework .stage {
  background: #fff;
  border: 1px solid var(--guide-rule);
  border-radius: 14px;
  padding: 0 20px 22px;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: all 200ms;
}
.guide-framework .stage:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(15,17,21,0.10);
}
.guide-framework .stage .badge {
  width: 56px; height: 56px;
  margin: -28px auto 16px;
  border-radius: 14px;
  background: var(--anthracite-100);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 16px -4px rgba(15,17,21,0.18);
  position: relative;
}
.guide-framework .stage .badge svg { width: 22px; height: 22px; stroke: var(--color-accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.guide-framework .stage h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--anthracite-100);
  margin: 0 0 8px;
}
.guide-framework .stage p {
  font-size: 13.5px;
  color: var(--guide-text-muted);
  line-height: 1.45;
  margin: 0;
}
.guide-framework .stage .stage-list {
  list-style: none; padding: 0; margin: 12px 0 0;
  display: grid; gap: 4px;
  font-size: 12.5px;
  color: var(--guide-text);
  text-align: left;
}
.guide-framework .stage .stage-list li {
  padding-left: 14px;
  position: relative;
  line-height: 1.4;
}
.guide-framework .stage .stage-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 7px;
  width: 4px; height: 4px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* Checklist callout */
.guide-checklist {
  background: var(--off-white-60);
  border: 1px solid var(--guide-rule);
  border-radius: 14px;
  padding: 24px 28px;
  margin: 28px 0;
}
.guide-checklist h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  margin: 0 0 16px;
  display: flex; align-items: center; gap: 8px;
}
.guide-checklist h4 svg { width: 14px; height: 14px; stroke: var(--color-accent-hover); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.guide-checklist ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 10px;
}
.guide-checklist ul li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px;
  color: var(--guide-text);
  line-height: 1.45;
}
.guide-checklist ul li .checkbox {
  width: 18px; height: 18px;
  border: 1.5px solid var(--color-accent-hover);
  background: #fff;
  border-radius: 4px;
  flex-shrink: 0; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
}
.guide-checklist ul li .checkbox svg { width: 11px; height: 11px; stroke: var(--color-accent-hover); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* Regional cards */
.guide-regions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0 16px;
}
.guide-region {
  background: #fff;
  border: 1px solid var(--guide-rule);
  border-radius: 14px;
  padding: 26px 28px 28px;
  display: flex; flex-direction: column;
  transition: all 200ms;
}
.guide-region:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(15,17,21,0.10);
}
.guide-region .head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.guide-region .flag {
  width: 36px; height: 24px;
  border-radius: 3px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--guide-rule);
}
.guide-region .flag.us {
  background:
    repeating-linear-gradient(0deg, #BF0A30 0 1.71px, #fff 1.71px 3.43px);
}
.guide-region .flag.us::after {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 50%; height: 50%;
  background: #002868;
}
.guide-region .flag.uk {
  background: #012169;
}
.guide-region .flag.uk::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(45deg, transparent calc(50% - 1.5px), #fff calc(50% - 1.5px), #fff calc(50% + 1.5px), transparent calc(50% + 1.5px)),
    linear-gradient(-45deg, transparent calc(50% - 1.5px), #fff calc(50% - 1.5px), #fff calc(50% + 1.5px), transparent calc(50% + 1.5px));
}
.guide-region .flag.uk::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, transparent 40%, #C8102E 40%, #C8102E 60%, transparent 60%),
    linear-gradient(90deg, transparent 45%, #C8102E 45%, #C8102E 55%, transparent 55%);
}
.guide-region .head h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.012em;
  color: var(--anthracite-100);
  margin: 0;
}
.guide-region .head .region-tag {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  font-weight: 600;
  margin-top: 2px;
}
.guide-region .desc {
  font-size: 14.5px;
  color: var(--guide-text-muted);
  line-height: 1.5;
  margin: 0 0 16px;
}
.guide-region ul {
  list-style: none; padding: 0; margin: 0 0 24px;
  display: grid; gap: 8px;
}
.guide-region ul li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px;
  color: var(--guide-text);
}
.guide-region ul li::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 8px;
}
.guide-region .region-cta {
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--anthracite-100);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px;
  border: 1px solid var(--color-border-strong);
  border-radius: 8px;
  transition: all 150ms;
}
.guide-region .region-cta:hover {
  background: var(--anthracite-100);
  color: #fff;
  border-color: var(--anthracite-100);
}
.guide-region .region-cta svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform 150ms; }
.guide-region .region-cta:hover svg { transform: translateX(2px); }

/* Sample report visual (mini) */
.guide-sample-visual {
  background: linear-gradient(180deg, var(--anthracite-100) 0%, #1a1c1f 100%);
  border-radius: 16px;
  padding: 36px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
  margin: 32px 0;
  position: relative;
  overflow: hidden;
}
.guide-sample-visual::before {
  content: "";
  position: absolute; right: -100px; top: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(217,119,87,0.18) 0%, transparent 70%);
}
.guide-sample-visual .copy h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.012em;
  color: #fff;
  margin: 0 0 10px;
}
.guide-sample-visual .copy p {
  font-size: 14.5px;
  color: rgba(255,255,255,0.68);
  line-height: 1.5;
  margin: 0 0 18px;
}
.guide-sample-visual .copy .btn {
  background: var(--color-accent);
  color: var(--anthracite-100);
}
.guide-sample-visual .copy .btn:hover { background: var(--color-accent-hover); color: #fff; }
.guide-sample-doc {
  background: #fff;
  border-radius: 6px;
  padding: 18px 18px 14px;
  box-shadow: 0 18px 38px -10px rgba(0,0,0,0.5);
  font-family: var(--font-body);
  position: relative;
  z-index: 2;
  transform: rotate(2deg);
}
.guide-sample-doc::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--anthracite-100));
  border-radius: 6px 6px 0 0;
}
.guide-sample-doc h5 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  color: var(--anthracite-100);
  margin: 8px 0 6px;
  letter-spacing: -0.005em;
}
.guide-sample-doc .meta-row {
  display: flex; gap: 8px;
  font-size: 8.5px;
  color: var(--color-text-subtle);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--guide-rule);
}
.guide-sample-doc .meta-row span { display: inline-block; }
.guide-sample-doc .row-block {
  display: flex; align-items: center; gap: 6px;
  font-size: 9.5px;
  margin-bottom: 6px;
  padding: 6px 8px;
  background: var(--off-white-60);
  border-radius: 3px;
}
.guide-sample-doc .row-block .badge {
  font-size: 8px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 2px;
  letter-spacing: 0.02em;
  margin-left: auto;
}
.guide-sample-doc .row-block .badge.pass { background: #DDF2E2; color: #2A6D43; }
.guide-sample-doc .row-block .badge.fail { background: #FCDDD4; color: #9E3819; }
.guide-sample-doc .row-block .badge.note { background: #FFF1D6; color: #8C5C0F; }
.guide-sample-doc .photo-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  margin: 8px 0;
}
.guide-sample-doc .photo-row > div {
  aspect-ratio: 4/3;
  border-radius: 2px;
  background-color: #d6cfc1;
  background-size: cover;
  background-position: center;
}
.guide-sample-doc .photo-row > div:nth-child(1) { background-image: url('../assets/inspection-photos/exterior-house-front.webp'); }
.guide-sample-doc .photo-row > div:nth-child(2) { background-image: url('../assets/inspection-photos/kitchen-side-angle.webp'); }
.guide-sample-doc .photo-row > div:nth-child(3) { background-image: url('../assets/inspection-photos/bathroom-side-angle.webp'); }
.guide-sample-doc .sig-line {
  font-size: 8px;
  color: var(--color-text-subtle);
  letter-spacing: 0.04em;
  padding-top: 8px;
  margin-top: 6px;
  border-top: 1px dashed var(--guide-rule);
}

/* Product bridge card */
.guide-product-bridge {
  background: linear-gradient(135deg, #FFF8F4 0%, #FDF1EA 100%);
  border: 1px solid #F4D9CC;
  border-radius: 16px;
  padding: 32px 36px 36px;
  margin: 32px 0 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}
.guide-product-bridge .stamp {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent-hover);
  margin-bottom: 14px;
}
.guide-product-bridge .stamp::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--color-accent); }
.guide-product-bridge h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.015em;
  color: var(--anthracite-100);
  margin: 0 0 10px;
}
.guide-product-bridge p {
  font-size: 15px;
  color: var(--guide-text-muted);
  line-height: 1.55;
  margin: 0 0 18px;
}
.guide-product-bridge ul {
  list-style: none; padding: 0; margin: 0 0 22px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px;
}
.guide-product-bridge ul li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14.5px;
  color: var(--guide-text);
  line-height: 1.45;
}
.guide-product-bridge ul li svg {
  width: 16px; height: 16px;
  stroke: var(--color-accent-hover);
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Related resources */
.guide-related {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 24px 0 0;
}
.guide-related-card {
  background: #fff;
  border: 1px solid var(--guide-rule);
  border-radius: 14px;
  padding: 22px 24px 24px;
  display: flex; flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: all 200ms;
}
.guide-related-card:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(15,17,21,0.10);
}
.guide-related-card .type {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-text-subtle);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.guide-related-card .type::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--color-accent);
  border-radius: 50%;
}
.guide-related-card h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--anthracite-100);
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}
.guide-related-card p {
  font-size: 13.5px;
  color: var(--guide-text-muted);
  line-height: 1.45;
  margin: 0 0 16px;
  flex: 1;
}
.guide-related-card .arrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent-hover);
  display: inline-flex; align-items: center; gap: 6px;
}
.guide-related-card .arrow svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.2; transition: transform 150ms; }
.guide-related-card:hover .arrow svg { transform: translateX(2px); }

/* Final CTA */
.guide-final-cta {
  background: var(--gradient-deep, var(--anthracite-100));
  color: #fff;
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.guide-final-cta::before {
  content: "";
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(217,119,87,0.14) 0%, transparent 60%);
}
.guide-final-cta .container-wide { position: relative; z-index: 2; }
.guide-final-cta h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 48px;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 12px auto 16px;
  max-width: 680px;
  line-height: 1.08;
}
.guide-final-cta p {
  font-size: 19px;
  color: rgba(255,255,255,0.74);
  margin: 0 auto 36px;
  max-width: 580px;
  line-height: 1.5;
}
.guide-final-cta .ctas {
  display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.guide-final-cta .btn-accent { background: var(--color-accent); color: var(--anthracite-100); }
.guide-final-cta .btn-accent:hover { background: var(--color-accent-hover); color: #fff; }
.guide-final-cta .btn-ghost-dark { border-color: rgba(255,255,255,0.32); color: #fff; }

/* ===== Modal ===== */
.guide-modal-bd {
  position: fixed; inset: 0;
  background: rgba(15,17,21,0.62);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 200ms;
}
.guide-modal-bd.open { display: flex; opacity: 1; }
.guide-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(15,17,21,0.32);
  position: relative;
  transform: translateY(20px);
  transition: transform 200ms;
}
.guide-modal-bd.open .guide-modal { transform: translateY(0); }
.guide-modal-head {
  padding: 28px 32px 18px;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}
.guide-modal-head .stamp {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-hover);
  margin-bottom: 8px;
}
.guide-modal-head .stamp::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--color-accent); }
.guide-modal-head h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--anthracite-100);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.guide-modal-head p {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
}
.guide-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-text-subtle);
  display: flex; align-items: center; justify-content: center;
  transition: all 150ms;
}
.guide-modal-close:hover { background: var(--off-white-100); color: var(--color-text); }
.guide-modal-close svg { width: 18px; height: 18px; }
.guide-modal-body { padding: 22px 32px 28px; }
.guide-form-row { margin-bottom: 14px; }
.guide-form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}
.guide-form-row label .req { color: var(--color-accent-hover); margin-left: 2px; }
.guide-form-row label .opt { font-weight: 400; color: var(--color-text-subtle); margin-left: 4px; font-size: 12px; }
.guide-form-row input,
.guide-form-row select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border-strong);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  color: var(--color-text);
  background: #fff;
  box-sizing: border-box;
  transition: border-color 150ms, box-shadow 150ms;
}
.guide-form-row input:focus,
.guide-form-row select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(217,119,87,0.14);
}
.guide-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.guide-modal-footer {
  padding: 18px 32px 28px;
  border-top: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap;
}
.guide-modal-footer .small {
  font-size: 12px;
  color: var(--color-text-subtle);
  line-height: 1.4;
  flex: 1; min-width: 200px;
}
.guide-modal-footer .small a { color: var(--color-accent-hover); text-decoration: underline; text-underline-offset: 2px; }
.guide-modal-footer .actions { display: flex; gap: 10px; }

.guide-success {
  text-align: center;
  padding: 36px 32px;
}
.guide-success .check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(97,206,112,0.14);
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
}
.guide-success .check svg { width: 30px; height: 30px; stroke: #2A8D3C; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.guide-success h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--anthracite-100); margin: 0 0 6px; }
.guide-success p { font-size: 14px; color: var(--color-text-muted); margin: 0 0 22px; line-height: 1.5; }
.guide-success .doc-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--off-white-60);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  margin: 0 auto 12px;
  max-width: 360px;
  text-align: left;
}
.guide-success .doc-row .doc-ic {
  width: 36px; height: 44px;
  background: var(--color-accent-hover);
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 6px;
}
.guide-success .doc-row .doc-ic::before {
  content: "PDF";
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: #fff;
}
.guide-success .doc-row .doc-info { flex: 1; min-width: 0; }
.guide-success .doc-row .doc-info .name { font-size: 13px; font-weight: 600; color: var(--color-text); margin: 0 0 2px; }
.guide-success .doc-row .doc-info .size { font-size: 11px; color: var(--color-text-subtle); margin: 0; }
.guide-success .doc-row .dl-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent-hover);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
  flex-shrink: 0;
}
.guide-success .doc-row .dl-link svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .guide-hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .guide-h1 { font-size: 48px; }
  .guide-body-inner { grid-template-columns: 1fr; gap: 40px; }
  .guide-toc { position: static; }
  .guide-toc ol { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .guide-framework { grid-template-columns: 1fr 1fr; }
  .guide-framework::before { display: none; }
  .guide-regions { grid-template-columns: 1fr; }
  .guide-related { grid-template-columns: 1fr; }
  .guide-comparison { grid-template-columns: 1fr; }
  .guide-product-bridge ul { grid-template-columns: 1fr; }
  .guide-sample-visual { grid-template-columns: 1fr; padding: 28px; }
}
@media (max-width: 700px) {
  .guide-h1 { font-size: 36px; }
  .guide-section h2 { font-size: 28px; }
  .guide-section { padding-bottom: 40px; }
  .guide-framework { grid-template-columns: 1fr; }
  .guide-toc ol { grid-template-columns: 1fr; }
  .guide-final-cta h2 { font-size: 32px; }
  .guide-final-cta { padding: 72px 0; }
  .guide-form-grid { grid-template-columns: 1fr; }
}
