﻿:root {
    --green: #005c2d;
    --green-2: #007a3d;
    --pale-green: #e8f5e8;
    --orange: #f59e0b;
    --navy: #071723;
    --text: #16221b;
    --muted: #65746c;
    --line: #e6e9e4;
    --bg: #fbfaf6;
    --card: #ffffff;
    --shadow: 0 10px 28px rgba(6, 51, 30, .09);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: Inter, Arial, sans-serif;
}
body.dark-mode {
    --bg: #071723;
    --card: #0d241b;
    --text: #eef7f1;
    --muted: #a7b8af;
    --line: rgba(255,255,255,.13);
    --shadow: 0 10px 28px rgba(0, 0, 0, .28);
    background: var(--bg);
    color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
    background: #fffdf8;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 30;
}
body.dark-mode .site-header,
body.dark-mode .admin-topbar {
    background: #0b1c16;
}
body.dark-mode .topbar,
body.dark-mode .mainnav,
body.dark-mode .admin-topbar,
body.dark-mode .admin-topbar h1,
body.dark-mode .top-links a,
body.dark-mode .language-select select,
body.dark-mode .icon-btn,
body.dark-mode .notify {
    color: #eef7f1;
}
body.dark-mode .card,
body.dark-mode .panel,
body.dark-mode .admin-card,
body.dark-mode .login-card,
body.dark-mode .social-login,
body.dark-mode .role-grid article {
    background: var(--card);
    color: var(--text);
}
body.dark-mode .breaking,
body.dark-mode .newsletter,
body.dark-mode .feature-art,
body.dark-mode .feature-media,
body.dark-mode .search-square,
body.dark-mode .outline-btn,
body.dark-mode .auth-tabs button,
body.dark-mode .auth-tabs a,
body.dark-mode .social-login a,
body.dark-mode .login-socials a {
    background: #10241d;
    color: var(--text);
}
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
    background: #0b1c16;
    color: var(--text);
    border-color: var(--line);
}
body.dark-mode .footer-logo-box {
    background: #fff;
}
body.dark-mode .article-main p {
    color: #d8e7df;
}
body.dark-mode .nav-links,
body.dark-mode .nav-links.open {
    background: #0b1c16;
}
body.dark-mode .section-title,
body.dark-mode .page-hero h1,
body.dark-mode .link-arrow,
body.dark-mode .panel-head a,
body.dark-mode .admin-btn,
body.dark-mode td a {
    color: #5ee08f;
}
.topbar, .mainnav, .page-wrap {
    max-width: 1600px;
    margin: 0 auto;
}
.topbar {
    height: 42px;
    padding: 0 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}
