/* protet.io design system (#1152 S5). One stylesheet for every server-rendered page, served as /static/site.<hash>.css
   (codeshieldapp/site_css.py). The portal SPA (static/app.html) keeps its own styles.

   Rules: one system sans stack, monospace for package names, commands and IOCs. Type scale 16/20/28/40 with 14 as the
   smallest size; body 16/1.6. Neutral surfaces, one accent (a placeholder until the logo lands, S8), red only for
   "confirmed malicious". 1px borders, 2px corners, no gradients. */

/* ---------- tokens ---------- */
:root, [data-theme="light"] {
  color-scheme: light;
  --bg: #faf9f6;
  --surface: #ffffff;
  --text: #1b1a17;
  --muted: #5f5d57;
  --border: #e6e2da;
  --accent: #56654c;          /* placeholder: set to the logo accent in S8 (never red) */
  --accent-hover: #48553f;
  --accent-fg: #ffffff;
  --danger: #b42318;          /* reserved for "confirmed malicious" */
  --danger-fg: #ffffff;
  --shadow: 0 1px 2px rgba(20,15,10,.06);   /* the approved hairline (#1179) */
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #161513;
  --surface: #1e1c19;
  --text: #f3f1ec;
  --muted: #a29c90;
  --border: #2f2c27;
  --accent: #9caf95;
  --accent-hover: #aebfa6;
  --accent-fg: #16241a;
  --danger: #ef7a6c;
  --danger-fg: #1a0d0b;
  --shadow: 0 0 0 1px rgba(255,255,255,.06);
}
:root {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --fs-sm: 14px;              /* the floor: nothing smaller */
  --fs-1: 16px;
  --fs-2: 20px;
  --fs-3: 28px;
  --fs-4: 40px;
  --max: 1080px;
  --read: 680px;
  --radius: 2px;
  --gutter: 20px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-sans); font-size: var(--fs-1); line-height: 1.6;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
}
h1, h2, h3, h4 { font-family: var(--font-sans); color: var(--text); line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; }
h3 { font-size: var(--fs-1); font-weight: 600; }
a { color: inherit; text-underline-offset: 2px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
code, pre, kbd, .mono { font-family: var(--font-mono); }
code { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); padding: .1em .35em; border-radius: var(--radius); font-size: .9em; overflow-wrap: anywhere; }
pre code { background: none; padding: 0; font-size: inherit; overflow-wrap: normal; }
.muted { color: var(--muted); }
.center { text-align: center; }

.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 14px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); }
.skip-link:focus { top: 12px; }
.page { min-height: 100%; display: flex; flex-direction: column; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--border); }
.header-inner { max-width: var(--max); margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; gap: 24px; }
.brand { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.wordmark { font-size: var(--fs-2); font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.site-header nav a, .site-footer a { text-decoration: none; }
.primary-nav { display: flex; align-items: center; gap: 24px; flex: 1; }
.primary-nav a, .nav-links a:not(.btn) { font-size: var(--fs-sm); font-weight: 500; color: var(--muted); white-space: nowrap; }
.primary-nav a:hover, .nav-links a:not(.btn):hover, .primary-nav a[aria-current="page"] { color: var(--text); }
.header-right { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; margin-left: auto; }
.nav-links { display: flex; align-items: center; gap: 16px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 40px; height: 40px; padding: 0; margin: 0; background: transparent; color: var(--muted);
  border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer;
}
.icon-btn:hover { color: var(--text); border-color: var(--muted); }
.icon-btn svg { width: 20px; height: 20px; display: block; }
.nav-toggle { display: none; }
@media (max-width: 860px) {
  .header-inner { position: relative; gap: 12px; }
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 4px var(--gutter) 12px;
  }
  .site-header.nav-open .primary-nav { display: flex; }
  .primary-nav a { padding: 12px 0; font-size: var(--fs-1); }
}
@media (max-width: 420px) { .header-right, .nav-links { gap: 8px; } }

/* ---------- layout ---------- */
.site-main { flex: 1; padding: 0 var(--gutter); }
.site-main:focus { outline: none; }
.container-article { max-width: var(--read); margin: 0 auto; padding: 56px 0 88px; }
.band { padding: 80px var(--gutter); margin: 0 calc(-1 * var(--gutter)); }
.band.flush-top { padding-top: 0; }
.band.flush-bottom { padding-bottom: 0; }
.band-tint { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band-inner { max-width: var(--read); margin: 0 auto; }
.band-inner.wide { max-width: var(--max); }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 940px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } .band { padding-top: 56px; padding-bottom: 56px; } }
.mt-0 { margin-top: 0; }
.mt { margin-top: 24px; }
.push-down { margin-top: auto; padding-top: 16px; }

