/* Version list page (/versions/): a spreadsheet with one line per tool and its newest version; a click opens its earlier versions.
   Text sizes: the headline, 20 for section titles, 16 for help text, 14 for the table. Everything is scoped to .vl. */
html:has(main.vl), body:has(main.vl) { background: #000000; }   /* black page, gray table */
body:has(main.vl)::before, body:has(main.vl)::after { display: none !important; }   /* the old stripe overlay of style.css */
body:has(main.vl) { overflow-x: clip; }
body:has(main.vl) .home-footer { background: #000; border-top: 1px solid rgba(255,255,255,.1); }

.vl { min-width: 0; --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --panel: #1A1A1A; --head: #262626; --line: rgba(255,255,255,.11); --line2: rgba(255,255,255,.3); --ink: #F2F2F2; --ink2: #B8B8B8; --ink3: #909090;
  display: block; max-width: 1312px; margin: 0 auto; padding: 0 16px 72px; font-family: var(--sans); color: var(--ink);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
@media (min-width: 1000px) { .vl { max-width: 1200px; padding-left: 40px; padding-right: 40px; } }   /* 1120 px of table */
.vl *, .vl *::before, .vl *::after { box-sizing: border-box; }
.vl [hidden] { display: none !important; }
.vl section { padding: 0; }   /* style.css gives every <section> 100 px of padding (the old pages) */
.vl h2 { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 500; letter-spacing: -.015em; color: #FFFFFF; }
.vl p { margin: 0; }
.vl a { color: #FFFFFF; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; transition: text-decoration-color .15s ease; }
.vl a:hover { text-decoration-color: #FFFFFF; }
.vl b { font-weight: 500; color: var(--ink); }
.vl :focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; border-radius: 4px; }

/* ---- the headline ---- */
.vl-hero { padding: 44px 0 26px; text-align: center; }
.vl-hero h1 { margin: 0; font: 500 clamp(36px, 3.4vw, 48px)/1.05 var(--sans); letter-spacing: -.025em; color: #FFFFFF; }
.vl-sub { max-width: 640px; margin: 12px auto 0 !important; font-size: 16px; line-height: 1.6; color: var(--ink2); text-wrap: balance; }
/* where to find your own version, right above the table */
.vl .vl-hint { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--ink3); text-wrap: balance; }
.vl-hint b { color: var(--ink2); }

/* a small grey tag in front of a change: New, Improved, Fix, Changed (the word says it, no colors) */
.vl-tag { display: inline-flex; align-items: center; height: 20px; margin-right: 2px; padding: 0 6px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line2);
  font-size: 14px; line-height: 1; color: #D4D4D4; white-space: nowrap; vertical-align: 0; }

/* ---- the controls above the spreadsheet: find, show, open all, how many ---- */
.vl-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-bottom: 12px; }
.vl-search { display: flex; align-items: center; gap: 8px; width: 220px; height: 32px; padding: 0 10px; border-radius: 6px; background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line); color: var(--ink3); cursor: text; transition: box-shadow .15s ease; }
.vl-search:focus-within { box-shadow: inset 0 0 0 1px var(--line2); }
.vl-search input { flex: 1 1 auto; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none; color: var(--ink); font: 400 14px var(--sans); }
.vl-search input::placeholder { color: var(--ink3); }
.vl-search input::-webkit-search-cancel-button { filter: grayscale(1) brightness(1.8); }   /* invert() turned Chrome's blue x brown */
.vl-search input:focus-visible { outline: 0; }
.vl-search:has(input:focus-visible) { outline: 2px solid #FFFFFF; outline-offset: 2px; border-radius: 6px; }
.vl-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.vl-f { height: 32px; padding: 0 12px; border: 0; border-radius: 6px; background: none; box-shadow: inset 0 0 0 1px var(--line);
  font: 400 14px var(--sans); color: var(--ink2); cursor: pointer; transition: box-shadow .15s ease, color .15s ease; }
.vl-f:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2); }
.vl-f.is-on { background: #FFFFFF; color: #000000; box-shadow: none; }
.vl .vl-f:focus-visible { border-radius: 6px; }
.vl .vl-openall { margin-left: 4px; }
.vl .vl-count { margin-left: auto; font-size: 14px; color: var(--ink3); font-variant-numeric: tabular-nums; }

/* ---- THE SPREADSHEET ---- */
.vl-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-bottom: 0; background: var(--panel);
  font-size: 14px; line-height: 20px; }
.vl-w-tn { width: 23%; } .vl-w-k { width: 92px; } .vl-w-p { width: 68px; } .vl-w-v { width: 88px; } .vl-w-d { width: 112px; }
.vl-table th, .vl-table td { padding: 7px 10px; vertical-align: top; text-align: left; font-weight: 400; border-bottom: 1px solid var(--line); }
.vl-table tr > * + * { border-left: 1px solid var(--line); }   /* the spreadsheet's column lines */
/* the column names: stay in view under the site header while you scroll; the named ones sort (versions.js) */
.vl-table thead th { position: sticky; top: var(--hdr-h, 58px); z-index: 2; height: 34px; padding: 0 10px; vertical-align: middle; background: var(--head);
  border-bottom-color: var(--line2); font-weight: 500; color: var(--ink2); white-space: nowrap; }
.vl-table thead th:has(.vl-sb) { padding: 0; }
.vl-sb { display: flex; align-items: center; gap: 6px; width: 100%; height: 33px; padding: 0 10px; border: 0; background: none; font: inherit; color: inherit;
  text-align: left; cursor: pointer; }
.vl-sb:hover { color: #FFFFFF; }
.vl-sb::after { content: ''; width: 0; height: 0; border: 4px solid transparent; opacity: 0; }   /* the sort arrow */
.vl-sb:hover::after { opacity: .4; border-top-color: currentColor; margin-top: 5px; }
[aria-sort="ascending"] > .vl-sb, [aria-sort="descending"] > .vl-sb { color: #FFFFFF; }
[aria-sort="ascending"] > .vl-sb::after { opacity: 1; border-top-color: transparent; border-bottom-color: currentColor; margin-top: -4px; }
[aria-sort="descending"] > .vl-sb::after { opacity: 1; border-bottom-color: transparent; border-top-color: currentColor; margin-top: 5px; }
.vl .vl-sb:focus-visible { outline-offset: -3px; }

.vl-tool { scroll-margin-top: 44px; }   /* the room for the sticky column names; the site header's own room is html's scroll-padding-top */
.vl-tn { color: #FFFFFF; }
.vl-open { display: inline-flex; align-items: flex-start; gap: 6px; padding: 0; border: 0; background: none; font: 500 14px/20px var(--sans); color: #FFFFFF;
  text-align: left; cursor: pointer; }
.vl-chev { flex: none; margin: 3px 0 0 -3px; color: var(--ink3); transition: transform .15s ease; }
.vl-sm { display: block; font-size: 14px; font-weight: 400; line-height: 20px; color: var(--ink3); }
.vl-more { display: block; margin-top: 4px; padding-left: 17px; }
.vl-more .vl-sm + .vl-sm { margin-top: 2px; }
.vl-file { overflow-wrap: anywhere; }
.vl-more a { display: inline-block; color: #FFFFFF; }
.vl-kp { display: none; }   /* "Indicator · Paid" under the name, on phones only (the columns say it here) */
.vl-k, .vl-p { color: var(--ink2); white-space: nowrap; }
.vl-v { color: #FFFFFF; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vl-d { color: var(--ink2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.vl-c { color: var(--ink2); }
/* each change: a short title (always on one line, never cut) and its note, shown when the tool is opened */
.vl-ti { color: var(--ink); }
.vl-note { display: block; margin-top: 2px; color: var(--ink2); }
.vl-ti + .vl-note { margin-top: 4px; }
/* the earlier versions under an opened tool: quieter than its newest line */
.vl-old .vl-v { color: var(--ink2); font-weight: 400; }
.vl-old .vl-d, .vl-old .vl-c, .vl-old .vl-note { color: var(--ink3); }
.vl-old .vl-ti { color: var(--ink2); }

/* with versions.js: a tool is one line until it is clicked */
.vl.is-js .vl-row { cursor: pointer; }
.vl.is-js .vl-row:hover > * { background: rgba(255,255,255,.04); }
.vl.is-js .vl-tool:not(.is-open) .vl-old, .vl.is-js .vl-tool:not(.is-open) .vl-more { display: none; }
/* closed: the title only (it may take a second line on a narrow screen, it is never cut); a line without a title shows its note, cut */
.vl.is-js .vl-tool:not(.is-open) .vl-row .vl-cut { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vl.is-js .vl-tool:not(.is-open) .vl-row .vl-note { display: none; }   /* closed: the title only */
.vl.is-js .vl-tool:not(.is-open) .vl-row .vl-note.vl-only { display: inline; margin: 0; }   /* no title: the note, cut with ... */
.vl:not(.is-js) .vl-chev { display: none; }
.vl:not(.is-js) .vl-open { cursor: default; }
.vl-tool.is-open > tr > * { background: rgba(255,255,255,.03); }
.vl.is-js .vl-tool.is-open > .vl-row:hover > * { background: rgba(255,255,255,.06); }
.vl-tool.is-open .vl-chev { transform: rotate(90deg); color: #FFFFFF; }
.vl-tool.is-target > .vl-row > .vl-tn { box-shadow: inset 2px 0 0 #FFFFFF; }   /* the tool a link named (/versions/#t-livebrackets) */

.vl-none { margin-top: 16px !important; padding-left: 12px; font-size: 14px; line-height: 1.6; color: var(--ink2); }
.vl-reset { padding: 0; border: 0; background: none; color: #FFFFFF; font: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; cursor: pointer; }
.vl-all.is-empty .vl-table { display: none; }

/* ---- under the spreadsheet: Which version do I have? and How to update, side by side; then the four questions ---- */
.vl-help { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 48px; }
.vl .vl-box { padding: 24px; border-radius: 8px; background: var(--panel); outline: 1px solid var(--line); outline-offset: -1px; scroll-margin-top: 24px; }
.vl-box p, .vl-steps li { font-size: 16px; line-height: 1.6; color: var(--ink2); }
.vl-box h2 + p, .vl-box h2 + .vl-steps { margin-top: 12px !important; }
.vl .vl-small { margin-top: 14px; font-size: 14px; color: var(--ink3); }
.vl-pic { display: block; width: 100%; max-width: 426px; height: auto; margin-top: 16px; border-radius: 6px; outline: 1px solid var(--line); outline-offset: -1px; }
.vl-steps { margin: 0; padding: 0; list-style: none; counter-reset: vl-s; }
.vl-steps li { position: relative; counter-increment: vl-s; padding-left: 32px; margin: 0 0 8px; }
.vl-steps li::before { content: counter(vl-s); position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 4px;
  background: #FFFFFF; font: 600 13px/1 var(--sans); color: #000000; }
@media (min-width: 900px) { .vl-help { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.vl-faq { margin-top: 48px; }
.vl-qs { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 32px; margin-top: 12px; }
.vl-q { border-bottom: 1px solid var(--line); }
.vl-q summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 2px; list-style: none; cursor: pointer;
  font-size: 16px; line-height: 1.5; font-weight: 500; color: var(--ink); }
.vl-q summary::-webkit-details-marker { display: none; }
.vl-q summary svg { flex: none; color: var(--ink2); transition: transform .2s ease; }
.vl-q summary:hover, .vl-q summary:hover svg { color: #FFFFFF; }
.vl-q summary:hover span { text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 3px; }
.vl-q[open] summary svg { transform: rotate(45deg); color: #FFFFFF; }
.vl-q p { max-width: 62ch; padding: 0 2px 14px; font-size: 16px; line-height: 1.6; color: var(--ink2); }
@media (min-width: 900px) { .vl-qs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } .vl-q:nth-child(-n+2) { border-top: 1px solid var(--line); } }
@media (max-width: 899px) { .vl-q:first-child { border-top: 1px solid var(--line); } }

/* ---- below 900 px: each tool is one line (name, version, date); a click opens its change and earlier versions ---- */
@media (max-width: 899px) {
  .vl-table { border: 1px solid var(--line); border-bottom: 0; table-layout: auto; }
  .vl-table, .vl-table tbody, .vl-table th, .vl-table td { display: block; }
  .vl-table colgroup, .vl-table thead { display: none; }
  .vl-table tr { display: grid; grid-template-columns: minmax(0, 1fr) 44px 92px; column-gap: 12px; }
  .vl-table th, .vl-table td, .vl-table tr > * + * { padding: 0; border: 0; background: none !important; }
  .vl-tool { border-bottom: 1px solid var(--line); }
  .vl-tool.is-open { background: rgba(255,255,255,.03); }
  .vl-row { padding: 12px 12px; }
  .vl-row .vl-tn { grid-column: 1; grid-row: 1; }
  .vl-kp { display: block; padding-left: 17px; }
  .vl:not(.is-js) .vl-kp, .vl:not(.is-js) .vl-more { padding-left: 0; }
  .vl-table .vl-k, .vl-table .vl-p, .vl-old .vl-gap { display: none; }
  .vl-v { grid-column: 2; grid-row: 1; }
  .vl-d { grid-column: 3; grid-row: 1; }
  .vl-c { grid-column: 1 / -1; margin-top: 10px; }
  .vl.is-js .vl-tool:not(.is-open) .vl-row .vl-c { display: none; }
  .vl-old { padding: 10px 12px 12px; border-top: 1px solid var(--line); }
  .vl-old .vl-c { margin-top: 4px; }
  .vl .vl-count { margin-left: auto; }
  .vl-search { width: 100%; }
  .vl .vl-openall { margin-left: 0; }
}
@media (max-width: 640px) {
  .vl-hero { padding: 30px 0 20px; }
  .vl-hero h1 { font-size: 32px; }
  .vl .vl-box { padding: 20px 16px; }
  .vl-help, .vl-faq { margin-top: 40px; }
  .vl { padding-bottom: 56px; }
}
@media (max-width: 380px) { .vl-filters { gap: 4px; } .vl-f { padding: 0 10px; } }   /* 360 px: the five pills on one line */
@media (prefers-reduced-motion: reduce) { .vl * { transition: none !important; } }
