:root {
	--bg-page: #f1f5f9;
	--bg-card: #ffffff;
	--bg-subtle: #f8fafc;
	--primary-blue: #004b87;
	--primary-blue-hover: #003666;
	--accent-sky: #0284c7;
	--accent-red: #dc2626;
	--text-main: #0f172a;
	--text-body: #334155;
	--text-muted: #64748b;
	--border-light: #e2e8f0;
	--radius-lg: 12px;
	--radius-md: 8px;
	--radius-sm: 5px;
	--shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04);
	--shadow-md: 0 6px 16px rgba(15, 23, 42, 0.06);
	--svt-blue: #0a47b1;
	--sr-orange: #d94b00;
	--police-blue: #00668f;
	--alert-red: #de2c2c;
	--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--font-serif: "Merriweather", "Lora", "Georgia", serif; /* Premium tidningskänsla */
}

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

body {
	font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	background-color: var(--bg-page);
	color: var(--text-main);
	line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ================= HEADER ================= */
/* Gemensam container som låser exakt samma bredd för båda raderna */
.header-container {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.top-brand-bar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--bg-page);
    width: 100%;
}

.sticky-widgets-bar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    box-shadow: var(--shadow-sm);
}

.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}

.header-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    gap: 12px;
    flex-wrap: nowrap; /* Förhindrar att raden bryts på desktop */
}

/* Mini-logga (dold i utgångsläget, glider fram vid scroll) */
.sticky-mini-logo {
    display: none;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.04em;
    padding-right: 6px;
    border-right: 1px solid var(--border-light);
    margin-right: 2px;
    font-family: "Merriweather", "Lora", "Georgia", serif;
}

.sticky-mini-logo span {
    color: var(--primary-blue);
}

.sticky-mini-logo.visible {
    display: inline-block;
}

.brand-group {
	display: flex;
	align-items: baseline;
	gap: 14px;
}
/*

.brand-logo {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--text-main);
	text-decoration: none;
	letter-spacing: -0.04em;
	font-family: "Merriweather", "Lora", "Georgia", serif;
}
*/
.brand-logo span {
	color: var(--primary-blue);
	font-family: "Merriweather", "Lora", "Georgia", serif;
}

.brand-tagline {
	font-size: 0.85rem;
	color: var(--text-muted);
	font-weight: 500;
}

.date-meta-pill {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--text-body);
	background: var(--bg-subtle);
	border: 1px solid var(--border-light);
	padding: 5px 12px;
	border-radius: 20px;
	display: flex;
	gap: 8px;
}

.date-meta-pill .sep {
	color: #cbd5e1;
}

.namnsdag-highlight {
	color: var(--primary-blue);
	font-weight: 700;
}

.header-bottom-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 12px;
	gap: 16px;
}

.widgets-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap; /* Håller alla piller på exakt en rad */
    min-width: 0;
}




.mini-play-btn {
	background: var(--primary-blue);
	color: #ffffff;
	border: none;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	font-size: 0.65rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-left: 2px;
	transition: background 0.15s ease;
}

.mini-play-btn:hover {
	background: var(--primary-blue-hover);
}

/* Gör radio-pillret till ankare för dropdown-menyn */
.radio-pill {
    position: relative;
    cursor: pointer;
}

/* Liten nedåtpil bredvid kanalnamnet */
.radio-chevron {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-left: 2px;
    transition: transform 0.15s ease;
}

.radio-pill:hover .radio-chevron {
    transform: rotate(180deg);
}

/* Själva rullgardinsmenyn (dold i utgångsläget) */
.radio-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: 8px; /* Osynlig brygga så menyn inte stängs när musen flyttas ner */
    min-width: 195px;
    z-index: 200;
}

.radio-pill:hover .radio-dropdown-menu {
    display: block;
}

.radio-dropdown-inner {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.radio-channel-option {
    background: transparent;
    border: none;
    text-align: left;
    padding: 8px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-body);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.12s ease, color 0.12s ease;
}

.radio-channel-option:hover {
    background: var(--bg-subtle);
    color: var(--primary-blue);
}

.radio-channel-option.active-channel {
    background: #eff6ff;
    color: var(--primary-blue);
    font-weight: 700;
}