.weather-dot { color: var(--orange); padding: 0 10px; font-size: 18px; }
.top-links { display: flex; gap: 24px; align-items: center; }
.language-select select {
    border: 0;
    background: transparent;
    font: inherit;
    font-weight: 700;
    color: var(--navy);
}
.icon-btn { border: 0; background: transparent; font-size: 18px; cursor: pointer; }
.notify { position: relative; font-size: 18px; display: inline-grid; place-items: center; color: var(--navy); }
.notify.active i { color: var(--green); animation: notifyPulse 1.8s ease-in-out infinite; }
.notify b { position: absolute; top: -10px; right: -9px; background: var(--green); color: white; border-radius: 50%; font-size: 11px; min-width: 18px; height: 18px; display: grid; place-items: center; }
@keyframes notifyPulse {
    0%, 100% { transform: rotate(0deg); }
    20% { transform: rotate(-10deg); }
    40% { transform: rotate(10deg); }
}
.btn { padding: 11px 22px; border-radius: 6px; font-weight: 700; }
.btn.ghost { border: 1px solid var(--green); color: var(--green); }
.btn.solid, .newsletter button { background: var(--green); color: #fff; }

.mainnav {
    min-height: 88px;
    padding: 0 34px;
    display: flex;
    align-items: center;
    gap: 34px;
}
.brand img { width: 270px; height: 72px; object-fit: contain; object-position: left center; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: 42px; flex: 1; font-size: 15px; font-weight: 700; }
.nav-links a { padding: 12px 0; white-space: nowrap; }
.nav-links a.active, .nav-links a:hover { color: var(--green); }
.search-square {
    width: 54px;
    height: 46px;
    border: 1px solid var(--line);
    background: #fffaf1;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--green);
    font-size: 25px;
}
.mobile-toggle { display: none; border: 0; background: transparent; font-size: 30px; color: var(--green); }

.breaking {
    max-width: 1570px;
    margin: 0 auto 26px;
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--line);
    border-radius: 0 0 7px 7px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.breaking-label {
    background: var(--green);
    color: #fff;
    text-transform: uppercase;
    font-weight: 800;
    padding: 16px 26px;
    min-width: 160px;
}
.ticker-viewport { flex: 1; overflow: hidden; }
.ticker { display: inline-flex; gap: 48px; white-space: nowrap; padding: 0 22px; will-change: transform; }
.ticker.is-sliding { animation: breakingSlide 28s linear infinite; }
.ticker:hover { animation-play-state: paused; }
.ticker span::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--green); border-radius: 50%; margin-right: 24px; vertical-align: middle; }
.ticker-controls { display: flex; gap: 24px; color: var(--green); font-size: 18px; padding-right: 25px; }
@keyframes breakingSlide {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.page-wrap { padding: 0 16px; }

.home-grid {
    display: grid;
    grid-template-columns: 1.05fr 1.68fr .67fr .68fr;
    gap: 16px;
    align-items: start;
}
.right-rail {
    grid-column: 3 / 5;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-self: start;
}
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.section-title {
    margin: 0 0 12px;
    color: var(--green);
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 800;
}
.news-panel, .side-panel { padding: 14px; }
.lead-story {
    min-height: 232px;
    border-radius: 6px;
    padding: 22px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.82)), var(--story-image);
    background-size: cover;
    background-position: center;
}
.label {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 4px;
    background: var(--green);
    color: white;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
}
.label.orange { background: var(--orange); }
.lead-story h1 { font-size: 23px; line-height: 1.16; margin: 16px 0 10px; max-width: 500px; }
.meta { color: inherit; opacity: .88; font-size: 13px; display: flex; gap: 13px; align-items: center; }
.mini-list { display: grid; gap: 12px; margin-top: 14px; }
.mini-article { display: grid; grid-template-columns: 92px 1fr 20px; gap: 13px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.mini-article img { width: 92px; height: 64px; object-fit: cover; border-radius: 5px; }
.mini-article h3 { margin: 4px 0; font-size: 15px; line-height: 1.25; }
.save { color: var(--navy); opacity: .8; }
.outline-btn { width: 100%; height: 40px; border: 1px solid var(--green); background: white; color: var(--green); border-radius: 5px; font-weight: 800; margin-top: 10px; }

.spotlight-hero {
    position: relative;
    min-height: 248px;
    color: white;
    border-radius: 8px;
    overflow: hidden;
    background: #003f21;
}
.spotlight-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    background:
        linear-gradient(90deg, rgba(0, 92, 45, .98), rgba(0, 92, 45, .78) 45%, rgba(0,0,0,.05)),
        var(--spotlight-image);
    background-position: center right;
    background-size: cover;
    transition: opacity .7s ease;
    pointer-events: none;
}
.spotlight-slide.active { opacity: 1; pointer-events: auto; }
.spotlight-hero h2 { font-size: 25px; line-height: 1.2; max-width: 520px; margin: 12px 0 18px; }
.spotlight-dots {
    position: absolute;
    left: 18px;
    bottom: 12px;
    z-index: 2;
    display: flex;
    gap: 8px;
}
.spotlight-dots button {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.65);
    padding: 0;
}
.spotlight-dots button.active { width: 24px; background: white; }
.white-btn { display: inline-flex; gap: 12px; align-items: center; background: white; color: var(--green); border-radius: 5px; padding: 10px 16px; font-weight: 800; }
.feature-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    margin-top: 16px;
}
.feature-card {
    padding: 14px;
    min-height: 154px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 14px;
    align-items: center;
    overflow: hidden;
}
.feature-card > div:first-child {
    min-width: 0;
    display: flex;
    min-height: 116px;
    flex-direction: column;
    align-items: flex-start;
}
.feature-card .section-title { font-size: 17px; margin-bottom: 8px; }
.feature-card h3 {
    margin: 4px 0 10px;
    font-size: 16px;
    line-height: 1.25;
    max-width: 100%;
}
.feature-card .label,
.feature-card .link-arrow {
    margin-top: auto;
}
.feature-art { height: 118px; border-radius: 6px; background: linear-gradient(135deg, #fff4dc, #dff0e0); display: grid; place-items: center; font-size: 58px; color: var(--green); }
.feature-media {
    position: relative;
    width: 120px;
    height: 104px;
    border-radius: 6px;
    overflow: hidden;
    background: #e8f5e8;
    box-shadow: inset 0 0 0 1px var(--line);
}
.feature-media img,
.feature-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.feature-media.video-preview::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.36));
}
.feature-media.video-preview span {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    color: white;
    font-size: 38px;
    text-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.link-arrow { color: var(--green); font-weight: 800; }

.titbits-list { display: grid; }
.titbit { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.titbit i { font-size: 24px; color: var(--green); }
.titbit strong { display: block; font-weight: 500; }
.view-more { display: block; color: var(--green); text-align: center; font-weight: 800; margin-top: 12px; }
.trends { counter-reset: trend; display: grid; gap: 0; }
.trend { counter-increment: trend; display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); line-height: 1.35; font-size: 13px; }
.trend::before { content: counter(trend); width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #eaf4d6; color: var(--green); font-weight: 800; font-size: 12px; }
.ad-banner {
    margin-top: 0;
    min-height: 158px;
    padding: 22px;
    color: white;
    background: radial-gradient(circle at 80% 40%, rgba(255,255,255,.23), transparent 22%), linear-gradient(135deg, var(--green), #003f21);
}
.ad-banner.inline-ad {
    grid-column: 1 / -1;
    margin-top: 0;
    min-height: 166px;
    box-shadow: none;
}
.ad-banner h2 { margin: 0 0 8px; font-size: 30px; }
.ad-banner.inline-ad h2 { font-size: 24px; line-height: 1.12; }
.ad-banner.inline-ad p { font-size: 14px; line-height: 1.4; }
.ad-banner a { display: inline-block; background: var(--orange); color: white; border-radius: 5px; padding: 10px 18px; font-weight: 800; margin-top: 8px; }

.newsletter {
    margin-top: 14px;
    padding: 13px 26px;
    background: linear-gradient(90deg, #fbf2df, #fff);
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 28px;
    align-items: center;
    border-radius: 8px 8px 0 0;
}
.newsletter-title { display: flex; align-items: center; justify-content: center; gap: 20px; }
.newsletter-title i { font-size: 38px; color: var(--green); }
.newsletter-title span { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.newsletter form { display: grid; grid-template-columns: 1fr 190px; gap: 0; }
.newsletter input, .search-form input, .contact-form input, .contact-form textarea {
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px 0 0 6px;
    padding: 0 16px;
    font: inherit;
}
.newsletter button { border: 0; border-radius: 0 6px 6px 0; font-weight: 800; }
.form-message { grid-column: 1 / -1; display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }
.form-message.success { color: var(--green); }
.form-message.error { color: #b91c1c; }

.site-footer { background: linear-gradient(135deg, #006b36, #00391e); color: white; }
.footer-grid { max-width: 1780px; margin: 0 auto; padding: 32px 70px; display: grid; grid-template-columns: 1.6fr 1fr 1.1fr 1fr 1.25fr; gap: 42px; }
.footer-logo-box { width: 250px; background: white; border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; }
.footer-logo { width: 100%; }
.footer-grid h4 { margin: 0 0 12px; }
.footer-grid a, .footer-grid p { display: block; color: white; margin: 8px 0; }
.socials { display: flex; gap: 17px; font-size: 22px; margin-top: 16px; }
.copyright { text-align: center; padding: 15px; border-top: 1px solid rgba(255,255,255,.14); }

.page-hero { padding: 28px; margin-bottom: 22px; display: grid; gap: 6px; }
.page-hero h1 { margin: 0; color: var(--green); font-size: 34px; }
.content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article-card { overflow: hidden; }
.article-card .thumb { height: 190px; background: var(--story-image); background-size: cover; background-position: center; }
.article-card .body { padding: 18px; }
.article-card h2 { font-size: 20px; margin: 10px 0; }
.article-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; }
.article-main { padding: 28px; }
.article-main h1 { font-size: 40px; line-height: 1.1; margin: 12px 0; }
.article-image { height: 420px; border-radius: 8px; background: var(--story-image); background-size: cover; background-position: center; margin: 22px 0; }
.article-main p { font-size: 18px; line-height: 1.75; color: #26332b; }
.contact-form { display: grid; gap: 14px; }
.contact-form input, .contact-form textarea { border-radius: 6px; width: 100%; }
.contact-form textarea { min-height: 150px; padding-top: 12px; }
.contact-form button { height: 44px; border: 0; border-radius: 6px; background: var(--green); color: white; font-weight: 800; }
.auth-page {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 30px;
    padding: 28px;
    align-items: start;
}
.auth-page h1 { color: var(--green); margin-top: 0; }
.social-login {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    background: #fffdf8;
}
.social-login a {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px 14px;
    margin: 10px 0;
    font-weight: 800;
    background: white;
}
.social-login i { color: var(--green); font-size: 20px; }
.newsletter-inline { margin-top: 18px; }

@media (max-width: 1320px) {
    .topbar { padding: 0 22px; }
    .mainnav { padding: 0 22px; gap: 22px; }
    .brand img { width: 235px; }
    .nav-links { gap: 22px; font-size: 14px; }
    .home-grid { gap: 12px; }
    .right-rail { gap: 12px; }
    .feature-grid { gap: 12px; }
    .feature-card {
        min-height: 142px;
        grid-template-columns: minmax(0, 1fr) 104px;
        gap: 12px;
    }
    .feature-card > div:first-child { min-height: 104px; }
    .feature-card h3 { font-size: 15px; }
    .feature-media { width: 104px; height: 94px; }
    .spotlight-hero h2 { font-size: 22px; max-width: 440px; }
    .side-panel { padding: 12px; }
    .titbit, .trend { font-size: 12px; }
}

@media (min-width: 861px) and (max-width: 1080px) {
    .topbar { height: 38px; font-size: 12px; }
    .mainnav { min-height: 72px; gap: 14px; }
    .brand img { width: 185px; height: 58px; }
    .nav-links { gap: 14px; font-size: 12px; }
    .search-square { width: 42px; height: 40px; font-size: 19px; }
    .breaking { margin-bottom: 18px; }
    .breaking-label { min-width: 132px; padding: 13px 14px; font-size: 12px; }
    .ticker { gap: 28px; padding: 0 14px; font-size: 12px; }
    .ticker-controls { gap: 14px; padding-right: 14px; }
    .page-wrap { padding: 0 10px; }
    .home-grid {
        grid-template-columns: 1.02fr 1.45fr .72fr .72fr;
        gap: 10px;
    }
    .right-rail {
        grid-column: 3 / 5;
        gap: 10px;
    }
    .news-panel, .side-panel { padding: 10px; }
    .section-title { font-size: 13px; margin-bottom: 8px; }
    .lead-story { min-height: 178px; padding: 14px; }
    .lead-story h1 { font-size: 16px; }
    .label { font-size: 9px; padding: 4px 7px; }
    .meta { font-size: 10px; gap: 7px; }
    .mini-list { gap: 9px; margin-top: 10px; }
    .mini-article {
        grid-template-columns: 58px 1fr;
        gap: 8px;
        padding-bottom: 9px;
    }
    .mini-article img { width: 58px; height: 44px; }
    .mini-article h3 { font-size: 11px; }
    .mini-article .save { display: none; }
    .outline-btn { height: 34px; font-size: 12px; }
    .spotlight-hero { min-height: 178px; }
    .spotlight-slide { padding: 14px; }
    .spotlight-hero h2 { font-size: 16px; max-width: 260px; margin: 8px 0 10px; }
    .white-btn { padding: 8px 10px; font-size: 11px; }
    .feature-grid { gap: 10px; margin-top: 10px; }
    .feature-card {
        min-height: 112px;
        padding: 10px;
        grid-template-columns: minmax(0, 1fr) 68px;
        gap: 8px;
    }
    .feature-card > div:first-child { min-height: 88px; }
    .feature-card .section-title { font-size: 12px; }
    .feature-card h3 { font-size: 11px; line-height: 1.2; margin: 5px 0 7px; }
    .feature-card .label { font-size: 8px; padding: 3px 6px; }
    .feature-media { width: 68px; height: 68px; }
    .link-arrow { font-size: 11px; }
    .titbit {
        grid-template-columns: 24px 1fr;
        gap: 7px;
        padding: 8px 0;
        font-size: 10px;
    }
    .titbit i { font-size: 18px; }
    .trend {
        grid-template-columns: 22px 1fr;
        gap: 7px;
        padding: 8px 0;
        font-size: 10px;
    }
    .trend::before {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
    .view-more { font-size: 11px; margin-top: 8px; }
    .ad-banner.inline-ad {
        min-height: 134px;
        padding: 16px;
    }
    .ad-banner.inline-ad h2 { font-size: 18px; }
    .ad-banner.inline-ad p { font-size: 11px; }
    .ad-banner a { padding: 8px 12px; font-size: 11px; }
    .newsletter { padding: 12px 16px; }
    .newsletter-title { gap: 12px; }
    .newsletter-title i { font-size: 28px; }
}

@media (max-width: 860px) {
    .home-grid { grid-template-columns: 1fr 1fr; }
    .right-rail {
        grid-column: auto;
        grid-template-columns: 1fr 1fr;
    }
    .ad-banner, .ad-banner.inline-ad { grid-column: auto; }
    .right-rail .ad-banner.inline-ad { grid-column: 1 / -1; }
    .content-grid, .article-layout { grid-template-columns: 1fr 1fr; }
    .nav-links { gap: 20px; font-size: 14px; }
}
@media (max-width: 860px) {
    .topbar { display: none; }
    .mainnav { padding: 12px 18px; min-height: auto; justify-content: space-between; }
    .brand img { width: 220px; height: 72px; }
    .mobile-toggle { display: block; }
    .nav-links { display: none; position: absolute; top: 96px; left: 0; right: 0; background: white; padding: 18px; box-shadow: var(--shadow); flex-direction: column; align-items: flex-start; }
    .nav-links.open { display: flex; }
    .search-square { width: 48px; }
    .breaking { margin: 0 10px 18px; }
    .breaking-label { min-width: 132px; padding: 14px; font-size: 12px; }
    .ticker-controls { display: none; }
    .home-grid, .feature-grid, .newsletter, .footer-grid, .content-grid, .article-layout { grid-template-columns: 1fr; }
    .right-rail { grid-template-columns: 1fr; }
    .right-rail .ad-banner.inline-ad { grid-column: auto; }
    .page-wrap { padding: 0 12px; }
    .mini-article { grid-template-columns: 92px 1fr 18px; }
    .mini-article img { width: 92px; height: 64px; }
    .spotlight-hero h2, .article-main h1 { font-size: 28px; }
    .feature-card {
        grid-template-columns: minmax(0, 1fr) 112px;
        gap: 12px;
        min-height: 136px;
    }
    .feature-card > div:first-child { min-height: 104px; }
    .feature-media { width: 112px; height: 96px; }
    .newsletter form { grid-template-columns: 1fr; gap: 8px; }
    .newsletter input, .newsletter button { border-radius: 6px; }
    .footer-grid { padding: 28px; }
    .auth-page { grid-template-columns: 1fr; }
}

@media (max-width: 1500px) {
    .top-links { gap: 12px; }
}

.admin-body {
    background: #fbfaf6;
    display: grid;
    grid-template-columns: 286px 1fr;
    min-height: 100vh;
}
.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
    color: white;
    padding: 28px 16px;
    background: linear-gradient(180deg, #006131, #003c20);
}
.admin-logo-box { display: block; background: white; border-radius: 8px; padding: 8px 10px; }
.admin-logo img { width: 230px; }
.admin-logo > span:last-child { display: block; font-size: 11px; margin-left: 54px; margin-top: 6px; }
.admin-profile { display: flex; gap: 14px; align-items: center; margin: 30px 0 18px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: #d6b18a; display: grid; place-items: center; font-weight: 800; color: var(--navy); }
.admin-profile span { display: block; color: #d8f5df; font-size: 12px; margin-top: 6px; }
.admin-profile i { display: inline-block; width: 8px; height: 8px; background: #22c55e; border-radius: 50%; margin-right: 6px; }
.admin-search { border: 1px solid rgba(255,255,255,.24); border-radius: 8px; padding: 12px; color: #d8f5df; font-size: 13px; display: flex; justify-content: space-between; }
.admin-search kbd { color: white; font: inherit; }
.admin-sidebar nav { display: grid; gap: 4px; margin-top: 16px; }
.admin-sidebar nav a { display: flex; align-items: center; gap: 14px; padding: 13px 10px; border-radius: 6px; font-weight: 600; }
.admin-sidebar nav a:hover, .admin-sidebar nav a:first-child { background: rgba(255,255,255,.14); }
.admin-sidebar nav i { font-size: 19px; }
.admin-main { min-width: 0; }
.admin-topbar {
    height: 74px;
    border-bottom: 1px solid var(--line);
    background: #fffdf8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}
.admin-topbar > div:first-child { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center; }
.admin-menu { border: 0; background: transparent; font-size: 28px; grid-row: span 2; cursor: pointer; }
.admin-topbar h1 { margin: 0; font-size: 18px; }
.admin-topbar p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.admin-actions { display: flex; gap: 22px; align-items: center; }
.admin-actions img { width: 182px; height: 50px; object-fit: contain; }
.flag { color: var(--green); font-weight: 900; letter-spacing: 4px; }
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    padding: 22px 24px 16px;
}
.dashboard-cards.analytics-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.admin-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 18px;
}
.admin-card div { min-width: 0; }
.admin-card i { width: 58px; height: 58px; border-radius: 14px; background: var(--pale-green); color: var(--green); display: grid; place-items: center; font-size: 27px; }
.admin-card span, .admin-card small { color: var(--muted); font-size: 12px; }
.admin-card strong { display: block; font-size: 24px; line-height: 1.15; margin: 7px 0; word-break: break-word; }
.admin-card small { color: var(--green); }
.admin-card small.down { color: #dc2626; }
.admin-grid {
    padding: 0 24px 28px;
    display: grid;
    grid-template-columns: 1.45fr .95fr .7fr;
    gap: 18px;
}
.panel {
    background: white;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 18px;
}
.panel.wide { grid-column: span 2; }
.panel h2 { margin: 0 0 14px; font-size: 17px; }
.panel-head { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 10px; }
.panel-head a, .admin-btn { color: var(--green); font-weight: 800; }
.line-chart { height: 230px; display: flex; align-items: end; gap: 28px; border-bottom: 1px solid var(--line); padding: 16px 18px 0; background: repeating-linear-gradient(to top, transparent, transparent 44px, #eef1ed 45px); }
.line-chart span { flex: 1; max-width: 42px; border-radius: 9px 9px 0 0; background: linear-gradient(#008545, #97c56f); }
.donut { width: 150px; height: 150px; margin: 10px auto; border-radius: 50%; background: conic-gradient(#006b36 0 38%, #73b86c 38% 56%, #9ca3af 56% 71%, #f59e0b 71% 88%, #9a650b 88%); position: relative; }
.donut::after { content: ""; position: absolute; inset: 45px; background: white; border-radius: 50%; }
.legend { list-style: square; color: var(--muted); line-height: 2; }
.quick-actions { display: grid; gap: 12px; }
.quick-actions a { color: var(--green); font-weight: 700; }
.quick-actions a::before { content: "â†—"; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 12px; background: var(--green); color: white; border-radius: 4px; font-size: 12px; }
.admin-list { display: grid; }
.admin-list a { padding: 12px 0; border-bottom: 1px solid var(--line); }
.admin-list span { display: block; font-weight: 700; }
.admin-list small { color: var(--muted); }
.storage { height: 10px; background: #e5e7eb; border-radius: 10px; overflow: hidden; }
.storage span { display: block; width: 45%; height: 100%; background: var(--green); }
.storage + p strong { color: var(--green); }
.panel button, .admin-form button, .login-card button { border: 0; border-radius: 6px; background: var(--green); color: white; font-weight: 800; padding: 12px 18px; }
.admin-footer { display: flex; justify-content: space-between; padding: 18px 30px; color: var(--muted); border-top: 1px solid var(--line); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 14px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; }
td a { color: var(--green); font-weight: 800; }
.status { background: #fff1cf; color: #a46000; border-radius: 14px; padding: 5px 10px; font-size: 12px; }
.admin-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 15px; }
.admin-form label { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.admin-form input, .admin-form select, .admin-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px;
    font: inherit;
}
.admin-form.single { grid-template-columns: 1fr; }
.inline-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.inline-actions button { padding: 7px 9px; font-size: 12px; }
.admin-form textarea, .admin-form button, .admin-form.danger { grid-column: 1 / -1; }
.admin-form.danger { grid-template-columns: 180px 180px; }
.admin-form.danger button { background: #b91c1c; }
.role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.role-grid article { border: 1px solid var(--line); border-radius: 8px; padding: 16px; background: #fffdf8; }
.role-grid h3 { margin: 0 0 8px; color: var(--green); }
.empty-state { border: 1px dashed var(--line); border-radius: 8px; padding: 34px; text-align: center; color: var(--muted); }
.empty-state i { color: var(--green); font-size: 42px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.media-card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fffdf8; }
.media-card img, .media-thumb { width: 100%; height: 150px; object-fit: cover; background: #e8f5e8; display: grid; place-items: center; color: var(--green); font-size: 48px; }
.media-card div { padding: 12px; display: grid; gap: 6px; }
.media-card span { color: var(--muted); font-size: 12px; }
.media-card code { font-size: 11px; color: var(--green); white-space: normal; }
.notice { border: 1px solid var(--line); background: var(--pale-green); color: var(--green); border-radius: 6px; padding: 12px; }
.workflow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.workflow-grid article { border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: grid; gap: 8px; background: #fffdf8; }
.workflow-grid span { color: var(--muted); }
.site-section-grid article a { margin-top: 10px; display: inline-block; }
.login-body { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, #004d29, #fffdf8); }
.login-card { width: min(420px, calc(100% - 28px)); background: white; border-radius: 14px; box-shadow: var(--shadow); padding: 28px; display: grid; gap: 14px; }
.login-card img { width: 260px; margin: 0 auto; }
.login-card h1 { text-align: center; color: var(--green); margin: 0; }
.login-card input, .login-card select { height: 44px; border: 1px solid var(--line); border-radius: 6px; padding: 0 12px; font: inherit; }
.login-card p { color: var(--muted); font-size: 13px; text-align: center; margin: 0; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.auth-tabs button, .auth-tabs a {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: white;
    padding: 10px;
    text-align: center;
    font-weight: 800;
    color: var(--green);
}
.auth-tabs span {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    font-weight: 800;
    color: var(--muted);
}
.auth-tabs .active { background: var(--green); color: white; }
.login-socials { display: grid; gap: 8px; }
.login-socials a {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px;
    font-weight: 800;
    text-align: center;
}
.admin-url-note { margin-top: 12px; color: var(--green); font-weight: 800; }
.notice.error { background: #fee2e2; color: #991b1b; }
.ad-slot {
    max-width: 1508px;
    margin: 12px auto;
    min-height: 76px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    background: #fffdf8;
    color: var(--muted);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 12px;
}
.ad-slot:empty,
.ad-slot ins {
    width: 100%;
    min-height: 76px;
    display: block;
}
.ad-slot-footer { margin-top: 0; }
.cookie-banner {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 80;
    max-width: 920px;
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow);
    padding: 14px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}
.cookie-banner[hidden] { display: none; }
.cookie-copy { display: grid; gap: 7px; }
.cookie-copy strong { color: var(--green); font-size: 18px; }
.cookie-copy span { color: var(--ink); line-height: 1.45; }
.cookie-copy small { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-copy a { color: var(--green); font-weight: 800; }
.cookie-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-top: 8px; }
.cookie-settings label { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink); }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cookie-banner button {
    border: 1px solid var(--green);
    border-radius: 6px;
    padding: 8px 12px;
    background: white;
    color: var(--green);
    font-weight: 800;
}
.cookie-banner button:first-child,
.cookie-banner button[data-cookie-save] { background: var(--green); color: white; }
.permission-form { display: grid; gap: 8px; }
.permission-form label { color: var(--ink); font-size: 13px; }
.permission-form .admin-btn { margin-top: 8px; justify-self: start; }
.inline-actions { display: inline-flex; gap: 6px; margin-left: 8px; flex-wrap: wrap; }
.inline-actions button {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: white;
    color: var(--green);
    padding: 5px 8px;
    font-weight: 800;
}

@media (max-width: 1200px) {
    .admin-body { grid-template-columns: 1fr; }
    .admin-sidebar { position: fixed; inset: 0 auto 0 0; width: 286px; transform: translateX(-100%); transition: .2s ease; z-index: 50; }
    .admin-sidebar.open { transform: translateX(0); }
    .dashboard-cards { grid-template-columns: repeat(2, 1fr); }
    .dashboard-cards.analytics-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-grid { grid-template-columns: 1fr; }
    .panel.wide { grid-column: auto; }
}
@media (max-width: 700px) {
    .dashboard-cards, .admin-form { grid-template-columns: 1fr; }
    .workflow-grid { grid-template-columns: 1fr; }
    .admin-topbar { height: auto; padding: 14px; align-items: start; gap: 12px; }
    .admin-actions { gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
    .admin-actions img { width: 130px; }
    .cookie-banner { grid-template-columns: 1fr; left: 10px; right: 10px; bottom: 10px; }
    .cookie-actions { justify-content: stretch; }
    .cookie-actions button { flex: 1 1 100%; }
    .cookie-settings { grid-template-columns: 1fr; }
}

.article-editor-form { grid-template-columns: 1fr 260px; align-items: start; }
.article-editor-form .wide-editor,
.article-editor-form .editor-details,
.article-editor-form > label,
.article-editor-form > textarea,
.article-editor-form > button { grid-column: 1 / -1; }
.wide-editor textarea { min-height: 520px; line-height: 1.65; resize: vertical; }
.editor-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 10px; }
.editor-toolbar button,
.media-picker button,
.editor-details summary {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fffdf8;
    color: var(--green);
    font-weight: 800;
    padding: 9px 12px;
    cursor: pointer;
}
.editor-details { border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #fffdf8; }
.editor-details + .editor-details { margin-top: 10px; }
.media-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin-top: 12px; }
@media (max-width: 700px) { .article-editor-form { grid-template-columns: 1fr; } }

/* Targeted production content fixes */
.article-featured-image { margin: 18px 0; overflow: hidden; border-radius: 8px; }
.article-featured-image img { display: block; width: 100%; height: auto; object-fit: cover; }
.article-content { line-height: 1.75; color: inherit; }
.article-content h2, .article-content h3, .article-content h4 { margin: 1.2em 0 .45em; color: var(--green, #006b3f); }
.article-content p, .article-content ul, .article-content ol, .article-content blockquote, .article-content figure { margin: 0 0 1rem; }
.article-content ul, .article-content ol { padding-left: 1.4rem; }
.article-content blockquote { border-left: 4px solid #006b3f; padding: .8rem 1rem; background: rgba(0,107,63,.06); border-radius: 6px; }
.article-content img, .article-content video { max-width: 100%; height: auto; border-radius: 8px; }
.article-content figcaption { font-size: .9rem; color: #65746c; margin-top: .35rem; }
.responsive-video { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 18px 0; overflow: hidden; border-radius: 8px; background: #08160f; }
.responsive-video iframe, .responsive-video video { width: 100%; height: 100%; border: 0; display: block; object-fit: contain; }
.video-play { position: absolute; inset: auto 12px 12px auto; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: rgba(0, 107, 63, .92); color: #fff; }
.admin-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.admin-tabs a { border: 1px solid rgba(0,107,63,.18); border-radius: 8px; padding: 8px 12px; color: #005f38; text-decoration: none; }
.admin-tabs a.active { background: #006b3f; color: #fff; }
.action-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inline-form { display: inline; margin: 0; }
.inline-form button { border: 0; background: transparent; color: #006b3f; cursor: pointer; padding: 0; font: inherit; }
.inline-form .danger-link, .danger-link { color: #b42318; }
.admin-search { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 12px 0 18px; }
.admin-search input, .admin-search select { min-width: 220px; }
.media-preview { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: #08160f; }
.media-actions { margin-top: 6px; }
.market-filter-card { margin-bottom: 18px; }
.business-contact-card { display: grid; gap: 12px; align-content: start; }
.business-contact-card a { color: #005f38; text-decoration: none; font-weight: 700; }

/* Admin layout repair: keep sidebar and content in fixed grid positions */
body.admin-body {
    display: grid;
    grid-template-columns: 286px minmax(0, 1fr);
    align-items: start;
    direction: ltr;
    overflow-x: hidden;
}
body.admin-body .admin-sidebar {
    grid-column: 1;
    grid-row: 1;
    width: 286px;
    max-width: 286px;
    min-width: 286px;
    box-sizing: border-box;
}
body.admin-body .admin-main {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}
body.admin-body .admin-logo-box,
body.admin-body .admin-search,
body.admin-body .admin-sidebar nav {
    width: 100%;
    box-sizing: border-box;
}
body.admin-body .panel {
    max-width: 100%;
    box-sizing: border-box;
}
@media (max-width: 1200px) {
    body.admin-body {
        display: block;
    }
    body.admin-body .admin-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: 286px;
        max-width: 286px;
        min-width: 286px;
        transform: translateX(-100%);
        transition: .2s ease;
        z-index: 50;
    }
    body.admin-body .admin-sidebar.open {
        transform: translateX(0);
    }
    body.admin-body .admin-main {
        width: 100%;
        margin-left: 0;
    }
}

/* Media library and picker functional controls */
.media-picker-box { border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: rgba(0,107,63,.03); }
.field-help { margin: 6px 0; color: var(--muted); font-size: 12px; font-weight: 700; }
.selected-media-preview { min-height: 64px; border: 1px dashed rgba(0,107,63,.25); border-radius: 8px; margin-top: 8px; display: grid; place-items: center; overflow: hidden; background: rgba(255,255,255,.5); }
.selected-media-preview:empty::before { content: 'No media selected'; color: var(--muted); font-size: 12px; }
.selected-media-preview img, .selected-media-preview video { width: 100%; max-height: 220px; object-fit: contain; display: block; }
.media-library-grid .media-card { align-items: start; }
.media-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.media-actions button { border: 1px solid rgba(0,107,63,.2); background: #fff; color: var(--green); border-radius: 6px; padding: 6px 9px; font-weight: 800; cursor: pointer; }
.compact-form { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 10px; }
.compact-form textarea { min-height: 70px; }

.lead-excerpt { margin: 0.55rem 0 0; color: rgba(255,255,255,0.9); font-size: 0.95rem; line-height: 1.45; max-width: 92%; }
body.dark-mode .lead-excerpt { color: rgba(255,255,255,0.88); }


.sticky-editor-actions {
    grid-column: 1 / -1;
    position: sticky;
    top: 76px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(0,107,63,.16);
    border-radius: 8px;
    background: rgba(255,253,248,.96);
    box-shadow: 0 8px 20px rgba(0,0,0,.06);
}
.sticky-editor-actions button { width: auto; min-width: 160px; margin: 0; }
body.dark-mode .sticky-editor-actions { background: rgba(8,22,15,.96); }

