/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #0f172a;
    background: #f8fafc;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── CSS Variables ───────────────────────────────────────── */
:root {
    --pink: #e11d73;
    --pink-light: #fce7f3;
    --pink-dark: #be185d;
    --navy: #0f172a;
    --navy-mid: #1e293b;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-800: #1e293b;
    --white: #ffffff;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
    --shadow: 0 4px 16px rgba(15,23,42,.08), 0 1px 4px rgba(15,23,42,.04);
    --shadow-lg: 0 12px 40px rgba(15,23,42,.12), 0 4px 12px rgba(15,23,42,.06);
}

/* ── Layout ──────────────────────────────────────────────── */
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

/* ── Header & Nav ────────────────────────────────────────── */
.site-header {
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.5px;
}
.brand span { color: var(--pink); }
.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.brand-lockup img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(225,29,115,.25);
    flex-shrink: 0;
}
.nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
}
.nav-links a {
    font-weight: 600;
    font-size: 15px;
    color: var(--gray-600);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    transition: color .18s, background .18s;
}
.nav-links a:hover { color: var(--pink); background: var(--pink-light); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.search {
    display: flex;
    align-items: center;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    padding: 0 6px 0 14px;
    gap: 6px;
    transition: border-color .18s, box-shadow .18s;
}
.search:focus-within {
    border-color: var(--pink);
    box-shadow: 0 0 0 3px rgba(225,29,115,.1);
    background: var(--white);
}
.search input {
    border: none;
    background: transparent;
    padding: 9px 0;
    font: inherit;
    font-size: 14px;
    color: var(--navy);
    width: 200px;
    outline: none;
}
.search input::placeholder { color: var(--gray-400); }
.search button {
    background: var(--pink);
    color: var(--white);
    border: none;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s;
}
.search button:hover { background: var(--pink-dark); }

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--navy);
    border-radius: var(--radius-sm);
}
.nav-toggle:hover { background: var(--gray-100); }
.nav-toggle svg { display: block; }

/* ── Eyebrow label ───────────────────────────────────────── */
.eyebrow {
    color: var(--pink);
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    margin-bottom: 6px;
}

/* ── Buttons ─────────────────────────────────────────────── */
button, .btn {
    border: none;
    border-radius: var(--radius-sm);
    padding: 11px 20px;
    font: inherit;
    font-weight: 700;
    font-size: 15px;
    background: var(--navy);
    color: var(--white);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .18s, transform .14s, box-shadow .18s;
}
button:hover, .btn:hover {
    background: var(--navy-mid);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}
.btn.primary { background: var(--pink); }
.btn.primary:hover { background: var(--pink-dark); }
.btn.secondary { background: var(--gray-100); color: var(--navy-mid); }
.btn.secondary:hover { background: var(--gray-200); }
.btn.ghost { background: rgba(255,255,255,.12); color: var(--white); border: 1px solid rgba(255,255,255,.25); }
.btn.ghost:hover { background: rgba(255,255,255,.22); }

/* ── Forms ───────────────────────────────────────────────── */
input, textarea, select {
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    font: inherit;
    font-size: 15px;
    width: 100%;
    background: var(--white);
    color: var(--navy);
    transition: border-color .18s, box-shadow .18s;
    outline: none;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 3px rgba(225,29,115,.1);
}
textarea { min-height: 120px; resize: vertical; }

/* ── Hero Section ────────────────────────────────────────── */
.hero { padding: 32px 0 24px; }
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, .6fr);
    gap: 20px;
    align-items: stretch;
}
.hero-main {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    padding: clamp(28px, 5vw, 52px);
    min-height: 440px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background:
        linear-gradient(170deg, rgba(15,23,42,.1) 0%, rgba(15,23,42,.88) 60%),
        var(--hero-image, linear-gradient(135deg, #1e293b, #312e81));
    background-size: cover;
    background-position: center;
    color: var(--white);
}
.hero-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 75% 15%, rgba(225,29,115,.3), transparent 50%);
    pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 680px; }
