/* Shared look of the module pages (site/modules/<module>.html): the lanes diagram — one column per side (the app
   on the Mac, the user's own model, the Argoforge server, a third-party service), hops between steps naming exactly
   what crosses — plus the facts example, the templates the model fills (.tpl) and the note band. Columns: --lanes
   on .lanes (legion.html uses the fixed l-mac / l-model / l-srv and f12 / f13 / f23 classes;
   generated pages place cards and hops with inline grid-column). One column on a phone. */
.lanes { --lanes: 3; max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(var(--lanes), minmax(0, 1fr)); column-gap: 18px; row-gap: 10px; }
.lane-head { text-align: center; font: 700 11.5px var(--sans); letter-spacing: var(--track-l); text-transform: uppercase; padding: 10px 8px; border-radius: var(--r-chip); border: 1px solid var(--line-strong); background: var(--raise); }
.lane-head small { display: block; margin-top: 4px; font: 400 12.5px var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.lane-head.l-model, .lane-card.l-model { border-color: var(--line-acc); }
.lane-head.l-ext, .lane-card.l-ext { border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.l-mac { grid-column: 1; } .l-model { grid-column: 2; } .l-srv { grid-column: 3; }
.lane-card { background: var(--raise); border: 1px solid var(--line-strong); border-radius: var(--r-card); padding: 16px 18px; min-width: 0;
  -webkit-backdrop-filter: blur(var(--v-panel-blur)); backdrop-filter: blur(var(--v-panel-blur)); }
.lane-card.l-model { background: color-mix(in srgb, var(--acc-soft) 70%, var(--raise)); }
.lane-card.l-ext { background: color-mix(in srgb, var(--warn-soft) 60%, var(--raise)); }
.lane-card .n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; margin-right: 8px; vertical-align: 1px;
  background: linear-gradient(180deg, var(--k-acc), var(--k-acc-deep)); color: #fff; font: 700 13px var(--sans); }
.lane-card h3 { display: inline; font-size: 15.5px; margin: 0; }
.lane-card p { color: var(--ink-3); margin: 8px 0 0; font-size: 14px; }
.lane-card .tag { display: none; }
.hop { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(var(--lanes), minmax(0, 1fr)); column-gap: 18px; }
.hop > span { position: relative; display: flex; justify-content: center; padding: 6px 0; }
.hop > span::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed var(--line-acc); }
.hop b { position: relative; font: 500 13px/1.35 var(--sans); color: var(--ink-2); background: var(--bg); border: 1px solid var(--line-acc); border-radius: var(--r-pill); padding: 4px 12px; text-align: center; max-width: 92%; }
.hop .local b { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.hop .f12 { grid-column: 1 / 3; } .hop .f13 { grid-column: 1 / 4; } .hop .f23 { grid-column: 2 / 4; }
.facts-ex { max-width: 720px; margin: 22px auto 0; }
.facts-ex pre { margin: 8px 0 0; background: var(--code-bg); border: 1px solid var(--line-acc); border-radius: var(--r-chip); padding: 14px 16px; font: 13px/1.55 var(--mono); color: var(--ink-2); overflow-x: auto; }
.facts-ex p { color: var(--ink-3); font-size: 14px; margin: 0; text-align: center; }
.tpl-list { max-width: 860px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.tpl { background: var(--raise); border: 1px solid var(--line-strong); border-radius: var(--r-card); padding: 18px 20px; min-width: 0; }
.tpl h3 { font-size: 16px; margin: 0; }
.tpl p { color: var(--ink-3); font-size: 14px; margin: 6px 0 0; }
.tpl pre { margin: 14px 0 0; background: var(--code-bg); border: 1px solid var(--line-acc); border-radius: var(--r-chip); padding: 14px 16px;
  font: 12.5px/1.6 var(--mono); color: var(--ink-2); white-space: pre; overflow-x: auto; tab-size: 2; }
.tpl pre b { color: var(--ink); font-weight: 700; }
.tpl pre b.tpl-mod { color: var(--acc); }
.note-band { max-width: 760px; margin: 28px auto 0; padding: 16px 20px; border: 1px solid var(--line-strong); border-left: 3px solid var(--warn); border-radius: var(--r-chip); background: var(--raise); }
.note-band h3 { font-size: 15.5px; margin: 0 0 6px; }
.note-band p { color: var(--ink-3); font-size: 14.5px; margin: 0; }
.note-band p + p { margin-top: 8px; }
.mod-grid .card { display: flex; flex-direction: column; }
.mod-grid .card p { flex: 1; }
.mod-grid .card .more { margin-top: 12px; flex: 0; }
@media (max-width: 760px) {
  .lanes { grid-template-columns: minmax(0, 1fr); }
  .lane-head { display: none; }
  .lanes > .lane-card, .hop > span { grid-column: 1 !important; }
  .lane-card .tag { display: block; margin-bottom: 8px; font: 700 10.5px var(--sans); letter-spacing: var(--track-m); text-transform: uppercase; color: var(--acc); }
  .hop { grid-template-columns: minmax(0, 1fr); }
  .hop > span::before { left: 50%; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 1px dashed var(--line-acc); }
}
