/* Rules specific to the AI Document Format guide (`ai-document-format`).
   Loaded by LandingRoot after `guide.css` on `/guides/how-to-transform-documents-for-ai/` only. */

/* Creative multi-stop editorial hero gradient + crisp subtle architectural grid (no flat grey blob) */
.og .og-hero {
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: center;
  gap: 36px;
  padding: 44px 44px 44px 48px;
  background:
    radial-gradient(62% 88% at 92% 14%, rgba(72, 163, 247, .17) 0%, rgba(72, 163, 247, 0) 70%),
    radial-gradient(52% 76% at 6% 96%, rgba(238, 139, 58, .15) 0%, rgba(238, 139, 58, 0) 68%),
    linear-gradient(135deg, #FFFFFF 0%, #F5F8FC 54%, #EEF5FD 100%);
  border: 1px solid #E3EBF3;
}
.og .og-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(24, 44, 53, .032) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(24, 44, 53, .032) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(135deg, transparent 15%, #000 75%);
  pointer-events: none;
}
.og .og-hero::after {
  display: none;
}
.og .og-hero-txt {
  padding-bottom: 0;
}
.og .og-hero-art {
  width: 100%;
  align-self: center;
}
.og .og-hero-art img {
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 24px 48px -20px rgba(24, 44, 53, .22), 0 0 0 1px rgba(24, 44, 53, .06);
}
.og .og-hero-art .og-badge {
  left: 16px;
  bottom: 16px;
  box-shadow: 0 12px 28px -10px rgba(24, 44, 53, .32), 0 0 0 1px rgba(24, 44, 53, .06);
}
@media (max-width: 960px) {
  .og .og-hero {
    grid-template-columns: 1fr;
    padding: 28px 22px;
    gap: 24px;
  }
  .og .og-hero-art img {
    max-height: 360px;
  }
}

/* Top-aligned card copy with clean line wrapping while keeping the AI Ontology `.og-art` white canvas */
.og .og-pt {
  align-items: start;
}
.og .og-txt {
  padding-top: 4px;
}
.og .og-h3 {
  text-wrap: pretty;
}

/* Drawing drop shadow (shared with `ai-ontology.css` for robot/avatar illustrations) */
.og .pa-shadow {
  filter: drop-shadow(0 8px 10px rgba(24, 44, 53, .14));
}

/* Generous room in the expanded 2-level architecture diagram */
.og .gg-sys-map {
  grid-template-columns: minmax(0, 174px) 22px minmax(0, 1fr) 22px minmax(0, 174px);
}
.og .gg-sys-parts li {
  white-space: normal;
  text-align: center;
}
@media (max-width: 1240px) {
  .og .gg-sys-map {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Prevent wide breakout diagram from triggering horizontal scroll */
div.gg.og {
  overflow-x: clip;
}

/* Section 8 Cortex stack: wide diagram outside the dark capability box for clear readability */
.og .og-box.og-cortex {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  padding: 0;
}
.og .og-cortex .og-art-dark {
  display: block;
  place-items: normal;
  width: min(1340px, calc(100vw - 48px));
  max-width: none;
  margin: 8px 0 28px calc(50% - min(670px, calc(50vw - 24px)));
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0;
}
.og .og-cortex .og-cortex-svg {
  width: 100%;
  max-width: none;
  max-height: none;
  height: auto;
  display: block;
}
.og .og-cortex .cx-node.is-on .cx-card {
  fill: #E6F2FE;
  stroke: #48A3F7;
  stroke-width: 2;
}
.og .og-cortex .cx-node.is-on .cx-card-core {
  fill: url(#df-cx-core);
  stroke: #182C35;
  stroke-width: 2;
}
.og .og-cortex .cx-node:focus-visible .cx-card {
  stroke: #1C6FC4;
  stroke-width: 2;
}
.og .og-cortex .og-box-list {
  background: var(--lp-ink);
  border-radius: var(--lp-radius);
  padding: 24px 28px 26px;
}
@media (max-width: 760px) {
  .og .og-cortex .og-art-dark {
    width: auto;
    margin: 0 -16px 20px;
    padding: 0 16px !important;
    overflow-x: auto;
  }
  .og .og-cortex .og-cortex-svg {
    min-width: 780px;
  }
  .og .og-cortex .og-box-list {
    padding: 20px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .og-cortex .cx-pulses {
    display: none;
  }
}