/* ---------- type ---------- */
.headline { font-size: var(--fs-3); font-weight: 650; margin: 0 0 12px; }
.subtitle { color: var(--muted); font-size: var(--fs-1); margin: 0 0 32px; }
.eyebrow { font-size: var(--fs-sm); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.eyebrow.accent { color: var(--accent); }
.eyebrow a { text-decoration: none; }
.eyebrow .mono { text-transform: none; letter-spacing: 0; }
.hero { padding: 88px 0 72px; text-align: center; }
.hero-inner { max-width: var(--read); margin: 0 auto; }
.hero .headline { font-size: var(--fs-4); line-height: 1.15; margin: 0 0 20px; }
.hero .subtitle { font-size: var(--fs-2); line-height: 1.5; margin: 0 auto 32px; }
@media (max-width: 560px) { .hero { padding: 56px 0 48px; } .hero .headline { font-size: var(--fs-3); } .hero .subtitle { font-size: var(--fs-1); } }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-ctas.mt { margin-top: 28px; }
.section-head { text-align: center; margin: 0 auto 40px; }
.section-head h2 { font-size: var(--fs-3); font-weight: 650; margin: 0 0 12px; }
.section-head p { color: var(--muted); margin: 0; }
.section-head p + p { margin-top: 16px; }
.band-inner.wide .section-head { max-width: var(--read); }
.section-head:last-child { margin-bottom: 0; }   /* a band that is only a heading block ends at its text */
.cta-band { text-align: center; }
.cta-band h2 { font-size: var(--fs-3); font-weight: 650; margin: 0 0 12px; }
.cta-band p { margin: 0 0 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; margin: 0; padding: 12px 22px; min-height: 44px;
  background: var(--accent); color: var(--accent-fg); border: 1px solid var(--accent); border-radius: var(--radius);
  font: 600 var(--fs-sm)/1.4 var(--font-sans); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-fg); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { background: transparent; color: var(--text); border-color: var(--muted); }
.btn-sm { padding: 8px 14px; min-height: 40px; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- panels and cards ---------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; margin-bottom: 20px; }
section.panel:last-child, .panel:last-child { margin-bottom: 0; }
.panel > :last-child { margin-bottom: 0; }
.grid-2 > .panel, .grid-3 > .panel, .grid-4 > .panel { margin-bottom: 0; }
@media (max-width: 560px) { .panel { padding: 20px; } }
.feature-card h3, .panel > h3 { font-size: var(--fs-2); margin: 0 0 8px; }
.feature-card p { color: var(--muted); margin: 0 0 12px; }
.feature-card p:last-child { margin-bottom: 0; }
.step-num { font-size: var(--fs-3); font-weight: 650; color: var(--accent); margin: 0 0 8px; line-height: 1; }
.callout, .docs-note { border-left: 2px solid var(--accent); background: var(--surface); padding: 12px 16px; margin: 0 0 24px; color: var(--muted); }
.callout { border: 1px solid var(--border); border-left: 2px solid var(--accent); border-radius: var(--radius); }
.docs-note { padding: 4px 0 4px 16px; background: none; }
.callout p, .docs-note p { margin: 0 0 8px; }
.callout p:last-child, .docs-note p:last-child { margin: 0; }
/* A notice, not a threat: red stays reserved for "confirmed malicious". */
.docs-callout { border: 1px solid var(--border); border-left: 2px solid var(--text); background: var(--surface); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 24px; }
.docs-callout p { margin: 0 0 8px; }
.docs-callout p:last-child { margin: 0; }

/* Outcome card: one flagged build session, its commands and the reason it was flagged. */
.finding-card { display: flex; flex-direction: column; min-width: 0; }
.finding-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 12px; margin-bottom: 16px; }
.finding-pod { font-family: var(--font-mono); font-weight: 600; margin: 0; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.finding-head .pill { flex: 0 0 auto; }
.cmd-seq { font-family: var(--font-mono); font-size: var(--fs-sm); line-height: 1.6; min-width: 0; }
.cmd-line { padding: 2px 8px; margin: 1px -8px; color: var(--muted); overflow-wrap: anywhere; }
.cmd-line.flagged { color: var(--text); border-left: 2px solid var(--danger); padding-left: 6px; background: color-mix(in srgb, var(--danger) 8%, transparent); }
.cmd-flag-badge, .attribution-rank {
  display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; margin-right: 8px; padding: 0 4px;
  border-radius: var(--radius); font: 700 var(--fs-sm)/1 var(--font-sans); vertical-align: middle;
}
.cmd-flag-badge { background: var(--danger); color: var(--danger-fg); }
.attribution-rank { flex: 0 0 auto; margin: 0; background: var(--bg); border: 1px solid var(--border); color: var(--muted); }
.attribution-label, .finding-json-label { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); margin: 20px 0 8px; }
.finding-json-label { margin-top: 0; }
.attribution-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); }
.attribution-row:first-of-type { border-top: 0; }
.attribution-cmd { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.attribution-tag { flex: 0 0 auto; font-size: var(--fs-sm); color: var(--muted); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 6px; }
.finding-note { font-size: var(--fs-sm); margin: 12px 0 0; }
.finding-json { margin-top: 16px; min-width: 0; }
.finding-json.panel { margin-top: 0; }
.finding-json pre { margin: 0; }
.card-link { font-size: var(--fs-sm); }

/* Pills and tags. The danger pill is text on the page surface, so its contrast is the danger token's own (>= 5.5:1). */
.pill, .in-tag, .tag {
  display: inline-block; padding: 0 8px; border-radius: var(--radius); border: 1px solid var(--border);
  font-size: var(--fs-sm); font-weight: 600; line-height: 1.6; color: var(--muted); background: var(--surface); white-space: nowrap; vertical-align: baseline;
}
.pill.danger, .in-tag.tp { color: var(--danger); border-color: var(--danger); }
.tag.obs { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.tag.src { border-color: var(--muted); }
.tag.ret { background: var(--text); border-color: var(--text); color: var(--bg); }

/* Stat strip: <dl class="stat-strip"><div><dt>label</dt><dd>value</dd></div>…</dl>; the value reads first. */
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 24px 0 8px; }
.stat-strip > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 12px 14px; }
.stat-strip dd { margin: 0; font-size: var(--fs-3); font-weight: 650; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat-strip dt { font-size: var(--fs-sm); color: var(--muted); margin-top: 4px; line-height: 1.4; }
.stat-strip .danger dd, .stat-inline .danger { color: var(--danger); }
.stat-strip .note { display: block; }
.stat-inline { color: var(--muted); margin: 4px 0 12px; }
.stat-inline strong { font-size: var(--fs-2); font-variant-numeric: tabular-nums; }

/* Code block: <pre> gets a copy button from base.html's script. */
pre { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 16px;
  overflow-x: auto; font-size: var(--fs-sm); line-height: 1.55; }
/* The button floats right inside the block and the <pre> (its own scroll box) sits beside it, so code never runs under it. */
.code-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin: 0 0 16px; }
.code-block pre { margin: 0; border: 0; background: none; }
.copy-btn {
  float: right; margin: 6px 6px 0 4px; min-width: 56px; min-height: 32px; padding: 4px 10px;
  font: 600 var(--fs-sm)/1 var(--font-sans); color: var(--muted); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer;
}
.copy-btn:hover { color: var(--text); border-color: var(--muted); }
.keyblock { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
.cmt { color: var(--muted); }

/* Report summary box: the facts of one report (status, record, identifiers) above its body. */
.report-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; margin: 0 0 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }

