:root {
  --navy: #040d3f;
  --navy-2: #0b185a;
  --red: #c9151f;
  --rose: #fff1f2;
  --blue-soft: #eff4ff;
  --ink: #182033;
  --muted: #60708a;
  --line: #dce3ef;
  --card: #ffffff;
  --page: #f5f7fb;
  --shadow: 0 18px 45px rgba(4, 13, 63, 0.12);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
  line-height: 1.6;
}
a { color: var(--navy); }
a:hover { color: var(--red); }
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--navy);
  color: white;
  padding: .75rem 1rem;
  border-radius: .75rem;
  z-index: 20;
}
.skip-link:focus { top: 1rem; }
.site-header {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  padding: 1.25rem clamp(1.25rem, 4vw, 4rem);
  color: white;
  background:
    radial-gradient(circle at 82% 16%, rgba(201, 21, 31, .38), transparent 24rem),
    linear-gradient(135deg, var(--navy), var(--navy-2));
}
.header-copy { max-width: 860px; }
.eyebrow {
  margin: 0 0 .5rem;
  color: var(--red);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .76rem;
}
.site-header .eyebrow { color: #ffccd0; }
h1, h2, h3 { line-height: 1.15; color: var(--navy); }
.site-header h1 { color: white; font-size: clamp(1.6rem, 3.4vw, 2.8rem); margin: 0; white-space: nowrap; }
.lede { font-size: 1.15rem; max-width: 760px; color: #e7ecff; }
.header-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: .7rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
}
.button-light { background: white; color: var(--navy); }
.button-outline { color: white; border-color: rgba(255,255,255,.45); }
.layout { display: grid; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  padding: 1.25rem;
  background: white;
  border-right: 1px solid var(--line);
}
.search-label { display: block; font-weight: 800; color: var(--navy); margin-bottom: .45rem; }
.search-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: .9rem;
  padding: .8rem .9rem;
  font: inherit;
  margin-bottom: 1rem;
}
.nav-group-title {
  margin: 1rem 0 .4rem;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 900;
}
.nav-list a {
  display: block;
  padding: .55rem .7rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: .95rem;
  border: 1px solid transparent;
}
.nav-list a:hover, .nav-list a:focus { background: var(--blue-soft); color: var(--navy); outline: none; }
.nav-list a.active {
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: 0 8px 20px rgba(4, 13, 63, .18);
  color: white;
  outline: none;
}
.nav-list a.active::before {
  content: "";
  display: inline-block;
  width: .45rem;
  height: .45rem;
  margin-right: .45rem;
  border-radius: 999px;
  background: var(--red);
  vertical-align: middle;
}
.content { padding: 2rem clamp(1rem, 3vw, 3rem) 4rem; min-width: 0; }
.intro-panel, .doc-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
}
.intro-panel {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.doc-section { padding: clamp(1.2rem, 3vw, 2rem); margin-bottom: 1.25rem; scroll-margin-top: 1rem; }
.section-header { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.section-number {
  display: inline-grid;
  place-items: center;
  min-width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--rose);
  color: var(--red);
  font-weight: 900;
  margin-right: .5rem;
}
.section-title-row { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.section-title-row h2 { margin: 0; font-size: clamp(1.45rem, 3vw, 2.3rem); }
.section-subtitle {
  margin: 1.6rem 0 .65rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}
.badge {
  display: inline-flex;
  padding: .25rem .55rem;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--navy);
  font-weight: 800;
  font-size: .78rem;
}
.badge.placeholder { background: var(--rose); color: var(--red); }
.summary { color: var(--muted); font-size: 1.05rem; }
.key-points { display: grid; gap: .65rem; padding-left: 1.15rem; }
.key-points li::marker { color: var(--red); }
.audit-key-points p { margin: 0; }
.audit-key-points p + p { margin-top: .35rem; color: var(--muted); }
.ordered-points {
  display: grid;
  gap: .65rem;
  padding-left: 1.35rem;
}
.ordered-points li::marker {
  color: var(--red);
  font-weight: 900;
}
.section-html-content { margin: 1.25rem 0; }
.process-recipe {
  --recipe-blue: #1155cc;
  --recipe-green: #38761d;
  --recipe-red: #cc0000;
  --recipe-grey: #999999;
  color: var(--ink);
}
.process-recipe h3 {
  margin: 1.4rem 0 .75rem;
  color: var(--recipe-green);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
}
.process-recipe h3.warning { color: var(--recipe-red); }
.process-recipe p { margin: .5rem 0; }
.process-recipe ul {
  display: grid;
  gap: .8rem;
  margin: .65rem 0 0;
  padding-left: 1.2rem;
}
.process-recipe li::marker { color: var(--red); }
.process-recipe .nested {
  gap: .55rem;
  margin-top: .6rem;
  padding-left: 1.35rem;
}
.process-recipe .label {
  display: block;
  margin-top: .85rem;
  font-weight: 800;
}
.process-recipe .label.use { color: var(--recipe-green); }
.process-recipe .label.dont { color: var(--recipe-red); }
.summary .blue, .process-recipe .blue, .process-definition .blue { color: var(--recipe-blue, #1155cc); font-weight: 800; }
.process-recipe .example {
  display: block;
  margin-top: .18rem;
  color: var(--recipe-grey);
  font-style: italic;
}
.process-definition {
  --process-blue: #1155cc;
  --process-green: #38761d;
  --process-red: #cc0000;
  display: grid;
  gap: 1rem;
  color: var(--ink);
}
.process-definition-header {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: linear-gradient(135deg, #ffffff, var(--blue-soft));
}
.process-definition-header .eyebrow {
  margin-bottom: .45rem;
  color: var(--process-blue);
}
.process-definition-header h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
}
.process-definition-header p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  max-width: 880px;
}
.process-definition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.process-definition-card,
.process-definition-warning {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 12px 30px rgba(4, 13, 63, .08);
}
.process-definition-card {
  padding: 1.1rem;
}
.process-definition-icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: .8rem;
  border-radius: 999px;
  color: var(--process-blue);
  background: var(--blue-soft);
}
.process-definition-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}
.process-definition-card > .process-definition-icon {
  width: 6rem;
  height: 6rem;
  margin: 0 .75rem .8rem 0;
  vertical-align: middle;
}
.process-definition-card > .process-definition-icon svg {
  width: 3.5rem;
  height: 3.5rem;
}
.process-definition-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.process-definition-step {
  margin: 0 0 .3rem;
  color: var(--process-green);
  font-weight: 900;
}
.process-definition-card > .process-definition-icon + .process-definition-step {
  display: inline-block;
  margin: 0 0 .8rem;
  vertical-align: middle;
}
.process-definition-card h4 {
  margin: 0 0 .45rem;
  color: var(--navy);
  font-size: 1.1rem;
}
.process-definition-card p {
  margin: .45rem 0;
}
.process-definition-label {
  color: var(--process-green);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.process-definition-card ul {
  display: grid;
  gap: .45rem;
  margin: .5rem 0 0;
  padding-left: 1.15rem;
}
.process-definition-card li::marker {
  color: var(--red);
}
.process-definition-warning-sign {
  display: inline-block;
  margin-right: .2rem;
  font-size: 1.45em;
  line-height: 1;
  vertical-align: -.12em;
}
.process-definition-image {
  margin: .9rem 0 0;
  width: 40%;
  max-height: 28rem;
}
.process-definition-workflow-image {
  width: 100%;
}
.process-definition-card:has(.process-definition-status-image) {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto auto auto 1fr;
  align-items: start;
}
.process-definition-card:has(.process-definition-status-image) > :not(.process-definition-icon):not(.process-definition-step) {
  grid-column: 1 / -1;
}
.process-definition-card:has(.process-definition-status-image) > .process-definition-step {
  align-self: center;
}
.process-definition-status-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow-y: hidden;
}
.process-definition-status-image .slide-image {
  height: 100%;
  max-height: none;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}
