/* Autonomyware — Solutions (hub + one page per solution). Built on the shared pages.css design system:
   tokens, nav, footer and buttons come from there; this file only lays out the solution pages. */

.sol-page { --sol-gap: clamp(56px, 8vw, 112px); }
.sol-page main { padding-bottom: var(--sol-gap); }

/* ---------- Hero ---------- */
.sol-hero { padding: clamp(40px, 6vw, 84px) 0 0; }
.sol-hero-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.sol-hero h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; margin-top: 16px; text-wrap: balance; }
.sol-hero .lede { margin-top: 20px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--ink-soft); max-width: 36em; }
.sol-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.sol-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.sol-chips li { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); background: var(--raised); }
.sol-hub-hero { text-align: center; }
.sol-hub-hero .lede { margin-inline: auto; }
.sol-hub-hero .sol-actions { justify-content: center; }

/* ---------- Media frames (silent looping product clips + stills) ---------- */
.sol-media { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--sol-screen); border: 1px solid var(--line); box-shadow: var(--shadow-pop); aspect-ratio: 16 / 9; }
.sol-media video, .sol-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sol-media figcaption { position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(13, 14, 16, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sol-media-toggle { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; border: 0; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(13, 14, 16, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sol-media-toggle:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 2px; }
/* a Pause toggle keeps its label: pressed (paused) it turns teal, with a ring */
.sol-media-toggle[aria-pressed="true"] { background: var(--teal); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.9); }
.sol-pause-ico { flex: none; width: 9px; height: 10px; box-sizing: border-box; border-inline: 3px solid currentColor; }
/* <picture> (AVIF, WebP, the original) adds no box, and its <source>s none either: its <img> lays out as before */
.sol-page picture { display: contents; }
.sol-page picture > source { display: none; }

/* ---------- Sections ---------- */
.sol-sec { padding-top: var(--sol-gap); }
.sol-sec-head { max-width: 760px; margin-bottom: clamp(24px, 3vw, 40px); }
.sol-sec-head h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.06; margin-top: 12px; text-wrap: balance; }
.sol-sec-head p { margin-top: 14px; font-size: 17px; line-height: 1.6; color: var(--ink-soft); }

/* Capability cards */

/* Feature rows: media beside text, alternating */
.sol-rows { display: grid; gap: clamp(40px, 6vw, 80px); }
.sol-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.sol-row:nth-child(even) .sol-media { order: 2; }
.sol-row h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.12; margin-top: 10px; }
.sol-row p { margin-top: 12px; font-size: 16px; line-height: 1.65; color: var(--ink-soft); }
.sol-row ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.sol-row li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.sol-row li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 10px; height: 2px; background: var(--teal-bright); }

/* Steps */

/* 3D examples: the site's own <forge-viewer> */
.sol-model-hint { display: block; margin-top: 10px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; color: var(--muted); }

/* Stills gallery */

/* Use cases */

