/* Squirro k3s repository page. No external fonts, scripts or images: the page must work behind proxies and offline mirrors. */
:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --text: #17202e;
  --muted: #5a6779;
  --line: #d8dfe9;
  --accent: #0d6e8c;
  --accent-2: #0a566f;
  --accent-soft: #e0f2f7;
  --ok: #1d7a46;
  --ok-soft: #e1f4e8;
  --warn: #9a6200;
  --warn-soft: #fdf1d9;
  --bad: #a3262a;
  --bad-soft: #fbe4e4;
  --code-bg: #101827;
  --code-text: #e6edf7;
  --code-muted: #8a99b3;
  --shadow: 0 1px 2px rgba(16, 24, 39, .06), 0 4px 16px rgba(16, 24, 39, .05);
  --radius: 12px;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1320;
    --surface: #151d2e;
    --surface-2: #1b2539;
    --text: #e6ecf5;
    --muted: #9aa8bf;
    --line: #28344c;
    --accent: #4cc2e0;
    --accent-2: #7ed3ea;
    --accent-soft: #11313c;
    --ok: #5dd18b;
    --ok-soft: #12301f;
    --warn: #f0b84d;
    --warn-soft: #34270d;
    --bad: #f08a8d;
    --bad-soft: #3a1618;
    --code-bg: #0a0f1a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 16px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: .5rem 1rem; z-index: 30; }
.skip:focus { left: 0; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }

header.hero { background: linear-gradient(135deg, #0a3f52 0%, #0d6e8c 55%, #1597a8 100%); color: #fff; padding: 48px 0 56px; }
header.hero h1 { margin: 0 0 .35rem; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; letter-spacing: -.02em; }
header.hero p { margin: 0; max-width: 46rem; font-size: 1.08rem; color: rgba(255, 255, 255, .9); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .7rem; border-radius: 999px; font-size: .82rem; font-weight: 600; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); color: #fff; }
.chip svg { width: 14px; height: 14px; }

nav.toc { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
nav.toc ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: .4rem 0; overflow-x: auto; }
nav.toc a { display: block; padding: .35rem .8rem; border-radius: 8px; text-decoration: none; color: var(--muted); font-size: .92rem; font-weight: 600; white-space: nowrap; }
nav.toc a:hover { background: var(--surface-2); color: var(--text); }

main { padding: 28px 0 56px; }
section { margin: 0 0 40px; }
h2 { font-size: 1.5rem; margin: 0 0 .5rem; letter-spacing: -.01em; }
h3 { font-size: 1.08rem; margin: 1.6rem 0 .4rem; }
p { margin: .5rem 0 1rem; }
.lead { color: var(--muted); max-width: 46rem; }
.muted { color: var(--muted); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; margin: 0 0 16px; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
ol.steps > li { counter-increment: step; position: relative; padding: 0 0 22px 52px; }
ol.steps > li:last-child { padding-bottom: 0; }
ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-2); font-weight: 700; display: grid; place-items: center; }
ol.steps > li::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px; width: 2px; background: var(--line); }
ol.steps > li:last-child::after { display: none; }
ol.steps h3 { margin: 0 0 .15rem; }
ol.steps p { margin: .15rem 0 .5rem; color: var(--muted); }

.code { position: relative; margin: .5rem 0 .75rem; }
pre { margin: 0; background: var(--code-bg); color: var(--code-text); border-radius: 10px; padding: 14px 72px 14px 16px; overflow-x: auto; font: .88rem/1.55 var(--mono); border: 1px solid #1f2a40; }
pre .c { color: var(--code-muted); }
.code button.copy { position: absolute; top: 8px; right: 8px; border: 1px solid #33425e; background: #1b2740; color: #c9d6ec; border-radius: 8px; padding: .2rem .6rem; font: 600 .75rem var(--sans); cursor: pointer; opacity: .85; }
.code button.copy:hover { opacity: 1; background: #24334f; }
.code button.copy.done { background: #12301f; color: #5dd18b; border-color: #1d5a37; }
code { font: .9em var(--mono); background: var(--surface-2); padding: .1rem .35rem; border-radius: 5px; }
pre code { background: none; padding: 0; font-size: inherit; }

.note { display: flex; gap: .7rem; border-radius: 10px; padding: .75rem 1rem; margin: 1rem 0; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); font-size: .95rem; }
.note.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.note > :first-child { margin-top: 0; }
.note > :last-child { margin-bottom: 0; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .7rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td.pkg { font-weight: 700; white-space: nowrap; }
td.pkg code { background: none; padding: 0; font-weight: 700; font-size: 1em; }
.ver { font-family: var(--mono); font-size: .88rem; white-space: nowrap; }
details summary { cursor: pointer; color: var(--muted); font-size: .85rem; }
details .ver { display: block; }
.badge { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; }
.badge.current { background: var(--ok-soft); color: var(--ok); }
.badge.retired { background: var(--warn-soft); color: var(--warn); }
.badge.revoked { background: var(--bad-soft); color: var(--bad); }
.badge.new { background: var(--accent-soft); color: var(--accent-2); }

.keys { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.key .fpr { font: 600 1rem/1.5 var(--mono); letter-spacing: .02em; word-break: break-word; margin: .35rem 0 .6rem; }
.key dl { display: grid; grid-template-columns: max-content 1fr; gap: .15rem 1rem; margin: 0 0 .75rem; font-size: .9rem; }
.key dt { color: var(--muted); }
.key dd { margin: 0; }

footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: .88rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

@media (max-width: 640px) {
  /* the package table becomes a list of cards */
  .table-scroll { border: 0; background: none; box-shadow: none; overflow: visible; }
  table, tbody, tr, td { display: block; width: 100%; }
  thead { position: absolute; left: -999px; }
  tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 0 12px; padding: .4rem 0; }
  td { border: 0; padding: .35rem 1rem; }
  td::before { content: attr(data-label); display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
  td.pkg::before { display: none; }
  td.pkg { white-space: normal; }
  header.hero { padding: 32px 0 40px; }
  .card { padding: 16px; }
  ol.steps > li { padding-left: 44px; }
  th, td { padding: .6rem .7rem; }
}
@media print {
  nav.toc, .code button.copy, .skip { display: none; }
  header.hero { background: none; color: #000; padding: 0; }
  header.hero p, .chip { color: #000; border-color: #888; }
  pre { background: #f3f3f3; color: #000; border-color: #bbb; }
}
