/* =============================================================================
   LibParl v3 — topics-style.css
   Used by page-topics.php and category.php
   ============================================================================= */

.lp-topics-hero { background: #fff; padding: 48px 24px 30px; border-bottom: 1px solid #eeecea; }
.lp-topics-hero__inner { max-width: 1200px; margin: 0 auto; }
.lp-topics-hero__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lp-accent); margin-bottom: 10px; }
.lp-topics-hero__title { font-family: 'Nunito Sans', sans-serif; font-size: clamp(28px, 4.5vw, 44px); font-weight: 900; color: #16181d; letter-spacing: -.03em; line-height: 1.05; margin: 0 0 10px; }
.lp-topics-hero__title::after { content: ''; display: block; width: 34px; height: 4px; background: var(--lp-accent); border-radius: 2px; margin-top: 14px; }
.lp-topics-hero__desc { font-size: 15px; color: #5c6066; max-width: 620px; margin-top: 10px; }

/* Generic per-category hero — category.php's fallback layout */
.lp-cat-hero { background: #fff; padding: 48px 24px 30px; border-bottom: 1px solid #eeecea; }
.lp-cat-hero__inner { max-width: 1200px; margin: 0 auto; }
.lp-cat-hero__back {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600; color: #787c82;
    text-decoration: none; margin-bottom: 14px; transition: color .15s;
}
.lp-cat-hero__back:hover { color: var(--lp-accent); }
.lp-cat-hero__title { font-family: 'Nunito Sans', sans-serif; font-size: clamp(28px, 4.5vw, 44px); font-weight: 900; color: #16181d; letter-spacing: -.03em; line-height: 1.05; margin: 0 0 6px; }
.lp-cat-hero__title::after { content: ''; display: block; width: 34px; height: 4px; background: var(--lp-accent); border-radius: 2px; margin-top: 14px; }
.lp-cat-hero__count { font-size: 13px; color: #787c82; margin-top: 10px; }

.lp-topics { max-width: 1200px; margin: 0 auto; padding: 48px 24px 72px; }
.lp-topics__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .lp-topics__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .lp-topics__grid { grid-template-columns: 1fr; } }

.lp-topic-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.lp-topic-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.09); }
.lp-topic-card__thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: #f0f0f1; }
.lp-topic-card__thumb--placeholder { aspect-ratio: 16/9; background: linear-gradient(135deg, rgba(var(--lp-accent-rgb),.13), rgba(var(--lp-accent-rgb),.05)); display: flex; align-items: center; justify-content: center; font-size: 28px; text-decoration: none; }
.lp-topic-card__body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.lp-topic-card__name { font-size: 16px; font-weight: 700; color: #1d2327; margin-bottom: 6px; line-height: 1.3; }
.lp-topic-card__name a { color: inherit; text-decoration: none; }
.lp-topic-card__count { font-size: 12px; color: #787c82; margin-bottom: 14px; }
.lp-topic-card__posts { list-style: none; margin: 0 0 16px; padding: 0; flex: 1; }
.lp-topic-card__post { padding: 7px 0; border-top: 1px solid #f0f0f1; font-size: 13px; }
.lp-topic-card__post:first-child { border-top: none; padding-top: 0; }
.lp-topic-card__post a { color: #1d2327; text-decoration: none; line-height: 1.4; display: block; }
.lp-topic-card__post a:hover { color: var(--lp-accent); }
.lp-topic-card__post-date { font-size: 11px; color: #787c82; margin-top: 2px; }
.lp-topic-card__footer { border-top: 1px solid #f0f0f1; padding-top: 12px; margin-top: auto; }
.lp-topic-card__all { font-size: 12px; font-weight: 600; color: var(--lp-accent); text-decoration: none; text-transform: uppercase; letter-spacing: .05em; }
.lp-topic-card__all:hover { text-decoration: underline; }

/* Category archive */
.lp-cat { max-width: 1200px; margin: 0 auto; padding: 48px 24px 72px; }
.lp-cat__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 48px; }
@media (max-width: 900px) { .lp-cat__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .lp-cat__grid { grid-template-columns: 1fr; } }

.lp-cat-card { display: block; text-decoration: none; background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.lp-cat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.09); text-decoration: none; }
.lp-cat-card__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: #f0f0f1; }
.lp-cat-card__img--placeholder { aspect-ratio: 16/9; background: linear-gradient(135deg, rgba(var(--lp-accent-rgb),.13), rgba(var(--lp-accent-rgb),.05)); }
.lp-cat-card__body { padding: 16px 18px 20px; }
.lp-cat-card__date { font-size: 11px; color: #787c82; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.lp-cat-card__title { font-size: 15px; font-weight: 600; color: #1d2327; line-height: 1.4; margin-bottom: 8px; }
.lp-cat-card__excerpt { font-size: 13px; color: #555; line-height: 1.5; margin-bottom: 10px; }
.lp-cat-card__read { font-size: 12px; font-weight: 600; color: var(--lp-accent); text-transform: uppercase; letter-spacing: .05em; }