/* IPnu.dk */

:root {
    color-scheme: light;
    --bg: #f5f6f8;
    --surface: #ffffff;
    --surface-2: #f1f3f6;
    --text: #12141a;
    --text-dim: #5d6472;
    --text-faint: #8a91a0;
    --border: #e3e6eb;
    --divider: #edf0f3;
    --accent: #2f6bff;
    --accent-hover: #1f56e0;
    --accent-soft: #eaf0ff;
    --accent-ink: #1a47c2;
    --ok: #15803d;
    --ok-soft: #e7f6ec;
    --warn: #b45309;
    --warn-soft: #fdf1e2;
    --on-accent: #ffffff;
    --hero-glow: radial-gradient(120% 140% at 50% -20%, #dfe8ff 0%, rgb(223 232 255 / 0) 60%);
    --shadow: 0 1px 2px rgb(16 24 40 / 0.04), 0 2px 8px rgb(16 24 40 / 0.04);
    --radius: 18px;
    --radius-sm: 10px;
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Consolas, monospace;
}

html.dark {
    color-scheme: dark;
    --bg: #0b0c0f;
    --surface: #14161b;
    --surface-2: #1b1e25;
    --text: #eef0f4;
    --text-dim: #a0a7b4;
    --text-faint: #6f7684;
    --border: #252932;
    --divider: #1f232b;
    --accent: #6d9bff;
    --accent-hover: #8db1ff;
    --accent-soft: #162142;
    --accent-ink: #a9c3ff;
    --ok: #4ade80;
    --ok-soft: #10291a;
    --warn: #fbbf24;
    --warn-soft: #2e230b;
    --on-accent: #0b0c0f;
    --hero-glow: radial-gradient(120% 140% at 50% -20%, #1a2a55 0%, rgb(26 42 85 / 0) 60%);
    --shadow: none;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre { font-family: var(--mono); }
svg { fill: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 16px; }
main.wrap { flex: 1; padding-top: 2rem; padding-bottom: 3rem; }
.muted { color: var(--text-dim); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 750; font-size: 1.1rem; letter-spacing: -0.02em; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; fill: var(--accent); }
.brand-tld { color: var(--text-faint); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.lang-switch { display: flex; padding: 3px; background: var(--surface-2); border-radius: 999px; }
.lang-switch a { padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.03em; color: var(--text-dim); }
.lang-switch a:hover { color: var(--text); text-decoration: none; }
.lang-switch a[aria-current] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgb(0 0 0 / 0.08); }
.icon-button { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-dim); cursor: pointer; transition: color 0.15s, border-color 0.15s; }
.icon-button:hover { color: var(--text); border-color: var(--text-faint); }
.icon-button svg { width: 17px; height: 17px; }
.icon-sun { display: none; }
html.dark .icon-sun { display: block; }
html.dark .icon-moon { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; padding: 0.55rem 1.1rem; font: inherit; font-size: 0.9rem; font-weight: 650; color: var(--on-accent); background: var(--accent); border: 1px solid transparent; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: background-color 0.15s, color 0.15s, transform 0.1s; }
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(0.97); }
.btn svg { width: 16px; height: 16px; }
.btn.copied, .btn.copied:hover { background: var(--ok); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--text-dim); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

/* Hero */
.hero { text-align: center; background: var(--hero-glow), var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 3rem 1.25rem 2.25rem; margin-bottom: 1.25rem; }
.hero-heading { font-size: 0.95rem; font-weight: 600; color: var(--text-dim); letter-spacing: -0.005em; }
.ip-value { font-family: var(--mono); font-size: clamp(2rem, 8vw, 4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin: 0.75rem 0 1.5rem; overflow-wrap: anywhere; }
.btn-copy { padding: 0.65rem 1.4rem; font-size: 0.95rem; }
.chips { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.5rem; }
.chips li { font-size: 0.78rem; font-weight: 600; color: var(--text-dim); background: var(--surface-2); border-radius: 999px; padding: 0.25rem 0.75rem; }
.chips .chip-ok { color: var(--ok); background: var(--ok-soft); }
.chips .chip-warn { color: var(--warn); background: var(--warn-soft); }
.chips .chip-ok::before, .chips .chip-warn::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 0.4rem; vertical-align: 0.12em; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-bottom: 1.25rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem 1.25rem 0.5rem; }
.card-title { display: flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
.card-icon { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); }
.card-icon svg { width: 18px; height: 18px; }
.kv { padding: 0.6rem 0; border-top: 1px solid var(--divider); }
.kv:first-child { border-top: none; }
.kv dt { font-size: 0.75rem; color: var(--text-faint); font-weight: 550; }
.kv dd { font-size: 0.92rem; font-weight: 550; overflow-wrap: anywhere; }
.kv dd .muted { font-weight: 450; }
.state { display: inline-flex; align-items: center; gap: 0.35rem; }
.state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--text-faint); }
.state-on::before { background: var(--ok); }

