* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: #111827; background: #f4f7f5; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; object-fit: cover; }
svg { width: 20px; height: 20px; }
input, select, textarea { width: 100%; border: 1px solid #d1d5db; border-radius: 6px; padding: 11px 12px; font: inherit; background: #fff; }
textarea { resize: vertical; }
label { display: grid; gap: 7px; font-weight: 700; color: #374151; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px; border-bottom: 1px solid #e5e7eb; text-align: left; vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; color: #6b7280; }
.brand { font-size: 22px; font-weight: 900; letter-spacing: .2px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 6px; padding: 10px 14px; background: #16a34a; color: #fff; font-weight: 800; cursor: pointer; }
.btn.secondary { background: #e5e7eb; color: #111827; }
.btn.danger { background: #dc2626; color: #fff; }
.muted { color: #6b7280; font-size: 14px; }
.alert { margin: 0 0 18px; padding: 13px 16px; border-radius: 6px; background: #dcfce7; color: #166534; font-weight: 700; }
.alert.danger { background: #fee2e2; color: #991b1b; }
.badge, .pill { display: inline-flex; border-radius: 999px; padding: 5px 9px; background: #e5e7eb; color: #111827; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.pill { background: #16a34a; color: #fff; }
.dot { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; }
.check { display: flex; align-items: center; gap: 10px; }
.check input { width: auto; }

.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; background: #eef2f0; }
.sidebar { padding: 24px; background: #07140d; color: #fff; }
.sidebar .brand { display: block; margin-bottom: 28px; color: #86efac; }
.sidebar nav { display: grid; gap: 8px; }
.sidebar nav a { padding: 11px 12px; border-radius: 6px; color: #d1fae5; font-weight: 700; }
.sidebar nav a:hover { background: rgba(255,255,255,.09); }
.admin-main { padding: 28px; min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 24px; }
.topbar h1 { margin: 4px 0 0; font-size: 30px; }
.stats-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat, .panel, .form-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 10px 24px rgba(15,23,42,.05); }
.stat { padding: 20px; }
.stat strong { display: block; font-size: 32px; }
.stat span { color: #6b7280; font-weight: 700; }
.panel { padding: 18px; overflow: hidden; }
.panel-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.panel-head h2 { margin: 0; font-size: 20px; }
.actions { display: flex; gap: 8px; justify-content: flex-end; }
.form-panel { display: grid; gap: 16px; max-width: 980px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 5vw; background: #07140d; color: #fff; }
.site-header nav { display: flex; align-items: center; gap: 18px; font-weight: 800; }
.site-header nav a:hover, .site-footer nav a:hover { color: #86efac; }
.site-footer { display: grid; grid-template-columns: minmax(240px, 1fr) 2fr; gap: 24px 50px; padding: 34px 5vw; background: #07140d; color: #d1fae5; margin-top: 50px; }
.site-footer p { margin: 10px 0 0; color: #a7f3d0; }
.site-footer nav { display: flex; flex-wrap: wrap; align-content: start; gap: 12px 22px; font-weight: 700; }
.site-footer small { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); color: #a7f3d0; }
.hero { min-height: 480px; display: flex; align-items: end; padding: 70px 5vw; background-position: center; background-size: cover; color: #fff; }
.hero div { max-width: 760px; }
.hero h1 { font-size: clamp(38px, 6vw, 72px); line-height: 1; margin: 16px 0; }
.hero p { font-size: 20px; max-width: 620px; color: #e5e7eb; }
.content-wrap, .article-wrap { width: min(1180px, 90vw); margin: 34px auto; }
.category-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.category-strip a { border-left: 5px solid #16a34a; border-radius: 6px; padding: 12px 14px; background: #fff; font-weight: 900; box-shadow: 0 8px 18px rgba(15,23,42,.05); }
.category-strip span { color: #6b7280; margin-left: 6px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.post-grid.small { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.post-card img { height: 210px; }
.post-card div { padding: 16px; }
.post-card h2 { font-size: 22px; line-height: 1.15; margin: 12px 0 8px; }
.post-card p { color: #4b5563; }
.section-title { margin-bottom: 24px; }
.section-title h1 { font-size: 42px; margin: 12px 0 0; }
.article { background: #fff; border-radius: 8px; padding: 28px; border: 1px solid #e5e7eb; }
.article h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1; margin: 16px 0 8px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 20px; color: #6b7280; font-size: 14px; font-weight: 700; }
.article img { height: min(520px, 55vw); border-radius: 8px; margin: 24px 0; }
.article-body { font-size: 19px; line-height: 1.75; color: #1f2937; }
.article-body p { margin: 0 0 24px; }
.article-body a { color: #047857; text-decoration: underline; }
.social-embed { margin: 28px auto; max-width: 560px; }
.social-embed-twitter { min-height: 180px; }
.social-embed-video { aspect-ratio: 16 / 9; }
.social-embed-video iframe { width: 100%; height: 100%; border: 0; border-radius: 8px; }
.social-link { padding: 14px 16px; border: 1px solid #d1d5db; border-radius: 8px; background: #f9fafb; overflow-wrap: anywhere; }
.source-link { margin-top: 24px; padding-top: 18px; border-top: 1px solid #e5e7eb; color: #4b5563; font-weight: 700; }
.source-link a { color: #15803d; text-decoration: underline; }
.legal-page { width: min(820px, 90vw); margin: 48px auto; padding: 38px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; box-shadow: 0 10px 24px rgba(15,23,42,.05); }
.legal-page h1 { margin: 8px 0 18px; font-size: clamp(36px, 6vw, 56px); line-height: 1.05; }
.legal-page h2 { margin: 32px 0 10px; font-size: 24px; }
.legal-page p, .legal-page li { color: #374151; font-size: 17px; line-height: 1.75; }
.legal-page a { color: #047857; text-decoration: underline; }
.legal-page li + li { margin-top: 8px; }
.eyebrow { margin: 0; color: #15803d !important; font-size: 13px !important; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.legal-lead { font-size: 21px !important; color: #1f2937 !important; }
.legal-updated { margin-top: 36px; padding-top: 18px; border-top: 1px solid #e5e7eb; font-size: 14px !important; color: #6b7280 !important; }
.contact-card { margin: 28px 0; padding: 24px; border-radius: 8px; background: #ecfdf5; border: 1px solid #a7f3d0; }
.contact-card h2 { margin-top: 0; }
.contact-email { display: inline-block; overflow-wrap: anywhere; font-size: 21px; font-weight: 900; }
.comments { margin-top: 28px; }
.comment-form { margin-bottom: 18px; }
.comment { background: #fff; padding: 16px; border: 1px solid #e5e7eb; border-radius: 8px; margin-bottom: 12px; }
.auth-page { min-height: 74vh; display: grid; place-items: center; padding: 40px 20px; }
.form-card { display: grid; gap: 15px; width: min(440px, 100%); padding: 24px; }
.cms-pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding: 14px 0; flex-wrap: wrap; }
.cms-pagination p { margin: 0; color: #4b5563; font-size: 14px; font-weight: 700; }
.cms-pages { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cms-pages a, .cms-pages span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; color: #111827; font-size: 14px; font-weight: 900; }
.cms-pages a:hover { border-color: #16a34a; color: #166534; }
.cms-pages .active { background: #16a34a; border-color: #16a34a; color: #fff; }
.cms-pages .disabled { background: #eef2f0; color: #9ca3af; cursor: default; }

@media (max-width: 900px) {
    .admin-shell { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .stats-grid, .panel-grid, .post-grid, .post-grid.small, .form-grid { grid-template-columns: 1fr; }
    .topbar, .panel-head { align-items: flex-start; flex-direction: column; }
    .hero { min-height: 420px; }
    .site-header { position: static; align-items: flex-start; flex-direction: column; }
    .site-header nav { width: 100%; overflow-x: auto; padding-bottom: 4px; }
    .site-footer { grid-template-columns: 1fr; }
    .site-footer small { grid-column: auto; }
    .legal-page { padding: 24px; }
}