.region-selector-wrap {
    flex-shrink: 0; /* Låser regionväljarens storlek */
}

.region-select {
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #cbd5e1;
    background: var(--bg-card);
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    outline: none;
}

.region-select:hover {
	border-color: var(--primary-blue);
}

/* ================= MAIN GRID ================= */
.main-wrapper {
	max-width: 1240px;
	margin: 28px auto;
	padding: 0 20px;
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 28px;
	align-items: start;
}

.feed-header-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
}

.section-heading {
	font-size: 1.15rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--text-main);
}

.filter-pills {
	display: flex;
	gap: 6px;
}

.filter-btn {
	background: var(--bg-card);
	border: 1px solid var(--border-light);
	padding: 5px 12px;
	border-radius: 16px;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--text-muted);
	cursor: pointer;
	transition: all 0.15s ease;
}

.filter-btn:hover {
	border-color: #94a3b8;
	color: var(--text-main);
}

.filter-btn.active {
	background: var(--text-main);
	color: #ffffff;
	border-color: var(--text-main);
}

/* ================= NEWS CARDS ================= */
.news-card {
	background: var(--bg-card);
	border: 1px solid var(--border-light);
	border-radius: var(--radius-lg);
	padding: 22px;
	margin-bottom: 16px;
	box-shadow: var(--shadow-sm);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.news-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

.card-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.live-dot-badge {
	background: var(--accent-red);
	color: #ffffff;
	font-size: 0.65rem;
	font-weight: 800;
	padding: 2px 7px;
	border-radius: 4px;
	letter-spacing: 0.04em;
}

.source-badge {
	font-size: 0.7rem;
	font-weight: 800;
	padding: 2px 7px;
	border-radius: 4px;
	text-transform: uppercase;
}

.source-svt {
	background: #004b87;
	color: #ffffff;
}

.source-sr {
	background: #1e293b;
	color: #ffffff;
}

.region-pill {
	background: #eff6ff;
	color: #1d4ed8;
	font-size: 0.7rem;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 4px;
	text-decoration: none;
	text-transform: uppercase;
	transition: background 0.15s ease;
}

.region-pill:hover {
	background: #dbeafe;
}

.card-time {
	font-size: 0.75rem;
	color: var(--text-muted);
	margin-left: auto;
}

/* HERO CARD */
.hero-card {
	border-top: 4px solid var(--primary-blue);
}

.hero-title {
	font-size: 2.6rem;
	font-weight: 800;
	line-height: 1.25;
	margin-bottom: 14px;
}

.hero-title a, .compact-title a {
	color: var(--text-main);
	text-decoration: none;
}

.hero-title a:hover, .compact-title a:hover {
	color: var(--primary-blue);
}

.hero-media-wrap {
	margin-bottom: 14px;
	border-radius: var(--radius-md);
	overflow: hidden;
	background: var(--bg-subtle);
}

.hero-media-wrap img {
	width: 100%;
	height: auto;
	max-height: 420px;
	object-fit: cover;
	display: block;
}

.media-credit {
	display: block;
	font-size: 0.7rem;
	color: var(--text-muted);
	padding: 6px 10px;
	background: var(--bg-subtle);
	text-align: right;
}

.hero-summary {
	font-size: 1.2rem;
	color: var(--text-body);
	line-height: 1.6;
	margin-bottom: 14px;
	font-family: "libre-baskerville";
}

.read-more-link {
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--primary-blue);
	text-decoration: none;
}

.read-more-link:hover {
	text-decoration: underline;
}

/* COMPACT CARDS */
.compact-card-body {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	align-items: flex-start;
}

.compact-text-col {
	flex: 1;
}

.compact-title {
	font-size: 2rem;
	font-weight: 800;
	line-height: 1.3;
	margin-bottom: 8px;

}

.compact-summary {
	font-size: 0.9rem;
	color: var(--text-body);
	line-height: 1.5;

}

.compact-thumb-col {
	width: 150px;
	flex-shrink: 0;
}

.compact-thumb-col img {
	width: 150px;
	height: 105px;
	object-fit: cover;
	border-radius: var(--radius-md);
	display: block;
}

