\\\.implementation-page { color: #141937; }
.implementation-page .content-body { line-height: 1.78; }
.implementation-page .content-body p { margin: 0 0 1.2rem; }
.implementation-page .toc-link.toc-h2 { font-size: .93rem; line-height: 1.45; font-weight: 600; }
.implementation-page .toc-link.is-active { color: #6875b0; }
.implementation-page .ip-section { margin-bottom: 4.6rem; }
.ip-heading { display: flex; align-items: flex-start; gap: .85rem; margin-bottom: 1.65rem; }
.ip-section-number { flex: 0 0 2.5rem; height: 2.5rem; display: grid; place-items: center; border: 1px solid #c6cbe0; border-radius: 50%; color: #6875b0; font-weight: 600; font-size: .8rem; margin-top: .1rem; }
.implementation-page .ip-heading h2 { margin: 0; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.35; font-weight: 600; letter-spacing: -.025em; }
.implementation-page .content-body h3 { font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.45; margin: 2.4rem 0 1rem; font-weight: 600; scroll-margin-top: 130px; }
.implementation-page .content-body h4 { font-size: 1.05rem; line-height: 1.5; margin: 1.9rem 0 .9rem; color: #59679e; font-weight: 650; scroll-margin-top: 130px; }
.implementation-page .content-body a { color: #59679e; text-underline-offset: .18em; }
.implementation-page :focus-visible { outline: 2px solid #6875b0; outline-offset: 4px; }
.ip-milestones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 1.6rem 0 2rem; }
.ip-milestones > li { padding: 1.2rem 1.3rem; border: 1px solid #d9dce6; border-radius: 14px; background: #f0f2f7; }
.implementation-page .ip-milestones h3 { font-size: 1rem; margin: 0 0 .8rem; color: #59679e; }
.implementation-page .ip-milestones p { font-size: .94rem; line-height: 1.7; margin: 0; }
.ip-production-flow { background: #141937; color: #fdfdf4; border-radius: 14px; padding: 1.4rem 1.5rem; margin: 1.7rem 0 2rem; overflow-wrap: anywhere; }
.implementation-page .ip-production-flow p { margin: 0 0 .5rem; font-size: .95rem; }
.implementation-page .ip-production-flow p:last-child { margin-bottom: 0; }
.ip-table-wrap { width: 100%; max-width: 100%; min-width: 0; border: 1px solid #d8dce7; border-radius: 14px; overflow-x: auto; overscroll-behavior-x: contain; margin: 1.5rem 0 2rem; }
.implementation-page .ip-table-wrap > .ip-table { display: table; width: 100%; min-width: 900px; max-width: none; overflow: visible; margin: 0; table-layout: fixed; border-collapse: collapse; font-size: .89rem; line-height: 1.65; }
.ip-table .ip-agent { width: 25%; }
.implementation-page .ip-table caption { caption-side: top; text-align: left; padding: 1rem 1.1rem; background: #eef0f8; color: #141937; font-size: .93rem; font-weight: 600; line-height: 1.5; }
.ip-table th, .ip-table td { padding: 1rem 1.1rem; vertical-align: top; border-bottom: 1px solid #dfe3ec; text-align: left; overflow-wrap: anywhere; }
.ip-table thead { background: #141937; color: #fdfdf4; }
.ip-table thead th { font-weight: 500; font-size: .82rem; }
.ip-table tbody th { font-weight: 600; }
.ip-table tbody tr:nth-child(even) { background: #f0f2f7; }
.ip-table tbody tr:last-child > * { border-bottom: 0; }
.implementation-page .ip-table p { margin: 0 0 .9rem; font-size: inherit; line-height: inherit; }
.implementation-page .ip-table p:last-child { margin-bottom: 0; }
.implementation-page .ip-design-note { padding: 1.3rem 1.4rem; border-left: 3px solid #6875b0; background: #f0f2f7; border-radius: 0 12px 12px 0; margin: 1.7rem 0; }
@media (max-width: 768px) {
  .ip-milestones { grid-template-columns: 1fr; }
  .implementation-page .ip-section { margin-bottom: 3.2rem; }
  .ip-heading { gap: .7rem; }
  .ip-section-number { flex-basis: 2rem; height: 2rem; }
  .implementation-page .ip-design-note { padding: 1rem; }
  .ip-production-flow { padding: 1.1rem; }
}
.ip-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2rem 0;
}
.ip-tile {
  flex: 1 1 18rem;
  background: rgba(182, 199, 216, 0.35);
  border: 1px solid rgba(132, 141, 198, 0.3);
  border-radius: 16px;
  padding: 1.6rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ip-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(20, 25, 55, 0.12);
}
.ip-tile h3 { margin: 0 0 0.6rem; border: none; padding: 0; }
.ip-tile p { color: #3a4160; margin: 0 0 0.9rem; line-height: 1.5; }
.ip-tile-cue { color: #59679e; font-weight: 600; font-size: 0.9rem; }

.ip-pop-source { display: none; }

.ip-modal {
  display: none; position: fixed; inset: 0;
  background: rgba(20, 25, 55, 0.6); z-index: 1000;
  align-items: center; justify-content: center;
  padding: 7rem 1.5rem 2rem;
}
.ip-modal.is-open { display: flex; }
.ip-modal-box {
  background: rgba(150, 174, 197, 0.97);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 52rem; width: 100%;
  max-height: 80vh; overflow-y: auto;
  position: relative;
  color: #141937;
}
.ip-modal-close {
  position: absolute; top: 1rem; right: 1.25rem;
  background: none; border: none; font-size: 2rem; line-height: 1;
  color: #141937; cursor: pointer;
}
.ip-modal-content h3 { margin: 0 0 1.2rem; border: none; padding: 0; }
.ip-modal-content p, .ip-modal-content li { color: #141937; line-height: 1.6; }
body.modal-open { overflow: hidden; }

.model-figure { margin: 2rem 0; text-align: center; }
.model-figure img { width: 100%; max-width: 46rem; height: auto; display: block; margin: 0 auto; }
.model-figure figcaption {
  font-size: 0.85rem; font-style: italic; color: #5a6280;
  line-height: 1.55; margin-top: 0.7rem; text-align: left;
  max-width: 46rem; margin-left: auto; margin-right: auto;
}

.implementation-page .table-scroll { display: block; box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; margin: 1.5rem auto 1rem; overflow-x: auto; border: 1px solid #d8dce7; border-radius: 14px; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.implementation-page .parts-table { display: table; box-sizing: border-box; width: 100%; min-width: 1040px; max-width: none; margin: 0 auto; border: 0; border-collapse: collapse; table-layout: auto; font-size: .89rem; line-height: 1.65; color: #141937; }
.implementation-page .parts-table :is(th,td) { padding: 1rem 1.1rem; border: 0; border-bottom: 1px solid #dfe3ec; vertical-align: top; text-align: left; background: transparent; color: inherit; }
.implementation-page .parts-table thead { background: #141937; color: #fdfdf4; }
.implementation-page .parts-table thead th { background: #141937; color: #fdfdf4; font-weight: 500; font-size: .82rem; }
.implementation-page .parts-table tbody tr:nth-child(even) { background: #f0f2f7; }
.implementation-page .parts-table tbody tr:last-child > * { border-bottom: 0; }
.implementation-page .parts-sequence-note { margin: 1rem 0; color: #50556b; font-size: .85rem; line-height: 1.7; text-align: left; }
.implementation-page .table-scroll:focus-visible { outline: 3px solid #848dc6; outline-offset: 3px; }
.implementation-page .safety-table tbody th { white-space: normal; font-weight: 600; min-width: 200px; }
.implementation-page .tbl-refs { display: inline-block; margin-top: .4rem; font-weight: 400; font-size: .8rem; }
@media (max-width: 768px) {
  .implementation-page .parts-table :is(th,td) { padding: .8rem .9rem; }
  .implementation-page .parts-table { font-size: .84rem; }
}

.ip-accordion .acc-item {
  background: #e4eaf0;
  border: 1px solid #d8dce7;
  border-radius: 14px;
  margin-bottom: 1rem;
  overflow: hidden;
}
.ip-accordion .acc-header {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.1rem 3rem 1.1rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #59679e;
  cursor: pointer;
  position: relative;
}
.ip-accordion .acc-header::after {
  content: "+";
  position: absolute;
  right: 1.5rem;
  color: #59679e;
  font-weight: 700;
}
.ip-accordion .acc-header.is-open::after { content: "\2212"; }
.ip-accordion .acc-header:hover { color: #141937; }
.ip-accordion .acc-body {
  display: none;
  padding: 0 1.5rem 1.3rem;
  color: #141937;
  line-height: 1.65;
}
.ip-accordion .acc-body.is-open { display: block; }
.ip-accordion .acc-body p:last-child { margin-bottom: 0; }
/* Match the existing Model/Design sidebar hierarchy. */
.implementation-page .toc-link.toc-h3 { margin-left: 1rem; font-size: .84rem; font-weight: 400; line-height: 1.45; }
.implementation-page .content-body h3[data-ip-toc-subsection] { text-decoration-line: underline; text-decoration-color: #848dc6; text-decoration-thickness: 2px; text-underline-offset: .3em; }