.hero-main .eyebrow { color: #f9a8d4; margin-bottom: 10px; }
.hero-main h1 {
    font-size: clamp(28px, 4.5vw, 52px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 14px;
}
.hero-main p { font-size: 17px; color: rgba(255,255,255,.82); margin-bottom: 22px; line-height: 1.6; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,.9);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 14px;
}
.hero-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #4ade80; flex-shrink: 0; }

/* Explore sidebar */
.explore-panel {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.explore-panel h2 { font-size: 20px; font-weight: 700; }
.categories { display: grid; gap: 8px; }
.category-pill {
    padding: 12px 14px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-800);
    transition: all .2s;
}
.category-pill:hover {
    border-color: var(--pink);
    background: var(--pink-light);
    color: var(--pink-dark);
    transform: translateX(3px);
}
.category-pill .count {
    background: var(--gray-200);
    color: var(--gray-600);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    transition: background .2s, color .2s;
}
.category-pill:hover .count { background: var(--pink); color: var(--white); }

/* ── Post Grid ───────────────────────────────────────────── */
.section { padding: 32px 0; }
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
}
.section-header h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }
.section-header a { font-size: 14px; font-weight: 600; color: var(--pink); }
.section-header a:hover { text-decoration: underline; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

/* ── Post Card ───────────────────────────────────────────── */
.post-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-300, #cbd5e1);
}
/* ── Image always landscape — aspect-ratio locks out portraits ── */
.thumb-wrap {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--gray-100);
    flex-shrink: 0;
}
.thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease;
}
.post-card:hover .thumb { transform: scale(1.04); }
.thumb-placeholder {
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
}
.thumb-placeholder img { width: 64px; height: 64px; border-radius: 50%; opacity: .5; }

/* ── Card body ───────────────────────────────────────────── */
.post-card .body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; gap: 0; }
.meta {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    color: var(--gray-400);
    font-size: 12px;
    margin-bottom: 9px;
}
.meta a {
    color: var(--pink);
    font-weight: 800;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .08em;
    background: var(--pink-light);
    padding: 3px 8px;
    border-radius: 999px;
    transition: background .18s, color .18s;
}
.meta a:hover { background: var(--pink); color: var(--white); }
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gray-300); flex-shrink: 0; }
.post-card h3 {
    font-size: 16px;
    font-weight: 750;
    line-height: 1.38;
    letter-spacing: -0.2px;
    margin-bottom: 8px;
    flex: 1;
    color: var(--navy);
}
.post-card h3 a { color: inherit; transition: color .18s; }
.post-card h3 a:hover { color: var(--pink); }
.post-card .excerpt {
    font-size: 13.5px;
    color: var(--gray-500);
    line-height: 1.58;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 2px;
}
.read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
    color: var(--pink);
    margin-top: 14px;
    letter-spacing: .01em;
}
.read-more::after { content: '→'; transition: transform .2s; }
.post-card:hover .read-more::after { transform: translateX(4px); }

/* ── Editorial top grid (homepage) ──────────────────────── */
.editorial-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: start;
}
.editorial-main .post-card { height: 100%; }
.editorial-main .thumb-wrap { aspect-ratio: 3 / 2; }   /* wider/taller crop for lead story */
.editorial-main .post-card h3 { font-size: 22px; font-weight: 800; letter-spacing: -.4px; line-height: 1.25; }
.editorial-main .post-card .excerpt { -webkit-line-clamp: 3; font-size: 15px; }
.editorial-main .post-card .body { padding: 22px 24px 26px; }

.editorial-side { display: flex; flex-direction: column; gap: 16px; }
.editorial-side .post-card { flex-direction: row; min-height: unset; }
.editorial-side .thumb-wrap { width: 120px; flex-shrink: 0; aspect-ratio: 1 / 1; border-radius: 0; }  /* square crop */
.editorial-side .post-card .body { padding: 14px 16px; }
.editorial-side .post-card h3 { font-size: 14px; font-weight: 700; line-height: 1.35; margin-bottom: 6px; }
.editorial-side .post-card .excerpt { display: none; }
.editorial-side .read-more { font-size: 12px; margin-top: 8px; }

