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

:root {
    --bg: #eef2f7;
    --bg2: #EEEEEC;
    --surface: #ffffff;
    --text: #111111;
    --text2: #555555;
    --text3: #999999;
    --accent: #D01C2A;
    --green: #00966E;
    --border: #D8D8D6;
    --nav-h: 56px;
}

[data-theme="dark"] {
    --bg: #0D0D0D;
    --bg2: #161616;
    --surface: #1C1C1C;
    --text: #EDEDEA;
    --text2: #AAAAAA;
    --text3: #666666;
    --accent: #D01C2A;
    --green: #00966E;
    --border: #2A2A2A;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    transition: background 0.2s, color 0.2s;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* ── NAV ── */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-h);
    background: var(--surface);
/*    border-bottom: 1px solid var(--border); */
    transition: background 0.2s;
    margin: 0 -24px;
    padding: 0 24px;
}

.nav-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
}

.logo-slogan-wrap {
    display: flex;
    align-items: baseline;
    gap: 24px;
}

.logo {
    font-family: Roboto, serif;
    font-weight: 900;
    font-size: 29px;
    letter-spacing: -0.5px;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.logo-flag {
    width: 5px;
    height: 21px;
    border-radius: 1px;
    overflow: hidden;
    flex-shrink: 0;
}
.logo-flag span {
    display: block;
    height: 7px;
}
.logo-flag span:nth-child(1) { background: #ffffff; }
.logo-flag span:nth-child(2) { background: #00966E; }
.logo-flag span:nth-child(3) { background: #D01C2A; }

.logo-text { color: #00966E; }
.logo-text .logo-sep { color: var(--text3); font-weight: 300; margin: 0 1px; }
.logo-text .logo-tld { font-weight: 400; font-size: 22px; opacity: 0.7; color: #D01C2A;}

.nav-cats {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
}
.nav-cats-placeholder {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
}
.nav-cats::-webkit-scrollbar { display: none; }

.nav-cat {
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text2);
    border: none;
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
.nav-cat:hover { color: var(--text); }
.nav-cat.active { color: var(--green); border-bottom-color: var(--green); }

.nav-right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

#icon_light_theme, #icon_dark_theme {
    transition: opacity 0.3s ease-in-out;
}

/* Theme toggle */
.theme-toggle {
    width: 44px;
    height: 24px;
    background: var(--border);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
    flex-shrink: 0;
}
.theme-toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text);
    transition: transform 0.2s, background 0.2s;
}
[data-theme="dark"] .theme-toggle::after {
    transform: translateX(20px);
}
.theme-icon {
    font-size: 13px;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

/* ── TICKER ── */
.ticker {
    background: var(--green);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.03em;
    overflow: hidden;
    height: 30px;
    margin: 0 -24px;
    padding: 0 24px;
}
.ticker-inner {
    height: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100%;
}
.ticker-label {
    padding: 0 14px 0 0;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 10px;
    white-space: nowrap;
    border-right: 1px solid rgba(255,255,255,0.3);
    height: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 14px;
}
.ticker-track {
    display: flex;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}
.ticker-track span {
    padding: 0 32px;
    opacity: 0.92;
}
.ticker-track span::before { content: '·'; margin-right: 32px; opacity: 0.5; }
@keyframes ticker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── MAIN LAYOUT ── */
main { padding: 0 0 20px; flex: 1; width: 100%; }

/* ── DATE BAR ── */
.datebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 2px solid var(--text);
    margin-bottom: 32px;
}
.datebar-date {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text2);
}
.datebar-edition {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text3);
}

/* ── HERO ── */
.hero {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 32px;
    margin-bottom: 32px;
    margin-top: 12px;
}

.hero-main {
    padding-right: 32px;
    border-right: 1px solid var(--border);
}

.hero-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.hero-headline {
    font-family: Roboto, serif;
    font-weight: 900;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.12;
    letter-spacing: -0.5px;
    color: var(--text);
    margin-bottom: 16px;
}

.hero-deck {
    font-size: 16px;
    color: var(--text2);
    line-height: 1.65;
    margin-bottom: 20px;
    max-width: 560px;
}

.hero-meta {
    font-size: 12px;
    color: var(--text3);
    letter-spacing: 0.02em;
}
.hero-meta strong { color: var(--text2); font-weight: 500; }

.hero-img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
    background: var(--bg2);
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

/* Image placeholders with abstract patterns */
.img-placeholder {
    width: 100%;
    aspect-ratio: 16/10;
    background: var(--bg2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}
.img-placeholder svg { width: 100%; height: 100%; position: absolute; inset: 0; }

/* Hero sidebar */
.hero-sidebar {
    padding-left: 28px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar-story {
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}
.sidebar-story:first-child { padding-top: 0; }
.sidebar-story:last-child { border-bottom: none; }

.sidebar-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 6px;
}

.sidebar-headline {
    font-family: Roboto, serif;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 6px;
    transition: color 0.15s;
}
.sidebar-story:hover .sidebar-headline { color: var(--accent); }

.sidebar-meta {
    font-size: 11px;
    color: var(--text3);
}

/* ── SECTION HEADER ── */
.section-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
    margin-top: 12px;
}
.section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}
.tag-green { color: var(--green) !important; }
.section-rule {
    flex: 1;
    height: 1px;
    background: var(--border);
}
.section-more {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text3);
    cursor: pointer;
    transition: color 0.15s;
    text-decoration: none;
}
.section-more:hover { color: var(--text); }

