/* ===== KI48 Theme — e24-style layout ===== */

:root {
    --navy: #1a2332;
    --orange: #f5820d;
    --orange-dark: #d96e00;
    --text: #1a1a1a;
    --text-muted: #666;
    --border: #e5e5e5;
    --bg: #f4f4f4;
    --white: #fff;
    --ticker-bg: #111820;
    --ticker-text: #e8e8e8;
    --ticker-up: #22c55e;
    --ticker-down: #ef4444;
    --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'IBM Plex Serif', Georgia, serif;
}

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

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ===== Ticker bar ===== */
.ticker-bar {
    background: var(--ticker-bg);
    color: var(--ticker-text);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    height: 32px;
    overflow: hidden;
    padding: 0 12px;
    gap: 0;
}

.ticker-section {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.ticker-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--orange);
    white-space: nowrap;
    flex-shrink: 0;
    padding: 2px 6px;
    border: 1px solid var(--orange);
    border-radius: 2px;
    background: var(--ticker-bg);
    position: relative;
    z-index: 1;
}

.ticker-divider {
    width: 1px;
    height: 16px;
    background: #333;
    flex-shrink: 0;
    margin: 0 8px;
}

.ticker-track {
    position: relative;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    height: 28px;
}

.ticker-item {
    position: absolute;
    top: 0;
    bottom: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    cursor: default;
}

.ticker-symbol { color: #aaa; font-size: 11px; }
.ticker-name   { color: var(--ticker-text); font-weight: 600; font-size: 12px; }
.ticker-price  { color: var(--ticker-text); }
.ticker-change.up   { color: var(--ticker-up); }
.ticker-change.down { color: var(--ticker-down); }
.ticker-loading { color: #555; font-size: 11px; }
.ticker-mobile { display: none; }  /* combined all-markets track — shown only on mobile (≤768px) */
.ticker-cat {
    font-size: 8px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--orange); border: 1px solid rgba(245,130,13,0.55); border-radius: 2px;
    padding: 1px 3px; line-height: 1.3; flex-shrink: 0;
}

/* ===== Header ===== */
.site-header { background: var(--navy); color: #fff; }

.header-main { border-bottom: 3px solid var(--orange); }

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.site-logo {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -1px;
    flex-shrink: 0;
    line-height: 1;
    position: relative;
}

.logo-banner {
    position: absolute;
    top: -10px;
    right: -34px;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: var(--orange);
    border-radius: 4px;
    padding: 2px 5px;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(245,130,13,0.4);
}

.logo-ki { color: var(--orange); }
.logo-48 { color: #fff; }

.header-nav {
    display: flex;
    gap: 0;
    flex: 1;
}

.header-nav a {
    padding: 0 14px;
    height: 56px;
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    opacity: 0.85;
    transition: opacity 0.15s, background 0.15s;
}

.header-nav a:hover { opacity: 1; background: rgba(255,255,255,0.08); }
.header-nav a:last-child { margin-left: auto; color: var(--orange); opacity: 1; }

.header-meta {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
}

#header-date { font-size: 11px; opacity: 0.6; }

.header-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--orange);
    text-transform: uppercase;
}

/* ===== Tag label ===== */
.tag-label {
    display: inline-block;
    width: fit-content;
    align-self: flex-start;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--orange);
    color: var(--white);
    padding: 2px 6px;
    border-radius: 2px;
    margin-bottom: 6px;
    transition: background 0.15s;
}

.tag-label:hover { background: var(--orange-dark); }
.tag-label--small { font-size: 9px; padding: 1px 4px; }

/* ===== Home layout ===== */
.home-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* ===== Hero section ===== */
.hero-section { background: var(--white); border-radius: 4px; overflow: hidden; }

.hero-inner {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0;
    min-height: 480px;
}

.hero-main { position: relative; overflow: hidden; }

.hero-img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.hero-main:hover .hero-img { transform: scale(1.02); }

.hero-content {
    padding: 20px 24px 24px;
    border-top: 3px solid var(--orange);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 10px;
}

.hero-title a:hover { color: var(--orange); }

.hero-excerpt { font-size: 15px; color: var(--text-muted); margin-bottom: 10px; }
.hero-time { font-size: 12px; color: var(--text-muted); }

/* Side region: two Promethean shorts SIDE BY SIDE (not stacked) */
.hero-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-left: 1px solid var(--border);
}

