/* Verso Suite - the site as a Verso window. Colours say what words would: blue is the app, amber is locked or
   handed over, green is awarded or shipping. Dense, like the software. */
:root {
  --bg: #e9edf2; --win: #ffffff; --surface: #f7f8fa; --line: #d9dee5; --line-soft: #e8ecf1;
  --ink: #1f2937; --ink-2: #4b5563; --mut: #6b7280; --dim: #9aa3ad;
  --blue: #2c7dc8; --blue-ink: #0b5ba0; --blue-soft: #e6f0fa; --amber: #d97706; --amber-soft: #fff4e5;
  --green: #15803d; --green-soft: #e8f5ec; --red: #b91c1c; --status: #1f5fa6;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1419; --win: #161c24; --surface: #1b222b; --line: #2a333e; --line-soft: #232b35;
    --ink: #e6e9ee; --ink-2: #c3cad3; --mut: #9aa5b1; --dim: #6b7682;
    --blue: #5aa3e8; --blue-ink: #9ccaf3; --blue-soft: #16304a; --amber: #f59e0b; --amber-soft: #3a2a10;
    --green: #4ade80; --green-soft: #12301d; --red: #f87171; --status: #163f6e;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1419; --win: #161c24; --surface: #1b222b; --line: #2a333e; --line-soft: #232b35;
  --ink: #e6e9ee; --ink-2: #c3cad3; --mut: #9aa5b1; --dim: #6b7682;
  --blue: #5aa3e8; --blue-ink: #9ccaf3; --blue-soft: #16304a; --amber: #f59e0b; --amber-soft: #3a2a10;
  --green: #4ade80; --green-soft: #12301d; --red: #f87171; --status: #163f6e;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 13px/1.45 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif; }
a { color: var(--blue-ink); text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.win { max-width: 1480px; margin: 18px auto; background: var(--win); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.12); min-height: calc(100vh - 36px); display: flex; flex-direction: column; overflow: hidden; }
.grow { flex: 1; }

/* title bar */
.titlebar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--win); }
.app { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; margin-right: 8px; }
.logo { width: 18px; height: 18px; display: inline-block; vertical-align: middle; }   /* the Verso mark, favicon.svg */
.chip { font-size: 12px; padding: 4px 9px; border-radius: 5px; white-space: nowrap; }
.chip.blue { background: var(--blue-soft); color: var(--blue-ink); font-weight: 600; }
.chip.amber { background: var(--amber); color: #fff; font-weight: 600; cursor: pointer; }
.chip.amber b { margin-left: 8px; font-weight: 700; opacity: .9; }
.chip.inline { font-size: 11px; vertical-align: middle; margin-left: 6px; cursor: default; }
.tb { color: var(--ink-2); font-size: 14px; padding: 2px 6px; border-radius: 4px; }
.tb:hover { background: var(--surface); }
.tb.sync { font-size: 12px; display: flex; align-items: center; gap: 5px; }
.tb.sync i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; }
.tb.menu { display: none; }

