:root{
  --ecat-green-950:#013A33;
  --ecat-green-900:#02473D;
  --ecat-green-800:#0F5148;
  --ecat-green-700:#176458;
  --ecat-sage-500:#94B19E;
  --ecat-sage-200:#D4E2D8;
  --ecat-sage-100:#EAF1EC;
  --ecat-gold-700:#B66E25;
  --ecat-gold-600:#C98234;
  --ecat-gold-500:#DFA253;
  --ecat-gold-100:#FAEEDB;
  --ecat-cream:#F8F5EE;
  --ecat-white:#FFFFFF;
  --ecat-text:#17201E;
  --ecat-muted:#68736F;
  --ecat-border:#E4E3DC;
  --ecat-shadow:0 20px 55px rgba(15,81,72,.09);
}

/* Full-width overrides for common WordPress/Astra/Elementor wrappers. */
body.epubnest-live-blog-category-page,
body.epubnest-live-blog-category-page #page,
body.epubnest-live-blog-category-page .site,
body.epubnest-live-blog-category-page .site-content,
body.epubnest-live-blog-category-page .content-area,
body.epubnest-live-blog-category-page .site-main,
body.epubnest-live-blog-category-page .entry-content,
body.epubnest-live-blog-category-page .container,
body.epubnest-live-blog-category-page .ast-container,
body.epubnest-live-blog-category-page .site-content > .ast-container,
body.epubnest-live-blog-category-page #primary{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin-left:0!important;
  margin-right:0!important;
  padding-left:0!important;
  padding-right:0!important;
}
body.epubnest-live-blog-category-page .entry-header,
body.epubnest-live-blog-category-page .ast-archive-description{display:none!important}
body.epubnest-live-blog-category-page{overflow-x:hidden}

