/* ===========================================================================
   Lifehaki — Blog detail page (/blog/{slug}).
   Loaded only when bodyClass contains `lh-blog-detail` (see templates/layout.php).

   Scoped under `body.lh-blog-detail` so it outranks the generic `.blog-*`
   rules in lifehaki-design.css. New components use the `bd-*` prefix; the WP
   content column keeps `.blog-article__body` so the existing media-overflow
   clamps in lifehaki-design.css still apply.
   =========================================================================== */

body.lh-blog-detail {
    --bd-paper: #f5f5f9;
    --bd-white: #fff;
    --bd-ink: #15171c;
    --bd-ink-2: #20242b;
    --bd-body: #3a3f47;
    --bd-mid: #565d68;
    --bd-muted: #767d89;
    --bd-faint: #9aa0ab;
    --bd-line: #e3e3ea;
    --bd-line-2: #eeeef3;
    --bd-line-3: #e8e8ee;
    --bd-red: #ca2128;
    --bd-red-dark: #a81a20;
    --bd-red-tint: #faf3f2;
    --bd-gold: #fdc949;
    --bd-gold-700: #c8951f;

    --bd-display: 'Fraunces', Georgia, serif;
    --bd-text: 'Urbanist', system-ui, sans-serif;
    --bd-cond: 'Barlow Condensed', sans-serif;
    --bd-mono: 'DM Mono', ui-monospace, monospace;

    background: var(--bd-paper);
}
/* Runaway WordPress media must not widen the page — but the clip has to sit
   OUTSIDE the reading column, or it slices every card shadow in that column
   into a straight vertical edge (the shadows reach past their full-width box
   on both sides). So: clip on the outer <main> only, where the 20/40px page
   gutter leaves the glows room, and clip the untrusted WP HTML itself. */
body.lh-blog-detail main:not(.bd-main) { overflow-x: hidden; }
body.lh-blog-detail .blog-article__body {
    overflow-x: clip;                     /* clip, not hidden — keeps y visible */
    padding-inline: 16px; margin-inline: -16px;   /* room for inline card glows */
}

/* --- global header, comp treatment -------------------------------------- */
/* The comp's own nav is a sticky translucent white bar (rgba(255,255,255,.86),
   blur(10px), 1px #e8e8ee rule, 1180px inner at 15px/40px). The site header is
   already sticky + translucent, so this just retunes it to those numbers
   rather than shipping a second nav. */
body.lh-blog-detail .nav {
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--bd-line-3);
    padding: 15px 0;
}
body.lh-blog-detail .nav-inner { max-width: 1180px; padding: 0 40px; }
body.lh-blog-detail .nav-link { font: 600 15px/1 var(--bd-text); color: var(--bd-mid); }
body.lh-blog-detail .nav-link:hover { color: var(--bd-red); }
body.lh-blog-detail .logo-img { height: 34px; max-height: 34px; }
@media (max-width: 720px) {
    body.lh-blog-detail .nav-inner { padding: 0 20px; }
}

/* ---------------------------------------------------- reading progress --- */
body.lh-blog-detail .bd-progress {
    position: fixed; top: 0; left: 0; right: 0; height: 3px;
    z-index: 2000; background: transparent; pointer-events: none;
}
body.lh-blog-detail .bd-progress i {
    display: block; height: 100%; width: 0;
    background: linear-gradient(90deg, var(--bd-gold), var(--bd-red));
}

/* ---------------------------------------------------------- page shell --- */
body.lh-blog-detail .bd-layout {
    max-width: 1180px; margin: 0 auto; padding: 32px 40px 20px;
    display: grid; grid-template-columns: minmax(0, 1fr) 340px;
    gap: 56px; align-items: start;
}
body.lh-blog-detail .bd-main { min-width: 0; max-width: 820px; }

body.lh-blog-detail .bd-crumbs {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
    font: 400 12px/1.4 var(--bd-mono); color: var(--bd-faint);
    margin: 0 0 24px;
}
body.lh-blog-detail .bd-crumbs a { color: var(--bd-faint); text-decoration: none; }
body.lh-blog-detail .bd-crumbs a:hover { color: var(--bd-red); }
body.lh-blog-detail .bd-crumbs span:last-child { color: var(--bd-mid); }

