/* "Where it runs" (technical.html): the customer's environment, drawn by tools/estate_diagram.py. Everything is
   coloured from the site's tokens, so both themes follow: data in the source colour, the apps in the worker colour,
   the readers in the result colour, the infrastructure neutral. */
.estate { margin: 34px 0 0; }
.estate-svg { display: block; width: 100%; height: auto; overflow: visible; }
.estate-svg.tall { display: none; max-width: 520px; margin: 0 auto; }
@media (max-width: 760px) {
  .estate-svg.wide { display: none; }
  .estate-svg.tall { display: block; }
}

.estate-svg .boundary {
  fill: color-mix(in srgb, var(--ink) 2%, transparent);
  stroke: var(--line-strong);
  stroke-width: 1.5;
  stroke-dasharray: 7 6;
}
.estate-svg .box { fill: var(--panel-solid); stroke: var(--line-strong); stroke-width: 1.2; }
.estate-svg .box.source { stroke: color-mix(in srgb, var(--source) 70%, transparent); }
.estate-svg .box.engine { stroke: color-mix(in srgb, var(--worker) 55%, transparent); stroke-dasharray: 5 4; }
.estate-svg .box.app {
  fill: color-mix(in srgb, var(--worker) 9%, var(--bg));
  stroke: color-mix(in srgb, var(--worker) 75%, transparent);
  stroke-width: 1.4;
}
.estate-svg .box.reader { stroke: color-mix(in srgb, var(--result) 65%, transparent); }
.estate-svg .box.kafka { fill: color-mix(in srgb, var(--ink) 6%, var(--bg)); }
.estate-svg .box.idp { fill: color-mix(in srgb, var(--accent) 7%, var(--bg)); stroke: color-mix(in srgb, var(--accent) 45%, transparent); }

.estate-svg text { fill: var(--ink); font-family: var(--sans); }
.estate-svg .bt { font-size: 15px; font-weight: 600; }
.estate-svg .bt.big { font-size: 17px; }
.estate-svg .bs { font-size: 12.5px; fill: var(--muted); }
.estate-svg .lab { font: 600 13.5px var(--sans); fill: var(--muted); }
.estate-svg .boundary-lab { fill: var(--ink-2); }
.estate-svg .note { font-size: 13px; fill: var(--muted); }
.estate-svg .note.strong { fill: var(--ink-2); font-weight: 500; }

.estate-svg .link { fill: none; stroke-width: 1.4; stroke-linecap: round; }
.estate-svg .link.source { stroke: color-mix(in srgb, var(--source) 60%, transparent); }
.estate-svg .link.worker { stroke: color-mix(in srgb, var(--worker) 60%, transparent); }
.estate-svg .link.result { stroke: color-mix(in srgb, var(--result) 55%, transparent); }
.estate-svg .link.kafka { stroke: var(--line-strong); stroke-width: 2; }
.estate-svg .link.idp { stroke: color-mix(in srgb, var(--accent) 60%, transparent); }
.estate-svg .dashed { stroke-dasharray: 4 5; }

.estate-svg .flow.source { fill: var(--source); }
.estate-svg .flow.worker { fill: var(--worker); }
.estate-svg .flow.result { fill: var(--result); }

/* each calculation in an app glows now and then: work happening, not a measurement */
.estate-svg .calc { fill: var(--worker); opacity: 0.45; animation: estate-calc 4s ease-in-out infinite; }
@keyframes estate-calc {
  0%, 70%, 100% { opacity: 0.45; }
  80% { opacity: 1; }
}

.estate-svg .nope { fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; }

@media (prefers-reduced-motion: reduce) {
  .estate-svg .flows { display: none; }
  .estate-svg .calc { animation: none; opacity: 0.8; }
}
