/* vigil: palette and type of ethdns.com, denser and more brutal */
@font-face { font-family: "Exo 2"; src: url("fonts/exo-2-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Exo 2"; src: url("fonts/exo-2-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Exo 2"; src: url("fonts/exo-2-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #15171a; --bg-2: #1a1d21; --card: #202328; --card-2: #262a30; --code: #101215;
  --line: #2e3239; --line-2: #3a3f47;
  --text: #e6e8eb; --body: #c3c8cf; --muted: #9da3ad; --faint: #80878f;
  --accent: #5cc8ff; --on-accent: #0c1822; --warm: #f5c26b; --bad: #ff7b72; --attn: #d9a3bd; --good: #7fd18b;
  --sans: "Exo 2", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--sans); }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a.term { color: inherit; text-decoration-color: var(--line-2); }
a.term:hover { color: var(--accent); }
a.src { font: 12.5px var(--mono); color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); }
.warn { color: var(--warm); }
.small { font-size: 13.5px; }
h1, h2 { font-size: 26px; margin: 40px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--line-2); letter-spacing: .01em; }
h1 .muted, h2 .muted, h3 .muted { font-size: .6em; font-weight: 400; margin-left: 10px; }
h3 { font-size: 19px; margin: 30px 0 10px; }
h3.grp { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; margin: 26px 0 8px; }
h4 { margin: 0; font-size: 18px; }
h4 a { color: var(--text); text-decoration: none; }
h4 a:hover { color: var(--accent); }
pre { white-space: pre-wrap; margin: 0; font: 13px/1.45 var(--mono); color: var(--body); }
pre.cl { margin-top: 3px; max-width: 520px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.bar { display: flex; align-items: center; min-height: 60px; gap: 18px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 24px; letter-spacing: .02em; }
.brand img { display: block; width: 30px; height: 30px; }
.tag { color: var(--muted); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.main-nav a { position: relative; display: block; color: var(--muted); text-decoration: none; font-size: 15.5px; font-weight: 600; padding: 4px 0; }
.main-nav a::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); transform: translateX(-50%) scale(0); transition: transform .18s ease; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: translateX(-50%) scale(1); }
.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; font: 600 12.5px var(--mono); }
.lang a { color: var(--muted); text-decoration: none; padding: 5px 10px; }
.lang a + a { border-left: 1px solid var(--line-2); }
.lang a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
.lang a:hover { color: var(--text); }
.lang a[aria-current="page"]:hover { color: var(--on-accent); }
.h-home { margin-top: 44px; font-size: 40px; border: 0; }
.lead-text { font-size: 19px; color: var(--body); max-width: 760px; }
.sections { list-style: none; padding: 0; margin: 24px 0; }
.sections li { padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 18px; }
.h-sec { margin-top: 34px; }
.grp .note { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--faint); }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 60px; padding: 18px 24px 30px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }
.crumbs { margin: 18px 0 0; color: var(--muted); font-size: 14px; }

/* status */
.status { margin: 28px 0 0; padding: 16px 20px; border: 1px solid var(--line-2); border-left: 6px solid var(--muted); background: var(--card); font-size: 18px; }
.status.ok { border-left-color: var(--accent); }
.status.alert { border-left-color: var(--warm); }
.status.sec { border-left-color: var(--bad); color: var(--bad); }
.status.prob { border-left-color: var(--warm); }
.prob-line { margin: 8px 0 0; font-size: 15px; color: var(--body); }
.status.sec .prob-line a.term { color: var(--text); }
.status.sec + .status { margin-top: 10px; }
.status b { font-size: 22px; margin-right: 8px; }