.hero-side-item {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-side-item + .hero-side-item { border-left: 1px solid var(--border); }

.side-img-link { position: relative; display: block; flex: 1 1 auto; min-height: 0; }

.side-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video affordance — play badge over hero/short thumbnails */
.hero-img-link { position: relative; display: block; }
.play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.9);
    pointer-events: none;
    transition: background 0.2s;
}
.play-badge::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    border-style: solid;
    border-width: 9px 0 9px 15px;
    border-color: transparent transparent transparent #fff;
}
.play-badge--sm { width: 40px; height: 40px; }
.play-badge--sm::before { border-width: 6px 0 6px 10px; }
.hero-video:hover .play-badge { background: var(--orange); }

.side-content { padding: 12px 14px 14px; }
.side-title { font-family: var(--font-serif); font-size: 15px; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.side-title a:hover { color: var(--orange); }
.side-time { font-size: 11px; color: var(--text-muted); }

/* ===== Section header ===== */
.section-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--navy);
    padding-bottom: 8px;
}

.section-title {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--navy);
}

.section-title a { color: inherit; text-decoration: none; }
.section-title a:hover { color: var(--orange); }

.section-more {
    font-size: 12px;
    font-weight: 600;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: auto;
}

.section-more:hover { color: var(--orange-dark); }

/* ===== News grid ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.news-card {
    background: var(--white);
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.card-img-link { overflow: hidden; }

.card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-card:hover .card-img { transform: scale(1.03); }

.card-content { padding: 12px 14px 16px; flex: 1; display: flex; flex-direction: column; }
.card-title {
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    flex: 1;
}

.card-title a:hover { color: var(--orange); }
.card-time { font-size: 11px; color: var(--text-muted); margin-top: auto; }

/* ===== Memes section ===== */
.memes-section { }

.memes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.meme-card { background: var(--white); border-radius: 4px; overflow: hidden; border: 1px solid var(--border); }

.meme-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.3s;
}

.meme-card:hover .meme-img { transform: scale(1.03); }

.meme-content { padding: 10px 12px 12px; }
.meme-title { font-size: 13px; font-weight: 600; line-height: 1.3; margin-bottom: 4px; }
.meme-title a:hover { color: var(--orange); }
.meme-time { font-size: 11px; color: var(--text-muted); }

/* ===== Post page ===== */
.post-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 16px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

.post-article { background: var(--white); border-radius: 4px; overflow: hidden; }

.post-header {
    padding: 32px 40px 24px;
    border-bottom: 1px solid var(--border);
}

.post-title {
    font-family: var(--font-serif);
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}

.post-excerpt { font-size: 18px; color: var(--text-muted); line-height: 1.5; margin-bottom: 16px; }

.post-meta { display: flex; gap: 16px; font-size: 12px; color: var(--text-muted); }

.post-feature-img { margin: 0; }
.post-feature-img img { width: 100%; max-height: 500px; object-fit: cover; }
.post-feature-img figcaption { padding: 8px 40px; font-size: 12px; color: var(--text-muted); background: #fafafa; }

.post-content {
    padding: 32px 40px;
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 1.7;
}

.post-content p   { margin-bottom: 1.4em; }
.post-content h2  { font-family: var(--font-sans); font-size: 22px; font-weight: 700; margin: 2em 0 0.8em; }
.post-content h3  { font-family: var(--font-sans); font-size: 18px; font-weight: 700; margin: 1.6em 0 0.6em; }
.post-content a   { color: var(--orange); border-bottom: 1px solid transparent; }
.post-content a:hover { border-color: var(--orange); }
.post-content img { border-radius: 4px; margin: 1.5em auto; }
.post-content blockquote {
    border-left: 4px solid var(--orange);
    padding: 12px 20px;
    margin: 1.5em 0;
    background: #fef9f0;
    font-style: italic;
}

.post-footer { padding: 20px 40px; border-top: 1px solid var(--border); }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tag-pill {
    font-size: 12px;
    font-weight: 600;
    background: #f0f0f0;
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 20px;
    transition: background 0.15s;
}

.tag-pill:hover { background: var(--navy); color: #fff; }

/* ===== Sidebar ===== */
.post-sidebar { position: sticky; top: 16px; }

.sidebar-widget { background: var(--white); border-radius: 4px; padding: 20px; border: 1px solid var(--border); }

.widget-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--navy);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--navy);
}