/* Other solutions + closing band */
.sol-others { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sol-other { display: block; padding: 18px 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--raised); transition: border-color .16s ease, transform .16s ease; }
.sol-other:hover { border-color: var(--teal-bright); transform: translateY(-2px); }
.sol-other b { display: block; font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; }
.sol-other span { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }
.sol-band { margin-top: var(--sol-gap); padding: clamp(32px, 5vw, 56px); border-radius: var(--radius-lg); background: var(--teal-ink); color: #fff; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
:root[data-theme="dark"] .sol-band { background: #0E3946; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sol-band { background: #0E3946; } }
.sol-band h2 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 36px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; max-width: 22ch; }
/* the site's drafting corner marks (as on its key panels): teal top-left, clay bottom-right */
.sol-band { position: relative; }
.sol-band::before, .sol-band::after { content: ""; position: absolute; width: 20px; height: 20px; pointer-events: none; }
.sol-band::before { left: -1px; top: -1px; border-left: 2px solid var(--teal-bright); border-top: 2px solid var(--teal-bright); border-radius: var(--radius-lg) 0 0 0; }
.sol-band::after { right: -1px; bottom: -1px; border-right: 2px solid var(--clay); border-bottom: 2px solid var(--clay); border-radius: 0 0 var(--radius-lg) 0; }
.sol-band p { margin-top: 8px; color: rgba(255, 255, 255, 0.8); max-width: 46ch; }
.sol-band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.sol-band .btn-ghost:hover { background: #fff; color: var(--teal-ink); }

/* ---------- Hub: one card per solution ---------- */
.sol-hub-list { display: grid; gap: 20px; margin-top: clamp(40px, 5vw, 64px); }
.sol-hub-card { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(20px, 3vw, 44px); align-items: center; padding: clamp(18px, 2.4vw, 28px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--raised); transition: border-color .16s ease; }
.sol-hub-card:hover { border-color: var(--teal-bright); }
.sol-hub-card:nth-child(even) .sol-media { order: 2; }
.sol-hub-card .sol-media { box-shadow: none; }
.sol-hub-card h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; margin-top: 10px; }
.sol-hub-card p { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.sol-hub-card .read { display: inline-block; margin-top: 16px; font-weight: 600; color: var(--teal-deep); }
:root[data-theme="dark"] .sol-hub-card .read { color: var(--teal-text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sol-hub-card .read { color: var(--teal-text); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .sol-others { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .sol-hero-grid, .sol-row, .sol-hub-card { grid-template-columns: minmax(0, 1fr); }
  .sol-row:nth-child(even) .sol-media, .sol-hub-card:nth-child(even) .sol-media { order: 0; }
}
@media (max-width: 560px) {
  .sol-others { grid-template-columns: minmax(0, 1fr); }
  .sol-actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .sol-other, .sol-other:hover { transition: none; transform: none; }
}

/* App screenshots (3:2) shown whole on the dark frame */
.sol-media--shot { aspect-ratio: 3 / 2; }
.sol-media--shot img { object-fit: contain; }
.sol-media--rec { aspect-ratio: 1280 / 832; }

/* ================= v2: depth sections ================= */
.sol-sec--band { position: relative; padding-bottom: var(--sol-gap); margin-top: var(--sol-gap); padding-top: var(--sol-gap); background: var(--paper-deep); border-block: 1px solid var(--line-soft); }
.sol-sec--band + .sol-sec--band { margin-top: 0; border-top: 0; }
.sol-sec--tight { padding-top: 24px; }

/* App window chrome around media */
.sol-win { position: relative; border-radius: calc(var(--radius) + 2px); overflow: hidden; background: var(--sol-screen); border: 1px solid var(--line); box-shadow: var(--shadow-pop); }
.sol-win-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: var(--sol-frame-bar); border-bottom: 1px solid var(--line); }
.sol-win-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.sol-win-bar i:first-child { background: var(--clay); }
.sol-win-bar span { margin-left: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sol-win .sol-media { border: 0; border-radius: 0; box-shadow: none; }
.sol-hero-media { position: relative; }
.sol-hero-media::before { content: ""; position: absolute; inset: -14% -10% -18% -10%; z-index: -1; background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--teal-bright) 28%, transparent), transparent 70%); filter: blur(30px); pointer-events: none; }

/* Stats strip */

/* Tabs shared by the prompt demo and the pipeline */
.sol-tab { appearance: none; text-align: left; border: 1px solid var(--line); background: var(--raised); color: var(--ink); cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.sol-tab:hover { border-color: var(--line-strong); }
.sol-tab[aria-selected="true"] { border-color: var(--teal-bright); background: color-mix(in srgb, var(--teal-wash) 70%, var(--raised)); }
.sol-tab:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.sol-panel[hidden] { display: none; }

/* Prompt demo */
.sol-demo { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 32px); align-items: start; }
.sol-demo-tabs { display: grid; gap: 10px; }
.sol-demo-tabs .sol-tab { display: grid; gap: 4px; padding: 14px 16px 15px; border-radius: var(--radius-sm); }
.sol-tab-kicker { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-deep); }
.sol-tab-title { font-size: 15px; font-weight: 650; line-height: 1.35; }
.sol-tab-sub { font-size: 13px; line-height: 1.4; color: var(--ink-soft); }

/* Pipeline */
.sol-pipe-tabs { display: grid; grid-template-columns: repeat(var(--n, 9), minmax(0, 1fr)); gap: 6px; margin-bottom: 18px; counter-reset: none; }
.sol-pipe-tabs .sol-tab { display: grid; gap: 4px; padding: 10px 10px 12px; border-radius: var(--radius-sm); min-height: 64px; align-content: start; }
.sol-pipe-num { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; color: var(--teal-deep); }
.sol-pipe-name { font-size: 13.5px; font-weight: 650; line-height: 1.25; }
.sol-pipe-panel { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.sol-pipe-copy h3 { margin-top: 10px; font-size: clamp(22px, 2.3vw, 30px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.12; }
.sol-pipe-copy > p { margin-top: 12px; font-size: 16px; line-height: 1.65; color: var(--ink-soft); }
.sol-facts { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.sol-facts li { display: grid; gap: 2px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.sol-facts b { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.sol-facts span { font-size: 14.5px; line-height: 1.5; }
.sol-note { margin-top: 12px; font-size: 13px; color: var(--muted); }
.sol-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.sol-thumbs img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; }

/* Media variants */
.sol-media--sheet { aspect-ratio: 1600 / 1131; background: #fff; }
.sol-media--sheet img { object-fit: contain; }
.sol-media--model { aspect-ratio: 16 / 10; background: var(--sol-stage-glow), var(--sol-stage); }
.sol-media--model forge-viewer { display: block; width: 100%; height: 100%; touch-action: pan-y; }
.sol-media--card { aspect-ratio: auto; background: var(--sol-panel); padding: clamp(16px, 2vw, 26px); color: var(--sol-panel-ink); }
.sol-win .sol-media--card { min-height: 100%; }

/* Check / release cards (mock app panels inside a window; theme surfaces) */
.sol-checks-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--sol-panel-line); }
.sol-checks-head b { font-size: 14px; font-weight: 650; color: var(--sol-panel-ink); }
.sol-pill { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; color: color-mix(in srgb, var(--ok) 72%, var(--ink)); background: var(--ok-wash); }
.sol-pill--warn { color: color-mix(in srgb, var(--sol-warn) 85%, var(--ink)); background: var(--sol-warn-wash); }
.sol-checks ul, .sol-release ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; }
.sol-checks li, .sol-release li { display: grid; grid-template-columns: 14px minmax(0, 0.9fr) minmax(0, 1.4fr); align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--sol-panel-line); font-size: 13.5px; }
.sol-checks li b, .sol-release li b { font-weight: 600; color: var(--sol-panel-ink); }
.sol-checks li i, .sol-release li i { font-style: normal; color: var(--sol-panel-soft); }
.sol-checks .ok, .sol-release .ok, .sol-checks .warn { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); transform: translateY(-1px); }
.sol-checks .warn { background: var(--sol-warn); }

/* 3D board / prototype switcher */
.sol-boards { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr); gap: clamp(16px, 2.4vw, 28px); align-items: start; }
.sol-boards-stage { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--sol-stage-glow), var(--sol-stage); }
.sol-boards-viewer { display: block; width: 100%; aspect-ratio: 16 / 11; touch-action: pan-y; }
.sol-boards-caption { display: grid; gap: 4px; padding: 14px 18px 16px; background: var(--raised); color: var(--ink); border-top: 1px solid var(--line); }
.sol-boards-caption b { font-size: 16px; }
.sol-boards-caption span { font-size: 14px; color: var(--ink-soft); }
.sol-boards-caption .sol-model-hint { color: var(--muted); }
.sol-boards-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 640px; overflow: auto; }
.sol-board { display: grid; gap: 6px; width: 100%; padding: 12px 14px 13px; text-align: left; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--raised); color: var(--ink); cursor: pointer; transition: border-color .16s ease, background .16s ease; }
.sol-board:hover { border-color: var(--line-strong); }
.sol-board.is-active { border-color: var(--teal-bright); background: color-mix(in srgb, var(--teal-wash) 70%, var(--raised)); }
.sol-board b { font-size: 14.5px; font-weight: 650; line-height: 1.3; }
.sol-board-specs { display: flex; flex-wrap: wrap; gap: 6px; }
.sol-board-specs i { font-style: normal; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .03em; padding: 3px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); }
.sol-board-src { font-size: 12.5px; line-height: 1.4; color: var(--muted); }

