/* Ubuntu 26.04 setup check: the article template, a drop panel, and a ledger that puts 24.04 beside 26.04.
   Tokens only. Verdict colours follow the guide chips: Rust on Flag fails, Cobalt on Cited works,
   a dashed Muted edge could not tell. */
article.check2604 { max-width: 72rem; margin-inline: auto; padding-bottom: var(--wp-16); }
article.check2604 h1 { max-width: 21ch; font-size: clamp(2.25rem, 4.4vw, 4rem); }
article.check2604 h1 code { font-size: .84em; font-weight: 500; letter-spacing: -.03em; white-space: nowrap; }
article.check2604 .lede { max-width: 40em; }
article.check2604 .lede code { font-size: .86em; }
/* short code tokens (ruby/setup-ruby, .python-version, ubuntu-24.04) never break at their hyphen; each is under 24 characters, so it fits at 320 */
article.check2604 .lede code, .check2604 .c26-paste-label code, .check2604 .c26-paste-hint code, .check2604 .c26-fixes li > code { white-space: nowrap; }
.check2604 .c26-intro { max-width: 52rem; }

/* the route: one line that says what moves, where to, and when */
.check2604 .c26-route { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--wp-1) var(--wp-3); margin: 0 0 var(--wp-6); font: 500 var(--wp-text-meta)/1.3 var(--wp-font-mono); }
.check2604 .c26-from, .check2604 .c26-to { padding: var(--wp-1) var(--wp-2); border: var(--wp-rule-strong) solid var(--wp-ink); }
.check2604 .c26-to { background: var(--wp-bio); border-color: var(--wp-bio); color: var(--wp-on-bio); }
.check2604 .c26-when { color: var(--wp-muted); font-weight: 400; }

/* the two error lines a failing job prints: quiet, wrapped, never a scroller */
.check2604 .c26-seen { margin-top: var(--wp-4); max-width: 40em; padding-left: var(--wp-4); border-left: var(--wp-rule-strong) solid var(--wp-rust); }
.check2604 .c26-seen-h { margin: 0 0 var(--wp-2); font-weight: 600; }
.check2604 .c26-err { margin: 0; padding: 0; background: none; border: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 var(--wp-text-meta)/1.5 var(--wp-font-mono); }
.check2604 .c26-err code { font: inherit; background: none; padding: 0; }
.check2604 .c26-seen-note { margin: var(--wp-2) 0 0; font-size: var(--wp-text-meta); color: var(--wp-muted); }