/* ================= SIDEBAR ================= */
.right-sidebar-column {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.sidebar-box {
	background: var(--bg-card);
	border: 1px solid var(--border-light);
	border-radius: var(--radius-lg);
	padding: 20px;
	box-shadow: var(--shadow-sm);
	overflow-y: auto;
	overflow-y: auto;
	overflow-x: hidden;
	max-height: 500px;
	scroll-behavior: smooth;
	
	/* Firefox: Tunn och diskret scrollbar */
	scrollbar-width: thin;
	scrollbar-color: #cbd5e1 transparent;
}

.sidebar-box1 {
	background: var(--bg-card);
	border: 1px solid var(--border-light);
	border-radius: var(--radius-lg);
	padding: 20px;
	box-shadow: var(--shadow-sm);

}

.sidebar-heading {
	font-size: 0.9rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--text-main);
	padding-bottom: 10px;
	margin-bottom: 14px;
	border-bottom: 2px solid var(--primary-blue);
}

/* MEST LÄST */
.most-read-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.most-read-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--bg-page);
}

.most-read-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.most-read-rank {
	font-size: 1.45rem;
	font-weight: 900;
	color: #cbd5e1;
	line-height: 1;
	min-width: 22px;
}

.most-read-link {
	display: block;
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--text-main);
	text-decoration: none;
	line-height: 1.3;
	margin-bottom: 4px;
}

.most-read-link:hover {
	color: var(--primary-blue);
}

.most-read-meta {
	font-size: 0.72rem;
	color: var(--text-muted);
	font-weight: 600;
}

/* ALERTS */
.alert-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.alert-item {
	padding-bottom: 12px;
	border-bottom: 1px solid var(--bg-page);
}

.alert-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.alert-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 5px;
}

.alert-tag {
	font-size: 0.68rem;
	font-weight: 800;
	background: #e0f2fe;
	color: #0369a1;
	padding: 2px 6px;
	border-radius: 4px;
	text-transform: uppercase;
}

.police-tag {
	background: #fee2e2;
	color: #b91c1c;
}

.road-tag {
	background: #fef3c7;
	color: #b45309;
}

.alert-time {
	font-size: 0.72rem;
	color: var(--text-muted);
	font-weight: 600;
}

.alert-title {
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--text-main);
	margin-bottom: 4px;
}

.alert-desc {
	font-size: 0.8rem;
	color: var(--text-body);
	line-height: 1.4;
}

.alert-ext-link {
	display: inline-block;
	margin-top: 6px;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--primary-blue);
	text-decoration: none;
}

/* ================= FOOTER ================= */
.main-footer {
background: #0f172a;
color: #cbd5e1;
margin-top: 50px;
padding-top: 40px;
}
.footer-container {
max-width: 1240px;
margin: 0 auto;
padding: 0 20px 30px 20px;
display: grid;
grid-template-columns: 2fr 1fr 1fr;
gap: 30px;
}
.footer-logo {
font-size: 1.5rem;
font-weight: 900;
color: #ffffff;
margin-bottom: 10px;
}
.footer-logo span {
color: #38bdf8;
}
.footer-col p {
font-size: 0.85rem;
color: #94a3b8;
max-width: 340px;
margin-bottom: 14px;
}
.perf-badge {
display: inline-block;
font-size: 0.72rem;
font-weight: 700;
background: #1e293b;
color: #38bdf8;
padding: 4px 10px;
border-radius: 4px;
}
.footer-col h4 {
color: #ffffff;
font-size: 0.9rem;
margin-bottom: 12px;
text-transform: uppercase;
letter-spacing: 0.04em;
}
.footer-col ul {
list-style: none;
display: flex;
flex-direction: column;
gap: 8px;
}
.footer-col a {
color: #94a3b8;
text-decoration: none;
font-size: 0.85rem;
transition: color 0.15s ease;
}
.footer-col a:hover {
color: #ffffff;
}
.footer-bottom {
border-top: 1px solid #1e293b;
text-align: center;
padding: 18px 20px;
font-size: 0.78rem;
color: #64748b;
}

