/* Silos before / after (includes/visuals/silos.php): two panels, four applications on a 3 × 3 map in each. */
.si { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.si-side { min-width: 0; }
.si-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 22px; }
.si-tag { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.si-tag--before { background: var(--white); color: var(--ink-2); border: 1px solid var(--line); }
.si-tag--after { background: var(--green); color: var(--forest); }
.si-sub { font-family: var(--font-serif); font-size: 18px; font-weight: 600; line-height: 1.25; color: var(--forest); }
.si-side--after .si-sub { color: var(--white); }
.si-switch { justify-self: center; width: 46px; height: 46px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--line); display: grid; place-items: center; transform: rotate(90deg); }
.si-switch svg { width: 22px; height: 22px; fill: none; stroke: var(--forest); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 860px) {
  .si { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
  .si-switch { position: absolute; left: 50%; top: 50%; margin: -23px 0 0 -23px; transform: none; z-index: 2; }
}

/* the map: cards in the corners, links in the cells between them */
.si-map { display: grid; grid-template-columns: minmax(0, 1fr) minmax(96px, .8fr) minmax(0, 1fr); grid-template-rows: auto 86px auto; }
.si-app { min-width: 0; position: relative; z-index: 1; display: flex; flex-direction: column; gap: 3px; padding: 13px 14px 14px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); }
.si-app-n { font-size: 15px; font-weight: 700; line-height: 1.2; color: var(--forest); }
.si-app-r { font-size: 12.5px; line-height: 1.35; color: var(--ink-2); }
.si-side--after .si-app { background: rgba(255, 255, 255, .06); border-color: rgba(150, 248, 120, .4); }
.si-side--after .si-app-n { color: var(--white); }
.si-side--after .si-app-r { color: var(--sage); }
.si-ref { margin-top: 7px; align-self: flex-start; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--green); font-size: 11.5px; font-weight: 700; line-height: 1.3; color: var(--green); letter-spacing: .02em; }
.si-ref-l { font-weight: 600; color: var(--sage); }
.si-cell { position: relative; min-width: 0; min-height: 44px; }
.si-fl { position: absolute; inset: 0; }
.si-ln { position: absolute; }
.si-cell--top .si-ln, .si-cell--bottom .si-ln { left: 0; right: 0; top: 50%; height: 0; margin-top: -1px; border-top: 2px solid var(--green); }
.si-cell--left .si-ln, .si-cell--right .si-ln { top: 0; bottom: 0; left: 50%; width: 0; margin-left: -1px; border-left: 2px solid var(--green); }
.si-fl--dash .si-ln { border-color: #7d8a80; border-style: dashed; }
.si-cell--two .si-fl--1 .si-ln { left: 38%; }
.si-cell--two .si-fl--2 .si-ln { left: 62%; }
/* arrowheads of the controlled flows */
.si-fl--fwd .si-ln::after, .si-fl--back .si-ln::after { content: ""; position: absolute; width: 9px; height: 9px; border-top: 2px solid var(--green); border-right: 2px solid var(--green); }
.si-cell--top .si-fl--fwd .si-ln::after, .si-cell--bottom .si-fl--fwd .si-ln::after { right: 0; top: -1px; transform: translateY(-50%) rotate(45deg); }
.si-cell--top .si-fl--back .si-ln::after, .si-cell--bottom .si-fl--back .si-ln::after { left: 0; top: -1px; transform: translateY(-50%) rotate(-135deg); }
.si-cell--left .si-fl--fwd .si-ln::after, .si-cell--right .si-fl--fwd .si-ln::after { bottom: 0; left: -1px; transform: translateX(-50%) rotate(135deg); }
.si-cell--left .si-fl--back .si-ln::after, .si-cell--right .si-fl--back .si-ln::after { top: 0; left: -1px; transform: translateX(-50%) rotate(-45deg); }
/* the packet travelling along a flow: a wrapper as large as the cell slides by its own size */
.si-pk { position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.si-pk::before { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(150, 248, 120, .3); }
.si-cell--top .si-pk::before, .si-cell--bottom .si-pk::before { top: 50%; left: 0; margin: -4px 0 0 -4px; }
.si-cell--left .si-pk::before, .si-cell--right .si-pk::before { left: 50%; top: 0; margin: -4px 0 0 -4px; }
.si-cell--two .si-fl--1 .si-pk::before { left: 38%; }
.si-cell--two .si-fl--2 .si-pk::before { left: 62%; }
/* markers on the links */
.si-pill { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; display: inline-flex; align-items: center; gap: 5px; max-width: calc(100% + 24px); padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.25; white-space: nowrap; }
.si-pill--manual { background: var(--paper); border: 1.5px dashed #7d8a80; color: var(--ink-2); }
.section--paper .si-pill--manual { background: var(--white); }
.si-pill--q { font-weight: 700; color: var(--forest); border-style: solid; border-color: var(--forest); }
.si-pill--ok { background: var(--mint); color: var(--forest); }
.si-cell--two .si-pill--1 { top: 27%; }
.si-cell--two .si-pill--2 { top: 73%; }
.si-ck { width: 13px; height: 13px; flex: none; fill: none; stroke: var(--green-text); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.si-cross { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.si-cross line { stroke: #7d8a80; stroke-width: 2; stroke-dasharray: 6 6; }

/* under the maps */
.si-ex { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.si-side--after .si-ex { border-top-color: rgba(255, 255, 255, .18); }
.si-ex-t { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.si-side--after .si-ex-t { color: var(--green); }
.si-dup { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; }
.si-rec { min-width: 0; padding: 10px 12px 12px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); }
.si-rec-s { display: block; margin-bottom: 5px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green-text); }
.si-rec-f { list-style: none; margin: 0; padding: 0; font-size: 13px; line-height: 1.45; color: var(--ink); }
.si-rec-f li { overflow-wrap: anywhere; }
.si-rec--2 .si-rec-f li { text-decoration: underline wavy #7d8a80; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.si-neq { font-size: 22px; font-weight: 600; color: var(--ink-2); }
.si-note { margin: 12px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); font-style: italic; }
.si-ex--after { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 560px) { .si-ex--after { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; } }
.si-log-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.si-log-l { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; line-height: 1.4; color: var(--white); }
.si-st { flex: none; width: 17px; height: 17px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; }
.si-log-l--ok .si-st { background: var(--green); }
.si-log-l--ok .si-st .si-ck { width: 11px; height: 11px; stroke: var(--forest); }
.si-log-l--wait .si-st { border: 2px solid var(--sage); }
.si-log-l--wait .si-st::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--sage); }
.si-rule { padding: 2px 0 0 14px; border-left: 3px solid var(--green); }
.si-rule-t { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--white); }

/* animation: before, the cards settle and the dashed links appear with their markers while the crossing
   lines keep sliding; after, the arrows draw, the checks pop, packets travel, the log fills in */
.js .vz-figure .si-app { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js .vz-figure .si-side--after .si-app { transition-delay: .5s; }
.js .vz-figure .si-fl--dash, .js .vz-figure .si-cross { opacity: 0; transition: opacity .6s ease .5s; }
.js .vz-figure .si-pill--manual { opacity: 0; transform: translate(-50%, -50%) rotate(-5deg) scale(.8); transition: opacity .4s ease, transform .5s cubic-bezier(.2, .7, .2, 1); }
.js .vz-figure .si-cell--top .si-pill--manual { transition-delay: .7s; }
.js .vz-figure .si-cell--right .si-pill--manual { transition-delay: .85s; }
.js .vz-figure .si-cell--bottom .si-pill--manual { transition-delay: 1s; }
.js .vz-figure .si-cell--left .si-pill--manual { transition-delay: 1.15s; }
.js .vz-figure .si-pill--q { transition-delay: 1.4s; }
.js .vz-figure .si-cell--top .si-fl--fwd .si-ln, .js .vz-figure .si-cell--top .si-fl--back .si-ln, .js .vz-figure .si-cell--bottom .si-fl--fwd .si-ln, .js .vz-figure .si-cell--bottom .si-fl--back .si-ln { transform: scaleX(0); transition: transform .7s cubic-bezier(.2, .7, .2, 1) 1s; }
.js .vz-figure .si-cell--left .si-fl--fwd .si-ln, .js .vz-figure .si-cell--left .si-fl--back .si-ln, .js .vz-figure .si-cell--right .si-fl--fwd .si-ln, .js .vz-figure .si-cell--right .si-fl--back .si-ln { transform: scaleY(0); transition: transform .7s cubic-bezier(.2, .7, .2, 1) 1.2s; }
.js .vz-figure .si-fl--fwd .si-ln { transform-origin: 0 0; }
.js .vz-figure .si-fl--back .si-ln { transform-origin: 100% 100%; }
.js .vz-figure .si-fl--fwd .si-ln::after, .js .vz-figure .si-fl--back .si-ln::after { opacity: 0; transition: opacity .3s ease 1.7s; }
.js .vz-figure .si-pill--ok { opacity: 0; transform: translate(-50%, -50%) scale(.7); transition: opacity .4s ease 1.8s, transform .5s cubic-bezier(.2, .7, .2, 1) 1.8s; }
.js .vz-figure .si-ref { opacity: 0; transition: opacity .5s ease 1.6s; }
.js .vz-figure .si-log-l, .js .vz-figure .si-rule { opacity: 0; transition: opacity .5s ease; }
.js .vz-figure .si-side--before .si-ex { opacity: 0; transition: opacity .6s ease 1.2s; }
.js .vz-figure .si-log-l--1 { transition-delay: 2s; }
.js .vz-figure .si-log-l--2 { transition-delay: 2.25s; }
.js .vz-figure .si-log-l--3 { transition-delay: 2.5s; }
.js .vz-figure .si-rule { transition-delay: 2.7s; }
.js .vz-figure.is-visible .si-app, .js .vz-figure.is-visible .si-fl--dash, .js .vz-figure.is-visible .si-cross, .js .vz-figure.is-visible .si-ref, .js .vz-figure.is-visible .si-log-l, .js .vz-figure.is-visible .si-rule, .js .vz-figure.is-visible .si-side--before .si-ex, .js .vz-figure.is-visible .si-fl--fwd .si-ln::after, .js .vz-figure.is-visible .si-fl--back .si-ln::after { opacity: 1; }
.js .vz-figure.is-visible .si-app { transform: none; }
.js .vz-figure.is-visible .si-pill--manual, .js .vz-figure.is-visible .si-pill--ok { opacity: 1; transform: translate(-50%, -50%); }
.js .vz-figure.is-visible .si-fl--fwd .si-ln, .js .vz-figure.is-visible .si-fl--back .si-ln { transform: none; }
.vz-figure.is-visible .si-cross-a, html:not(.js) .si-cross-a { animation: si-slide 2.2s linear infinite; }
.vz-figure.is-visible .si-cross-b, html:not(.js) .si-cross-b { animation: si-slide 2.2s linear infinite reverse; }
.vz-figure.is-visible .si-fl--fwd .si-pk, html:not(.js) .si-fl--fwd .si-pk { animation: si-run 3s cubic-bezier(.4, 0, .6, 1) 2.2s infinite; }
.vz-figure.is-visible .si-fl--back .si-pk, html:not(.js) .si-fl--back .si-pk { animation: si-run 3s cubic-bezier(.4, 0, .6, 1) 2.2s infinite reverse; }
.vz-figure.is-visible .si-cell--left .si-pk, .vz-figure.is-visible .si-cell--right .si-pk, html:not(.js) .si-cell--left .si-pk, html:not(.js) .si-cell--right .si-pk { animation-name: si-runv; }
.vz-figure.is-visible .si-cell--right .si-pk, html:not(.js) .si-cell--right .si-pk { animation-delay: 2.9s; }
.vz-figure.is-visible .si-cell--bottom .si-pk, html:not(.js) .si-cell--bottom .si-pk { animation-delay: 3.6s; }
.vz-figure.is-visible .si-cell--left .si-pk, html:not(.js) .si-cell--left .si-pk { animation-delay: 4.3s; }
.vz-figure.is-visible .si-cell--two .si-fl--2 .si-pk, html:not(.js) .si-cell--two .si-fl--2 .si-pk { animation-delay: 4.6s; }
@keyframes si-slide { to { stroke-dashoffset: -24; } }
@keyframes si-run { 0% { transform: translateX(0); opacity: 0; } 12% { opacity: 1; } 50% { transform: translateX(100%); opacity: 1; } 58% { transform: translateX(100%); opacity: 0; } 100% { transform: translateX(100%); opacity: 0; } }
@keyframes si-runv { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: 1; } 50% { transform: translateY(100%); opacity: 1; } 58% { transform: translateY(100%); opacity: 0; } 100% { transform: translateY(100%); opacity: 0; } }

@media (max-width: 480px) {
  .si-map { grid-template-columns: minmax(0, 1fr) minmax(84px, .75fr) minmax(0, 1fr); grid-template-rows: auto 84px auto; }
  .si-app { padding: 11px 10px 12px; }
  .si-app-n { font-size: 13px; }
  .si-app-r { font-size: 12px; }
  .si-pill { font-size: 11.5px; padding: 3px 8px; white-space: normal; text-align: center; max-width: calc(100% + 4px); }
  .si-sub { font-size: 17px; }
}