/* section tabs */
.tabs { display: flex; gap: 2px; padding: 6px 12px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { padding: 6px 12px; border-radius: 5px 5px 0 0; color: var(--ink-2); font-size: 13px; white-space: nowrap; }
.tabs a.on { background: var(--blue-soft); color: var(--blue-ink); font-weight: 600; }

/* pages */
.page { display: none; padding: 12px 14px 20px; flex: 1; }
.page.on { display: block; }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.lbl { font-size: 10px; letter-spacing: .06em; color: var(--mut); font-weight: 600; }
.select, .search { border: 1px solid var(--line); border-radius: 4px; padding: 4px 9px; font-size: 12px; color: var(--ink-2); background: var(--win); }
.select::after { content: " \25BE"; color: var(--dim); }
.search { color: var(--dim); min-width: 230px; }
.btn { display: inline-block; border: 1px solid var(--line); border-radius: 5px; padding: 5px 12px; font-size: 12px; font-weight: 600; color: var(--ink); background: var(--win); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn:hover { filter: brightness(1.05); }

.split { display: grid; grid-template-columns: 1fr 360px; gap: 14px; align-items: start; }
.grid-wrap { min-width: 0; }
.grid { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.grid th { text-align: left; font-weight: 600; color: var(--ink-2); padding: 6px 8px; border-bottom: 1px solid var(--line); background: var(--surface); white-space: nowrap; }
.grid td { padding: 7px 8px; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.grid tr[data-go] { cursor: pointer; }
.grid tr[data-go]:hover td { background: var(--blue-soft); }
.grid .name { font-weight: 600; }
.grid .num, .grid th.num { text-align: right; font-variant-numeric: tabular-nums; }
.grid .mut { color: var(--mut); }
.grid .dim { color: var(--dim); }
.grid .lock { width: 26px; padding-left: 10px; }
.grid.small td, .grid.small th { white-space: normal; vertical-align: top; }
.pad { display: inline-block; width: 10px; height: 12px; border-radius: 2px 2px 3px 3px; position: relative; }
.pad::before { content: ""; position: absolute; left: 1px; top: -5px; width: 6px; height: 6px; border: 2px solid currentColor; border-bottom: 0; border-radius: 5px 5px 0 0; }
.pad.green { background: var(--green); color: var(--green); }
.pad.amber { background: var(--amber); color: var(--amber); }
.t-bid { color: var(--green); font-weight: 600; }
.t-budget { color: var(--blue-ink); font-weight: 600; }
.t-undecided { color: var(--ink-2); }
.t-awarded { color: var(--green); font-weight: 600; }
tr.quiet td { color: var(--dim); }
.hint { color: var(--mut); font-size: 12px; margin: 8px 2px 14px; }
.video video { width: 100%; border: 1px solid var(--line); border-radius: 6px; background: #000; display: block; }
.cap { color: var(--mut); font-size: 12px; margin: 6px 2px 0; }

/* dashboard */
.dash { border-left: 1px solid var(--line); padding-left: 14px; min-width: 0; }
.dash h4 { font-size: 10px; letter-spacing: .08em; color: var(--mut); margin: 14px 0 6px; font-weight: 600; }
.dash h4:first-child { margin-top: 0; }
.dbname { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cards.four { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border-radius: 5px; padding: 8px 10px; }
.card b { display: block; font-size: 18px; color: var(--ink); }
.card span { font-size: 9.5px; letter-spacing: .06em; color: var(--mut); font-weight: 600; }
.card.green { background: var(--green-soft); } .card.green b { color: var(--green); }
.card.blue { background: var(--blue-soft); } .card.blue b { color: var(--blue-ink); }
.card.amber { background: var(--amber-soft); } .card.amber b { color: var(--amber); }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.flow li { font-size: 10.5px; color: var(--mut); padding: 4px 6px; border-radius: 4px; background: var(--surface); }
.flow li.done { color: var(--blue-ink); background: var(--blue-soft); }
.flow li.cur { color: #fff; background: var(--green); font-weight: 600; }
.date { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.date .d { width: 40px; border: 1px solid var(--line); border-radius: 4px; text-align: center; overflow: hidden; }
.date .d em { display: block; font: 600 9px/14px inherit; font-style: normal; background: var(--red); color: #fff; letter-spacing: .05em; }
.date .d.blue em { background: var(--blue); }
.date .d b { display: block; font-size: 15px; line-height: 20px; }
.date .what { flex: 1; font-size: 12px; color: var(--mut); }
.date .what b { display: block; color: var(--ink); font-weight: 600; }
.date .in { font-size: 11px; color: var(--blue-ink); background: var(--blue-soft); padding: 2px 6px; border-radius: 3px; white-space: nowrap; }
.row { display: flex; justify-content: space-between; padding: 3px 0; font-size: 12.5px; }
.badge { background: var(--blue); color: #fff; font-size: 11px; font-weight: 600; padding: 0 7px; border-radius: 3px; }

/* product pages */
.ph { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 4px 0 12px; }
.ph .num { color: var(--mut); font-size: 13px; }
.ph h1, .ph h2 { margin: 0; font-size: 20px; font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.ph .sub { color: var(--mut); font-size: 13px; }
.two { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; align-items: start; margin-bottom: 16px; }
figure { margin: 0; min-width: 0; }
figure img { width: 100%; border: 1px solid var(--line); border-radius: 6px; display: block; }
figcaption { color: var(--mut); font-size: 12px; margin-top: 6px; }
.facts h4 { font-size: 10px; letter-spacing: .08em; color: var(--mut); margin: 0 0 6px; font-weight: 600; }
.facts h4 + ul, .facts ul + h4 { margin-top: 0; }
.facts ul { margin: 0 0 14px; padding-left: 18px; }
.facts li { margin: 3px 0; }
.facts.wide { max-width: 1100px; }
.facts.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.chip-shot { width: 100%; border: 1px solid var(--line); border-radius: 6px; }
.big { font-size: 16px; font-weight: 600; margin: 4px 0 10px; }

/* status bar */
.statusbar { display: flex; gap: 18px; padding: 5px 12px; background: var(--status); color: #fff; font-size: 12px; }

/* a phone: the window fills the screen, the chrome wraps, the tables scroll, the tap targets grow */
@media (max-width: 600px) {
  html, body { font-size: 14px; }
  .titlebar { flex-wrap: wrap; gap: 6px 8px; padding: 8px 10px; }
  .titlebar .tb.sync { display: none; }
  .chip.blue { white-space: normal; }
  .tabs { padding: 6px 8px 0; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tabs a { padding: 9px 11px; font-size: 14px; }
  .page { padding: 10px 10px 18px; }
  .ph h1, .ph h2 { font-size: 18px; }
  .subnav { overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .subnav a { padding: 8px 10px; font-size: 13px; }
  .buybar { gap: 8px 12px; }
  .buybar .once { flex-basis: 100%; order: 2; margin-right: 0; }
  .buybar .btn { flex: 1 1 auto; text-align: center; padding: 9px 12px; }
  .facts.wide { overflow-x: auto; }
  table.grid { display: block; overflow-x: auto; max-width: 100%; }
  .gallery { grid-template-columns: 1fr; }
  .two.hero { grid-template-columns: 1fr; }   /* the video above the facts; the later desktop rule outranks the 980px one */
  .statusbar { flex-wrap: wrap; gap: 4px 14px; }
  .viewer { grid-template-columns: 32px 1fr 32px; padding: 8px 2px; }
}
@media (max-width: 980px) {
  .win { margin: 0; border-radius: 0; min-height: 100vh; }
  .split, .two, .facts.cols { grid-template-columns: 1fr; }
  .dash { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 12px; }
  .search { display: none; }
  .chip.amber { display: none; }
  .grid td, .grid th { white-space: normal; }
}

/* the maker, the stage groups and the buy bar */
.app .by { font-size: 11px; font-weight: 400; color: var(--mut); margin-left: 2px; }
.app .by:hover { color: var(--blue-ink); }
.by-small { font-size: 12px; font-weight: 400; color: var(--mut); }
.statusbar a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.grid tr.group td { background: var(--surface); color: var(--mut); font-size: 10.5px; letter-spacing: .06em; font-weight: 600; padding: 5px 8px; border-bottom: 1px solid var(--line); }
.grid tr.group td b { color: var(--blue-ink); margin-right: 6px; }
.buybar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; margin: 0 0 14px; }
.buybar .price { font-size: 20px; font-weight: 600; }
.buybar .once { color: var(--mut); font-size: 12px; margin-right: auto; }
.lead { font-size: 14px; max-width: 70ch; margin: 0 0 14px; }
.date .d.green em { background: var(--green); }
.grid.small .btn { padding: 3px 9px; }

.sect { font-size: 10px; letter-spacing: .08em; color: var(--mut); margin: 18px 0 8px; font-weight: 600; }

/* the product pages: the sub-navigation, the gallery, the help */
.subnav { display: flex; gap: 2px; margin: 0 0 14px; border-bottom: 1px solid var(--line); }
.subnav a { padding: 5px 10px; font-size: 12.5px; color: var(--ink-2); border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--blue-ink); border-bottom-color: var(--blue); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px 16px; margin-bottom: 8px; }
.gallery figure img { aspect-ratio: 16 / 9.3; object-fit: cover; object-position: top left; }
.gallery figure a:hover img { border-color: var(--blue); }
.help.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; max-width: 1100px; }
.help details { border-bottom: 1px solid var(--line-soft); padding: 6px 0; }
.help summary { cursor: pointer; font-weight: 600; color: var(--ink); padding: 4px 0; list-style: none; display: flex; align-items: center; gap: 8px; }
.help summary::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--mut); border-bottom: 1.5px solid var(--mut); transform: rotate(-45deg); transition: transform .15s; }
.help details[open] summary::before { transform: rotate(45deg); }
.help details p, .help details ol { margin: 4px 0 8px 14px; color: var(--ink-2); max-width: 62ch; }
.help details ol { padding-left: 18px; }
.help details li { margin: 3px 0; }
tr.tool td { color: var(--ink-2); }
@media (max-width: 980px) { .help.cols { grid-template-columns: 1fr; } .gallery { grid-template-columns: 1fr; } }

/* the image viewer */
.viewer { position: fixed; inset: 0; background: rgba(15, 20, 25, .88); z-index: 50; display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; padding: 24px 8px; }
.viewer[hidden] { display: none; }
.viewer figure { grid-column: 2; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; max-height: calc(100vh - 48px); }
.viewer img { max-width: 100%; max-height: calc(100vh - 110px); border: 1px solid #3a4553; border-radius: 6px; background: #fff; box-shadow: 0 16px 48px rgba(0,0,0,.5); }
.viewer figcaption { color: #e6e9ee; font-size: 14px; text-align: center; max-width: 80ch; }
.viewer button { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; font-size: 30px; line-height: 1; width: 44px; height: 44px; border-radius: 22px; cursor: pointer; padding: 0; }
.viewer button:hover { background: rgba(255,255,255,.18); }
.viewer .v-prev { grid-column: 1; justify-self: center; }
.viewer .v-next { grid-column: 3; justify-self: center; }
.viewer .v-close { position: fixed; top: 16px; right: 16px; }
.viewer .v-count { position: fixed; top: 26px; left: 20px; color: #9aa5b1; font-size: 13px; font-variant-numeric: tabular-nums; }
.gallery figure a { cursor: zoom-in; }
@media (max-width: 980px) { .viewer { grid-template-columns: 40px 1fr 40px; padding: 12px 4px; } .viewer button { width: 36px; height: 36px; font-size: 24px; } }

/* the product page hero: the video first, the facts beside it */
.two.hero { grid-template-columns: 3fr 2fr; }
.two.hero .video video { aspect-ratio: 16 / 9; }

/* What's new: the videos side by side, the release log as a grid with a strip of the windows that changed under each release */
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 4px; }
.videos .cap .len { color: var(--mut); font-variant-numeric: tabular-nums; margin-left: 6px; }
.grid .cur { color: var(--green); margin-left: 10px; }
.grid.releases td.when, .grid.releases td.tool { white-space: nowrap; }
.gallery.strip figure img { aspect-ratio: 16 / 10; object-fit: contain; object-position: center; background: #fff; }
.grid.releases tr.shots td { padding: 8px 8px 12px; background: var(--surface); }
.gallery.strip { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 12px; margin: 0; }
.gallery.strip figcaption { font-size: 11px; margin-top: 3px; }
@media (max-width: 900px) { .videos { grid-template-columns: 1fr; } }

.facts p.small { font-size: 11.5px; color: var(--mut); }

/* last word on a phone: these outrank the desktop rules above only because they come after them */
@media (max-width: 600px) {
  .two.hero { grid-template-columns: 1fr; }
  .two.hero .video { order: 0; }
  /* the tabs fold into a menu: the button in the title bar opens them as a list */
  .tb.menu { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); padding: 5px 10px; border-radius: 5px; background: var(--win); cursor: pointer; font-family: inherit; color: var(--ink); }
  .tabs { display: none; }
  .tabs.open { display: flex; flex-direction: column; gap: 0; padding: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .tabs.open a { padding: 13px 16px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .tabs.open a:last-child { border-bottom: 0; }
  .tabs.open a.on { background: var(--blue-soft); }
}
