/*
Theme Name: LekhHub Custom V2.1
Theme URI: https://lekhhub.com/
Author: LekhHub
Description: Lightweight editorial WordPress theme for LekhHub. Customizer-driven header, footer, colors, typography and layout. Elementor-friendly and plugin-friendly.
Version: 1.5.2
License: GPL-2.0-or-later
Text Domain: lekhhub
*/

:root{
    --lh-bg:#ffffff;
    --lh-text:#20242a;
    --lh-muted:#68707a;
    --lh-border:#e5e7eb;
    --lh-accent:#8a6d3b;
    --lh-header-bg:#ffffff;
    --lh-footer-bg:#171a1f;
    --lh-footer-text:#f3f4f6;
    --lh-content:1180px;
    --lh-sidebar:25%;
    --lh-gap:42px;
    --lh-radius:0px;
    --lh-body-size:16px;
    --lh-heading-font:Georgia, "Times New Roman", serif;
    --lh-body-font:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--lh-bg);color:var(--lh-text);font-family:var(--lh-body-font);font-size:var(--lh-body-size);line-height:1.7}
img{max-width:100%;height:auto;display:block}
a{color:var(--lh-text);text-decoration:none}
a:hover{color:var(--lh-accent)}
button,input,textarea,select{font:inherit}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:absolute;left:12px;top:-50px;z-index:9999;background:#000;color:#fff;padding:10px 14px}
.skip-link:focus{top:12px}
.container{width:min(100% - 40px,var(--lh-content));margin-inline:auto}
.site-header{background:var(--lh-header-bg);border-bottom:1px solid var(--lh-border);position:relative;z-index:50}
.site-header.is-sticky{position:sticky;top:0}
.header-inner{min-height:76px;display:flex;align-items:center;gap:28px}
.site-branding{flex:0 0 auto}
.custom-logo{max-height:52px;width:auto}
.site-title{font-family:var(--lh-heading-font);font-size:28px;font-weight:700;line-height:1.1}
.site-description{font-size:12px;color:var(--lh-muted);margin-top:3px}
.primary-nav{margin-left:auto}
.primary-nav ul{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:22px}
.primary-nav li{margin:0;padding:0}
.primary-nav a{font-size:14px;font-weight:600;white-space:nowrap}
.header-search{flex:0 0 auto}
.search-toggle{border:0;background:none;cursor:pointer;padding:7px;font-size:18px;color:var(--lh-text)}
.header-search-form{display:none;margin-top:10px;padding-bottom:12px}
.header-search-form.is-open{display:block}
.search-form{display:flex;border:1px solid var(--lh-border)}
.search-form input{width:100%;border:0;padding:10px 12px;outline:0}
.search-form button{border:0;background:var(--lh-text);color:#fff;padding:0 15px;cursor:pointer}
.mobile-menu-toggle{display:none;border:1px solid var(--lh-border);background:none;padding:8px 11px;cursor:pointer}

.site-main{padding:46px 0 70px}
.editorial-grid{display:grid;grid-template-columns:var(--lh-sidebar) 1fr;gap:var(--lh-gap);align-items:start}
.categories-sidebar{border-right:1px solid var(--lh-border);padding-right:28px}
.sidebar-section + .sidebar-section{margin-top:38px;padding-top:28px;border-top:1px solid var(--lh-border)}
.writer-list a{display:block}
.writer-list span{font-size:14px;color:var(--lh-muted)}
.section-label{font-size:12px;text-transform:uppercase;letter-spacing:.12em;font-weight:700;color:var(--lh-muted);margin:0 0 16px}
.category-list{list-style:none;margin:0;padding:0}
.category-list li{border-bottom:1px solid var(--lh-border)}
.category-list a{display:block;padding:8px 0;font-size:15px}
.content-area h1,.content-area h2{font-family:var(--lh-heading-font);line-height:1.2}
.homepage-intro{margin:0 0 48px;padding:0 0 28px;border-bottom:1px solid var(--lh-border)}
.homepage-intro h1{font-family:var(--lh-heading-font);font-size:clamp(34px,4.2vw,48px);line-height:1.12;margin:0 0 14px;color:var(--lh-text)}
.homepage-intro p{max-width:820px;margin:0;color:var(--lh-muted);font-size:17px;line-height:1.7}
.section-heading{font-family:var(--lh-heading-font);font-size:29px;line-height:1.2;margin:0 0 22px}
.article-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.article-card{border-top:1px solid var(--lh-border);padding-top:14px}
.article-card-image{aspect-ratio:16/10;object-fit:cover;width:100%;background:#f1f2f3}
.article-card h3{font-family:var(--lh-heading-font);font-size:21px;line-height:1.3;margin:13px 0 7px}
.article-card .excerpt{font-size:14px;color:var(--lh-muted);margin:0}
.meta{font-size:12px;color:var(--lh-muted);margin:0 0 8px}
.featured-section{margin-bottom:55px}
.recent-section{margin-top:20px}
.entry-header{max-width:900px;margin-bottom:28px}.entry-header .entry-featured-image{width:100%;height:auto;margin-top:20px}.entry-header .meta a{text-decoration:none}
.entry-title{font-family:var(--lh-heading-font);font-size:clamp(34px,5vw,58px);line-height:1.08;margin:0 0 15px}
.entry-content{max-width:820px;font-size:18px}
.entry-content h2,.entry-content h3{font-family:var(--lh-heading-font);line-height:1.25}
.entry-content a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.entry-content blockquote{border-left:3px solid var(--lh-accent);padding-left:20px;margin-left:0;color:var(--lh-muted)}
.author-box{border-top:1px solid var(--lh-border);margin-top:45px;padding-top:25px}
.archive-title{font-family:var(--lh-heading-font);font-size:42px;line-height:1.15;margin:0 0 28px}
.pagination{margin-top:45px}
.pagination .nav-links{display:flex;gap:8px;flex-wrap:wrap}
.pagination a,.pagination span{border:1px solid var(--lh-border);padding:7px 12px}
.pagination .current{background:var(--lh-text);color:#fff;border-color:var(--lh-text)}


/* LekhHub Custom V2 footer - deliberately unique selectors so no older cached footer CSS can affect the new markup. */
.lh-v2-footer{background:var(--lh-footer-bg);color:var(--lh-footer-text);padding:38px 0 18px}
.lh-v2-footer a{color:var(--lh-footer-text)}
.lh-v2-footer__main{display:grid;grid-template-columns:minmax(260px,1fr) minmax(0,2fr);gap:50px;align-items:start}
.lh-v2-footer__about h2{font-family:var(--lh-heading-font);font-size:25px;line-height:1.2;margin:0 0 9px;color:#fff}
.lh-v2-footer__about p{margin:0;color:#b9bec5;font-size:14px;line-height:1.65;max-width:460px}
.lh-v2-footer__links{display:flex;justify-content:flex-end;align-items:center;gap:0;flex-wrap:wrap;text-align:right}
.lh-v2-footer__links a{font-size:14px;line-height:1.4;padding:2px 12px;border-right:1px solid rgba(255,255,255,.25)}
.lh-v2-footer__links a:last-child{border-right:0}
.lh-v2-footer__links a:hover{color:var(--lh-accent)}
.lh-v2-footer__social{display:flex;justify-content:center;align-items:center;gap:12px;margin-top:27px}
.lh-v2-footer__social a{width:40px;height:40px;border:1px solid rgba(255,255,255,.25);border-radius:50%;display:inline-flex;align-items:center;justify-content:center;transition:all .2s ease}
.lh-v2-footer__social a svg{width:18px;height:18px;fill:currentColor}
.lh-v2-footer__social a:hover{color:#fff;background:var(--lh-accent);border-color:var(--lh-accent);transform:translateY(-2px)}
.lh-v2-footer__bottom{text-align:center;border-top:1px solid rgba(255,255,255,.14);margin-top:27px;padding-top:14px;color:#b9bec5;font-size:13px}
@media (max-width:900px){
    .lh-v2-footer__main{grid-template-columns:1fr;gap:25px}
    .lh-v2-footer__links{justify-content:flex-start;text-align:left}
}
@media (max-width:600px){
    .lh-v2-footer{padding-top:30px}
    .lh-v2-footer__links a{padding:5px 9px}
}

.site-footer{background:var(--lh-footer-bg);color:var(--lh-footer-text);padding:34px 0 18px}
.site-footer a{color:var(--lh-footer-text)}
.footer-main{display:grid;grid-template-columns:minmax(240px,1fr) minmax(0,1.8fr);gap:45px;align-items:start}
.footer-about h2{font-family:var(--lh-heading-font);font-size:24px;line-height:1.2;margin:0 0 8px;color:#fff}
.footer-about p{margin:0;color:#b9bec5;font-size:14px;line-height:1.65;max-width:420px}
.footer-text-menu{display:flex;justify-content:flex-end;align-items:center;gap:0;flex-wrap:wrap;text-align:right}
.footer-text-menu a{font-size:14px;padding:0 12px;border-right:1px solid rgba(255,255,255,.25)}
.footer-text-menu a:last-child{border-right:0}
.footer-text-menu a:hover{color:var(--lh-accent)}
.footer-social{display:flex;justify-content:center;align-items:center;gap:12px;margin-top:24px}
.footer-social-link{width:38px;height:38px;border:1px solid rgba(255,255,255,.22);border-radius:50%;display:inline-flex;align-items:center;justify-content:center;transition:all .2s ease}
.footer-social-link svg{width:18px;height:18px;fill:currentColor}
.footer-social-link:hover{color:#fff;background:var(--lh-accent);border-color:var(--lh-accent);transform:translateY(-2px)}
.footer-bottom{text-align:center;border-top:1px solid rgba(255,255,255,.14);margin-top:24px;padding-top:14px;color:#b9bec5;font-size:13px}

.primary-nav .sub-menu{display:none;position:absolute;top:100%;left:0;min-width:210px;background:var(--lh-header-bg);border:1px solid var(--lh-border);padding:8px 0;box-shadow:0 8px 24px rgba(0,0,0,.08);z-index:20}.primary-nav li.menu-item-has-children{position:relative}.primary-nav li.menu-item-has-children:hover>.sub-menu,.primary-nav li.menu-item-has-children:focus-within>.sub-menu{display:block}.primary-nav .sub-menu li{display:block}.primary-nav .sub-menu a{display:block;padding:9px 14px;font-size:14px}.primary-nav .sub-menu a:hover{background:#f5f5f5}
@media (max-width:900px){
    .header-inner{min-height:68px}
    .primary-nav{display:none}
    .mobile-menu-toggle{display:block;margin-left:auto}
    .primary-nav.mobile-open{display:block;position:absolute;left:0;right:0;top:100%;background:var(--lh-header-bg);border-bottom:1px solid var(--lh-border);padding:15px 20px}
    .primary-nav.mobile-open ul{display:block}
    .primary-nav.mobile-open li{border-bottom:1px solid var(--lh-border)}
    .primary-nav.mobile-open a{display:block;padding:10px 0}
.primary-nav.mobile-open .sub-menu{display:block;position:static;border:0;box-shadow:none;padding:0 0 0 14px;background:none;min-width:0}.primary-nav.mobile-open .sub-menu a{padding:8px 0;font-size:14px}.primary-nav.mobile-open li.menu-item-has-children>a{font-weight:700}

    .editorial-grid{grid-template-columns:1fr}
    .categories-sidebar{border-right:0;border-bottom:1px solid var(--lh-border);padding:0 0 22px}
    .article-grid{grid-template-columns:1fr 1fr}
    .footer-grid{grid-template-columns:1fr 1fr}
    .footer-main{grid-template-columns:1fr;gap:25px}
    .footer-text-menu{justify-content:flex-start;text-align:left}
}
@media (max-width:600px){
    .container{width:min(100% - 28px,var(--lh-content))}
    .site-main{padding-top:32px}
    .article-grid{grid-template-columns:1fr}
    .footer-grid{grid-template-columns:1fr}
    .footer-text-menu{justify-content:center;text-align:center}
    .site-title{font-size:24px}
    .entry-title{font-size:38px}
}

.writer-profile{max-width:900px}
.writer-profile-header{display:grid;grid-template-columns:110px 1fr;gap:30px;align-items:start;margin-bottom:35px}
.writer-profile-photo{width:110px;height:140px;aspect-ratio:11/14;object-fit:cover}
.writer-profile h1{font-family:var(--lh-heading-font);font-size:44px;line-height:1.1;margin:0 0 6px}
.writer-role{margin:0 0 14px;font-size:15px;font-weight:600;letter-spacing:.02em;color:var(--lh-muted)}
.writer-short-description{margin:0;max-width:680px;font-size:18px;line-height:1.65;color:var(--lh-text)}
.writer-meta{color:var(--lh-muted);font-size:14px}
.writer-profile-links{display:flex;gap:14px;flex-wrap:wrap;margin-top:12px}
.writer-profile-links a{text-decoration:underline}
.writer-long-bio{margin:0 0 42px;padding-top:4px;border-top:1px solid var(--lh-border)}
.writer-long-bio .section-heading{margin-top:24px}
.writer-bio-content{max-width:780px;font-size:17px;line-height:1.8;color:var(--lh-text)}
.writer-bio-content p{margin:0 0 18px}
.writer-bio-content h2,.writer-bio-content h3{font-family:var(--lh-heading-font);line-height:1.25;margin:28px 0 12px}
.writer-bio-content ul,.writer-bio-content ol{padding-left:24px}
@media (max-width:600px){
    .writer-profile-header{grid-template-columns:1fr}
    .writer-profile-photo{width:110px;height:140px}
    .writer-profile h1{font-size:36px}
}

.author-box strong a{text-decoration:none}
.author-box strong a:hover{text-decoration:underline}

/* Categories Directory */
.categories-directory-page .page-header{max-width:850px;margin-bottom:44px}
.categories-directory-page .page-header h1{font-family:var(--lh-heading-font);font-size:64px;line-height:1.05;margin:0 0 14px}
.categories-directory-page .page-intro{font-size:18px;color:var(--lh-muted);max-width:720px;margin:0}
.categories-directory{border-top:1px solid var(--lh-border)}
.category-directory-item{display:grid;grid-template-columns:35% 65%;gap:30px;padding:25px 0;border-bottom:1px solid var(--lh-border)}
.category-directory-item h2{font-family:var(--lh-heading-font);font-size:28px;line-height:1.2;margin:0}
.category-directory-item h2 a{text-decoration:none}
.category-directory-item h2 a:hover{text-decoration:underline}
.category-directory-item p{margin:2px 0 0;color:var(--lh-muted);font-size:15px}
@media (max-width:700px){
    .categories-directory-page .page-header h1{font-size:46px}
    .category-directory-item{grid-template-columns:1fr;gap:8px}
}

/* Featured Articles + Writers */
.featured-directory-page .page-header,.writers-directory-page .page-header{max-width:850px;margin-bottom:44px}
.featured-directory-page .page-header h1,.writers-directory-page .page-header h1{font-family:var(--lh-heading-font);font-size:64px;line-height:1.05;margin:0 0 14px}
.featured-directory-page .page-intro,.writers-directory-page .page-intro{font-size:18px;color:var(--lh-muted);max-width:720px;margin:0}
.featured-directory-page .article-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:44px 28px}
.featured-directory-page .article-grid article{min-width:0}
.pagination{margin:55px 0 10px}
.pagination ul{display:flex;gap:8px;list-style:none;padding:0;flex-wrap:wrap}
.pagination a,.pagination span{display:inline-block;padding:8px 12px;border:1px solid var(--lh-border);text-decoration:none}
.writers-section{margin-top:55px}
.writers-section h2{font-family:var(--lh-heading-font);font-size:34px;border-bottom:1px solid var(--lh-border);padding-bottom:14px}
.writer-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:34px 28px}
.writer-card-image{display:block;width:110px;height:140px;margin-bottom:14px;overflow:hidden}
.writer-card-image img{display:block;width:110px;height:140px;object-fit:cover}
.writer-card h3{font-family:var(--lh-heading-font);font-size:25px;margin:0 0 8px}
.writer-card h3 a,.writer-list-item{text-decoration:none}
.writer-card p{color:var(--lh-muted);margin:0}.writer-card-role{font-size:13px;font-weight:600;text-transform:uppercase;letter-spacing:.08em;margin:0 0 6px!important;color:var(--lh-muted)}
.writer-list{display:block;border-top:1px solid var(--lh-border);max-width:760px}
.writer-list-item{display:block;padding:16px 0;border-bottom:1px solid var(--lh-border);font-size:17px}
@media(max-width:800px){
    .featured-directory-page .article-grid,.writer-grid{grid-template-columns:repeat(2,1fr)}
    .writer-list{display:block}
}
@media(max-width:600px){
    .featured-directory-page .page-header h1,.writers-directory-page .page-header h1{font-size:46px}
    .featured-directory-page .article-grid,.writer-grid{grid-template-columns:1fr}
}

/* Featured writers shown on the Featured directory page */
.featured-writers-on-featured-page{margin-top:72px}
.featured-writers-on-featured-page>h2{font-family:var(--lh-heading-font);font-size:42px;margin:0 0 28px}

/* Writer archive: enforce passport-size writer photos everywhere */
.writers-archive-page .writer-grid-archive .writer-card-image,
.writers-archive-page .writer-grid-archive .writer-card-image img,
.featured-writer-page .writer-card-image,
.featured-writer-page .writer-card-image img,
.writers-directory-page .writer-card-image,
.writers-directory-page .writer-card-image img {
    width:110px !important;
    height:140px !important;
    max-width:110px !important;
    max-height:140px !important;
    object-fit:cover !important;
    display:block;
}
.writers-archive-page .writer-card-image,
.featured-writer-page .writer-card-image,
.writers-directory-page .writer-card-image {
    overflow:hidden;
    margin-bottom:14px;
}
