:root {
  --guide-green: #047857;
  --guide-green-soft: #ecfdf5;
  --guide-blue: #1d4ed8;
  --guide-blue-soft: #eff6ff;
  --guide-purple: #6d28d9;
  --guide-purple-soft: #f5f3ff;
  --guide-amber: #b45309;
  --guide-red: #b91c1c;
}
.guide-page { background: #f4f7fb; }
.guide-page .nav-links a[aria-current="page"] { background: var(--suite-blue-soft); color: var(--suite-blue) !important; }
.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(290px, .75fr);
  gap: 2rem;
  padding: 4.5rem 6vw 3.5rem;
  background: radial-gradient(circle at 80% 15%, rgba(67,56,202,.16), transparent 29rem), linear-gradient(135deg, #fff, #f4f7ff);
}
.guide-hero-copy h1 { max-width: 850px; font-size: clamp(2.6rem, 5vw, 4.8rem); line-height: 1.02; }
.guide-lead { max-width: 820px; color: #526071; font-size: 1.14rem; line-height: 1.72; }
.guide-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.guide-route-card, .guide-document-card, .module-guide-card, .final-check-grid article {
  background: rgba(255,255,255,.97);
  border: 1px solid #d6e0ee;
  border-radius: 22px;
  box-shadow: 0 16px 42px rgba(15,23,42,.08);
}
.guide-route-card { padding: 1.4rem; align-self: center; }
.guide-route-card ol { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.guide-route-card li { padding: .9rem 1rem; border-radius: 16px; background: #f8fafc; border: 1px solid #e2e8f0; }
.guide-route-card strong, .guide-route-card span { display: block; }
.guide-route-card strong { color: #0b2341; }
.guide-route-card span { margin-top: .25rem; color: #526071; line-height: 1.45; }
.guide-section { max-width: 1220px; margin: 0 auto; padding: 4rem 1rem; scroll-margin-top: 96px; }
.guide-section-heading { max-width: 800px; margin-bottom: 1.4rem; }
.guide-section-heading p { color: #526071; line-height: 1.65; }
.guide-video-shell { width: 100%; aspect-ratio: 16 / 9; background: #0f172a; border-radius: 24px; overflow: hidden; box-shadow: 0 26px 60px rgba(15,23,42,.2); }
.guide-video-shell iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-fallback { text-align: center; color: #526071; margin-top: 1rem; }
.video-fallback a { color: var(--guide-blue); font-weight: 800; }
.guide-document-section { border-top: 1px solid #d6e0ee; }
.guide-document-card { padding: 1.5rem; display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.5rem; align-items: center; }
.guide-document-card h3 { margin-top: 0; font-size: 1.5rem; }
.guide-document-card p { color: #526071; line-height: 1.65; }
.guide-document-badges { display: flex; flex-wrap: wrap; gap: .65rem; }
.guide-document-badges span { padding: .65rem .85rem; border-radius: 999px; border: 1px solid #c7d7f7; background: #f8fbff; color: #24436d; font-weight: 800; }
.pdf-preview { margin-top: 1rem; background: #fff; border: 1px solid #d6e0ee; border-radius: 18px; padding: 1rem; }
.pdf-preview summary { cursor: pointer; font-weight: 900; color: #1d4ed8; }
.pdf-preview object { width: 100%; height: min(78vh, 900px); border: 0; margin-top: 1rem; border-radius: 12px; }
.module-guide-section { display: grid; gap: 1.25rem; }
.module-guide-section > .guide-section-heading { margin-bottom: .2rem; }
.module-guide-card { padding: 1.5rem; scroll-margin-top: 96px; }
.module-guide-card.green { border-top: 6px solid var(--guide-green); }
.module-guide-card.blue { border-top: 6px solid var(--guide-blue); }
.module-guide-card.purple { border-top: 6px solid var(--guide-purple); }
.module-guide-intro { display: flex; gap: 1rem; align-items: flex-start; }
.module-number { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: #0f172a; color: #fff; font-weight: 900; }
.module-guide-card h3 { margin: 0 0 .35rem; font-size: clamp(1.65rem, 3vw, 2.35rem); color: #0b2341; }
.module-guide-card p { color: #526071; line-height: 1.6; }
.field-status-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; margin-top: 1.2rem; }
.field-status { border: 1px solid #d6e0ee; border-radius: 16px; padding: 1rem; background: #fff; }
.field-status h4 { margin: 0 0 .7rem; font-size: 1rem; }
.field-status ul { margin: 0; padding-left: 1.15rem; color: #475569; line-height: 1.55; }
.field-status.required { background: #fff7f7; border-color: #fecaca; }
.field-status.required h4 { color: var(--guide-red); }
.field-status.recommended { background: var(--guide-blue-soft); border-color: #bfdbfe; }
.field-status.recommended h4 { color: var(--guide-blue); }
.field-status.optional { background: var(--guide-green-soft); border-color: #bbf7d0; }
.field-status.optional h4 { color: var(--guide-green); }
.final-check-section { border-top: 1px solid #d6e0ee; }
.final-check-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.final-check-grid article { padding: 1.15rem; }
.final-check-grid strong, .final-check-grid span { display: block; }
.final-check-grid strong { color: #1d4ed8; font-size: 1.05rem; margin-bottom: .35rem; }
.final-check-grid span { color: #526071; line-height: 1.55; }
@media (max-width: 900px) {
  .guide-hero, .guide-document-card { grid-template-columns: 1fr; }
  .field-status-grid, .final-check-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .guide-hero { padding: 3rem 1rem 2rem; }
  .guide-section { padding: 3rem 1rem; }
  .guide-actions > * { width: 100%; }
  .pdf-preview object { height: 65vh; }
}

/* Embedded HTML conversion of the annotated infographic guide */
.embedded-guide-viewer {
  margin-top: 1.35rem;
  background: #ffffff;
  border: 1px solid #d6e0ee;
  border-radius: 24px;
  box-shadow: 0 22px 54px rgba(15, 23, 42, .12);
  overflow: hidden;
  scroll-margin-top: 96px;
}
.embedded-guide-viewer:focus-visible {
  outline: 4px solid rgba(29, 78, 216, .24);
  outline-offset: 4px;
}
.guide-viewer-toolbar {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid #dbe4f0;
  background: linear-gradient(180deg, #ffffff, #f7f9fd);
}
.guide-module-tabs,
.guide-viewer-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
}
.guide-module-tab,
.guide-page-button,
.guide-page-open {
  appearance: none;
  border: 1px solid #c8d5e8;
  border-radius: 999px;
  background: #ffffff;
  color: #1e3a5f;
  min-height: 42px;
  padding: .65rem .95rem;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.guide-module-tab:hover,
.guide-page-button:hover,
.guide-page-open:hover {
  transform: translateY(-1px);
  border-color: #6b8cc6;
  background: #eef4ff;
}
.guide-module-tab.is-active {
  color: #ffffff;
  background: #3156b3;
  border-color: #3156b3;
}
.guide-viewer-controls {
  justify-content: space-between;
}
.guide-page-counter {
  min-width: 7.5rem;
  text-align: center;
  color: #34465f;
  font-weight: 900;
}
.guide-page-open {
  margin-left: auto;
  color: #1d4ed8;
}
.guide-page-button:disabled {
  cursor: not-allowed;
  opacity: .45;
  transform: none;
}
.guide-slide-stage {
  position: relative;
  padding: clamp(.55rem, 1.5vw, 1.15rem);
  background: #e9eef6;
}
.guide-slide {
  margin: 0;
  background: #ffffff;
  border: 1px solid #cfd9e8;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .1);
}
.guide-slide[hidden] { display: none !important; }
.guide-slide-image-link {
  display: block;
  background: #f3f6fb;
}
.guide-slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
.guide-slide figcaption {
  display: grid;
  gap: .22rem;
  padding: .95rem 1.1rem 1.05rem;
  border-top: 1px solid #dbe4f0;
  background: #ffffff;
}
.guide-slide figcaption strong {
  color: #102a4c;
  font-size: 1.05rem;
}
.guide-slide figcaption span {
  color: #53657c;
  line-height: 1.5;
}
.guide-thumb-strip {
  display: flex;
  gap: .65rem;
  overflow-x: auto;
  padding: .9rem 1rem 1rem;
  background: #ffffff;
  border-top: 1px solid #dbe4f0;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.guide-thumb {
  position: relative;
  flex: 0 0 142px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #eef2f7;
  cursor: pointer;
  scroll-snap-align: center;
  box-shadow: 0 5px 14px rgba(15, 23, 42, .08);
}
.guide-thumb:hover { border-color: #89a7dd; }
.guide-thumb.is-active {
  border-color: #3156b3;
  box-shadow: 0 0 0 3px rgba(49, 86, 179, .16);
}
.guide-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.guide-thumb span {
  position: absolute;
  right: .35rem;
  bottom: .35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.8rem;
  height: 1.8rem;
  padding: 0 .4rem;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, .86);
  font-size: .78rem;
  font-weight: 900;
}
.guide-keyboard-hint {
  margin: 0;
  padding: 0 1rem 1rem;
  color: #66758a;
  font-size: .92rem;
  line-height: 1.5;
}

@media (min-width: 920px) {
  .guide-viewer-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .guide-viewer-controls { justify-content: flex-end; }
}

@media (max-width: 720px) {
  .guide-module-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: .2rem;
  }
  .guide-module-tab { flex: 0 0 auto; }
  .guide-viewer-controls {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }
  .guide-page-button:first-child { justify-self: start; }
  .guide-page-button:nth-of-type(2) { justify-self: end; }
  .guide-page-open {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
    text-align: center;
  }
  .guide-slide figcaption { padding: .8rem .9rem .9rem; }
  .guide-thumb { flex-basis: 118px; }
}