body.lh-blog-detail .bd-title {
    font: 900 clamp(30px, 4.4vw, 46px)/1.06 var(--bd-display);
    letter-spacing: -.022em; color: var(--bd-ink);
    margin: 0 0 22px; overflow-wrap: break-word;
}

/* -------------------------------------------------------------- byline --- */
body.lh-blog-detail .bd-byline {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    padding-bottom: 26px; border-bottom: 1px solid var(--bd-line-3); margin-bottom: 28px;
}
body.lh-blog-detail .bd-avatar {
    width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
    background: var(--bd-line-2);
}
body.lh-blog-detail .bd-byline-meta { flex: 1; min-width: 0; }
body.lh-blog-detail .bd-byline-name {
    font: 800 15px/1.3 var(--bd-text); color: var(--bd-ink); text-decoration: none;
}
body.lh-blog-detail .bd-byline-name:hover { color: var(--bd-red); }
body.lh-blog-detail .bd-byline-sub { font: 400 12px/1.5 var(--bd-mono); color: var(--bd-faint); }

/* Like / Save / Share pill cluster. */
body.lh-blog-detail .bd-actions { display: flex; align-items: center; gap: 10px; }
body.lh-blog-detail .bd-like,
body.lh-blog-detail .bd-save,
body.lh-blog-detail .bd-share {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: 999px; border: 1px solid var(--bd-line);
    background: var(--bd-white); color: var(--bd-mid); cursor: pointer;
    font: 700 14px/1 var(--bd-text);
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}
body.lh-blog-detail .bd-like { padding: 9px 15px; }
body.lh-blog-detail .bd-save,
body.lh-blog-detail .bd-share { width: 42px; height: 40px; }
body.lh-blog-detail .bd-like:hover { border-color: var(--bd-red); }
body.lh-blog-detail .bd-save:hover { border-color: var(--bd-gold-700); }
body.lh-blog-detail .bd-share:hover { border-color: var(--bd-ink); color: var(--bd-ink); }
body.lh-blog-detail .bd-like.is-on {
    background: #fbe4e2; border-color: var(--bd-red); color: var(--bd-red);
}
body.lh-blog-detail .bd-save.is-on {
    background: #fef4d6; border-color: var(--bd-gold-700); color: var(--bd-gold-700);
}
body.lh-blog-detail .bd-share.is-on { border-color: var(--bd-red); color: var(--bd-red); }
body.lh-blog-detail .bd-like:disabled,
body.lh-blog-detail .bd-save:disabled { opacity: .6; cursor: default; }

/* ------------------------------------------------------- feature image --- */
body.lh-blog-detail .bd-feature { margin: 0 0 12px; }
body.lh-blog-detail .bd-feature img {
    width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; object-fit: cover;
    /* Negative spread keeps the glow's horizontal reach (blur/2 + spread)
       inside the 20px mobile gutter — otherwise main's overflow-x clip slices
       it into a straight vertical edge. Same reasoning on every soft shadow. */
    border-radius: 16px; box-shadow: 0 14px 34px -10px rgba(21,23,40,.20);
    background: var(--bd-line-2);
}
body.lh-blog-detail .bd-feature figcaption {
    font: 400 12px/1.5 var(--bd-mono); color: var(--bd-faint);
    text-align: center; margin-top: 12px;
}

