/* ==========================================================================
   SKMS article pages — extends styles.css
   ========================================================================== */

.container-narrow { max-width: 760px; }

/* ---------- Article header ---------- */
.post-header {
    margin-top: var(--header-h);
    background: var(--ink);
    color: #fff;
    padding-block: 64px 56px;
}
.post-header h1 {
    font-size: clamp(2rem, 4.4vw, 3rem);
    line-height: 1.14;
    color: #fff;
    margin-bottom: 22px;
}
.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    font-size: .9rem;
    color: rgba(255, 255, 255, .68);
}
.post-meta i { margin-right: 7px; opacity: .75; }

.badge-inline {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    font-size: .76rem;
    font-weight: 600;
    color: #fff;
    background: var(--brand-lift);
    border-radius: 999px;
}
.badge-inline.tax { background: var(--brand-lift); }
.badge-inline.compliance { background: #1B7CA5; }
.badge-inline.business { background: #12996A; }
.badge-inline.guides { background: #A5651B; }

.post-cover {
    width: 100%;
    height: auto;
    margin-top: -34px;
    margin-bottom: 44px;
    border-radius: 14px;
    border: 1px solid var(--rule);
    box-shadow: var(--lift);
}

/* ---------- Body typography ---------- */
.post-body {
    font-size: 1.115rem;
    line-height: 1.72;
    color: var(--ink-2);
}
.post-body > p { margin-bottom: 24px; }

.post-body .lead {
    font-family: var(--display);
    font-size: 1.4rem;
    line-height: 1.48;
    color: var(--ink);
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--rule);
}

.post-body h2 {
    font-size: 1.72rem;
    line-height: 1.24;
    margin: 46px 0 16px;
}
.post-body h3 {
    font-size: 1.28rem;
    margin: 34px 0 12px;
}
.post-body h2:first-child, .post-body h3:first-child { margin-top: 0; }

.post-body ul, .post-body ol { margin: 0 0 26px; padding-left: 0; }
.post-body ol { counter-reset: step; }
.post-body li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 11px;
}
.post-body ul > li::before {
    content: "";
    position: absolute;
    left: 6px; top: .72em;
    width: 6px; height: 6px;
    background: var(--brand);
    border-radius: 50%;
}
.post-body ol > li {
    counter-increment: step;
}
.post-body ol > li::before {
    content: counter(step) ".";
    position: absolute;
    left: 0; top: 0;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--brand);
}
.post-body li > strong { color: var(--ink); }

.post-body strong { color: var(--ink); font-weight: 600; }
.post-body em { font-style: italic; }
.post-body a { color: var(--brand); }

/* ---------- Key facts, set as a ledger ---------- */
.keyfacts {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-left: 3px solid var(--brand);
    border-radius: 12px;
    padding: 26px 28px 22px;
    margin: 34px 0;
}
.keyfacts h3 {
    font-family: var(--ui);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin: 0 0 6px;
}
.keyfacts dl { margin: 0; }
.keyfacts dl > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid var(--rule);
}
.keyfacts dl > div:last-child { border-bottom: 0; }
.keyfacts dt { font-size: 1rem; color: var(--ink-2); }
.keyfacts dd {
    margin: 0;
    font-family: var(--display);
    font-size: 1.24rem;
    font-weight: 600;
    color: var(--ink);
    text-align: right;
    font-variant-numeric: tabular-nums lining-nums;
    white-space: nowrap;
}
.keyfacts dd span {
    display: block;
    font-family: var(--ui);
    font-size: .78rem;
    font-weight: 400;
    color: var(--ink-3);
    text-decoration: line-through;
}
.keyfacts-note {
    margin: 14px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--rule);
    font-size: .88rem;
    color: var(--ink-3);
}

/* ---------- Disclaimer ---------- */
.post-disclaimer {
    margin: 44px 0 0;
    padding: 20px 22px;
    background: var(--brand-wash);
    border-radius: 11px;
    font-size: .95rem;
    color: var(--ink-2);
}
.post-disclaimer strong { color: var(--ink); }

/* ---------- Author ---------- */
.post-author {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    margin: 34px 0 0;
    padding: 26px 0 0;
    border-top: 1px solid var(--rule);
}
.post-author img { width: 100%; height: auto; }
.post-author strong {
    display: block;
    font-family: var(--display);
    font-size: 1.2rem;
    color: var(--ink);
    margin-bottom: 6px;
}
.post-author p { font-size: .96rem; color: var(--ink-3); margin-bottom: 10px; }

/* ---------- Related ---------- */
.post-related {
    margin-top: 66px;
    padding-block: 56px;
    background: var(--paper);
    border-top: 1px solid var(--rule);
}
.post-related h2 { font-size: 1.5rem; margin-bottom: 24px; }
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}
.related-card {
    display: block;
    padding: 22px;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: 12px;
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.related-card:hover { border-color: var(--rule-strong); box-shadow: var(--lift); }
.related-card strong {
    display: block;
    font-family: var(--display);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.32;
    color: var(--ink);
    margin: 12px 0 8px;
}
.related-meta { font-size: .84rem; color: var(--ink-3); }

@media (max-width: 640px) {
    .post-cover { margin-top: -24px; margin-bottom: 32px; }
    .post-body { font-size: 1.06rem; }
    .post-body .lead { font-size: 1.24rem; }
    .keyfacts { padding: 20px 18px 16px; }
    .keyfacts dl > div { flex-direction: column; gap: 2px; align-items: flex-start; }
    .keyfacts dd { text-align: left; }
    .post-author { grid-template-columns: 1fr; gap: 14px; }
    .post-author picture { max-width: 120px; }
}