/* cards */
.grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card .tbl, section > .tbl, main > .tbl { display: block; overflow-x: auto; }
.card .tbl thead, .card .tbl tbody, section > .tbl thead, section > .tbl tbody, main > .tbl thead, main > .tbl tbody { display: table; width: 100%; }
.card header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pill { font: 600 12px var(--mono); padding: 3px 8px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.pill.new { border-color: var(--warm); color: var(--warm); }
.pill.ok { border-color: var(--line-2); color: var(--muted); }
.pill.sec { border-color: var(--bad); color: var(--bad); background: rgba(255, 123, 114, .08); }
.pill.prob { border-style: dashed; border-color: var(--warm); color: var(--warm); background: rgba(245, 194, 107, .08); }
.pill.attn { border-color: var(--attn); color: var(--attn); background: rgba(217, 163, 189, .08); }
.pill.new5 { border-color: var(--bad); color: var(--bad); background: rgba(255, 123, 114, .08); }
/* state pills: one width per language (the longest label), text centred - they read as a column of colour marks */
.pill.sec, .pill.prob, .pill.attn, .pill.new5 { display: inline-block; text-align: center; }
html[lang="ru"] :is(.pill.sec, .pill.prob, .pill.attn, .pill.new5) { min-width: calc(22ch + 18px); }
html[lang="en"] :is(.pill.sec, .pill.prob, .pill.attn, .pill.new5) { min-width: calc(15ch + 18px); }
html[lang="ru"] .legend :is(.pill.sec, .pill.prob, .pill.attn, .pill.new5) { min-width: calc(22ch + 14px); }
html[lang="en"] .legend :is(.pill.sec, .pill.prob, .pill.attn, .pill.new5) { min-width: calc(15ch + 14px); }
.tbl td.state { width: 1%; text-align: right; white-space: nowrap; }
/* narrow desktops (721-1100px): "(N h ago)" under the date so the status column fits */
@media (min-width: 721px) and (max-width: 1100px) { .tbl time .rel { display: block; } }
.legend { line-height: 1.7; }
.legend .pill { display: inline-block; font-size: 11px; line-height: 1.3; padding: 0 6px; vertical-align: 1px; }
.pill-legend > span { display: block; }
.pill-legend > span + span { margin-top: 4px; }
.pills { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.sec, .sec a.term, .sec pre.cl { color: var(--bad); }
.tbl tr.secrow td { background: rgba(255, 123, 114, .07); }
.tbl tr.secrow td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
.card p { margin: 0; }
.lead { color: var(--warm); }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; font: 600 11.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding: 6px 8px; border-bottom: 1px solid var(--line-2); }
.tbl td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.fresh td { background: rgba(245, 194, 107, .06); }
.tbl tr.fresh td:first-child { box-shadow: inset 3px 0 0 var(--warm); }
.tbl td:first-child, .tbl td.mono, .tbl.kern time, .cves li { white-space: nowrap; }
.tbl td.mono .small { white-space: normal; font-family: var(--sans); font-size: 12.5px; }  /* "internal branch: …" under a version wraps */
.dtag.gone { color: var(--attn); border-color: var(--attn); }
/* narrow desktops: long module versions wrap at their '+' / '-' instead of squeezing the date column (29.10) */
@media (min-width: 721px) and (max-width: 1100px) { .tbl.kern td.mono { white-space: normal; } }
.tbl.wide td:nth-child(5) { min-width: 300px; }
.tbl.cl td:first-child { width: 110px; } .tbl.cl td:nth-child(2) { width: 130px; }
.tbl.src td:nth-child(3), .tbl.src td:nth-child(4) { color: var(--body); }
time { font-family: var(--mono); font-size: 13px; }
time .rel { color: var(--muted); display: inline-block; }
.kind { font: 600 11.5px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border: 1px solid var(--line-2); padding: 1px 6px; }
.files { margin: 6px 0 0; padding-left: 18px; font: 12.5px/1.4 var(--mono); color: var(--body); columns: 2; }
.files li { break-inside: avoid; }

/* passport: source, method, rule, status, last update — collapsed by default */
.pp-wrap { margin-top: 4px; border-top: 1px dashed var(--line-2); }
.pp-wrap summary { cursor: pointer; list-style: none; padding: 8px 0 2px; font: 12.5px var(--mono); color: var(--muted); }
.pp-wrap summary::-webkit-details-marker { display: none; }
.pp-wrap summary::before { content: "▸"; display: inline-block; width: 14px; color: var(--accent); }
.pp-wrap[open] summary::before { content: "▾"; }
.pp-wrap summary:hover { color: var(--text); }
.pp-wrap .pp { border-top: 0; padding-top: 6px; }
.pp { list-style: none; margin: 4px 0 0; padding: 10px 0 0; border-top: 1px dashed var(--line-2); font: 12.5px/1.5 var(--mono); color: var(--muted); }
.pp li { margin: 0 0 8px; }
.pp li:last-child { margin-bottom: 0; }
.pp a { color: var(--body); }
.pp .k { color: var(--faint); text-transform: uppercase; font-size: 10.5px; letter-spacing: .06em; margin-right: 4px; }
.st { display: inline-block; font: 600 10.5px var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 1px 6px; margin-right: 4px; border: 1px solid var(--line-2); color: var(--muted); }
.st.ok { border-color: var(--accent); color: var(--accent); }
.st.err { border-color: var(--bad); color: var(--bad); }
.st.na { border-color: var(--line-2); color: var(--faint); }

.news { list-style: none; margin: 0; padding: 0; }
.news li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.news .mono { color: var(--muted); margin-right: 10px; }

/* collapsed details inside cells */
details.more { margin-top: 2px; }
details.more > summary { cursor: pointer; list-style: none; font: 12px var(--mono); color: var(--accent); }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "▸ "; }
details.more[open] > summary::before { content: "▾ "; }
.sec details.more > summary { color: var(--bad); }