/* -------------------------------------------------------- article body --- */
body.lh-blog-detail .blog-article__body {
    max-width: none; margin-top: 32px;
    font: 400 18px/1.72 var(--bd-text); color: var(--bd-body);
}
body.lh-blog-detail .blog-article__body h2 {
    font: 900 clamp(24px, 3.4vw, 30px)/1.1 var(--bd-display);
    letter-spacing: -.02em; color: var(--bd-ink);
    margin: 1.6em 0 .55em; scroll-margin-top: 90px;
}
body.lh-blog-detail .blog-article__body h3 {
    font: 900 clamp(20px, 2.6vw, 25px)/1.15 var(--bd-display);
    letter-spacing: -.02em; color: var(--bd-ink); margin: 1.4em 0 .5em;
}
body.lh-blog-detail .blog-article__body h4 {
    font: 800 19px/1.35 var(--bd-text); color: var(--bd-ink); margin: 1.3em 0 .5em;
}
body.lh-blog-detail .blog-article__body h5 {
    font: 800 17px/1.35 var(--bd-text); color: var(--bd-ink); margin: 1.2em 0 .45em;
}
body.lh-blog-detail .blog-article__body h6 {
    font: 700 12px/1.35 var(--bd-cond); letter-spacing: .1em; text-transform: uppercase;
    color: var(--bd-mid); margin: 1.2em 0 .45em;
}
/* Every heading is a TOC anchor target — keep it clear of the sticky header. */
body.lh-blog-detail .blog-article__body h3,
body.lh-blog-detail .blog-article__body h4,
body.lh-blog-detail .blog-article__body h5,
body.lh-blog-detail .blog-article__body h6 { scroll-margin-top: 90px; }
body.lh-blog-detail .blog-article__body a { color: var(--bd-red); font-weight: 600; }
body.lh-blog-detail .blog-article__body a:hover { color: var(--bd-red-dark); }
body.lh-blog-detail .blog-article__body img { border-radius: 12px; }
body.lh-blog-detail .blog-article__body blockquote {
    border-left: 3px solid var(--bd-gold); background: var(--bd-white);
    border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 1.6em 0;
    font: 500 18px/1.6 var(--bd-text); color: var(--bd-ink-2);
}
/* Larger lede paragraph (no drop cap — removed by request). */
body.lh-blog-detail .blog-article__body > p:first-of-type {
    font-size: 20px; line-height: 1.62; color: var(--bd-ink-2);
}
body.lh-blog-detail .blog-article__body table {
    width: 100%; border-collapse: collapse; background: var(--bd-white);
    border-radius: 16px; overflow: hidden; font-family: var(--bd-text);
    box-shadow: 0 4px 20px rgba(21,23,40,.08);
}
body.lh-blog-detail .blog-article__body th {
    text-align: left; padding: 14px 20px; background: var(--bd-red-tint);
    font: 700 12px/1.2 var(--bd-cond); letter-spacing: .1em;
    text-transform: uppercase; color: var(--bd-red);
}
body.lh-blog-detail .blog-article__body td {
    padding: 13px 20px; border-top: 1px solid var(--bd-line-2);
    font: 500 15px/1.5 var(--bd-text); color: var(--bd-ink-2);
}

/* Inline "Also read" card dropped into the body after the lede. */
body.lh-blog-detail .bd-alsoread {
    display: flex; align-items: center; gap: 14px; text-decoration: none;
    background: var(--bd-white); border-radius: 14px;
    box-shadow: 0 4px 18px rgba(21,23,40,.07);
    padding: 16px 18px; margin: 0 0 34px;
    transition: transform .2s cubic-bezier(.16,1,.3,1), box-shadow .2s ease;
}
body.lh-blog-detail .bd-alsoread:hover {
    transform: translateY(-2px); box-shadow: 0 10px 26px rgba(21,23,40,.11);
}
body.lh-blog-detail .bd-alsoread-label {
    flex-shrink: 0; font: 700 12px/1 var(--bd-cond);
    letter-spacing: .14em; text-transform: uppercase; color: var(--bd-gold-700);
}
body.lh-blog-detail .bd-alsoread-title {
    font: 700 16px/1.35 var(--bd-text); color: var(--bd-ink);
}

/* ---------------------------------------------------------------- tags --- */
body.lh-blog-detail .bd-tags {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 38px 0 0;
}
body.lh-blog-detail .bd-tags-label {
    font: 700 12px/1 var(--bd-cond); letter-spacing: .14em;
    text-transform: uppercase; color: var(--bd-muted);
}
body.lh-blog-detail .bd-tag {
    display: inline-block; padding: 7px 14px; border-radius: 999px;
    background: var(--bd-red-tint); color: var(--bd-red);
    border: 1px solid #f0dcdc; text-decoration: none;
    font: 500 13px/1 var(--bd-mono);
}
body.lh-blog-detail .bd-tag:hover {
    background: var(--bd-red); color: #fffdf8; border-color: var(--bd-red);
}

