:root {
    --ink: #111827;
    --muted: #667085;
    --line: #e5e7eb;
    --paper: #ffffff;
    --bg: #f5f7fb;
    --brand: #116149;
    --brand-dark: #0f2f2a;
    --accent: #d61f3c;
    --gold: #c98b1e;
    --shadow: 0 18px 45px rgba(16, 24, 40, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fafc 34%, var(--bg) 100%);
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.site-header,
.admin-header {
    background: #0b1f1c;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav,
.admin-header {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1180px;
    padding: 18px 24px;
}

.brand {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.brand span {
    color: #f3c45c;
}

.auth-card .brand,
.setup-card .brand {
    color: var(--brand-dark);
}

.auth-card .brand span,
.setup-card .brand span {
    color: var(--accent);
}

.nav-links,
.admin-header nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.nav-links {
    flex: 1 1 auto;
    min-width: 220px;
}

.search-form,
.error-search-form {
    align-items: center;
    display: inline-flex;
    flex: 0 1 420px;
    flex-wrap: nowrap;
    gap: 10px;
    margin-left: 12px;
    min-width: 240px;
}

.search-form .btn,
.error-search-form .btn {
    border-radius: 999px;
    padding: 10px 16px;
    white-space: nowrap;
}

.search-input {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    color: var(--ink);
    font-size: 0.95rem;
    padding: 10px 14px;
    width: 220px;
    min-width: 0;
    max-width: 100%;
}

.menu-toggle {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.78);
    cursor: pointer;
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
}

.menu-toggle span {
    background: rgba(255, 255, 255, 0.78);
    display: block;
    height: 2px;
    width: 24px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: contents;
}

@media (max-width: 820px) {
    .nav {
        align-items: flex-start;
        flex-direction: row;
        gap: 14px;
        flex-wrap: nowrap;
    }

    .brand {
        text-align: left;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #0b1f1c;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        flex-direction: column;
        gap: 14px;
        padding: 14px 24px;
        z-index: 20;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        justify-content: flex-start;
        width: 100%;
        margin: 0;
    }

    .search-form,
    .error-search-form {
        margin-left: 0;
        width: 100%;
        flex-wrap: wrap;
    }

    .search-input {
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
    }

    .search-form .btn,
    .error-search-form .btn {
        flex: 0 0 auto;
        align-self: flex-start;
    }

    .privacy-link {
        margin-left: 0;
        text-align: left;
    }
}

.nav-links a {
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 8px 10px;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.privacy-link {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 0;
    border-radius: 0;
    margin-left: auto;
    transition: color 0.2s ease;
}

.privacy-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
    background: none;
}

main {
    margin: 0 auto;
    max-width: 1180px;
    padding: 0 24px;
}

.hero {
    align-items: stretch;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    padding: 64px 0 28px;
}

.hero-copy {
    align-self: center;
}

.eyebrow {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin: 0 0 10px;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    line-height: 1.1;
    margin: 0;
}

.hero h1 {
    font-size: clamp(2.3rem, 5vw, 4.9rem);
    letter-spacing: 0;
    max-width: 760px;
}

.hero h1::after {
    background: linear-gradient(90deg, var(--accent), var(--gold), var(--brand));
    border-radius: 999px;
    content: "";
    display: block;
    height: 6px;
    margin-top: 20px;
    width: 150px;
}

.hero-copy p:last-child {
    color: #475467;
    font-size: 1.08rem;
    max-width: 650px;
}

.featured-post,
.post-card,
.side-panel,
.auth-card,
.setup-card,
.table-wrap,
.editor-form {
    background: var(--paper);
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.featured-post {
    overflow: hidden;
    position: relative;
}

.featured-post::before {
    background: #0b1f1c;
    color: #fff;
    content: "Featured";
    font-size: 0.75rem;
    font-weight: 900;
    left: 16px;
    letter-spacing: 0.08em;
    padding: 7px 10px;
    position: absolute;
    text-transform: uppercase;
    top: 16px;
    z-index: 1;
}

.featured-post img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    width: 100%;
}

.featured-post div {
    padding: 24px;
}

.featured-post h2 {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    margin-bottom: 10px;
}

.post-meta {
    color: #667085;
    font-size: 0.85rem;
    font-weight: 800;
    margin: 0 0 8px;
}

.ad-slot {
    align-items: center;
    background: #ffffff;
    border: 1px dashed #b8c2cc;
    border-radius: 8px;
    color: #475569;
    display: flex;
    font-size: 0.9rem;
    font-weight: 800;
    justify-content: center;
    min-height: 250px;
    padding: 18px;
    text-align: center;
}

.ad-image {
    overflow: hidden;
    padding: 0;
}

.ad-image img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.ad-video {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.ad-code {
    display: block;
    overflow: hidden;
}

.ad-wide {
    margin: 24px 0;
    min-height: 90px;
}

.ad-slot {
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: #475569;
    display: flex;
    flex-direction: column;
    font-size: 0.95rem;
    gap: 8px;
    justify-content: center;
    min-height: 220px;
    padding: 20px;
    text-align: center;
}

.ad-badge {
    background: #0b1f1c;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 6px 10px;
    text-transform: uppercase;
}

.ad-placeholder strong {
    font-size: 1rem;
}

.ad-placeholder p {
    color: #64748b;
    margin: 0;
    max-width: 260px;
}

.editorial-intro,
.article-support {
    background: linear-gradient(135deg, rgba(17, 97, 73, 0.06), rgba(214, 31, 60, 0.05));
    border: 1px solid rgba(17, 97, 73, 0.12);
    border-radius: 18px;
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    margin: 0 0 28px;
    padding: 26px;
}

.intro-copy h2,
.support-copy h2 {
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    margin-bottom: 10px;
}

.intro-copy p,
.support-copy p {
    color: #475467;
    margin: 0;
}

.intro-grid {
    display: grid;
    gap: 14px;
}

.intro-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(17, 24, 39, 0.06);
    border-radius: 12px;
    padding: 16px 18px;
}

.intro-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.intro-card p {
    color: #475467;
    font-size: 0.95rem;
    margin: 0;
}

.support-list {
    color: #0f172a;
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.support-list li {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(17, 24, 39, 0.06);
    border-radius: 10px;
    padding: 10px 12px;
}

.breadcrumbs {
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.breadcrumbs a {
    color: var(--brand);
    font-weight: 700;
}

.cookie-banner {
    background: #0f172a;
    bottom: 0;
    color: #ffffff;
    left: 0;
    padding: 16px 24px;
    position: fixed;
    width: 100%;
    z-index: 50;
}

.cookie-banner p {
    margin: 0 0 10px;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-actions button {
    background: #ffffff;
    border: 0;
    border-radius: 999px;
    color: #0f172a;
    cursor: pointer;
    font-weight: 700;
    padding: 8px 14px;
}

.cookie-actions button:last-child {
    background: #e2e8f0;
}


.content-grid,
.article-layout {
    display: grid;
    gap: 30px;
    grid-template-columns: minmax(0, 1fr) 320px;
    padding: 18px 0 56px;
}

.section-heading {
    margin-bottom: 18px;
}

.section-heading h2,
.section-heading h1 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.post-list {
    display: grid;
    gap: 18px;
}

.post-card {
    display: grid;
    gap: 0;
    grid-template-columns: 260px minmax(0, 1fr);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover,
.featured-post:hover {
    box-shadow: 0 24px 55px rgba(16, 24, 40, 0.13);
    transform: translateY(-2px);
}

.post-card img {
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    width: 100%;
}

.post-card-body {
    padding: 22px;
}

.post-card h3 {
    font-size: 1.45rem;
    margin-bottom: 10px;
}

.post-card h3 a:hover,
.featured-post h2 a:hover {
    color: var(--brand);
}

.post-card p {
    color: var(--muted);
}

.read-more,
.actions a {
    color: var(--brand);
    font-weight: 900;
}

.sidebar {
    display: grid;
    align-content: start;
    gap: 20px;
}

.side-panel {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.side-panel h2 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.side-panel p {
    color: #475467;
    margin: 0;
}

.ad-slot {
    width: 100%;
    min-height: 260px;
}

.ad-slot.ad-placeholder {
    padding: 18px;
}

.mini-post {
    display: block;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
}

.mini-post span {
    color: var(--accent);
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.side-panel > a:not(.mini-story-card) {
    border-top: 1px solid var(--line);
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
}

.side-panel > a:not(.mini-story-card).active,
.side-panel > a:not(.mini-story-card):hover {
    color: var(--brand);
}

.mini-story-card {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 14px;
    align-items: start;
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 16px;
    padding: 14px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-story-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(16, 24, 40, 0.1);
}

.mini-story-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    object-fit: cover;
}

.mini-story-body {
    padding: 0;
}

.mini-story-meta {
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.mini-story-card h3 {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.3;
}

.mini-story-card p {
    color: #475467;
    margin: 0;
}

.article-main {
    background: var(--paper);
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 8px;
    padding: clamp(22px, 4vw, 42px);
}

.article-main h1 {
    font-size: clamp(2rem, 5vw, 4rem);
}

.error-page {
    align-items: center;
    display: grid;
    justify-content: center;
    min-height: calc(100vh - 130px);
    padding: 40px 20px;
}

.error-card {
    background: var(--paper);
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 24px;
    box-shadow: var(--shadow);
    max-width: 720px;
    padding: 48px 34px;
    text-align: center;
}

.error-card h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin-bottom: 18px;
}

.error-card p {
    color: #475467;
    font-size: 1rem;
    line-height: 1.8;
    margin: 0 0 24px;
}

.error-card .btn {
    min-width: 220px;
}

.error-links {
    display: grid;
    gap: 24px;
    margin-top: 30px;
    text-align: left;
}

.error-links h2 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.error-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.error-links li {
    margin-bottom: 10px;
}

.error-links a {
    color: var(--brand);
    font-weight: 700;
}

.error-category-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.error-category-grid a {
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 12px;
    display: block;
    padding: 12px 14px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.error-category-grid a:hover {
    background: rgba(17, 97, 73, 0.06);
    border-color: rgba(17, 97, 73, 0.18);
}

.error-category-grid a span {
    color: var(--muted);
    display: block;
    font-size: 0.85rem;
    margin-top: 4px;
}

.article-image {
    aspect-ratio: 16 / 8;
    border-radius: 8px;
    margin: 26px 0;
    object-fit: cover;
    width: 100%;
}

.in-body-image {
    display: block;
    margin: 18px auto;
    max-width: 86%;
    border-radius: 8px;
}

.post-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-top: 18px;
}

.post-gallery figure {
    margin: 0;
    width: calc(33% - 14px);
    max-width: 280px;
}

.gallery-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    object-fit: cover;
}

@media (max-width: 900px) {
    .post-gallery figure {
        width: calc(50% - 12px);
    }
}

@media (max-width: 640px) {
    .post-gallery figure {
        width: 100%;
    }
}

.article-body {
    color: #243041;
    font-size: 1.08rem;
}

.comment-section {
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 10px;
    margin-top: 32px;
    padding: 24px;
}

.comment-header {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.comment-summary {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
}

.privacy-note {
    color: #475467;
    font-size: 0.95rem;
    margin-bottom: 18px;
}

.comment-list {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.comment-card {
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 12px;
    padding: 18px;
    background: #f8fafc;
}

.comment-meta {
    align-items: center;
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--muted);
}

.comment-meta strong {
    color: var(--ink);
}

.comment-card p {
    margin: 0;
    white-space: pre-wrap;
}

.comment-form {
    display: grid;
    gap: 16px;
}

.comment-form label {
    font-weight: 800;
}

.comment-form textarea,
.comment-form input {
    background: #f8fafc;
}

.comment-form textarea {
    min-height: 130px;
}

.highlight-box {
    border-top: 1px solid var(--line);
    margin-top: 28px;
    padding-top: 24px;
}

.video-frame {
    aspect-ratio: 16 / 9;
    background: #0f172a;
    border-radius: 8px;
    overflow: hidden;
}

.video-frame iframe {
    border: 0;
    height: 100%;
    width: 100%;
}

.site-footer {
    background: #0b1f1c;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    padding: 32px 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
}

.footer-brand {
    max-width: 360px;
}

.footer-brand h2 {
    font-size: 1.2rem;
    margin: 0 0 10px;
}

.site-footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.site-footer .footer-links a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
}

.site-footer .footer-links a:hover {
    color: #f3c45c;
}

.site-footer .footer-note {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.95rem;
    margin: 0;
    width: 100%;
}

@media (max-width: 720px) {
    .site-footer {
        justify-content: center;
        text-align: center;
    }

    .footer-brand {
        max-width: 100%;
    }
}

.trending-section,
.category-showcase {
    margin: 0 0 34px;
}

.trending-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 80vw);
    gap: 18px;
    overflow-x: auto;
    padding: 10px 18px 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-padding-left: 18px;
}

@media (min-width: 1400px) {
    .trending-grid {
        grid-auto-flow: row;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        overflow-x: visible;
        padding-left: 0;
    }
}

.category-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.trend-card,
.category-card,
.mini-story-card {
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    color: inherit;
}

.trend-card,
.category-card,
.mini-story-card {
    scroll-snap-align: start;
}

.trend-card:hover,
.category-card:hover,
.mini-story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 55px rgba(16, 24, 40, 0.16);
}

.trend-card img,
.category-card img,
.mini-story-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.card-body,
.mini-story-body {
    padding: 18px;
}

.card-meta,
.mini-story-meta {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.category-card h3,
.mini-story-card h3,
.mini-story-card h3 {
    font-size: 1.2rem;
    margin: 0 0 8px;
}

.category-card p,
.mini-story-card p {
    color: #475467;
    margin: 0;
}

.mini-story-card {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 14px;
    align-items: start;
    padding: 16px;
}

.mini-story-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    flex-shrink: 0;
}

.mini-story-body {
    padding: 0;
}

.mini-story-card h3 {
    font-size: 1rem;
    margin: 0;
}

@media (max-width: 900px) {
    .post-card {
        grid-template-columns: 1fr;
    }

    .mini-story-card {
        grid-template-columns: 1fr;
    }

    .mini-story-card img {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .mini-story-card h3 {
        font-size: 1rem;
    }
}

#infinite-scroll-loader {
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.admin-screen,
.setup-page {
    align-items: center;
    background:
        linear-gradient(rgba(11, 31, 28, 0.82), rgba(11, 31, 28, 0.82)),
        url("https://images.unsplash.com/photo-1522778119026-d647f0596c20?auto=format&fit=crop&w=1600&q=80") center / cover;
    display: flex;
    min-height: 100vh;
    padding: 24px;
}

.auth-card,
.setup-card {
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.96);
    margin: 0 auto;
    max-width: 460px;
    padding: 34px;
    width: 100%;
}

.form {
    display: grid;
    gap: 16px;
}

.form label {
    color: var(--ink);
    display: grid;
    font-weight: 800;
    gap: 7px;
}

input,
select,
textarea {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: var(--ink);
    font: inherit;
    padding: 12px 13px;
    width: 100%;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
    outline: none;
}

small {
    color: var(--muted);
    font-weight: 600;
}

.media-preview {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    display: grid;
    gap: 6px;
    padding: 12px;
}

.media-preview span {
    color: var(--ink);
    font-weight: 800;
}

.media-preview code {
    overflow-wrap: anywhere;
}

textarea {
    resize: vertical;
}

.btn {
    background: var(--brand);
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    padding: 11px 16px;
}

.quill-editor {
    min-height: 340px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    margin-bottom: 18px;
}

.ql-container {
    border: none;
    min-height: 260px;
}

.ql-toolbar.ql-snow {
    border-radius: 8px 8px 0 0;
}

.ql-container.ql-snow {
    border-radius: 0 0 8px 8px;
}

.btn:hover {
    background: var(--brand-dark);
}

.btn-secondary {
    background: #e2e8f0;
    color: var(--ink);
}

.btn-secondary:hover {
    background: #cbd5e1;
}

.alert {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 8px;
    color: #be123c;
    padding: 12px;
}

.muted,
.empty {
    color: var(--muted);
}

.admin-body {
    background: #f1f5f9;
}

.admin-main {
    padding-top: 32px;
}

.admin-main.narrow {
    max-width: 850px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    min-width: 760px;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 14px 16px;
    text-align: left;
}

th {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.status {
    background: #ecfdf5;
    border-radius: 999px;
    color: #047857;
    font-size: 0.8rem;
    font-weight: 900;
    padding: 5px 10px;
}

.status-off {
    background: #f1f5f9;
    color: #64748b;
}

.actions {
    display: flex;
    gap: 12px;
}

.editor-form {
    padding: 22px;
}

.admin-note {
    background: #ecfeff;
    border: 1px solid #a5f3fc;
    border-radius: 8px;
    color: #155e75;
    margin-bottom: 18px;
    padding: 14px 16px;
}

.check-row {
    align-items: center;
    display: flex !important;
    flex-direction: row;
    gap: 10px !important;
}

.check-row input {
    width: auto;
}

.setup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 22px 0;
}

@media (max-width: 900px) {
    .hero,
    .content-grid,
    .article-layout,
    .post-card {
        grid-template-columns: 1fr;
    }

    .post-card img {
        min-height: auto;
    }

    .sidebar {
        grid-row: auto;
    }
}

@media (max-width: 640px) {
    .nav,
    .admin-header {
        align-items: flex-start;
        flex-direction: column;
    }

    main {
        padding: 0 16px;
    }

    .hero {
        padding-top: 30px;
    }

    .article-main {
        padding: 20px;
    }
}
