/* ---------------------------------------------------------------
   ARO case study: patterns this page needs that the others don't.
   --------------------------------------------------------------- */

/* --- Architecture diagram ---------------------------------------- */
/* A flow diagram rather than a picture: shape carries meaning, the
   branches are the three rules, and every label is real text. Drawn as
   inline SVG so the connectors and arrowheads are exact; it scrolls
   sideways on narrow screens rather than shrinking the type to nothing. */
.flow-wrap {
  overflow-x: auto;
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
}
.flow {
  display: block;
  width: 100%;
  height: auto;
}

/* Type inside the diagram, sized in the SVG's own user units. */
.flow text { font-family: var(--font-sans); fill: var(--ink); }
.flow .t-node   { font-size: 15px; font-weight: 500; }
.flow .t-kind   { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.flow .t-sub    { font-size: 13px; fill: var(--ink-muted); }
.flow .t-edge   { font-size: 13px; font-weight: 600; }
.flow .t-decide { font-size: 13px; font-weight: 500; }

/* Shape semantics, borrowed from the role-pill palette so the diagram
   sits in the same world as the rest of the site. */
.flow .n-container { fill: rgba(206, 177, 235, 0.30); stroke: #7a4fa0; }
.flow .n-unit      { fill: rgba(177, 209, 235, 0.32); stroke: #3d7ab5; }
.flow .n-decide    { fill: #fff; stroke: var(--ink); }
.flow .n-outcome   { fill: rgba(206, 177, 235, 0.30); stroke: #7a4fa0; }
.flow .n-container, .flow .n-unit, .flow .n-decide, .flow .n-outcome { stroke-width: 2; }

.flow .edge { fill: none; stroke: var(--ink); stroke-width: 1.75; }
.flow .edge-label { fill: var(--ink); }
.flow .chip { fill: #fff; stroke: var(--ink); stroke-width: 1.5; }

/* Miniature offer cards inside each outcome. */
.flow .mini      { fill: rgba(177, 209, 235, 0.32); stroke: #3d7ab5; stroke-width: 1.5; }
.flow .mini-none { fill: none; stroke: #3d7ab5; stroke-width: 1.5; stroke-dasharray: 4 4; }

/* Narrow screens get a second drawing of the same nodes, in one column and
   at a larger type size, instead of the wide one shrunk or scrolled. The
   wide drawing is used from 900px, where the column is its full width. */
.flow--phone { display: none; }
.flow--phone .t-node   { font-size: 17px; }
.flow--phone .t-kind   { font-size: 13px; }
.flow--phone .t-sub    { font-size: 14px; }
.flow--phone .t-edge   { font-size: 13px; }
.flow--phone .t-decide { font-size: 14px; }
@media (max-width: 899px) {
  .flow--wide { display: none; }
  .flow--phone { display: block; max-width: 400px; margin-inline: auto; }
  .flow-wrap { padding: var(--space-md) var(--space-xs); }
}

.flow__caption {
  margin-top: var(--space-sm);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted);
}

/* --- Numbered rules ---------------------------------------------- */
.rules { margin-top: var(--space-xl); }
.rule {
  padding: var(--space-md) 0;
  border-top: 1px solid var(--rule);
}
.rule:last-child { border-bottom: 1px solid var(--rule); }
.rule h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
}
.rule p {
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.7;
}

/* --- Specification list ------------------------------------------- */
.spec {
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  gap: var(--space-sm) var(--space-xl);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 2px solid var(--ink);
  font-size: 16px;
  line-height: 1.65;
}
.spec dt {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 3px;
}
.spec dd { margin: 0; }
.spec dd + dt { border-top: 1px solid var(--rule); padding-top: var(--space-sm); }
.spec dt + dd { }
.spec dd:not(:last-child) { padding-bottom: var(--space-sm); border-bottom: 1px solid var(--rule); }
@media (max-width: 560px) {
  .spec { grid-template-columns: 1fr; gap: 2px; }
  .spec dd:not(:last-child) { border-bottom: 0; padding-bottom: var(--space-md); }
  .spec dd + dt { border-top: 0; }
}

/* Placeholder for an animation slot that has no asset yet. */
.ph--motion {
  aspect-ratio: 16 / 9;
  font-style: italic;
}

/* Offer card spacing illustration: a framed page that draws its own box. */
.embed-spacing {
  display: block;
  width: 100%;
  border: 0;
  margin-block: var(--space-xl);
}

/* Explorations, desktop: the image sits at the top of its row, level with the
   first line of text, instead of floating in the middle of it. */
@media (min-width: 761px) {
  .exploration__frame { align-items: flex-start; }
  .exploration > .exploration__n { margin-top: 0; margin-bottom: 8px; line-height: 1.2; }
}
