/* Chemart Hub — one stylesheet, light and dark, no build step. */

:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-2: #f4f5f4;
  --border: #e5e7e6;
  --border-strong: #d4d7d5;
  --text: #121614;
  --muted: #5f6763;
  --faint: #8a918d;
  --accent: #0d9488;
  --accent-strong: #0f766e;
  --accent-soft: #e6f6f3;
  --accent-ink: #ffffff;
  --net: #4f46e5;
  --net-soft: #eef0ff;
  --warn: #9a5b06;
  --warn-soft: #fff7e6;
  --warn-border: #f3d9a4;
  --danger: #b42318;
  --danger-soft: #fef1ef;
  --shadow: 0 1px 2px rgb(16 24 20 / 0.04), 0 4px 16px rgb(16 24 20 / 0.04);
  --shadow-hover: 0 2px 4px rgb(16 24 20 / 0.06), 0 10px 28px rgb(16 24 20 / 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "JetBrains Mono", "DejaVu Sans Mono", "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f0e;
    --surface: #111715;
    --surface-2: #161d1b;
    --border: #212a27;
    --border-strong: #2d3834;
    --text: #e6ebe9;
    --muted: #9aa5a0;
    --faint: #6f7a76;
    --accent: #2dd4bf;
    --accent-strong: #5eead4;
    --accent-soft: #0f2a26;
    --accent-ink: #042f2a;
    --net: #a5b4fc;
    --net-soft: #1b1f3a;
    --warn: #f5c26b;
    --warn-soft: #2a2110;
    --warn-border: #4d3a14;
    --danger: #ff8a7a;
    --danger-soft: #2c1512;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3);
    --shadow-hover: 0 8px 24px rgb(0 0 0 / 0.45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
code, pre, kbd { font-family: var(--mono); font-size: 0.9em; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; }
h1 { font-size: 1.9rem; margin: 0 0 0.4rem; }
h2 { font-size: 1.2rem; margin: 2rem 0 0.8rem; }
h3 { font-size: 1rem; margin: 1.4rem 0 0.5rem; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

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

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 18px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 26px; height: 26px; color: var(--accent); flex: none; }
.brand .che { color: var(--faint); font-weight: 500; }
.brand .mart { color: var(--text); }
.brand .pill { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent-strong); background: var(--accent-soft); border-radius: 999px; padding: 2px 8px; }
.header-search { flex: 1; max-width: 420px; }
.header-search input { width: 100%; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a, .site-nav button.linkish { color: var(--muted); padding: 6px 10px; border-radius: var(--radius-sm); font-weight: 500; }
.site-nav a:hover, .site-nav button.linkish:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.site-nav form { margin: 0; }
.site-nav .me { color: var(--text); font-weight: 600; }
.site-nav a.btn-primary, .site-nav a.btn-primary:hover { color: var(--accent-ink); background: var(--accent); margin-left: 4px; }
.site-nav a.btn-primary:hover { background: var(--accent-strong); }

/* ---------------------------------------------------------------- forms */
input[type=text], input[type=search], input[type=password], input[type=email], select, textarea {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 8px 11px; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
label { display: block; font-weight: 600; font-size: 0.88rem; margin: 14px 0 6px; }
.btn, button {
  font: inherit; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); padding: 7px 14px; line-height: 1.3; transition: background .15s, border-color .15s;
}
.btn:hover, button:hover { background: var(--surface-2); text-decoration: none; }
.btn-primary, button.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover, button.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
button.linkish { border: 0; background: none; padding: 0; font-weight: 500; }
.btn-sm { padding: 4px 10px; font-size: 0.85rem; }
.form-card { max-width: 420px; margin: 56px auto; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 28px 24px; box-shadow: var(--shadow); }
.form-card h1 { font-size: 1.5rem; }
.form-card input { width: 100%; }
.form-card .btn-primary { width: 100%; justify-content: center; margin-top: 20px; padding: 10px; }
.form-foot { margin-top: 16px; font-size: 0.9rem; color: var(--muted); text-align: center; }

/* ---------------------------------------------------------------- notices */
.notice { border: 1px solid var(--border); background: var(--surface-2); border-radius: var(--radius-sm);
  padding: 12px 14px; margin: 16px 0; font-size: 0.93rem; }
.notice.warn { background: var(--warn-soft); border-color: var(--warn-border); color: var(--text); }
.notice.warn strong { color: var(--warn); }
.notice.error { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.notice.ok { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.notice ul { margin: 6px 0 0; padding-left: 20px; }

/* ---------------------------------------------------------------- badges & chips */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 0.76rem; font-weight: 600;
  border-radius: 999px; padding: 2px 9px; border: 1px solid transparent; white-space: nowrap; }
.badge-generator { color: var(--accent-strong); background: var(--accent-soft); }
.badge-network { color: var(--net); background: var(--net-soft); }
.badge-code { color: var(--warn); background: var(--warn-soft); border-color: var(--warn-border); }
.badge-official { color: var(--accent-ink); background: var(--accent); }
.badge-plain { color: var(--muted); background: var(--surface-2); border-color: var(--border); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 0.8rem; color: var(--muted); background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 2px 10px; }
a.chip:hover { color: var(--accent-strong); border-color: var(--accent); text-decoration: none; }
.chip.on { color: var(--accent-strong); border-color: var(--accent); background: var(--accent-soft); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dot-generator { background: var(--accent); }
.dot-network { background: var(--net); }

/* ---------------------------------------------------------------- home */
.hero { padding: 36px 0 12px; text-align: center; }
.banner-box { display: flex; justify-content: center; overflow-x: auto; padding: 8px 0 2px; }
.banner { margin: 0; font-family: "DejaVu Sans Mono", var(--mono); font-size: clamp(6.5px, 1.45vw, 13.5px);
  line-height: 1.05; color: var(--text); text-align: left; letter-spacing: 0; }
.hero h1 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); margin: 26px 0 8px; }
.hero p.lede { color: var(--muted); font-size: 1.08rem; max-width: 640px; margin: 0 auto; }
.hero-search { display: flex; gap: 8px; max-width: 560px; margin: 24px auto 10px; }
.hero-search input { flex: 1; padding: 11px 14px; font-size: 1rem; border-radius: 10px; }
.hero-search button { padding: 0 20px; border-radius: 10px; }
.stock { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 0.92rem; margin: 14px 0 6px; }
.stock b { color: var(--text); font-size: 1.05rem; }
.open-sign { color: var(--accent-strong); font-weight: 600; }
.quickstart { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin: 30px 0 6px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 34px 0 12px; }
.section-head h2 { margin: 0; }

/* ---------------------------------------------------------------- tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.tile { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px; color: var(--text); box-shadow: var(--shadow);
  transition: box-shadow .18s, transform .18s, border-color .18s; min-width: 0; }
.tile:hover { text-decoration: none; box-shadow: var(--shadow-hover); transform: translateY(-1px); border-color: var(--border-strong); }
.tile-id { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 0.85rem; color: var(--muted); min-width: 0; }
.tile-id span.name { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-title { font-weight: 650; font-size: 0.98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-summary { margin: 0; color: var(--muted); font-size: 0.87rem; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.tile-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 0.78rem; color: var(--faint); margin-top: auto; padding-top: 4px; }
.tile-meta .badge { font-size: 0.7rem; padding: 1px 7px; }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; border: 1px dashed var(--border-strong); border-radius: var(--radius); }

/* ---------------------------------------------------------------- browse */
.browse { display: grid; grid-template-columns: 250px 1fr; gap: 28px; margin-top: 28px; }
.filters { position: sticky; top: 80px; align-self: start; max-height: calc(100vh - 100px); overflow-y: auto; padding-right: 4px; }
.filters h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); margin: 18px 0 8px; }
.filters h3:first-child { margin-top: 0; }
.filters .chips { gap: 5px; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.results-head form { display: flex; gap: 8px; align-items: center; }
.pager { display: flex; justify-content: center; gap: 8px; margin: 26px 0; align-items: center; }

/* ---------------------------------------------------------------- repo page */
.repo-head { border-bottom: 1px solid var(--border); background: var(--surface); }
.repo-head .wrap { padding-top: 26px; }
.repo-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.repo-title h1 { font-family: var(--mono); font-size: 1.45rem; font-weight: 500; margin: 0; letter-spacing: -0.01em; }
.repo-title h1 a { color: var(--muted); }
.repo-title h1 b { color: var(--text); font-weight: 700; }
.repo-title .spacer { flex: 1; }
.repo-sub { color: var(--muted); margin: 8px 0 0; font-size: 0.95rem; }
.repo-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.likebox { display: flex; align-items: center; gap: 8px; }
.likebox form { margin: 0; }
.likebox .liked { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.tabs { display: flex; gap: 2px; margin-top: 18px; }
.tabs a { padding: 9px 14px; color: var(--muted); border-bottom: 2px solid transparent; font-weight: 550; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.on { color: var(--text); border-bottom-color: var(--accent); }
.repo-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; margin: 26px auto 60px; }
.repo-body > *, .browse > *, .quickstart > * { min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 16px; }
.quickstart > .panel { margin: 0; }
.panel h2 { margin: 0 0 12px; font-size: 1rem; }
.panel h2.sm, aside .panel h2 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); font-weight: 650; }
aside .panel { padding: 16px; }
.intuition { font-size: 1.02rem; line-height: 1.65; }
dl.sra { display: grid; grid-template-columns: 34px 1fr; gap: 10px 12px; margin: 0; }
dl.sra dt { font-family: var(--mono); font-weight: 700; color: var(--accent-strong); font-size: 1.05rem; }
dl.sra dd { margin: 0; }
dl.sra dd { min-width: 0; overflow-wrap: anywhere; }
dl.sra dd .scheme { font-family: var(--mono); font-size: 0.85rem; background: var(--surface-2); border-radius: 6px; padding: 2px 6px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone; line-height: 1.8; }
dl.meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 0.88rem; }
dl.meta dt { color: var(--faint); }
dl.meta dd { margin: 0; overflow-wrap: anywhere; }
table { border-collapse: collapse; width: 100%; font-size: 0.88rem; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.params td:first-child { font-family: var(--mono); font-weight: 600; white-space: nowrap; }
.params td.default { font-family: var(--mono); white-space: nowrap; }
.role { font-size: 0.72rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.04em; }
.table-scroll { overflow-x: auto; }

/* code blocks and snippets */
.snippet { position: relative; }
.snippet pre, pre.block { margin: 0; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; overflow-x: auto; font-size: 0.82rem; line-height: 1.55; }
.snippet .copy { position: absolute; top: 7px; right: 7px; font-size: 0.72rem; padding: 3px 8px; opacity: 0; transition: opacity .15s; }
.snippet:hover .copy, .snippet .copy:focus { opacity: 1; }
.snippet + .snippet { margin-top: 10px; }
.snippet-label { font-size: 0.78rem; color: var(--faint); margin: 12px 0 5px; }
.reactions { max-height: 380px; }

/* markdown cards */
.markdown { overflow-wrap: anywhere; }
.markdown > :first-child { margin-top: 0; }
.markdown h1 { font-size: 1.5rem; }
.markdown h2 { font-size: 1.2rem; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.markdown pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; overflow-x: auto; font-size: 0.84rem; }
.markdown code { background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }
.markdown pre code { background: none; padding: 0; }
.markdown img { max-width: 100%; }
.markdown table { margin: 12px 0; }
.markdown blockquote { margin: 12px 0; padding: 4px 14px; border-left: 3px solid var(--border-strong); color: var(--muted); }

/* files */
.files td { font-size: 0.9rem; }
.files td.size, .files td.sha { color: var(--faint); font-family: var(--mono); font-size: 0.8rem; white-space: nowrap; }
.files a.file { font-family: var(--mono); }
.file-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); border-radius: var(--radius) var(--radius) 0 0; }
.file-view { padding: 0; overflow: hidden; }
.file-view .code { overflow-x: auto; padding: 12px 16px; font-size: 0.84rem; line-height: 1.55; }
.file-view .code pre { margin: 0; }
.file-view .markdown { padding: 18px 22px; }
.commit-list li { list-style: none; padding: 12px 0; border-bottom: 1px solid var(--border); display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.commit-list { padding: 0; margin: 0; }
.commit-list .msg { font-weight: 600; flex: 1; min-width: 200px; }
.sha-pill { font-family: var(--mono); font-size: 0.8rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 7px; color: var(--text); }

/* profile */
.profile-head { display: flex; align-items: center; gap: 18px; margin: 34px 0 10px; }
.avatar { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font-weight: 700; font-size: 1.6rem;
  color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--net)); flex: none; }