/* the drop panel */
.check2604 .c26-check { margin-top: var(--wp-8); max-width: 52rem; }
.check2604 .c26-check:focus { outline: none; }
.check2604 .c26-drop { background: var(--wp-panel); border: var(--wp-rule-strong) dashed var(--wp-ink); padding: var(--wp-6); }
.check2604 .c26-drop.over { border-style: solid; border-color: var(--wp-bio); }
.check2604 .c26-drop-title { font: 600 var(--wp-text-h3)/1.3 var(--wp-font-body); margin: 0 0 var(--wp-1); }
.check2604 .c26-drop-note { margin: 0 0 var(--wp-6); color: var(--wp-muted); max-width: 38em; }
.check2604 .c26-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wp-3) var(--wp-4); }
.check2604 .c26-or { color: var(--wp-muted); }
/* the file input is hidden; its label is the button and carries the ring */
.check2604 .c26-actions:has(#folder:focus-visible) label.btn { outline: 3px solid var(--wp-focus); outline-offset: 3px; }
.check2604 .c26-paste { margin-top: var(--wp-6); border-top: var(--wp-rule) solid var(--wp-hair); padding-top: var(--wp-2); }
.check2604 .c26-paste summary, .check2604 .c26-works summary { cursor: pointer; font-weight: 600; min-height: var(--wp-tap); display: flex; align-items: center; width: fit-content; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.check2604 .c26-paste summary:hover, .check2604 .c26-works summary:hover { text-decoration-thickness: 2px; }
.check2604 .c26-paste-label { display: block; margin: var(--wp-2) 0; font-size: var(--wp-text-meta); }
.check2604 .c26-paste textarea { white-space: pre; overflow-x: auto; display: block; box-sizing: border-box; width: 100%; font: 400 .875rem/1.5 var(--wp-font-mono); padding: var(--wp-3); resize: vertical; }
.check2604 .c26-paste-hint { font-size: var(--wp-text-meta); color: var(--wp-muted); margin: var(--wp-2) 0 var(--wp-4); }

/* the engine line: what is loading, how big, and when it is ready */
.check2604 .c26-engine { display: flex; align-items: baseline; gap: var(--wp-2); margin: var(--wp-3) 0 0; font-size: var(--wp-text-meta); color: var(--wp-muted); min-height: 1.5rem; }
.check2604 .c26-dot { width: .625rem; height: .625rem; border-radius: 50%; background: var(--wp-hair); flex: none; transform: translateY(.05rem); }
.check2604 .c26-engine[data-state="loading"] .c26-dot { animation: c26-pulse 1.1s ease-in-out infinite; background: var(--wp-muted); }
.check2604 .c26-engine[data-state="ready"] .c26-dot { background: var(--wp-bio); }
.check2604 .c26-engine[data-state="error"] { color: var(--wp-rust); }
.check2604 .c26-engine[data-state="error"] .c26-dot { background: var(--wp-rust); }
.check2604 .c26-engine[data-state="error"] a { color: inherit; }
.check2604 .c26-noscript { color: var(--wp-ink); }
/* without script the live status line would promise a load that never starts */
.check2604 .c26-check:has(.c26-noscript) #engine { display: none; }
@keyframes c26-pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .check2604 .c26-engine .c26-dot { animation: none !important; } }

/* the verdict */
.check2604 .c26-result { margin-top: var(--wp-12); scroll-margin-top: var(--wp-4); }
.check2604 .c26-verdict { border-top: 6px solid var(--wp-ink); padding-top: var(--wp-4); max-width: 52rem; }
.check2604 .c26-verdict[data-tone="break"] { border-color: var(--wp-rust); }
.check2604 .c26-verdict[data-tone="ok"] { border-color: var(--wp-bio); }
.check2604 .c26-verdict[data-tone="unk"] { border-top-style: dashed; border-color: var(--wp-muted); }
.check2604 .c26-verdict h2 { font: 600 clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem)/1.1 var(--wp-font-display); letter-spacing: -.015em; margin: 0 0 var(--wp-2); text-wrap: balance; }
.check2604 .c26-verdict h2:focus { outline: none; }
.check2604 .c26-verdict h2 .n { color: var(--wp-rust); }
.check2604 .c26-verdict[data-tone="ok"] h2 .n { color: var(--wp-bio); }
.check2604 .c26-verdict-sub { margin: 0; max-width: 40em; }
.check2604 .c26-asof { margin: var(--wp-2) 0 0; font: 400 var(--wp-text-meta)/1.5 var(--wp-font-body); color: var(--wp-muted); max-width: 40em; }
.check2604 .c26-asof[hidden] { display: none; }