.epub-category,.epub-category *{box-sizing:border-box}
.epub-category{width:100%;margin:0;background:#fff;color:var(--ecat-text);font-family:Manrope,Arial,sans-serif;overflow:hidden}
.epub-category a{text-decoration:none;color:inherit}
.epub-category-shell{width:100%;max-width:none;margin:0 auto;padding-left:clamp(18px,4.5vw,76px);padding-right:clamp(18px,4.5vw,76px)}

/* Hero */
.epub-category-hero{width:100%;padding:clamp(48px,7vw,100px) 0 clamp(45px,6vw,80px);background:radial-gradient(circle at 92% 8%,rgba(223,162,83,.18),transparent 28%),radial-gradient(circle at 7% 90%,rgba(148,177,158,.15),transparent 24%),linear-gradient(180deg,#fff 0%,var(--ecat-cream) 100%);border-bottom:1px solid rgba(15,81,72,.07)}
.epub-category-breadcrumb{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:30px;color:var(--ecat-muted);font-size:.72rem;font-weight:650}
.epub-category-breadcrumb a:hover{color:var(--ecat-green-800)}
.epub-category-hero-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(230px,.5fr);gap:clamp(32px,7vw,105px);align-items:end}
.epub-category-eyebrow{margin:0 0 10px;color:var(--ecat-gold-700);font-size:.68rem;font-weight:850;letter-spacing:.12em;text-transform:uppercase}
.epub-category-copy h1{max-width:1000px;margin:0;color:var(--ecat-green-900);font-size:clamp(3.1rem,7vw,7.2rem);font-weight:800;line-height:.92;letter-spacing:-.07em;overflow-wrap:anywhere}
.epub-category-description{max-width:780px;margin-top:22px;color:var(--ecat-muted);font-size:clamp(.9rem,1.2vw,1.05rem);line-height:1.82}
.epub-category-description p{margin:0 0 12px}
.epub-category-description p:last-child{margin-bottom:0}
.epub-category-stat{min-height:142px;padding:25px;display:flex;flex-direction:column;justify-content:center;border:1px solid rgba(15,81,72,.10);border-radius:20px;background:rgba(255,255,255,.76);box-shadow:var(--ecat-shadow);backdrop-filter:blur(8px)}
.epub-category-stat strong{color:var(--ecat-green-900);font-size:clamp(2.2rem,4vw,3.4rem);font-weight:850;line-height:1}
.epub-category-stat span{margin-top:8px;color:var(--ecat-muted);font-size:.68rem;font-weight:700}

/* Category navigation */
.epub-category-toolbar{width:100%;padding:15px 0;border-bottom:1px solid var(--ecat-border);background:#fff}
.epub-category-chips{display:flex;gap:9px;overflow-x:auto;padding:2px 0;scrollbar-width:none}
.epub-category-chips::-webkit-scrollbar{display:none}
.epub-category-chip{min-height:39px;flex:0 0 auto;padding:0 13px;display:inline-flex;align-items:center;gap:7px;border:1px solid var(--ecat-border);border-radius:999px;background:#fff;color:var(--ecat-muted);font-size:.67rem;font-weight:750;transition:.2s ease}
.epub-category-chip>span{min-width:22px;height:22px;padding:0 6px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:var(--ecat-cream);color:var(--ecat-green-800);font-size:.58rem}
.epub-category-chip:hover,.epub-category-chip.is-active{border-color:var(--ecat-green-800);background:var(--ecat-green-800);color:#fff}
.epub-category-chip:hover>span,.epub-category-chip.is-active>span{background:rgba(255,255,255,.14);color:#fff}
.epub-category-children{margin-top:13px;padding-top:13px;display:flex;align-items:center;gap:8px;overflow-x:auto;border-top:1px solid var(--ecat-border);scrollbar-width:none}
.epub-category-children::-webkit-scrollbar{display:none}
.epub-category-children-label{flex:0 0 auto;color:var(--ecat-muted);font-size:.63rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.epub-category-children a{min-height:34px;flex:0 0 auto;padding:0 11px;display:inline-flex;align-items:center;gap:6px;border-radius:9px;background:var(--ecat-sage-100);color:var(--ecat-green-800);font-size:.64rem;font-weight:750}
.epub-category-children a span{opacity:.7}

/* Feed */
.epub-category-feed{width:100%;padding:clamp(55px,7vw,100px) 0 clamp(80px,9vw,130px);background:#fff}
.epub-category-section-head{margin-bottom:31px;display:flex;align-items:end;justify-content:space-between;gap:22px}
.epub-category-section-head h2{margin:0;color:var(--ecat-green-900);font-size:clamp(2rem,4vw,4rem);font-weight:800;line-height:1;letter-spacing:-.055em;overflow-wrap:anywhere}
.epub-category-result-note{margin:0;color:var(--ecat-muted);font-size:.7rem;font-weight:700}
.epub-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(20px,2.7vw,32px);align-items:stretch}
.epub-category-card{min-width:0;height:100%;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--ecat-border);border-radius:20px;background:#fff;box-shadow:0 10px 35px rgba(15,81,72,.045);transition:.28s cubic-bezier(.2,.7,.2,1)}
.epub-category-card:hover{transform:translateY(-5px);border-color:rgba(15,81,72,.22);box-shadow:var(--ecat-shadow)}
.epub-category-media{position:relative;width:100%;aspect-ratio:1.55/1;display:block;overflow:hidden;background:var(--ecat-cream)}
.epub-category-image{width:100%!important;height:100%!important;max-width:100%!important;display:block!important;object-fit:cover!important;transition:transform .5s ease}
.epub-category-card:hover .epub-category-image{transform:scale(1.035)}
.epub-category-no-image{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;background:linear-gradient(145deg,var(--ecat-cream),#ECE7DB);color:var(--ecat-sage-500)}
.epub-category-no-image svg{width:42px;height:42px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.epub-category-no-image span{font-size:.65rem;font-weight:800;text-transform:uppercase;letter-spacing:.1em}
.epub-category-card-body{min-width:0;padding:20px 20px 18px;display:flex;flex:1;flex-direction:column}
.epub-category-card-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;color:var(--ecat-muted);font-size:.62rem;font-weight:650}
.epub-category-card-cat{color:var(--ecat-gold-700)!important;font-weight:850;text-transform:uppercase;letter-spacing:.075em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.epub-category-card h3{margin:0;color:var(--ecat-green-900);font-size:clamp(1.08rem,1.6vw,1.35rem);line-height:1.27;letter-spacing:-.025em}
.epub-category-card h3 a:hover{color:var(--ecat-green-700)}
.epub-category-card-body>p{margin:13px 0 20px;color:var(--ecat-muted);font-size:.72rem;line-height:1.75;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.epub-category-card-foot{margin-top:auto;padding-top:15px;border-top:1px solid var(--ecat-border);display:flex;align-items:center;justify-content:space-between;gap:14px}
.epub-category-author-wrap{min-width:0;display:flex;align-items:center;gap:9px}
.epub-category-avatar{width:34px!important;height:34px!important;min-width:34px;border-radius:50%;object-fit:cover}
.epub-category-author-wrap>div{min-width:0;display:flex;flex-direction:column}
.epub-category-author-name{max-width:150px;color:var(--ecat-green-900);font-size:.62rem;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.epub-category-comments{margin-top:2px;color:var(--ecat-muted);font-size:.57rem}
.epub-category-read{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;color:var(--ecat-green-800)!important;font-size:.65rem;font-weight:850;white-space:nowrap}
.epub-category-read svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s ease}
.epub-category-read:hover svg{transform:translateX(3px)}

/* Pagination */
.epub-category-pagination{margin-top:clamp(36px,5vw,62px);display:flex;justify-content:center}
.epub-category-pagination .page-numbers{list-style:none;margin:0;padding:0;display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap}
.epub-category-pagination li{margin:0;padding:0}
.epub-category-pagination a,.epub-category-pagination span{min-width:44px;min-height:44px;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--ecat-border);border-radius:10px;background:#fff;color:var(--ecat-green-900);font-size:.67rem;font-weight:800}
.epub-category-pagination .current,.epub-category-pagination a:hover{border-color:var(--ecat-green-800);background:var(--ecat-green-800);color:#fff}

/* Empty */
.epub-category-empty{max-width:760px;margin:10px auto 0;padding:clamp(34px,5vw,58px);text-align:center;border:1px solid var(--ecat-border);border-radius:22px;background:var(--ecat-cream)}
.epub-category-empty svg{width:48px;height:48px;margin-bottom:14px;fill:none;stroke:var(--ecat-sage-500);stroke-width:1.7;stroke-linecap:round}
.epub-category-empty h3{margin:0;color:var(--ecat-green-900);font-size:1.25rem}
.epub-category-empty p{max-width:560px;margin:10px auto 0;color:var(--ecat-muted);font-size:.75rem;line-height:1.7}
.epub-category-empty a{min-height:44px;margin-top:18px;padding:0 17px;display:inline-flex;align-items:center;justify-content:center;border-radius:11px;background:var(--ecat-green-800);color:#fff;font-size:.7rem;font-weight:800}

/* Focus */
.epub-category a:focus-visible{outline:3px solid rgba(223,162,83,.38);outline-offset:3px}

/* Feature the first real post on wide screens. */
@media(min-width:1180px){
  .epub-category-card:first-child{grid-column:span 2;display:grid;grid-template-columns:minmax(0,1.22fr) minmax(330px,.78fr)}
  .epub-category-card:first-child .epub-category-media{height:100%;min-height:390px;aspect-ratio:auto}
  .epub-category-card:first-child .epub-category-card-body{padding:clamp(24px,3vw,36px)}
  .epub-category-card:first-child h3{font-size:clamp(1.65rem,2.5vw,2.35rem)}
  .epub-category-card:first-child .epub-category-card-body>p{-webkit-line-clamp:4;font-size:.78rem}
}

@media(max-width:1050px){
  .epub-category-hero-grid{grid-template-columns:1fr}
  .epub-category-stat{max-width:430px;min-height:110px}
  .epub-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:680px){
  .epub-category-shell{padding-left:15px;padding-right:15px}
  .epub-category-hero{padding-top:40px}
  .epub-category-copy h1{font-size:clamp(2.65rem,15vw,4.35rem)}
  .epub-category-stat{max-width:none;min-height:95px;padding:18px}
  .epub-category-section-head{align-items:flex-start;flex-direction:column;gap:8px}
  .epub-category-grid{grid-template-columns:1fr;gap:18px}
  .epub-category-media{aspect-ratio:1.48/1}
  .epub-category-card-body{padding:18px 16px 16px}
  .epub-category-card-foot{align-items:flex-start;flex-direction:column}
  .epub-category-author-name{max-width:220px}
  .epub-category-read{min-height:44px}
}