css
/* ==========================================================================
   ✉️ KONTAKT & KOPIERINGSKNAPP I FOOTER
   ========================================================================== */
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.contact-mail-link {
    color: #38bdf8 !important;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s ease;
}

.contact-mail-link:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

.copy-mail-btn {
    background: #1e293b;
    border: 1px solid #334155;
    color: #cbd5e1;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.copy-mail-btn:hover {
    background: #334155;
    color: #ffffff;
    border-color: #475569;
}

.copy-mail-btn.copied {
    background: #065f46;
    border-color: #059669;
    color: #ffffff;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 960px) {

	.main-wrapper {
		grid-template-columns: 1fr;
	}

	.header-top-row, .header-bottom-row {
		flex-direction: column;
		align-items: flex-start;
	}

	.footer-container {
		grid-template-columns: 1fr;
	}
	
 	.sticky-widgets-bar .header-bottom-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding: 8px 0 !important;
    }

    .sticky-widgets-bar .widgets-strip {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Döljer scrollbar i Firefox */
        padding-bottom: 2px;
        width: 100%;
    }

    .sticky-widgets-bar .widgets-strip::-webkit-scrollbar {
        display: none; /* Döljer scrollbar i Chrome/Safari */
    }

    .sticky-widgets-bar .region-selector-wrap,
    .sticky-widgets-bar .region-select {
        width: 100% !important;
    }

    /* Fixar så att radio-dropdown inte klipps av på mobil */
    .radio-dropdown-menu {
        position: fixed !important;
        top: 52px !important;
        left: 20px !important;
        right: 20px !important;
        width: auto !important;
    }

    .brand-tagline{display:none;}
}

@media (max-width: 600px) {

	.compact-card-body {
		flex-direction: column-reverse;
	}
	.compact-thumb-col, .compact-thumb-col img {
		width: 100%;
		height: 180px;
	}
}



.external-source-btn {
	display: inline-block; 
	background: var(--svt-blue); 
	color: #ffffff; 
	padding: 8px 16px; 
	border-radius: 4px; 
	font-size: 0.85rem; 
	font-weight: 700; 
	text-decoration: none;
	transition: background-color 0.15s ease; /* Snyggt om knappen också mjukas upp */
}

/* --- 2. Din befintliga pil-pseudoklass (Intakt) --- */
.external-source-btn::after {
	content: ' ↗';
	font-size: 0.85rem;
	display: inline-block;
	margin-left: 6px;
	font-weight: 500;
	transition: transform 0.15s ease, color 0.15s ease;
	height: 20px;
}

/* ==========================================================================
   🔥 FIXEN: Aktivera isometrisk rörelse på pilen autonomously vid hover
   ========================================================================== */
.external-source-btn:hover::after {
	/* Skjuter pilen 3 pixlar till höger och 3 pixlar uppåt i en mjuk animation */
	transform: translate(3px, -3px); 
	font-weight: 800;
}


.sidebar-action-link {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #004b87;
  text-decoration: none;
  margin-top: 6px;
}
.sidebar-action-link:hover{text-decoration: underline;}


/* ==========================================================================
   🔧 HEADER RAD-LÅSNING (Klistras längst ner i style.css)
   ========================================================================== */
.sticky-widgets-bar .header-bottom-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 0 !important;
    gap: 10px !important;
}

.sticky-widgets-bar .widgets-strip {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
}

.sticky-widgets-bar .header-pill {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    white-space: nowrap !important;
    background: var(--bg-subtle) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 20px !important;
    padding: 4px 10px !important;
    font-size: 0.72rem !important;
    gap: 6px !important;
}

.sticky-widgets-bar .region-selector-wrap {
    flex-shrink: 0 !important;
}

#header-elpris-widget {
    border-left: 3px solid #cbd5e1 !important; /* Standard grå */
}
#header-elpris-widget.price-low { border-left-color: #10b981 !important; }    /* Grön vid billig el */
#header-elpris-widget.price-medium { border-left-color: #f59e0b !important; } /* Gul vid normal el */
#header-elpris-widget.price-high { border-left-color: #ef4444 !important; }   /* Röd vid dyr el */

