/* =========================================================================
   THE LAHORE TIMES — CATEGORY PAGES
   Loaded only on category archives (see functions.php).
   Layout: hero (lead 2/3 + top stories 1/3) -> feed 2/3 + sticky sidebar 1/3.
   Same tokens as the rest of the site: ink/paper/red, Georgia headlines.
   ========================================================================= */

.lhr-category {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #111;
}
.lhr-category article { min-width: 0; }
.lhr-category h1, .lhr-category h2, .lhr-category h3 { overflow-wrap: break-word; }
.lhr-category a { text-decoration: none; }

/* ---- Category header + filter tabs ---- */
.lhr-cat-head { padding: 22px 0 0; }
.lhr-cat-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    margin: 0 0 6px;
    padding-bottom: 10px;
    border-bottom: 3px solid #111;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.lhr-cat-desc { color: #6b6b6b; font-size: 14px; margin: 8px 0 0; max-width: 720px; }

.lhr-cat-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-top: 12px;
    border-bottom: 1px solid #d9d5cd;
}
.lhr-cat-tabs::-webkit-scrollbar { display: none; }
.lhr-cat-tabs a {
    flex: 0 0 auto;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #111;
    padding: 10px 12px;
}
.lhr-cat-tabs a:hover { color: #6e0000; }
.lhr-cat-tabs a.is-active {
    color: #6e0000;
    box-shadow: inset 0 -2px 0 #6e0000;
}

/* =========================================================================
   HERO — lead story + top stories rail
   ========================================================================= */
.lhr-cat-hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding: 24px 0;
    border-bottom: 3px double #111;
}

.lhr-lead__thumb {
    display: block;
    aspect-ratio: 16 / 9;          /* reserved -> no CLS */
    background: #f4f2ee;
    overflow: hidden;
}
.lhr-lead__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.lhr-lead__title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    line-height: 1.18;
    margin: 14px 0 8px;
}
.lhr-lead__title a { color: #111; }
.lhr-lead__title a:hover { color: #6e0000; }
.lhr-lead__excerpt {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    line-height: 1.55;
    color: #333;
    margin: 0 0 8px;
}
.lhr-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    align-items: center;
    font-size: 12.5px;
    color: #6b6b6b;
    margin: 0;
}
.lhr-byline a { color: #111; font-weight: 600; }
.lhr-byline a:hover { color: #6e0000; }
.lhr-byline time { color: #6b6b6b; }

/* Top stories rail */
.lhr-side-title {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .06em;
    border-bottom: 2px solid #111;
    padding-bottom: 5px;
    margin: 0 0 14px;
}
.lhr-topstory {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dotted #ccc;
}
.lhr-topstory:last-child { border-bottom: 0; }
.lhr-topstory__thumb {
    flex: 0 0 96px;
    aspect-ratio: 1 / 1;
    background: #f4f2ee;
    overflow: hidden;
}
.lhr-topstory__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lhr-topstory__body h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    line-height: 1.35;
    margin: 0 0 4px;
}
.lhr-topstory__body h3 a { color: #111; }
.lhr-topstory__body h3 a:hover { color: #6e0000; }
.lhr-topstory__body time { font-size: 11.5px; color: #6b6b6b; }

/* =========================================================================
   FEED + STICKY SIDEBAR
   ========================================================================= */
.lhr-cat-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding-top: 24px;
    align-items: start;
}

/* Article cards — compact: thumb, badge, title, date (no excerpt) */
.lhr-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #e4e1da;
    align-items: center;
}
.lhr-card:first-child { padding-top: 0; }
.lhr-card__excerpt { display: none; }   /* safety: excerpts never show in feed */
.lhr-card__thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    background: #f4f2ee;
    overflow: hidden;
}
.lhr-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lhr-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: #111;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 3px 8px;
}
.lhr-card__title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    line-height: 1.3;
    margin: 0 0 6px;
}
.lhr-card__title a { color: #111; }
.lhr-card__title a:hover { color: #6e0000; }
.lhr-card__excerpt {
    font-size: 13.5px;
    line-height: 1.55;
    color: #444;
    margin: 0 0 8px;
}

/* Sidebar */
.lhr-cat-sidebar__inner {
    position: sticky;
    top: 64px;                    /* clears the 52px sticky nav bar */
    display: flex;
    flex-direction: column;
    gap: 26px;
}
.lhr-sidebox { border: 1px solid #e4e1da; padding: 16px; background: #fff; }
.lhr-sidelist { list-style: none; margin: 0; padding: 0; }
.lhr-sidelist li {
    padding: 9px 0;
    border-bottom: 1px dotted #ccc;
    font-size: 13.5px;
    line-height: 1.4;
}
.lhr-sidelist li:last-child { border-bottom: 0; }
.lhr-sidelist a { color: #111; font-weight: 600; }
.lhr-sidelist a:hover { color: #6e0000; }
.lhr-sidelist time { display: block; font-size: 11px; color: #6b6b6b; }
.lhr-sidelist--serif a { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }

/* ---- Pagination ---- */
.lhr-pagination {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 3px double #111;
    display: flex;
    justify-content: center;
}
.lhr-pagination .page-numbers {
    display: inline-block;
    min-width: 38px;
    text-align: center;
    padding: 9px 12px;
    margin: 0 3px;
    font-size: 13.5px;
    font-weight: 600;
    color: #111;
    border: 1px solid #d9d5cd;
    text-decoration: none;
}
.lhr-pagination a.page-numbers:hover { color: #6e0000; border-color: #6e0000; }
.lhr-pagination .page-numbers.current { background: #111; color: #fff; border-color: #111; }
.lhr-pagination .page-numbers.dots { border: 0; }

.lhr-cat-empty { padding: 40px 0; color: #6b6b6b; font-style: italic; }

/* =========================================================================
   RESPONSIVE — single column feed on mobile
   ========================================================================= */
@media (max-width: 992px) {
    .lhr-cat-hero { grid-template-columns: 1fr; gap: 8px; }
    .lhr-topstories { border-top: 2px solid #111; padding-top: 14px; margin-top: 14px; }
    .lhr-cat-body { grid-template-columns: 1fr; }
    .lhr-cat-sidebar__inner { position: static; }
}
@media (max-width: 640px) {
    .lhr-cat-title { font-size: 26px; }
    .lhr-lead__title { font-size: 23px; }
    .lhr-card { grid-template-columns: 1fr; gap: 10px; }
    .lhr-card__thumb { aspect-ratio: 16 / 9; }
    .lhr-pagination .page-numbers { min-width: 34px; padding: 8px 10px; }
}