/* ── Article Page ────────────────────────────────────────── */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--pink);
    z-index: 200;
    transition: width .1s linear;
    width: 0%;
}
.article-wrap { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 32px; align-items: start; padding: 32px 0 48px; }
.article {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: clamp(24px, 5vw, 52px);
    box-shadow: var(--shadow-sm);
}
.article-header { margin-bottom: 28px; }
.article-header h1 {
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1px;
    color: var(--navy);
    margin-top: 14px;
    margin-bottom: 14px;
}
.article-header .excerpt { font-size: 18px; color: var(--gray-500); line-height: 1.65; margin-bottom: 20px; }
.article-header .meta { margin-bottom: 0; }
.article-hero-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 32px;
    border: 1px solid var(--gray-200);
}
.article-content {
    font-size: 17.5px;
    line-height: 1.8;
    color: #1e293b;
}
.article-content p { margin-bottom: 1.4em; }
.article-content h2 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: var(--navy);
    margin: 2.2em 0 .7em;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-100);
}
.article-content h3 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--navy);
    margin: 1.8em 0 .5em;
}
.article-content ul, .article-content ol {
    padding-left: 1.5em;
    margin-bottom: 1.4em;
}
.article-content li { margin-bottom: .5em; }
.article-content blockquote {
    margin: 2em 0;
    padding: 20px 24px;
    border-left: 4px solid var(--pink);
    background: var(--pink-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--gray-800);
    font-size: 18px;
}
.article-content figure { margin: 2em 0; }
.article-content figure img {
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    max-height: 500px;
    object-fit: cover;
    margin: 0 auto;
    width: 100%;
}
.article-content figcaption {
    color: var(--gray-400);
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
}
.article-content a { color: var(--pink); text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { color: var(--pink-dark); }
.article-content code {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: .9em;
    font-family: ui-monospace, 'Fira Code', monospace;
}
.article-content pre {
    background: var(--navy);
    color: #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    overflow-x: auto;
    margin-bottom: 1.4em;
    font-size: 14px;
    line-height: 1.6;
}

/* Article sidebar */
.article-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }
.sidebar-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}
.sidebar-card h4 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-500); margin-bottom: 12px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    transition: all .18s;
}
.tag-chip:hover { background: var(--pink); border-color: var(--pink); color: var(--white); }

/* ── Blog Index Page ─────────────────────────────────────── */
.page-header {
    padding: 36px 0 24px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 28px;
}
.page-header h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; letter-spacing: -1px; }
.page-header .muted { font-size: 17px; margin-top: 8px; }

/* ── Category / Tag Hero ─────────────────────────────────── */
.cat-hero {
    background: linear-gradient(135deg, var(--navy) 0%, #1e1b4b 100%);
    padding: 36px 0 40px;
    color: var(--white);
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    color: rgba(255,255,255,.5);
}
.breadcrumb a { color: rgba(255,255,255,.65); transition: color .18s; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb-sep { color: rgba(255,255,255,.3); }
.cat-hero-body {
    display: flex;
    align-items: center;
    gap: 24px;
}
.cat-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--pink), #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    color: var(--white);
    flex-shrink: 0;
    letter-spacing: -1px;
    box-shadow: 0 8px 24px rgba(225,29,115,.35);
}
.tag-icon { background: linear-gradient(135deg, #0891b2, #6366f1); box-shadow: 0 8px 24px rgba(99,102,241,.35); }
.cat-hero .eyebrow { color: rgba(255,255,255,.5); margin-bottom: 4px; }
.cat-hero h1 {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--white);
    margin: 6px 0 8px;
}
.cat-desc { font-size: 16px; color: rgba(255,255,255,.65); line-height: 1.6; margin-bottom: 14px; max-width: 600px; }
.cat-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255,255,255,.55);
}
.cat-meta strong { color: rgba(255,255,255,.9); }
.cat-meta-sep { color: rgba(255,255,255,.3); }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,.65);
    padding: 52px 0 28px;
    margin-top: 48px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .brand { color: var(--white); font-size: 20px; }