.el-box .el-title {
    font-weight: 600;
    color: #475569;
}
.el-box .el-value {
    font-weight: 800;
    color: #0f172a;
}

.live{
	font-weight: 700;
	color: var(--accent-red);
}

.live-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #ff3b30; /* Knallröd färg */
    border-radius: 50%;
    position: relative;
    display: inline-block;
}

/* Den pulserande glorian runt pricken */
.live-pulse-dot::after {
    content: "";
    width: 100%;
    height: 100%;
    background-color: #ff3b30;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    animation: EventPulse 2s infinite ease-out;
    transform-origin: center;
}

@keyframes EventPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(3.5);
        opacity: 0;
    }
}

.timeline-time-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}




/* ==========================================================================
   🔔 2. LIVE-NOTIS FÖR NYA NYHETER ("X nya nyheter tillgängliga")
   ========================================================================== */
.new-articles-banner {
    display: none;
    background: var(--primary-blue);
    color: #ffffff;
    text-align: center;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 16px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 75, 135, 0.25);
    transition: background 0.15s ease, transform 0.15s ease;
    animation: slideDownFade 0.25s ease-out;
    position: sticky;
  top: 49px;
  z-index: 100;
  width: 100%;
}

.new-articles-banner:hover {
    background: var(--primary-blue-hover);
    transform: translateY(-1px);
}

@keyframes slideDownFade {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Gör väder-pillret till ankare för prognos-menyn */
#header-weather-widget {
    position: relative;
    cursor: pointer;
}

.weather-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: 8px;
    min-width: 245px;
    z-index: 200;
}

#header-weather-widget:hover .weather-dropdown-menu {
    display: block;
}

.weather-dropdown-inner {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.weather-dropdown-header {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 6px;
}

.weather-forecast-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-body);
    padding: 2px 0;
}

.wf-day {
    font-weight: 700;
    color: var(--text-main);
    width: 65px;
    text-transform: capitalize;
}

.wf-icon {
    flex: 1;
    text-align: left;
    color: var(--text-muted);
    font-size: 0.74rem;
}

.wf-temp {
    font-weight: 800;
    color: var(--primary-blue);
    text-align: right;
    min-width: 48px;
}


/* ==========================================================================
   🔄 ROTERANDE WIDGET-SLUSS (Slide Up / Slide Down)
   ========================================================================== */
.widget-rotator-viewport {
    position: relative;
    height: 32px;
    display: flex;
    align-items: center;
}

.widget-slide {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

/* Dold vy (väntar nedanför och osynlig) */
.widget-slide:not(.active-slide) {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transform: translateY(22px);
    pointer-events: none;
}

/* Aktiv vy (på plats i centrum) */
.widget-slide.active-slide {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* När en vy lämnar platsen åker den neråt */
.widget-slide.sliding-out {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transform: translateY(24px);
    pointer-events: none;
}

#widget-slide-2{
	font-size:10px;
	font-weight:700;
}


.widget-nav-controls {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 3px 8px;
    flex-shrink: 0;
}

.widget-dots {
    display: flex;
    align-items: center;
    gap: 4px;
}

.w-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.w-dot:hover {
    background: #94a3b8;
}

.w-dot.active {
    background: var(--primary-blue);
    transform: scale(1.25);
}

.widget-cycle-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    line-height: 1;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, transform 0.25s ease;
}

.widget-cycle-btn:hover {
    color: var(--primary-blue);
    transform: rotate(90deg);
}


/* 📝 Själva kommentarerna i listan */
.comment-node {
    padding: 12px 0;
    border-bottom: 1px dashed #e2e8f0;
}
.comment-node.comment-reply {
    margin-left: 32px; /* Skapar tråd-indraget för svar! */
    border-left: 2px solid #e2e8f0;
    padding-left: 14px;
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    margin-bottom: 4px;
}
.comment-author {
    font-weight: 700;
    color: #1a1a1a;
}
.comment-timestamp {
    color: #64748b;
}
.comment-text {
    font-size: 0.88rem;
    color: #334155;
    line-height: 1.4;
    margin: 0 0 6px 0;
}