/* -------------------------------------------------------- author card --- */
body.lh-blog-detail .bd-author {
    position: relative; overflow: hidden;
    display: flex; gap: 20px; align-items: flex-start;
    background: linear-gradient(135deg, #15171c 0%, #3a1519 52%, #ca2128 118%);
    border-radius: 16px; box-shadow: 0 18px 34px -12px rgba(202,33,40,.42);
    padding: 26px; margin: 44px 0 0;
}
body.lh-blog-detail .bd-author::before {
    content: ''; position: absolute; top: -70px; right: -40px;
    width: 260px; height: 260px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(253,201,73,.28), rgba(253,201,73,0) 70%);
}
body.lh-blog-detail .bd-author img {
    width: 66px; height: 66px; border-radius: 50%; object-fit: cover;
    flex-shrink: 0; position: relative;
    box-shadow: 0 0 0 3px rgba(253,201,73,.55), 0 6px 18px rgba(0,0,0,.35);
}
body.lh-blog-detail .bd-author-body { flex: 1; min-width: 0; position: relative; }
body.lh-blog-detail .bd-author-kicker {
    font: 700 12px/1 var(--bd-cond); letter-spacing: .14em;
    text-transform: uppercase; color: var(--bd-gold); margin-bottom: 4px;
}
body.lh-blog-detail .bd-author-name {
    font: 800 21px/1.2 var(--bd-display); color: #fffdf8; margin: 0 0 8px;
}
body.lh-blog-detail .bd-author-bio {
    font: 400 15px/1.6 var(--bd-text); color: rgba(255,255,255,.82); margin: 0 0 14px;
}
body.lh-blog-detail .bd-author-link {
    display: inline-flex; align-items: center; gap: 7px;
    font: 700 14px/1 var(--bd-text); color: var(--bd-gold); text-decoration: none;
}
body.lh-blog-detail .bd-author-link:hover { gap: 11px; color: var(--bd-gold); }

/* ------------------------------------------------------------ comments --- */
body.lh-blog-detail .bd-comments { margin-top: 44px; scroll-margin-top: 90px; }
body.lh-blog-detail .bd-comments-head {
    display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px;
}
body.lh-blog-detail .bd-comments-head h2 {
    font: 900 26px/1.1 var(--bd-display); letter-spacing: -.02em;
    color: var(--bd-ink); margin: 0;
}
body.lh-blog-detail .bd-comments-head span {
    font: 500 17px/1 var(--bd-mono); color: var(--bd-muted);
}
body.lh-blog-detail .bd-composer {
    display: flex; gap: 14px; background: var(--bd-white);
    border-radius: 16px; box-shadow: 0 4px 20px rgba(21,23,40,.08);
    padding: 16px; margin-bottom: 22px;
}
body.lh-blog-detail .bd-composer textarea {
    width: 100%; min-height: 46px; resize: vertical;
    border: none; outline: none; background: transparent;
    font: 500 16px/1.5 var(--bd-text); color: var(--bd-ink-2); padding: 6px 2px;
}
body.lh-blog-detail .bd-composer textarea::placeholder { color: var(--bd-faint); }
body.lh-blog-detail .bd-composer-main { flex: 1; min-width: 0; }
body.lh-blog-detail .bd-composer-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-top: 6px; border-top: 1px solid var(--bd-line-2); padding-top: 12px;
    font: 400 12px/1 var(--bd-mono); color: var(--bd-faint);
}
body.lh-blog-detail .bd-post-btn {
    background: var(--bd-red); color: #fffdf8; border: none;
    font: 700 15px/1 var(--bd-text); padding: 11px 22px; border-radius: 999px;
    cursor: pointer; box-shadow: 0 6px 16px rgba(202,33,40,.28);
}
body.lh-blog-detail .bd-post-btn:hover { background: var(--bd-red-dark); transform: translateY(-1px); }
body.lh-blog-detail .bd-signin {
    background: var(--bd-white); border-radius: 16px; padding: 18px 20px;
    box-shadow: 0 4px 20px rgba(21,23,40,.08); margin-bottom: 22px;
    font: 500 15px/1.5 var(--bd-text); color: var(--bd-muted);
}
body.lh-blog-detail .bd-signin a { color: var(--bd-red); font-weight: 700; }