/* YouTube demos (click to load, privacy-enhanced) */
.sol-yt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.sol-yt-grid--one { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.sol-yt-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--raised); }
.sol-yt { position: relative; aspect-ratio: 16 / 9; background: var(--sol-screen); }
.sol-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sol-yt-play { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.sol-yt-play img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease, filter .3s ease; }
.sol-yt-play:hover img { transform: scale(1.02); filter: brightness(1.06); }
.sol-yt-btn { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; color: #fff; background: rgba(13, 14, 16, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, 0.25); transition: background .16s ease, transform .16s ease; }
.sol-yt-btn svg { width: 30px; height: 30px; margin-left: 4px; }
.sol-yt-play:hover .sol-yt-btn { background: var(--teal); transform: scale(1.05); }
.sol-yt-play:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: -3px; }
.sol-yt-len { position: absolute; right: 10px; bottom: 10px; padding: 3px 8px; border-radius: 6px; font-family: var(--font-mono); font-size: 11.5px; color: #fff; background: rgba(13, 14, 16, 0.8); }
.sol-yt-body { padding: 16px 18px 18px; }
.sol-yt-body h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.sol-yt-body p { margin-top: 6px; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }
.sol-yt-link { display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--teal-deep); }
/* a 45 px tall tap target in the same spot: padding taken back by equal negative margins */
.sol-yt-link { padding: 12px 0; margin: -2px 0 -12px; }
:root[data-theme="dark"] .sol-yt-link { color: var(--teal-text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sol-yt-link { color: var(--teal-text); } }
.sol-yt-note { margin-top: 14px; font-size: 12.5px; color: var(--muted); }

/* Deliverables, FAQ, hub points */
.sol-hub-points { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sol-hub-points li { font-size: 12.5px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); }

@media (max-width: 1080px) {
  .sol-pipe-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .sol-demo, .sol-pipe-panel, .sol-boards { grid-template-columns: minmax(0, 1fr); }
  .sol-demo-tabs { grid-auto-flow: column; grid-auto-columns: minmax(220px, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .sol-demo-tabs .sol-tab { scroll-snap-align: start; }
  .sol-pipe-tabs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 120px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .sol-pipe-tabs .sol-tab { scroll-snap-align: start; }
  .sol-yt-grid { grid-template-columns: minmax(0, 1fr); }
  .sol-boards-list { max-height: none; grid-auto-flow: column; grid-auto-columns: minmax(220px, 70%); overflow-x: auto; }
}
@media (max-width: 560px) {
  .sol-checks li, .sol-release li { grid-template-columns: 14px minmax(0, 1fr); }
  .sol-checks li i, .sol-release li i { grid-column: 2; }
  .sol-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* phones: the mono labels and tags no smaller than 11 px */
  .sol-model-hint, .sol-tab-kicker, .sol-pipe-num, .sol-pill, .sol-board-specs i { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .sol-tab, .sol-board, .sol-yt-play img, .sol-yt-btn { transition: none; }
}
/* The hero media's glow must never widen the page (phones). */
.sol-hero { overflow-x: clip; }

/* ================= The Solutions theme (2026-11-13) =================
   One theme, five audiences. Every page sits on the site's own ground (paper / charcoal, the teal + clay grid)
   and follows the light/dark switch. Brand teal is the only interactive colour: buttons, links, selected tabs
   and boards. Each page adds ONE muted tint (--sol-tint) for decoration only: section labels, numerals, rules,
   and the line art of its hero motif (--sol-motif, set in pages/<slug>.css). Tints never fill a button or a
   panel, and no page paints its own dark ground.
   Viewports follow the Library: 3D stages are the daylight studio (--sol-stage) in both themes; window frames
   and mock app panels take the theme's surfaces; only the app's own screens (videos, screenshots) stay dark
   (--sol-screen). Radii are the site's (--radius*), never per page. */
.sol-page {
  /* the five page tints (muted; decoration only) */
  --sol-tint-make: #C8704C;
  --sol-tint-mech: #5C8098;
  --sol-tint-elec: #4F8A69;
  --sol-tint-sys: #7175B0;
  --sol-tint-mfg: #B88B3B;
  --sol-tint: var(--teal-bright);
  --sol-tint-ink: var(--teal-deep);                                   /* tint for text: AA on paper and charcoal */
  --sol-tint-line: color-mix(in srgb, var(--sol-tint) 24%, transparent); /* hero motif line art */
  --sol-tint-wash: color-mix(in srgb, var(--sol-tint) 12%, transparent);
  --sol-stage: #eef0f5;                                               /* the Library's daylight studio */
  --sol-stage-glow: radial-gradient(circle at 50% 38%, rgba(255, 255, 255, .92), transparent 48%);
  --sol-screen: #131314;                                              /* behind the app's own screens */
  --sol-frame-bar: var(--raised-2);
  --sol-panel: var(--raised-2);                                       /* mock app panels inside a window */
  --sol-panel-ink: var(--ink);
  --sol-panel-soft: var(--ink-soft);
  --sol-panel-line: var(--line-soft);
  --sol-warn: #93560F;                                               /* AA as text on panels and its wash */
  --sol-warn-wash: rgba(219, 150, 52, 0.16);
}
:root[data-theme="dark"] .sol-page { --sol-warn: #F3C37A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sol-page { --sol-warn: #F3C37A; } }

/* The five tints: on the page itself, and on every card that leads to it (hub cards, "other solutions"). */
.sol-theme-make-at-home, .sol-hub-card--make-at-home, .sol-other--make-at-home { --sol-tint: var(--sol-tint-make); --sol-tint-ink: #9C4826; }
.sol-theme-mechanical-engineering, .sol-hub-card--mechanical-engineering, .sol-other--mechanical-engineering { --sol-tint: var(--sol-tint-mech); --sol-tint-ink: #3D6178; }
.sol-theme-electronics-and-chip-design, .sol-hub-card--electronics-and-chip-design, .sol-other--electronics-and-chip-design { --sol-tint: var(--sol-tint-elec); --sol-tint-ink: #2E6A4A; }
.sol-theme-systems-engineering, .sol-hub-card--systems-engineering, .sol-other--systems-engineering { --sol-tint: var(--sol-tint-sys); --sol-tint-ink: #4E5392; }
.sol-theme-manufacturing, .sol-hub-card--manufacturing, .sol-other--manufacturing { --sol-tint: var(--sol-tint-mfg); --sol-tint-ink: #73531A; }
:root[data-theme="dark"] :is(.sol-theme-make-at-home, .sol-hub-card--make-at-home, .sol-other--make-at-home) { --sol-tint-ink: #E8936F; }
:root[data-theme="dark"] :is(.sol-theme-mechanical-engineering, .sol-hub-card--mechanical-engineering, .sol-other--mechanical-engineering) { --sol-tint-ink: #94B8CE; }
:root[data-theme="dark"] :is(.sol-theme-electronics-and-chip-design, .sol-hub-card--electronics-and-chip-design, .sol-other--electronics-and-chip-design) { --sol-tint-ink: #86C3A0; }
:root[data-theme="dark"] :is(.sol-theme-systems-engineering, .sol-hub-card--systems-engineering, .sol-other--systems-engineering) { --sol-tint-ink: #A9ADE0; }
:root[data-theme="dark"] :is(.sol-theme-manufacturing, .sol-hub-card--manufacturing, .sol-other--manufacturing) { --sol-tint-ink: #DDB66F; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) :is(.sol-theme-make-at-home, .sol-hub-card--make-at-home, .sol-other--make-at-home) { --sol-tint-ink: #E8936F; }
  :root:not([data-theme="light"]) :is(.sol-theme-mechanical-engineering, .sol-hub-card--mechanical-engineering, .sol-other--mechanical-engineering) { --sol-tint-ink: #94B8CE; }
  :root:not([data-theme="light"]) :is(.sol-theme-electronics-and-chip-design, .sol-hub-card--electronics-and-chip-design, .sol-other--electronics-and-chip-design) { --sol-tint-ink: #86C3A0; }
  :root:not([data-theme="light"]) :is(.sol-theme-systems-engineering, .sol-hub-card--systems-engineering, .sol-other--systems-engineering) { --sol-tint-ink: #A9ADE0; }
  :root:not([data-theme="light"]) :is(.sol-theme-manufacturing, .sol-hub-card--manufacturing, .sol-other--manufacturing) { --sol-tint-ink: #DDB66F; }
}

/* Decoration takes the tint ... */
.sol-page .section-label { color: var(--sol-tint-ink); }
/* pages.css turns every .section-label teal in dark mode with a (0,4,1) selector; these outrank it (0,4,2). */
:root[data-theme="dark"] body.sol-page main .section-label { color: var(--sol-tint-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body.sol-page main .section-label { color: var(--sol-tint-ink); } }
.sol-page .section-label::before { background: var(--sol-tint); }
.sol-page .sol-pipe-num, .sol-page .sol-tab-kicker { color: var(--sol-tint-ink); }
.sol-page .sol-row li::before { background: var(--sol-tint); }
/* ... interaction stays teal (the selected tab / board rules above), hovers included. */
.sol-page .sol-other:hover, .sol-page .sol-hub-card:hover { border-color: var(--teal-bright); }

/* Hero: the site's ground, the page's motif drawn over it in its tint, fading out before the first section.
   The h1 is the display face of the site's page heroes (Century Gothic Bold, as on the Library). */
.sol-page .sol-hero { position: relative; isolation: isolate; padding-bottom: clamp(28px, 4vw, 48px); }
.sol-page .sol-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--sol-motif, none);
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.sol-page .sol-hero h1 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
.sol-page .sol-hero-media::before { background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--sol-tint) 22%, transparent), transparent 70%); }

/* Hub cards and "other solutions" carry the tint of the page they open. */
.sol-hub-card { border-left: 3px solid var(--sol-tint); }
.sol-hub-card .section-label { color: var(--sol-tint-ink); }
.sol-hub-card .section-label::before { background: var(--sol-tint); }
.sol-other { border-top: 2px solid var(--sol-tint); }
/* The hub's kicker rule carries all five tints: one platform, every kind of maker. */
.sol-hub-hero .section-label::before { width: 50px; background: linear-gradient(90deg, var(--sol-tint-make) 0 20%, var(--sol-tint-mech) 20% 40%, var(--sol-tint-elec) 40% 60%, var(--sol-tint-sys) 60% 80%, var(--sol-tint-mfg) 80%); }
/* A row whose picture needs the full width (the BOM with manufacturability). */
.sol-row--wide { grid-template-columns: minmax(0, 1fr); }
.sol-row--wide .sol-media { order: 0 !important; aspect-ratio: 1800 / 1029; }
.sol-row--wide .sol-media img { object-fit: contain; }
.sol-row--wide > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 40px; }
.sol-row--wide > div > .section-label, .sol-row--wide > div > h3 { grid-column: 1 / -1; }
@media (max-width: 860px) { .sol-row--wide > div { grid-template-columns: minmax(0, 1fr); } }

/* ================= v4: bespoke page structures (owner 2026-11-09: "the pages don't need to have the same structure") ================= */
.sol-sec--close { padding-top: var(--sol-gap); }
.sol-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.sol-dot--warn { background: var(--sol-warn); }

/* Frames clip their ground to the padding box, so a dark screen or a light stage never shows through the
   translucent theme border as a rim. Last in the file: a `background:` shorthand above would reset it. */
.sol-win, .sol-media, .sol-boards-stage { background-clip: padding-box; }