.sidebar-list { list-style: none; display: flex; flex-direction: column; gap: 0; }

.sidebar-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sidebar-item:last-child { border-bottom: none; }

.sidebar-link { font-size: 13px; font-weight: 600; line-height: 1.3; }
.sidebar-link:hover { color: var(--orange); }
.sidebar-time { font-size: 11px; color: var(--text-muted); }

/* ===== Tag page ===== */
.tag-container { max-width: 1280px; margin: 0 auto; padding: 32px 16px; }

.tag-header { margin-bottom: 32px; border-bottom: 3px solid var(--navy); padding-bottom: 16px; }
.tag-title { font-size: 28px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; }
.tag-description { font-size: 15px; color: var(--text-muted); margin-top: 8px; }

/* ===== Footer ===== */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.7);
    margin-top: 60px;
    padding: 40px 0 24px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 40px;
}

.footer-brand .site-logo { font-size: 24px; margin-bottom: 10px; display: block; }
.footer-brand p { font-size: 13px; line-height: 1.5; }

.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 18px; }
.footer-links a { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.7); }
.footer-links a:hover { color: var(--orange); }

.footer-disclaimer { font-size: 11px; line-height: 1.6; color: rgba(255,255,255,0.4); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .news-grid  { grid-template-columns: repeat(3, 1fr); }
    .memes-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .hero-inner         { grid-template-columns: 1fr; }
    .hero-side          { border-left: none; border-top: 1px solid var(--border); }
    .hero-side .side-img-link { flex: 0 0 auto; }
    .hero-side .side-img { height: 140px; }
    .news-grid          { grid-template-columns: repeat(2, 1fr); }
    .memes-grid         { grid-template-columns: repeat(2, 1fr); }
    .post-container     { grid-template-columns: 1fr; }
    .post-sidebar       { display: none; }
    .footer-inner       { grid-template-columns: 1fr; gap: 24px; }
    /* swap the 4 cramped category tracks for one combined scrolling ticker */
    .ticker-crypto, .ticker-stocks, .ticker-commodities, .ticker-energy { display: none; }
    .ticker-divider { display: none; }
    .ticker-mobile { display: flex; }
}

@media (max-width: 480px) {
    .hero-title         { font-size: 22px; }
    .news-grid          { grid-template-columns: 1fr; }
    .memes-grid         { grid-template-columns: repeat(2, 1fr); }
    .post-title         { font-size: 24px; }
    .post-content       { padding: 20px; font-size: 16px; }
    .post-header        { padding: 20px; }
}

/* ===== Dark mode ===== */
:root {
    --dm-text: #e2e4e9;
    --dm-text-muted: #8b929e;
    --dm-border: #252a36;
    --dm-bg: #0d1117;
    --dm-card: #161b27;
    --dm-blockquote-bg: #1e2030;
    --dm-figcaption-bg: #1a1f2c;
    --dm-tag-pill-bg: #1e2330;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --text: var(--dm-text);
        --text-muted: var(--dm-text-muted);
        --border: var(--dm-border);
        --bg: var(--dm-bg);
        --white: var(--dm-card);
    }
    :root:not([data-theme="light"]) .post-content blockquote { background: var(--dm-blockquote-bg); }
    :root:not([data-theme="light"]) .post-feature-img figcaption { background: var(--dm-figcaption-bg); }
    :root:not([data-theme="light"]) .tag-pill { background: var(--dm-tag-pill-bg); color: var(--dm-text-muted); }
    :root:not([data-theme="light"]) .section-title { color: var(--orange); }
    :root:not([data-theme="light"]) .section-header { border-bottom-color: var(--orange); }
    :root:not([data-theme="light"]) .widget-title { color: var(--orange); border-bottom-color: var(--orange); }
    :root:not([data-theme="light"]) .tag-header { border-bottom-color: var(--orange); }
    :root:not([data-theme="light"]) .tag-title { color: var(--dm-text); }
    :root:not([data-theme="light"]) .site-footer { color: rgba(255,255,255,0.7); }
}