.process-definition-warning {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .9rem;
  align-items: center;
  padding: 1rem 1.1rem;
  background: var(--rose);
  border-color: #ffd1d5;
}
.process-definition-warning p {
  margin: 0;
}
.process-definition-warning strong {
  color: var(--process-red);
}
.process-definition-icon.warning {
  margin: 0;
  color: var(--process-red);
  background: #fff;
}
.audit-slide-content {
  --audit-orange: #f39a2f;
  max-width: 980px;
}
.audit-slide-list {
  display: grid;
  gap: 1.1rem;
  margin: 0;
  padding-left: 1.35rem;
}
.audit-slide-list li::marker {
  color: var(--ink);
  font-size: 1.25rem;
}
.audit-slide-list p {
  margin: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.35;
}
.audit-slide-list strong {
  color: var(--audit-orange);
  font-weight: 900;
}
.audit-slide-list .audit-support {
  margin-top: .55rem;
  color: var(--muted);
  font-size: clamp(.98rem, 1.5vw, 1.12rem);
  font-style: italic;
}
.audit-workflow-progress {
  width: min(440px, 100%);
  margin: 1rem 0 0 45%;
  border-radius: .35rem;
  overflow: hidden;
  background: #22242b;
}
.audit-workflow-progress img {
  display: block;
  width: 100%;
  height: auto;
}
.slide-image-wrap {
  margin: 1.25rem 0;
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: auto;
  background: #fff;
}
.slide-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.image-points-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1.2fr) minmax(260px, .8fr);
  gap: 1.25rem;
  align-items: center;
  margin: 1.25rem 0;
}
.image-points-layout .slide-image-wrap {
  margin: 0;
}
.image-points-layout .key-points {
  margin: 0;
}
.image-points-side {
  display: grid;
  gap: 1rem;
}
.image-points-secondary .section-subtitle {
  margin-top: 0;
}
.image-points-below {
  grid-column: 1 / -1;
}
.image-ordered-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1.15fr) minmax(280px, .85fr);
  gap: 1.25rem;
  align-items: center;
  margin: 1.25rem 0;
}
.image-ordered-layout.image-first-full {
  grid-template-columns: 1fr;
}
.image-ordered-layout .slide-image-wrap {
  margin: 0;
}
.image-ordered-layout .ordered-points {
  margin: 0;
}
.concept-lifecycle-image {
  margin: 0 auto;
  width: 50%;
}
.integration-pattern-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1.2fr) minmax(280px, .8fr);
  gap: 1.25rem;
  align-items: center;
  margin: 1.25rem 0;
}
.integration-pattern-layout .slide-image-wrap {
  margin: 0;
}
.integration-pattern-copy h3 {
  margin-top: 0;
}
.integration-pattern-copy .key-points {
  margin-bottom: 0;
}
.architecture-grid { margin: 1.25rem 0; }
.architecture-image-wrap {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: auto;
  background: #fff;
}
.architecture-image-layout {
  display: grid;
  grid-template-columns: minmax(640px, 1fr) minmax(220px, .32fr);
  align-items: stretch;
}
.architecture-image-stage {
  position: relative;
  width: 100%;
  border-radius: calc(1rem - 1px);
  overflow: hidden;
}
.architecture-image { width: 100%; }
.architecture-hotspot {
  position: absolute;
  top: var(--hotspot-top);
  left: var(--hotspot-left);
  width: var(--hotspot-width);
  height: var(--hotspot-height);
  border: 2px solid transparent;
  border-radius: .8rem;
  background: transparent;
  cursor: pointer;
}
.architecture-hotspot:hover,
.architecture-hotspot:focus {
  background: rgba(255, 255, 255, .12);
  border-color: white;
  box-shadow: 0 0 0 3px rgba(201, 21, 31, .65), 0 14px 28px rgba(4, 13, 63, .28);
  outline: none;
}
.architecture-hotspot:focus-visible {
  border-color: white;
  box-shadow: 0 0 0 4px var(--red), 0 14px 28px rgba(4, 13, 63, .28);
}
.architecture-instruction {
  display: grid;
  place-items: center;
  margin: 0;
  padding: 1rem 1.15rem;
  color: var(--navy);
  background: var(--blue-soft);
  border-left: 1px solid var(--line);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 900;
  text-align: center;
}
.next-step-callout {
  margin-top: 1.75rem;
  padding: 1.2rem 1.3rem;
  border: 2px solid var(--navy);
  border-radius: 1rem;
  background: var(--blue-soft);
  box-shadow: 0 12px 30px rgba(4, 13, 63, .08);
}
.next-step-callout-label {
  margin: 0 0 .35rem;
  color: var(--red);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.next-step-callout p {
  margin: 0;
  font-size: 1.08rem;
}
.next-step-callout p + p {
  margin-top: .45rem;
}
.next-step-callout a {
  font-weight: 800;
  font-size: 1.12rem;
  text-decoration: underline;
}
.related, .sources { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.related-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.related-links a, .source-chip {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .35rem .65rem;
  text-decoration: none;
  font-size: .88rem;
  background: #fff;
}
.source-chip { color: var(--muted); }
.prev-next { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.prev-next a, .back-top { font-weight: 800; text-decoration: none; }
.no-results { padding: 2rem; text-align: center; color: var(--muted); }
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(4, 13, 63, .62);
  display: grid;
  place-items: center;
  padding: 1rem;
}
.modal {
  width: min(940px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: white;
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0 30px 80px rgba(0,0,0,.32);
  position: relative;
}
.modal-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: block;
  border: 0;
  background: var(--navy);
  color: white;
  border-radius: 999px;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  font-size: 1.25rem;
}
.modal img { width: 100%; border: 1px solid var(--line); border-radius: .85rem; }
.site-footer { padding: 2rem; text-align: center; color: var(--muted); }
.hidden { display: none !important; }
@media (max-width: 900px) {
  .site-header { display: block; }
  .header-actions { margin-top: 1rem; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .architecture-grid { grid-template-columns: 1fr; }
  .image-points-layout { grid-template-columns: 1fr; }
  .image-ordered-layout { grid-template-columns: 1fr; }
  .integration-pattern-layout { grid-template-columns: 1fr; }
  .process-definition-grid { grid-template-columns: 1fr; }
  .architecture-image-layout {
    grid-template-columns: minmax(640px, 1fr);
  }
  .architecture-instruction { border-left: 0; border-top: 1px solid var(--line); }
  .audit-workflow-progress { margin-left: 0; }
}
@media (max-width: 560px) {
  .intro-panel, .section-header, .prev-next { display: block; }
  .site-header { padding: 1rem; }
  .site-header h1 { white-space: normal; }
  .content { padding: 1rem; }
  .process-definition-warning { grid-template-columns: 1fr; }
}
