:root {
    --bg: #000000;
    --panel: #0b0b0b;
    --panel-2: #101010;
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);
    --text: var(--text-secondary);
    --muted: var(--text-muted);
    --muted-2: rgba(255, 255, 255, 0.55);
    --accent: var(--primary-color);
    --accent-2: var(--primary-dark);
    --danger: #ff4d6d;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.65);
    --radius: 18px;
}

body {
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Post Layout */
.post {
    padding: 130px 0 90px;
    position: relative;
}

.post::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.03), transparent 30%, transparent);
    pointer-events: none;
}

.wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Minimal header */
.post-header {
    padding: 0 0 18px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px;
}

.post-header h1 {
    font-size: 38px;
    line-height: 1.15;
    font-weight: 900;
    margin: 10px 0 10px;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.post-header h1 span {
    display: block;
    margin-top: 10px;
    font-size: 18px;
    font-weight: 650;
    color: #ffffff;
    line-height: 1.5;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    color: var(--muted);
    font-weight: 650;
    font-size: 14px;
}

.meta a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.meta a:hover {
    border-bottom-color: var(--line-2);
}

.post-cover {
    margin: 18px 0 22px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--panel);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-cover img {
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: contain;
    filter: grayscale(0.20) contrast(1.05) brightness(0.78);
    display: block;
}

.kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.88);
    font-weight: 700;
}

.dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
}

.lede {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 17px;
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.post .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--line-2);
    text-decoration: none;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    font-weight: 700;
}

.post .btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.22);
}

.post .btn-accent {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.18), rgba(52, 211, 153, 0.10));
    border-color: rgba(16, 185, 129, 0.32);
}

.metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.metric {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 12px;
    background: rgba(0, 0, 0, 0.25);
}

.metric .k {
    display: block;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.metric .v {
    display: block;
    margin-top: 6px;
    font-weight: 900;
    color: #fff;
}

/* Minimal TOC */
details.toc-box {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    margin: 0 0 18px;
    overflow: hidden;
}

details.toc-box summary {
    cursor: pointer;
    padding: 12px 14px;
    font-weight: 900;
    color: #fff;
    list-style: none;
}

details.toc-box summary::-webkit-details-marker {
    display: none;
}

details.toc-box summary::after {
    content: '+';
    float: right;
    color: var(--muted);
}

details.toc-box[open] summary::after {
    content: '–';
}

.toc {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 14px 14px;
}

.toc a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 700;
    font-size: 13px;
    line-height: 1.4;
    border-left: 2px solid transparent;
    padding-left: 10px;
    transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.toc a:hover {
    color: var(--text);
    transform: translateX(2px);
}

.toc a.is-active {
    color: #ffffff;
    border-left-color: var(--accent);
}

.toc .toc-sublink {
    font-weight: 600;
    color: var(--muted-2);
    padding-left: 18px;
}

.post-content {
    counter-reset: section;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.02);
    padding: 22px 22px;
}

.post-content p {
    color: var(--text);
    line-height: 1.95;
    font-size: 16.5px;
    margin: 0 0 18px;
}

.post-content strong {
    color: #ffffff;
    font-weight: 700;
}

.intro {
    padding: 16px 18px;
    border: 1px solid rgba(16, 185, 129, 0.22);
    border-radius: 14px;
    background: rgba(16, 185, 129, 0.06);
    color: var(--text);
    margin-bottom: 18px;
}

.post-content h2 {
    margin: 32px 0 14px;
    font-size: 22px;
    font-weight: 950;
    color: #ffffff;
    letter-spacing: -0.01em;
    position: relative;
    padding-top: 8px;
}

.post-content h2::before {
    counter-increment: section;
    content: counter(section, decimal-leading-zero);
    display: inline-block;
    margin-right: 10px;
    font-size: 12px;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 10px;
    vertical-align: middle;
}

.post-content h3 {
    margin: 22px 0 10px;
    font-size: 17px;
    font-weight: 900;
    color: #ffffff;
}

.callout {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    padding: 16px 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    margin: 22px 0;
}

.callout .callout-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
}

.callout .callout-title {
    font-weight: 950;
    color: #fff;
    margin-bottom: 6px;
}

.callout--danger {
    border-color: rgba(255, 77, 109, 0.28);
    background: rgba(255, 77, 109, 0.06);
}

.callout--danger .callout-icon {
    border-color: rgba(255, 77, 109, 0.25);
    background: rgba(255, 77, 109, 0.10);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0 10px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.25);
    padding: 14px 14px;
}

.stat .top {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stat .value {
    font-size: 28px;
    font-weight: 950;
    color: #fff;
    margin-top: 10px;
    white-space: nowrap;
}

.stat .desc {
    color: var(--muted);
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.checklist {
    list-style: none;
    margin: 18px 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.checklist li {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    padding: 14px 14px 14px 44px;
    position: relative;
}

.checklist li::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 14px;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1px solid rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.12);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.06);
}

.checklist li::after {
    content: '✓';
    position: absolute;
    left: 19px;
    top: 12px;
    color: var(--primary-color);
    font-weight: 900;
    font-size: 14px;
}

.cta {
    margin: 22px 0;
    border: 1px solid rgba(16, 185, 129, 0.22);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.02);
    padding: 18px;
}

.cta h3 {
    color: #fff;
    margin-top: 0;
}

.cta ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: grid;
    gap: 10px;
}

.cta li {
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.25);
}

details.faq {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    padding: 0;
    margin: 10px 0;
    overflow: hidden;
}

details.faq summary {
    cursor: pointer;
    padding: 14px 14px;
    list-style: none;
    font-weight: 900;
    color: #fff;
}

details.faq summary::-webkit-details-marker {
    display: none;
}

details.faq summary::after {
    content: '+';
    float: right;
    color: var(--muted);
    font-weight: 900;
}

details.faq[open] summary::after {
    content: '–';
}

.faq-body {
    padding: 0 14px 14px;
    color: var(--muted);
}

.conclusion {
    margin: 22px 0;
    padding: 16px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font-weight: 800;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 820px) {
    .post-content {
        padding: 20px;
    }

    .post-header h1 {
        font-size: 30px;
    }

    .post-cover img {
        max-height: 260px;
    }
}