/* legend under the status line */
.legend { margin: 10px 0 0; font: 12.5px var(--mono); color: var(--muted); }
.legend .sw { display: inline-block; width: 3px; height: 12px; margin-right: 6px; vertical-align: -1px; }
.legend .sw.fresh { background: var(--warm); }
.legend .sw.sec { background: var(--bad); }

/* security banner: one product per line */
.seclist { list-style: none; margin: 8px 0 0; padding: 0; font-size: 15px; }
.seclist li { display: grid; grid-template-columns: 180px 1fr; gap: 12px; padding: 3px 0; border-top: 1px solid rgba(255, 123, 114, .25); }
.seclist a.term { color: var(--text); }
.seclist .mono { color: var(--bad); }

/* hidden rest of a long table */
details.more-rows { margin-top: 6px; }
details.more-rows > summary { cursor: pointer; list-style: none; font: 600 13px var(--mono); color: var(--accent); padding: 6px 0; }
details.more-rows > summary::-webkit-details-marker { display: none; }
details.more-rows > summary::before { content: "▸ "; }
details.more-rows[open] > summary::before { content: "▾ "; }

/* section filters: label + chips under the page title; "all" is the default */
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.flabel { font: 600 11.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-right: 4px; }
.chip { font: 600 13.5px var(--sans); color: var(--muted); text-decoration: none; padding: 4px 12px; border: 1px solid var(--line-2); border-radius: 999px; }
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip[aria-current="true"] { color: var(--accent); border-color: var(--accent); background: rgba(92, 200, 255, .1); }

.note-pre { margin: 10px 0 0; padding: 10px 14px; border: 1px solid var(--line-2); border-left: 4px solid var(--accent); background: var(--card); color: var(--body); font-size: 14.5px; }

/* home: period chips + "latest only" toggle */
.fsep { width: 1px; height: 18px; background: var(--line-2); margin: 0 6px; }
.chip.toggle[aria-current="true"] { color: var(--warm); border-color: var(--warm); background: rgba(245, 194, 107, .1); }
.empty { margin: 24px 0; font-size: 17px; }