/* ── CARD GRID ── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.card {
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.card:hover { color: var(--green); }
.card:hover .card-headline { color: var(--green); }
.card:hover .card-headline a { color: var(--green); }
.card:hover .card-summary { color: var(--green); }
.card:hover .card-summary a { color: var(--green); }

.card-img {
    aspect-ratio: 3/2;
    background: var(--bg2);
    margin-bottom: 14px;
    overflow: hidden;
    position: relative;
}
.card-img svg { width: 100%; height: 100%; position: absolute; inset: 0; }

.card-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 6px;
}

.card-headline {
    font-family: Roboto, serif;
    font-weight: 700;
    font-size: 19px;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 8px;
    transition: color 0.15s;
}
.card-headline a {
    color: inherit;
    text-decoration: none;
}
.card-headline a:visited {
    color: var(--text2);
}

.card-summary {
    font-size: 15px;
    color: var(--text2);
    line-height: 1.6;
    margin-bottom: 10px;
    display: -webkit-box;
    overflow: hidden;
}
.card-summary a {
    color: var(--text2);
    text-decoration: none;
}
.card-summary a:visited {
    color: var(--text3);
}
.card-summary a:visited:hover {
    color: inherit;
}
.card-summary .read-more {
    color: var(--accent);
    font-weight: 500;
}
.card-meta {
    font-size: 11px;
    color: var(--text3);
}

/* ── OPINION / WIDE ROW ── */
.wide-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-bottom: 48px;
    border-top: 1px solid var(--border);
}

.wide-card {
    padding: 20px;
    border-right: 1px solid var(--border);
    cursor: pointer;
}
.wide-card:last-child { border-right: none; }
.wide-card:hover .wide-headline { color: var(--accent); }

.wide-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text3);
    display: block;
    margin-bottom: 10px;
}

