:root {
    color-scheme: light;
    --cna-red: #d32027;
    --text-dark: #111111;
    --text-gray: #555555;
    --bg-body: #ffffff;
    --border-light: #e5e5e5;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.5;
}

/* --- Header / Nav --- */
.site-header {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    z-index: 100;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
}

.site-header a {
    color: var(--text-dark);
    text-decoration: none;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: Georgia, serif;
    font-weight: bold;
    font-size: 20px;
    color: var(--text-dark);
}

.header-logo img {
    height: 50px;
    width: auto;
    border-radius: 8px;
}

.header-category-nav {
    display: flex;
    gap: 20px;
}

/* --- Main Layout --- */
.layout-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: start;
    /* crucial for sticky right col */
}

@media (max-width: 850px) {
    .layout-container {
        grid-template-columns: 1fr;
    }
}

/* --- Main Column --- */
.article-category-tag {
    color: var(--cna-red);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block;
}

h1.article-headline {
    margin: 0 0 24px;
    font-size: clamp(32px, 4vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.5px;
    font-weight: 700;
}

p.article-lead {
    font-size: 20px;
    color: var(--text-gray);
    line-height: 1.5;
    margin: 0 0 32px;
}

.hero-image-container {
    margin-bottom: 12px;
}

.hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16 / 9;
    background-color: #f1f1f1;
}

.hero-caption {
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 8px;
    margin-bottom: 32px;
}

/* --- Byline & Social --- */
.article-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 16px 0;
    margin-bottom: 32px;
}

.byline {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-gray);
}

.byline-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    transform: scale(1.6);
    transform-origin: center 25%;
}

.byline-avatar-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.byline-name {
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: none;
}

.social-share {
    display: flex;
    gap: 8px;
}

.share-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #555;
    font-weight: bold;
    font-size: 12px;
}

/* --- Editorial Body Text --- */
.article-body {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    line-height: 1.7;
    color: #222;
}

.article-body p {
    margin-bottom: 24px;
}

.article-body h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 26px;
    line-height: 1.3;
    margin: 36px 0 16px;
    color: var(--text-dark);
}

.article-body h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    margin: 32px 0 12px;
    color: var(--text-dark);
    text-transform: uppercase;
}

.pull-quote {
    padding: 0 0 0 24px;
    border-left: 4px solid var(--cna-red);
    font-size: 24px;
    color: var(--text-dark);
    font-style: italic;
    margin: 40px 0;
    line-height: 1.5;
}

/* Table cleanup to match editorial */
.savings-table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-family: Arial, sans-serif;
    font-size: 15px;
}

.savings-table th,
.savings-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.savings-table th {
    font-weight: bold;
    color: var(--text-gray);
    text-transform: uppercase;
    font-size: 12px;
}

.savings-table tr:last-child td {
    border-bottom: none;
}

.savings-table .total-row {
    font-weight: bold;
    background: #fafafa;
}

/* --- Right Sidebar --- */
.sidebar {
    position: sticky;
    top: 80px;
}

.sidebar-heading {
    background: var(--cna-red);
    color: #fff;
    padding: 8px 16px;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 24px;
    display: inline-block;
}

.recommended-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 24px;
}

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

.rec-thumb {
    width: 100px;
    aspect-ratio: 4/3;
    background: #eee;
    object-fit: cover;
}

.rec-title {
    font-size: 15px;
    line-height: 1.4;
    margin: 0;
    font-weight: 600;
}

.rec-title a {
    color: var(--text-dark);
    text-decoration: none;
}

.rec-title a:hover {
    color: var(--cna-red);
}

/* --- Footer --- */
.site-footer {
    border-top: 1px solid var(--border-light);
    padding: 40px 24px;
    margin-top: 64px;
    text-align: center;
    font-size: 13px;
    color: var(--text-gray);
    background: #fafafa;
}