/* kernels: the vendor's rating as is (neutral), red only for its top value; Fedora updates that skipped testing */
.pill.sev { display: inline-block; white-space: nowrap; }
.pill.sev.r { border-color: var(--bad); color: var(--bad); background: rgba(255, 123, 114, .08); }
.pill.sev.y { border-color: var(--warm); color: var(--warm); background: rgba(245, 194, 107, .08); }
.pill.sev.g { border-color: var(--good); color: var(--good); background: rgba(127, 209, 139, .08); }
.dtag { font: 600 11px var(--mono); color: var(--accent); border: 1px solid var(--accent); padding: 0 6px; white-space: nowrap; }
.dtag.line { color: var(--muted); border-color: var(--line-2); }
.ktag { font: 600 11px var(--mono); color: var(--warm); border: 1px dashed var(--warm); padding: 0 6px; white-space: nowrap; }
.kern-legend > span { display: block; }
.kern-legend > span + span { margin-top: 4px; }
.kern-legend + .grid { margin-top: 20px; }
.tbl.kern a.mono { white-space: nowrap; }
.cves { margin: 6px 0 0; padding-left: 18px; font: 12.5px/1.45 var(--mono); columns: 11em 2; }  /* two columns only when they fit */
.cves li { break-inside: avoid; }

/* footer disclaimer */
.disc { flex-basis: 100%; margin: 6px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--faint); max-width: 900px; }

/* phones (<= 720px): last in the file so it wins over everything above; desktop is not affected.
   Table rows become cards: every cell on its own line, column name (data-label from render.py) on the left;
   long cells (changelog text, file lists) put the name above the value. */
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .grid { grid-template-columns: 1fr; }
  .run { margin-left: 0; }
  .bar { gap: 6px 12px; padding: 10px 16px 12px; }
  .tag { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; letter-spacing: .06em; }
  .lang { order: 2; margin-left: auto; }
  .main-nav { order: 3; flex-basis: 100%; margin-left: 0; }
  .main-nav ul { gap: 6px 14px; flex-wrap: wrap; }
  .main-nav a { white-space: nowrap; }
  h1, h2 { font-size: 22px; }
  h1 .muted, h2 .muted, h3 .muted { display: block; margin: 4px 0 0; font-size: 13px; }
  .h-home { margin-top: 28px; font-size: 30px; }
  .lead-text { font-size: 17px; }
  .status { padding: 12px 14px; font-size: 16px; }
  .status b { font-size: 19px; }
  .seclist li { grid-template-columns: 1fr; gap: 0; padding: 5px 0; }
  .fsep { display: none; }
  .card { padding: 12px 12px 10px; }
  .card header { flex-wrap: wrap; }
  .card header .pill { white-space: normal; }  /* the 7-day breakdown by branch is long (29.10) */
  .tbl.kern a.mono { white-space: normal; }  /* Bodhi ids (FEDORA-EPEL-2026-…) ran past the edge at 320 px (29.10) */
  pre.cl { max-width: none; }
  pre, .files, .pp, .mono, .note-pre, .foot { overflow-wrap: anywhere; }
  .files, .cves { columns: 1; }
  .foot { padding: 18px 16px 30px; }

  .card .tbl, section > .tbl, main > .tbl { overflow-x: visible; }
  .tbl, .tbl tbody, .tbl tr, .tbl td,
  .card .tbl tbody, section > .tbl tbody, main > .tbl tbody { display: block; width: 100%; }
  .tbl thead, .card .tbl thead, section > .tbl thead, main > .tbl thead { display: none; }
  .tbl { font-size: 14px; }
  .tbl tr { padding: 8px 6px 8px 10px; border-bottom: 1px solid var(--line); }
  .tbl tr:last-child { border-bottom: 0; }
  .tbl td { padding: 2px 0; border: 0; white-space: normal; min-width: 0; overflow-wrap: anywhere; }
  .tbl td:first-child, .tbl td.mono { white-space: normal; }
  .tbl.wide td:nth-child(5), .tbl.cl td:first-child, .tbl.cl td:nth-child(2) { min-width: 0; width: auto; }
  .tbl td:empty { display: none; }
  .tbl td[data-label] { position: relative; padding-left: 100px; }
  .tbl td[data-label]::before { content: attr(data-label); position: absolute; left: 0; top: 5px; width: 92px; font: 600 10.5px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
  .tbl td[data-label]:has(pre, details, ul) { padding-left: 0; }
  .tbl td[data-label]:has(pre, details, ul)::before { position: static; display: block; width: auto; margin: 4px 0 2px; }
  .tbl tr.fresh { background: rgba(245, 194, 107, .06); box-shadow: inset 3px 0 0 var(--warm); }
  .tbl tr.secrow { background: rgba(255, 123, 114, .07); box-shadow: inset 3px 0 0 var(--bad); }
  .tbl tr.fresh td, .tbl tr.secrow td, .tbl tr.fresh td:first-child, .tbl tr.secrow td:first-child { background: none; box-shadow: none; }
  .tbl.cl td:first-child, .tbl.cl td:nth-child(2) { display: inline; margin-right: 10px; color: var(--muted); }
  .tbl.kern time, .cves li { white-space: normal; }
}
/* very narrow phones (iPhone SE 1st gen, 320px): no room for the tagline next to RU/EN */
@media (max-width: 359px) {
  .tag { display: none; }
  .tbl .pill, .card header .pill { white-space: normal; }
  .pill.sec, .pill.prob, .pill.attn, .pill.new5 { min-width: 0 !important; }
}