.wide-author {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.wide-headline {
    font-family: Roboto, serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.35;
    color: var(--text);
    margin-bottom: 10px;
    transition: color 0.15s;
}

.wide-deck {
    font-size: 12px;
    color: var(--text2);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── FOOTER ── */
footer {
    border-top: 2px solid var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.footer-logo {
    font-family: Roboto, serif;
    font-weight: 900;
    font-size: 18px;
    color: var(--text);
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-link {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text3);
    text-decoration: none;
    transition: color 0.15s;
}
.footer-link:hover { color: var(--text); }

.footer-copy {
    font-size: 11px;
    color: var(--text3);
}



.slogan {
    font-size: 1rem;
    color: var(--text2);
    gap: 0.35em;
    letter-spacing: 1px;
    display: flex;
}


.mobile-cats {
    display: none;
    overflow-x: auto;
    scrollbar-width: none;
/*    border-bottom: 1px solid var(--border); */
    background: var(--surface);
    margin: 0 -24px;
    padding: 0 24px;
}
.mobile-cats::-webkit-scrollbar { display: none; }
.mobile-cats-inner {
    display: flex;
    gap: 0;
    white-space: nowrap;
}

/* Modified section starts here */

@font-face {
    font-family: Roboto;
    font-style: italic;
    font-weight: 300;
    src: url('/fonts/Roboto-Italic.ttf');
}

@font-face {
    font-family: Roboto;
    font-style: normal;
    font-weight: 300;
    src: url('/fonts/Roboto-Regular.ttf');
}

@font-face {
    font-family: Roboto;
    font-style: normal;
    font-weight: 700;
    src: url('/fonts/Roboto-Bold.ttf');
}

.front-page-more-news {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 0;
    margin-top: 12px;
    min-height: 300px;
}

.front-page-more-news-main {
    padding-right: 32px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}

.front-page-more-news-card {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.front-page-more-news-card-img {
    aspect-ratio: 3/2;
    background: var(--bg2);
    margin-bottom: 14px;
    overflow: hidden;
    position: relative;
    width: 200px;
    flex-shrink: 0;
}

.front-page-more-news-card-content {
    flex: 1;
}


.front-page-more-news-sidebar {
    padding-left: 28px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

@media (max-width: 900px) {
    .front-page-more-news {
        grid-template-columns: 1fr;
    }
    .front-page-more-news-main {
        padding-right: 0;
        border-right: none;
    }
    .front-page-more-news-sidebar {
        padding-left: 0;
    }
}



.front-page-more-news-card:hover { color: var(--green); }
.front-page-more-news-card:hover .card-headline { color: var(--green); }
.front-page-more-news-card:hover .card-headline a { color: var(--green); }
.front-page-more-news-card:hover .card-summary { color: var(--green); }
.front-page-more-news-card:hover .card-summary a { color: var(--green); }

.read-more {
    font-size: 90%;
}


/* Body text */
.article-body {
    font-size: 17px;
    line-height: 1.78;
    color: var(--text);
}
.article-body p { margin-bottom: 22px; }
.article-body p:last-child { margin-bottom: 0; }

.article-headline {
    font-weight: 900;
    font-size: clamp(26px, 3.2vw, 36px);
    line-height: 1.12;
    letter-spacing: -0.4px;
    color: var(--text);
    margin-bottom: 18px;
}

.article-body h2 {
    font-weight: 700;
    font-size: 24px;
    line-height: 1.25;
    color: var(--text);
    margin: 36px 0 14px;
}

.article-body h3 {
    font-weight: 700;
    font-size: 19px;
    line-height: 1.3;
    color: var(--text);
    margin: 28px 0 10px;
}

.article-body ul, .article-body ol {
    margin-bottom: 12px;
    padding-left: 20px;
}
.article-body li {
    margin-bottom: 2px;
}


.article-page {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 0;
    margin-top: 12px;
    min-height: 300px;
}

.article-page-main {
    padding-right: 32px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}

.article-page-sidebar {
    padding-left: 28px;
    display: flex;
    flex-direction: column;
    gap: 0;
}


ul.archive {
    list-style: none;
    padding-left: 1rem;
    margin: 0;
}



.slogan span {
    display: inline-block;
    transform-origin: center bottom;
    animation: expand 0.2s ease-in-out both;
}

/* whitespace still needs width */
.slogan span.space {
    width: 0.3em;
}

@keyframes expand {
    0% {
        transform: scale(1);
        color: var(--text2);
    }
    50% {
        transform: scale(1.6);
        color: var(--green);
    }
    100% {
        transform: scale(1);
        color: var(--text2);
    }
}

.sample-ad-front-side {
    height: 200px;
    border: 1px solid #000;
    border-radius: 4px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}


.sample-ad-front-main {
    height: 80px;
    border: 1px solid #000;
    border-radius: 4px;
    padding: 5px;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.sample-ad-article-side {
    height: 200px;
    border: 1px solid #000;
    border-radius: 4px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}


/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }
    .hero-main {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding-bottom: 24px;
        margin-bottom: 24px;
    }
    .hero-sidebar {
        padding-left: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 24px;
    }
    .card-grid {
        grid-template-columns: 1fr 1fr;
    }
    .wide-grid {
        grid-template-columns: 1fr 1fr;
    }
    .wide-card:nth-child(2) { border-right: none; }
    .wide-card:nth-child(3) { border-top: 1px solid var(--border); }
    .wide-card:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }

    .sample-ad-front-side {
        display: none;
    }

    .sample-ad-front-main {
        display: flex;
    }

}

@media (max-width: 600px) {
    .nav-inner { gap: 12px; }
    .logo-slogan-wrap { gap: 12px; }
    .nav-cats { display: none; }
    .nav-cats-placeholder { display: block; }
    main { padding: 0 0 48px; }

    .hero-sidebar {
        grid-template-columns: 1fr;
    }
    .sidebar-story:last-child { border-bottom: 1px solid var(--border); padding-bottom: 18px; }

    .card-grid {
        grid-template-columns: 1fr;
    }
    .wide-grid {
        grid-template-columns: 1fr;
    }
    .wide-card { border-right: none; border-top: 1px solid var(--border); }
    .wide-card:first-child { border-top: none; }

    footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 0;
        width: 100%;
    }
    .footer-links { gap: 12px; }

    .datebar-edition { display: none; }


    .slogan {
        font-size: 0.8rem;
        color: var(--text);
    }

    .logo-slogan-wrap {
        display: flex;
        flex-direction: column;
        gap: 2px;
        line-height: 1;
    }
    .page-container { padding: 0 16px; }
    nav { margin: 0 -16px; padding: 0 16px; }
    .ticker { margin: 0 -16px; padding: 0 16px; }
    .mobile-cats {
        margin: 0 -16px;
        padding: 0 16px;
        display: block;
    }

    .front-page-more-news-sidebar {
        display: none;
    }
}