.avatar.org { border-radius: 14px; }

/* footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 60px; padding: 26px 0 40px; color: var(--faint); font-size: 0.85rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* token box */
.token-box { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.token-box input { flex: 1; font-family: var(--mono); font-size: 0.85rem; }
.inline-form { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.inline-form label { margin: 0 0 6px; }
.revoked td { color: var(--faint); text-decoration: line-through; }

/* error page */
.error-page { text-align: center; padding: 70px 20px; }
.error-page .code { font-family: var(--mono); font-size: 4rem; font-weight: 700; color: var(--accent); line-height: 1; }

/* ---------------------------------------------------------------- curation */
.small { font-size: 0.82rem; }
.spacer { flex: 1; }
form.inline { display: inline-flex; margin: 0; }
.action-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.site-nav a.admin-link { color: var(--accent-strong); font-weight: 650; }
.announcement { background: var(--accent-soft); border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.announcement .wrap { padding-top: 10px; padding-bottom: 10px; font-size: 0.93rem; text-align: center; }
.announcement p { margin: 0; }
.badge-featured { color: #7a4d00; background: #fff1c7; border-color: #f2d27a; }
.badge-hidden { color: var(--danger); background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
@media (prefers-color-scheme: dark) {
  .badge-featured { color: #ffd66b; background: #2e2408; border-color: #5a4512; }
}
.tabs a.tab-edit { margin-left: auto; color: var(--accent-strong); }
.btn.on { border-color: var(--accent); color: var(--accent-strong); background: var(--accent-soft); }
.btn-danger, button.btn-danger { color: #fff; background: var(--danger); border-color: var(--danger); }
.btn-danger:hover, button.btn-danger:hover { background: color-mix(in srgb, var(--danger) 85%, #000); }
.btn-danger-outline { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); }
.btn-danger-outline:hover { background: var(--danger-soft); }
.danger-zone { border-color: color-mix(in srgb, var(--danger) 35%, var(--border)); }
.danger-zone h2 { color: var(--danger); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.code-area { width: 100%; font-family: var(--mono); font-size: 0.85rem; line-height: 1.5; tab-size: 4; resize: vertical; }
.admin-head { background: var(--surface); border-bottom: 1px solid var(--border); }
.admin-head .wrap { padding-top: 24px; }
.admin-title { display: flex; align-items: center; gap: 12px; }
.admin-title h1 { margin: 0; font-size: 1.5rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.stat-value { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }
.stat-label { color: var(--muted); font-size: 0.82rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.toolbar input[type=search] { flex: 1; min-width: 200px; max-width: 420px; }
.admin-table td { vertical-align: middle; }
.admin-table form.inline + form.inline { margin-left: 4px; }
tr.row-hidden td, .account-row.row-hidden summary { opacity: 0.6; }
.account-row { padding: 0; }
.account-row + .account-row { margin-top: 8px; }
.account-row summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; cursor: pointer; list-style: none; }
.account-row summary::-webkit-details-marker { display: none; }
.account-row[open] summary { border-bottom: 1px solid var(--border); }
.account-actions { padding: 14px 16px; }
.avatar-sm { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 0.85rem;
  color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--net)); flex: none; }
.danger-form label { color: var(--danger); font-weight: 600; }
.plain-list { margin: 0; padding-left: 18px; }
.plain-list li { margin: 6px 0; }
.profile-bio { max-width: 760px; color: var(--muted); margin: 4px 0 8px 82px; }
table.log td { font-size: 0.85rem; }
.site-field { padding: 14px 16px; }
.site-field label { margin-top: 0; }
.site-field + .site-field { margin-top: 10px; }
.file-form label:first-of-type { margin-top: 0; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .repo-body { grid-template-columns: 1fr; }
  .browse { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; }
  .header-search { display: none; }
}
@media (max-width: 560px) {
  .two-col { grid-template-columns: 1fr; }
  .profile-bio { margin-left: 0; }
  .wrap { padding: 0 16px; }
  .site-header .wrap { gap: 10px; }
  .brand .pill { display: none; }
  .site-nav a { padding: 6px 7px; }
  .repo-title h1 { font-size: 1.15rem; overflow-wrap: anywhere; }
  .repo-body { margin-top: 18px; }
  .panel { padding: 16px; }
  .site-nav a.hide-sm { display: none; }
  .tiles { grid-template-columns: 1fr; }
  .hero-search { flex-direction: column; }
  .hero-search button { padding: 10px; }
}

/* The hidden attribute always wins (the static site filters tiles by toggling it). */
[hidden] { display: none !important; }
