/* 1kr.uk/news: the home page's look (index.php), plus article typography. */
:root {
    --bg: #0a0a12;
    --bg-2: #10111c;
    --card: rgba(255, 255, 255, 0.04);
    --line: rgba(255, 255, 255, 0.09);
    --text: #e9ebf4;
    --muted: #9ba1b6;
    --violet: linear-gradient(135deg, #8b9cff 0%, #764ba2 100%);
    --red: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
    --cyan: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --green: linear-gradient(135deg, #34d399 0%, #059669 100%);
    --brand: linear-gradient(120deg, #a5b4fc 0%, #c084fc 40%, #f472b6 100%);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.bg-glow { position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(900px 520px at 80% -10%, rgba(139, 92, 246, 0.16), transparent 60%),
                radial-gradient(700px 480px at -5% 35%, rgba(59, 130, 246, 0.10), transparent 60%); }
a { color: #a5b4fc; }
h1, h2, h3 { color: #fff; font-weight: 800; letter-spacing: -0.03em; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #c4b5fd; margin-bottom: 12px; text-decoration: none; }
.lead-muted { color: var(--muted); font-size: 1.08rem; max-width: 760px; }

/* nav (same as the home page) */
.navbar { background: rgba(10, 10, 18, 0.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding: 10px 0; }
.navbar-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #fff !important; letter-spacing: -0.02em; font-size: 1.2rem; }
.navbar-brand img { width: 34px; height: auto; filter: invert(1) brightness(1.4); }
.nav-link { color: var(--muted) !important; font-weight: 500; }
.nav-link:hover, .nav-link.active { color: #fff !important; }
.nav-lang { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px !important; }
.btn-main { display: inline-flex; align-items: center; gap: 10px; border-radius: 14px; padding: 12px 22px; font-weight: 700; text-decoration: none; border: 0; background: var(--brand); color: #0a0a12; box-shadow: 0 14px 34px rgba(192, 132, 252, 0.25); transition: transform 0.2s ease; }
.btn-main:hover { color: #0a0a12; transform: translateY(-2px); }

/* list page */
.news-top { padding: 130px 0 26px; }
.news-top h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.08; margin-bottom: 14px; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 8px; }
.topics a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: #d6dae6; text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.topics a:hover { border-color: rgba(255, 255, 255, 0.3); color: #fff; }
.topics a.on { background: rgba(139, 92, 246, 0.18); border-color: rgba(139, 92, 246, 0.55); color: #fff; }
.section-title { font-size: 1.25rem; margin: 30px 0 16px; display: flex; align-items: center; gap: 10px; }

.a-card { display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; text-decoration: none; color: var(--text); transition: transform 0.2s ease, border-color 0.2s ease; }
.a-card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.22); color: var(--text); }
.a-card .thumb { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; color: #fff; }
.a-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
/* No picture: a slim coloured band with the topic icon instead of a big block. */
.a-card .thumb.noimg { aspect-ratio: auto; height: 84px; font-size: 1.7rem; opacity: 0.85; }
.a-card.featured .thumb.noimg { height: 120px; }
.a-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.a-card h3 { font-size: 1.12rem; line-height: 1.3; margin: 6px 0 8px; }
.a-card p { color: var(--muted); font-size: 0.94rem; margin: 0 0 12px; flex: 1; }
.a-card .meta, .meta { color: var(--muted); font-size: 0.82rem; }
.a-card.featured h3 { font-size: 1.5rem; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #c4b5fd; }
.t-scams { background: var(--red); } .t-security { background: var(--violet); } .t-productivity { background: var(--cyan); } .t-apps { background: var(--green); }

.briefs { background: var(--bg-2); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.briefs h2 { font-size: 1.15rem; margin: 0 0 4px; }
.briefs .note { color: var(--muted); font-size: 0.8rem; margin-bottom: 14px; }
.brief { padding: 13px 0; border-top: 1px solid var(--line); }
.brief:first-of-type { border-top: 0; }
.brief a { color: #fff; font-weight: 600; text-decoration: none; line-height: 1.35; display: block; margin: 3px 0 4px; }
.brief a:hover { color: #c4b5fd; }
.brief a i { font-size: 0.75rem; color: var(--muted); }
.brief p { color: var(--muted); font-size: 0.86rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.brief .src { color: #c4b5fd; font-size: 0.76rem; font-weight: 600; }
.pager { display: flex; justify-content: space-between; margin: 28px 0 10px; }
.pager a { color: #fff; text-decoration: none; border: 1px solid var(--line); border-radius: 12px; padding: 8px 16px; }

/* article */
.article-wrap { padding: 120px 0 40px; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.article-head h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.1; margin: 8px 0 16px; }
.article-head .standfirst { font-size: 1.18rem; color: #c9cee0; margin-bottom: 16px; }
.article-head .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 26px; }
.hero-img { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 30px; }
.hero-img img { width: 100%; height: auto; display: block; }
.prose { font-size: 1.08rem; color: #dfe2ec; }
.prose h2 { font-size: 1.55rem; margin: 2.2rem 0 0.8rem; }
.prose h3 { font-size: 1.2rem; margin: 1.6rem 0 0.6rem; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.1rem; }
.prose li { margin-bottom: 0.4rem; }
.prose strong { color: #fff; }
.prose blockquote { border-left: 3px solid #a78bfa; padding: 4px 0 4px 18px; color: #c9cee0; margin: 1.4rem 0; }
.prose figure { margin: 1.6rem 0; }
.prose figure img { max-width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); }
.prose figcaption { color: var(--muted); font-size: 0.86rem; margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: 0.98rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; vertical-align: top; }
.prose th { background: var(--card); color: #fff; }
/* A sample scam text, shown as a phone message bubble. Never a real number. */
.sms { max-width: 420px; margin: 1.4rem 0; background: #1b1d2b; border: 1px solid var(--line); border-radius: 20px 20px 20px 6px; padding: 14px 18px; font-size: 1rem; color: #e9ebf4; }
.sms .from { display: block; font-size: 0.78rem; color: var(--muted); margin-bottom: 4px; }
.sms .link { color: #fca5a5; text-decoration: underline dotted; word-break: break-all; }
.callout { background: rgba(139, 92, 246, 0.1); border: 1px solid rgba(139, 92, 246, 0.35); border-radius: 18px; padding: 18px 22px; margin: 1.6rem 0; }
.callout.warn { background: rgba(248, 113, 113, 0.08); border-color: rgba(248, 113, 113, 0.35); }
.callout > :last-child { margin-bottom: 0; }
.sources { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 18px; font-size: 0.92rem; }
.sources h2 { font-size: 1rem; }
.sources ul { padding-left: 18px; color: var(--muted); }
.cta-box { display: flex; gap: 20px; align-items: flex-start; background: linear-gradient(160deg, rgba(139, 92, 246, 0.12), rgba(59, 130, 246, 0.06)); border: 1px solid rgba(139, 92, 246, 0.35); border-radius: 24px; padding: 26px; margin: 36px 0; }
.cta-box img { border-radius: 16px; background: #fff; flex-shrink: 0; }
.cta-box h2 { font-size: 1.3rem; margin: 0 0 6px; }
.cta-box p { color: #c9cee0; margin-bottom: 14px; }
.draft-banner { background: #fbbf24; color: #1a1300; font-weight: 700; text-align: center; padding: 8px; position: fixed; bottom: 0; left: 0; right: 0; z-index: 2000; }

footer { border-top: 1px solid var(--line); padding: 48px 0 32px; color: var(--muted); font-size: 0.93rem; margin-top: 40px; }
footer h4 { color: #fff; font-size: 0.9rem; font-weight: 700; margin-bottom: 12px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 8px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: #fff; }

@media (max-width: 575px) {
    .news-top { padding-top: 110px; }
    .cta-box { flex-direction: column; padding: 20px; }
    .prose { font-size: 1.02rem; }
}
