/* LotThread blog - cards, article layout, and prose typography.
   Uses the marketing palette variables defined on the page wrapper. */

.blog-hero { padding: 56px 24px 8px; }
.blog-hero .eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; color: var(--green-ink); text-transform: uppercase; font-weight: 600; }
.blog-hero h1 { margin: 14px 0 0; font-size: clamp(30px, 4.4vw, 50px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; }
.blog-hero p { margin: 16px 0 0; font-size: 18px; color: var(--muted); line-height: 1.55; max-width: 54ch; }

.cat-chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 26px 0 8px; }
.cat-chip { font-size: 13.5px; font-weight: 500; color: var(--ink); background: #fff; border: 1px solid var(--border); border-radius: 100px; padding: 8px 15px; transition: all .15s ease; }
.cat-chip:hover { border-color: #123C2B; }
.cat-chip.is-active { background: var(--deep); color: #fff; border-color: var(--deep); }

/* card grid */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 940px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }

.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.post-card:hover { transform: translateY(-3px); border-color: #c3d1c8; box-shadow: 0 20px 44px -26px rgba(17, 24, 20, .4); }
.post-cover { height: 168px; position: relative; overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-cover--gradient { display: flex; align-items: flex-end; padding: 14px; }
.post-cover--gradient .glyph { position: absolute; inset: 0; opacity: .5; background-image: linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px); background-size: 26px 26px; }
.post-card__body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-badge { align-self: flex-start; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; border-radius: 100px; padding: 4px 10px; }
.post-card h3 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.post-card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.post-meta { margin-top: auto; display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); padding-top: 6px; }
.avatar-sm { width: 26px; height: 26px; border-radius: 50%; background: var(--deep); color: #fff; font-size: 10.5px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* featured */
.post-featured { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; background: #fff; margin-bottom: 30px; }
.post-featured .cover { min-height: 320px; position: relative; overflow: hidden; }
.post-featured .cover img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.post-featured .fbody { padding: 34px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.post-featured h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; }
.post-featured p { margin: 0; font-size: 16px; color: var(--muted); line-height: 1.55; }
@media (max-width: 820px) { .post-featured { grid-template-columns: 1fr; } .post-featured .cover { min-height: 200px; } }

.pagination-m { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 34px; }
.pagination-m a, .pagination-m span { font-size: 14px; font-weight: 600; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--border); background: #fff; color: var(--ink); }
.pagination-m a:hover { border-color: #123C2B; }
.pagination-m .disabled { color: var(--muted); opacity: .5; }

/* ---------- Article ---------- */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.article-head { max-width: 760px; margin: 0 auto; padding: 48px 24px 0; }
.article-back { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.article-back:hover { color: var(--green-ink); }
.article-head h1 { margin: 16px 0 0; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; }
.article-lede { margin: 16px 0 0; font-size: 19px; line-height: 1.55; color: var(--muted); }
.byline { display: flex; align-items: center; gap: 12px; margin: 24px 0 0; }
.byline .avatar-sm { width: 40px; height: 40px; font-size: 14px; }
.byline b { font-size: 14.5px; }
.byline .dot { color: var(--border); }
.article-cover { max-width: 960px; margin: 30px auto 0; padding: 0 24px; }
.article-cover img { width: 100%; border-radius: 18px; display: block; }
.article-cover .gradient { width: 100%; height: 340px; border-radius: 18px; position: relative; overflow: hidden; }

/* prose */
.prose { font-size: 17.5px; line-height: 1.7; color: #1c2620; margin-top: 34px; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { font-size: 27px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin-top: 1.9em; }
.prose h3 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; margin-top: 1.6em; }
.prose a { color: var(--green-ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.prose a:hover { color: #2f8f5b; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-top: .4em; }
.prose li::marker { color: var(--green); }
.prose blockquote { border-left: 3px solid var(--green); padding: 4px 0 4px 20px; color: var(--muted); font-style: italic; }
.prose img { max-width: 100%; border-radius: 12px; }
.prose code { font-family: var(--mono); font-size: .88em; background: #EEF1EC; border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; }
.prose pre { background: #0f1a14; color: #EAF3ED; border-radius: 12px; padding: 18px; overflow-x: auto; font-size: 14px; }
.prose pre code { background: none; border: none; color: inherit; padding: 0; }
.prose hr { border: none; border-top: 1px solid var(--border); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; }
.prose th { background: #F7F8F5; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }

.article-foot { max-width: 760px; margin: 40px auto 0; padding: 0 24px; }