.footer-brand p { margin-top: 12px; font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.55); }
.footer-col h5 {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255,255,255,.4);
    margin-bottom: 14px;
}
.footer-col a {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,.65);
    margin-bottom: 10px;
    transition: color .18s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 24px;
    font-size: 13px;
    flex-wrap: wrap;
}

/* ── Utilities ───────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { letter-spacing: -0.3px; }
h1 { font-size: clamp(28px, 5vw, 56px); font-weight: 800; line-height: 1.1; }
h2 { font-size: 28px; font-weight: 800; line-height: 1.2; }
h3 { font-size: 20px; font-weight: 700; line-height: 1.3; }
.muted { color: var(--gray-500); }
.text-pink { color: var(--pink); }
.panel {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.notice { padding: 12px 16px; border-radius: var(--radius-sm); background: #ecfdf5; color: #065f46; margin-bottom: 16px; font-weight: 500; }
.errors { padding: 12px 16px; border-radius: var(--radius-sm); background: #fef2f2; color: #991b1b; margin-bottom: 16px; font-weight: 500; }
.pagination { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 8px 0; }
.pagination a, .pagination span { padding: 8px 14px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; background: var(--white); color: var(--gray-600); transition: all .18s; }
.pagination a:hover { border-color: var(--pink); color: var(--pink); }
.pagination .active span, .pagination [aria-current] { background: var(--pink); border-color: var(--pink); color: var(--white); }

/* ── Admin Shell ─────────────────────────────────────────── */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar {
    background: var(--navy);
    color: #cbd5e1;
    padding: 24px 16px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.admin-brand { color: var(--white) !important; }
.admin-brand img { width: 40px; height: 40px; box-shadow: none !important; }
.admin-menu { margin-top: 28px; display: grid; gap: 3px; }
.admin-menu a, .admin-menu button {
    width: 100%;
    min-height: 40px;
    justify-content: flex-start;
    background: transparent;
    color: #94a3b8;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    transition: background .15s, color .15s;
}
.admin-menu a:hover, .admin-menu button:hover { background: rgba(255,255,255,.08); color: var(--white); transform: none; box-shadow: none; }
.admin-menu form { margin: 0; }
.admin-main { padding: 28px; background: var(--gray-50); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; flex-wrap: wrap; }
.toolbar h1 { font-size: 26px; }
.table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.table th, .table td { padding: 13px 16px; border-bottom: 1px solid var(--gray-200); text-align: left; vertical-align: top; }
.table th { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-500); background: var(--gray-50); }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--gray-50); }
.form-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 7px; color: var(--gray-500); }
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--gray-50); }
.login .panel { width: min(420px, 100%); padding: 32px; }
.image-preview { width: 100%; max-height: 160px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--gray-200); margin-top: 10px; }
.or-divider { display: flex; align-items: center; gap: 10px; color: var(--gray-400); font-size: 11px; font-weight: 800; text-transform: uppercase; margin: 10px 0; }
.or-divider::before, .or-divider::after { content: ''; height: 1px; background: var(--gray-200); flex: 1; }
.seo-panel { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 16px; }
.seo-score { font-size: 30px; font-weight: 800; color: var(--navy); margin: 6px 0 10px; }
.seo-panel ul { padding-left: 18px; margin: 0; color: var(--gray-500); font-size: 13px; }
.seo-panel li { margin: 5px 0; }
.seo-panel li.ok { color: #047857; }
.seo-panel li.warn { color: #b45309; }
.chip-picker { border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); background: var(--white); overflow: hidden; }
.chip-picker:focus-within { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(225,29,115,.1); }
.selected-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 48px; padding: 10px; border-bottom: 1px solid var(--gray-200); background: var(--gray-50); align-items: center; }
.selection-chip { width: auto; min-height: 30px; border-radius: 999px; padding: 5px 10px 5px 12px; background: var(--navy); color: var(--white); font-size: 13px; gap: 6px; }
.selection-chip:hover { background: var(--pink); transform: none; box-shadow: none; }
.chip-empty { color: var(--gray-400); font-size: 13px; }
.picker-options { display: grid; max-height: 180px; overflow-y: auto; padding: 8px; gap: 2px; }
.picker-option { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); cursor: pointer; font-size: 14px; font-weight: 600; color: var(--gray-800); }
.picker-option:hover { background: var(--gray-100); }
.picker-option input { width: auto; }
.editor-shell { border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); background: var(--white); overflow: hidden; }
.editor-shell:focus-within { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(225,29,115,.1); }
.editor-toolbar { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; padding: 10px; border-bottom: 1px solid var(--gray-200); background: var(--gray-50); }
.editor-toolbar button, .editor-toolbar select { width: auto; min-height: 36px; padding: 6px 10px; border-radius: var(--radius-sm); border: 1px solid var(--gray-200); background: var(--white); color: var(--navy); font-size: 13px; font-weight: 700; }
.editor-toolbar button:hover { background: var(--pink); border-color: var(--pink); color: var(--white); transform: none; box-shadow: none; }
.rich-editor { min-height: 500px; padding: 24px; outline: none; font-size: 17px; line-height: 1.8; color: #1e293b; }
.rich-editor:empty::before { content: 'Write the story…'; color: var(--gray-400); }
.rich-editor h2 { font-size: 28px; font-weight: 800; line-height: 1.2; margin: 26px 0 10px; color: var(--navy); }
.rich-editor h3 { font-size: 22px; font-weight: 700; line-height: 1.3; margin: 20px 0 8px; color: var(--navy); }
.rich-editor blockquote { margin: 22px 0; padding: 16px 20px; border-left: 4px solid var(--pink); background: var(--pink-light); border-radius: 0 6px 6px 0; color: var(--gray-800); }
.rich-editor figure { margin: 22px 0; }
.rich-editor figure img { max-height: 380px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--gray-200); margin: 0 auto; }
.rich-editor figcaption { min-height: 24px; color: var(--gray-400); font-size: 13px; text-align: center; margin-top: 8px; }