/* the ledger: 24.04 beside 26.04, a missing build hatched in Flag */
.check2604 .c26-ledger-wrap { margin-top: var(--wp-6); }
.check2604 table.ledger { min-width: 0; width: 100%; border: 0; border-collapse: collapse; background: var(--wp-panel); table-layout: fixed; }
.check2604 .ledger thead th:nth-child(1) { width: 25%; } .check2604 .ledger thead th:nth-child(2) { width: 13%; }
.check2604 .ledger thead th:nth-child(3) { width: 14%; } .check2604 .ledger thead th:nth-child(4) { width: 16%; } .check2604 .ledger thead th:nth-child(5) { width: 32%; }
.check2604 .ledger.no-fix-col thead th:nth-child(1) { width: 34%; } .check2604 .ledger.no-fix-col thead th:nth-child(2) { width: 22%; }
.check2604 .ledger.no-fix-col thead th:nth-child(3), .check2604 .ledger.no-fix-col thead th:nth-child(4) { width: 22%; }
.check2604 .ledger thead th { text-align: left; font: 500 var(--wp-text-cite)/1.25 var(--wp-font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--wp-muted); padding: var(--wp-3) var(--wp-4); border: 0; border-bottom: var(--wp-rule-strong) solid var(--wp-ink); background: none; }
.check2604 .ledger thead th:nth-child(4) { color: var(--wp-ink); }
.check2604 .ledger td { padding: var(--wp-3) var(--wp-4); border: 0; border-bottom: var(--wp-rule) solid var(--wp-hair); vertical-align: top; text-align: left; }
.check2604 .ledger tr > td:first-child { border-left: 5px solid transparent; }
.check2604 .ledger tr[data-s="BREAK"] > td:first-child { border-left-color: var(--wp-rust); }
.check2604 .ledger tr[data-s="ALREADY"] > td:first-child { border-left-color: var(--wp-ink); }
.check2604 .ledger tr[data-s="UNKNOWN"] > td:first-child { border-left-style: dashed; border-left-color: var(--wp-muted); }
.check2604 .ledger tr[data-s="OK"] > td:first-child { border-left-color: var(--wp-bio); }
.check2604 .tag { display: inline-block; font: 500 var(--wp-text-cite)/1.2 var(--wp-font-mono); text-transform: uppercase; letter-spacing: .04em; padding: .125rem var(--wp-2); margin-bottom: var(--wp-2); border: var(--wp-rule) solid var(--wp-ink); white-space: nowrap; }
.check2604 .tag.BREAK { background: var(--wp-flag); border-color: var(--wp-rust); color: var(--wp-ink); }
.check2604 .tag.OK { background: var(--wp-cited); border-color: var(--wp-cited); }
.check2604 .tag.UNKNOWN { border-style: dashed; border-color: var(--wp-muted); }
.check2604 .tag.ALREADY { background: var(--wp-ink); color: var(--wp-paper); }
.check2604 .loc { font: 400 .875rem/1.45 var(--wp-font-mono); overflow-wrap: anywhere; }
.check2604 .loc .file { color: var(--wp-muted); }
.check2604 .loc .job { font-weight: 500; }
.check2604 .loc .mx { display: block; color: var(--wp-muted); overflow-wrap: normal; }
/* a matrix value such as rails-version=7.1 stays whole; long values may still break anywhere rather than overflow */
.check2604 .loc .kv { white-space: nowrap; }
.check2604 .soft { display: block; font-size: var(--wp-text-meta); color: var(--wp-muted); margin-top: var(--wp-1); }
.check2604 .req { font: 500 1rem/1.3 var(--wp-font-mono); overflow-wrap: anywhere; }
.check2604 .req .src { display: block; font: 400 .8125rem/1.35 var(--wp-font-body); color: var(--wp-muted); margin-top: var(--wp-1); }
.check2604 .os { font: 500 1rem/1.3 var(--wp-font-mono); }
.check2604 .os .v { display: block; white-space: nowrap; }
.check2604 .os .lbl { display: none; }
.check2604 .os .what { display: block; font: 400 .8125rem/1.35 var(--wp-font-body); color: var(--wp-muted); margin-top: var(--wp-1); }
.check2604 .os.none { color: var(--wp-rust); background: repeating-linear-gradient(-45deg, var(--wp-flag) 0 6px, var(--wp-panel) 6px 12px); }
.check2604 .os.none .what { color: var(--wp-ink); }
.check2604 .why { font-size: var(--wp-text-meta); color: var(--wp-muted); }
.check2604 .fix { margin: 0; font: 400 .9375rem/1.5 var(--wp-font-body); color: var(--wp-ink); }
.check2604 .fix strong { font-weight: 600; }
.check2604 .fix code { font-size: .88em; background: var(--wp-paper); padding: .05em .3em; white-space: nowrap; }
/* one fix written once above the rows it covers */
.check2604 .ledger tr.group-head th { text-align: left; font-weight: 400; padding: var(--wp-3) var(--wp-4); background: var(--wp-flag); border: 0; border-left: 5px solid var(--wp-rust); border-bottom: var(--wp-rule) solid var(--wp-rust); }
.check2604 .ledger tbody.fix-group + tbody > tr:first-child > td { border-top: var(--wp-rule-strong) solid var(--wp-ink); }
.check2604 .c26-works { margin-top: var(--wp-4); }
.check2604 .c26-works .ledger { margin-top: var(--wp-2); }

