/* ── Reset ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Base ── */
body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
    line-height: 1.6;
}


/* ── Page layout ── */
.page { padding-top: 3.5rem; }

.post-hero {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.post-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}

/* ── Post header ── */
.post-tag {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #e07820;
    font-weight: 600;
}

.post-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-top: 0.6rem;
    margin-bottom: 0.5rem;
}

.post-meta {
    font-size: 0.82rem;
    color: #555;
    margin-bottom: 2.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #777;
    text-decoration: none;
    margin-bottom: 2.5rem;
}

.back-link:hover { color: #b0b0b0; }

/* ── Post body base ── */
.post-body { display: flex; flex-direction: column; gap: 0; }

/* ── title (h2 section heading) ── */
.post-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

/* ── subtitle (h3) ── */
.post-subtitle {
    font-size: 1.05rem;
    font-weight: 600;
    color: #d0d0d0;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* ── text (paragraph) ── */
.post-text {
    font-size: 1rem;
    color: #b0b0b0;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

/* ── lists ── */
.post-list {
    margin: 0 0 1.25rem 1.5rem;
    color: #b0b0b0;
    font-size: 1rem;
    line-height: 1.8;
}

.post-list li { margin-bottom: 0.4rem; }

/* ── callout base (legacy class kept for backward compat) ── */
.callout,
.post-callout {
    background: #222;
    border-left: 3px solid #e07820;
    border-radius: 0 10px 10px 0;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    color: #c0c0c0;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ── tip (teal accent) ── */
.post-callout--tip {
    border-left-color: #2ab8a0;
    background: #1e2e2b;
}

.post-callout--tip::before {
    content: 'TIP';
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #2ab8a0;
    margin-bottom: 0.4rem;
}

/* ── warning (amber accent) ── */
.post-callout--warning {
    border-left-color: #e8a422;
    background: #2a2418;
}

.post-callout--warning::before {
    content: 'WARNING';
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #e8a422;
    margin-bottom: 0.4rem;
}

/* ── card ── */
.post-card {
    background: #222;
    border: 1px solid #2d2d2d;
    border-top: 3px solid #e07820;
    border-radius: 0 0 10px 10px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.post-card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.post-card-body {
    font-size: 0.95rem;
    color: #b0b0b0;
    line-height: 1.7;
}

/* ── chip-items ── */
.post-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 1.25rem 0;
}

.post-chips-label {
    font-size: 0.82rem;
    color: #777;
    margin-right: 0.25rem;
    white-space: nowrap;
}

.chip {
    display: inline-block;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 20px;
    padding: 0.2rem 0.75rem;
    font-size: 0.82rem;
    color: #c0c0c0;
    font-family: 'DM Mono', monospace;
    white-space: nowrap;
}

/* ── comparison ── */
.post-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.comparison-col {
    background: #222;
    border: 1px solid #2d2d2d;
    border-radius: 10px;
    padding: 1rem 1.25rem;
}

.comparison-col-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 0.6rem;
}

.comparison-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comparison-col li {
    font-size: 0.9rem;
    color: #b0b0b0;
    line-height: 1.7;
    padding: 0.15rem 0;
}

/* ── gear-card ── */
.post-gear-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #222;
    border: 1px solid #2d2d2d;
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    margin: 1.5rem 0;
}

.post-gear-card-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.post-gear-card-content { flex: 1; }

.post-gear-card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.35rem;
}

.post-gear-card-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.post-gear-card-tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #e07820;
    background: rgba(224, 120, 32, 0.12);
    border: 1px solid rgba(224, 120, 32, 0.3);
    border-radius: 4px;
    padding: 0.1rem 0.45rem;
}

.post-gear-card-desc {
    font-size: 0.9rem;
    color: #909090;
    line-height: 1.6;
}

/* ── image ── */
.post-figure {
    margin: 1.75rem 0;
}

.post-figure img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.post-figure figcaption {
    font-size: 0.8rem;
    color: #555;
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

/* ── footer ── */
footer {
    text-align: center;
    padding: 2.5rem 2rem;
    border-top: 1px solid #2d2d2d;
    color: #555;
    font-size: 0.85rem;
}

footer a { color: #777; text-decoration: none; }
footer a:hover { color: #aaa; }

/* ── Table of contents ── */
.post-toc {
    position: static;
    display: block;
    top: auto;
    left: auto;
    right: auto;
    justify-content: initial;
    align-items: initial;
    z-index: auto;
    backdrop-filter: none;
    border-bottom: none;
    background: transparent;
    border: none;
    border-left: 2px solid #2d2d2d;
    border-radius: 0;
    padding: 0.25rem 0 0.25rem 1.25rem;
    margin-bottom: 2.5rem;
}

.post-toc-label {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #555;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.post-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.post-toc-list li {
    padding: 0;
}

.post-toc-list a {
    color: #777;
    text-decoration: none;
    font-size: 0.88rem;
    line-height: 1.5;
    transition: color 0.15s;
}

.post-toc-list a:hover { color: #e0e0e0; }

/* ── Inline links in post body ── */
.post-body a {
    color: #e07820;
    text-decoration: none;
    border-bottom: 1px solid rgba(224, 120, 32, 0.3);
}

.post-body a:hover { border-bottom-color: #e07820; }

/* ── Related posts ── */
.related-posts {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid #2d2d2d;
}

.related-posts-title {
    font-size: 0.72rem;
    font-weight: 700;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.25rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.related-card {
    display: block;
    background: #222;
    border: 1px solid #2d2d2d;
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    text-decoration: none;
    transition: border-color 0.15s;
}

.related-card:hover { border-color: #444; }

.related-card-tag {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #e07820;
    font-weight: 600;
    display: block;
    margin-bottom: 0.4rem;
}

.related-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    margin-bottom: 0.4rem;
}

.related-card-desc {
    font-size: 0.82rem;
    color: #777;
    line-height: 1.5;
    margin-bottom: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card-meta {
    font-size: 0.75rem;
    color: #555;
}

/* ── Tool Reference ── */
.post-tool-reference {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(224, 120, 32, 0.08) 0%, rgba(224, 120, 32, 0.04) 100%);
    border: 1px solid rgba(224, 120, 32, 0.2);
    border-radius: 10px;
    padding: 1.25rem;
    margin: 2rem 0;
    text-decoration: none;
    transition: border-color 0.15s, background-color 0.15s;
}

.post-tool-reference:hover {
    border-color: rgba(224, 120, 32, 0.4);
    background: linear-gradient(135deg, rgba(224, 120, 32, 0.12) 0%, rgba(224, 120, 32, 0.06) 100%);
}

.tool-ref-icon {
    font-size: 1.75rem;
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.8;
}

.tool-ref-content {
    flex: 1;
    min-width: 0;
}

.tool-ref-tag {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #e07820;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.tool-ref-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 0.4rem;
}

.tool-ref-desc {
    font-size: 0.82rem;
    color: #999;
    line-height: 1.5;
    margin-bottom: 0.6rem;
}

.tool-ref-link {
    font-size: 0.8rem;
    color: #e07820;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
}

.tool-ref-link:hover {
    color: #ff9945;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .post-title { font-size: 1.6rem; }
    .post-comparison { grid-template-columns: 1fr; }
    .related-posts-grid { grid-template-columns: 1fr; }
}