[data-theme="dark"] {
    --text: var(--dm-text);
    --text-muted: var(--dm-text-muted);
    --border: var(--dm-border);
    --bg: var(--dm-bg);
    --white: var(--dm-card);
}
[data-theme="dark"] .post-content blockquote { background: var(--dm-blockquote-bg); }
[data-theme="dark"] .post-feature-img figcaption { background: var(--dm-figcaption-bg); }
[data-theme="dark"] .tag-pill { background: var(--dm-tag-pill-bg); color: var(--dm-text-muted); }
[data-theme="dark"] .section-title { color: var(--orange); }
[data-theme="dark"] .section-header { border-bottom-color: var(--orange); }
[data-theme="dark"] .widget-title { color: var(--orange); border-bottom-color: var(--orange); }
[data-theme="dark"] .tag-header { border-bottom-color: var(--orange); }
[data-theme="dark"] .tag-title { color: var(--dm-text); }
[data-theme="dark"] .site-footer { color: rgba(255,255,255,0.7); }

/* ===== Dark mode toggle button ===== */
.dark-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.6);
    padding: 4px;
    line-height: 1;
    font-size: 16px;
    transition: color 0.15s;
    margin-left: 8px;
    flex-shrink: 0;
}
.dark-toggle:hover { color: var(--orange); }

/* ===== Ghost card widths (required by Ghost theme validator) ===== */
.kg-width-wide {
    margin-left: calc(50% - 50vw + 32px);
    margin-right: calc(50% - 50vw + 32px);
}

.kg-width-full {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
}

/* Responsive video embeds. Promethean posts embed YouTube as a fixed
   <iframe width="560" height="315"> inside .kg-embed-card; without this the
   iframe keeps its 560px width and spills off-screen on mobile (only half the
   video visible). Fill the content column and hold the 16:9 box (560x315). */
.post-content .kg-embed-card { margin: 1.5em 0; }
.post-content iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    border-radius: 4px;
}

/* ===== Subscribe bar ===== */
.subscribe-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: var(--navy);
    color: #fff;
    padding: 14px 24px;
    margin-bottom: 32px;
    border-radius: 4px;
}
.subscribe-text {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}
.subscribe-btn {
    background: var(--orange);
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
}
.subscribe-btn:hover { background: var(--orange-dark); }
@media (max-width: 600px) {
    .subscribe-bar { flex-direction: column; gap: 10px; text-align: center; }
}

/* ═══════════════════ Live AI-wire identity ═══════════════════ */
:root { --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace; }

/* Logo wire glyph */
.logo-wire {
    color: var(--orange);
    font-size: 20px;
    margin-left: 5px;
    vertical-align: 2px;
    text-shadow: 0 0 10px rgba(245,130,13,0.5);
    animation: ki-flicker 5s ease-in-out infinite;
}

/* Masthead mono data-labels */
.header-meta { gap: 2px; }
.header-fresh {
    display: inline-flex; align-items: center; gap: 5px;
    font-family: var(--font-mono); font-size: 10px; font-weight: 600;
    letter-spacing: 0.08em; color: var(--orange); text-transform: uppercase;
}
.fresh-dot {
    width: 7px; height: 7px; border-radius: 50%; background: #34c759;
    animation: ki-fresh-pulse 2.4s ease-out infinite;
}
@keyframes ki-fresh-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(52,199,89,0.6); }
    70%  { box-shadow: 0 0 0 7px rgba(52,199,89,0); }
    100% { box-shadow: 0 0 0 0 rgba(52,199,89,0); }
}

/* ═══════════════════ Mobile hamburger nav ═══════════════════ */
.nav-toggle {
    display: none; background: none; border: 0; cursor: pointer;
    padding: 8px; flex-direction: column; gap: 5px; color: inherit;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 768px) {
    /* Header must grow + wrap so the open menu drops below the bar (not clip it) */
    .header-inner { height: auto; min-height: 56px; flex-wrap: wrap; gap: 0 16px; }
    .nav-toggle { display: inline-flex; margin-left: auto; }
    .header-nav { display: none; flex-basis: 100%; flex-direction: column; gap: 0; margin-top: 8px; }
    .header-nav.open { display: flex; }
    /* override the desktop 56px-tall row links for a compact stacked list */
    .header-nav a { height: auto; padding: 12px 4px; border-top: 1px solid rgba(255,255,255,0.12); }
    .header-nav a:last-child { margin-left: 0; }
    .header-meta { display: none; }
}

/* ═══════════════════ Sport category menu ═══════════════════ */
/* Sport hub: toggle lives inline in the page header (right of the title), so no
   standalone block with gaps above/below. */