body.lh-blog-detail .bd-comment-list { list-style: none; margin: 0; padding: 0; }
body.lh-blog-detail .bd-comment {
    display: flex; gap: 13px; padding: 16px 0; border-top: 1px solid var(--bd-line-2);
    list-style: none;
}
body.lh-blog-detail .bd-comment-av {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
    background: #fbe4e2; color: var(--bd-red);
    display: flex; align-items: center; justify-content: center;
    font: 800 15px/1 var(--bd-display);
}
body.lh-blog-detail .bd-comment-av img { width: 100%; height: 100%; object-fit: cover; }
body.lh-blog-detail .bd-composer .bd-comment-av { width: 42px; height: 42px; font-size: 16px; }
body.lh-blog-detail .bd-comment-main { flex: 1; min-width: 0; }
body.lh-blog-detail .bd-comment-head {
    display: flex; align-items: center; gap: 9px; margin-bottom: 5px;
}
body.lh-blog-detail .bd-comment-head strong { font: 800 15px/1 var(--bd-text); color: var(--bd-ink); }
body.lh-blog-detail .bd-comment-head time { font: 400 12px/1 var(--bd-mono); color: var(--bd-faint); }
body.lh-blog-detail .bd-comment-body {
    margin: 0 0 10px; font: 400 15px/1.55 var(--bd-text); color: var(--bd-ink-2);
    overflow-wrap: anywhere;
}
body.lh-blog-detail .bd-comment-actions { display: flex; align-items: center; gap: 18px; }
body.lh-blog-detail .bd-c-like,
body.lh-blog-detail .bd-c-reply {
    display: inline-flex; align-items: center; gap: 7px;
    background: none; border: none; cursor: pointer; padding: 0;
    color: var(--bd-muted); font: 700 13px/1 var(--bd-text);
}
body.lh-blog-detail .bd-c-like span { font: 500 13px/1 var(--bd-mono); }
body.lh-blog-detail .bd-c-like:hover,
body.lh-blog-detail .bd-c-reply:hover { color: var(--bd-red); }
body.lh-blog-detail .bd-c-like.is-on { color: var(--bd-red); }
body.lh-blog-detail .bd-c-like:disabled { cursor: default; opacity: .55; }

body.lh-blog-detail .bd-thread { list-style: none; }
body.lh-blog-detail .bd-comment--reply {
    margin-left: 30px; padding-left: 18px;
    border-top: none; border-left: 2px solid var(--bd-line);
}
body.lh-blog-detail .bd-reply-banner {
    display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
    font: 600 13px/1 var(--bd-text); color: var(--bd-muted);
}
body.lh-blog-detail .bd-reply-banner button {
    background: none; border: none; cursor: pointer; padding: 0;
    color: var(--bd-red); font: 700 13px/1 var(--bd-text);
}
body.lh-blog-detail .bd-comments-empty {
    font: 500 15px/1.5 var(--bd-text); color: var(--bd-muted); padding: 18px 0 0;
}

