/* Autonomyware Solutions: Systems Engineering only. Loaded after solutions.css on /solutions/systems-engineering.
   Shared tokens, frames and blocks live in solutions.css; this file holds what is this page's alone.
   Character: a traceability chart. Hairlines, mono IDs and level rules in the page tint (--sol-tint, slate indigo);
   every surface is the site's own (--raised, --raised-2, --line, --ink), so the page follows light and dark. */

/* ---- Hero motif: sparse trace fragments (a node, a link, a node), hairline and hollow, in the page tint. ---- */
.sol-theme-systems-engineering {
  --sol-motif:
    radial-gradient(38% 48% at 82% 30%, var(--sol-tint-wash), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='%237175B0' stroke-width='1'%3E%3Cpath stroke-opacity='.2' d='M40.5 48H96V120H151.5M64.5 196H118'/%3E%3Cg stroke-opacity='.34'%3E%3Crect x='31.5' y='43.5' width='9' height='9'/%3E%3Crect x='151.5' y='115.5' width='9' height='9'/%3E%3Crect x='55.5' y='191.5' width='9' height='9'/%3E%3Ccircle cx='122' cy='196' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") 12px 8px / 280px 280px;
}

/* ---- One thread through the V, drawn as a traceability chart ---- */
.sol-v {
  --sol-v-paper: color-mix(in srgb, var(--sol-tint) 7%, transparent);
  position: relative; padding: clamp(16px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink);
  background:
    linear-gradient(var(--sol-v-paper) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--sol-v-paper) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--raised);
}
/* the site's drafting corner marks, in the page tint */
.sol-v::before, .sol-v::after { content: ""; position: absolute; width: 20px; height: 20px; pointer-events: none; }
.sol-v::before { left: -1px; top: -1px; border-left: 2px solid var(--sol-tint); border-top: 2px solid var(--sol-tint); border-radius: var(--radius-lg) 0 0 0; }
.sol-v::after { right: -1px; bottom: -1px; border-right: 2px solid var(--sol-tint); border-bottom: 2px solid var(--sol-tint); border-radius: 0 0 var(--radius-lg) 0; }

.sol-v-prompt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding-bottom: 18px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.sol-v-prompt span, .sol-v-side-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--sol-tint-ink); }
.sol-v-prompt q { font-size: clamp(17px, 1.8vw, 21px); font-weight: 700; line-height: 1.3; color: var(--ink); }
.sol-v-side-label { display: block; }
.sol-v-side--down .sol-v-side-label::after { content: " \2193" / ""; }
.sol-v-side--up .sol-v-side-label::before { content: "\2191  " / ""; }
.sol-v-list { list-style: none; margin: 0; padding: 0; }

/* one entry of the ledger */
.sol-v-card { position: relative; display: grid; gap: 4px; padding: 12px 14px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--raised-2); }
.sol-v-card--down { box-shadow: inset 2px 0 0 var(--sol-tint); }
.sol-v-card--up { box-shadow: inset -2px 0 0 var(--sol-tint); }
.sol-v-card--bottom { border-color: var(--sol-tint); background: color-mix(in srgb, var(--sol-tint) 9%, var(--raised-2)); }
.sol-v-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-soft); }
.sol-v-meta i { font-style: normal; font-family: var(--font-mono); font-size: 10.5px; line-height: 1.5; padding: 0 6px; border: 1px solid var(--sol-tint-line); border-radius: var(--radius-sm); background: var(--sol-tint-wash); color: var(--sol-tint-ink); }
.sol-v-card code { font-family: var(--font-mono); font-size: 11px; letter-spacing: .02em; color: var(--sol-tint-ink); overflow-wrap: anywhere; }
.sol-v-card b { font-size: 14.5px; line-height: 1.4; font-weight: 650; color: var(--ink); }
.sol-v-note { font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.sol-v-of { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-soft); }

/* Wide: columns are the level rail, the definition side, the V and the verification side. Rows come from the
   generator: row 1 holds the side labels, then one row per definition entry, the component in the last (--rows). */
