/* assets/css/blog.css
 * Blog single, index, and category/tag archives in the lh- design language.
 * Loaded (with globals.css) only on blog routes. Tokens only; lh-prefixed.
 * Loaded as an external file, so relative url(../img/...) resolves correctly.
 */

:root { --lh-ram-bg: url(../img/ram-mark.png); --lh-readw: 720px; }

/* ---------- breadcrumb ---------- */
.lh-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; font-size: .8rem; }
.lh-breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 8px; opacity: .5; }
.lh-breadcrumb a { color: inherit; opacity: .8; text-decoration: none; }
.lh-breadcrumb a:hover { opacity: 1; color: var(--gold); }
.lh-breadcrumb [aria-current="page"] { opacity: .6; }

/* ---------- blog index / archive header band ---------- */
.lh-blog-head { background: var(--navy); color: var(--white); padding: 64px 0 56px; }
.lh-blog-head__inner { max-width: 820px; }
.lh-blog-head .lh-breadcrumb { color: #c4cfdf; margin-bottom: 18px; }
.lh-blog-head__title { font-size: clamp(2rem, 3.4vw, 2.9rem); color: var(--white); margin: 10px 0 0; }
.lh-blog-head__intro { color: #c4cfdf; font-size: 1.05rem; font-weight: 300; margin-top: 14px; max-width: 640px; }

/* ---------- card grid (index, archive, related) ---------- */
.lh-blog-index { padding: 56px 0 8px; }
.lh-bcard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.lh-bcard { background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.lh-bcard:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(20,27,33,.1); }
.lh-bcard__img { display: block; height: 184px; background: linear-gradient(135deg,#2a3742,#1c252c) center / cover no-repeat; }
.lh-bcard__img--placeholder { position: relative; }
.lh-bcard__img--placeholder::after { content: ""; position: absolute; inset: 0; background: var(--lh-ram-bg) center / 70px no-repeat; opacity: .18; }
.lh-bcard__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.lh-bcard__cat { font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.lh-bcard__title { font-size: 1.15rem; line-height: 1.3; margin: 10px 0 8px; }
.lh-bcard__title a { color: var(--navy); }
.lh-bcard__title a:hover { color: var(--gold-deep); }
.lh-bcard__excerpt { font-size: .92rem; color: var(--muted); margin: 0 0 16px; }
.lh-bcard__meta { margin-top: auto; font-size: .78rem; color: var(--muted); letter-spacing: .02em; }

/* ---------- pagination ---------- */
.lh-pagination { padding: 40px 0 8px; }
.lh-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.lh-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--navy); font-weight: 600; font-size: .9rem; text-decoration: none; }
.lh-pagination .page-numbers:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.lh-pagination .page-numbers.current { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.lh-pagination .page-numbers.dots { border: 0; }
.lh-blog-empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- single article ---------- */
.lh-article__head { background: var(--navy); color: var(--white); padding: 56px 0 50px; }
.lh-article__head-inner { max-width: var(--lh-readw); margin: 0 auto; padding: 0 28px; }
.lh-article__head .lh-breadcrumb { color: #c4cfdf; margin-bottom: 20px; }
.lh-article__eyebrow { display: inline-block; margin-bottom: 14px; }
a.lh-article__eyebrow:hover { color: var(--gold-bright); }
.lh-article__title { font-size: clamp(2rem, 3.6vw, 3rem); color: var(--white); margin: 0; }
.lh-article__byline { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .9rem; color: #aeb9cb; }
.lh-article__hero { max-width: 980px; margin: 0 auto; padding: 0 28px; transform: translateY(-28px); }
.lh-article__hero img { width: 100%; height: auto; border-radius: 8px; box-shadow: var(--shadow); display: block; }
.lh-article__body { max-width: var(--lh-readw); margin: 0 auto; padding: 36px 28px 8px; }

/* table of contents */
.lh-toc { background: var(--paper-2); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 5px; padding: 20px 24px; margin: 0 0 34px; }
.lh-toc__title { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; margin: 0 0 10px; }
.lh-toc ol { margin: 0; padding-left: 1.2em; }
.lh-toc li { margin: 6px 0; font-size: .94rem; }
.lh-toc a { color: var(--navy); text-decoration: none; }
.lh-toc a:hover { color: var(--gold-deep); text-decoration: underline; }

/* prose (the_content) */
.lh-prose { color: var(--ink); font-size: 1.06rem; line-height: 1.78; }
.lh-prose > *:first-child { margin-top: 0; }
.lh-prose h2 { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 2.3vw, 1.9rem); color: var(--navy); line-height: 1.2; margin: 2em 0 .55em; scroll-margin-top: 96px; }
.lh-prose h3 { font-family: var(--display); font-weight: 600; font-size: 1.3rem; color: var(--navy); margin: 1.6em 0 .5em; scroll-margin-top: 96px; }
.lh-prose p { margin: 0 0 1.15em; }
.lh-prose a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 2px; }
.lh-prose a:hover { color: var(--gold); }
.lh-prose ul, .lh-prose ol { margin: 0 0 1.2em; padding-left: 1.5em; }
.lh-prose ul { list-style: disc; }
.lh-prose ol { list-style: decimal; }
.lh-prose li { margin: .4em 0; }
.lh-prose img { max-width: 100%; height: auto; border-radius: 6px; margin: 1.4em 0; }
.lh-prose blockquote { margin: 1.6em 0; padding: 6px 0 6px 22px; border-left: 3px solid var(--gold); font-family: var(--display); font-size: 1.25rem; line-height: 1.4; color: var(--navy); font-style: italic; }
.lh-prose strong { color: var(--navy); }

/* share */
.lh-share { display: flex; align-items: center; gap: 10px; margin: 38px 0; padding-top: 26px; border-top: 1px solid var(--line); }
.lh-share__label { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-right: 4px; }
.lh-share__btn { display: inline-flex; align-items: center; justify-content: center; height: 38px; min-width: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); color: var(--navy); font-weight: 600; font-size: .85rem; cursor: pointer; text-decoration: none; transition: .2s; }
.lh-share__btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* author bio */
.lh-author { display: flex; gap: 16px; align-items: flex-start; background: var(--paper-2); border: 1px solid var(--line); border-radius: 8px; padding: 22px 24px; margin: 8px 0 4px; }
.lh-author__avatar { border-radius: 50%; flex-shrink: 0; }
.lh-author__name { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--navy); margin: 0 0 4px; }
.lh-author__bio { font-size: .92rem; color: var(--muted); margin: 0; }
.lh-author__title { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 8px; }
.lh-author__link { margin: 0; }
.lh-author__link a { font-weight: 600; font-size: .9rem; color: var(--navy); text-decoration: none; }
.lh-author__link a:hover { text-decoration: underline; }

/* end-of-article consultation CTA */
.lh-blog-cta { background: var(--navy); color: var(--white); padding: 56px 0; margin-top: 48px; }
.lh-blog-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.lh-blog-cta__copy { max-width: 640px; }
.lh-blog-cta h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); color: var(--white); margin: 8px 0 10px; }
.lh-blog-cta p { color: #c4cfdf; font-weight: 300; margin: 0; }

/* related */
.lh-related { padding: 56px 0; background: var(--paper); }
.lh-related__title { font-size: clamp(1.5rem, 2.2vw, 1.9rem); color: var(--navy); margin: 0 0 28px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .lh-bcard-grid { grid-template-columns: 1fr 1fr; }
  .lh-article__hero { transform: none; padding-top: 24px; }
}
@media (max-width: 560px) {
  .lh-bcard-grid { grid-template-columns: 1fr; }
}
