* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #09090b;
    color: #fff;
}
.page-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(14,165,233,.10), transparent 20%),
        radial-gradient(circle at 90% 20%, rgba(132,204,22,.10), transparent 20%),
        radial-gradient(circle at 40% 90%, rgba(217,70,239,.10), transparent 25%),
        #09090b;
    z-index: 0;
}
.container {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    padding: 32px 24px 56px;
}
.hero-header, .content-box, .newsletter-box, .manifesto-box, .categories-box, .info-card {
    border: 1px solid rgba(255,255,255,.09);
    background: rgba(255,255,255,.04);
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.hero-header, .content-box, .newsletter-box, .manifesto-box, .categories-box { border-radius: 30px; }
.hero-header { overflow: hidden; }
.top-brand-bar {
    background: #06203a;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(14,165,233,.10);
}
.brand-wrap { display: flex; align-items: center; gap: 16px; }
.logo-box {
    background: #05182c;
    border-radius: 18px;
    padding: 8px 12px;
    min-width: 92px;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,.2);
    border: 1px solid rgba(255,255,255,.08);
}
.logo-img { max-height: 48px; width: auto; display: block; }
.logo-placeholder {
    color: #f59e0b; font-weight: 700; letter-spacing: 1px;
}
.brand-title { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.brand-subtitle { font-size: 1.25rem; color: #e0f2fe; margin-top: 4px; }
.hero-content-grid {
    padding: 40px;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 32px;
    align-items: center;
}
.pill, .mini-badge, .tag, .post-label, .section-label, .category-chip, .feature-pill {
    display: inline-flex; align-items: center; border-radius: 999px;
}
.pill {
    background: rgba(132,204,22,.10);
    color: #bef264;
    border: 1px solid rgba(132,204,22,.2);
    padding: 8px 14px;
    font-size: .9rem;
}
.hero-copy h1 { font-size: 3.4rem; line-height: 1.08; margin: 18px 0; }
.hero-copy p, .manifesto-box p, .post-card p, .newsletter-box p, .info-card p, .purpose-item, .mini-panel, .muted-text { color: #d4d4d8; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.btn {
    text-decoration: none;
    border-radius: 18px;
    padding: 14px 22px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.12);
    cursor: pointer;
}
.btn-primary { background: #a3e635; color: #111827; border: none; }
.btn-secondary { background: rgba(255,255,255,.05); color: white; }
.btn.small { padding: 10px 16px; font-size: .95rem; }
.btn.full { width: 100%; }
.purpose-card {
    border-radius: 28px;
    background: rgba(24,24,27,.8);
    padding: 24px;
    border: 1px solid rgba(255,255,255,.09);
}
.card-header { display:flex; align-items:center; justify-content:space-between; gap: 12px; margin-bottom: 16px; }
.small-label, .section-label { text-transform: uppercase; letter-spacing: .25em; font-size: .8rem; color: #a1a1aa; }
.mini-badge { background: rgba(14,165,233,.10); color: #7dd3fc; padding: 6px 12px; font-size: .75rem; }
.purpose-items { display: grid; gap: 14px; }
.purpose-item, .mini-panel { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); border-radius: 18px; padding: 16px; }
.grid-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 32px;
}
.info-card { border-radius: 28px; padding: 24px; }
.tag {
    padding: 6px 12px;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: #7dd3fc;
    background: rgba(14,165,233,.10);
    border: 1px solid rgba(14,165,233,.2);
}
.info-card h2, .post-card h4, .mini-panel h4 { margin: 16px 0 10px; }
.section-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 24px;
    margin-top: 32px;
}
.manifesto-box, .categories-box, .content-box, .newsletter-box { padding: 32px; }
.section-label { color: #7dd3fc; }
.section-label.alt, .section-label.lime { color: #bef264; }
.section-label.pink { color: #f0abfc; }
.manifesto-box h3, .content-box h3, .newsletter-box h3 { font-size: 2.2rem; margin: 14px 0 18px; }
.feature-list { display:grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 24px; }
.feature-pill {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 18px;
    padding: 14px 16px;
    font-weight: 600;
}
.category-list { display:flex; flex-wrap:wrap; gap:12px; margin: 18px 0 26px; }
.category-chip {
    padding: 10px 14px;
    background: rgba(24,24,27,.9);
    color: #e4e4e7;
    border: 1px solid rgba(255,255,255,.09);
}
.content-box { margin-top: 32px; }
.content-box-header { display:flex; align-items:end; justify-content:space-between; gap: 16px; margin-bottom: 24px; }
.posts-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.post-card {
    background: rgba(24,24,27,.78);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 24px;
    padding: 24px;
}
.post-label {
    padding: 6px 10px;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: #f5d0fe;
    background: rgba(217,70,239,.10);
}
.newsletter-box {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 28px;
    align-items: center;
    background: linear-gradient(90deg, rgba(132,204,22,.10), rgba(24,24,27,.85), rgba(14,165,233,.10));
}
.form-box {
    background: rgba(9,9,11,.75);
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,.09);
    padding: 24px;
}
.form-box label, .form-box small { color: #d4d4d8; display: block; }
.form-box input {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.05);
    color: white;
}
.content-html { white-space: pre-line; }
@media (max-width: 980px) {
    .hero-content-grid,
    .section-grid,
    .newsletter-box,
    .posts-grid,
    .grid-cards { grid-template-columns: 1fr; }
    .content-box-header { flex-direction: column; align-items: flex-start; }
    .feature-list { grid-template-columns: 1fr; }
    .hero-copy h1 { font-size: 2.5rem; }
    .brand-title { font-size: 1.8rem; }
    .brand-subtitle { font-size: 1rem; }
}
@media (max-width: 640px) {
    .container { padding: 18px 14px 40px; }
    .top-brand-bar, .hero-content-grid, .manifesto-box, .categories-box, .content-box, .newsletter-box { padding: 20px; }
    .brand-wrap { align-items: flex-start; }
    .hero-copy h1 { font-size: 2rem; }
}


.brand-wrap.between { justify-content: space-between; width: 100%; }
.post-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    margin-top: 32px;
    align-items: start;
}
.post-sidebar, .post-main-card, .sidebar-panel {
    border: 1px solid rgba(255,255,255,.09);
    background: rgba(255,255,255,.04);
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    border-radius: 30px;
}
.post-sidebar {
    display: grid;
    gap: 20px;
    background: transparent;
    border: none;
    box-shadow: none;
}
.sidebar-panel { padding: 24px; }
.category-list.vertical { display: grid; gap: 10px; }
.category-link, .sidebar-post-item {
    display: block;
    text-decoration: none;
    color: #e4e4e7;
    background: rgba(24,24,27,.9);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 18px;
    padding: 12px 14px;
}
.category-link.active, .sidebar-post-item.current {
    border-color: rgba(132,204,22,.45);
    background: rgba(132,204,22,.10);
}
.sidebar-posts { display: grid; gap: 10px; margin-top: 18px; }
.sidebar-post-item strong { display: block; margin-bottom: 6px; }
.sidebar-post-item span { color: #a1a1aa; font-size: .85rem; }
.post-main-card { padding: 32px; }
.post-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.post-date { color: #a1a1aa; font-size: .95rem; }
.post-title { font-size: 2.8rem; line-height: 1.1; margin: 0 0 18px; }
.post-excerpt {
    font-size: 1.15rem;
    color: #e4e4e7;
    line-height: 1.8;
    border-left: 4px solid rgba(14,165,233,.45);
    padding-left: 16px;
    margin-bottom: 24px;
}
.post-body {
    color: #d4d4d8;
    line-height: 1.9;
    font-size: 1.05rem;
}
.post-header { margin-bottom: 0; }
@media (max-width: 980px) {
    .post-layout { grid-template-columns: 1fr; }
    .brand-wrap.between { flex-direction: column; align-items: flex-start; }
    .post-title { font-size: 2.1rem; }
}


.post-page-grid {
    align-items: start;
}
.post-sidebar-box {
    position: sticky;
    top: 24px;
}
.category-list-post {
    display: grid;
    gap: 10px;
}
.sidebar-posts-panel {
    margin-top: 24px;
}
.post-content-box {
    min-height: 540px;
}
.post-content-header {
    margin-bottom: 18px;
}
.post-excerpt-box {
    margin-bottom: 24px;
    padding: 18px 20px;
    border-left: 4px solid rgba(14,165,233,.45);
    background: rgba(255,255,255,.03);
    border-radius: 18px;
    color: #e4e4e7;
    line-height: 1.8;
    font-size: 1.05rem;
}
.content-html-rendered {
    white-space: normal;
    color: #d4d4d8;
    line-height: 1.85;
    font-size: 1.05rem;
}
.content-html-rendered h1,
.content-html-rendered h2,
.content-html-rendered h3,
.content-html-rendered h4 {
    color: #fff;
    line-height: 1.2;
    margin: 1.4em 0 .6em;
}
.content-html-rendered h1 { font-size: 2rem; }
.content-html-rendered h2 { font-size: 1.7rem; }
.content-html-rendered h3 { font-size: 1.4rem; }
.content-html-rendered p,
.content-html-rendered ul,
.content-html-rendered ol,
.content-html-rendered blockquote,
.content-html-rendered table {
    margin: 0 0 1.1em;
}
.content-html-rendered ul,
.content-html-rendered ol {
    padding-left: 1.4em;
}
.content-html-rendered li {
    margin-bottom: .45em;
}
.content-html-rendered a {
    color: #7dd3fc;
}
.content-html-rendered img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
}
.content-html-rendered blockquote {
    margin-left: 0;
    padding: 14px 18px;
    border-left: 4px solid rgba(132,204,22,.45);
    background: rgba(132,204,22,.06);
    border-radius: 14px;
}
.content-html-rendered code {
    background: rgba(255,255,255,.08);
    padding: 2px 6px;
    border-radius: 8px;
}
.content-html-rendered pre {
    background: rgba(0,0,0,.28);
    padding: 16px;
    border-radius: 18px;
    overflow: auto;
}
.post-hero-grid {
    align-items: stretch;
}
.post-hero-meta {
    margin-top: 16px;
    color: #a1a1aa;
    font-size: .95rem;
}
@media (max-width: 980px) {
    .post-sidebar-box {
        position: static;
    }
}

/* ===== Post page v2 ===== */
.post-header-clean {
    margin-bottom: 32px;
}

.post-layout-v2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 24px;
    align-items: start;
}

.post-main-panel,
.sidebar-tree-card {
    border: 1px solid rgba(255,255,255,.09);
    background: rgba(255,255,255,.04);
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    border-radius: 30px;
}

.post-main-panel {
    min-height: 640px;
    padding: 34px;
}

.post-main-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.post-category-badge {
    display: inline-flex;
    margin-top: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(14,165,233,.22);
    background: rgba(14,165,233,.10);
    color: #7dd3fc;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.post-main-title {
    font-size: 2.8rem;
    line-height: 1.08;
    margin: 18px 0 0;
}

.post-main-meta {
    color: #a1a1aa;
    font-size: .95rem;
    white-space: nowrap;
    padding-top: 6px;
}

.post-sidebar-v2 {
    position: sticky;
    top: 24px;
}

.sidebar-tree-card {
    padding: 24px 22px;
}

.sidebar-category-tree {
    margin-top: 18px;
    display: grid;
    gap: 18px;
}

.sidebar-category-group {
    border-bottom: 1px solid rgba(255,255,255,.06);
    padding-bottom: 16px;
}

.sidebar-category-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-category-title {
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 10px;
}

.sidebar-category-title.active {
    color: #bef264;
}

.sidebar-post-list {
    display: grid;
    gap: 8px;
    padding-left: 8px;
}

.sidebar-post-link,
.sidebar-empty {
    text-decoration: none;
    color: #d4d4d8;
    font-size: .96rem;
    line-height: 1.45;
}

.sidebar-post-link:hover {
    color: #ffffff;
}

.sidebar-post-link.current {
    color: #7dd3fc;
    font-weight: 700;
}

@media (max-width: 980px) {
    .post-layout-v2 {
        grid-template-columns: 1fr;
    }

    .post-sidebar-v2 {
        position: static;
    }

    .post-main-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 640px) {
    .post-main-panel,
    .sidebar-tree-card {
        padding: 22px 18px;
    }

    .post-main-title {
        font-size: 1.85rem;
    }

    .post-main-head {
        gap: 10px;
    }

    .post-main-meta {
        white-space: normal;
    }
}


/* ===== Accordion sidebar and category page ===== */
.accordion-head {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 8px;
    align-items: start;
}

.accordion-toggle {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
}

.accordion-toggle:hover {
    background: rgba(255,255,255,.10);
}

.accordion-symbol {
    transform: translateY(-1px);
}

.sidebar-category-title-link {
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    line-height: 1.35;
    padding-top: 2px;
}

.sidebar-category-title-link:hover {
    color: #7dd3fc;
}

.sidebar-category-title-link.active {
    color: #bef264;
}

.accordion-panel[hidden] {
    display: none !important;
}

.category-posts-list {
    display: grid;
    gap: 18px;
}

.category-post-card {
    background: rgba(24,24,27,.72);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 24px;
    padding: 24px;
}

.category-post-card h2 {
    margin: 10px 0 12px;
    font-size: 1.5rem;
    line-height: 1.25;
}

.category-post-card h2 a {
    color: #ffffff;
    text-decoration: none;
}

.category-post-card h2 a:hover {
    color: #7dd3fc;
}

.category-post-card p {
    color: #d4d4d8;
    line-height: 1.75;
    margin: 0 0 18px;
}

.category-post-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    color: #a1a1aa;
    font-size: .9rem;
}

