/* Lokaltinget — publikumssite (v0.16.0 ticker · badges · live section · dark mode · polish)
 * Prioriteter: læsbarhed, visuelt hierarki, avis-feel, hastighed.
 * Ingen JS påkrævet for basis-funktion.
 * Typografi: Merriweather (serif) til headlines, system-sans til body.
 * Redesign: tabloid-layout inspireret af Ekstra Bladet (eb.dk)
 */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700;900&display=swap');

:root {
    --bg:        #ebebeb;
    --surface:   #ffffff;
    --border:    #d8d8d8;
    --border-strong: #bfbfbf;
    --text:      #111111;
    --text-muted:#6b6b6b;
    --text-light:#999999;
    --primary:   #0d6e6e;
    --primary-fg:#ffffff;
    --primary-hover: #095555;
    --primary-subtle: rgba(13,110,110,0.06);
    --accent:    #c0392b;
    --accent-light: #fef2f2;
    --blue-112:  #1d4ed8;
    --blue-112-bg: #eff6ff;
    --politik-color: #7c3aed;
    --debat-bg:  #fefce8;
    --debat-color: #854d0e;
    --radius:    4px;
    --radius-lg: 6px;
    --maxw:      76rem;
    --serif:     "Merriweather", "Georgia", "Times New Roman", serif;
    --sans:      -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.10);
    --shadow:    0 2px 8px rgba(0,0,0,0.12), 0 1px 3px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font-family: var(--sans); font-size: 16px; line-height: 1.5;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
    font-family: var(--serif); font-weight: 900; line-height: 1.15;
    margin: 0;
}
h1 { font-size: 2.2rem; margin: 0.3em 0 0.4em; }
h2 { font-size: 1.5rem; margin: 0.8em 0 0.4em; }
h3 { font-size: 1.1rem; margin: 0.5em 0 0.2em; }

.muted { color: var(--text-muted); font-size: 0.9em; }
.meta { color: var(--text-muted); font-size: 0.82em; margin: 0 0 0.2em; }
.lead { font-size: 1.05rem; color: var(--text-muted); }

img { max-width: 100%; height: auto; display: block; }

/* ---------- Visually hidden (for accessibility) ---------- */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); border: 0;
}

/* ================================================================
   SITE HEADER — sticky, with area selector + category nav
   ================================================================ */
.site-header {
    background: var(--surface); border-bottom: 3px solid var(--accent);
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.site-header__top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 0; gap: 12px;
}
.site-header .logo {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--serif); font-weight: 900; font-size: 1.5rem; color: var(--text);
    white-space: nowrap; flex-shrink: 0;
}
.site-header .logo:hover { text-decoration: none; }
.site-header .logo .mark { color: var(--accent); }

/* Search in header */
.site-search {
    flex: 0 1 260px; position: relative;
}
.site-search input {
    width: 100%; padding: 6px 12px; border: 1px solid var(--border);
    border-radius: var(--radius); font: inherit; font-size: 0.88rem;
    background: var(--bg);
}
.site-search input:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(15,118,110,0.15);
}

.site-header nav { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.site-header nav a { color: var(--text-muted); font-weight: 600; font-size: 0.85rem; }
.site-header nav a:hover { color: var(--text); }

/* ---------- Area selector bar (under header top) ---------- */
.area-bar {
    display: flex; align-items: center; gap: 0;
    border-top: 1px solid var(--border);
    padding: 0; overflow: visible;
    flex-wrap: wrap;
}
.area-bar::-webkit-scrollbar { display: none; }

.area-bar a, .area-bar button {
    display: inline-flex; align-items: center; padding: 7px 13px;
    color: var(--text-muted); font-size: 0.82rem; font-weight: 600;
    white-space: nowrap; border: none; background: none;
    font-family: inherit; cursor: pointer; text-decoration: none;
    border-bottom: 2px solid transparent; transition: color 0.15s;
}
.area-bar a:hover, .area-bar button:hover {
    color: var(--text); text-decoration: none;
}
.area-bar a.active, .area-bar button.active {
    color: var(--accent); border-bottom-color: var(--accent);
}

/* Area dropdown (JS-enhanced, works without JS via :hover) */
.area-dropdown { position: relative; }
.area-dropdown__menu {
    display: none; position: absolute; top: 100%; left: 0;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow);
    min-width: 220px; max-height: 400px; overflow-y: auto; z-index: 50;
    padding: 6px 0;
}
.area-dropdown:hover .area-dropdown__menu,
.area-dropdown.open .area-dropdown__menu { display: block; }

.area-dropdown__menu a {
    display: block; padding: 7px 14px; color: var(--text);
    font-size: 0.85rem; border-bottom: none;
}
.area-dropdown__menu a:hover { background: var(--bg); text-decoration: none; }
.area-dropdown__menu .dropdown-group {
    padding: 5px 14px 3px; font-size: 0.75rem; font-weight: 600;
    color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px;
}
.area-dropdown__menu .dropdown-divider {
    height: 1px; background: var(--border); margin: 4px 0;
}

