: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;
}

/* 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;
}

/* This targets every h2 that is inside your article-content div */
.article-content h2 {
    font-size: 1.875rem; /* text-3xl */
    font-weight: 700;    /* font-bold */
    color: var(--color-secondary-brown);
    margin-top: 2rem;    /* mt-8 */
    margin-bottom: 1rem; /* mb-4 */
    border-bottom: 1px solid var(--color-amber-100);
    padding-bottom: 0.5rem; /* pb-2 */
}

.article-content p {
    margin-bottom: 1rem;
    line-height: 1.75;
}

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;
}

/* Simplify this rule to only handle vertical spacing */
.article-content ul li {
    margin-bottom: 1.5rem;
    margin-left: 0; /* Force reset any inherited indentation */
    padding-left: 0;
}

/* Force all lists in the article to show bullets and have correct spacing */
.article-content ul {
    list-style-type: disc !important;
    margin-left: 1.5rem !important;
    padding-left: 1rem !important;
    display: block !important;
}

.article-content li {
    display: list-item !important;
    margin-bottom: 1.5rem !important;
    color: var(--color-gray-dark) !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-stat2 {
    color: var(--primary-leaf) !important;
    font-weight: bold;
    font-size: 1.125rem;
}

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

html.light:root .keyword {
    font-weight: 700;
    color: var(--secondary-brown) !important;
}

html.light:root .article-content table {
    width: 100% !important;
    display: table;
    table-layout: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling for iPhone/iPad */
    margin: 2rem 0;
    border-collapse: collapse;
    font-size: 1rem;
    background-color: var(--color-white);
    /*min-width: 100%;*/
}

html.light:root .article-content th {
    background-color: var(--main-beige);
    color: var(--secondary-brown);
    font-weight: 800;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid var(--primary-leaf);
    border-right: 1px solid var(--border-light);
}

html.light:root .article-content td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    color: var(--color-gray-dark);
    vertical-align: top;
}

/* Remove the right border on the last column for a cleaner look */
.article-content th:last-child, 
.article-content td:last-child {
    border-right: none;
}

/* Zebra striping for readability */
html.light:root .article-content tr:nth-child(even) {
    background-color: rgba(255, 244, 227, 0.3); /* Subtle beige tint */
}

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;
}

/* Mobile-only logic: Hidden by default (desktop) */
.mobile-series-nav {
    display: none;
}

@media (max-width: 1023px) {
    html.light:root .mobile-series-nav {
        display: block;
        background-color: var(--main-beige) !important;
        border: 2px solid var(--secondary-brown) !important;
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    html.light:root .mobile-series-nav h3 {
        color: var(--secondary-brown) !important;
        font-weight: 800;
        border-bottom: 2px solid var(--secondary-brown) !important;
    }
}