/* V19 — surgical detail refinements, scoped to documented pages. */
body[data-project="onconnect"] #deep-dive .v6-module-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
body[data-project="onconnect"] #deep-dive .v6-module-card {
  box-sizing: border-box;
  aspect-ratio: 1 / 1;
  min-height: 0 !important;
  height: auto;
  padding: 27px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
body[data-project="onconnect"] #deep-dive .v6-module-card > span {
  display: block;
}
body[data-project="onconnect"] #deep-dive .v6-module-card p {
  font-size: clamp(0.82rem, 0.76vw, 0.93rem);
  line-height: 1.62;
}
body[data-project="onconnect"] #deep-dive .v6-module-card .v19-module-subhead {
  margin: 8px 0 0;
  font-size: 0.91rem;
  color: var(--theme-accent, #ffa5ae);
  font-weight: 800;
}
body[data-project="onconnect"] #deep-dive .v6-module-card .v19-module-note {
  font-size: 0.83rem;
  line-height: 1.54;
  opacity: 0.94;
}
body[data-project="onconnect"] #deep-dive .v6-module-card .v19-bullets {
  font-size: 0.82rem;
  line-height: 1.5;
  gap: 5px;
}
body[data-project="onconnect"] #features .feature {
  min-height: 0;
  gap: 12px;
}
body[data-project="onconnect"] #features .feature .v19-feature-note {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--theme-muted, #f1d6db);
}
body[data-project="onconnect"] .v19-bullets {
  padding-left: 21px;
  margin: 6px 0 0;
  display: grid;
  gap: 8px;
  font-size: 0.86rem;
  line-height: 1.56;
  color: var(--theme-muted, #eee);
}
body[data-project="onconnect"] .v19-bullets li::marker {
  color: var(--theme-accent, #ff7380);
}
body[data-project="onconnect"] #code > .v19-full-code-copy {
  box-sizing: border-box;
  width: 100%;
  max-width: none !important;
  display: block;
  margin: 20px 0 !important;
  padding: 20px 23px !important;
  line-height: 1.75;
  background: rgba(0, 0, 0, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 13px;
  overflow-wrap: break-word;
}
body[data-project="onconnect"] #code > .v19-full-code-copy.v17-source-note {
  background: rgba(0, 0, 0, 0.13);
  border-left: 3px solid var(--theme-accent, #ff7181);
}
body[data-project="onconnect"] #design-decisions .v19-engineering-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
body[data-project="onconnect"] #design-decisions .v19-engineering-card {
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  min-width: 0;
}
body[data-project="onconnect"] #design-decisions .v19-engineering-card h3 {
  font-size: 1.07rem;
  margin: 0 0 12px;
}
body[data-project="onconnect"] #design-decisions .v19-engineering-card p {
  line-height: 1.72;
  font-size: 0.93rem;
}
body[data-project="onconnect"] .toc a[href="#system-diagram"],
body[data-project="onconnect"] .toc a[href="#message-sequence"] {
  padding-left: 23px;
  font-size: 0.82rem;
}
body[data-project="onconnect"] #system-diagram,
body[data-project="onconnect"] #message-sequence {
  scroll-margin-top: 115px;
}
body.v19-school-unified {
  background:
    radial-gradient(
      ellipse at top right,
      rgba(var(--v5-hue), 0.13),
      transparent 52%
    ),
    #071221 !important;
  color: #f2f7fe;
}
body.v19-school-unified .detail-hero {
  background: linear-gradient(
    150deg,
    var(--v5-deep, #12314b),
    #081421
  ) !important;
}
body.v19-school-unified .detail-hero .hero-app-cover {
  background: linear-gradient(
    135deg,
    var(--v5-accent, #4086dd),
    var(--v5-deep, #102b4b)
  );
  color: #fff;
  border-color: rgba(var(--v5-hue), 0.55);
}
body.v19-school-unified .detail-main {
  min-width: 0;
}
body.v19-school-unified .detail-main > .detail-section {
  scroll-margin-top: 110px;
}
body.v19-school-unified .feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
body.v19-school-unified .feature-grid .feature {
  min-height: 185px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
body.v19-school-unified .feature-grid .feature h3 {
  font-size: 1.04rem;
  line-height: 1.46;
  margin: 0;
}
body.v19-school-unified .feature-grid .feature p {
  font-size: 0.89rem;
  line-height: 1.67;
  margin: 0;
  color: var(--theme-muted, #c6dce9);
}
body.v19-school-unified .impl-list {
  display: grid;
  gap: 12px;
}
body.v19-school-unified #code .v7-code-explainer {
  width: 100%;
  max-width: none;
}
body.v19-school-unified #code .code-card {
  width: 100%;
  box-sizing: border-box;
}
body.v19-school-unified #code pre {
  max-width: 100%;
  overflow-x: auto;
}
body.v19-school-unified #code .v7-code-explainer .code-head .v16-language {
  display: none;
}
body.v19-school-unified .detail-main .v5-image-placeholder {
  padding: 38px 22px;
}
.v10-contributor-list .v19-linkedin-chip {
  font-size: 0.69rem !important;
  color: #a8d0ff !important;
  background: #082b44 !important;
  border-color: #3c6c91 !important;
}
.v10-person-links a[href*="linkedin.com"] {
  white-space: nowrap;
}
@media (max-width: 1200px) {
  body[data-project="onconnect"] #deep-dive .v6-module-card {
    aspect-ratio: auto;
    min-height: 405px !important;
  }
}
@media (max-width: 850px) {
  body[data-project="onconnect"] #deep-dive .v6-module-grid,
  body[data-project="onconnect"] #design-decisions .v19-engineering-grid,
  body.v19-school-unified .feature-grid {
    grid-template-columns: 1fr;
  }
  body[data-project="onconnect"] #deep-dive .v6-module-card {
    min-height: 0 !important;
    aspect-ratio: auto;
  }
}