/* ---------- Category nav bar ---------- */
.cat-nav {
    display: flex; align-items: center; gap: 0;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; border-top: 1px solid var(--border);
    background: var(--surface);
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a {
    display: inline-block; padding: 7px 13px;
    color: var(--text-muted); font-size: 0.78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    white-space: nowrap; border-bottom: 3px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
.cat-nav a:hover { color: var(--text); text-decoration: none; }
.cat-nav a.active { color: var(--text); border-bottom-color: var(--accent); }
.cat-nav .cat-112 { color: var(--blue-112); }
.cat-nav .cat-112:hover { color: #1e3a8a; }
.cat-nav .cat-112.active { border-bottom-color: var(--blue-112); }
.cat-nav .cat-politik { color: var(--politik-color); }
.cat-nav .cat-politik.active { border-bottom-color: var(--politik-color); }
.cat-nav .cat-debat { color: var(--debat-color); }
.cat-nav .cat-debat.active { border-bottom-color: var(--debat-color); }

/* ================================================================
   FRONT PAGE — tabloid newspaper layout
   ================================================================ */

/* Main + sidebar grid */
.front-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    padding-top: 16px;
    padding-bottom: 32px;
}

/* ---------- Hero story — full-width image with overlaid text ---------- */
.hero-story {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s;
    position: relative;
}
.hero-story:hover { box-shadow: var(--shadow-lg); }

/* Image with gradient overlay */
.hero-story__image-wrap {
    position: relative;
    display: block;
}
.hero-story__image-wrap img,
.hero-story img {
    width: 100%; height: 420px; object-fit: cover; display: block;
}
.hero-story__overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
    padding: 40px 24px 24px;
}
.hero-story__overlay .cat-badge { margin-bottom: 8px; }
.hero-story__overlay h2 {
    font-size: 2.2rem; margin: 6px 0 10px; line-height: 1.12;
    font-weight: 900; color: #ffffff;
}
.hero-story__overlay h2 a { color: #ffffff; }
.hero-story__overlay h2 a:hover { color: rgba(255,255,255,0.85); text-decoration: none; }
.hero-story__overlay .excerpt {
    font-size: 0.95rem; line-height: 1.45; color: rgba(255,255,255,0.85);
    margin: 0; display: none; /* hidden on mobile by default */
}
.hero-story__overlay .byline-compact { color: rgba(255,255,255,0.65); margin-top: 6px; }

/* Fallback for hero without image */
.hero-story .hero-placeholder {
    width: 100%; height: 420px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 60%, #111111 100%);
    display: flex; align-items: flex-end; justify-content: flex-start;
    padding: 32px; position: relative;
}
.hero-story .hero-placeholder .hero-placeholder__label {
    color: rgba(255,255,255,0.3); font-size: 0.85rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px;
}

/* Body below image (when no overlay) */
.hero-story__body { padding: 18px 22px 22px; }
.hero-story h2 {
    font-size: 2rem; margin: 4px 0 10px; line-height: 1.12;
    font-weight: 900;
}
.hero-story h2 a { color: var(--text); }
.hero-story h2 a:hover { color: var(--accent); text-decoration: none; }
.hero-story .excerpt {
    font-size: 0.95rem; line-height: 1.5; color: var(--text-muted);
    margin: 0;
}

/* ---------- Story grid — mixed sizes (tabloid) ---------- */
.story-grid {
    display: grid; gap: 14px; margin-top: 14px;
    grid-template-columns: repeat(6, 1fr);
}

/* Default card: 2-column wide (3 across out of 6 cols) */
.story-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
    grid-column: span 2;
}
.story-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

/* Half-width card (spans 3 of 6 cols) */
.story-card--half { grid-column: span 3; }
.story-card--half img { height: 200px; }
.story-card--half .story-card__body h3 { font-size: 1.3rem; }

/* Third-width card (spans 2 of 6 cols) */
.story-card--third { grid-column: span 2; }
.story-card--third img { height: 150px; }
.story-card--third .story-card__body h3 { font-size: 1rem; }

/* Full-width card (spans all 6 cols) */
.story-card--full { grid-column: span 6; }
.story-card--full img { height: 260px; }
.story-card--full .story-card__body h3 { font-size: 1.5rem; }

/* Horizontal card — image left, text right */
.story-card--horizontal {
    grid-column: span 6;
    display: grid;
    grid-template-columns: 40% 1fr;
}
.story-card--horizontal img {
    width: 100%; height: 100%; min-height: 130px; object-fit: cover;
}
.story-card--horizontal .story-card__body h3 { font-size: 1.2rem; }

.story-card img { width: 100%; height: 160px; object-fit: cover; display: block; }
.story-card .card-placeholder {
    width: 100%; height: 160px;
    background: linear-gradient(135deg, #d8d8d8 0%, #c8c8c8 100%);
    display: flex; align-items: center; justify-content: center;
}
.story-card .card-placeholder .card-placeholder__icon {
    font-size: 2rem; color: var(--text-light); opacity: 0.5;
}
.story-card { position: relative; cursor: pointer; }
.story-card__body { padding: 12px 14px 14px; }
.story-card h3 { margin: 3px 0 6px; font-size: 1.05rem; line-height: 1.2; font-weight: 900; }
.story-card h3 a { color: var(--text); }
.story-card h3 a::after {
    content: ''; position: absolute; inset: 0; z-index: 1;
}
.story-card:hover h3 a { color: var(--accent); }
.story-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
.story-card .teaser {
    margin: 0; color: var(--text-muted); font-size: 0.82rem;
    line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.story-card p { margin: 0; color: var(--text-muted); font-size: 0.85rem; }

.story-card--wide {
    display: grid; grid-template-columns: 200px 1fr;
    padding: 0; margin-bottom: 0;
    grid-column: span 6;
}
.story-card--wide img { height: 100%; min-height: 120px; }
.story-card--wide h2 { font-size: 1.3rem; margin: 4px 0 8px; }
.story-card--wide h2 a { color: var(--text); }
@media (max-width: 640px) {
    .story-card--wide { grid-template-columns: 1fr; }
    .story-card--wide img { height: 180px; }
}

/* ---------- Sidebar ---------- */
.sidebar { display: flex; flex-direction: column; gap: 16px; }

.sidebar-box {
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-lg); padding: 16px;
}
.sidebar-box h3 {
    font-family: var(--sans); font-size: 0.78rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.6px; color: var(--surface);
    margin: -16px -16px 14px; padding: 8px 16px;
    background: var(--text);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Mest læste — EB-style numbered list */
.mest-laeste ol {
    list-style: none; padding: 0; margin: 0; counter-reset: rank;
}
.mest-laeste li {
    counter-increment: rank; padding: 10px 0 10px 44px;
    border-bottom: 1px solid var(--border); position: relative;
}
.mest-laeste li:last-child { border-bottom: none; }
.mest-laeste li::before {
    content: counter(rank); position: absolute; left: 0; top: 8px;
    font-size: 1.6rem; font-weight: 900; color: var(--border-strong);
    font-family: var(--serif); line-height: 1;
    width: 36px; text-align: center;
}
.mest-laeste a {
    color: var(--text); font-weight: 700; font-size: 0.88rem;
    line-height: 1.3; display: block;
}
.mest-laeste a:hover { color: var(--accent); text-decoration: none; }
.mest-laeste .ml-meta {
    font-size: 0.75rem; color: var(--text-light); margin-top: 2px;
}

/* Nyhedsbrev sidebar — more prominent */
.sidebar-signup p { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 10px; }
.sidebar-signup .btn { width: 100%; text-align: center; font-size: 0.9rem; }

/* ---------- Category section (112, Debat, etc.) ---------- */
.cat-section {
    padding: 22px 0;
    border-top: 3px solid var(--border-strong);
}
.cat-section__header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
}
.cat-section__header h2 {
    margin: 0; font-family: var(--sans); font-size: 0.88rem;
    text-transform: uppercase; letter-spacing: 0.6px; font-weight: 800;
}
.cat-section__header .see-all {
    font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
}

/* 112 section */
.cat-section--112 { border-top-color: var(--blue-112); }
.cat-section--112 .cat-section__header h2 { color: var(--blue-112); }

/* Politik section */
.cat-section--politik { border-top-color: var(--politik-color); }
.cat-section--politik .cat-section__header h2 { color: var(--politik-color); }

/* Debat section */
.cat-section--debat { border-top-color: var(--debat-color); }
.cat-section--debat .cat-section__header h2 { color: var(--debat-color); }

/* Compact story list (for category sections) */
.story-list-compact { list-style: none; padding: 0; margin: 0; }
.story-list-compact li {
    padding: 10px 0; border-bottom: 1px solid var(--border);
    display: flex; gap: 12px; align-items: flex-start;
}
.story-list-compact li:last-child { border-bottom: none; }
.story-list-compact .slc-img {
    width: 100px; height: 68px; flex-shrink: 0; border-radius: var(--radius);
    object-fit: cover;
}
.story-list-compact .slc-body { flex: 1; }
.story-list-compact h4 {
    margin: 0 0 3px; font-size: 0.9rem; font-family: var(--serif);
    line-height: 1.25; font-weight: 700;
}
.story-list-compact h4 a { color: var(--text); }
.story-list-compact h4 a:hover { color: var(--accent); text-decoration: none; }

/* Horizontal story row (3 items in a row with images) */
.story-row {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

/* ---------- Area badge on stories ---------- */
.area-badge {
    display: inline-block; font-size: 0.72rem; font-weight: 700;
    color: var(--primary); background: rgba(13,110,110,0.08);
    padding: 1px 7px; border-radius: 9999px;
}

/* ---------- Section divider ---------- */
.section-divider {
    border: none; border-top: 1px solid var(--border);
    margin: 0;
}

/* ================================================================
   AREAS GRID (full page + front page area chips)
   ================================================================ */
.areas-grid { padding: 32px 16px; }
.areas-grid .grid {
    display: grid; gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    margin-top: 18px;
}
.area-card {
    background: var(--surface); padding: 18px 16px;
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
    color: var(--text); transition: box-shadow 0.15s, transform 0.15s;
}
.area-card:hover {
    box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none;
}
.area-card h3 { margin: 0 0 3px; }
.area-card .meta { margin: 0; }

/* Area chip list (horizontal scroll on front) */
.area-chips {
    display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px;
}
.area-chip {
    display: inline-block; padding: 4px 12px; border-radius: 9999px;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text); font-size: 0.82rem; font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s;
}
.area-chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* ================================================================
   AREA PAGE
   ================================================================ */
.area-hero { padding: 32px 0; border-bottom: 1px solid var(--border); }
.area-hero h1 { font-size: 2.2rem; margin: 0 0 6px; }
.signup-inline {
    display: flex; gap: 8px; margin-top: 16px; max-width: 480px;
}
.signup-inline input {
    flex: 1; padding: 8px 12px; border: 1px solid var(--border);
    border-radius: var(--radius); font-size: inherit;
}
.category-nav {
    display: flex; gap: 4px; padding: 12px 16px; overflow-x: auto;
    border-bottom: 1px solid var(--border); margin-bottom: 18px;
}
.category-nav a {
    padding: 5px 10px; color: var(--text-muted); white-space: nowrap;
    border-radius: 9999px; font-size: 0.85rem;
}
.category-nav a:hover { background: var(--surface); color: var(--text); text-decoration: none; }

.story-list { padding: 18px 16px; }

/* ================================================================
   ARTICLE PAGE
   ================================================================ */
/* v1.3.0: Article page — SN.dk-inspired layout */
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 720px) 300px;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: start;
}
.article-main { min-width: 0; }
.article-sidebar {
    position: sticky; top: 100px;
    font-family: var(--sans);
}
.article-sidebar h3 {
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px;
    color: var(--text-muted); margin: 0 0 14px; padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
    font-family: var(--sans);
}
.sidebar-item { padding: 10px 0; border-bottom: 1px solid var(--border); }
.sidebar-item:last-child { border-bottom: none; }
.sidebar-item a {
    font-size: 0.95rem; font-weight: 700; color: var(--text);
    text-decoration: none; line-height: 1.35;
    display: block;
}
.sidebar-item a:hover { color: var(--accent); }
.sidebar-item .sidebar-meta {
    font-size: 0.75rem; color: var(--text-muted); margin-top: 3px;
}