/* Svara-knapp på en befintlig kommentar */
.comment-reply-btn {
    background: none;
    border: none;
    font-size: 0.72rem;
    font-weight: 700;
    color: #004b87;
    cursor: pointer;
    padding: 0;
}
.comment-reply-btn:hover { text-decoration: underline; }


/* 🟢 Auth Live Banner */
.auth-live-banner {
    font-size: 0.8rem;
    font-weight: 700;
    color: #16a34a;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ✍️ Textrutan & Publicera-knapp */
.comment-form-sluss textarea {
    width: 100%;
    min-height: 80px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 12px;
    font-size: 0.88rem;
    color: #1a1a1a;
    outline: none;
    resize: vertical;
    transition: all 0.15s ease;
    box-sizing: border-box;
}
.comment-form-sluss textarea:focus {
    background: #ffffff;
    border-color: #004b87;
    box-shadow: 0 0 0 3px rgba(0, 75, 135, 0.08);
}

.comment-form-sluss button.publish-btn {
    background: #004b87;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 8px 18px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.15s ease;
}
.comment-form-sluss button.publish-btn:hover {
    background: #003366;
}

/* Avbryt-svar-knapp vid trådning */
.cancel-reply-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.75rem;
    cursor: pointer;
    margin-left: 10px;
}



/* Huvudbehållare för en kommentar (både rötter och svar) */
.comment-node {
    padding: 12px 15px;
    margin-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

/* 🔥 TRÅDNING: Snygg och tydlig stil för svar */
.comment-node.comment-reply {
    margin-left: 35px; /* Skapar indraget */
    padding-left: 15px;
    background-color: #f9fbfd; /* Svag, fräsch tint (blåaktig/grå) */
    border-left: 3px solid #0066cc; /* Tydlig vertikal trådlinje (SVT-blå) */
    border-bottom: none; /* Svar behöver inte bottenlinje */
    border-radius: 0 4px 4px 0;
    margin-top: -6px; /* Drar upp svaret så det dockar snyggt mot huvudkommentaren */
    margin-bottom: 15px;
}

/* Gör texten i svar snäppet mer kompakt vid behov */
.comment-node.comment-reply .comment-text {
    font-size: 0.88rem;
    color: #333;
}

.comment-node.comment-reply .comment-meta {
    font-size: 0.8rem;
}

.information{
	background-color: #fff9db;
	padding: 10px;
	font-size: 12px;
	text-align:center;
}

/* ==========================================================================
   🏷️ KATEGORI-BADGES (Färgkodade per nyhetsområde)
   ========================================================================== */
.category-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.02em;
    background-color: #f1f5f9;
    color: #475569;
    border: 0px solid #e2e8f0;
    white-space: nowrap;
}