.tag-header--sport .tag-header-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px 16px; flex-wrap: wrap;
}
.sport-cat-menu { position: relative; }
.sport-cat-toggle {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
    background: var(--orange); color: #fff; border: 0; border-radius: 8px; padding: 9px 16px;
}
.sport-cat-icon { font-size: 15px; line-height: 1; }
.sport-cat-panel {
    position: absolute; z-index: 40; top: 100%; right: 0; margin-top: 6px; min-width: 230px;
    background: #fff; border: 1px solid rgba(0,0,0,0.10); border-radius: 10px;
    box-shadow: 0 8px 28px rgba(20,28,45,0.16); padding: 6px; display: flex; flex-direction: column;
}
.sport-cat-panel[hidden] { display: none; }
.sport-cat-panel a { padding: 9px 14px; border-radius: 6px; font-size: 14px; color: #11151c; text-decoration: none; }
.sport-cat-panel a:hover { background: rgba(245,130,13,0.12); }
[data-theme="dark"] .sport-cat-panel { background: #1b1f27; border-color: rgba(255,255,255,0.12); }
[data-theme="dark"] .sport-cat-panel a { color: #e7e9ed; }

/* ═══════════════════ Tilbakemelding (feedback) form ═══════════════════ */
.fb-form { display: flex; flex-direction: column; gap: 16px; max-width: 560px; margin: 8px 0 24px; }
.fb-form[hidden] { display: none; }  /* override .fb-form display:flex so the hidden attr works on submit */
.fb-label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.fb-opt { font-weight: 400; opacity: 0.6; font-size: 12px; }
.fb-form input, .fb-form textarea {
    font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid rgba(127,127,127,0.35);
    border-radius: 8px; background: transparent; color: inherit; width: 100%; box-sizing: border-box;
}
.fb-form textarea { resize: vertical; }
.fb-form input:focus, .fb-form textarea:focus { outline: 2px solid var(--orange); border-color: var(--orange); }
.fb-submit {
    align-self: flex-start; cursor: pointer; border: 0; border-radius: 8px;
    background: var(--orange); color: #fff; font-weight: 600; font-size: 14px; padding: 11px 22px;
}
.fb-submit:disabled { opacity: 0.6; cursor: default; }
.fb-thanks { font-size: 18px; font-weight: 600; color: var(--orange); }
.fb-error { color: #c0392b; }

#header-date { font-family: var(--font-mono); letter-spacing: 0.02em; opacity: 0.55; }
.header-label {
    font-family: var(--font-mono); font-weight: 500; font-size: 9px;
    text-transform: none; letter-spacing: 0.04em; color: rgba(255,255,255,0.4);
}

@keyframes ki-flicker {
    0%, 46%, 52%, 100% { opacity: 1; }
    48% { opacity: 0.4; }
    50% { opacity: 0.85; }
}

/* Wire-service data-labels on timestamps */
.card-time, .side-time, .hero-time, .sidebar-time, .post-meta, .meme-time {
    font-family: var(--font-mono); letter-spacing: 0.01em;
}
.hero-time::before, .card-time::before {
    content: "⌁ "; color: var(--orange); font-weight: 600;
}

/* Branded placeholder for image-less posts (AI-curated, no photo) */
.card-img-ph {
    display: flex !important; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    background:
        radial-gradient(120% 140% at 30% 0%, rgba(245,130,13,0.12), transparent 60%),
        linear-gradient(135deg, var(--navy), #0d1117);
}
.card-img-ph::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 4px);
}
.card-img-ph .ph-mark {
    position: relative; z-index: 1;
    font-family: var(--font-mono); font-weight: 600; letter-spacing: 0.12em;
    color: var(--orange); font-size: 15px; opacity: 0.9;
}
.side-img.card-img-ph .ph-mark { font-size: 20px; }
.ph-mark--hero { font-size: 34px !important; letter-spacing: 0.14em; }

/* Load-more button — on brand */
.load-more-btn {
    display: block; margin: 32px auto 0; padding: 11px 30px;
    background: var(--orange); color: #fff; border: none; border-radius: 4px;
    font-family: var(--font-mono); font-size: 12px; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}
.load-more-btn:hover { background: var(--orange-dark); }
.load-more-btn:active { transform: scale(0.98); }

/* Electric header underline glow */
.header-main { box-shadow: 0 1px 0 rgba(245,130,13,0.25); }

@media (prefers-reduced-motion: reduce) {
    .logo-wire, .fresh-dot { animation: none; }
}
