/* RMG Opinion - Frontend Layout Styles */

/* Container with 70/30 grid */
.rmg-opinion-container {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Mobile: Stack vertically */
@media (max-width: 768px) {
    .rmg-opinion-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Main content area */
.rmg-opinion-main {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
}

/* Pink background for opinion pages */
.rmg-opinion-single .rmg-opinion-main,
.rmg-opinion-archive .rmg-opinion-main {
}

@media (max-width: 768px) {
    .rmg-opinion-main {
        padding: 20px;
    }
}

/* Article header */
.entry-header {
    margin-bottom: 30px;
}

.rmg-opinion-label {
    display: inline-block;
    padding: 8px 16px;
    background: #000;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    margin-right: 10px;
    border-radius: 6px;
}

.rmg-orientation-badge {
    display: inline-block;
    padding: 8px 16px;
    background: #0073aa;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    border-radius: 6px;
}

/* Orientation specific colors */
.rmg-orientation-liberal {
    background: #FFD700;
    color: #000;
}

.rmg-orientation-socialistisk {
    background: #DC143C;
    color: #fff;
}

.rmg-orientation-konservativ {
    background: #1E3A8A;
    color: #fff;
}

.entry-title {
    font-size: 36px;
    line-height: 1.2;
    margin: 15px 0 20px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .entry-title {
        font-size: 28px;
    }
}

/* Author meta */
.entry-meta {
    display: flex;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e5e5;
}

.author-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    font-size: 16px;
    color: #000;
}

.publish-date {
    font-size: 14px;
    color: #666;
}

/* Intro/outro boxes */
.rmg-opinion-intro,
.rmg-opinion-outro {
    background: #f8f9fa;
    border-left: 4px solid #0073aa;
    padding: 20px;
    margin: 30px 0;
    font-style: italic;
}

.rmg-opinion-intro p:first-child,
.rmg-opinion-outro p:first-child {
    margin-top: 0;
}

.rmg-opinion-intro p:last-child,
.rmg-opinion-outro p:last-child {
    margin-bottom: 0;
}

/* Debate disclaimer */
.rmg-debate-disclaimer {
    background: #FFF9E6;
    border-left: 4px solid #FFC107;
    padding: 15px 20px;
    margin: 20px 0;
}

.rmg-debate-disclaimer p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Debate topic badges */
.rmg-debate-topic {
    display: inline-block;
    padding: 8px 16px;
    background: #E3F2FD;
    color: #1976D2;
    font-size: 12px;
    font-weight: 600;
    margin-right: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
}

/* Featured image */
.entry-featured-image {
    margin: 30px 0;
}

.entry-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Article content */
.entry-content {
    font-size: 18px;
    line-height: 1.7;
    margin: 30px 0;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content h2 {
    font-size: 28px;
    margin: 40px 0 20px;
}

.entry-content h3 {
    font-size: 24px;
    margin: 30px 0 15px;
}

/* Footer */
.entry-footer {
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    margin-top: 40px;
}

.entry-tags {
    font-size: 14px;
}

.tags-label {
    font-weight: 700;
    margin-right: 5px;
}

/* Sidebar */
.rmg-opinion-sidebar {
    position: relative;
    top: 0;
}

.sidebar-section {
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
}

/* Sidebar posts with thumbnails */
.rmg-sidebar-posts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-post-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
}

.sidebar-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-post-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}

.sidebar-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.sidebar-post-content {
    flex: 1;
}

.sidebar-post-title {
    margin: 0 0 5px;
    font-size: 14px;
    line-height: 1.3;
}

.sidebar-post-title a {
    color: #000;
    text-decoration: none;
}

.sidebar-post-title a:hover {
    color: #0073aa;
}

.sidebar-post-date {
    font-size: 12px;
    color: #666;
}

/* Sidebar list (no thumbnails) */
.rmg-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-list-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e5e5;
}

.sidebar-list-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-list-item a {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    display: block;
    margin-bottom: 4px;
}

.sidebar-list-item a:hover {
    color: #0073aa;
}

/* Archive page */
.archive-header {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    margin-bottom: 40px;
}

.archive-title {
    font-size: 42px;
    margin: 0 0 15px;
}

.archive-description {
    max-width: 700px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.6;
}

/* Opinion cards grid */
.rmg-opinion-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.rmg-opinion-card {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    transition: none;
    margin-bottom: 30px;
}

.rmg-opinion-card:hover {
    box-shadow: none;
    transform: none;
}

.card-thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 15px 0;
}

.card-meta {
    margin-bottom: 12px;
}

.card-label {
    display: inline-block;
    padding: 4px 10px;
    background: #000;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 8px;
}

.card-orientation {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
}

.card-title {
    font-size: 24px;
    margin: 0 0 12px;
    line-height: 1.3;
}

.card-title a {
    color: #000;
    text-decoration: none;
}

.card-title a:hover {
    color: #0073aa;
}

.card-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 12px;
}

.card-author {
    font-size: 14px;
    color: #666;
}

.card-author .author-name {
    font-weight: 700;
    color: #000;
}

/* Pagination */
.rmg-pagination {
    margin-top: 40px;
    text-align: center;
}

.rmg-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.rmg-pagination a,
.rmg-pagination span {
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    text-decoration: none;
    color: #000;
    border-radius: 4px;
}

.rmg-pagination a:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.rmg-pagination .current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* =================================================================
   INFINITE SCROLL - Relaterade artiklar
   ================================================================= */