/* Verdict box (for /check, S7): .verdict for "no confirmed record", .verdict.malicious for a confirmed Protet Intel record. */
.verdict { border: 1px solid var(--border); border-left: 4px solid var(--muted); border-radius: var(--radius); background: var(--surface); padding: 16px 20px; margin: 0 0 24px; }
.verdict .verdict-title { font-size: var(--fs-2); font-weight: 650; margin: 0 0 4px; }
.verdict p { margin: 0; }
.verdict > :last-child { margin-bottom: 0; }
.verdict.malicious { border-color: var(--danger); border-left-color: var(--danger); }
.verdict.malicious .verdict-title { color: var(--danger); }

/* Data table: any table in .table-wrap / .docs-table-wrap / .compare-wrap scrolls inside its wrapper on narrow screens. */
.table-wrap, .docs-table-wrap, .compare-wrap { overflow-x: auto; margin: 0 0 20px; }
.compare-wrap { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.compare, .docs-table, .data-table { border-collapse: collapse; width: 100%; font-size: var(--fs-sm); }
table.compare { min-width: 620px; }
.docs-table { min-width: 520px; }
table.compare th, table.compare td, .docs-table th, .docs-table td, .data-table th, .data-table td {
  text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
table.compare thead th, .docs-table thead th, .data-table thead th { color: var(--muted); font-weight: 600; white-space: nowrap; }
table.compare tbody tr:last-child > * { border-bottom: none; }
table.compare td.yes { color: var(--accent); font-weight: 600; }
td.num { font-variant-numeric: tabular-nums; }
tr.mark td { background: color-mix(in srgb, var(--accent) 8%, transparent); }

/* ---------- article / docs ---------- */
.article h1.headline { font-size: var(--fs-3); }
.article h2 { font-size: var(--fs-2); font-weight: 650; margin: 40px 0 12px; }
.article h3 { font-size: var(--fs-1); font-weight: 600; margin: 28px 0 8px; }
.article p { margin: 0 0 16px; }
.article ul, .article ol { margin: 0 0 16px; padding-left: 22px; }
.article li { margin-bottom: 6px; }
.docs-crumbs { font-size: var(--fs-sm); color: var(--muted); margin: 0 0 20px; }
.docs-crumbs a { color: var(--muted); }
.docs-index-grid, .research-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px 0 32px; }
@media (max-width: 640px) { .docs-index-grid, .research-nav { grid-template-columns: 1fr; } }
.docs-index-card, .research-nav a { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; text-decoration: none; }
.docs-index-card:hover, .research-nav a:hover { border-color: var(--muted); color: inherit; }
.docs-index-card h3 { margin: 0 0 6px; }
.docs-index-card p, .research-nav span { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.research-nav strong { display: block; margin-bottom: 4px; }
.docs-toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 18px 4px; margin: 0 0 28px; }
.docs-toc ul { margin: 0 0 8px; padding-left: 18px; }
.docs-footer-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.post-list, .disclosure-list { list-style: none; padding: 0; margin: 0; }
.article .post-list, .article .disclosure-list { padding: 0; }
.post-list li, .disclosure-list li { border-top: 1px solid var(--border); padding: 20px 0; margin: 0; }
.post-list li p, .disclosure-list li p { margin: 6px 0 0; color: var(--muted); }
.post-list .meta, .disclosure-list .meta { color: var(--muted); font-size: var(--fs-sm); margin-left: 8px; }

/* Spec rows: a label column and its text, one row per product stage (/how-it-works). */
.spec-rows { border-bottom: 1px solid var(--border); }
.spec-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 8px 40px; padding: 32px 0; border-top: 1px solid var(--border); }
.spec-row h3 { font-size: var(--fs-2); margin: 0; }
.spec-row p, .spec-row ul { margin: 0 0 12px; max-width: var(--read); }
.spec-row ul { padding-left: 20px; }
.spec-row li { margin-bottom: 8px; }
.spec-row > div > :last-child { margin-bottom: 0; }
@media (max-width: 720px) { .spec-row { grid-template-columns: minmax(0, 1fr); padding: 24px 0; } }

