/* ==========================================================================
   Single article page — loaded only on post pages.
   Depends on the tokens defined in site.css.
   ========================================================================== */

/* ---------- breadcrumb ---------- */

.crumbs {
    display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
    font-size: 13px; color: var(--ink-soft);
    background: var(--paper); border: 1px solid var(--rule);
    padding: 11px 16px; margin-bottom: var(--gap);
}
.crumbs span[aria-hidden] { opacity: .45; }
.crumbs-current { color: var(--ink); font-weight: 600; }

/* ---------- headline block ---------- */

.badge-pill {
    display: inline-flex; align-items: center; gap: 6px;
    border-radius: 999px; padding: 4px 12px 4px 9px; font-size: 12px;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; }

.article-standfirst {
    font-size: 17px; line-height: 1.7; color: var(--ink);
    border-left: 4px solid var(--accent);
    padding: 2px 0 2px 14px; margin: 0 0 18px;
}

.article-meta { align-items: center; }
.am-author { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.am-author img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }

.sponsored-note {
    margin: 14px 0 0; font-size: 13px; color: var(--ink-soft);
    border: 1px dashed var(--rule); padding: 8px 12px;
}

.article-tags { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rule); }

/* ---------- author box ---------- */

.box-label {
    font-size: 13px; font-weight: 700; letter-spacing: .4px;
    margin: 0 0 14px; padding-bottom: 8px;
    border-bottom: 1px solid var(--rule); position: relative;
}
.box-label::after {
    content: ''; position: absolute; left: 0; bottom: -1px;
    width: 62px; height: 3px; background: var(--accent);
}

.author-box { margin-top: 34px; padding-top: 4px; }
.author-box-inner {
    display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 18px;
    background: var(--wash); border: 1px solid var(--rule); padding: 18px;
}
.author-box-avatar { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; }
.author-box-name { font-size: 18px; font-weight: 700; margin: 0; color: var(--accent); }
.author-box-role { font-size: 13px; color: var(--ink-soft); margin: 2px 0 10px; }
.author-box-bio { font-size: 14.5px; line-height: 1.75; margin: 0 0 14px; }

/* ---------- previous / next ---------- */

.post-nav {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
    margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--rule);
    font-size: 15px; font-weight: 600; line-height: 1.5;
}
.post-nav-next { text-align: right; }
.post-nav-label {
    display: block; font-size: 12px; font-weight: 700;
    color: var(--accent); margin-bottom: 5px;
}

/* ---------- sidebar search ---------- */

.side-search { display: flex; }
.side-search input {
    flex: 1; min-width: 0; padding: 10px 12px;
    border: 1px solid var(--rule); border-right: 0;
    font-family: var(--sans); font-size: 14.5px;
}
.side-search button {
    background: var(--accent); color: #fff; border: 0;
    padding: 0 18px; font-family: var(--sans);
    font-size: 12.5px; font-weight: 700; letter-spacing: .5px; cursor: pointer;
}
.side-search button:hover { background: var(--accent-dk); }

/* ---------- responsive ---------- */

@media (max-width: 620px) {
    .article-standfirst { font-size: 15.5px; }
    .author-box-inner { grid-template-columns: 1fr; text-align: center; }
    .author-box-avatar { margin: 0 auto; }
    .post-nav { grid-template-columns: 1fr; gap: 16px; }
    .post-nav-next { text-align: left; }
    .crumbs { font-size: 12px; padding: 9px 12px; }
}

/* ==========================================================================
   SHARE BUTTONS
   ========================================================================== */

.share {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    margin: 24px 0 4px; padding: 16px 0;
    border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.share-label { font-size: 13px; font-weight: 700; margin-inline-end: 4px; }

.share-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 13px; border: 0; border-radius: 3px;
    font-family: var(--sans); font-size: 13px; font-weight: 600;
    color: #fff; cursor: pointer; line-height: 1;
}
.share-btn:hover { opacity: .86; color: #fff; }

.s-fb   { background: #3b5998; }
.s-wa   { background: #25d366; }
.s-x    { background: #111; }
.s-tg   { background: #2aabee; }
.s-copy { background: var(--ink-soft); }

@media (max-width: 620px) {
    /* Icons only on a phone — five labelled buttons wrap into a mess. */
    .share-text { display: none; }
    .share-btn { padding: 10px 14px; font-size: 15px; }
    .share { gap: 6px; }
}