.related-item {
    margin: 40px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.related-item .single-post {
    padding: 0;
}

.related-item .pad-15-lr {
    padding: 20px 30px;
}

.related-item .single-article-cat {
    margin-bottom: 15px;
}

.related-item .article-category {
    display: inline-block;
}

.related-item .article-category a {
    background: #0073aa;
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.related-item .article-category a:hover {
    background: #005a87;
}

.related-item .entry-title {
    font-size: 28px;
    margin: 0 0 15px 0;
    line-height: 1.3;
    font-weight: 700;
}

.related-item .entry-title a {
    color: #000;
    text-decoration: none;
}

.related-item .entry-title a:hover {
    color: #0073aa;
}

.related-item .entry-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.related-item .orientation-badge {
    background: #f0f0f0;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 600;
    color: #000;
}

.related-item .author-name {
    font-weight: 600;
}

.related-item .entry-date {
    color: #999;
}

.related-item .entry-image {
    margin: 20px 0;
}

.related-item .entry-image img {
    width: 100%;
    height: auto;
    display: block;
}

.related-item .entry-summary {
    line-height: 1.6;
    color: #333;
    font-size: 16px;
}

.related-item .read-more {
    color: #0073aa;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
    font-size: 15px;
}

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

/* Responsive för relaterade artiklar */
@media (max-width: 768px) {
    .related-item .pad-15-lr {
        padding: 15px 20px;
    }
    
    .related-item .entry-title {
        font-size: 22px;
    }
    
    .related-item .entry-summary {
        font-size: 15px;
    }
}

/* =================================================================
   ROSA BAKGRUND FÖR ALLA OPINION-ARTIKLAR
   Gäller för kategorierna: opinion, ledare, debatt
   ================================================================= */

/* WordPress lägger automatiskt till .category-X body-klasser */
.category-opinion .rmg-opinion-article,
.category-ledare .rmg-opinion-article,
.category-debatt .rmg-opinion-article {
}

/* För nya artikelsystem */
.category-opinion .article-content,
.category-ledare .article-content,
.category-debatt .article-content {
}

/* Bakgrund för main content area i single */
.category-opinion.single-post .rmg-opinion-content,
.category-ledare.single-post .rmg-opinion-content,
.category-debatt.single-post .rmg-opinion-content {
}

/* =================================================================
   V2.2 UPDATES - Nya funktioner
   ================================================================= */

/* Disclaimer-box (ovanför brödtext) */
.rmg-opinion-disclaimer {
    background: #f5f5f5;
    border-left: 4px solid #999;
    padding: 15px 20px;
    margin: 0 0 30px 0;
    border-radius: 4px;
    font-style: italic;
    color: #666;
}

.rmg-opinion-disclaimer p {
    margin: 0;
    font-size: 14px;
}

/* Facebook-ruta i sidebar */
.rmg-fb-cta {
    background: #f0f2f5;
    padding: 20px !important;
    border-radius: 8px;
}

.rmg-fb-box p {
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #1c1e21;
}

.rmg-fb-button {
    display: inline-block;
    background: #1877f2;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.rmg-fb-button:hover {
    background: #166fe5;
}

/* Mindre, snyggare badges */
.rmg-opinion-label,
.rmg-orientation-badge {
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 12px;
}

/* Dynamiska färger för badges (från settings) */
.rmg-orientation-liberal {
    background: var(--rmg-color-liberal, #0051A5) !important;
    color: #fff !important;
}

.rmg-orientation-socialistisk {
    background: var(--rmg-color-socialistisk, #ED1B34) !important;
    color: #fff !important;
}

.rmg-orientation-konservativ {
    background: var(--rmg-color-konservativ, #52BDEC) !important;
    color: #fff !important;
}

/* Fixa marginaler för infinite scroll-artiklar */
.rmg-opinion-related-articles .rmg-opinion-article {
    margin: 0 auto 40px auto;
    max-width: 1200px;
    padding: 0 20px;
}

/* Se till att alla artiklar får samma bakgrund och padding */
.rmg-opinion-related-articles article {
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .rmg-opinion-related-articles article {
        padding: 20px;
    }
    
    .rmg-opinion-label,
    .rmg-orientation-badge {
        font-size: 10px;
        padding: 4px 10px;
    }
}

/* =================================================================
   V2.4 UPDATES - Nya funktioner
   ================================================================= */

/* Task 9: Bullets före badges (mindre badges) */
.rmg-opinion-label::before,
.rmg-orientation-badge::before {
    content: "• ";
    margin-right: 4px;
    font-size: 14px;
}

.rmg-opinion-label,
.rmg-orientation-badge {
    padding: 4px 10px !important;
    font-size: 10px !important;
    font-weight: 600;
    border-radius: 3px;
}

/* Task 7: Sticky sidebar */
.rmg-opinion-sidebar {
    position: relative;
    top: 0;
    align-self: start;
}

/* Task 7: Infinite scroll 70/30 layout */
.rmg-opinion-related-articles .article-wrapper {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
}

.rmg-opinion-related-articles .article-main {
    padding: 40px;
    border-radius: 8px;
}

.rmg-opinion-related-articles .article-sidebar {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    position: sticky;
    top: 20px;
    align-self: start;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

/* Footer-text - diskret och underordnad */
.rmg-author-footer {
    margin: 20px 0 10px 0;
    padding: 0;
    background: transparent;
    border: none;
    font-style: italic;
    color: #999;
    font-size: 12px;
    line-height: 1.4;
}

.rmg-author-footer p {
    margin: 0;
}


/* Task 9: MINDRE BADGES + bullets */
.rmg-opinion-label::before,
.rmg-orientation-badge::before {
    content: "• ";
    margin-right: 3px;
    font-size: 12px;
}

.rmg-opinion-label,
.rmg-orientation-badge {
    padding: 3px 8px !important;
    font-size: 9px !important;
    font-weight: 600;
    border-radius: 3px;
    margin-bottom: 10px;
    margin-right: 8px;
}

/* Task 7: STICKY SIDEBAR */
.rmg-opinion-sidebar {
    position: sticky;
    top: 32px; /* WP admin bar höjd */
    align-self: start;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
}

/* Smooth scrolling i sidebar */
.rmg-opinion-sidebar::-webkit-scrollbar {
    width: 6px;
}

.rmg-opinion-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.rmg-opinion-sidebar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.rmg-opinion-sidebar::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .rmg-opinion-sidebar {
        position: static;
        max-height: none;
    }
    
    .rmg-opinion-related-articles .article-wrapper {
        grid-template-columns: 1fr;
    }
    
    .rmg-opinion-related-articles .article-sidebar {
        position: static;
        max-height: none;
    }
    
    .rmg-opinion-related-articles .article-main {
        padding: 20px;
    }
}

/* =================================================================
   V2.5 UPDATES - Bullets istället för badges
   ================================================================= */

/* Ta bort alla badges */
.rmg-opinion-label,
.rmg-orientation-badge,
.rmg-debate-topic {
    display: none !important;
}

/* Stor färgad bullet före titeln */
    margin-right: 15px;
    vertical-align: middle;
    line-height: 1;
    display: inline-block;
}

/* Färger för bullets */
    color: var(--rmg-color-socialistisk, #ED1B34);
}

.rmg-opinion-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 32px;
    align-self: flex-start;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
}

/* För infinite scroll artiklar också */
.rmg-opinion-related-articles .article-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 32px;
    align-self: flex-start;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
}

@media (max-width: 768px) {
    .rmg-opinion-sidebar,
    .rmg-opinion-related-articles .article-sidebar {
        position: static;
        max-height: none;
    }
    
    .entry-header .entry-title::before {
        font-size: 24px;
        margin-right: 10px;
    }
}

/* =================================================================
   V2.7 UPDATES - AON Design + Widgets + Footer
   ================================================================= */

/* AON-stil på arkiv-badges */
.card-label,
.card-orientation {
    display: inline-block;
    padding: 4px 12px;
    border: 2px solid;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 8px;
    background: transparent;
}

/* Sticky sidebar title */
.sidebar-title.sticky-title {
    position: sticky;
    top: 0;
    background: #fff;
    padding: 15px 0 10px 0;
    z-index: 10;
    margin: 0 0 15px 0;
}

/* Footer-text NY DESIGN */
.rmg-author-footer-new {
    margin: 40px 0 20px 0;
}

.rmg-author-footer-new .footer-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #0051A5 0%, #52BDEC 100%);
    margin-bottom: 20px;
}

.rmg-author-footer-new .footer-content {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    font-style: italic;
}

.rmg-author-footer-new .footer-content p {
    margin: 0 0 10px 0;
}

.rmg-author-footer-new .footer-content p:last-child {
    margin-bottom: 0;
}

/* Ta bort vitt utrymme efter footer */
.rmg-opinion-main > *:last-child {
    margin-bottom: 0;
}

/* Widget-styling */
.rmg-between-articles-widget,
.rmg-in-article-widget {
    text-align: center;
}

.rmg-between-articles-widget .widget-title,
.rmg-in-article-widget .widget-title {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* =================================================================
   FAS 1: DESIGN + SIDEBAR (V2.8)
   ================================================================= */

/* Punkt 2 & 11: Article card SVD-stil */
.rmg-opinion-card {
    background: #fff;
    margin-bottom: 30px;
    border-radius: 0;
    overflow: visible;
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

/* Punkt 11: Snygga fyllda knappar */
.card-label-modern,
.card-orientation-modern {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 0;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #fff;
    background-color: #0051A5;
}

.card-label-modern {
    opacity: 1;
}

.card-orientation-modern {
    opacity: 0.85;
}

.card-title-large {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.card-title-large a {
    color: #000;
    text-decoration: none;
    transition: color 0.2s;
}

.card-title-large a:hover {
    color: #0051A5;
}

.card-author-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 13px;
}

.author-name-gray {
    color: #999;
    font-weight: 400;
}

.publish-date-small {
    color: #ccc;
    font-size: 12px;
}

.card-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin-top: 8px;
}

.card-image-square {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.author-square-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.card-cover-image {
    margin-top: 20px;
}

.card-cover-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Punkt 7: Större sidebar-text */
.sidebar-title {
    font-size: 18px !important;
    font-weight: 700;
    line-height: 1.3;
}

.sidebar-post-title {
    font-size: 15px;
    line-height: 1.4;
}

.sidebar-post-title a {
    color: #000;
}

.sidebar-post-date {
    font-size: 13px !important;
    color: #999;
}

.sidebar-list-item a {
    font-size: 14px !important;
    line-height: 1.5;
}

/* Punkt 14: Sidebar navigation links */
.sidebar-nav-links {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.sidebar-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    color: #000;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-bottom: 1px solid #e0e0e0;
    transition: color 0.2s;
}

.sidebar-nav-link:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-nav-link:first-child {
    padding-top: 0;
}

.sidebar-nav-link:hover {
    color: #0051A5;
}

.sidebar-nav-link .arrow {
    font-style: normal;
    font-size: 18px;
    color: #0051A5;
}

/* Punkt 8: Widget sidebar överallt */
.sidebar-widgets {
    margin-bottom: 30px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr 90px;
        gap: 15px;
    }
    
    .card-image-square {
        width: 90px;
        height: 90px;
    }
    
    .card-title-large {
        font-size: 20px;
    }
    
    .card-cover-image {
        margin-top: 15px;
    }
}

/* =================================================================
   FIX: Article header grid (i artikel, inte landning)
   ================================================================= */

.article-header-grid {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 20px;
    align-items: start;
    margin: 20px 0;
}

.article-header-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.article-header-content .entry-title {
    font-size: 32px;
    line-height: 1.2;
    margin: 0;
}

.article-header-content .entry-meta {
    display: flex;
    gap: 10px;
    align-items: center;
}

.article-header-image {
    width: 120px;
    height: 120px;
}

.article-header-image .author-square-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

/* Labels i artikel */
.rmg-article-labels {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Mobile */
@media (max-width: 768px) {
    .article-header-grid {
        grid-template-columns: 1fr 90px;
        gap: 15px;
    }
    
    .article-header-image {
        width: 90px;
        height: 90px;
    }
    
    .article-header-content .entry-title {
        font-size: 26px;
    }
}

/* =================================================================
   FIX: Ta bort card-grid från landningssida
   ================================================================= */

.rmg-opinion-card .card-grid {
    display: none;
}

.rmg-opinion-card .card-thumbnail {
    margin-bottom: 20px;
}

.rmg-opinion-card .card-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.rmg-opinion-card .card-content {
    padding: 0;
}

/* =================================================================
   FIX: Större sidebar-text (mer specifikt)
   ================================================================= */

.rmg-opinion-sidebar .sidebar-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-bottom: 20px !important;
}

.rmg-opinion-sidebar .sidebar-post-title {
    line-height: 1.4 !important;
    font-weight: 600 !important;
}

.rmg-opinion-sidebar .sidebar-post-title a {
    color: #000 !important;
    text-decoration: none !important;
}

.rmg-opinion-sidebar .sidebar-post-date {
    font-size: 13px !important;
    color: #999 !important;
}

.rmg-opinion-sidebar .sidebar-list-item a {
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #000 !important;
}

/* =================================================================
   FAS 2: INFINITE SCROLL + WIDGETS
   ================================================================= */

/* Punkt 12: Widget var 3:e artikel på landning */
.rmg-landing-widget {
    margin: 40px 0;
    padding: 30px;
    background: #f5f5f5;
    border-radius: 8px;
    text-align: center;
}

.rmg-landing-widget-inner {
    max-width: 800px;
    margin: 0 auto;
}

/* Punkt 13: Load more button */
.rmg-load-more-btn {
    background: #0051A5;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.rmg-load-more-btn:hover {
    background: #003d7a;
}

.rmg-loading {
    color: #666;
    font-size: 14px;
}

/* Punkt 1: Spacing efter in-article widget */
.rmg-in-article-widget + br {
    display: block;
    margin-bottom: 20px;
}

/* =================================================================
   FAS 4: SISTA FIXES
   ================================================================= */

/* Punkt 10: CTA button tillbaka till /opinion */
.rmg-cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #0051A5;
    color: #fff !important;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 4px;
    transition: background 0.3s;
}

.rmg-cta-button:hover {
    background: #003d7a;
}

/* Mobile-friendly */
@media (max-width: 768px) {
    .rmg-cta-button {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* =================================================================
   V2.12: NYA DESIGN REQUIREMENTS
   ================================================================= */

/* Större square bild i artikel: 180x180 */
.author-square-img-large {
    width: 180px;
    height: 180px;
    border-radius: 4px;
    object-fit: cover;
}

/* Excerpt fetstil (endast ledare på landning) */
.card-excerpt-bold {
    margin: 15px 0 0 0;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
}

/* Mobile: Mindre square bild */
@media (max-width: 768px) {
    .author-square-img-large {
        width: 120px;
        height: 120px;
    }
    
    .entry-title {
        font-size: 32px !important;
    }
}

/* =================================================================
   FÖRFATTARLISTA I SIDEBAR
   ================================================================= */

.rmg-sidebar-authors {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.sidebar-author-item {
    margin: 0 0 10px 0;
    padding: 0;
}

.sidebar-author-item a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.2s;
}

.sidebar-author-item a:hover {
    color: #0051A5;
}

/* =================================================================
   SIDEBAR STICKY
   ================================================================= */

.rmg-opinion-sidebar {
    position: sticky;
    top: 20px;
    align-self: flex-start;
}

/* =================================================================
   V2.13: POLL SYSTEM "HÅLLER DU MED?"
   ================================================================= */

.rmg-opinion-poll {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.rmg-poll-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #212529;
    text-align: center;
}

.rmg-poll-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.rmg-poll-button {
    flex: 1;
    max-width: 200px;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.rmg-poll-yes {
    background: #28a745;
    color: #fff;
}

.rmg-poll-yes:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.rmg-poll-no {
    background: #dc3545;
    color: #fff;
}

.rmg-poll-no:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.rmg-poll-icon {
    font-size: 20px;
}

/* Results */
.rmg-poll-results {
    margin-top: 20px;
}

.rmg-poll-result-item {
    margin-bottom: 15px;
}

.rmg-poll-label {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 16px;
}

.rmg-poll-bar-container {
    position: relative;
    background: #e9ecef;
    height: 40px;
    border-radius: 20px;
    overflow: hidden;
}

.rmg-poll-bar {
    height: 100%;
    transition: width 0.6s ease;
    position: relative;
}

.rmg-poll-bar-yes {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.rmg-poll-bar-no {
    background: linear-gradient(90deg, #dc3545, #e83e8c);
}

.rmg-poll-percent {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: #212529;
    font-size: 14px;
}

.rmg-poll-total {
    text-align: center;
    margin-top: 15px;
    color: #6c757d;
    font-size: 14px;
}

@media (max-width: 768px) {
    .rmg-poll-buttons {
        flex-direction: column;
    }
    
    .rmg-poll-button {
        max-width: 100%;
    }
}

/* =================================================================
   V2.13: MINDRE BADGE PADDING
   ================================================================= */

.card-label-modern,
.card-orientation-modern {
    padding: 3px 10px !important;
    font-size: 9px !important;
}

/* =================================================================
   V2.13: TA BORT HOVER EFFECT PÅ LANDNINGSSIDA
   ================================================================= */

.rmg-opinion-card,
.rmg-opinion-card *,
.rmg-opinion-card:hover,
.rmg-opinion-card:hover *,
.rmg-opinion-card:hover .card-thumbnail,
.rmg-opinion-card:hover .card-thumbnail img,
.rmg-opinion-card:hover .card-title a,
.rmg-opinion-card:hover .card-title-large a {
    transform: none !important;
    box-shadow: none !important;
    outline: none !important;
    border: none !important;
    transition: none !important;
}

/* Ta bort alla hover effects på archive */
.rmg-opinion-archive .rmg-opinion-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

.rmg-opinion-archive .card-thumbnail,
.rmg-opinion-archive .card-thumbnail img {
    transition: none !important;
}

.rmg-opinion-archive .card-title a:hover,
.rmg-opinion-archive .card-title-large a:hover {
    color: inherit !important;
    text-decoration: none !important;
    transform: none !important;
}

/* =================================================================
   V2.13: STICKY WIDGET (BARA BOTTOM, INTE TOP)
   ================================================================= */

.rmg-opinion-sidebar {
    position: relative;
    top: auto !important;
    align-self: flex-start;
}

.rmg-sidebar-sticky-bottom {
    position: sticky;
    bottom: 20px;
    margin-top: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* =================================================================
   V2.13: BREADCRUMBS
   ================================================================= */

.rmg-breadcrumbs {
    padding: 15px 0;
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.rmg-breadcrumbs a {
    color: #0051A5;
    text-decoration: none;
    transition: color 0.2s;
}

.rmg-breadcrumbs a:hover {
    color: #003d7a;
    text-decoration: underline;
}

.rmg-breadcrumbs span {
    color: #333;
    font-weight: 600;
}

/* =================================================================
   V2.13: SIDEBAR FIX - TA BORT SCROLL OCH HEIGHT
   ================================================================= */

.rmg-opinion-sidebar {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.rmg-opinion-sidebar::-webkit-scrollbar {
    display: none !important;
}

.sidebar-widgets {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Ta bort shadows på archive */
.rmg-opinion-card {
    box-shadow: none !important;
}

.rmg-opinion-card:hover {
    box-shadow: none !important;
}

/* Mobilanpassning */
@media (max-width: 768px) {
    .rmg-opinion-container {
        flex-direction: column;
    }
    
    .rmg-opinion-main,
    .rmg-opinion-sidebar {
        flex: 0 0 100%;
        width: 100%;
    }
}

/* =================================================================
   V2.20.5: ARCHIVE REDESIGN
   1) Större rubriker  2) Cards  3) Breadcrumbs  4) Debatt-stil  5) Knappar
   ================================================================= */

/* ── 1. Bakgrund på arkivsidan — temat styr bakgrunden ── */
.rmg-opinion-archive {
    min-height: 100vh;
}

.rmg-opinion-archive .rmg-opinion-container {
    background: transparent;
    padding-top: 0;
}

/* Huvudkolumnen transparent — ingen egen bakgrund */
.rmg-opinion-archive .rmg-opinion-main {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* ── 3. Breadcrumbs i linje med första kortet, ovanför ── */
.rmg-breadcrumbs-wrap {
    padding: 18px 0 10px 0;
}

.rmg-breadcrumbs-wrap .rmg-breadcrumbs {
    margin-bottom: 0;
    padding: 0;
}

/* ── 2. Varje artikel = vitt avrundat card ── */
.rmg-opinion-archive .rmg-opinion-card {
    background: #ffffff !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08) !important;
    overflow: hidden !important;
    margin-bottom: 0 !important;
    border: none !important;
    transition: box-shadow 0.2s ease !important;
}

.rmg-opinion-archive .rmg-opinion-card:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,0.13) !important;
    transform: none !important;
}

/* Bild tar hela cardets bredd utan padding */
.rmg-opinion-archive .card-thumbnail {
    margin: 0;
    line-height: 0;
}

.rmg-opinion-archive .card-thumbnail img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    display: block;
}

/* Innehåll inuti card med padding */
.rmg-opinion-archive .card-content {
    padding: 20px 24px 22px 24px;
}

/* Grid-gap = mellanrum = bakgrunden syns */
.rmg-opinion-archive .rmg-opinion-grid {
    gap: 16px;
    display: grid;
    grid-template-columns: 1fr;
}

/* Widget-blocket: grå, inte vitt */
.rmg-opinion-archive .rmg-landing-widget {
    background: #dde2e8 !important;
    border-radius: 10px;
    padding: 24px;
    margin: 0;
}

/* ── 1. Större rubriker — h2-nivå ── */
.rmg-opinion-archive .card-title-large {
    font-size: 26px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    margin: 8px 0 10px 0 !important;
    letter-spacing: -0.01em;
}

.rmg-opinion-archive .card-title-large a {
    color: #111 !important;
    text-decoration: none !important;
}

.rmg-opinion-archive .card-title-large a:hover {
    color: #0051A5 !important;
}

/* ── 4. Debattartikel — accentlinje vänster + annan rubrikfärg ── */
.rmg-opinion-archive .rmg-card-debatt {
    border-left: 5px solid #555 !important;
    border-radius: 0 10px 10px 0 !important;
}

.rmg-opinion-archive .rmg-card-debatt .card-content {
    padding-left: 20px;
}

.rmg-opinion-archive .rmg-card-debatt .card-title-large {
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #333 !important;
}

.rmg-opinion-archive .rmg-card-debatt .card-title-large a {
    color: #333 !important;
}

.rmg-opinion-archive .rmg-card-debatt .card-title-large a:hover {
    color: #0051A5 !important;
}

/* Debatt: kort excerpt i grå text */
.card-excerpt-debatt {
    margin: 8px 0 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    font-style: italic;
    font-weight: 400;
}

.card-excerpt-debatt p {
    margin: 0;
}

/* ── 5. Badgepadding — kompakt ── */
.card-label-modern,
.card-orientation-modern {
    display: inline-block;
    padding: 2px 8px !important;
    font-size: 9px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-radius: 3px;
    color: #fff;
    margin-right: 5px;
    line-height: 1.6;
}

/* Load-more knapp — kompaktare */
.rmg-load-more-btn {
    padding: 10px 28px !important;
    font-size: 14px !important;
}

/* Tillbaka-knapp i sidebar — kompaktare */
.rmg-cta-button {
    padding: 10px 22px !important;
    font-size: 14px !important;
}

@media (max-width: 768px) {
    .rmg-opinion-archive .card-title-large {
        font-size: 22px !important;
    }
    .rmg-opinion-archive .card-thumbnail img {
        height: 170px;
    }
}

/* =================================================================
   V2.20.6: UNIFIED CARD LAYOUT — ARCHIVE + SINGLE + BREADCRUMBS
   ================================================================= */

/* ── Gemensam sidbackground ── */
/* Ingen bakgrundsfärg satt — temat styr bakgrunden */
.rmg-opinion-page-bg {
    min-height: 100vh;
}

/* ── Breadcrumbs: eget vitt card ── */
.rmg-breadcrumb-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 12px 20px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.07);
}

.rmg-breadcrumb-card .rmg-breadcrumbs {
    margin: 0;
    padding: 0;
    font-size: 13px;
}

/* ── Artikel: eget vitt card (single) ── */
.rmg-article-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 32px 36px 28px 36px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
    .rmg-article-card {
        padding: 20px 16px;
        border-radius: 8px;
    }
}

/* Single: main-kolumnen transparent (inga dubbla vita ytor) */
.rmg-opinion-single .rmg-opinion-main {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Single: container-padding ovanifrån */
.rmg-opinion-single .rmg-opinion-container {
    padding-top: 24px;
}

/* ── Sidrubriken på arkivet ── */
.rmg-opinion-page-header {
    margin-bottom: 20px;
}

.rmg-opinion-page-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 4px 0;
    line-height: 1.15;
    color: #111;
    letter-spacing: -0.02em;
}

.rmg-opinion-page-title-opinion {
    color: #0051A5;
}

.rmg-opinion-page-sub {
    font-size: 14px;
    color: #778;
    margin: 0;
}

/* ── Sidebar: sections redan kort-liknande, men enhetligare ── */
.rmg-opinion-sidebar .sidebar-section {
    background: #ffffff;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.07);
}

/* Widget-area i sidebar: samma stil */
.rmg-opinion-sidebar .sidebar-widgets > * {
    background: #ffffff;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.07);
}

/* In-article widget: grå, inte vit */
.rmg-in-article-widget {
    margin: 24px 0;
    padding: 20px;
    background: #f0f2f5;
    border-radius: 8px;
}

/* Mellan-artiklar widget (infinite scroll): grå */
.rmg-between-articles-widget {
    background: #dde2e8 !important;
    border-radius: 10px;
    padding: 20px;
    margin: 0;
}

/* =================================================================
   V2.20.7: SPACING, H2, MOBILE SYMMETRI, FOOTER-DIVIDER
   ================================================================= */

/* ── Breadcrumb-card: luft mot headern ── */
.rmg-breadcrumb-card {
    margin-top: 24px !important;
}

/* ── Archive-rubriker: följer temats H2 ── */
.rmg-opinion-archive .card-title-large {
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
}

/* Fallback om temat inte sätter h2: vi sätter 1.5em relativt body */
.rmg-opinion-archive .card-title-large {
    font-size: 1.5em;
    font-weight: 700;
    line-height: 1.25;
    margin: 8px 0 10px 0;
}

/* Debattrubriker något mindre */
.rmg-opinion-archive .rmg-card-debatt .card-title-large {
    font-size: 1.2em;
    font-weight: 600;
}

/* ── Single: space under header-grid (ovanför widget-ytan) ── */
.article-header-grid {
    margin-bottom: 28px;
}

/* ── Footer-divider (strecket ovanför footer-text) ── */
.footer-divider {
    border-top: 2px solid #0051A5; /* överskrids av inline-CSS från settings */
    margin: 24px 0 16px 0;
}

/* ── Mobil: symmetrisk padding (höger = vänster) ── */
@media (max-width: 768px) {
    .rmg-opinion-container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    .rmg-opinion-archive .rmg-opinion-container,
    .rmg-opinion-single .rmg-opinion-container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    /* Breadcrumb-card mobil */
    .rmg-breadcrumb-card {
        margin-top: 16px !important;
        border-radius: 8px;
    }
}

/* ── Sidebar-title: border-bottom (default, överskrids av inline) ── */
.sidebar-title {
    border-bottom: 2px solid #0051A5;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* =================================================================
   V2.20.8: AUTHOR PAGE, RUBRIKER, INGRESS, CTA-BOXAR, STICKY
   ================================================================= */

/* ── Author header: 70/30 grid ── */
.rmg-author-header-card {
    margin-bottom: 16px;
}

.rmg-author-header-grid {
    display: grid;
    grid-template-columns: 1fr 160px;
    gap: 24px;
    align-items: start;
}

.rmg-author-header-info {
    min-width: 0;
}

.rmg-author-header-image {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.rmg-author-profile-thumb {
    width: 160px !important;
    height: 160px !important;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.rmg-author-name {
    font-size: 2em;
    font-weight: 800;
    margin: 0 0 8px 0;
    line-height: 1.15;
}

.rmg-author-articles-heading {
    font-size: 1.2em;
    font-weight: 700;
    margin: 20px 0 16px 0;
    color: #333;
}

.rmg-author-profile-bio p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin: 0;
}

@media (max-width: 600px) {
    .rmg-author-header-grid {
        grid-template-columns: 1fr;
    }
    .rmg-author-header-image {
        justify-content: flex-start;
        order: -1; /* bild ovanför på mobil */
    }
    .rmg-author-profile-thumb {
        width: 100px !important;
        height: 100px !important;
    }
}

/* ── Rubriker: dubbelt så stora (ca 2em) ── */
.rmg-opinion-archive .card-title-large,
.rmg-opinion-author-archive .card-title-large {
    font-size: 2em !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    margin: 8px 0 10px 0 !important;
}

/* Debatt: italic rubrik */
.rmg-opinion-archive .rmg-card-debatt .card-title-large,
.rmg-opinion-author-archive .rmg-card-debatt .card-title-large {
    font-size: 1.6em !important;
    font-style: italic !important;
    font-weight: 700 !important;
}

/* ── Ingress ── */
.card-ingress {
    margin: 8px 0 0 0;
    font-size: 15px;
    line-height: 1.55;
    color: #444;
    font-weight: 500;
}

.card-ingress-debatt {
    font-style: italic;
    color: #555;
    font-weight: 400;
}

/* ── CTA-boxar i sidebar ── */
.rmg-cta-box {
    padding: 0 !important;
    overflow: hidden;
}

.rmg-cta-box-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    text-decoration: none !important;
    color: inherit !important;
    transition: background 0.15s;
    border-radius: 10px;
}

.rmg-cta-box-link:hover {
    background: #f0f4f8;
}

.rmg-cta-box-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: #555;
    color: #fff;
    padding: 2px 7px;
    border-radius: 3px;
    flex-shrink: 0;
}

.rmg-cta-debatt .rmg-cta-box-label {
    background: #555;
}

.rmg-cta-ledare .rmg-cta-box-label {
    background: #0051A5;
}

.rmg-cta-box-text {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
}

.rmg-cta-box-arrow {
    color: #aaa;
    font-size: 16px;
    flex-shrink: 0;
}

/* ── Sticky sidebar-widget: desktop only ── */
.rmg-sidebar-sticky-widget {
    background: #ffffff;
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.07);
    position: sticky;
    top: 20px;
}

/* Mobil: INTE sticky */
@media (max-width: 768px) {
    .rmg-sidebar-sticky-widget {
        position: static !important;
        top: auto !important;
    }
    
    /* Dubbla rubriker lite mindre på mobil */
    .rmg-opinion-archive .card-title-large,
    .rmg-opinion-author-archive .card-title-large {
        font-size: 1.5em !important;
    }
}

/* ── Back-button: kompaktare stil ── */
.rmg-back-button {
    display: inline-block;
    padding: 8px 16px;
    background: #0051A5;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}

.rmg-back-button:hover {
    background: #003d7a;
}

/* =================================================================
   V2.20.9 FINAL OVERRIDES — dessa regler vinner alla konflikter
   ================================================================= */

/* ── Sidebar: ta bort overflow så att sticky fungerar ── */
.rmg-opinion-sidebar {
    overflow: visible !important;
    overflow-y: visible !important;
    max-height: none !important;
    /* Sticky hanteras av align-self: start + position: sticky på containern */
    position: sticky !important;
    top: 32px !important;
    align-self: start !important;
}

@media (max-width: 768px) {
    .rmg-opinion-sidebar {
        position: static !important;
        top: auto !important;
    }
}

/* ── Sidebar: mellanrum mellan sektioner ── */
.rmg-opinion-sidebar .sidebar-section {
    margin-bottom: 12px !important;
}

.rmg-opinion-sidebar .sidebar-section:last-child {
    margin-bottom: 0 !important;
}

/* ── Sticky bottom widget ── */
.rmg-sticky-bottom-widget {
    position: sticky !important;
    top: 20px !important;
}

@media (max-width: 768px) {
    .rmg-sticky-bottom-widget {
        position: static !important;
    }
}

/* ── KORTRUBRIKER: definitiv storlek ── */
/* Ledare */
.rmg-opinion-archive .card-title-large,
.rmg-opinion-author-archive .card-title-large {
    font-size: 26px !important;
    font-weight: 800 !important;
    font-style: normal !important;
    line-height: 1.25 !important;
    margin: 10px 0 8px !important;
}

/* Debatt: italic, lite mindre */
.rmg-opinion-archive .rmg-card-debatt .card-title-large,
.rmg-opinion-author-archive .rmg-card-debatt .card-title-large,
.card-title-debatt {
    font-size: 22px !important;
    font-style: italic !important;
    font-weight: 700 !important;
}

/* Länkarna i titlarna */
.rmg-opinion-archive .card-title-large a,
.rmg-opinion-author-archive .card-title-large a {
    color: #111 !important;
    text-decoration: none !important;
}

.rmg-opinion-archive .card-title-large a:hover,
.rmg-opinion-author-archive .card-title-large a:hover {
    color: #0051A5 !important;
}

/* ── Author header: 70/30 grid ── */
.rmg-author-header-card {
    margin-bottom: 16px !important;
}

.rmg-author-header-grid {
    display: grid !important;
    grid-template-columns: 1fr 168px !important;
    gap: 28px !important;
    align-items: start !important;
}

.rmg-author-header-info {
    min-width: 0;
}

.rmg-author-header-image {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: flex-start !important;
    flex-shrink: 0;
}

.rmg-author-profile-thumb {
    width: 160px !important;
    height: 160px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    display: block !important;
}

/* Mobil: bild ovanför, full-bredd */
@media (max-width: 600px) {
    .rmg-author-header-grid {
        grid-template-columns: 1fr !important;
    }
    .rmg-author-header-image {
        justify-content: flex-start !important;
    }
    .rmg-author-profile-thumb {
        width: 100px !important;
        height: 100px !important;
    }
}

/* ── Mellanrum i main-kolumnen ── */
.rmg-opinion-main .rmg-article-card,
.rmg-opinion-main .rmg-author-header-card,
.rmg-opinion-main .rmg-breadcrumb-card {
    margin-bottom: 16px;
}

/* ── CTA-kombinationsruta ── */
.rmg-cta-combined {
    padding: 0 !important;
    overflow: hidden;
}

.rmg-cta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    text-decoration: none !important;
    color: inherit !important;
    transition: background 0.15s;
}

.rmg-cta-row:hover {
    background: #f4f6f8;
}

.rmg-cta-badge {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
    padding: 2px 7px;
    border-radius: 3px;
    flex-shrink: 0;
}

.rmg-cta-badge-debatt { background: #555; }
.rmg-cta-badge-ledare { background: #0051A5; }

.rmg-cta-label {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: #222;
}

.rmg-cta-arrow {
    color: #bbb;
    font-size: 15px;
}

.rmg-cta-divider {
    height: 1px;
    background: #eef0f2;
    margin: 0 18px;
}

/* =================================================================
   V2.21.0 SIDEBAR POLISH + CTA + READ-ALL
   ================================================================= */

/* ── Sidebar CTA: Diskutera vidare ── */
.rmg-sidebar-cta .rmg-sidebar-cta-text {
    font-size: 13px;
    line-height: 1.5;
    color: #555;
    margin: 0 0 12px 0;
}

.rmg-sidebar-cta-btn {
    display: inline-block;
    background: #0051A5;
    color: #fff !important;
    text-decoration: none !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}

.rmg-sidebar-cta-btn:hover {
    background: #003d7a;
}

/* ── Read-all badges: DEBATT / LEDARE inline ── */
.rmg-read-all-list .sidebar-list-item {
    padding: 6px 0;
}

.rmg-read-all-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 6px;
    vertical-align: middle;
}

.rmg-badge-debatt { background: var(--rmg-color-debatt, #555); }
.rmg-badge-ledare { background: var(--rmg-color-ledare, #0051A5); }

/* ── Sidebar sticky: kräver att föräldern INTE har overflow ── */
.rmg-opinion-sidebar {
    overflow: visible !important;
    max-height: none !important;
}

/* ── Card radius via CSS variable ── */
.rmg-article-card,
.rmg-opinion-card,
.rmg-breadcrumb-card,
.rmg-opinion-sidebar .sidebar-section {
    border-radius: var(--rmg-card-radius, 10px) !important;
}

/* ── Author profile image: behåll proportioner ── */
.rmg-author-profile-thumb {
    width: 160px !important;
    height: 160px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    display: block !important;
    flex-shrink: 0 !important;
}

/* Mobile: stapla author-header */
@media (max-width: 640px) {
    .rmg-author-header-grid {
        grid-template-columns: 1fr !important;
    }
    .rmg-author-header-image {
        justify-content: flex-start !important;
    }
}

/* =================================================================
   V2.21.1 INFINITE SCROLL LAYOUT FIX
   ================================================================= */

/*
 * Scroll-artiklarna ska INTE ha 70/30-grid.
 * rmg-single-col: stänger av grid-kolumner, centrerat med max-width.
 */
.rmg-opinion-container.rmg-single-col {
    display: block !important;
    max-width: 860px !important; /* matchar ungefär 70%-kolumnens bredd */
    padding-top: 0 !important;
    padding-bottom: 24px !important;
}

/* Scroll-artikel: breadcrumb + card ser identiska ut med första artikeln */
.rmg-scroll-article-wrap .rmg-breadcrumb-card {
    margin-top: 0 !important;
    margin-bottom: 16px;
}

.rmg-scroll-article-wrap .rmg-article-card {
    margin-bottom: 0;
}

/* Separator: visuell avgränsare mellan artiklarna */
.rmg-scroll-article-wrap {
    border-top: 3px solid #e8ecf0;
    padding-top: 8px;
}

/* =================================================================
   V2.21.2 DEFINITIVE FINAL OVERRIDES
   Dessa regler ligger sist i filen och vinner allt ovan.
   ================================================================= */

/* ── SIDEBAR: INTE sticky — bara sista widgeten är det ── */
.rmg-opinion-sidebar {
    position: static !important;
    top: auto !important;
    max-height: none !important;
    overflow: visible !important;
    overflow-y: visible !important;
    align-self: start;
}

/* ── Sticky gäller ENBART sista widgeten, bara på desktop ── */
.rmg-sticky-bottom-widget {
    position: sticky !important;
    top: 20px !important;
}

@media (max-width: 768px) {
    .rmg-sticky-bottom-widget {
        position: static !important;
        top: auto !important;
    }
}

/* ── Sidebar behåller rätt kolumn via align-self på grid ── */
.rmg-opinion-container > .rmg-opinion-sidebar {
    align-self: start;
}

/* ================================================================
   RUBRIKER: CSS-variabler från wp_head vinner.
   Tar BORT alla hårdkodade !important px-värden.
   Reglerna nedan matchar exakt samma selektorer som blocken ovan
   men med CSS-var() — detta block ligger sist → vinner.
   ================================================================ */

/* Ledare-rubriker i archive/author-listor */
.rmg-opinion-archive .card-title-large,
.rmg-opinion-author-archive .card-title-large {
    font-size: var(--rmg-archive-title-size, 26px) !important;
    font-weight: 800 !important;
    font-style: normal !important;
    line-height: 1.25 !important;
}

/* Debatt-rubriker i archive/author-listor */
.rmg-opinion-archive .rmg-card-debatt .card-title-large,
.rmg-opinion-author-archive .rmg-card-debatt .card-title-large,
.card-title-debatt {
    font-size: var(--rmg-debatt-title-size, 22px) !important;
    font-style: italic !important;
    font-weight: 700 !important;
}

/* Artikelrubrik i single-view */
.rmg-opinion-single .entry-title,
.rmg-article-card .entry-title {
    font-size: var(--rmg-single-title-size, 32px) !important;
}

/* Sidans page-header (landningssidan) */
.rmg-opinion-page-title {
    font-size: var(--rmg-page-header-size, 32px) !important;
}

/* Länkfärger oförändrade */
.rmg-opinion-archive .card-title-large a,
.rmg-opinion-author-archive .card-title-large a {
    color: #111 !important;
    text-decoration: none !important;
}
.rmg-opinion-archive .card-title-large a:hover,
.rmg-opinion-author-archive .card-title-large a:hover {
    color: var(--rmg-accent-color, #0051A5) !important;
}

/* =================================================================
   V2.21.7 FIXES
   ================================================================= */

/* Fix 2: Box-in-box — ta bort temats egna box-styling på .widget
   inuti vår sidebar, annars blir det dubbel bakgrund/kant */
.rmg-opinion-sidebar .widget {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

/* Widget-titlar i sidebar följer vår sidebar-title stil */
.rmg-opinion-sidebar .widget-title,
.rmg-opinion-sidebar .widget .widgettitle {
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    color: #555 !important;
    margin: 0 0 12px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid var(--rmg-accent-color, #0051A5) !important;
    background: none !important;
}

/* =================================================================
   V2.21.8 FIXES
   ================================================================= */

/* 3a: Landningssidans rubrik — mer luft ovanför */
.rmg-opinion-archive .rmg-opinion-page-header,
.rmg-opinion-page-header {
    margin-top: 20px !important;
    margin-bottom: 24px !important;
}

/* 3b: Första artikel / single-main börjar i jämnhöjd med sidebar-topp.
   Sidebaren är sticky:top+32px, containern har padding-top 0 på archive.
   Styr att sidebar och main matchar sin topp via align-items: start på gridet. */
.rmg-opinion-archive .rmg-opinion-container,
.rmg-opinion-author-archive .rmg-opinion-container {
    align-items: start !important;
}

.rmg-opinion-archive .rmg-opinion-main > :first-child,
.rmg-opinion-author-archive .rmg-opinion-main > :first-child {
    margin-top: 0 !important;
}

/* 3b: Single — main och sidebar startar på samma vertikala linje */
.rmg-opinion-single .rmg-opinion-container {
    align-items: start !important;
    padding-top: 20px !important;
}

/* Fix 2: Sticky bottom widget — ingen sidebar-section wrapper längre.
   Se till att widgeten ändå har korrekta kort-proportioner. */
.rmg-sticky-bottom-widget {
    background: none !important;
    padding: 0 !important;
    position: sticky;
    top: 20px;
}
.rmg-sticky-bottom-widget .widget {
    background: #ffffff !important;
    border-radius: var(--rmg-card-radius, 10px) !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08) !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: none !important;
}

@media (max-width: 768px) {
    .rmg-sticky-bottom-widget {
        position: static !important;
        top: auto !important;
    }
}

/* =================================================================
   V2.21.9 FIXES
   ================================================================= */

/* ── rmg-opinion-prehead: full bredd, samma max-width som containern ── */
.rmg-opinion-prehead {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 0 20px;
}

.rmg-opinion-prehead .rmg-breadcrumb-card {
    margin-bottom: 0;
}

.rmg-opinion-prehead .rmg-opinion-page-header {
    margin-top: 16px !important;
    margin-bottom: 0 !important;
    padding-bottom: 20px;
}

/* Container startar direkt utan extra padding-top — titeln är redan ovanför */
.rmg-opinion-archive .rmg-opinion-container,
.rmg-opinion-single .rmg-opinion-container {
    padding-top: 20px !important;
}

/* ── ISSUE 3: Widgets ska gå till kortets kant (nollställ horisontell padding) ──
   Artikelkortet har padding: 32px 36px 28px 36px.
   Negativa marginaler spräcker ut widgetarna till kanten.
   Behåll vertikal margin. */
.rmg-article-card .rmg-in-article-widget {
    margin-left:  -36px !important;
    margin-right: -36px !important;
    margin-top:   24px !important;
    margin-bottom: 24px !important;
}

/* landing-widget i opinion-grid: tar hela kortets plats, ingen extra kant */
.rmg-opinion-grid .rmg-landing-widget {
    padding: 0 !important;
    background: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

/* between-articles-widget wrapper */
.rmg-landing-widget > .widget,
.rmg-in-article-widget > .widget {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
}

/* ── ISSUE 4: Author image — tvingat kvadratisk ── */
/* I single-view article header */
.article-header-image {
    width: 120px !important;
    height: 120px !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    flex-shrink: 0;
}

.article-header-image img,
.article-header-image .author-square-img,
.article-header-image .author-square-img-large {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    display: block !important;
}

/* I author-sidans header: profilbild med space ovanför */
.rmg-author-header-image {
    padding-top: 8px !important;
}

.rmg-author-header-image .rmg-author-profile-thumb {
    width: 160px !important;
    height: 160px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    display: block !important;
}

@media (max-width: 768px) {
    .article-header-image {
        width: 90px !important;
        height: 90px !important;
    }
    .rmg-article-card .rmg-in-article-widget {
        margin-left: -16px !important;
        margin-right: -16px !important;
    }
}

/* =================================================================
   V2.22.0: Infinite scroll i single view + card spacing
   ================================================================= */

/* ── Issue 2: Mer mellanrum mellan arkiv-cards ── */
.rmg-opinion-archive .rmg-opinion-grid,
.rmg-opinion-author-archive .rmg-opinion-grid {
    gap: 25px !important;
}

/* ── Divider ovanför scroll-serien ── */
.rmg-scroll-more-divider {
    display: flex;
    align-items: center;
    margin: 32px 0 20px 0;
    gap: 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
}
.rmg-scroll-more-divider::before,
.rmg-scroll-more-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e4ea;
}

/* ── Scroll article cards: kompakta, klickbara ── */
.rmg-scroll-article-card {
    background: #fff;
    border-radius: var(--rmg-card-radius, 10px);
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    margin-bottom: 12px;
    transition: box-shadow 0.18s ease;
    overflow: hidden;
}
.rmg-scroll-article-card:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,0.12);
}
.rmg-scroll-article-link {
    display: block;
    padding: 20px 24px;
    text-decoration: none;
    color: inherit;
}
.rmg-scroll-article-link:hover {
    color: inherit;
    text-decoration: none;
}

/* Inre 70/30-layout: text vänster, thumbnail höger */
.rmg-scroll-card-inner {
    display: grid;
    grid-template-columns: 1fr 80px;
    gap: 16px;
    align-items: center;
    margin-top: 10px;
}
.rmg-scroll-card-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 10px 0;
    color: #111;
}
.rmg-scroll-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}
.rmg-scroll-avatar {
    width: 28px !important;
    height: 28px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    flex-shrink: 0;
}
.rmg-scroll-author {
    font-weight: 600;
    color: #444;
}
.rmg-scroll-date {
    color: #999;
    font-size: 12px;
}
.rmg-scroll-card-thumb {
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 6px;
    flex-shrink: 0;
}
.rmg-scroll-thumb-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Ingen thumbnail-kolumn om thumbnail saknas */
.rmg-scroll-card-inner:only-child,
.rmg-scroll-card-inner > .rmg-scroll-card-text:last-child {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .rmg-scroll-card-inner {
        grid-template-columns: 1fr 64px;
    }
    .rmg-scroll-card-thumb {
        width: 64px;
        height: 64px;
    }
}

/* =================================================================
   V2.22.1 FIXES
   ================================================================= */

/* ── Issue 1: Grid fr-units (gap-aware) + breadcrumb full width ── */
.rmg-opinion-container {
    grid-template-columns: 7fr 3fr !important;
}

/* Prehead matches container exactly: same max-width + horizontal padding */
.rmg-opinion-prehead {
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
}

/* ── Issue 2: Mobile font scaling ── */
@media (max-width: 768px) {
    /* Arkiv-kort */
    .card-title-large {
        font-size: 22px !important;
    }
    .card-title-debatt,
    .rmg-card-debatt .card-title-large {
        font-size: 19px !important;
    }
    /* Single-artikel rubrik */
    .rmg-article-card .entry-title,
    .rmg-opinion-single .entry-title {
        font-size: 26px !important;
    }
    /* Scroll-list titles */
    .rmg-scroll-card-title {
        font-size: 16px !important;
    }
}
@media (max-width: 480px) {
    .card-title-large {
        font-size: 19px !important;
    }
    .rmg-article-card .entry-title,
    .rmg-opinion-single .entry-title {
        font-size: 22px !important;
    }
}

/* ── Issue 3: In-article widget margin-bottom ── */
.rmg-article-card .rmg-in-article-widget {
    margin-bottom: 32px !important;
}

/* ── Issue 4: Scroll card — ta bort cover image, visa bara rubrik + meta ── */
.rmg-scroll-card-inner {
    grid-template-columns: 1fr !important; /* ta bort höger-kolumn */
}
.rmg-scroll-card-thumb {
    display: none !important;
}

/* Scroll card title CSS-var driven */
.rmg-scroll-card-title {
    font-size: var(--rmg-scroll-title-size, 18px) !important;
}

/* ── Issue 5: Landing page hero cover image ── */
.rmg-opinion-landing-hero {
    width: 100%;
    margin: 0 0 0 0;
    line-height: 0;
    border-radius: 0;
    overflow: hidden;
    max-height: 320px;
}
.rmg-opinion-landing-hero img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

/* Ta bort rubrik + undertext från prehead på landningssidan — styrs av PHP */
.rmg-opinion-prehead--has-hero .rmg-opinion-page-header {
    display: none;
}

@media (max-width: 768px) {
    .rmg-opinion-landing-hero img {
        height: 180px;
    }
}

/* =================================================================
   V2.22.2 FIXES
   ================================================================= */

/* ── Fix 1: MOBIL — 7fr 3fr override bryts mot 1fr på mobil ── */
@media (max-width: 768px) {
    .rmg-opinion-container {
        grid-template-columns: 1fr !important;
    }
    /* Sidebar hamnar under content på mobil */
    .rmg-opinion-sidebar {
        position: static !important;
        top: auto !important;
    }
    .rmg-sticky-bottom-widget {
        position: static !important;
        top: auto !important;
    }
    /* Prehead: ingen onödig padding */
    .rmg-opinion-prehead {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    /* Arkiv-grid: en kolumn */
    .rmg-opinion-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ── Fix 4: In-article widget — ta bort det yttre grå lagret,
   behåll bara innehållets eventuella styling ── */
.rmg-article-card .rmg-in-article-widget {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    /* margin-left/right -36px håller kvar för edge-to-edge */
}

/* Temat lägger på .widget en grå bakgrund — nollställ det specifikt här */
.rmg-article-card .rmg-in-article-widget .widget,
.rmg-article-card .rmg-in-article-widget > div {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* ── Fix 5: Mellan-artiklar widget — mellanrum under ── */
.rmg-opinion-grid .rmg-landing-widget {
    margin-bottom: 25px !important;
}

/* Debattartikel header: ingen bild-kolumn, rubrik tar full bredd */
.article-header-grid.no-image {
    grid-template-columns: 1fr !important;
}

/* ══════════════════════════════════════════════════════════════════
   Single-scroll: fullständiga artiklar injicerade via AJAX
   ══════════════════════════════════════════════════════════════════ */

/* Wrapper runt varje injicerad artikel — visuellt avgränsad som ett eget card */
.rmg-full-article-entry {
    margin-top: 32px;
    position: relative;
}

/* Separator borttagen — ingen avdelare mellan infinite scroll-artiklar */

/* Fade-in animation när artikeln laddas in */
.rmg-full-article-entry .rmg-article-card {
    animation: rmgFadeSlideIn 0.4s ease both;
}

@keyframes rmgFadeSlideIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Kortflödet (#rmg-short-flow) döljs initialt av PHP, visas av JS */
#rmg-short-flow {
    display: none;
}

/* Laddnings-indikator under stream */
#rmg-single-load-trigger {
    height: 1px;
    margin-top: 16px;
}

/* ══════════════════════════════════════════════════════════════════
   Meta-ikoner: user + datum vid författare och publiceringsdatum
   ══════════════════════════════════════════════════════════════════ */
.rmg-meta-icon {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    width: 14px;
    height: 14px;
    margin-right: 3px;
    color: var(--rmg-meta-icon-color, #999);
    stroke: var(--rmg-meta-icon-color, #999);
    flex-shrink: 0;
    position: relative;
    top: -1px;
}

/* Debatt-omslagsbild i kortformat */
.rmg-card-debatt .card-thumbnail {
    display: block;
}
.rmg-card-debatt .card-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--rmg-card-radius, 10px) var(--rmg-card-radius, 10px) 0 0;
    object-fit: cover;
    max-height: 200px;
}

/* ══════════════════════════════════════════════════════════════════
   Debattartikels omslagsbild (single-view, under meta, ovan disclaimer)
   ══════════════════════════════════════════════════════════════════ */
.rmg-debate-cover-image {
    margin: 20px 0 24px 0;
    border-radius: var(--rmg-card-radius, 10px);
    overflow: hidden;
    line-height: 0;
}
.rmg-debate-cover-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 420px;
    border-radius: var(--rmg-card-radius, 10px);
}

/* ══════════════════════════════════════════════════════════════════
   Sidebar: storlekarna styrs via CSS-variabler från adminvyn
   ══════════════════════════════════════════════════════════════════ */
.rmg-opinion-sidebar .sidebar-title {
    font-size: var(--rmg-sidebar-title-size, 15px);
}
.rmg-opinion-sidebar .sidebar-post-title {
    font-size: var(--rmg-sidebar-link-size, 14px) !important;
}

/* ══════════════════════════════════════════════════════════════════
   Debattämnen — topic chips i sidebar
   ══════════════════════════════════════════════════════════════════ */
.rmg-topic-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 0 4px 0;
}
.rmg-topic-chip {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f1f3;
    color: #3c434a;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.4;
    transition: background 0.15s, color 0.15s;
    border: 1px solid #dde0e4;
}
.rmg-topic-chip:hover {
    background: var(--rmg-accent-color, #0051A5);
    color: #fff;
    border-color: var(--rmg-accent-color, #0051A5);
}

/* ══════════════════════════════════════════════════════════════════
   Sidebar: "Författare: Rubrik"-format i artikellistor
   ══════════════════════════════════════════════════════════════════ */
.sidebar-post-author {
    font-weight: 700;
    color: inherit;
    margin-right: 2px;
}
