:root {
    --primary-leaf: #d97706; /* Amber 600 */
    --secondary-brown: #92400e; /* Amber 800 */
    --main-beige: #FFF4E3; 
    --color-gray-dark: #4a4a4a;
    --color-white: #ffffff;
    --border-light: #e0e0e0;
    --dark-gray-blue: #1f2937;
    --gray-light: #a0a0a0;
    --color-black: #000000;
}

html.light:root body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden; 
    background-color: var(--color-white) !important;
    color: var(--color-white) !important;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

.article-content {
    line-height: 1.75;
    font-size: 1.125rem;
}

html.light:root article {
    background-color: var(--color-white) !important;
}

html.light:root .article-content p {
    margin-bottom: 1.5rem;
    color: var(--color-gray-dark) !important;
}

html.light:root a {
    color: var(--primary-leaf) !important;
    text-decoration: none;
    font-weight: bold;
}

/* Link Styles in Article */
html.light:root .article-content a {
    color: var(-primary-leaf) !important;
    font-weight: 700;
    text-decoration: underline;
    transition: color 0.2s;
}
html.light:root .article-content a:hover {
    color: var(--secondary-brown) !important;
}

html.light:root .article-header h1,
html.light:root page-header h1,
html.light:root .article-content h2,
html.light:root .article-content h3 {
    color: var(--secondary-brown) !important;
}

html.light:root header {
    box-shadow: none !important;
}

html.light:root .article-content li {
    color: var(--color-gray-dark) !important;
}

html.light:root article h1 {
    color: var(--primary-leaf) !important; 
}

html.light:root article {
    border-top-color: var(--secondary-brown) !important;
}

html.light:root article h2 {
    border-color: var(--gray-light) !important;
}

html.light:root .series-sidebar {
    border-color: var(--primary-leaf) !important; 
    background-color: var(--color-white) !important;
}

html.light:root .series-sidebar h3 {
    color: var(--secondary-brown) !important;
    border-color: var(--secondary-brown) !important;
}

html.light:root .series-sidebar li .font-bold.text-secondary-brown {
    color: var(--primary-leaf) !important;
}

html.light:root .series-sidebar li .text-primary-leaf {
    color: var(--secondary-brown) !important;
}

html.light:root .highlight-stat {
    background-color: var(--main-beige) !important;
    color: var(--secondary-brown) !important;
    padding: 1rem 1.5rem;
    border-left: 5px solid var(--primary-leaf) !important;
    font-weight: 800;
    font-size: 1.25rem;
    margin: 2rem 0;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

html.light:root .highlight-stat-text {
    color: var(--primary-leaf) !important;
    font-weight: bold;
    font-size: 2.25rem;
}

html.light:root .highlight-age {
    color: var(--primary-leaf) !important;
    font-weight: bold;
    font-size: 1.125rem;
}

html.light:root .highlight-age-larger {
    color: var(--secondary-brown) !important;
    font-weight: bold;
    font-size: 2.25rem;
}

html.light:root .keyword {
    font-weight: 700;
    color: var(--secondary-brown) !important;
}
        
html.light:root .data-table-container {
    width: 100%;
    max-width: 100%;
    margin: 2rem auto;
    border-collapse: collapse; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    background-color: var(--color-white) !important;
    border-radius: 8px;
    overflow-x: auto; /* <-- It adds a scrollbar ONLY if needed */
    -webkit-overflow-scrolling: touch; /* <-- For smooth scrolling
    /*overflow: hidden;*/
    border: 1px solid var(--border-light) !important;
}
/* Force the table to fill the container */
.data-table-container table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}
html.light:root .data-table-container th, 
html.light:root .data-table-container td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-light) !important;
    font-size: 1rem;
}
html.light:root .data-table-container th {
    background-color: var(--main-beige) !important;
    color: var(--secondary-brown) !important;
    font-weight: 700;
    text-transform: uppercase;
}
.data-table-container tbody tr:last-child td {
    border-bottom: none;
}
html.light:root .data-table-container a {
    color: var(--primary-leaf) !important;
    text-decoration: underline;
}

html.light:root page-header {
    color: var(--color-gray-dark) !important;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-size: 2.0rem;
    font-weight: 700;
    text-align: center;
    display: block;
}

html.light:root .next-in-series-box {
    background-color: var(--main-beige) !important;
    border-color: var(--secondary-brown) !important;
}

html.light:root .call-to-action-highlight {
    color: var(--secondary-brown) !important; 
}

.unpublished-blog-link {
    pointer-events: none;
    cursor: default;
    text-decoration: none;
}

html.light:root .unpublished-blog-link span {
    color: var(--gray-light) !important; 
    transition: none !important; 
}

html.light:root .unpublished-blog-link:hover span {
    color: var(--gray-light) !important;
}

.unpublished-blog-link div {
    transition: none !important;
}

html.light:root .unpublished-blog-link:hover div {
    background-color: transparent !important;
}