/* Category tag at top */
.article-section-tag {
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; font-family: var(--sans);
    margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.article-section-tag .area-name { color: var(--accent); }
.article-section-tag .cat-name { color: var(--text-muted); }
.article-section-tag .separator { color: var(--border); }

/* Article header */
.article-header { padding: 24px 0 14px; }
.article-header h1 {
    font-size: 2.8rem; margin: 0 0 0.3em; line-height: 1.12;
    font-weight: 900; letter-spacing: -0.02em;
}
.article-header .subtitle {
    font-size: 1.25rem; color: var(--text-muted); font-family: var(--serif);
    line-height: 1.5; margin-bottom: 16px;
}

/* Meta line: date + byline */
.article-meta {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    margin-bottom: 20px; font-family: var(--sans); font-size: 0.85rem;
    color: var(--text-muted); flex-wrap: wrap;
}
.article-meta .journalist-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--border); display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; font-weight: 700; color: var(--text-muted); flex-shrink: 0;
}
.article-meta .meta-text { flex: 1; }
.article-meta .meta-text strong { color: var(--text); }
.article-meta .meta-date { font-size: 0.82rem; }
.article-meta .reading-time {
    font-size: 0.78rem; background: var(--background); padding: 2px 8px;
    border-radius: 9999px;
}

