/* ===================== CoHentai Home Hub (scoped) ===================== */
.cohhub{ color:#111; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; overflow-x:clip; }
.cohhub *, .cohhub *::before, .cohhub *::after{ box-sizing:border-box; }
.cohhub .btn,
.cohhub .chip,
.cohhub .hero-feature,
.cohhub .strip-item,
.cohhub .pcard,
.cohhub .tcard,
.cohhub .cpill,
.cohhub .cluster-tab{ text-decoration:none; color:inherit; }
.cohhub .cohwrap{ max-width:1180px; margin:0 auto; padding:16px 16px 48px; }

/* Full-width hero background (bleed) */
.cohhub .hero-bleed{ width:auto; margin-left:-16px; margin-right:-16px; padding:18px 0; }
@media (min-width: 981px){
  .cohhub .hero-bleed{ width:100vw; margin-left:calc(50% - 50vw); margin-right:calc(50% - 50vw); }
}
.cohhub .hero-bleed.bg-solid{ background: var(--coh-accent); }
.cohhub .hero-bleed.bg-soft{
  background: linear-gradient(180deg, var(--coh-accent) 0%, var(--coh-accent2) 120%);
}
.cohhub .hero-bleed.bg-none{ width:auto; margin-left:0; margin-right:0; background: transparent; padding: 0; }
@media (max-width: 980px){
  .cohhub .hero-bleed{ padding:14px 0; }
  .cohhub .hero-bleed.bg-none{ padding:0; }
}

/* HERO inner */
.cohhub .hero-panel{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  border-radius:18px;
  padding:18px;
  background: linear-gradient(180deg, var(--coh-paper) 0%, var(--coh-paper2) 100%);
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 12px 26px rgba(0,0,0,.07);
  background-clip: padding-box;
}
.cohhub .hero-panel::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.10);
  pointer-events:none;
}