/* Contact block: label and value pairs (/about). */
.contact-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 24px; margin: 0 0 16px; }
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- pricing ---------- */
.card-flow { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.card-flow > * { flex: 1 1 230px; max-width: 300px; margin-bottom: 0; }
.pricing-card { display: flex; flex-direction: column; align-self: stretch; }
.pricing-card-featured { border-color: var(--accent); }
.pricing-card .price { font-size: var(--fs-3); font-weight: 650; margin: 4px 0; }
.pricing-card ul { list-style: none; margin: 16px 0 0; padding: 0; flex: 1; }
.pricing-card li { padding: 8px 0; border-top: 1px solid var(--border); }
.pricing-card li:first-child { border-top: 0; }
.pricing-card .btn { margin-top: 24px; text-align: center; }
.pop-badge { align-self: flex-start; font-size: var(--fs-sm); font-weight: 600; color: var(--accent); border: 1px solid var(--accent); border-radius: var(--radius); padding: 0 8px; margin: 0 0 12px; }

/* ---------- home: deployment band ---------- */
.onprem-band .band-inner { text-align: center; }
.onprem-band h2 { font-size: var(--fs-3); font-weight: 650; margin: 0 0 12px; }
.onprem-band p { color: var(--muted); margin: 0 auto 24px; }
.onprem-marks { display: flex; gap: 12px 28px; justify-content: center; flex-wrap: wrap; }
.onprem-marks span { font-size: var(--fs-sm); font-weight: 500; }
.onprem-marks span::before { content: "\2713\00a0"; color: var(--accent); font-weight: 700; }

/* ---------- Protet Intel ---------- */
.in-meta { font-size: var(--fs-sm); color: var(--muted); margin: 8px 0 24px; }
.in-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.in-row { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 16px; text-decoration: none; color: inherit; border-top: 1px solid var(--border); }
.in-row:first-child { border-top: none; }
.in-row:hover { background: var(--bg); color: inherit; }
.in-row .pkg { flex: 1; min-width: 0; font-family: var(--font-mono); font-weight: 600; overflow-wrap: anywhere; }
.in-row .ver { color: var(--muted); font-weight: 400; }
.in-row .date { font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; }
@media (max-width: 520px) { .in-row { flex-wrap: wrap; } .in-row .pkg { flex-basis: 100%; order: -1; } }
.in-sec { margin-top: 32px; }
.in-sec h2 { margin: 0 0 8px; }
.in-note { margin: 16px 0; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.in-ioc code { display: block; margin: 2px 0; }
.in-pager { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-size: var(--fs-sm); }
.in-pager a { display: inline-flex; align-items: center; min-height: 44px; }
.in-empty { padding: 28px 16px; text-align: center; color: var(--muted); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.pkg-title { font-family: var(--font-mono); font-weight: 600; overflow-wrap: anywhere; }
.pkg-title .ver { color: var(--muted); font-weight: 400; }
.pkg-name { font-family: var(--font-mono); overflow-wrap: anywhere; }
.in-row .count { font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; }
.intro { margin: 0 0 8px; }
.in-text p:last-child { margin-bottom: 8px; }
.data-table a.mono { font-weight: 600; }

/* /check: one row of fields on wide screens, stacked on narrow ones. */
.check-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin: 0 0 24px; }
.check-form .field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 260px; min-width: 0; }
.check-form .field-version { flex: 0 1 160px; }
.check-form label { font-size: var(--fs-sm); font-weight: 600; }
.check-form input { font: var(--fs-1)/1.4 var(--font-mono); color: var(--text); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 9px 12px; min-height: 44px; width: 100%; }
.check-form input::placeholder { color: var(--muted); }
.check-form input:focus-visible { border-color: var(--accent); }
.check-form .btn { min-height: 44px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: auto; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; }
.footer-brand .wordmark { font-size: var(--fs-1); }
.footer-tagline, .footer-copy { color: var(--muted); font-size: var(--fs-sm); margin: 6px 0 0; max-width: 280px; }
.footer-nav { display: flex; flex-direction: column; gap: 4px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; }
.footer-row a { font-size: var(--fs-sm); color: var(--text); padding: 6px 0; }
.footer-row a:hover { color: var(--accent); }
.footer-row-title { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); }
