/* whoisp.de – v3.2 "Überblick + Tabs". Self-hosted fonts, no framework. */

@font-face {
    font-family: "Schibsted Grotesk";
    src: url("fonts/schibsted-grotesk-latin-wght.woff2") format("woff2");
    font-weight: 400 900; font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Schibsted Grotesk";
    src: url("fonts/schibsted-grotesk-latin-ext-wght.woff2") format("woff2");
    font-weight: 400 900; font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
    --bg: #F6F7F6;
    --surface: #FFFFFF;
    --surface-2: #F1F3F2;
    --line: #E3E7E5;
    --line-soft: #EEF1F0;
    --line-strong: #D5DBD8;
    --text: #14201E;
    --text-2: #33423F;
    --muted: #5B6B67;
    --accent: #0F5C5C;
    --accent-hover: #0B4747;
    --accent-soft: #E3EFEE;
    --on-accent: #FFFFFF;
    --good: #1E7A5F;
    --good-bg: #E5F2EC;
    --warn: #8A5A00;
    --warn-bg: #FFFBF3;
    --warn-line: #EFDDB8;
    --warn-chip: #FBF0DA;
    --bad: #A8321E;
    --bad-bg: #FCEFEC;
    --bad-line: #F0CFC7;
    --radius: 10px;
    --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0F1514; --surface: #161E1C; --surface-2: #1C2624; --line: #26322F; --line-soft: #202A28; --line-strong: #33413E;
        --text: #E6EEEC; --text-2: #C3D0CD; --muted: #93A5A0; --accent: #5FB8AE; --accent-hover: #7FCBC2; --accent-soft: #17302D; --on-accent: #0B1211;
        --good: #5CC6A0; --good-bg: #13291F; --warn: #E9B755; --warn-bg: #221C10; --warn-line: #4A3A18; --warn-chip: #33290F;
        --bad: #F08C76; --bad-bg: #2A1612; --bad-line: #4E2A22; color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --bg: #0F1514; --surface: #161E1C; --surface-2: #1C2624; --line: #26322F; --line-soft: #202A28; --line-strong: #33413E;
    --text: #E6EEEC; --text-2: #C3D0CD; --muted: #93A5A0; --accent: #5FB8AE; --accent-hover: #7FCBC2; --accent-soft: #17302D; --on-accent: #0B1211;
    --good: #5CC6A0; --good-bg: #13291F; --warn: #E9B755; --warn-bg: #221C10; --warn-line: #4A3A18; --warn-chip: #33290F;
    --bad: #F08C76; --bad-bg: #2A1612; --bad-line: #4E2A22; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; min-height: 100vh; display: flex; flex-direction: column;
    background: var(--bg); color: var(--text);
    font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
code, kbd, pre, .mono, .val { font-family: var(--mono); }
.val { font-size: 14px; }
kbd { display: inline-block; padding: 0 5px; border: 1px solid var(--line-strong); border-radius: 4px; font-size: 11px; line-height: 1.6; color: var(--muted); background: var(--surface); }
button { font: inherit; color: inherit; }
svg { flex-shrink: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }

/* ---------- Header ---------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-inner { display: flex; align-items: center; gap: 12px 24px; min-height: 68px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: baseline; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-name { font-size: 22px; font-weight: 800; letter-spacing: -0.4px; }
.brand-tld { font-family: var(--mono); font-size: 15px; color: var(--accent); }

.search {
    position: relative; flex: 999 1 360px; min-width: 0; display: flex; align-items: center; gap: 8px;
    background: var(--bg); border: 1px solid var(--line-strong); border-radius: 8px; padding: 4px 4px 4px 14px;
    transition: border-color .15s, box-shadow .15s;
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-icon { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input {
    flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
    font: 16px var(--mono); color: var(--text); padding: 8px 0;
}
.search input::placeholder { font-family: var(--sans); color: var(--muted); opacity: .8; }
.search-type { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface-2); border-radius: 4px; padding: 1px 6px; }
.search-type:empty { display: none; }
.search-kbd { margin-right: 4px; }
.search-type:not(:empty) ~ .search-kbd, .search input:focus ~ .search-kbd { display: none; }
.search-btn {
    border: 0; border-radius: 6px; background: var(--accent); color: var(--on-accent);
    font-weight: 600; font-size: 15px; padding: 9px 18px; cursor: pointer; min-height: 40px;
}
.search-btn:hover { background: var(--accent-hover); }
@media (max-width: 560px) { .search-kbd, .search-type { display: none; } .search-btn { padding: 9px 12px; } }
.search-error { margin: 0; padding: 0 0 10px; color: var(--bad); font-size: 14px; }

.top-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
    display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px;
    border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; color: var(--muted);
    font-size: 13px; font-weight: 700;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .i-sun { display: none; }
    :root:not([data-theme="light"]) .i-moon { display: block; }
}

main { flex: 1; }

/* ---------- Home ---------- */
.home { padding: 12vh 0 64px; text-align: center; }
.home h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.1; letter-spacing: -1.2px; font-weight: 800; margin: 0 0 14px; }
.lead { color: var(--text-2); font-size: 18px; max-width: 620px; margin: 0 auto 28px; }
.myip {
    display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px;
    margin: 0 auto 26px; padding: 10px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.myip-label { color: var(--muted); font-size: 14px; }
.myip-sep { color: var(--muted); font-size: 12px; font-weight: 700; }
.myip-ip { font: 500 16px var(--mono); overflow-wrap: anywhere; }
.examples { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.examples span { color: var(--muted); font-size: 14px; }
.examples a, .recent a {
    font: 14px var(--mono); padding: 5px 10px; border-radius: 6px;
    border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
}
.examples a:hover, .recent a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.recent { margin-top: 36px; }
.recent h2 { font-size: 13px; color: var(--muted); font-weight: 600; margin: 0 0 10px; }
.recent ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* ---------- Result head + tabs ---------- */
.rhead { background: var(--surface); border-bottom: 1px solid var(--line); }
.rhead-inner { padding-top: 30px; }
.rhead-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px 32px; }
.rhead-title { flex: 999 1 520px; min-width: 0; }
.rhead-name { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.rhead h1 { margin: 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; font-weight: 800; letter-spacing: -1px; overflow-wrap: anywhere; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 4px; background: var(--surface-2); color: var(--text-2); }
.tag svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tag.good { background: var(--accent); color: var(--on-accent); }
.tag.free { background: var(--good-bg); color: var(--good); }
.tag.warn { background: var(--warn-chip); color: var(--warn); }
.rhead-sub { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 14px; color: var(--muted); }
.summary { margin: 12px 0 0; max-width: 720px; font-size: 18px; line-height: 1.55; color: var(--text-2); min-height: 28px; }
.summary b { color: var(--text); font-weight: 700; }
.rhead-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
@media (max-width: 760px) { .rhead-side { align-items: flex-start; } }
.rhead-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.live.is-live::before { background: var(--good); }
.live.is-loading::before { background: var(--accent); animation: pulse 1s ease-in-out infinite; }
.btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; min-height: 36px;
    border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface);
    font-size: 14px; font-weight: 600; cursor: pointer; color: var(--text);
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn.is-spinning svg { animation: spin .8s linear infinite; }

.tabs { margin-top: 24px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
    display: inline-flex; align-items: center; gap: 6px; padding: 12px 14px; white-space: nowrap;
    border: 0; border-bottom: 3px solid transparent; background: none; cursor: pointer;
    font-size: 15px; font-weight: 600; color: var(--muted);
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.tab-count { font: 500 12px var(--mono); background: var(--surface-2); color: var(--muted); padding: 1px 6px; border-radius: 4px; }
.tab-count.warn { font-family: var(--sans); font-weight: 700; background: var(--warn-chip); color: var(--warn); }
.tab-count.bad { font-family: var(--sans); font-weight: 700; background: var(--bad-bg); color: var(--bad); }

.panels { padding-top: 24px; padding-bottom: 64px; }
.panel-stack { display: flex; flex-direction: column; gap: 20px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; align-items: start; }

/* ---------- Boxes ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 16px 20px 0; }
.card-head h2 { margin: 0; font-size: 16px; font-weight: 700; }
.card-meta { font-size: 13px; color: var(--muted); }
.card-body { padding: 8px 20px 18px; }
.card-link { font-size: 14px; font-weight: 600; background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; }
.card-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { padding: 16px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; min-width: 0; }
.fact-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.fact-value { font-size: 19px; font-weight: 700; margin-top: 3px; overflow-wrap: anywhere; display: flex; align-items: center; gap: 7px; }
.fact-value.warn { color: var(--warn); } .fact-value.bad { color: var(--bad); }
.fact-sub { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.dot.good { background: var(--good); } .dot.warn { background: var(--warn); } .dot.bad { background: var(--bad); }

.issues { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--radius); padding: 16px 20px; }
.issues.bad { background: var(--bad-bg); border-color: var(--bad-line); }
.issues.ok { background: var(--surface); border-color: var(--line); }
.issues h2 { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.issues ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.issues li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.issues li b { color: var(--warn); }
.issues li.bad b { color: var(--bad); }
.issues li span { color: var(--text-2); }
.issues .ok-line { color: var(--good); font-weight: 600; display: flex; align-items: center; gap: 8px; margin: 0; }
.issues .ok-line svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

.kv { display: grid; grid-template-columns: minmax(110px, 32%) minmax(0, 1fr); margin: 0; }
.kv > dt, .kv > dd { padding: 9px 0; border-top: 1px solid var(--line-soft); margin: 0; min-width: 0; }
.kv > dt { color: var(--muted); padding-right: 12px; }
.kv > dd { overflow-wrap: anywhere; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
@media (max-width: 520px) {
    .kv { grid-template-columns: minmax(0, 1fr); }
    .kv > dt { padding-bottom: 0; font-size: 13px; }
    .kv > dd { border-top: 0; padding-top: 2px; }
}
.list { display: flex; flex-direction: column; gap: 2px; }
.muted { color: var(--muted); }
.faint { color: var(--muted); font-size: 13px; }
.notes { margin-top: 10px; }

.pill { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; line-height: 20px; white-space: nowrap; background: var(--surface-2); color: var(--text-2); }
.pill.good { background: var(--good-bg); color: var(--good); }
.pill.warn { background: var(--warn-chip); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.accent { background: var(--accent-soft); color: var(--accent); }
.pill.mono { font-family: var(--mono); font-weight: 500; }

.copy { border: 0; background: none; padding: 3px; border-radius: 4px; cursor: pointer; color: var(--muted); opacity: 0; transition: opacity .12s; display: inline-grid; place-items: center; }
.copy svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.copy:hover { color: var(--accent); background: var(--surface-2); }
dd:hover .copy, tr:hover .copy, .copy:focus-visible, .rhead-sub span:hover .copy { opacity: 1; }
@media (hover: none) { .copy { opacity: .7; } }

.banner { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 8px; background: var(--surface-2); margin: 8px 0; font-size: 15px; }
.banner strong { display: block; }
.banner p { margin: 2px 0 0; color: var(--text-2); }
.banner.good { background: var(--good-bg); } .banner.good strong { color: var(--good); }
.banner.warn { background: var(--warn-bg); border: 1px solid var(--warn-line); } .banner.warn strong { color: var(--warn); }
.banner.bad { background: var(--bad-bg); border: 1px solid var(--bad-line); } .banner.bad strong { color: var(--bad); }
.banner svg { width: 20px; height: 20px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.banner.good svg { color: var(--good); } .banner.warn svg { color: var(--warn); } .banner.bad svg { color: var(--bad); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 -20px; }
table.dns { width: 100%; border-collapse: collapse; font-size: 14px; }
table.dns th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 10px 8px 6px; }
table.dns td { padding: 8px; border-top: 1px solid var(--line-soft); vertical-align: top; }
table.dns th:first-child, table.dns td:first-child { padding-left: 20px; width: 80px; }
table.dns th:last-child, table.dns td:last-child { padding-right: 20px; }
table.dns td.v { font-family: var(--mono); overflow-wrap: anywhere; word-break: break-word; }
table.dns td.ttl { color: var(--muted); font-family: var(--mono); white-space: nowrap; width: 1%; text-align: right; }
table.dns th.r { text-align: right; }
table.dns td.c { width: 1%; }
table.dns tr.more td { border-top: 1px solid var(--line-soft); }
table.ns td:first-child, table.ns th:first-child { width: auto; white-space: nowrap; overflow-wrap: normal; word-break: normal; }
table.ns td:nth-child(2), table.ns td:nth-child(3) { white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.rtype { font: 500 12px var(--mono); color: var(--accent); background: var(--accent-soft); padding: 1px 6px; border-radius: 4px; }
.prio { color: var(--muted); margin-right: 6px; }
.linkish { border: 0; background: none; padding: 0; color: var(--accent); cursor: pointer; font-size: 14px; font-weight: 600; }
.linkish:hover { text-decoration: underline; }

/* Checklists */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.checks .ic { width: 18px; height: 18px; margin-top: 2px; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.checks .ok .ic { stroke: var(--good); } .checks .warn .ic { stroke: var(--warn); } .checks .bad .ic { stroke: var(--bad); } .checks .na .ic { stroke: var(--muted); }
.checks b { font-weight: 600; }
.checks p { margin: 1px 0 0; color: var(--text-2); font-size: 14px; overflow-wrap: anywhere; }
.checks code { font-size: 12px; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; word-break: break-all; }

.section-title { font-size: 13px; font-weight: 700; color: var(--muted); margin: 14px 0 4px; }
.host + .host { margin-top: 8px; padding-top: 4px; border-top: 1px dashed var(--line-strong); }
.host-title { font-size: 13px; font-weight: 700; color: var(--muted); margin: 14px 0 4px; }

ol.hops { list-style: none; margin: 0 0 8px; padding: 0; counter-reset: hop; }
ol.hops li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
ol.hops li::before { counter-increment: hop; content: counter(hop); color: var(--muted); font-size: 12px; min-width: 14px; }
.hop-url { overflow-wrap: anywhere; min-width: 0; flex: 1 1 200px; }

.tld-grid { list-style: none; padding: 0; margin: 4px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 8px; }
.tld { display: flex; align-items: center; justify-content: space-between; gap: 6px; border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; }
.tld a { color: var(--text-2); }
.tld-name { font: 500 14px var(--mono); }
.tld.available, .tld.likely_available { border-color: var(--accent); background: var(--accent-soft); }
.tld.available a, .tld.likely_available a { color: var(--accent); }
.tld-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tld-chip { font: 14px var(--mono); border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px; color: var(--muted); }
.tld-chip.free { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 500; }

details.raw { margin-top: 4px; }
details.raw summary { cursor: pointer; color: var(--muted); font-size: 14px; user-select: none; padding: 6px 0; }
details.raw summary:hover { color: var(--text); }
details.raw pre, pre.raw-pre {
    margin: 6px 0 0; padding: 14px; max-height: 520px; overflow: auto; border-radius: 8px;
    background: var(--surface-2); font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-all;
}

.card-error { padding: 4px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; color: var(--bad); font-size: 15px; }
.card-error svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card-error .btn { margin-left: auto; }
.skipped { color: var(--muted); padding: 6px 0 2px; margin: 0; }

/* Skeletons */
.sk { display: block; height: 12px; border-radius: 4px; background: var(--surface-2); animation: pulse 1.2s ease-in-out infinite; }
.sk + .sk { margin-top: 12px; }
.sk.w40 { width: 40%; } .sk.w60 { width: 60%; } .sk.w80 { width: 80%; }
.card-body .sk:first-child { margin-top: 10px; }
.fact .sk { margin-top: 10px; height: 16px; }
.summary .sk { display: inline-block; width: 70%; height: 16px; margin-top: 6px; }

@keyframes pulse { 50% { opacity: .45; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.fade { animation: fade .2s ease-out; }
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }

/* Footer, toast */
.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; background: var(--surface); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 18px; padding-bottom: 18px; }
.footer-links { display: inline-flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.footer-links a { color: var(--muted); }
@media (max-width: 640px) { .footer-keys { display: none; } }
.toast {
    position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
    background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 600;
    transition: opacity .2s, transform .2s; z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.offscreen { position: fixed; top: -1000px; left: 0; opacity: 0; }
.noscript { padding: 24px 16px; }

.facts.wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.fact-value.sm { font: 500 15px/1.4 var(--mono); }
@media (max-width: 640px) {
    .topbar-inner { gap: 10px 12px; }
    .search { order: 3; flex-basis: 100%; }
    .top-actions { margin-left: auto; }
}

.footer-about { display: flex; flex-direction: column; gap: 2px; }
.footer-about a { color: var(--text-2); font-weight: 600; }
.footer-sources { font-size: 12px; }