/* account (/account/): buttons, notes, the registration text, the rows of what to follow */
.btn { display: inline-block; font: 600 14.5px var(--sans); padding: 9px 18px; border-radius: 8px; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.small { padding: 4px 12px; font-size: 13px; }
form.inline { display: inline; margin: 0; }
.acct-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.acct-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 12px 0 18px; }
.acct-bar .filters { margin: 0; }
.acct-note { margin: 12px 0; padding: 10px 14px; border-left: 3px solid var(--accent); background: rgba(92, 200, 255, .07); }
.acct-note.warn { border-left-color: var(--warm); background: rgba(245, 194, 107, .08); }
.acct-text { max-width: 860px; color: var(--body); }
.acct-text h2 { font-size: 20px; margin-top: 28px; }
.acct-text h3 { font-size: 16px; margin: 18px 0 6px; color: var(--text); }
.acct-text li { margin: 5px 0; }
.acct-form { margin: 18px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.agree { display: flex; gap: 10px; align-items: flex-start; max-width: 860px; cursor: pointer; }
.agree input, .acct-tbl input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); flex: none; margin: 3px 0 0; }
.acct-tbl td.ck { width: 1%; text-align: center; white-space: nowrap; padding-left: 14px; padding-right: 14px; }
.acct-tbl tr.on td { background: rgba(92, 200, 255, .05); }
.acct-tbl input:disabled { opacity: .35; cursor: not-allowed; }
.acct-save { margin: 14px 0; }
@media (max-width: 720px) {
  .acct-tbl td.ck { width: auto; text-align: left; padding: 2px 0 2px 100px; }
}

/* the account link in the header of every page: the one highlighted button */
.acct-link { font: 600 13.5px var(--sans); color: var(--on-accent); background: var(--accent); border: 1px solid var(--accent); border-radius: 6px; padding: 5px 12px; text-decoration: none; white-space: nowrap; }
.acct-link:hover { filter: brightness(1.1); }
.acct-link[aria-current="page"] { background: transparent; color: var(--accent); }
/* the account is in beta (0.9.x): a tag next to the title of its pages */
.stage-tag { display: inline-block; vertical-align: middle; margin-left: 10px; padding: 2px 9px; border: 1px solid var(--warm); border-radius: 999px; font: 700 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--warm); }