/* Technical details */
.disclosure { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.disclosure summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 650; font-size: 0.92rem; list-style: none; display: flex; align-items: center; }
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::after { content: ""; width: 0.5rem; height: 0.5rem; margin-left: auto; border-right: 2px solid var(--text-dim); border-bottom: 2px solid var(--text-dim); transform: rotate(45deg); transition: transform 0.2s; }
.disclosure[open] summary::after { transform: rotate(225deg); }
.disclosure-body { border-top: 1px solid var(--divider); padding: 0.5rem 1.25rem 1.25rem; }
.details-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
.details-list .kv:nth-child(2) { border-top: none; }
.details-list .kv dd { font-family: var(--mono); font-size: 0.82rem; font-weight: 450; }
.subheading { font-size: 0.8rem; font-weight: 650; color: var(--text-dim); margin: 1.25rem 0 0.5rem; }
.code-block { background: var(--surface-2); border-radius: var(--radius-sm); padding: 0.9rem 1rem; font-size: 0.78rem; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Article and FAQ under the tool */
.article { margin-top: 3rem; }
.article-heading { font-size: 1.35rem; font-weight: 750; letter-spacing: -0.02em; margin: 2.5rem 0 1rem; }
.article-heading:first-child { margin-top: 0; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem 2rem; }
.article h3 { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 0.4rem; }
.article p { color: var(--text-dim); font-size: 0.92rem; line-height: 1.65; }
.article code { font-size: 0.85em; background: var(--surface-2); color: var(--text); border-radius: 5px; padding: 0.1em 0.35em; overflow-wrap: anywhere; }
.faq { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.faq-item + .faq-item { border-top: 1px solid var(--divider); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 0.95rem; }
.faq-item summary::after { content: "+"; margin-left: auto; font-size: 1.25rem; line-height: 1; color: var(--text-faint); transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 1.25rem 1.1rem; }

/* Page intro (404, stats) */
.page-intro { margin-bottom: 1.5rem; }
.page-intro h1 { font-size: 1.75rem; font-weight: 750; letter-spacing: -0.02em; line-height: 1.25; }
.page-intro p { margin-top: 0.3rem; }

/* Stats */
.panels { display: grid; gap: 1.25rem; margin-bottom: 1.25rem; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
main > .panel { margin-bottom: 1.25rem; }
.panel-title { font-size: 0.78rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); padding: 0.9rem 1.1rem 0.4rem; }
.notice { padding: 1rem 1.1rem; }
.rank-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.rank-table th, .rank-table td { padding: 0.45rem 0.75rem; text-align: left; border-top: 1px solid var(--divider); }
.rank-table th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); font-weight: 650; }
.rank-table td:not(:first-child), .rank-table th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }

/* Live stats */
:root { --series-1: #2a78d6; --series-2: #eb6834; }
html.dark { --series-1: #3987e5; --series-2: #d95926; }

.live-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 1rem; margin-bottom: 1.25rem; }
.live-head h1 { font-size: 1.75rem; font-weight: 750; letter-spacing: -0.02em; }
/* Access gate over the stats page: replays the access check, then gets out of the way */
.gate { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(10px) saturate(1.2); transition: opacity 0.35s ease; }
.gate.is-leaving { opacity: 0; pointer-events: none; }
.gate-card { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 24px 60px rgb(16 24 40 / 0.18); padding: 1.5rem 1.5rem 1.25rem; animation: gate-in 0.35s cubic-bezier(.2, .9, .3, 1.2); transition: transform 0.35s ease; }
.gate.is-leaving .gate-card { transform: scale(0.96) translateY(-8px); }
@keyframes gate-in { from { opacity: 0; transform: scale(0.94) translateY(10px); } }
.gate-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.1rem; }
.gate-lock { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); transition: background-color 0.3s, color 0.3s; }
.gate-lock svg { width: 20px; height: 20px; overflow: visible; }
.gate-lock .lock-shackle { transition: transform 0.35s cubic-bezier(.3, 1.6, .5, 1); transform-origin: 16px 10px; }
.gate.is-granted .gate-lock { background: var(--ok-soft); color: var(--ok); }
.gate.is-granted .lock-shackle { transform: translateY(-2px) rotate(-28deg); }
.gate-title { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.gate-steps { list-style: none; display: grid; gap: 0.55rem; }
.gate-step { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 0.7rem; font-size: 0.86rem; color: var(--text-faint); transition: color 0.25s; }
.gate-step.is-active, .gate-step.is-done, .gate-step.is-failed { color: var(--text); }
.gate-icon { position: relative; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); transition: background-color 0.2s, border-color 0.2s; }
.gate-step.is-active .gate-icon { border-top-color: var(--accent); animation: gate-spin 0.7s linear infinite; }
.gate-step.is-done .gate-icon { background: var(--ok); border-color: var(--ok); animation: gate-pop 0.3s ease-out; }
.gate-step.is-done .gate-icon::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid var(--surface); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.gate-step.is-failed .gate-icon { background: var(--warn); border-color: var(--warn); }
@keyframes gate-spin { to { transform: rotate(360deg); } }
@keyframes gate-pop { 50% { transform: scale(1.25); } }
.gate-step code { font-size: 0.78rem; color: var(--text-dim); opacity: 0; transform: translateX(-6px); transition: opacity 0.3s, transform 0.3s; overflow-wrap: anywhere; text-align: right; }
.gate-step.is-done code, .gate-step.is-failed code { opacity: 1; transform: none; }
.gate-step:nth-child(3).is-done code { color: var(--ok); background: var(--ok-soft); border-radius: 999px; padding: 0.05rem 0.5rem; font-weight: 650; }
.gate-progress { height: 3px; margin: 1.1rem 0 0.9rem; background: var(--divider); border-radius: 999px; overflow: hidden; }
.gate-progress span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width 0.45s ease; }
.gate.is-granted .gate-progress span { background: var(--ok); }
.gate-note { font-size: 0.74rem; line-height: 1.5; color: var(--text-faint); }
.live-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.switch { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; font-weight: 600; color: var(--text-dim); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--border); transition: background-color 0.15s; flex: none; }
.switch-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgb(0 0 0 / 0.2); transition: transform 0.15s; }
.switch input:checked + .switch-track { background: var(--accent); }
.switch input:checked + .switch-track::after { transform: translateX(14px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch:has(input:checked) { color: var(--text); }
.legend-item[hidden] { display: none; }
.live-status { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--text-dim); }
.live-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ok); animation: pulse 2s ease-out infinite; }
.live-status.is-paused .live-dot, .live-status.is-paused .live-dot::after { background: var(--text-faint); animation: none; }
.live-status.is-error .live-dot, .live-status.is-error .live-dot::after { background: var(--warn); }
@keyframes pulse { from { transform: scale(1); opacity: 0.6; } to { transform: scale(3); opacity: 0; } }
#live-error { margin-bottom: 1.25rem; }

.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.1rem; }
.tile-label { font-size: 0.78rem; color: var(--text-dim); font-weight: 550; }
.tile-value { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; margin-top: 0.15rem; border-radius: 6px; }
.tile-value.bump { animation: bump 1.2s ease-out; }
@keyframes bump { from { background: var(--accent-soft); } to { background: transparent; } }
.tile-delta { font-size: 0.75rem; color: var(--text-dim); margin-top: 0.15rem; }