/* ------------------------------------------------------------- sidebar --- */
body.lh-blog-detail .bd-aside {
    position: sticky; top: 24px;
    display: flex; flex-direction: column; gap: 34px;
    /* Same reason as .bd-main: the recent-articles cards clamp their titles with
       -webkit-box, whose min-content is the full un-wrapped line (~370px). Once
       the grid stacks to one column that min-content blows the track wider than
       the viewport and the page gets clipped by body{overflow-x:hidden}. */
    min-width: 0;
}
body.lh-blog-detail .bd-aside-label {
    font: 700 12px/1 var(--bd-cond); letter-spacing: .14em;
    text-transform: uppercase; color: var(--bd-red); margin-bottom: 16px;
}
body.lh-blog-detail .bd-toc {
    background: var(--bd-white); border: 1px solid #eef0f4; border-radius: 16px;
    box-shadow: 0 4px 20px rgba(21,23,40,.07); padding: 20px 22px;
}
/* <summary> is the accordion handle — kill the UA marker, add our own chevron. */
body.lh-blog-detail .bd-toc > summary {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; cursor: pointer; list-style: none; margin-bottom: 14px;
}
body.lh-blog-detail .bd-toc > summary::-webkit-details-marker { display: none; }
body.lh-blog-detail .bd-toc > summary::after {
    content: ''; flex: 0 0 auto; width: 8px; height: 8px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s ease;
}
body.lh-blog-detail .bd-toc[open] > summary::after { transform: rotate(-135deg); }
body.lh-blog-detail .bd-toc .bd-toc-nav { display: flex; flex-direction: column; gap: 2px; }
/* Two copies exist (see $tocBlock in templates/blog/show.php) — the inline one
   rides in the article on mobile, the aside one lives in the sticky sidebar. */
body.lh-blog-detail .bd-toc--inline { display: none; margin: 0 0 30px; }
body.lh-blog-detail .bd-toc a {
    font: 600 14px/1.35 var(--bd-text); color: var(--bd-mid); text-decoration: none;
    padding: 8px 0 8px 14px; border-left: 2px solid var(--bd-line);
}
body.lh-blog-detail .bd-toc a:hover,
body.lh-blog-detail .bd-toc a.is-active { color: var(--bd-red); border-color: var(--bd-red); }
/* h3–h6 nest under their parent heading; deeper levels read quieter. */
body.lh-blog-detail .bd-toc a.lvl-3 { padding-left: 26px; font-size: 13.5px; }
body.lh-blog-detail .bd-toc a.lvl-4 { padding-left: 38px; font-size: 13px; font-weight: 500; }
body.lh-blog-detail .bd-toc a.lvl-5 { padding-left: 50px; font-size: 12.5px; font-weight: 500; }
body.lh-blog-detail .bd-toc a.lvl-6 { padding-left: 62px; font-size: 12px; font-weight: 500; }

/* "Recent articles" reuses the site-wide .blog-card. .blog-grid carries the
   page-width container from lifehaki-design.css — undo that inside the rail. */
body.lh-blog-detail .bd-aside .blog-grid {
    max-width: none; padding-left: 0; padding-right: 0;
}
/* Single column on desktop only — below 600px the shared .blog-widget__grid
   rules turn it into the same peek-carousel the home page uses. */
@media (min-width: 601px) {
    body.lh-blog-detail .bd-aside .blog-grid { grid-template-columns: 1fr; gap: 18px; }
}
body.lh-blog-detail .bd-aside .blog-card__title { font-size: 16px; }
body.lh-blog-detail .bd-aside .blog-card__body { padding: 14px 16px 16px; gap: 8px; }

body.lh-blog-detail .bd-anime-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
body.lh-blog-detail .bd-anime-grid a { display: block; text-decoration: none; }
body.lh-blog-detail .bd-anime-grid a:hover { opacity: .9; }
body.lh-blog-detail .bd-anime-art { position: relative; }
body.lh-blog-detail .bd-anime-art img,
body.lh-blog-detail .bd-anime-art .art {
    width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block;
    border-radius: 12px; box-shadow: 0 4px 16px rgba(21,23,40,.1); background: var(--bd-line-2);
}
body.lh-blog-detail .bd-anime-score {
    position: absolute; top: 8px; left: 8px;
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--bd-gold); color: var(--bd-ink);
    padding: 3px 8px; border-radius: 999px;
    font: 500 11px/1.3 var(--bd-mono);
}
body.lh-blog-detail .bd-anime-grid h3 {
    font: 800 14px/1.2 var(--bd-text); color: var(--bd-ink); margin: 9px 0 2px;
}
/* Desktop: pull the poster box in by 15px so the rail isn't edge-to-edge. */
@media (min-width: 1001px) {
    body.lh-blog-detail .bd-anime-art { max-width: calc(100% - 15px); }
}

/* "More for the binge list" now renders the shared .blog-widget section
   (templates/blog/_widget.php) — no page-local related-card styles needed. */