/* Blåljus & Brott -> Diskret röd */
.category-blåljus--brott {
    background-color: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

/* Trafik & Infrastruktur -> Varm bärnsten/orange */
.category-trafik--infrastruktur {
    background-color: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}

/* Politik & Samhälle -> Klassisk nyhetsblå */
.category-politik--samhälle {
    background-color: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

/* Ekonomi & Näringsliv -> Smaragdgrön */
.category-ekonomi--näringsliv {
    background-color: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

/* Vård & Skola -> Mjuk turkos/teal */
.category-vård--skola {
    background-color: #f0fdfa;
    color: #0f766e;
    border-color: #99f6e4;
}

/* Sport -> Energisk lime/grön */
.category-sport {
    background-color: #f7fee7;
    color: #4d7c0f;
    border-color: #d9f99d;
}

/* Kultur & Nöje -> Elegant lila */
.category-kultur--nöje {
    background-color: #faf5ff;
    color: #7e22ce;
    border-color: #e9d5ff;
}

/* Väder & Miljö -> Himmelsblå */
.category-väder--miljö {
    background-color: #f0f9ff;
    color: #0369a1;
    border-color: #bae6fd;
}

/* Övrigt -> Neutral skiffergrå */
.category-övrigt {
    background-color: #f8fafc;
    color: #64748b;
    border-color: #e2e8f0;
}



.newsreader-<uniquifier> {
  font-family: "Newsreader", serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

.ibm-plex-sans-<uniquifier> {
  font-family: "IBM Plex Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

.libre-baskerville-<uniquifier> {
  font-family: "Libre Baskerville", serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

.brand-logo{font-family: "Newsreader", "Libre Baskerville", Georgia, serif; font-weight:800; font-size:28pt; color: #004b87; text-decoration: none;
	letter-spacing: -0.04em;}
.sticky-mini-logo{font-family: "Newsreader", "Libre Baskerville", Georgia, serif; font-weight:800; font-size:18pt; color: #004b87;}
.sticky-mini-logo {
    font-size: 18pt !important;
    padding-right: 8px !important;
    margin-right: 2px !important;
}

.sticky-widgets-bar .header-pill {
    padding: 4px 8px !important;
    font-size: 0.7rem !important;
    gap: 5px !important;
}

/* Article FUllbody */
.article-full-body{
	font-size: 1.3rem;
	line-height: 1.6;
	color: var(--text-body);
	margin-bottom: 28px;
	font-family: "IBMPlexSans-Bold", Georgia;
	margin-bottom: 28px;
}


/* Colour tokens — override to re-skin the effect:
   --ink    main text colour (defaults to currentColor)
   --ink-2  primary accent   --ink-3  secondary accent */
:root { --ink: currentColor; --ink-2: #FF4FD8; --ink-3: #4FF8FF; }

/* 03 Teletype — typewriter with blinking caret (word must match the ch width) */
.fx-typewriter {
  box-sizing: content-box; /* the caret sits outside the character-count width */
  font: 600 24px/1.2 "JetBrains Mono", monospace;
  letter-spacing: 0;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  width: 10ch; /* = number of characters typed */
  border-right: .55ch solid var(--ink-2);
  animation: fx-type 3.6s steps(10) infinite,
             fx-caret .65s steps(1) infinite;
}
@keyframes fx-type {
  0%, 8%    { width: 0; }
  55%, 100% { width: 10ch; }
}
@keyframes fx-caret {
  50% { border-color: transparent; }
}





/* ==========================================================================
   🧵 NYHETSGRUPPER / TIDSLINJE FÖR FÖLJDNYHETER (artikel.html)
   ========================================================================== */
.related-group-box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-left: 4px solid var(--primary-blue);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    margin-bottom: 26px;
}

.related-group-header {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.group-kicker {
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--primary-blue);
    margin-bottom: 2px;
}

.related-group-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-main);
}

.related-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    padding-left: 16px;
    border-left: 2px solid #cbd5e1;
    margin-left: 6px;
}

.timeline-item {
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -22px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-blue);
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px #cbd5e1;
}

.timeline-meta {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.timeline-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    line-height: 1.35;
    display: inline-block;
}

.timeline-link:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}


.multimedia-interceptor-bar{margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}


/* ==========================================================================
   📻 LJUDSPELARE / RADIO-PILL (LYSSNA PÅ INSLAGET)
   ========================================================================== */
.header-pill.radio-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    padding: 6px 16px 6px 6px;
    color: #0f172a;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    user-select: none;
}

.header-pill.radio-pill:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

/* Rund Play / Paus-knapp */
.mini-play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background-color: #004b87; /* Nyhetsblå accent */
    color: #ffffff;
    font-size: 0.72rem;
    cursor: pointer;
    padding-left: 2px; /* Visuell centrering av play-triangeln */
    transition: background-color 0.2s ease, transform 0.15s ease;
    flex-shrink: 0;
}

.mini-play-btn:hover {
    background-color: #003566;
    transform: scale(1.06);
}

.mini-play-btn:active {
    transform: scale(0.95);
}

/* Mjukt pulserande indikator när inslaget spelas */
.radio-live-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #dc2626;
    margin-left: 2px;
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    animation: pulse-audio 1.5s infinite;
}

@keyframes pulse-audio {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(220, 38, 38, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}


.header-pill.radio-pill.is-playing {
    background-color: #eff6ff;
    border-color: #3b82f6;
    color: #1e3a8a;
}

.header-pill.radio-pill.is-playing .mini-play-btn {
    background-color: #dc2626;
    padding-left: 0; /* Paus-ikonen behöver ingen indragning */
}