.chart-panel { position: relative; padding: 1.25rem 1.25rem 0.75rem; overflow: visible; margin-bottom: 1.25rem; }
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 0.75rem 1rem; }
.chart-title { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.chart-summary { font-size: 0.82rem; margin-top: 0.1rem; }
.segmented { display: flex; padding: 3px; background: var(--surface-2); border-radius: 999px; }
.segmented button { font: inherit; font-size: 0.8rem; font-weight: 650; padding: 0.25rem 0.75rem; border: none; border-radius: 999px; background: none; color: var(--text-dim); cursor: pointer; }
.segmented button:hover { color: var(--text); }
.segmented button[aria-current] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgb(0 0 0 / 0.08); }
.legend { display: flex; gap: 1.25rem; margin: 1rem 0 0.25rem; font-size: 0.8rem; color: var(--text-dim); }
.legend-item { display: inline-flex; align-items: center; gap: 0.4rem; }
.legend-item input { accent-color: var(--accent); margin-right: 0.1rem; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.swatch-people { background: var(--series-1); }
.swatch-bots { background: var(--series-2); }
.chart { width: 100%; min-height: 240px; }
.chart svg { display: block; overflow: visible; }
.chart .grid { stroke: var(--divider); stroke-width: 1; }
.chart .baseline { stroke: var(--border); stroke-width: 1; }
.chart .axis { fill: var(--text-faint); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .bar-people { fill: var(--series-1); }
.chart .bar-bots { fill: var(--series-2); }
.chart .bar-group path { transition: opacity 0.15s; }
.chart .hovering .bar-group:not(.active) path { opacity: 0.35; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart-tooltip { position: absolute; z-index: 5; min-width: 180px; pointer-events: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgb(0 0 0 / 0.14); padding: 0.6rem 0.75rem; font-size: 0.8rem; }
.chart-tooltip[hidden] { display: none; }
.tooltip-title { font-weight: 650; margin-bottom: 0.35rem; }
.tooltip-row { display: flex; align-items: center; gap: 0.45rem; color: var(--text-dim); }
.tooltip-value { margin-left: auto; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-table { margin-top: 0.5rem; font-size: 0.8rem; }
.chart-table summary { cursor: pointer; color: var(--text-dim); padding: 0.25rem 0; }
.chart-table table { margin-top: 0.5rem; }

.log-panel { padding: 1.25rem 1.25rem 0.5rem; }
.log-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem 1rem; margin-bottom: 0.5rem; }
.check { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--text-dim); cursor: pointer; }
.check input { accent-color: var(--accent); }
.log { list-style: none; }
.log-row { display: grid; grid-template-columns: 4.5rem minmax(7rem, 11rem) minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 0.55rem 0.5rem; margin: 0 -0.5rem; border-top: 1px solid var(--divider); border-radius: 8px; font-size: 0.84rem; }
.log-row:first-child { border-top-color: transparent; }
.log-row.is-new { animation: arrive 2.5s ease-out; }
@keyframes arrive { 0% { background: var(--accent-soft); transform: translateY(-6px); opacity: 0; } 15% { transform: none; opacity: 1; } 100% { background: transparent; } }
.log-row.is-bot { color: var(--text-dim); }
.log-time { color: var(--text-faint); font-size: 0.78rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.log-ip { font-family: var(--mono); font-size: 0.8rem; overflow-wrap: anywhere; }
.log-agent, .log-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-meta { color: var(--text-dim); font-size: 0.8rem; }
.log-tag { font-size: 0.7rem; font-weight: 650; color: var(--text-dim); background: var(--surface-2); border-radius: 999px; padding: 0.05rem 0.5rem; }
.log-empty { padding: 1rem 0; }

/* Ads: fixed-size units, so they never push the page around more than their size.
   Top: 728×90 (320×50 on phones). Content, after the technical details: 728×90 (300×250 on phones). */
.ad-slot { display: flex; justify-content: center; }
.ad-slot:empty { display: none; }
.ad-slot ins { display: inline-block; width: 728px; height: 90px; }
.ad-slot ins[data-ad-status="unfilled"] { display: none !important; } /* AdSense found no ad: no empty box */
.ad-top { margin-bottom: 1.25rem; }
.ad-content { margin-top: 1.25rem; }
@media (max-width: 767px) {
    .ad-top ins { width: 320px; height: 50px; }
    .ad-content ins { width: 300px; height: 250px; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--text-faint); }
.site-footer-inner { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 0.5rem 1.25rem; min-height: 56px; }
.build-badge { font-weight: 650; color: var(--warn); background: var(--warn-soft); border-radius: 999px; padding: 0.1rem 0.6rem; }

/* Cookie banner */
.cookie-banner { position: fixed; right: 16px; bottom: 16px; max-width: 340px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; box-shadow: 0 12px 32px rgb(0 0 0 / 0.16); z-index: 100; animation: rise 0.3s ease-out; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { font-size: 0.84rem; color: var(--text-dim); margin-bottom: 0.9rem; }
.cookie-buttons { display: flex; gap: 0.5rem; }
.cookie-buttons .btn { flex: 1; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

@media (max-width: 860px) {
    .cards { grid-template-columns: minmax(0, 1fr); }
    .article-grid { grid-template-columns: minmax(0, 1fr); }
    .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .log-row { grid-template-columns: 4rem minmax(0, 1fr) auto; gap: 0.15rem 0.75rem; }
    .log-agent, .log-meta { grid-column: 2 / -1; }
    .log-tag { grid-row: 1; grid-column: 3; }
    .details-list { grid-template-columns: minmax(0, 1fr); }
    .details-list .kv:nth-child(2) { border-top: 1px solid var(--divider); }
}

@media (max-width: 560px) {
    main.wrap { padding-top: 1rem; }
    .hero { padding: 2.25rem 1rem 1.75rem; }
    .cookie-banner { left: 16px; right: 16px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