@media (min-width: 861px) {
  .sol-v-grid { display: grid; grid-template-columns: 30px minmax(0, 1fr) clamp(80px, 10vw, 140px) minmax(0, 1fr); column-gap: 14px; }
  .sol-v-band { grid-column: 1 / -1; grid-row: var(--from) / var(--to); margin-top: -1px; border-block: 1px dashed color-mix(in srgb, var(--sol-tint) 45%, transparent);
    background: linear-gradient(90deg, transparent 29px, var(--sol-tint-line) 29px 30px, transparent 30px); }
  .sol-v-band--alt { background: linear-gradient(90deg, transparent 29px, var(--sol-tint-line) 29px 30px, transparent 30px), color-mix(in srgb, var(--sol-tint) 5%, transparent); }
  .sol-v-band span { display: block; width: 30px; padding: 12px 0; writing-mode: vertical-rl; transform: rotate(180deg); text-align: right;
    font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; color: var(--sol-tint-ink); }
  .sol-v-side { position: relative; z-index: 1; grid-row: 1 / var(--rows); display: grid; grid-template-rows: subgrid; }
  .sol-v-side--down { grid-column: 2; }
  .sol-v-side--up { grid-column: 4; }
  .sol-v-side--up .sol-v-side-label { text-align: right; }
  .sol-v-side-label { grid-row: 1; align-self: end; padding-bottom: 12px; }
  .sol-v-side .sol-v-list { grid-row: 2 / -1; display: grid; grid-template-rows: subgrid; }
  .sol-v-side .sol-v-card { grid-row: var(--r); margin-block: 8px; }
  /* the V itself: each row steps in toward it */
  .sol-v-side--down .sol-v-card { margin-left: calc((var(--r) - 1) * 3%); }
  .sol-v-side--up .sol-v-card { align-self: start; margin-right: calc((var(--r) - 1) * 3%); }
  .sol-v-shape { position: relative; z-index: 1; grid-column: 3; grid-row: 2 / var(--rows); width: 100%; height: 100%; overflow: visible; }
  .sol-v-bottom { position: relative; z-index: 1; grid-column: 2 / 5; grid-row: var(--rows); display: grid; justify-items: center; padding-block: 8px 2px; }
  .sol-v-bottom .sol-v-list { width: min(460px, 100%); }
  /* the V meets the component in a node */
  .sol-v-bottom::before { content: ""; position: absolute; left: 50%; top: 0; width: 9px; height: 9px; box-sizing: border-box; transform: translate(-50%, -50%) rotate(45deg); border: 1px solid var(--sol-tint); background: var(--raised); }
}
.sol-v-shape path { fill: none; stroke: var(--sol-tint); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }

/* Phone and tablet: one dashed thread runs down the definition side, through the component and up the
   verification side (component test first), each entry a node on it. */
@media (max-width: 860px) {
  .sol-v-grid { position: relative; display: grid; gap: 22px; }
  .sol-v-grid::before { content: ""; position: absolute; left: 5px; top: 30px; bottom: 30px; border-left: 1px dashed var(--sol-tint); }
  .sol-v-band, .sol-v-shape { display: none; }
  .sol-v-side, .sol-v-bottom { padding-left: 24px; }
  .sol-v-side-label { margin-bottom: 10px; }
  .sol-v-list { display: grid; gap: 10px; }
  .sol-v-card::before { content: ""; position: absolute; left: -24px; top: 15px; width: 11px; height: 11px; box-sizing: border-box; border: 1px solid var(--sol-tint); background: var(--raised); }
  .sol-v-card--bottom::before { background: var(--sol-tint); }
  .sol-v-card--up { box-shadow: inset 2px 0 0 var(--sol-tint); }
}

/* ---- Ledger cards inside the level tabs: mock app panels on the theme's panel surface ---- */
.sol-ledger { display: grid; gap: 12px; font-size: 13.5px; color: var(--sol-panel-ink); }
.sol-ledger-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.sol-ledger-head b { font-size: 14px; font-weight: 650; color: var(--sol-panel-ink); }
.sol-ledger-head span { font-size: 12.5px; color: var(--sol-panel-soft); }
.sol-ledger ol, .sol-ledger ul { list-style: none; margin: 0; padding: 0; display: grid; }
.sol-ledger li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--sol-panel-line); }
.sol-ledger--gate li { grid-template-columns: 10px auto minmax(0, 1fr); }
.sol-ledger code { font-family: var(--font-mono); font-size: 11px; letter-spacing: .02em; color: var(--sol-tint-ink); white-space: nowrap; }
.sol-ledger li span { line-height: 1.45; color: var(--sol-panel-ink); }
.sol-ledger-foot { display: flex; flex-wrap: wrap; gap: 6px; }
.sol-ledger-foot span { font-family: var(--font-mono); font-size: 11px; padding: 3px 8px; border: 1px solid var(--sol-tint-line); border-radius: var(--radius-sm); background: var(--sol-tint-wash); color: var(--sol-tint-ink); }
.sol-arch { display: grid; }
.sol-arch-node { display: grid; gap: 2px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--raised); box-shadow: inset 2px 0 0 var(--sol-tint); }
.sol-arch-node b { font-size: 14px; font-weight: 650; color: var(--sol-panel-ink); }
.sol-arch-link { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-left: 16px; padding: 7px 0 7px 18px; border-left: 1px dashed var(--sol-tint); font-size: 12.5px; color: var(--sol-panel-soft); }
.sol-ledger-req { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--sol-tint-line); border-radius: var(--radius-sm); background: var(--sol-tint-wash); }
.sol-ledger-req span { color: var(--sol-panel-ink); }
@media (max-width: 560px) {
  .sol-ledger li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .sol-ledger--gate li { grid-template-columns: 10px minmax(0, 1fr); column-gap: 10px; }
  .sol-ledger--gate li span { grid-column: 2; }
  .sol-v-prompt span, .sol-v-side-label, .sol-v-meta i, .sol-v-of { font-size: 11px; }
}