/* ── Static Pages (About / Privacy / Contact) ───────────── */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 100%); padding: 52px 0 48px; }
.page-hero h1 { font-size: clamp(28px, 5vw, 44px); font-weight: 800; color: var(--white); margin: 10px 0 12px; }
.page-hero-sub { color: #94b4d4; font-size: 17px; margin: 0; }
.page-hero .breadcrumb a { color: #94b4d4; }
.page-hero .breadcrumb span { color: #cbd5e1; }
.page-body { padding: 48px 0 72px; }
.page-content-grid { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.page-main { min-width: 0; }
.page-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 24px; }
.prose-section { margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--gray-200); }
.prose-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.prose-section h2 { font-size: 22px; font-weight: 800; color: var(--navy); margin: 0 0 14px; }
.prose-section h3 { font-size: 16px; font-weight: 700; color: var(--gray-800); margin: 20px 0 8px; }
.prose-section p { color: var(--gray-700); line-height: 1.8; margin: 0 0 14px; }
.prose-section ul { color: var(--gray-700); line-height: 1.8; padding-left: 20px; margin: 0 0 14px; }
.prose-section li { margin-bottom: 6px; }
.prose-section a { color: var(--pink); font-weight: 600; }
.prose-section a:hover { text-decoration: underline; }
.prose-section em { color: var(--gray-500); }

/* About topics */
.about-topics { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.topic-card { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 20px; }
.topic-icon { font-size: 28px; margin-bottom: 10px; }
.topic-card h3 { font-size: 15px; font-weight: 800; color: var(--navy); margin: 0 0 6px; }
.topic-card p { font-size: 14px; color: var(--gray-600); margin: 0; line-height: 1.6; }

/* Cookie table */
.cookie-table { border: 1px solid var(--gray-200); border-radius: var(--radius-sm); overflow: hidden; margin: 16px 0; font-size: 14px; }
.cookie-row { display: grid; grid-template-columns: 130px 1fr 160px; gap: 0; border-bottom: 1px solid var(--gray-200); }
.cookie-row:last-child { border-bottom: none; }
.cookie-row span { padding: 12px 14px; }
.cookie-header { background: var(--gray-50); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-500); }

/* Fact list (sidebar) */
.fact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.fact-list li { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.fact-list li span { color: var(--gray-500); }
.fact-list li strong { color: var(--navy); font-weight: 700; }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form .field { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.contact-form label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gray-500); }
.required { color: var(--pink); }
.contact-form input, .contact-form select, .contact-form textarea {
    border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); padding: 10px 13px;
    font-size: 15px; font-family: inherit; color: var(--navy); background: var(--white);
    transition: border-color .15s, box-shadow .15s; width: 100%; box-sizing: border-box;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(225,29,115,.1);
}
.contact-form textarea { resize: vertical; }
.field-error { font-size: 13px; color: #dc2626; font-weight: 600; }
.contact-success { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; background: #f0fdf4; border: 1px solid #86efac; border-radius: var(--radius); margin-bottom: 24px; color: #166534; }
.contact-success svg { flex-shrink: 0; margin-top: 2px; }

/* Ad slots */
.ad-slot { text-align: center; background: var(--gray-50); border: 1px dashed var(--gray-200); border-radius: var(--radius-sm); padding: 8px; overflow: hidden; }
.ad-slot--leaderboard { min-height: 90px; }
.ad-slot--rectangle { min-height: 250px; }
.ad-slot--inline { margin: 32px 0; }

/* GDPR cookie banner */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    background: var(--navy); color: #cbd5e1; padding: 16px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    flex-wrap: wrap; font-size: 14px; box-shadow: 0 -4px 20px rgba(0,0,0,.25);
}
.cookie-banner p { margin: 0; flex: 1; min-width: 200px; line-height: 1.5; }
.cookie-banner a { color: #60a5fa; text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner .btn.ghost { background: transparent; border: 1.5px solid #475569; color: #94a3b8; }
.cookie-banner .btn.ghost:hover { border-color: #94a3b8; color: var(--white); background: transparent; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .article-wrap { grid-template-columns: 1fr; }
    .article-sidebar { position: static; }
    .editorial-grid { grid-template-columns: 1fr; }
    .editorial-main .thumb-wrap { aspect-ratio: 16 / 9; }
    .editorial-side .post-card { flex-direction: column; }
    .editorial-side .thumb-wrap { width: 100%; aspect-ratio: 16 / 9; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .page-content-grid { grid-template-columns: 1fr; }
    .page-sidebar { position: static; }
    .about-topics { grid-template-columns: 1fr; }
    .cookie-row { grid-template-columns: 1fr; }
    .cookie-row span { padding: 8px 14px; }
    .cookie-header span:not(:first-child) { display: none; }
}
@media (max-width: 700px) {
    .nav { flex-wrap: wrap; padding: 14px 0; gap: 10px; }
    .nav-links { display: none; flex-direction: column; width: 100%; padding: 10px 0; gap: 2px; order: 3; }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 10px 12px; }
    .nav-toggle { display: flex; }
    .search { display: none; }
    .form-grid { grid-template-columns: 1fr; }
    .admin-shell { grid-template-columns: 1fr; }
    .sidebar { position: static; height: auto; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .cookie-banner { flex-direction: column; align-items: flex-start; }
}
