/* PMCC Phase 8.4 — Mobile/Tablet responsive system */
html{overflow-x:hidden}body{overflow-x:hidden}.wrap,.hub-wrap{max-width:100%}img,video,iframe{max-width:100%}

/* ---------- Header / hamburger ---------- */
.mobile-nav-toggle{display:none;appearance:none;border:1px solid #d8e4e0;background:#fff;color:#063c34;width:44px;height:44px;border-radius:10px;align-items:center;justify-content:center;cursor:pointer;padding:0;flex:0 0 auto}
.mobile-nav-toggle span,.mobile-nav-toggle:before,.mobile-nav-toggle:after{content:"";display:block;width:21px;height:2px;background:currentColor;border-radius:2px;transition:.22s ease}.mobile-nav-toggle span{margin:5px 0}.site-header.mobile-menu-open .mobile-nav-toggle span{opacity:0}.site-header.mobile-menu-open .mobile-nav-toggle:before{transform:translateY(7px) rotate(45deg)}.site-header.mobile-menu-open .mobile-nav-toggle:after{transform:translateY(-7px) rotate(-45deg)}
.mobile-nav-actions{display:none}

@media(max-width:980px){
  .site-header{position:sticky!important;top:0;z-index:1000;background:#fff;border-bottom:1px solid #e0e8e5}
  .site-header .nav-wrap{width:94vw!important;min-height:64px!important;padding:8px 0!important;display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:10px!important;position:relative}
  .site-header .brand{font-size:26px!important;line-height:1!important;margin-right:auto;max-width:calc(100vw - 185px);overflow:hidden;text-overflow:ellipsis}
  .site-header .brand span{display:inline!important;font-size:14px!important}
  .mobile-nav-toggle{display:inline-flex;order:20}
  .site-header .nav-wrap>nav{display:none!important;position:absolute!important;top:calc(100% + 1px);left:0;right:0;width:100%!important;margin:0!important;padding:10px!important;background:#fff;border:1px solid #dbe6e2;border-radius:0 0 14px 14px;box-shadow:0 18px 35px rgba(0,35,29,.13);overflow:visible!important;white-space:normal!important;z-index:1001;flex-direction:column!important;align-items:stretch!important;gap:0!important;max-height:calc(100vh - 80px);overflow-y:auto!important}
  .site-header.mobile-menu-open .nav-wrap>nav{display:flex!important}
  .site-header .nav-wrap>nav>a,.site-header .nav-wrap>nav .nav-dropdown-trigger{display:flex!important;align-items:center;justify-content:space-between;width:100%;font-size:16px!important;padding:13px 12px!important;border-bottom:1px solid #edf2f0;text-decoration:none}
  .site-header .nav-dropdown{display:block!important;width:100%}
  .site-header .nav-submenu{position:static!important;display:none;box-shadow:none!important;border:0!important;padding:2px 0 6px 14px!important;min-width:0!important;background:#f7faf9!important}
  .site-header .nav-dropdown:hover .nav-submenu,.site-header .nav-dropdown:focus-within .nav-submenu{display:block!important}
  .mobile-nav-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px 6px 4px}
  .mobile-nav-actions a{display:flex;align-items:center;justify-content:center;min-height:44px;border:1px solid #d7e3df;border-radius:9px;text-decoration:none;color:#063c34;font-weight:700;padding:9px 10px}
  .mobile-nav-actions a.mobile-subscribe{background:#06483d;color:#fff;border-color:#06483d}
  .site-header .reader-link,.site-header .subscribe-link,.site-header .admin-link,.site-header .cart-link{display:none!important}
  .site-header .icon-link,.site-header .search-open{margin-left:0!important;width:40px;height:40px;padding:0;display:grid;place-items:center}
  .site-header .lang-switch{padding:0 4px!important;font-size:13px!important;white-space:nowrap}
  .site-header .theme-toggle{display:none!important}
}

@media(max-width:620px){
  .site-header .nav-wrap{width:94vw!important}
  .site-header .brand{font-size:24px!important;max-width:calc(100vw - 150px)}
  .site-header .brand span{font-size:12px!important}
  .site-header .lang-switch{font-size:12px!important}
  .mobile-nav-toggle{width:40px;height:40px}
}

@media(max-width:390px){
  .site-header .brand span{display:none!important}
  .site-header .brand{max-width:none}
  .mobile-nav-actions{grid-template-columns:1fr}
}

/* ---------- Home hero: stable and compact on tablet/mobile ---------- */
@media(min-width:981px){
  .hub-hero-stage{min-height:390px}
}

@media(min-width:701px) and (max-width:980px){
  .hub-hero{padding:24px 0!important}
  .hub-hero-stage{min-height:400px!important}
  .hub-hero-grid{grid-template-columns:170px minmax(0,1fr)!important;gap:26px!important;min-height:390px!important;align-items:center!important}
  .hub-hero-grid .hub-format-card{display:none!important}
  .hub-cover{max-width:170px!important;max-height:275px!important;object-fit:cover!important}
  .hub-hero-grid h1,.hub-hero-slide-article .hub-hero-article-copy h1{font-size:clamp(30px,4.7vw,44px)!important;line-height:1.02!important;min-height:0!important;-webkit-line-clamp:3!important}
  .hub-hero .subtitle{font-size:16px!important;-webkit-line-clamp:2!important;min-height:0!important}
  .hub-hero-slide-article .hub-hero-article-grid{grid-template-columns:minmax(280px,42%) minmax(0,1fr)!important;gap:25px!important;min-height:390px!important}
  .hub-hero-slide-article .hub-hero-article-media{height:290px!important}
  .hub-article-context{display:none!important}
}

@media(max-width:700px){
  .hub-hero{padding:14px 0 10px!important}
  .hub-hero .hub-wrap{width:94vw!important}
  .hub-hero-stage{height:510px!important;min-height:510px!important;overflow:hidden!important}
  .hub-hero-slide{height:100%!important;min-height:0!important}
  .hub-hero-slide.active{display:block!important}
  .hub-hero-grid{grid-template-columns:118px minmax(0,1fr)!important;grid-template-rows:auto 1fr!important;gap:15px!important;min-height:0!important;height:455px!important;align-items:start!important;padding:8px 0 0!important}
  .hub-hero-grid>div:first-child{grid-column:1;grid-row:1;align-self:start}
  .hub-hero-grid>div:nth-child(2){grid-column:2;grid-row:1;min-width:0!important;display:block!important;align-self:start}
  .hub-hero-grid .hub-format-card{display:none!important}
  .hub-cover{width:118px!important;height:168px!important;max-width:none!important;aspect-ratio:auto!important;object-fit:cover!important;border-radius:8px!important;box-shadow:0 10px 24px rgba(0,25,20,.28)!important}
  .hub-kicker{font-size:9px!important;letter-spacing:.09em!important}
  .hub-hero-grid h1,.hub-hero-slide-article .hub-hero-article-copy h1{font-size:31px!important;line-height:1.02!important;margin:5px 0 8px!important;min-height:0!important;max-height:3.1em!important;-webkit-line-clamp:3!important;overflow:hidden!important;text-wrap:balance!important}
  .hub-hero .subtitle,.hub-hero-slide-article .hub-hero-article-copy .subtitle{font-size:14px!important;line-height:1.36!important;margin:0 0 8px!important;display:-webkit-box!important;-webkit-line-clamp:3!important;-webkit-box-orient:vertical!important;overflow:hidden!important;min-height:0!important;max-height:4.1em!important}
  .hub-rating{margin:8px 0 10px!important;font-size:12px}
  .hub-actions{gap:7px!important;margin-top:9px!important}
  .hub-btn{padding:9px 11px!important;font-size:12px!important;border-radius:8px!important}
  .hub-note{font-size:11px!important;margin-top:9px!important;line-height:1.3}

  .hub-hero-slide-article .hub-hero-article-grid{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:174px auto!important;gap:12px!important;height:455px!important;min-height:0!important;align-items:start!important}
  .hub-hero-slide-article .hub-hero-article-media{height:174px!important;width:100%!important;border-radius:9px!important}
  .hub-hero-slide-article .hub-hero-article-copy{display:block!important;padding:0!important;min-width:0!important}
  .hub-hero-slide-article .hub-article-context{display:none!important}
  .hub-hero-slide-article .hub-article-byline{margin:8px 0 9px!important;gap:8px!important}
  .hub-hero-slide-article .hub-article-byline img,.hub-hero-slide-article .hub-article-byline>span{width:34px!important;height:34px!important}
  .hub-hero-slide-article .hub-article-byline b{font-size:12px!important}.hub-hero-slide-article .hub-article-byline small{font-size:10px!important}
  .hub-hero-arrow{width:38px!important;height:38px!important;font-size:26px!important;top:52%!important}
  .hub-hero-arrow.prev{left:4px!important}.hub-hero-arrow.next{right:4px!important}
  .hub-hero-dots{position:absolute!important;bottom:5px!important;left:0;right:0;padding:0!important;z-index:6}
}

@media(max-width:430px){
  .hub-hero-stage{height:485px!important;min-height:485px!important}
  .hub-hero-grid,.hub-hero-slide-article .hub-hero-article-grid{height:430px!important}
  .hub-hero-grid{grid-template-columns:105px minmax(0,1fr)!important;gap:12px!important}
  .hub-cover{width:105px!important;height:150px!important}
  .hub-hero-grid h1,.hub-hero-slide-article .hub-hero-article-copy h1{font-size:28px!important}
  .hub-hero-slide-article .hub-hero-article-grid{grid-template-rows:155px auto!important}
  .hub-hero-slide-article .hub-hero-article-media{height:155px!important}
}

/* ---------- Global page responsiveness ---------- */
@media(max-width:980px){
  .wrap,.hub-wrap{width:94vw!important}
  .hub-main{padding:26px 0 44px!important}
  .hub-section{margin-bottom:30px!important}
  .hub-section-head h2{font-size:27px!important}
  .hub-grid,.hub-product-grid,.hub-community,.publication-compact-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .home-publication-compact-grid,.home-article-square-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .hub-feature-strip .hub-features{grid-template-columns:repeat(2,1fr)!important}
  .publication-layout{grid-template-columns:1fr!important;gap:22px!important}
  .publication-body{padding:22px!important}
  .hub-page-title h1{font-size:38px!important}
  .table-wrap,table{max-width:100%}.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}table{min-width:720px}
  input,select,textarea,button{max-width:100%}
  .modal,.dialog,.search-dialog{max-width:calc(100vw - 28px)!important}
}

@media(max-width:620px){
  .hub-main{padding:20px 0 34px!important}
  .hub-section-head{align-items:center!important;gap:10px!important;margin-bottom:12px!important}
  .hub-section-head h2{font-size:24px!important}
  .hub-grid,.hub-product-grid,.hub-community,.publication-compact-grid,.home-publication-compact-grid,.home-article-square-grid{grid-template-columns:1fr 1fr!important;gap:10px!important}
  .hub-feature-strip .hub-features{grid-template-columns:1fr!important}
  .hub-feature{padding:14px!important}
  .hub-card-body,.publication-compact-body{padding:10px!important}
  .hub-card h3,.publication-compact-body h3{font-size:15px!important}
  .hub-card p,.publication-compact-body p{font-size:11px!important}
  .hub-page-title{padding:24px 0!important}.hub-page-title h1{font-size:31px!important}
  .hub-chips{gap:6px!important;overflow-x:auto!important;flex-wrap:nowrap!important;padding-bottom:5px}.hub-chip{flex:0 0 auto!important}
  .publication-body{padding:16px!important}
  .hub-authors.grid{grid-template-columns:1fr!important}
}

@media(max-width:430px){
  .hub-grid,.hub-product-grid,.hub-community,.publication-compact-grid,.home-publication-compact-grid,.home-article-square-grid{grid-template-columns:1fr!important}
}


/* Phase 8.5 — mobile hero compaction + centered video modal */
@media(max-width:700px){
  .hub-hero{padding:10px 0 8px!important}
  .hub-hero-stage{height:405px!important;min-height:405px!important}
  .hub-hero-grid{height:350px!important;grid-template-columns:102px minmax(0,1fr)!important;gap:11px!important;padding-top:5px!important}
  .hub-cover{width:102px!important;height:145px!important}
  .hub-hero-grid h1,.hub-hero-slide-article .hub-hero-article-copy h1{font-size:26px!important;line-height:1.02!important;margin:4px 0 6px!important}
  .hub-hero .subtitle,.hub-hero-slide-article .hub-hero-article-copy .subtitle{font-size:13px!important;line-height:1.32!important;-webkit-line-clamp:2!important;max-height:2.7em!important}
  .hub-actions{margin-top:7px!important}
  .hub-btn{padding:8px 10px!important;font-size:11px!important}
  .hub-note{margin-top:7px!important;font-size:10px!important}
  .hub-hero-slide-article .hub-hero-article-grid{height:350px!important;grid-template-rows:126px auto!important;gap:9px!important}
  .hub-hero-slide-article .hub-hero-article-media{height:126px!important}
  .hub-hero-slide-article .hub-article-byline{margin:6px 0 7px!important}
  .hub-hero-slide-article .hub-article-byline img,.hub-hero-slide-article .hub-article-byline>span{width:30px!important;height:30px!important}
  .hub-hero-arrow{top:50%!important}
  .hub-hero-dots{bottom:3px!important}
}
@media(max-width:430px){
  .hub-hero-stage{height:380px!important;min-height:380px!important}
  .hub-hero-grid,.hub-hero-slide-article .hub-hero-article-grid{height:328px!important}
  .hub-hero-grid{grid-template-columns:96px minmax(0,1fr)!important;gap:10px!important}
  .hub-cover{width:96px!important;height:136px!important}
  .hub-hero-grid h1,.hub-hero-slide-article .hub-hero-article-copy h1{font-size:24px!important}
  .hub-hero-slide-article .hub-hero-article-grid{grid-template-rows:118px auto!important}
  .hub-hero-slide-article .hub-hero-article-media{height:118px!important}
}

/* Home video modal: compact, centered, explicit close button */
.home-video-modal,.hub-video-modal{padding:18px!important;place-items:center!important}
.home-video-dialog,.hub-video-dialog{
  width:min(760px,88vw)!important;
  max-height:84vh!important;
  border-radius:14px!important;
  box-shadow:0 24px 70px rgba(0,0,0,.42)!important;
}
.home-video-player-wrap{height:auto!important;min-height:0!important;aspect-ratio:16/9!important}
.home-video-player-wrap iframe,.hub-video-dialog iframe{width:100%!important;height:100%!important;aspect-ratio:16/9!important}
.home-video-close,.hub-video-close{
  display:grid!important;place-items:center!important;
  right:10px!important;top:10px!important;
  width:38px!important;height:38px!important;
  border-radius:50%!important;
  background:rgba(3,48,39,.92)!important;
  border:1px solid rgba(255,255,255,.72)!important;
  color:#fff!important;font-size:25px!important;line-height:1!important;
  cursor:pointer!important;z-index:20!important;
}
.home-video-modal-meta,.hub-video-meta{padding:12px 15px 14px!important}
.home-video-modal-meta h3,.hub-video-meta h3{font-size:18px!important}
@media(max-width:760px){
  .home-video-modal,.hub-video-modal{padding:12px!important}
  .home-video-dialog,.hub-video-dialog{width:min(92vw,620px)!important;max-height:82vh!important}
  .home-video-player-wrap{aspect-ratio:16/9!important}
  .home-video-modal-meta{padding:10px 12px 12px!important;gap:8px!important}
  .home-video-modal-nav button{width:34px!important;height:34px!important;font-size:22px!important}
  .home-video-close,.hub-video-close{width:34px!important;height:34px!important;font-size:22px!important;right:8px!important;top:8px!important}
}


/* ==========================================================================
   PMCC Phase 8.6 — Mobile UI normalization
   - true 3-line hamburger
   - shorter fixed-height hero on phones
   - no clipped headings/text on narrow screens
   - safer mobile section/card widths
   ========================================================================== */

/* True hamburger: three independent horizontal lines */
.mobile-nav-toggle{
  position:relative!important;
  display:none;
  overflow:hidden!important;
}
.mobile-nav-toggle span,
.mobile-nav-toggle span::before,
.mobile-nav-toggle span::after{
  position:absolute!important;
  left:50%!important;
  width:22px!important;
  height:2.5px!important;
  margin:0!important;
  border-radius:999px!important;
  background:#063c34!important;
  transform:translateX(-50%)!important;
  content:""!important;
  opacity:1!important;
  transition:transform .2s ease, opacity .2s ease, top .2s ease!important;
}
.mobile-nav-toggle span{top:50%!important;}
.mobile-nav-toggle span::before{top:-7px!important;}
.mobile-nav-toggle span::after{top:7px!important;}
.mobile-nav-toggle::before,
.mobile-nav-toggle::after{display:none!important;content:none!important;}

.site-header.mobile-menu-open .mobile-nav-toggle span{
  background:transparent!important;
}
.site-header.mobile-menu-open .mobile-nav-toggle span::before{
  top:0!important;
  transform:translateX(-50%) rotate(45deg)!important;
  background:#063c34!important;
}
.site-header.mobile-menu-open .mobile-nav-toggle span::after{
  top:0!important;
  transform:translateX(-50%) rotate(-45deg)!important;
  background:#063c34!important;
}

/* Prevent horizontal clipping throughout the public front-end */
.hub-main *,
.hub-hero *,
.hub-section *,
.site-footer *,
.publication-layout *,
.hub-card *,
.publication-compact-card *{
  box-sizing:border-box;
  min-width:0;
}
.hub-main h1,.hub-main h2,.hub-main h3,.hub-main h4,
.hub-main p,.hub-main a,.hub-main span,
.hub-hero h1,.hub-hero h2,.hub-hero h3,.hub-hero p,
.publication-compact-body h3,.publication-compact-body p{
  overflow-wrap:anywhere;
  word-break:normal;
}
.hub-section,.hub-section-head,.hub-grid,.hub-feature-strip,.hub-features{
  max-width:100%;
}

/* Phone hero: keep every slide inside the same compact viewport */
@media(max-width:700px){
  .mobile-nav-toggle{display:inline-flex!important}

  .hub-hero{
    padding:8px 0 6px!important;
  }
  .hub-hero .hub-wrap{
    width:calc(100vw - 24px)!important;
    max-width:100%!important;
  }
  .hub-hero-stage{
    height:332px!important;
    min-height:332px!important;
    max-height:332px!important;
    overflow:hidden!important;
  }
  .hub-hero-slide,
  .hub-hero-slide.active{
    height:332px!important;
    min-height:332px!important;
    max-height:332px!important;
    overflow:hidden!important;
  }

  /* publication/book/guide slides */
  .hub-hero-grid{
    height:286px!important;
    min-height:286px!important;
    max-height:286px!important;
    grid-template-columns:92px minmax(0,1fr)!important;
    grid-template-rows:1fr!important;
    align-items:start!important;
    gap:12px!important;
    padding:10px 0 0!important;
  }
  .hub-cover{
    width:92px!important;
    height:132px!important;
    max-height:132px!important;
    object-fit:cover!important;
    object-position:center top!important;
    border-radius:7px!important;
  }
  .hub-kicker{
    font-size:8.5px!important;
    line-height:1.2!important;
    margin:1px 0 4px!important;
  }
  .hub-hero-grid h1,
  .hub-hero-slide-article .hub-hero-article-copy h1{
    font-size:22px!important;
    line-height:1.02!important;
    margin:3px 0 6px!important;
    max-height:3.08em!important;
    min-height:0!important;
    -webkit-line-clamp:3!important;
    overflow:hidden!important;
  }
  .hub-hero .subtitle,
  .hub-hero-slide-article .hub-hero-article-copy .subtitle{
    font-size:12px!important;
    line-height:1.28!important;
    max-height:2.58em!important;
    -webkit-line-clamp:2!important;
    margin:0 0 5px!important;
  }
  .hub-actions{
    gap:6px!important;
    margin-top:5px!important;
    flex-wrap:wrap!important;
  }
  .hub-btn{
    padding:7px 9px!important;
    font-size:10.5px!important;
    min-height:34px!important;
    white-space:nowrap!important;
  }
  .hub-note{
    font-size:9.5px!important;
    line-height:1.2!important;
    margin-top:5px!important;
    white-space:normal!important;
  }

  /* article slides */
  .hub-hero-slide-article .hub-hero-article-grid{
    height:286px!important;
    min-height:286px!important;
    max-height:286px!important;
    grid-template-columns:1fr!important;
    grid-template-rows:112px minmax(0,1fr)!important;
    gap:7px!important;
    padding-top:3px!important;
    overflow:hidden!important;
  }
  .hub-hero-slide-article .hub-hero-article-media{
    width:100%!important;
    height:112px!important;
    max-height:112px!important;
    object-fit:cover!important;
    border-radius:8px!important;
    overflow:hidden!important;
  }
  .hub-hero-slide-article .hub-hero-article-media img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    object-position:center!important;
  }
  .hub-hero-slide-article .hub-article-byline{
    margin:4px 0 5px!important;
    gap:7px!important;
  }
  .hub-hero-slide-article .hub-article-byline img,
  .hub-hero-slide-article .hub-article-byline>span{
    width:28px!important;
    height:28px!important;
  }
  .hub-hero-slide-article .hub-article-byline b{font-size:11px!important;line-height:1.1!important}
  .hub-hero-slide-article .hub-article-byline small{font-size:9px!important;line-height:1.1!important}

  /* arrows must never sit on top of title/body text */
  .hub-hero-arrow{
    top:auto!important;
    bottom:42px!important;
    width:34px!important;
    height:34px!important;
    font-size:22px!important;
    background:rgba(5,77,65,.88)!important;
  }
  .hub-hero-arrow.prev{left:3px!important}
  .hub-hero-arrow.next{right:3px!important}
  .hub-hero-dots{
    bottom:2px!important;
  }

  /* Sections/cards: make text fit safely inside viewport */
  .hub-main,.hub-feature-strip,.hub-section{
    overflow:hidden!important;
  }
  .hub-section-head{
    width:100%!important;
    max-width:100%!important;
  }
  .hub-section-head h2{
    font-size:23px!important;
    line-height:1.08!important;
    max-width:75%!important;
  }
  .hub-section-head>a,.hub-section-head .more{
    flex:0 0 auto!important;
    font-size:12px!important;
  }
  .hub-feature{
    width:100%!important;
    grid-template-columns:42px minmax(0,1fr)!important;
    gap:12px!important;
  }
  .hub-feature h3{
    font-size:17px!important;
    line-height:1.15!important;
  }
  .hub-feature p{
    font-size:13px!important;
    line-height:1.4!important;
    margin:4px 0 0!important;
  }

  .hub-card-body,.publication-compact-body{
    overflow:hidden!important;
  }
  .hub-card h3,.publication-compact-body h3{
    font-size:15px!important;
    line-height:1.12!important;
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:3!important;
    overflow:hidden!important;
  }
  .hub-card p,.publication-compact-body p{
    font-size:12px!important;
    line-height:1.35!important;
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:3!important;
    overflow:hidden!important;
  }
}

@media(max-width:430px){
  .site-header .nav-wrap{
    width:calc(100vw - 24px)!important;
    gap:8px!important;
  }
  .site-header .brand{
    font-size:23px!important;
    max-width:230px!important;
    white-space:nowrap!important;
  }
  .site-header .brand span{
    display:inline!important;
    font-size:11px!important;
  }
  .site-header .search-open,.site-header .icon-link{
    width:34px!important;
    height:34px!important;
  }
  .mobile-nav-toggle{
    width:38px!important;
    height:38px!important;
    border-radius:10px!important;
  }

  .hub-hero-stage,
  .hub-hero-slide,
  .hub-hero-slide.active{
    height:318px!important;
    min-height:318px!important;
    max-height:318px!important;
  }
  .hub-hero-grid,
  .hub-hero-slide-article .hub-hero-article-grid{
    height:273px!important;
    min-height:273px!important;
    max-height:273px!important;
  }
  .hub-hero-grid{
    grid-template-columns:86px minmax(0,1fr)!important;
    gap:10px!important;
  }
  .hub-cover{
    width:86px!important;
    height:124px!important;
  }
  .hub-hero-grid h1,
  .hub-hero-slide-article .hub-hero-article-copy h1{
    font-size:20px!important;
  }
  .hub-hero-slide-article .hub-hero-article-grid{
    grid-template-rows:104px minmax(0,1fr)!important;
  }
  .hub-hero-slide-article .hub-hero-article-media{
    height:104px!important;
    max-height:104px!important;
  }
}

@media(max-width:370px){
  .site-header .brand span{display:none!important}
  .hub-hero-grid{grid-template-columns:80px minmax(0,1fr)!important}
  .hub-cover{width:80px!important;height:116px!important}
  .hub-hero-grid h1,.hub-hero-slide-article .hub-hero-article-copy h1{font-size:18px!important}
}


/* ==========================================================================
   PMCC Phase 8.7 — Mobile Hero Balance
   Objetivo:
   - todos los slides usan exactamente la misma altura visual
   - ningún botón queda cortado
   - las flechas quedan centradas verticalmente
   - títulos largos no empujan el hero
   ========================================================================== */

@media(max-width:700px){

  /* Un único alto para TODO el hero móvil */
  .hub-hero{
    padding:0!important;
  }
  .hub-hero .hub-wrap{
    width:100%!important;
    max-width:100%!important;
    padding:0 16px!important;
  }
  .hub-hero-stage{
    position:relative!important;
    height:430px!important;
    min-height:430px!important;
    max-height:430px!important;
    overflow:hidden!important;
  }
  .hub-hero-slide,
  .hub-hero-slide.active{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:430px!important;
    min-height:430px!important;
    max-height:430px!important;
    overflow:hidden!important;
  }

  /* Los dos tipos de slide ocupan el mismo espacio útil */
  .hub-hero-grid,
  .hub-hero-slide-article .hub-hero-article-grid{
    width:100%!important;
    height:390px!important;
    min-height:390px!important;
    max-height:390px!important;
    padding:16px 6px 48px!important;
    margin:0!important;
    overflow:hidden!important;
    align-content:center!important;
  }

  /* PUBLICACIONES: portada a la izquierda + contenido a la derecha */
  .hub-hero-grid{
    display:grid!important;
    grid-template-columns:112px minmax(0,1fr)!important;
    grid-template-rows:1fr!important;
    align-items:center!important;
    gap:14px!important;
  }
  .hub-hero-grid>div:first-child{
    grid-column:1!important;
    grid-row:1!important;
    align-self:center!important;
  }
  .hub-hero-grid>div:nth-child(2){
    grid-column:2!important;
    grid-row:1!important;
    align-self:center!important;
    min-width:0!important;
  }
  .hub-cover{
    width:112px!important;
    height:160px!important;
    max-height:160px!important;
    object-fit:cover!important;
    object-position:center top!important;
    border-radius:8px!important;
  }

  /* ARTÍCULOS: imagen arriba + contenido debajo, pero dentro del mismo alto */
  .hub-hero-slide-article .hub-hero-article-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-template-rows:150px minmax(0,1fr)!important;
    gap:10px!important;
    align-content:start!important;
  }
  .hub-hero-slide-article .hub-hero-article-media{
    width:100%!important;
    height:150px!important;
    max-height:150px!important;
    border-radius:9px!important;
    overflow:hidden!important;
  }
  .hub-hero-slide-article .hub-hero-article-media img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    object-position:center!important;
  }
  .hub-hero-slide-article .hub-hero-article-copy{
    min-height:0!important;
    max-height:182px!important;
    overflow:hidden!important;
  }

  /* Tipografía controlada: ningún título cambia la altura del hero */
  .hub-kicker{
    margin:0 0 5px!important;
    font-size:10px!important;
    line-height:1.1!important;
  }
  .hub-hero-grid h1,
  .hub-hero-slide-article .hub-hero-article-copy h1{
    font-size:24px!important;
    line-height:1.02!important;
    margin:0 0 7px!important;
    min-height:0!important;
    max-height:2.08em!important;
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    overflow:hidden!important;
    text-wrap:balance!important;
  }
  .hub-hero .subtitle,
  .hub-hero-slide-article .hub-hero-article-copy .subtitle{
    font-size:13px!important;
    line-height:1.28!important;
    margin:0 0 7px!important;
    max-height:2.58em!important;
    min-height:0!important;
    display:-webkit-box!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:2!important;
    overflow:hidden!important;
  }

  /* Botones siempre visibles */
  .hub-actions{
    display:flex!important;
    align-items:center!important;
    gap:7px!important;
    margin:7px 0 0!important;
    flex-wrap:nowrap!important;
    overflow:visible!important;
  }
  .hub-btn{
    flex:0 1 auto!important;
    min-width:0!important;
    min-height:36px!important;
    padding:8px 10px!important;
    font-size:11px!important;
    line-height:1.1!important;
    white-space:nowrap!important;
  }
  .hub-note{
    margin:7px 0 0!important;
    font-size:10px!important;
    line-height:1.2!important;
    max-height:2.4em!important;
    overflow:hidden!important;
  }

  /* Byline más compacta para que jamás saque el CTA */
  .hub-hero-slide-article .hub-article-byline{
    margin:6px 0!important;
    gap:7px!important;
  }
  .hub-hero-slide-article .hub-article-byline img,
  .hub-hero-slide-article .hub-article-byline>span{
    width:32px!important;
    height:32px!important;
    flex:0 0 32px!important;
  }
  .hub-hero-slide-article .hub-article-byline b{
    font-size:11px!important;
    line-height:1.1!important;
  }
  .hub-hero-slide-article .hub-article-byline small{
    font-size:9px!important;
    line-height:1.1!important;
  }

  /* Flechas matemáticamente centradas respecto al hero completo */
  .hub-hero-arrow{
    position:absolute!important;
    top:50%!important;
    bottom:auto!important;
    transform:translateY(-50%)!important;
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    min-height:38px!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    font-size:24px!important;
    line-height:1!important;
    z-index:20!important;
    background:rgba(5,77,65,.92)!important;
    border:1px solid rgba(255,255,255,.28)!important;
  }
  .hub-hero-arrow.prev{left:6px!important;}
  .hub-hero-arrow.next{right:6px!important;}

  .hub-hero-dots{
    position:absolute!important;
    left:0!important;
    right:0!important;
    bottom:10px!important;
    height:18px!important;
    padding:0!important;
    margin:0!important;
    z-index:22!important;
  }
}

/* iPhone angosto */
@media(max-width:430px){
  .hub-hero-stage,
  .hub-hero-slide,
  .hub-hero-slide.active{
    height:412px!important;
    min-height:412px!important;
    max-height:412px!important;
  }
  .hub-hero-grid,
  .hub-hero-slide-article .hub-hero-article-grid{
    height:374px!important;
    min-height:374px!important;
    max-height:374px!important;
    padding:14px 6px 46px!important;
  }
  .hub-hero-grid{
    grid-template-columns:102px minmax(0,1fr)!important;
    gap:12px!important;
  }
  .hub-cover{
    width:102px!important;
    height:148px!important;
  }
  .hub-hero-slide-article .hub-hero-article-grid{
    grid-template-rows:138px minmax(0,1fr)!important;
  }
  .hub-hero-slide-article .hub-hero-article-media{
    height:138px!important;
    max-height:138px!important;
  }
  .hub-hero-grid h1,
  .hub-hero-slide-article .hub-hero-article-copy h1{
    font-size:22px!important;
  }
  .hub-hero .subtitle,
  .hub-hero-slide-article .hub-hero-article-copy .subtitle{
    font-size:12.5px!important;
  }
  .hub-btn{
    padding:8px 8px!important;
    font-size:10.5px!important;
  }
  .hub-hero-arrow{
    width:36px!important;
    height:36px!important;
    min-width:36px!important;
    min-height:36px!important;
    font-size:22px!important;
  }
}

/* 360 px y menores: preserva botones sin recortar */
@media(max-width:370px){
  .hub-hero-stage,
  .hub-hero-slide,
  .hub-hero-slide.active{
    height:404px!important;
    min-height:404px!important;
    max-height:404px!important;
  }
  .hub-hero-grid,
  .hub-hero-slide-article .hub-hero-article-grid{
    height:366px!important;
    min-height:366px!important;
    max-height:366px!important;
  }
  .hub-hero-grid{
    grid-template-columns:90px minmax(0,1fr)!important;
    gap:9px!important;
  }
  .hub-cover{
    width:90px!important;
    height:134px!important;
  }
  .hub-hero-grid h1,
  .hub-hero-slide-article .hub-hero-article-copy h1{
    font-size:20px!important;
  }
  .hub-actions{gap:5px!important;}
  .hub-btn{
    padding:7px 7px!important;
    font-size:9.5px!important;
  }
  .hub-note{font-size:9px!important;}
}