/* Editorial hero grid (más peso para la imagen destacada) */
.cohhub .hero-grid{ display:grid; gap:16px; align-items:start; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
/* Desktop: featured reaches the searchbar height (match right column) */
@media (min-width: 981px){
  .cohhub .hero-grid{ align-items: stretch; }
  .cohhub .hero-editorial .hero-feature{
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  .cohhub .hero-editorial .imgbox-hero{
    flex: 1 1 auto;
    min-height: 0;
    aspect-ratio: auto;
  }
.cohhub .hero-editorial .imgbox-hero .imgfit{ object-fit: cover; object-position: top center; }
}

.cohhub .hero-editorial .hero-feature{ position:relative; border-radius:16px; overflow:hidden; border:1px solid rgba(0,0,0,.10); background:#fff; box-shadow: 0 10px 22px rgba(0,0,0,.05); min-width:0; }
.cohhub .hero-editorial .imgbox-hero .imgfit{ object-fit: cover; object-position: top center; }
.cohhub .hero-feature-badge{ position:absolute; top:10px; left:10px; z-index:3; padding:6px 10px; border-radius:999px; font-weight:900; font-size:12px; background: var(--coh-accent); color:#fff; }
.cohhub .hero-feature-meta{ padding:10px 12px; border-top:1px solid rgba(0,0,0,.06); }
.cohhub .hero-feature-title{ font-weight:900; font-size:13px; line-height:1.25; color:#111; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.cohhub .hero-feature-sub{ margin-top:6px; color:#555; font-size:12px; font-weight:900; opacity:.92; }

.cohhub .hero-copy{ min-width:0; display:flex; flex-direction:column; gap:14px; }
.cohhub h1{ margin:0; color:#111; line-height:1.08; font-weight:900; font-size: clamp(26px, 3vw, 40px); }
.cohhub .hero-copy p{ margin:0; color:#3b3b3b; font-size:14px; line-height:1.6; max-width: 70ch; }

.cohhub .cta{ display:flex; gap:10px; flex-wrap:wrap; margin:0; }
.cohhub .btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px; border-radius:999px;
  border:1px solid rgba(0,0,0,.14);
  color:#111; font-weight:900; font-size:13px;
  background: rgba(255,255,255,.55);
}
.cohhub .btn:hover{ opacity:.94; }
.cohhub .btn.solid{ background: var(--coh-accent); color:#fff !important; border-color: var(--coh-accent); }

.cohhub .micro{ margin:0; display:flex; gap:10px; flex-wrap:wrap; }
.cohhub .chip{
  display:inline-flex; align-items:center; gap:8px;
  padding:7px 10px; border-radius:999px;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.10);
  color:#111;
  font-weight:900; font-size:12px;
}
.cohhub .dot{ width:8px; height:8px; border-radius:99px; background: var(--coh-accent); }

.cohhub .hero-search{ margin:0; }
.cohhub .searchbox{
  background: rgba(255,255,255,.75);
  border-radius:14px;
  padding:12px;
  border: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
}
.cohhub .searchbox input[type='search'],
.cohhub .searchbox input[type='text']{ width:100%; border-radius:10px; }
.cohhub .coh-search-form{ display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; align-items:center; }
.cohhub .coh-search-form input[type='search']{ min-width:0; }
.cohhub .coh-search-form button{ border-radius:10px; border:1px solid rgba(0,0,0,.14); background:#fff; font-weight:900; padding:10px 12px; }
.cohhub .searchhint{ margin:10px 0 0; color:#444; font-size:12px; font-weight:800; }

@media (max-width: 980px){
  .cohhub .hero-grid{ grid-template-columns: 1fr; }
  .cohhub .hero-panel{
    border-radius:20px;
    box-shadow: 0 12px 28px rgba(0,0,0,.10);
  }
  .cohhub .hero-panel::after{ box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }
}

/* Image boxes + contain */
.cohhub .imgbox{ position:relative; width:100%; overflow:hidden; background: #fff; }
.cohhub .imgfit{ width:100%; height:100%; display:block; object-fit:contain; object-position:center; background:#fff; }
    .cohhub .sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

    /* LQIP (featured only) */
    .cohhub .imgbox.is-lqip .lqip{ position:absolute; inset:0; z-index:0; filter: blur(18px); transform: scale(1.06); opacity:1; transition: opacity .35s ease; }
    .cohhub .imgbox.is-lqip .main{ position:absolute; inset:0; z-index:1; opacity:1; transition: opacity .35s ease; }
    .cohhub .imgbox.is-lqip.is-loaded .lqip{ opacity:0; }
.cohhub .imgph{ width:100%; height:100%; background: linear-gradient(135deg, var(--coh-soft2), #fff); }
.cohhub .imgbox-hero{ aspect-ratio: 4/5; }
.cohhub .imgbox-strip{ aspect-ratio: 4/5; }
.cohhub .imgbox-wide{ aspect-ratio: 16/10; }
.cohhub .imgbox-avatar{ width:46px; height:46px; border-radius:12px; border:1px solid rgba(0,0,0,.10); background:#fff; overflow:hidden; flex:0 0 46px; }
.cohhub .imgbox-post{ aspect-ratio: 4/5; }

/* Strip visual (image-only) */
.cohhub .strip{ margin-top:14px; }
.cohhub .strip-head{ display:flex; justify-content:space-between; align-items:center; gap:12px; margin: 0 2px 10px; }
.cohhub .strip-title{ font-weight:900; letter-spacing:.2px; }
.cohhub .strip-more{ font-weight:900; text-decoration:none; color:var(--coh-accent); padding:6px 10px; border:1px solid rgba(0,0,0,.14); border-radius:999px; background:#fff; white-space:nowrap; }
.cohhub .strip-grid{
  display:grid; gap:10px;
  grid-template-columns: repeat(10, minmax(0,1fr));
}
@media (max-width: 980px){
  .cohhub .strip-grid{
    grid-auto-flow: column;
    grid-auto-columns: minmax(120px, 1fr);
    grid-template-columns: unset;
    overflow:auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
  }
  .cohhub .strip-grid::-webkit-scrollbar{ height: 6px; }
  .cohhub .strip-grid::-webkit-scrollbar-thumb{ background: rgba(0,0,0,.15); border-radius: 99px; }
}
.cohhub .strip-item{
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.05);
  scroll-snap-align: start;
}
.cohhub .strip-caption{ padding:8px 10px 10px; font-size:12px; font-weight:900; line-height:1.25; color:#111; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* SECTIONS */
.cohhub .section{ margin-top:22px; content-visibility:auto; contain-intrinsic-size:800px; }
.cohhub .hero, .cohhub .hero-bleed{ content-visibility:visible; }
.cohhub h2{ margin:0 0 8px; font-size:14px; text-transform:uppercase; letter-spacing:.7px; font-weight:900; color:#222; }
.cohhub .sec-head{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin:0 0 8px; }
.cohhub .sec-head h2{ margin:0; }
.cohhub .sec-more{ font-weight:900; text-decoration:none; color:var(--coh-accent); padding:6px 10px; border:1px solid rgba(0,0,0,.14); border-radius:999px; background:#fff; white-space:nowrap; }
.cohhub .sec-more:hover{ transform: translateY(-1px); }

.cohhub .sub{ margin:0 0 12px; color:#555; font-size:13px; }
.cohhub .headrow{ display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.cohhub .pillwarn{ font-size:12px; font-weight:900; padding:6px 10px; border-radius:999px; border:1px solid rgba(0,0,0,.12); background: rgba(0,0,0,.04); color:#222; }

/* SERIES/AUTHOR CARDS */
.cohhub .cards{
  display:grid; gap:12px;
  grid-template-columns: repeat(4, minmax(0,1fr));
}
@media (max-width: 980px){ .cohhub .cards{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px){ .cohhub .cards{ grid-template-columns: 1fr; } }

.cohhub .tcard{
  position:relative;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  box-shadow: 0 10px 22px rgba(0,0,0,.05);
}
.cohhub .tover{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.00) 0%, rgba(0,0,0,.35) 70%, rgba(0,0,0,.55) 100%);
}
.cohhub .tmeta{
  position:absolute; left:0; right:0; bottom:0;
  padding:12px;
  color:#fff;
}
.cohhub .tname{ margin:0; font-weight:900; font-size:14px; line-height:1.2; }
.cohhub .tcount{ margin-top:6px; font-size:12px; font-weight:900; opacity:.92; }

/* CHARACTER PILLS (mobile-safe) */
.cohhub .cpills{
  display:grid; gap:10px;
  grid-template-columns: repeat(3, minmax(0,1fr));
}
@media (max-width: 980px){ .cohhub .cpills{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px){ .cohhub .cpills{ grid-template-columns: 1fr; } }

.cohhub .cpill{
  display:flex; gap:10px; align-items:center;
  padding:10px;
  border-radius:14px;
  background: var(--coh-paper2);
  border:1px solid rgba(0,0,0,.10);
  min-width:0;
}
.cohhub .cpill:hover{ border-color: rgba(0,0,0,.16); filter: brightness(.99); }
.cohhub .clines{ min-width:0; flex:1 1 auto; }
.cohhub .cname{ font-weight:900; font-size:13px; line-height:1.2; color:#111; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cohhub .cparent{ margin-top:4px; font-size:12px; color:#444; opacity:.9; font-weight:900; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* POSTS */
.cohhub .postgrid{
  display:grid; gap:12px;
  grid-template-columns: repeat(4, minmax(0,1fr));
}
@media (max-width: 980px){ .cohhub .postgrid{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px){ .cohhub .postgrid{ grid-template-columns: repeat(2, minmax(0,1fr)); gap:10px; } }
.cohhub .pcard{ border-radius:16px; overflow:hidden; border:1px solid rgba(0,0,0,.10); background:#fff; box-shadow: 0 10px 22px rgba(0,0,0,.05); min-width:0; }
.cohhub .pbody{ padding:10px 12px; }
.cohhub .ptitle{ font-weight:900; font-size:13px; line-height:1.25; color:#111; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.cohhub .pmeta{ margin-top:6px; color:#555; font-size:12px; font-weight:900; opacity:.92; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* Custom shortcode sections */
.cohhub .coh-custom-wrap{ margin-top: 10px; }
.cohhub .coh-custom-wrap > :first-child{ margin-top: 0; }
.cohhub .coh-custom-wrap > :last-child{ margin-bottom: 0; }

/* MOBILE CAROUSELS (multi-row) */
@media (max-width: 720px){
  .cohhub .coh-carousel{
    grid-auto-flow: column;
    grid-template-columns: unset !important;
    overflow-x:auto;
    overflow-y:hidden;
    padding-bottom:6px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }
  .cohhub .coh-carousel > *{ scroll-snap-align:start; }
  .cohhub .coh-carousel::-webkit-scrollbar{ height: 6px; }
  .cohhub .coh-carousel::-webkit-scrollbar-thumb{ background: rgba(0,0,0,.15); border-radius: 99px; }

  .cohhub .coh-carousel.coh-rows-2{ grid-template-rows: repeat(2, auto); }
  .cohhub .coh-carousel.coh-rows-4{ grid-template-rows: repeat(4, auto); }

  /* widths */
  .cohhub .postgrid.coh-carousel{ grid-auto-columns: minmax(160px, 72vw); }
  .cohhub .cards.coh-carousel{ grid-auto-columns: minmax(180px, 72vw); }
  .cohhub .cpills.coh-carousel{ grid-auto-columns: minmax(240px, 86vw); }

  /* tighten */
  .cohhub .postgrid.coh-carousel,
  .cohhub .cards.coh-carousel,
  .cohhub .cpills.coh-carousel{ gap:10px; }
}


.cohhub .pcard,
.cohhub .tcard,
.cohhub .cpill,
.cohhub .strip-item,
.cohhub .hero-feature,
.cohhub .btn,
.cohhub .sec-more,
.cohhub .strip-more,
.cohhub .cluster-tab{
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
}
.cohhub .pcard:hover,
.cohhub .tcard:hover,
.cohhub .cpill:hover,
.cohhub .strip-item:hover,
.cohhub .hero-feature:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,.08);
  border-color: rgba(0,0,0,.16);
}
.cohhub a:focus-visible,
.cohhub button:focus-visible,
.cohhub input:focus-visible,
.cohhub summary:focus-visible{
  outline: 2px solid var(--coh-accent);
  outline-offset: 2px;
}
.cohhub .empty{ padding:12px; border:1px dashed rgba(0,0,0,.18); border-radius:14px; background: rgba(0,0,0,.02); font-weight:800; color:#333; }

/* CLUSTER */
.cohhub .cluster{ border:1px solid rgba(0,0,0,.10); background:#fff; border-radius:16px; padding:12px; box-shadow: 0 10px 22px rgba(0,0,0,.04); }
.cohhub .cluster-nav{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:12px; }
.cohhub .cluster-tab.cluster-all{ border-style:dashed; }

@media (max-width: 720px){
  .cohhub .cluster-nav{
    display:grid;
    grid-auto-flow:column;
    grid-auto-columns:max-content;
    grid-template-rows:repeat(2, auto);
    column-gap:8px;
    row-gap:8px;
    overflow-x:auto;
    overflow-y:hidden;
    padding-bottom:6px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type:x proximity;
  }
  .cohhub .cluster-tab{ scroll-snap-align:start; }
  .cohhub .cluster-tab.cluster-all{
    position: static;
    right: auto;
    z-index: auto;
    grid-row: 2;
  }
}

.cohhub .cluster-tab{
  padding:8px 10px; border-radius:999px; border:1px solid rgba(0,0,0,.12);
  background: rgba(0,0,0,.03); font-weight:900; font-size:12px;
  color:#111; line-height:1.2; font-family:inherit; appearance:none; -webkit-appearance:none; cursor:pointer;
}
.cohhub .cluster-tab[aria-current='true']{ background: var(--coh-accent); color:#fff; border-color: var(--coh-accent); }
.cohhub .cluster-more{ margin-top:12px; }

/* FAQ */
.cohhub .faq details{ border:1px solid rgba(0,0,0,.10); border-radius:14px; background:#fff; padding:12px; }
.cohhub .faq details + details{ margin-top:10px; }
.cohhub .faq summary{ cursor:pointer; font-weight:900; }
.cohhub .faq p{ margin:8px 0 0; color:#444; font-size:13px; line-height:1.6; }