/* the note's fixes, and the footer */
.check2604 .c26-fixes { margin-top: var(--wp-12); max-width: 52rem; border-top: var(--wp-rule-strong) solid var(--wp-ink); padding-top: var(--wp-6); }
.check2604 .c26-fixes h3 { font: 600 var(--wp-text-h3)/1.3 var(--wp-font-body); margin: 0 0 var(--wp-4); }
.check2604 .c26-fixes ul { padding-left: 1.2rem; margin: 0; }
.check2604 .c26-fixes li { margin-bottom: var(--wp-4); }
article.check2604 .c26-fixes .check-block { white-space: pre; overflow-x: auto; overscroll-behavior-x: contain; font-size: .875rem; margin: var(--wp-3) 0 0; }
.check2604 .c26-again { margin-top: var(--wp-8); }
.check2604 .c26-foot { margin-top: var(--wp-16); padding-top: var(--wp-4); border-top: var(--wp-rule) solid var(--wp-hair); font-size: var(--wp-text-meta); color: var(--wp-muted); max-width: 52rem; }
.check2604 .c26-foot code { overflow-wrap: anywhere; color: var(--wp-ink); }

/* narrow: rows become cards, the two Ubuntu cells stay side by side */
@media (max-width: 47.99rem) {
  .check2604 .c26-drop { padding: var(--wp-4); }
  .check2604 .c26-or { display: none; }
  .check2604 .c26-actions .btn { width: 100%; }
  .check2604 .ledger thead { display: none; }
  .check2604 table.ledger, .check2604 .ledger tbody { display: block; }
  .check2604 .ledger tr { display: grid; grid-template-columns: 1fr 1fr; border-left: 5px solid transparent; border-bottom: var(--wp-rule) solid var(--wp-hair); background: var(--wp-panel); }
  .check2604 .ledger tr[data-s="BREAK"] { border-left-color: var(--wp-rust); }
  .check2604 .ledger tr[data-s="ALREADY"] { border-left-color: var(--wp-ink); }
  .check2604 .ledger tr[data-s="UNKNOWN"] { border-left-style: dashed; border-left-color: var(--wp-muted); }
  .check2604 .ledger tr[data-s="OK"] { border-left-color: var(--wp-bio); }
  .check2604 .ledger tr > td:first-child { border-left: 0; }
  .check2604 .ledger td { border-bottom: 0; padding: var(--wp-3); }
  .check2604 .ledger td.cell-step { grid-column: 1 / -1; padding-bottom: var(--wp-1); }
  .check2604 .ledger td.cell-req { grid-column: 1 / -1; padding-top: var(--wp-1); }
  .check2604 .ledger td.cell-wide, .check2604 .ledger td.cell-fix { grid-column: 1 / -1; }
  .check2604 .ledger td.cell-fix:empty { display: none; }
  .check2604 .ledger td.cell-fix { padding-top: var(--wp-1); }
  .check2604 .ledger tr.group-head { display: block; border-left: 0; background: none; border-bottom: 0; }
  .check2604 .ledger tr.group-head th { display: block; }
  .check2604 .ledger tbody.fix-group + tbody > tr:first-child > td { border-top: 0; }
  .check2604 .ledger tbody.fix-group + tbody { margin-top: var(--wp-4); border-top: var(--wp-rule-strong) solid var(--wp-ink); }
  .check2604 .os .lbl { display: block; font: 500 .75rem/1.2 var(--wp-font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--wp-muted); margin-bottom: var(--wp-1); }
  .check2604 .os.none .lbl { color: var(--wp-ink); }
}