/* Hero image */
.hero-image { margin: 0 0 24px; }
.hero-image img { width: 100%; border-radius: var(--radius); display: block; }
.hero-image figcaption {
    padding: 8px 0 0; font-size: 0.82rem; color: var(--text-muted);
    font-family: var(--sans);
}

/* Article body */
.article-body {
    font-family: var(--serif); font-size: 1.15rem; line-height: 1.85;
    color: var(--text); padding: 0;
}
.article-body p { margin: 0 0 1.2em; }
.article-body h2 {
    margin-top: 1.6em; margin-bottom: 0.5em; font-size: 1.5rem;
    font-family: var(--sans); font-weight: 800;
}
.article-body h3 { margin-top: 1.3em; font-size: 1.2rem; font-family: var(--sans); }
.article-body a { color: var(--accent); border-bottom: 1px solid currentColor; text-decoration: none; }
.article-body blockquote {
    margin: 1.5em 0; padding: 16px 20px; border-left: 3px solid var(--accent);
    background: var(--background); font-style: italic;
}

/* Share icons — round style */
.share-buttons {
    display: flex; align-items: center; gap: 8px;
    margin: 24px 0; padding: 16px 0; border-top: 1px solid var(--border);
}
.share-label { font-size: 0.82rem; color: var(--text-muted); font-family: var(--sans); margin-right: 4px; }
.share-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border);
    background: var(--surface); color: var(--text-muted);
    font-size: 0.85rem; text-decoration: none; transition: all 0.15s;
    cursor: pointer;
}
.share-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--background); text-decoration: none; }
.share-btn--facebook:hover { border-color: #1877f2; color: #1877f2; background: #eff6ff; }
.share-btn--twitter:hover  { border-color: #000; color: #000; background: #f4f4f5; }
.share-btn--linkedin:hover { border-color: #0a66c2; color: #0a66c2; background: #eff6ff; }
.share-btn--email:hover    { border-color: #059669; color: #059669; background: #ecfdf5; }
.share-btn svg { width: 16px; height: 16px; fill: currentColor; }

/* Sources card */
.article-sources {
    padding: 20px 24px; margin-top: 28px;
    background: var(--background); border: 1px solid var(--border);
    border-radius: var(--radius);
}
.article-sources h2 {
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--text-muted); font-family: var(--sans); margin: 0 0 12px;
}
.source-list { list-style: none; padding: 0; margin: 0; }
.source-list li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.source-list li:last-child { border-bottom: none; }

/* Related articles in sidebar style */
.related-section { margin-top: 28px; }
.related-section h2 {
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px;
    color: var(--text-muted); font-family: var(--sans); margin: 0 0 14px;
    padding-bottom: 8px; border-bottom: 2px solid var(--accent);
}
.related-list { list-style: none; padding: 0; margin: 0; }
.related-item {
    display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border);
}
.related-item:last-child { border-bottom: none; }
.related-thumb { flex-shrink: 0; }
.related-thumb img { width: 80px; height: 60px; object-fit: cover; border-radius: 4px; }
.related-text a {
    font-size: 0.92rem; font-weight: 700; color: var(--text);
    text-decoration: none; line-height: 1.3;
}
.related-text a:hover { color: var(--accent); }
.related-text .muted { font-size: 0.78rem; display: block; margin-top: 3px; }

/* Complaint link */
.article-complaint {
    font-size: 0.82rem; color: var(--text-muted);
    border-top: 1px solid var(--border); padding-top: 12px; margin-top: 24px;
}

.ai-tag {
    display: inline-block; font-size: 0.72rem; padding: 1px 7px;
    background: #fef3c7; color: #92400e; border-radius: 9999px;
    font-family: var(--sans); margin-left: 4px;
}

/* v0.14.0: Journalist byline */
.byline {
    font-size: 0.9rem; color: var(--text-muted); margin-bottom: 3px;
    font-family: var(--sans);
}
.byline strong { color: var(--text); font-weight: 700; }

/* Byline i grid-kort (kompakt) */
.story-card .byline-compact {
    font-size: 0.75rem; color: var(--text-muted); margin-top: 4px;
    font-family: var(--sans);
}

/* Satire-sektion accent */
.cat-section--satire {
    border-left: 4px solid #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, var(--surface) 100%);
    padding-left: 16px;
}
.cat-section--satire .cat-section__header h2 { color: #b45309; }
.cat-section--satire .story-card { box-shadow: var(--shadow-sm); }
.satire-badge {
    display: inline-block; font-size: 0.68rem; padding: 1px 6px;
    background: #fef3c7; color: #92400e; border-radius: 9999px;
    font-family: var(--sans); font-weight: 600;
}

.related { max-width: 44rem; padding: 24px 16px 48px; margin-top: 18px; }
.related ul { list-style: none; padding: 0; }
.related li { padding: 7px 0; border-bottom: 1px solid var(--border); }
.related li a { font-weight: 600; color: var(--text); }

/* ================================================================
   SIGNUP / TILMELD
   ================================================================ */
.signup { padding: 48px 16px; text-align: center; }
.signup-page { padding-bottom: 48px; }
.signup-form, .signup-success { max-width: 480px; margin: 36px auto; }
.signup-form form {
    background: var(--surface); padding: 24px; box-shadow: var(--shadow);
    border-radius: var(--radius); margin-top: 18px;
}
.signup-form label { display: block; margin-bottom: 12px; font-weight: 600; font-size: 0.92rem; }
.signup-form input[type="email"], .signup-form input[type="text"] {
    display: block; width: 100%; padding: 9px 12px; margin-top: 4px;
    border: 1px solid var(--border); border-radius: var(--radius); font: inherit;
}
.signup-form .checkbox { display: block; font-weight: normal; margin: 6px 0; }
.signup-form fieldset {
    border: 1px solid var(--border); padding: 10px 14px;
    border-radius: var(--radius); margin-bottom: 12px;
}
.signup-form legend { padding: 0 6px; font-weight: 600; }
.signup-form .required { color: var(--accent); }
.signup-form .small { font-size: 0.82rem; margin-top: 10px; }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
    display: inline-block; padding: 8px 18px; border-radius: var(--radius);
    border: 1px solid var(--border); background: var(--surface); color: var(--text);
    font-family: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer;
    text-decoration: none;
}
.btn:hover { background: var(--bg); text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #ffffff; }
.btn-primary:hover { background: #a02f22; border-color: #a02f22; color: #fff; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-sm { padding: 5px 12px; font-size: 0.82rem; }

/* ================================================================
   ALERTS
   ================================================================ */
.alert { padding: 10px 14px; border-radius: var(--radius); margin-bottom: 12px; border: 1px solid var(--border); }
.alert-error   { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }

/* ================================================================
   PAGINATION
   ================================================================ */
.pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; padding: 18px 0;
}

/* ================================================================
   OTHER AREAS (area page)
   ================================================================ */
.other-areas { padding: 22px 0 32px; }
.area-link-list {
    list-style: none; padding: 0; margin: 10px 0 0;
    display: flex; flex-wrap: wrap; gap: 6px;
}
.area-link-list li a {
    display: inline-block; padding: 5px 12px; border-radius: 9999px;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text); font-size: 0.85rem; font-weight: 500;
    box-shadow: var(--shadow-sm);
}
.area-link-list li a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
    border-top: 3px solid var(--text); background: var(--surface);
    margin-top: 40px; padding: 32px 0 18px;
}
.footer-cols {
    display: grid; gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    margin-bottom: 24px;
}
.site-footer h4 {
    margin: 0 0 10px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.5px;
    font-weight: 800;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 5px; }
.site-footer a { color: var(--text-muted); font-size: 0.88rem; }
.copyright {
    text-align: center; padding-top: 14px;
    border-top: 1px solid var(--border); font-size: 0.82rem;
}

/* ================================================================
   ERROR PAGE
   ================================================================ */
.error-page { text-align: center; padding: 100px 16px; }
.error-page h1 { font-size: 5rem; color: var(--text-muted); margin: 0; }

/* ================================================================
   FRONT HERO (legacy compat — used by old index.php)
   ================================================================ */
.front-hero .hero-card img {
    width: 100%; height: auto; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.hero-body { padding: 18px 22px; }

/* ================================================================
   v0.15.0: KRONOLOGISK FEED + STICKY SIDEBAR
   ================================================================ */

/* Sticky sidebar — følger med ned mens man scroller feedet */
.sidebar--sticky {
    position: sticky;
    top: 72px; /* under fixed header */
    align-self: start;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
}

/* Byline (kompakt, til hero og grid) */
.byline-compact {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--sans);
    margin: 3px 0 0;
}
.byline-compact .ai-tag { font-size: 0.62rem; vertical-align: middle; }

/* Feed section */
.feed-section { margin-top: 22px; }
.feed-section .cat-section__header { margin-bottom: 12px; }
.feed-section .cat-section__header h2 {
    font-size: 1rem; color: var(--text);
    text-transform: uppercase; letter-spacing: 0.5px;
    font-family: var(--sans); font-weight: 800;
    border-bottom: 3px solid var(--accent);
    padding-bottom: 6px; display: inline-block;
}

/* Feed stream — kronologisk liste */
.feed-stream { display: flex; flex-direction: column; gap: 0; }

/* Feed item — standard compact (text + thumbnail right) */
.feed-item {
    display: grid;
    grid-template-columns: 1fr 110px;
    gap: 10px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.feed-item:last-child { border-bottom: none; }

.feed-item { position: relative; cursor: pointer; }
.feed-item__body { flex: 1; min-width: 0; }
.feed-item__body h3 {
    font-family: var(--serif); font-size: 1rem; font-weight: 900;
    margin: 3px 0 5px; line-height: 1.2;
}
.feed-item__body h3 a { color: var(--text); text-decoration: none; }
.feed-item__body h3 a::after {
    content: ''; position: absolute; inset: 0; z-index: 1;
}
.feed-item:hover h3 a { color: var(--accent); }
.feed-item:hover { box-shadow: 0 1px 8px rgba(0,0,0,0.08); }
.feed-item__body .teaser {
    font-size: 0.82rem; color: var(--text-muted); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.feed-item__thumb {
    width: 110px;
    height: 74px;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
    flex-shrink: 0;
}
/* Placeholder when no image is available */
.feed-item__thumb--placeholder {
    background: linear-gradient(135deg, #d8d8d8 0%, #c8c8c8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Feed item — large (full-width horizontal: image left 40%, text right 60%) */
.feed-item--large {
    display: grid;
    grid-template-columns: 40% 1fr;
    gap: 0;
    padding: 16px 0;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border-bottom: none;
    margin-bottom: 12px;
    overflow: hidden;
}
.feed-item--large .feed-item__img {
    display: block;
    overflow: hidden;
}
.feed-item--large .feed-item__img img {
    width: 100%; height: 100%; min-height: 180px; object-fit: cover; display: block;
    transition: transform 0.2s ease;
}
.feed-item--large .feed-item__img:hover img { transform: scale(1.02); }
.feed-item--large .feed-item__body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.feed-item--large h3 { font-size: 1.3rem; line-height: 1.18; }
.feed-item--large .teaser { -webkit-line-clamp: 3; font-size: 0.88rem; }
/* Override: large items don't use the thumbnail column layout */
.feed-item--large { grid-template-columns: 40% 1fr; }

/* Feed insert — kategori-break i feedet: colored left-border strip, compact */
.feed-insert {
    margin: 16px 0;
    padding: 14px 14px 14px 18px;
    border-radius: var(--radius);
    border-left: 4px solid currentColor;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.feed-insert__title {
    font-family: var(--sans); font-size: 0.78rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.5px;
    margin: 0 0 10px; padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

/* 112-insert */
.feed-insert--112 {
    color: var(--blue-112);
    background: var(--blue-112-bg);
    border-color: var(--blue-112);
}
.feed-insert--112 .feed-insert__title { color: var(--blue-112); }

/* Politik-insert */
.feed-insert--politik {
    color: var(--politik-color);
    background: #f5f3ff;
    border-color: var(--politik-color);
}
.feed-insert--politik .feed-insert__title { color: var(--politik-color); }
.feed-insert--politik .story-row {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.feed-insert--politik .story-card--compact {
    background: transparent; box-shadow: none; border: none;
}
.feed-insert--politik .story-card--compact img {
    width: 100%; height: 90px; object-fit: cover;
    border-radius: var(--radius);
}
.feed-insert--politik .story-card--compact h4 {
    font-family: var(--serif); font-size: 0.85rem; margin: 5px 0 0;
    line-height: 1.25; font-weight: 700;
}
.feed-insert--politik .story-card--compact h4 a { color: var(--text); }

/* Satire-insert */
.feed-insert--satire {
    color: #b45309;
    background: #fffbeb;
    border-color: #f59e0b;
}
.feed-insert--satire .feed-insert__title { color: #b45309; }

/* Load More knap */
.load-more-wrap {
    text-align: center; padding: 22px 0 12px;
}
.btn-load-more {
    display: inline-block;
    padding: 11px 40px;
    font-size: 0.95rem; font-weight: 700;
    font-family: var(--sans);
    background: var(--surface);
    color: var(--text);
    border: 2px solid var(--border-strong);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
    box-shadow: var(--shadow-sm);
}
.btn-load-more:hover {
    background: var(--text); color: var(--surface); border-color: var(--text);
    transform: translateY(-1px);
}
.btn-load-more:disabled {
    opacity: 0.6; cursor: wait;
    transform: none;
}

/* ================================================================
   v0.16.0: BREAKING / LIVE NEWS TICKER
   A fixed horizontal bar that sits above the hero section.
   Background uses --accent (red) with white text. The inner
   <span class="breaking-ticker__label"> wraps the static "BREAKING"
   label, and <span class="breaking-ticker__scroll"> holds the
   marquee text (JS animates it; CSS provides the container).
   ================================================================ */
.breaking-ticker {
    background: var(--accent);
    color: #ffffff;
    height: 34px;
    display: flex;
    align-items: center;
    overflow: hidden;
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    white-space: nowrap;
}
.breaking-ticker__label {
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.3);
    padding: 0 12px;
    height: 100%;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.72rem;
    margin-right: 14px;
}
.breaking-ticker__scroll {
    flex: 1;
    overflow: hidden;
    position: relative;
}
.breaking-ticker__scroll-inner {
    display: inline-block;
    white-space: nowrap;
    animation: ticker-scroll 40s linear infinite;
    padding-left: 100%;
}
.breaking-ticker__scroll-inner a {
    color: #ffffff;
    text-decoration: none;
    margin-right: 60px;
}
.breaking-ticker__scroll-inner a:hover {
    text-decoration: underline;
}
@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

/* ================================================================
   v0.16.0: CATEGORY BADGES
   Colored pill badges for category labels on feed items and cards.
   ================================================================ */
.cat-badge {
    display: inline-block;
    font-size: 0.68rem;
    padding: 1px 6px;
    border-radius: 9999px;
    font-weight: 700;
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    vertical-align: middle;
    line-height: 1.6;
}

/* Politik — purple */
.cat-badge--politik   { background: #f3e8ff; color: #7c3aed; }

/* 112 — blue */
.cat-badge--112       { background: #eff6ff; color: #1d4ed8; }

/* Krimi — red */
.cat-badge--krimi     { background: #fff1f2; color: #be123c; }

/* Kultur — green */
.cat-badge--kultur    { background: #f0fdf4; color: #15803d; }

/* Sport — orange */
.cat-badge--sport     { background: #fff7ed; color: #c2410c; }

/* Trafik — gray */
.cat-badge--trafik    { background: #f4f4f5; color: #52525b; }

/* Uddannelse — teal */
.cat-badge--uddannelse { background: #f0fdfa; color: #0f766e; }

/* Bolig — amber */
.cat-badge--bolig     { background: #fffbeb; color: #b45309; }

/* Debat — yellow */
.cat-badge--debat     { background: #fefce8; color: #854d0e; }

/* Satire — amber */
.cat-badge--satire    { background: #fef3c7; color: #92400e; }

/* Breaking / Rødstempel */
.cat-badge--breaking  { background: var(--accent); color: #ffffff; }

/* ================================================================
   v0.16.0: TIME-SINCE FORMATTING
   ================================================================ */
.time-since {
    font-size: 0.72rem;
    color: var(--text-light);
    font-family: var(--sans);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ================================================================
   v0.16.0: "LIGE NU" LIVE SECTION
   Red background strip — tabloid news ticker style.
   ================================================================ */
.live-section {
    background: #1a1a1a;
    border-bottom: none;
    padding: 8px 0;
    font-family: var(--sans);
}
.live-section__inner {
    display: flex;
    align-items: flex-start;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.live-section__inner::-webkit-scrollbar { display: none; }

.live-section__label {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    background: var(--accent);
    padding: 5px 12px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 14px;
    border-radius: var(--radius);
}
.live-section__label::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    animation: live-pulse 1.6s ease-in-out infinite;
}
@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.8); }
}

.live-section__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0;
    align-items: stretch;
}
.live-section__item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 3px 14px;
    border-right: 1px solid rgba(255,255,255,0.15);
    min-width: 0;
}
.live-section__item:last-child { border-right: none; }
.live-section__item a {
    color: rgba(255,255,255,0.9);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
    display: block;
}
.live-section__item a:hover { color: #ffffff; text-decoration: none; }
.live-section__item .time-since { color: rgba(255,255,255,0.45); }

/* ================================================================
   v0.16.0: READING META + SHARE BUTTONS ON ARTICLES
   ================================================================ */
.reading-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--sans);
    margin: 5px 0 0;
    flex-wrap: wrap;
}
.reading-meta__sep {
    color: var(--border-strong);
}
.reading-meta__time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 14px 0;
    flex-wrap: wrap;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 9999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-family: var(--sans);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    white-space: nowrap;
}
.share-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-subtle);
    text-decoration: none;
}
.share-btn--facebook:hover { border-color: #1877f2; color: #1877f2; background: #eff6ff; }
.share-btn--x:hover        { border-color: #000000; color: #000000; background: #f4f4f5; }
.share-btn--copy:hover     { border-color: var(--primary-hover); color: var(--primary-hover); }

/* ================================================================
   v0.16.0: SCROLL PROGRESS BAR
   ================================================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--accent);
    z-index: 9999;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* ================================================================
   v0.16.0: HAMBURGER MENU (MOBILE NAV TOGGLE)
   ================================================================ */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--text);
    flex-shrink: 0;
}
.hamburger__bar {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}
.hamburger__bar + .hamburger__bar { margin-top: 5px; }
/* Animate to × when open */
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(2) {
    opacity: 0;
}
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ================================================================
   v0.16.0: TYPOGRAPHY & SPACING POLISH
   ================================================================ */

/* Section spacing — tabloid density */
.cat-section       { padding-top: 22px; padding-bottom: 22px; }
.feed-section      { margin-top: 22px; }
.other-areas       { padding-top: 22px; padding-bottom: 32px; }
.related           { padding-top: 22px; }

/* Larger hero headline on desktop */
@media (min-width: 769px) {
    .hero-story__overlay h2 { font-size: 2.6rem; }
    .hero-story__overlay .excerpt { display: block; }
}

/* ================================================================
   MOBILE
   ================================================================ */
@media (max-width: 1024px) {
    .article-layout { grid-template-columns: 1fr; gap: 28px; }
    .article-sidebar { position: static; }
    .front-layout {
        grid-template-columns: 1fr;
    }
    .sidebar, .sidebar--sticky {
        order: 10;
        position: static; max-height: none; overflow: visible;
    }
    .story-grid { grid-template-columns: repeat(4, 1fr); }
    .story-card--half { grid-column: span 2; }
    .story-card--third { grid-column: span 2; }
    .story-card--full { grid-column: span 4; }
    .story-card--horizontal { grid-column: span 4; }
    .story-card--wide { grid-column: span 4; }
    .story-row { grid-template-columns: repeat(2, 1fr); }
    .feed-insert--politik .story-row { grid-template-columns: repeat(2, 1fr); }
    .feed-item--large { grid-template-columns: 45% 1fr; }
}

@media (max-width: 640px) {
    h1 { font-size: 1.7rem !important; }
    .hero-story__overlay h2 { font-size: 1.5rem; }
    .hero-story img,
    .hero-story__image-wrap img { height: 240px; }
    .hero-story .hero-placeholder { height: 240px; padding: 18px; }
    .article-layout { grid-template-columns: 1fr; gap: 24px; }
    .article-sidebar { position: static; }
    .article-header h1 { font-size: 1.8rem; }
    .article-body { font-size: 1.05rem; }

    .site-header__top { flex-wrap: wrap; }
    .site-search { flex: 1 1 100%; order: 10; }
    .site-header nav a:not(.btn) { display: none; }

    .story-grid { grid-template-columns: repeat(2, 1fr); }
    .story-card--half,
    .story-card--third,
    .story-card--full,
    .story-card--horizontal,
    .story-card--wide { grid-column: span 2; }
    .story-card--horizontal { grid-template-columns: 1fr; }
    .story-row { grid-template-columns: 1fr; }
    .story-card--wide { grid-template-columns: 1fr; }
    .story-card--wide img { height: 180px; }

    .signup-inline { flex-direction: column; }

    .story-list-compact li { flex-direction: column; }
    .story-list-compact .slc-img { width: 100%; height: 150px; }

    /* Feed mobile — collapse large item to stacked */
    .feed-item--large {
        grid-template-columns: 1fr;
    }
    .feed-item--large .feed-item__img img { height: 180px; }
    .feed-item--large .feed-item__body { padding: 12px 14px; }
    .feed-insert--politik .story-row { grid-template-columns: 1fr; }
    .btn-load-more { padding: 10px 28px; font-size: 0.9rem; }

    /* Compact feed items: single col on very small screens */
    .feed-item {
        grid-template-columns: 1fr;
    }
    .feed-item__thumb {
        width: 100%;
        height: 150px;
        order: -1;
    }
}

/* ================================================================
   v0.16.0: HAMBURGER MENU — mobile nav collapse
   ================================================================ */
@media (max-width: 768px) {
    .hamburger { display: flex; flex-direction: column; }

    .site-header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        padding: 10px 16px;
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow);
        z-index: 99;
    }
    .site-header nav.is-open {
        display: flex;
    }
    .site-header nav a {
        padding: 9px 0;
        border-bottom: 1px solid var(--border);
        font-size: 0.92rem;
    }
    .site-header nav a:last-child { border-bottom: none; }

    /* Live section wraps to vertical on mobile */
    .live-section__inner { flex-direction: column; }
    .live-section__label {
        border-right: none;
        border-radius: var(--radius);
        margin-bottom: 6px;
    }
    .live-section__list { flex-direction: column; }
    .live-section__item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 7px 0;
    }
    .live-section__item:last-child { border-bottom: none; }
    .live-section__item a { max-width: none; white-space: normal; }
}