/* ------------------------------------------------------------ CTA band --- */
body.lh-blog-detail .bd-cta {
    position: relative; background: var(--bd-ink); overflow: hidden; margin-top: 40px;
}
body.lh-blog-detail .bd-cta::before {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 640px; height: 640px; transform: translate(-50%, -50%);
    border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(253,201,73,.2), rgba(253,201,73,0) 68%);
}
body.lh-blog-detail .bd-cta-inner {
    position: relative; z-index: 2; max-width: 820px; margin: 0 auto;
    padding: 74px 40px; text-align: center;
}
body.lh-blog-detail .bd-cta h2 {
    font: 900 clamp(28px, 4.6vw, 42px)/1.04 var(--bd-display);
    letter-spacing: -.02em; color: #fff; margin: 0 0 16px;
}
body.lh-blog-detail .bd-cta h2 em { color: var(--bd-gold); font-style: italic; }
body.lh-blog-detail .bd-cta p {
    font: 500 18px/1.55 var(--bd-text); color: rgba(255,255,255,.8); margin: 0 0 30px;
}
body.lh-blog-detail .bd-cta-btn {
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--bd-red); color: #fffdf8; text-decoration: none;
    font: 700 17px/1 var(--bd-text); padding: 15px 30px; border-radius: 999px;
    box-shadow: 0 10px 26px rgba(202,33,40,.4);
}
body.lh-blog-detail .bd-cta-btn:hover {
    background: var(--bd-red-dark); color: #fffdf8; transform: translateY(-2px);
}

/* --------------------------------------------------------- responsive --- */
@media (max-width: 1000px) {
    body.lh-blog-detail .bd-layout { grid-template-columns: 1fr; gap: 44px; }
    body.lh-blog-detail .bd-aside { position: static; top: auto; }
    /* Swap which TOC copy is live: inline (in the article) wins on mobile. */
    body.lh-blog-detail .bd-toc--inline { display: block; }
    body.lh-blog-detail .bd-toc--aside  { display: none; }
}
@media (max-width: 720px) {
    body.lh-blog-detail .bd-layout { padding: 24px 20px 20px; }
    body.lh-blog-detail .bd-cta-inner { padding: 56px 20px; }
    /* The shared widget's head uses the 10px site gutter — line it up with the
       20px article gutter, and stack it so the title isn't crushed by the CTA. */
    body.lh-blog-detail .blog-widget .section-head,
    body.lh-blog-detail .blog-widget__grid {
        padding-left: 20px; padding-right: 20px;
        /* Drop the shared widget's -10px gutter bleed: this page's gutter is
           20px, so the bleed left the rail 10px past the viewport (clipped) and
           out of line with its own section head. */
        margin-left: 0; margin-right: 0;
    }
    body.lh-blog-detail .blog-widget .section-head {
        flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 24px;
    }
    body.lh-blog-detail .blog-widget .section-title { font-size: 26px; }
    /* The rails are overflow scrollers, so they clip card shadows at their own
       edge. Pad the scroll box and pull it back with a negative margin: the
       cards stay visually aligned, the shadows get room to fade out. */
    body.lh-blog-detail .bd-aside .blog-widget__grid {
        padding: 0 14px 20px; margin: 0 -14px; scroll-padding-inline: 14px;
    }
    /* Without scroll-padding, `scroll-snap-align: start` snaps the first card
       flush to the scrollport and scrolls the left gutter out of view. */
    body.lh-blog-detail .blog-widget__grid {
        padding-bottom: 20px; scroll-padding-inline: 20px;
    }
    body.lh-blog-detail .bd-author { flex-direction: column; }
    /* Poster rail goes 3-up on phones — the sidebar is full width once stacked. */
    body.lh-blog-detail .bd-anime-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    body.lh-blog-detail .bd-anime-grid h3 { font-size: 12.5px; }
    body.lh-blog-detail .bd-anime-score { font-size: 10px; padding: 2px 6px; }
}
@media (prefers-reduced-motion: reduce) {
    body.lh-blog-detail .bd-toc > summary::after { transition: none; }
}
