:root{--hub:#063c34;--hub2:#0d5b4d;--hub3:#137965;--hub-bg:#f7f9f8;--hub-line:#dce7e3;--hub-gold:#d8a72e;--hub-text:#18312c;--hub-muted:#63756f}
.hub-wrap{width:min(1500px,92vw);margin:auto}.hub-hero{background:linear-gradient(110deg,#052f29,#0a4b40 68%,#0c5b4d);color:#fff;padding:46px 0}.hub-hero-grid{display:grid;grid-template-columns:240px 1fr 300px;gap:42px;align-items:center}.hub-cover{width:100%;aspect-ratio:.72;background:#0b594b;border-radius:6px;box-shadow:0 20px 38px #001c1740;object-fit:cover}.hub-cover-fallback{display:flex;flex-direction:column;justify-content:space-between;padding:28px;color:#fff}.hub-cover-fallback b{font:700 32px Georgia,serif}.hub-kicker{color:#44cfaa;text-transform:uppercase;font-weight:800;letter-spacing:.12em;font-size:12px}.hub-hero h1{font:700 clamp(42px,5vw,70px) Georgia,serif;margin:8px 0 14px}.hub-hero .subtitle{font-size:20px;max-width:720px;line-height:1.5}.hub-rating{margin:14px 0 22px}.hub-rating .stars{color:#ffbf2f;letter-spacing:2px}.hub-actions{display:flex;flex-wrap:wrap;gap:10px}.hub-btn{display:inline-flex;align-items:center;gap:8px;border:1px solid #83b0a6;border-radius:8px;padding:12px 17px;color:inherit;text-decoration:none;font-weight:750;background:transparent}.hub-btn.primary{background:#16866d;border-color:#16866d;color:white}.hub-note{margin-top:18px;color:#d4e8e3}.hub-format-card{border:1px solid #2d7567;background:#0a4a3f;border-radius:12px;padding:22px}.hub-format-card h3{margin:0 0 15px}.hub-format-item{display:grid;grid-template-columns:34px 1fr;gap:10px;padding:10px 0;border-bottom:1px solid #ffffff18}.hub-format-item:last-child{border-bottom:0}.hub-format-icon{font-size:24px}.hub-feature-strip{background:#fff;border-bottom:1px solid var(--hub-line)}.hub-features{display:grid;grid-template-columns:repeat(4,1fr);gap:0}.hub-feature{padding:24px;border-right:1px solid var(--hub-line);display:grid;grid-template-columns:42px 1fr;gap:12px}.hub-feature:last-child{border-right:0}.hub-feature strong{display:block;margin-bottom:5px}.hub-feature p{margin:0;color:var(--hub-muted);font-size:14px;line-height:1.5}.hub-main{background:var(--hub-bg);padding:42px 0 60px}.hub-section{margin-bottom:42px}.hub-section-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:18px;gap:20px}.hub-section-head h2{font:700 30px Georgia,serif;color:var(--hub-text);margin:0}.hub-section-head a{color:var(--hub2);text-decoration:none;font-weight:700}.hub-chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.hub-chip{padding:7px 12px;border-radius:18px;border:1px solid var(--hub-line);background:#fff;color:var(--hub-text);text-decoration:none;font-size:13px}.hub-chip.active{background:var(--hub2);color:#fff;border-color:var(--hub2)}.hub-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.hub-card{background:white;border:1px solid var(--hub-line);border-radius:10px;overflow:hidden;box-shadow:0 7px 20px #18312c0b}.hub-card-media{aspect-ratio:.78;background:#e8efed;overflow:hidden}.hub-card-media img{width:100%;height:100%;object-fit:cover}.hub-card-body{padding:16px}.hub-card-type{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--hub3);font-weight:800}.hub-card h3{font:700 20px Georgia,serif;margin:8px 0;color:var(--hub-text)}.hub-card p{color:var(--hub-muted);line-height:1.5;font-size:14px}.hub-license{border-top:1px solid var(--hub-line);padding-top:12px;color:var(--hub2);font-size:12px;font-weight:700}.hub-format-tags{display:flex;gap:5px;flex-wrap:wrap}.hub-format-tag{font-size:11px;border:1px solid var(--hub-line);border-radius:4px;padding:3px 6px}.hub-price{display:flex;justify-content:space-between;align-items:center;margin-top:12px}.hub-community{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.hub-community-card{background:#fff;border:1px solid var(--hub-line);border-radius:10px;padding:20px}.hub-community-card h3{font-size:20px;margin:0 0 7px}.hub-stats3{display:grid;grid-template-columns:repeat(3,1fr);margin-top:18px}.hub-stats3 b,.hub-stats3 span{display:block}.hub-stats3 span{font-size:11px;color:var(--hub-muted)}.hub-two{display:grid;grid-template-columns:2fr 1fr;gap:26px}.hub-article-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.hub-article{display:grid;grid-template-columns:130px 1fr;background:#fff;border:1px solid var(--hub-line);border-radius:10px;overflow:hidden}.hub-article img{width:100%;height:100%;object-fit:cover}.hub-article div{padding:14px}.hub-authors{display:grid;gap:12px}.hub-author{background:#fff;border:1px solid var(--hub-line);border-radius:10px;padding:15px;display:flex;gap:13px}.hub-author img,.hub-avatar{width:58px;height:58px;border-radius:50%;object-fit:cover;background:#dfeae7}.hub-page-title{padding:38px 0;background:#f2f7f5;border-bottom:1px solid var(--hub-line)}.hub-page-title h1{font:700 46px Georgia,serif;margin:0 0 8px;color:var(--hub-text)}.hub-catalog{padding:36px 0 60px}.hub-product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.hub-product-img{aspect-ratio:1.05;background:#edf3f1}.hub-product-img img{width:100%;height:100%;object-fit:cover}.hub-empty{padding:34px;background:#fff;border:1px dashed var(--hub-line);border-radius:10px;color:var(--hub-muted)}.publication-layout{display:grid;grid-template-columns:300px 1fr;gap:42px}.publication-meta{background:#fff;border:1px solid var(--hub-line);border-radius:10px;padding:20px}.publication-body{background:#fff;border:1px solid var(--hub-line);border-radius:10px;padding:34px}.publication-body h2{font-family:Georgia,serif}.hub-cart-pill{display:inline-flex;min-width:20px;height:20px;border-radius:10px;align-items:center;justify-content:center;background:#16866d;color:#fff;font-size:11px;padding:0 6px}
@media(max-width:1050px){.hub-hero-grid{grid-template-columns:190px 1fr}.hub-format-card{grid-column:1/-1}.hub-grid,.hub-product-grid,.hub-community{grid-template-columns:repeat(2,1fr)}.hub-two{grid-template-columns:1fr}.hub-features{grid-template-columns:repeat(2,1fr)}.publication-layout{grid-template-columns:1fr}}
@media(max-width:640px){.hub-hero-grid{grid-template-columns:1fr}.hub-cover{max-width:230px}.hub-grid,.hub-product-grid,.hub-community,.hub-features,.hub-article-grid{grid-template-columns:1fr}.hub-feature{border-right:0;border-bottom:1px solid var(--hub-line)}.hub-article{grid-template-columns:1fr}.hub-article img{height:160px}.hub-wrap{width:min(94vw,1500px)}}
/* Phase 7.1 UI repair: compact header + article cards */
.site-header{height:auto;min-height:72px;position:sticky;top:0;background:#fff}
.site-header .nav-wrap{width:min(1500px,94vw);min-height:72px;height:auto;display:flex;align-items:center;gap:18px;padding:10px 0;flex-wrap:nowrap}
.site-header .brand{display:flex;align-items:baseline;gap:8px;white-space:nowrap;font-size:29px;line-height:1}
.site-header .brand span{font-size:16px;white-space:nowrap}
.site-header .nav-wrap nav{display:flex;align-items:center;gap:20px;margin-left:auto;white-space:nowrap}
.site-header .nav-wrap nav a{font-size:14px}
.site-header .icon-link,.site-header .lang-switch,.site-header .reader-link,.site-header .subscribe-link{flex:0 0 auto}
.site-header .lang-switch{display:inline-flex;align-items:center;white-space:nowrap;padding-left:14px}
.site-header .subscribe-link{padding:12px 16px}
.hub-article-grid.compact{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.hub-article-grid.compact .hub-article{display:block;min-width:0}
.hub-article-grid.compact .hub-article img{display:block;width:100%;height:135px;object-fit:cover}
.hub-article-grid.compact .hub-article>div{padding:13px}
.hub-article-grid.compact .hub-article h3{font:700 17px/1.2 Georgia,serif;margin:7px 0 8px}
.hub-article-grid.compact .hub-article p{font-size:12.5px;line-height:1.45;color:var(--hub-muted);margin:0 0 10px}
.hub-authors.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.hub-authors.grid .hub-author{min-height:150px}
@media(max-width:1250px){.site-header .nav-wrap nav{gap:13px}.site-header .nav-wrap nav a{font-size:13px}.site-header .brand{font-size:25px}.hub-article-grid.compact{grid-template-columns:repeat(2,1fr)}}
@media(max-width:980px){.site-header .nav-wrap{flex-wrap:wrap}.site-header .nav-wrap nav{order:3;width:100%;overflow-x:auto;margin-left:0;padding:5px 0}.hub-authors.grid{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.hub-article-grid.compact,.hub-authors.grid{grid-template-columns:1fr}.site-header .brand span{display:none}}

/* Phase 7.2 usability + performance presentation */
.hub-community-link{display:block;color:var(--hub-text);text-decoration:none;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.hub-community-link:hover{transform:translateY(-2px);box-shadow:0 10px 26px #18312c16;border-color:#9cc7bc}.hub-btn.download{background:#fff;color:var(--hub2);border-color:#4e9b89}.hub-btn.download:hover{background:#eaf6f2}.hub-author a{color:var(--hub-text);text-decoration:none}.hub-author p{font-size:13px;line-height:1.45;color:var(--hub-muted)}
.community-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:0 0 20px}.community-form{background:#fff;border:1px solid var(--hub-line);border-radius:12px;padding:20px;margin-bottom:22px}.community-form label{display:block;font-weight:700;margin:10px 0}.community-form input,.community-form select,.community-form textarea{width:100%;box-sizing:border-box;margin-top:6px;padding:11px;border:1px solid #cbdad5;border-radius:7px;background:#fff}.idea-card{background:#fff;border:1px solid var(--hub-line);border-radius:12px;padding:20px;margin-bottom:14px}.idea-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-top:14px}.idea-comments{margin-top:16px;padding-top:14px;border-top:1px solid var(--hub-line)}.idea-comment{padding:8px 0;border-bottom:1px solid #edf2f0;font-size:13px}.idea-comment:last-child{border-bottom:0}
/* Phase 7.3 — Stabilized Hub UI */
.hub-hero-slider{position:relative;overflow:hidden}.hub-hero-stage{position:relative}.hub-hero-slide{display:none}.hub-hero-slide.active{display:block}.hub-hero-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:5;width:48px;height:48px;border-radius:50%;border:1px solid rgba(255,255,255,.3);background:rgba(9,78,64,.9);color:#fff;font-size:32px;cursor:pointer}.hub-hero-arrow.prev{left:18px}.hub-hero-arrow.next{right:18px}.hub-hero-dots{display:flex;justify-content:center;gap:8px;padding:14px 0 0}.hub-hero-dots button{width:9px;height:9px;border-radius:50%;border:0;background:#789e94;padding:0;cursor:pointer}.hub-hero-dots button.active{background:#44c9aa;transform:scale(1.25)}
.hub-card-open{display:inline-block;margin-top:10px;font-weight:700;color:#08745e}.hub-community-link{text-decoration:none;color:inherit}.hub-community-link:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(0,45,34,.08)}
.hub-two-columns{display:grid;grid-template-columns:minmax(0,2fr) minmax(300px,1fr);gap:32px;align-items:start}.hub-article-grid.compact{display:grid;grid-template-columns:1fr 1fr;gap:14px}.hub-article-card{display:grid;grid-template-columns:150px 1fr;border:1px solid #dce5e1;border-radius:12px;overflow:hidden;background:#fff;min-height:150px}.hub-article-card>img{width:100%;height:100%;object-fit:cover;min-height:150px}.hub-article-card>div{padding:14px}.hub-article-card h3{margin:5px 0 8px;font-size:18px;line-height:1.15}.hub-article-card p{font-size:13px;line-height:1.45;margin:0 0 8px;color:#50665f}.hub-article-card small{font-size:11px;color:#6c7b76}.hub-authors{display:grid;gap:12px}.hub-author{display:grid;grid-template-columns:72px 1fr;gap:14px;align-items:start;border:1px solid #dce5e1;border-radius:12px;padding:14px;background:#fff}.hub-author img,.hub-avatar{width:72px;height:72px;border-radius:50%;object-fit:cover;background:#dce8e4}.hub-author small{display:block;color:#08745e;font-weight:700;margin:2px 0 6px}.hub-author p{font-size:12px;line-height:1.4;color:#5d706a;margin:0 0 5px}
.hub-category-strip{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.hub-category-card{min-height:106px;border:1px solid #dce5e1;border-radius:12px;background:#fff;padding:18px;display:flex;gap:12px;align-items:center;text-decoration:none;color:#102f27;transition:.18s}.hub-category-card:hover{border-color:#83b5a7;box-shadow:0 8px 20px rgba(0,45,34,.07);transform:translateY(-2px)}.hub-category-svg{width:38px;height:38px;display:grid;place-items:center;color:#08745e;flex:0 0 38px}.hub-category-svg svg,.hub-category-svg img{width:34px;height:34px;object-fit:contain}.hub-category-card.more{border-style:dashed}
.hub-video-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.hub-video-card{border:1px solid #dce5e1;background:#fff;border-radius:12px;padding:0;overflow:hidden;text-align:left;cursor:pointer}.hub-video-thumb{display:block;position:relative;aspect-ratio:16/9;background:#07271f}.hub-video-thumb img{width:100%;height:100%;object-fit:cover;display:block}.hub-video-thumb i{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:44px;height:44px;border-radius:50%;background:rgba(7,86,70,.92);color:#fff;display:grid;place-items:center;font-style:normal}.hub-video-card strong{display:block;padding:12px 12px 3px;font-size:15px;line-height:1.25;color:#14362e}.hub-video-card small{display:block;padding:0 12px 12px;color:#71817b}.hub-video-modal[hidden]{display:none}.hub-video-modal{position:fixed;inset:0;z-index:99999;display:grid;place-items:center;padding:20px}.hub-video-backdrop{position:absolute;inset:0;background:rgba(0,23,18,.84)}.hub-video-dialog{position:relative;z-index:1;width:min(980px,95vw);background:#fff;border-radius:14px;overflow:hidden}.hub-video-dialog iframe{display:block;width:100%;aspect-ratio:16/9;border:0;background:#000}.hub-video-close{position:absolute;z-index:2;right:12px;top:12px;width:42px;height:42px;border-radius:50%;border:1px solid rgba(255,255,255,.5);background:rgba(0,35,27,.75);color:#fff;font-size:28px}.hub-video-meta{padding:16px 20px}.hub-video-meta h3{margin:0 0 8px}
@media(max-width:1150px){.hub-category-strip{grid-template-columns:repeat(3,1fr)}.hub-video-grid{grid-template-columns:repeat(2,1fr)}.hub-two-columns{grid-template-columns:1fr}.hub-article-grid.compact{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.hub-hero-arrow{width:40px;height:40px}.hub-hero-arrow.prev{left:6px}.hub-hero-arrow.next{right:6px}.hub-article-grid.compact{grid-template-columns:1fr}.hub-article-card{grid-template-columns:110px 1fr}.hub-category-strip{grid-template-columns:1fr 1fr}.hub-video-grid{grid-template-columns:1fr}}
\n/* Phase 7.9 normalized publication presentation */\n.publication-detail-clean{display:grid;grid-template-columns:300px minmax(0,1fr);gap:42px;align-items:start}.publication-cover-column{position:sticky;top:24px}.publication-overview-card{background:#fff;border:1px solid var(--hub-line);border-radius:14px;padding:38px;min-height:420px}.publication-overview-card h2{font:700 42px Georgia,serif;color:var(--hub-text);margin:10px 0 16px}.publication-description{font-size:17px;line-height:1.7;color:var(--hub-muted);max-width:850px}.publication-primary-actions{margin:26px 0}.reader-explainer{margin-top:28px;padding:20px;border-radius:10px;background:#f1f7f5;border:1px solid var(--hub-line);color:var(--hub-text)}.reader-explainer p{color:var(--hub-muted);line-height:1.55;margin:6px 0 0}@media(max-width:900px){.publication-detail-clean{grid-template-columns:1fr}.publication-cover-column{position:static;max-width:320px}.publication-overview-card{padding:24px}}\n
/* Phase 7.10 publication landing: cover is a reader entry, never a dead giant image */
.publication-cover-column{max-width:340px}.publication-cover-link{display:block;position:relative;text-decoration:none}.publication-cover-link .hub-cover{display:block;width:100%;max-height:520px;object-fit:contain;background:#fff}.cover-read-cta{position:absolute;left:14px;right:14px;bottom:14px;background:#063f35e8;color:#fff;padding:12px 14px;border-radius:9px;text-align:center;font-weight:800;box-shadow:0 8px 25px #001c1740;opacity:.94}.publication-cover-link:hover .cover-read-cta{background:#0d765f;transform:translateY(-2px)}.reader-main-btn{font-size:16px;padding:14px 20px}@media(max-width:900px){.publication-cover-column{max-width:300px;margin:auto}}

/* Phase 7.11 — compact knowledge catalog + direct reader navigation */
.site-header .brand{font-size:29px}.site-header .brand span{font-size:18px}
.hub-library-title{padding-top:46px;padding-bottom:38px}
.publication-compact-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px;padding-top:34px;padding-bottom:54px}
.publication-compact-card{display:block;min-width:0;border:1px solid var(--hub-line);border-radius:14px;background:#fff;overflow:hidden;color:var(--hub-text);text-decoration:none;transition:transform .17s ease,box-shadow .17s ease,border-color .17s ease}
.publication-compact-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(0,45,34,.09);border-color:#9cc7bc}
.publication-square-media{position:relative;aspect-ratio:1/1;background:#f5f8f7;display:grid;place-items:center;overflow:hidden}
.publication-square-media img{width:100%;height:100%;object-fit:contain;padding:13px;display:block}
.publication-square-fallback{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;background:linear-gradient(145deg,#0f5747,#082b24);color:#fff;text-align:center}.publication-square-fallback b{font:30px Georgia,serif}.publication-square-fallback span{margin-top:10px;font-weight:700}
.reader-card-cta{position:absolute;left:10px;right:10px;bottom:10px;padding:9px 10px;border-radius:8px;background:rgba(5,62,50,.92);color:#fff;font-size:12px;font-weight:800;text-align:center;opacity:0;transform:translateY(5px);transition:.16s}.publication-compact-card:hover .reader-card-cta{opacity:1;transform:none}
.publication-compact-body{padding:14px}.publication-compact-body h3{font:700 19px/1.15 Georgia,serif;margin:6px 0 8px}.publication-compact-body p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;color:var(--hub-muted);font-size:13px;line-height:1.45;min-height:56px;margin:0 0 10px}.publication-compact-body .hub-format-tags{margin-top:8px}
.article-catalog-page{padding-top:48px}.article-catalog-top{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:38px}.article-catalog-top h1{font:700 48px Georgia,serif;margin:5px 0 10px}.article-catalog-top p{color:var(--hub-muted);margin:0}.article-category-section{margin:0 0 52px}.article-category-section .section-head{margin-bottom:16px}.article-category-section .section-head h2{font:700 32px Georgia,serif;margin:4px 0 0}.article-more-link{font-weight:800;color:#0a6d58}
.article-square-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.article-square-card{border:1px solid #dfe7e4;border-radius:12px;background:#fff;overflow:hidden}.article-square-media{display:block;aspect-ratio:1/1;background:#f3f6f5;overflow:hidden}.article-square-media img{width:100%;height:100%;object-fit:cover;display:block}.article-square-fallback{width:100%;height:100%;display:grid;place-items:center;background:#0c4d40;color:#fff;font:700 28px Georgia,serif}.article-square-body{padding:15px}.article-square-body h3{font:700 20px/1.15 Georgia,serif;margin:7px 0 9px}.article-square-body p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;color:#5e6f69;font-size:13px;line-height:1.45;margin:0 0 10px}.article-square-body small{font-size:11px;color:#667772}
.related-article-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:44px}.related-article-card{border:1px solid #dfe7e4;border-radius:12px;background:#fff;overflow:hidden}.related-article-media{display:block;aspect-ratio:1/1;background:#f3f6f5}.related-article-media img{width:100%;height:100%;object-fit:cover;display:block}.related-article-body{padding:14px}.related-article-body h3{font:700 19px/1.15 Georgia,serif;margin:0 0 8px}.related-article-body p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;line-height:1.42;color:#5c6c67;margin:0 0 10px}.related-article-body small{font-size:11px;color:#557068}
@media(max-width:1250px){.publication-compact-grid{grid-template-columns:repeat(4,1fr)}.article-square-grid,.related-article-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:900px){.publication-compact-grid{grid-template-columns:repeat(3,1fr)}.article-square-grid,.related-article-grid{grid-template-columns:repeat(2,1fr)}.article-catalog-top{align-items:flex-start;flex-direction:column}}
@media(max-width:620px){.publication-compact-grid{grid-template-columns:repeat(2,1fr);gap:12px}.article-square-grid,.related-article-grid{grid-template-columns:1fr}.article-catalog-top h1{font-size:38px}.reader-card-cta{opacity:1;transform:none}.publication-compact-body p{min-height:0}.site-header .brand span{display:inline;font-size:14px}}

/* Phase 7.12 — compact catalogs, cleaner navigation, real-data rails */
.site-header .nav-wrap{gap:18px}.site-header nav{display:flex;align-items:center;gap:22px}.site-header nav>a,.nav-dropdown-trigger{white-space:nowrap}.nav-dropdown{position:relative;display:inline-flex;align-items:center}.nav-dropdown-trigger{display:inline-flex;align-items:center;gap:6px}.nav-dropdown-trigger b{font-size:12px;color:#5f746e}.nav-submenu{position:absolute;top:calc(100% + 16px);left:-18px;min-width:210px;padding:9px;background:#fff;border:1px solid #dfe8e5;border-radius:12px;box-shadow:0 18px 42px rgba(0,38,30,.14);display:none;z-index:999}.nav-submenu:before{content:"";position:absolute;left:0;right:0;top:-18px;height:20px}.nav-dropdown:hover .nav-submenu,.nav-dropdown:focus-within .nav-submenu{display:grid}.nav-submenu a{padding:10px 12px;border-radius:8px;color:#183d34;text-decoration:none;font-size:14px}.nav-submenu a:hover{background:#eef7f4;color:#08745e}

/* Home catalog cards are compact previews, not long posters */
.hub-main .hub-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}.hub-main .hub-card{min-width:0}.hub-main .hub-card-media{aspect-ratio:1/1;background:#f3f7f5}.hub-main .hub-card-media img{object-fit:cover}.hub-main .hub-card-body{padding:12px}.hub-main .hub-card h3{font-size:17px;line-height:1.15;margin:5px 0 7px}.hub-main .hub-card p{font-size:12px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 8px}.hub-main .hub-license{font-size:10px;padding-top:8px}.hub-main .hub-format-tag{font-size:9px}.hub-main .hub-btn{padding:8px 10px;font-size:11px}

/* Articles: square visual, short excerpt, author portrait */
.article-square-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}.article-square-card{min-width:0}.article-square-media{aspect-ratio:1/1}.article-square-body{padding:13px}.article-square-body h3{font-size:18px}.article-square-body p{font-size:12px;-webkit-line-clamp:2;min-height:35px}.article-card-author{display:flex;align-items:center;gap:8px;margin-top:10px;color:#557068;font-size:11px}.article-card-author img,.article-card-avatar-fallback{width:28px;height:28px;border-radius:50%;object-fit:cover;display:grid;place-items:center;background:#d9e9e4;color:#0b6c58;font-weight:800;flex:0 0 28px}
.home-editorial-columns{grid-template-columns:minmax(0,2.2fr) minmax(280px,.8fr);align-items:start}.home-article-square-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.home-article-square-card{background:#fff;border:1px solid #dfe7e4;border-radius:12px;overflow:hidden}.home-article-square-media{aspect-ratio:1/1;display:grid;place-items:center;background:#edf3f1;overflow:hidden;text-decoration:none}.home-article-square-media img{width:100%;height:100%;object-fit:cover}.home-article-square-media>span{font:700 28px Georgia,serif;color:#0a5f4d}.home-article-square-body{padding:13px}.home-article-square-body h3{font:700 18px/1.15 Georgia,serif;margin:6px 0 8px}.home-article-square-body p{font-size:12px;line-height:1.42;color:#5d6f69;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.most-read-rail{margin-bottom:42px}.most-read-list{display:grid;gap:9px}.most-read-item{display:grid;grid-template-columns:30px 58px 1fr;gap:10px;align-items:center;padding:10px;background:#fff;border:1px solid #dfe7e4;border-radius:10px;color:#153d34;text-decoration:none}.most-read-item>b{font:700 18px Georgia,serif;color:#0a7a62}.most-read-item img{width:58px;height:58px;border-radius:8px;object-fit:cover}.most-read-item strong{font-size:13px;line-height:1.2;display:block}.most-read-item small{display:block;margin-top:4px;color:#73827d;font-size:10px}.hub-empty.compact{padding:18px;font-size:12px}.home-author-row{grid-template-columns:repeat(3,minmax(0,1fr))}

/* Related edition articles stay compact and show the author */
.related-article-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:15px}.related-article-media{aspect-ratio:1/1}.related-article-body h3{font-size:17px}.related-article-body p{font-size:12px;-webkit-line-clamp:2}.related-author{display:flex;align-items:center;gap:7px;font-size:10px;color:#5e716b}.related-author img{width:26px;height:26px;border-radius:50%;object-fit:cover}

/* Community group identity: real logo or professional vector fallback */
.hub-space-icon{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;margin-bottom:12px;background:#edf7f4;color:#0a745e}.hub-space-icon svg,.hub-space-icon img{width:34px;height:34px;object-fit:contain}.hub-space-icon-project7x{background:#fff3e9;color:#e76d13}.hub-space-icon-nexid{background:#eaf4ff;color:#1775bd}.hub-space-icon-revista-pmcc{background:#e9f7f1;color:#0c775f}.hub-space-icon-red-productos{background:#f1edff;color:#6b50b7}.hub-community-card{position:relative;overflow:hidden}.hub-community-card:after{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:linear-gradient(90deg,#0a715c,#44c7a5)}

@media(max-width:1300px){.hub-main .hub-grid{grid-template-columns:repeat(5,1fr)}.article-square-grid,.related-article-grid{grid-template-columns:repeat(4,1fr)}.home-article-square-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:1050px){.site-header nav{gap:14px}.hub-main .hub-grid{grid-template-columns:repeat(4,1fr)}.article-square-grid,.related-article-grid{grid-template-columns:repeat(3,1fr)}.home-editorial-columns{grid-template-columns:1fr}.home-author-row{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.nav-dropdown{position:static}.nav-submenu{left:10px;right:10px;top:auto}.hub-main .hub-grid{grid-template-columns:repeat(2,1fr)}.article-square-grid,.related-article-grid{grid-template-columns:repeat(2,1fr)}.home-article-square-grid{grid-template-columns:repeat(2,1fr)}.home-author-row{grid-template-columns:1fr}.most-read-item{grid-template-columns:26px 50px 1fr}.most-read-item img{width:50px;height:50px}}

/* Phase 7.13 — compact editorial home */
.hub-format-icon svg{width:25px;height:25px}.hub-format-tags i{width:24px;height:24px;display:inline-grid;place-items:center;border:1px solid #d7e3df;border-radius:6px;color:#0a755f;background:#fff}.hub-format-tags i svg{width:15px;height:15px}
.home-publication-compact-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.home-publication-mini{display:grid;grid-template-columns:96px 1fr;min-height:118px;border:1px solid #dfe7e4;border-radius:12px;overflow:hidden;background:#fff;text-decoration:none;color:#173b31}.home-publication-mini-media{width:96px;aspect-ratio:1/1;align-self:center;background:#edf4f1;overflow:hidden;display:grid;place-items:center}.home-publication-mini-media img{width:100%;height:100%;object-fit:cover}.home-publication-mini-body{padding:10px 11px;min-width:0}.home-publication-mini-body>small{display:block;color:#0a846b;text-transform:uppercase;font-weight:800;font-size:9px;letter-spacing:.08em}.home-publication-mini-body>strong{display:block;font:700 15px/1.15 Georgia,serif;margin:4px 0}.home-publication-mini-body>em{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-style:normal;color:#65766f;font-size:10px;line-height:1.35}.home-publication-mini .hub-format-tags{margin-top:7px;display:flex;gap:4px}
.home-editorial-columns{grid-template-columns:minmax(0,2.35fr) minmax(280px,.65fr)}.home-article-square-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.home-article-square-card{border-radius:10px}.home-article-square-body{padding:10px}.home-article-square-body h3{font-size:15px;margin:4px 0 6px}.home-article-square-body p{font-size:10.5px;line-height:1.35}.home-article-square-body .hub-card-type{font-size:8px}.article-card-author{margin-top:8px;font-size:9px}.article-card-author img,.article-card-avatar-fallback{width:24px;height:24px}.home-right-rail{display:grid;gap:14px}.home-right-rail .hub-section{margin:0}.home-right-rail .hub-section-head h2{font-size:24px}.most-read-item{grid-template-columns:24px 44px 1fr;padding:7px;gap:7px}.most-read-item img{width:44px;height:44px}.most-read-item strong{font-size:11px}.rail-author-list{display:grid;gap:7px}.rail-author{display:flex;align-items:center;gap:8px;padding:8px;border:1px solid #dfe7e4;border-radius:9px;background:#fff;text-decoration:none;color:#153d34}.rail-author img,.rail-author .article-card-avatar-fallback{width:38px;height:38px;border-radius:50%;object-fit:cover}.rail-author b{display:block;font-size:11px}.rail-author small{display:block;color:#6d7c77;font-size:9px;margin-top:2px}.rail-category-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.rail-category-grid a{display:flex;gap:7px;align-items:center;padding:8px;border:1px solid #dfe7e4;border-radius:9px;background:#fff;text-decoration:none;color:#153d34;font-size:10px}.rail-category-grid a>span{width:27px;height:27px;color:#0a7b63;display:grid;place-items:center}.rail-category-grid svg,.rail-category-grid img{width:24px;height:24px;object-fit:contain}.hub-section-more{margin-top:12px;text-align:right}.hub-video-nav{position:absolute;top:43%;z-index:3;width:48px;height:48px;border-radius:50%;border:1px solid #ffffff66;background:#073d32dd;color:#fff;font-size:32px;cursor:pointer}.hub-video-nav.prev{left:12px}.hub-video-nav.next{right:12px}.hub-video-dialog{position:relative}.hub-video-card strong{padding:9px 10px 11px;font-size:13px}.hub-video-card small{display:none}
@media(max-width:1300px){.home-publication-compact-grid{grid-template-columns:repeat(2,1fr)}.home-article-square-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:950px){.home-editorial-columns{grid-template-columns:1fr}.home-article-square-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.home-publication-compact-grid,.home-article-square-grid{grid-template-columns:1fr 1fr}.home-publication-mini{grid-template-columns:78px 1fr}.home-publication-mini-media{width:78px}.rail-category-grid{grid-template-columns:1fr}.hub-video-nav{width:40px;height:40px}}

/* Phase 7.16 compact library catalog */
.hub-library-title{padding-top:28px!important;padding-bottom:24px!important}
.hub-library-title + .hub-main{padding-top:16px!important}
.publication-compact-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:14px!important;padding-top:0!important;padding-bottom:42px!important}
.publication-compact-card{border-radius:11px!important}
.publication-square-media{aspect-ratio:1/1!important;min-height:0!important}
.publication-square-media img{width:100%!important;height:100%!important;object-fit:cover!important;padding:0!important}
.publication-compact-body{padding:10px!important}
.publication-compact-body h3{font-size:16px!important;margin:4px 0 5px!important}
.publication-compact-body p{font-size:11px!important;line-height:1.35!important;min-height:30px!important;-webkit-line-clamp:2!important;margin-bottom:6px!important}
.publication-compact-body .hub-format-tags{margin-top:5px!important}
.publication-compact-body .hub-format-tag{font-size:8px!important;padding:2px 4px!important}
@media(max-width:1250px){.publication-compact-grid{grid-template-columns:repeat(5,1fr)!important}}
@media(max-width:980px){.publication-compact-grid{grid-template-columns:repeat(4,1fr)!important}}
@media(max-width:700px){.publication-compact-grid{grid-template-columns:repeat(2,1fr)!important}}

/* Phase 7.24 — Unified Editorial Hero */
.hub-hero-slide-article{min-height:430px}.hub-hero-article-grid{display:grid;grid-template-columns:minmax(360px,1.15fr) minmax(420px,1fr) 270px;gap:38px;align-items:center}.hub-hero-article-media{height:360px;border-radius:14px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:#082f28;color:#8ee0c9;text-decoration:none;box-shadow:0 24px 55px #001d174d;border:1px solid rgba(255,255,255,.16)}.hub-hero-article-media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .45s ease}.hub-hero-article-media:hover img{transform:scale(1.025)}.hub-hero-article-copy h1{font-size:clamp(38px,4.3vw,62px);line-height:1.03}.hub-hero-article-copy .subtitle{font-size:18px;max-width:680px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.hub-article-byline{display:flex;align-items:center;gap:11px;margin:18px 0 20px}.hub-article-byline img,.hub-article-byline>span{width:44px;height:44px;border-radius:50%;object-fit:cover;background:#16866d;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800}.hub-article-byline b,.hub-article-byline small{display:block}.hub-article-byline small{color:#cce3dd;margin-top:2px}.hub-article-context{padding:22px;border-radius:14px;background:linear-gradient(160deg,#0a4a3f,#07372f);border:1px solid #377f70;box-shadow:inset 0 1px #ffffff12}.hub-article-context .context-icon{font-size:30px;color:#56d7b5}.hub-article-context h3{margin:9px 0 8px;font:700 20px Georgia,serif}.hub-article-context p{font-size:13px;line-height:1.5;color:#cfe4de}.context-meta{border-top:1px solid #ffffff16;padding-top:11px;margin-top:11px}.context-meta span,.context-meta b{display:block}.context-meta span{font-size:10px;text-transform:uppercase;letter-spacing:.12em;color:#72cbb4}.context-meta b{margin-top:3px;font-size:13px}.hub-btn-static{cursor:default;color:#d7e9e4}.hub-hero-slide-article .hub-kicker{color:#5ee0ba}
@media(max-width:1180px){.hub-hero-article-grid{grid-template-columns:1fr 1fr}.hub-article-context{grid-column:1/-1;display:grid;grid-template-columns:auto 1fr 1fr;gap:14px;align-items:center}.hub-article-context h3,.hub-article-context p{margin:0}.context-meta{border-top:0;border-left:1px solid #ffffff16;padding:0 0 0 14px;margin:0}}
@media(max-width:760px){.hub-hero-article-grid{grid-template-columns:1fr}.hub-hero-article-media{height:240px}.hub-article-context{grid-column:auto;display:block}.context-meta{border-left:0;border-top:1px solid #ffffff16;padding:10px 0 0;margin-top:10px}}

/* Phase 7.25 — Compact professional article hero */
.hub-hero{padding:28px 0 24px}
.hub-hero-slide-article{min-height:0}
.hub-hero-slide-article .hub-hero-article-grid{
  display:grid;
  grid-template-columns:minmax(420px,42%) minmax(0,1fr) 230px;
  gap:28px;
  align-items:center;
  min-height:340px;
}
.hub-hero-slide-article .hub-hero-article-media{
  height:310px;
  border-radius:12px;
  box-shadow:0 16px 36px #001d1738;
}
.hub-hero-slide-article .hub-hero-article-copy{min-width:0;padding:4px 0}
.hub-hero-slide-article .hub-hero-article-copy h1{
  font-size:clamp(30px,3vw,46px);
  line-height:1.02;
  margin:7px 0 10px;
  max-width:780px;
  text-wrap:balance;
}
.hub-hero-slide-article .hub-hero-article-copy .subtitle{
  font-size:16px;
  line-height:1.42;
  max-width:720px;
  -webkit-line-clamp:2;
  margin:0;
}
.hub-hero-slide-article .hub-article-byline{margin:12px 0 14px;gap:9px}
.hub-hero-slide-article .hub-article-byline img,
.hub-hero-slide-article .hub-article-byline>span{width:38px;height:38px;font-size:14px}
.hub-hero-slide-article .hub-article-byline b{font-size:13px}
.hub-hero-slide-article .hub-article-byline small{font-size:11px}
.hub-hero-slide-article .hub-actions{gap:8px}
.hub-hero-slide-article .hub-btn{padding:9px 13px;font-size:13px;border-radius:7px}
.hub-hero-slide-article .hub-article-context{
  padding:17px 18px;
  border-radius:12px;
  box-shadow:none;
}
.hub-hero-slide-article .hub-article-context .context-icon{font-size:22px}
.hub-hero-slide-article .hub-article-context h3{font-size:17px;margin:6px 0}
.hub-hero-slide-article .hub-article-context p{font-size:11.5px;line-height:1.42;margin:0}
.hub-hero-slide-article .context-meta{padding-top:8px;margin-top:8px}
.hub-hero-slide-article .context-meta b{font-size:12px}
.hub-hero-slide-article .context-meta span{font-size:9px}
.hub-hero-slider .hub-hero-dots{padding-top:8px}

@media(max-width:1180px){
  .hub-hero-slide-article .hub-hero-article-grid{grid-template-columns:minmax(330px,.9fr) 1.1fr;min-height:320px;gap:24px}
  .hub-hero-slide-article .hub-hero-article-media{height:285px}
  .hub-hero-slide-article .hub-article-context{grid-column:1/-1;display:none}
}
@media(max-width:760px){
  .hub-hero{padding:20px 0}
  .hub-hero-slide-article .hub-hero-article-grid{grid-template-columns:1fr;gap:16px;min-height:0}
  .hub-hero-slide-article .hub-hero-article-media{height:220px}
  .hub-hero-slide-article .hub-hero-article-copy h1{font-size:clamp(28px,9vw,38px);line-height:1.06}
  .hub-hero-slide-article .hub-hero-article-copy .subtitle{font-size:14px}
}

/* Phase 7.26 — Stable-height unified hero
   Keep every slide in the same grid cell so the carousel height is based on
   the tallest slide. This prevents the page from jumping up/down as article
   titles, excerpts or publication layouts change between slides. */
.hub-hero-stage{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-items:stretch;
}
.hub-hero-stage .hub-hero-slide{
  grid-area:1 / 1;
  display:block;
  visibility:hidden;
  opacity:0;
  pointer-events:none;
  min-width:0;
  transition:opacity .28s ease;
}
.hub-hero-stage .hub-hero-slide.active{
  visibility:visible;
  opacity:1;
  pointer-events:auto;
  z-index:2;
}
/* Keep article headlines visually controlled even if editorial titles vary a lot. */
.hub-hero-slide-article .hub-hero-article-copy h1{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
}
@media(max-width:760px){
  .hub-hero-slide-article .hub-hero-article-copy h1{-webkit-line-clamp:4}
}

/* Phase 7.43 — consistent article/author alignment */
.home-article-square-card{display:flex;flex-direction:column;height:100%}
.home-article-square-body{display:flex;flex-direction:column;flex:1;min-height:185px}
.home-article-square-body h3{min-height:42px}
.home-article-square-body p{min-height:30px}
.home-article-square-body .article-card-author{margin-top:auto;min-height:28px;align-items:center}
.home-article-square-body .article-card-author>span:last-child{line-height:1.15}
.rail-author{min-height:58px;align-items:center}
.rail-author>span:last-child{display:flex;flex-direction:column;justify-content:center;min-height:38px}

/* Phase 7.44 — fixed editorial card baselines */
.home-article-square-grid{align-items:stretch}
.home-article-square-card{display:grid;grid-template-rows:auto 1fr;height:100%;min-height:100%}
.home-article-square-body{display:grid;grid-template-rows:auto minmax(54px,auto) minmax(48px,1fr) 38px;align-content:start;height:100%;min-height:220px}
.home-article-square-body h3{margin:8px 0 6px;min-height:54px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.home-article-square-body p{margin:0;min-height:48px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.home-article-square-body .article-card-author{align-self:end;margin:8px 0 0!important;height:38px;min-height:38px;display:flex;align-items:center;gap:9px}
.home-article-square-body .article-card-author img,.home-article-square-body .article-card-avatar-fallback{width:30px;height:30px;min-width:30px;border-radius:50%;object-fit:cover}


/* Phase 7.51 — normalized unified hero title scale and stable slide height */
.hub-hero-stage .hub-hero-slide{height:100%}
.hub-hero-grid,
.hub-hero-slide-article .hub-hero-article-grid{
  min-height:360px;
  align-items:center;
}
.hub-hero-grid>div:nth-child(2),
.hub-hero-slide-article .hub-hero-article-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.hub-hero-grid h1,
.hub-hero-slide-article .hub-hero-article-copy h1{
  font:700 clamp(30px,3.25vw,46px) Georgia,serif;
  line-height:1.04;
  margin:8px 0 10px;
  max-width:800px;
  text-wrap:balance;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
  min-height:3.12em;
}
.hub-hero-grid .subtitle,
.hub-hero-slide-article .hub-hero-article-copy .subtitle{
  font-size:17px;
  line-height:1.45;
  max-width:760px;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  min-height:2.9em;
  margin:0;
}
.hub-hero-grid .hub-actions,
.hub-hero-slide-article .hub-actions{margin-top:16px}
.hub-hero-grid .hub-note{margin-top:14px}
.hub-hero-grid .hub-format-card{align-self:stretch;display:flex;flex-direction:column;justify-content:center}

@media(max-width:1180px){
  .hub-hero-grid,
  .hub-hero-slide-article .hub-hero-article-grid{min-height:320px}
  .hub-hero-grid h1,
  .hub-hero-slide-article .hub-hero-article-copy h1{font-size:clamp(28px,3.6vw,40px)}
}
@media(max-width:760px){
  .hub-hero-grid,
  .hub-hero-slide-article .hub-hero-article-grid{min-height:0}
  .hub-hero-grid h1,
  .hub-hero-slide-article .hub-hero-article-copy h1{
    font-size:clamp(26px,8.6vw,36px);
    -webkit-line-clamp:4;
    min-height:0;
  }
  .hub-hero-grid .subtitle,
  .hub-hero-slide-article .hub-hero-article-copy .subtitle{
    font-size:14px;
    min-height:0;
  }
}


/* Phase 8.3 — Home library cards: uniform vertical alignment */
.hub-main .hub-grid{
  align-items:stretch;
}
.hub-main .hub-card{
  display:flex;
  flex-direction:column;
  height:100%;
}
.hub-main .hub-card-media{
  flex:0 0 auto;
}
.hub-main .hub-card-body{
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  min-height:0;
}
.hub-main .hub-card h3{
  line-height:1.16;
  min-height:3.48em;
  max-height:3.48em;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
}
.hub-main .hub-card p{
  min-height:2.8em;
  max-height:2.8em;
  margin:0 0 8px;
}
.hub-main .hub-license{
  margin-top:auto;
  min-height:29px;
  display:flex;
  align-items:center;
}

@media(max-width:760px){
  .hub-main .hub-card h3{
    min-height:0;
    max-height:none;
  }
  .hub-main .hub-card p{
    min-height:0;
    max-height:none;
  }
}

/* === PMCC PHASE 11.2.7E CSS ONLY START === */
/* PMCC Phase 11.2.7E — CSS-ONLY SAFE HOME FIX
   No modifica index.php, consultas SQL, base de datos ni lógica PHP.
*/

/* =========================================================
   1) ARTÍCULOS DESTACADOS — estado vacío para septiembre
   Chrome/Edge/Safari/Firefox modernos soportan :has().
   El mensaje aparece SOLO si no existe ninguna .hub-article-card.
   ========================================================= */
.hub-two-columns > .hub-section:first-child{
  min-width:0!important;
}
.hub-two-columns .hub-article-grid.compact{
  width:100%!important;
  min-width:0!important;
}
.hub-two-columns .hub-article-grid.compact:not(:has(.hub-article-card)){
  display:flex!important;
  align-items:stretch!important;
  width:100%!important;
  min-height:250px!important;
  height:auto!important;
  visibility:visible!important;
  opacity:1!important;
  overflow:visible!important;
}
.hub-two-columns .hub-article-grid.compact:not(:has(.hub-article-card))::before{
  content:"Aún no hay artículos publicados en septiembre. Los artículos de agosto ya están archivados. Los nuevos contenidos de este mes aparecerán aquí cuando sean publicados.";
  box-sizing:border-box!important;
  width:100%!important;
  min-height:250px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:34px 48px!important;
  text-align:center!important;
  white-space:normal!important;
  line-height:1.55!important;
  font-size:17px!important;
  font-weight:600!important;
  color:#52666d!important;
  background:#fff!important;
  border:1px dashed rgba(0,112,92,.30)!important;
  border-radius:16px!important;
}

/* =========================================================
   2) TIENDA — las 4 cards con igual alto y precio/botón al pie
   ========================================================= */
.hub-product-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  align-items:stretch!important;
  gap:24px!important;
}
.hub-product-grid > article.hub-card{
  display:flex!important;
  flex-direction:column!important;
  height:100%!important;
  min-width:0!important;
  overflow:hidden!important;
}
.hub-product-grid > article.hub-card > .hub-product-img,
.hub-product-grid > article.hub-card > img.hub-product-img{
  display:block!important;
  width:100%!important;
  height:245px!important;
  min-height:245px!important;
  flex:0 0 245px!important;
  object-fit:cover!important;
}
.hub-product-grid > article.hub-card > .hub-card-body{
  display:flex!important;
  flex-direction:column!important;
  flex:1 1 auto!important;
  min-width:0!important;
  min-height:205px!important;
  box-sizing:border-box!important;
  padding:16px!important;
}
.hub-product-grid > article.hub-card .hub-card-type{
  flex:0 0 auto!important;
}
.hub-product-grid > article.hub-card h3{
  flex:0 0 auto!important;
  margin:8px 0 10px!important;
}
.hub-product-grid > article.hub-card .hub-price{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  width:100%!important;
  margin-top:auto!important;
  padding-top:22px!important;
  min-height:66px!important;
  box-sizing:border-box!important;
}
.hub-product-grid > article.hub-card .hub-price b{
  margin:0!important;
  padding:0!important;
  line-height:1.15!important;
}
.hub-product-grid > article.hub-card .hub-price .hub-btn{
  margin-left:auto!important;
  flex:0 0 auto!important;
  white-space:nowrap!important;
}

/* =========================================================
   3) COMUNIDAD — cards iguales; métricas y Abrir espacio al pie
   ========================================================= */
.hub-community{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  align-items:stretch!important;
  gap:24px!important;
}
.hub-community > a.hub-community-card{
  display:flex!important;
  flex-direction:column!important;
  height:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
.hub-community > a.hub-community-card h3{
  flex:0 0 auto!important;
  min-height:48px!important;
  margin:10px 0 7px!important;
}
.hub-community > a.hub-community-card > p{
  flex:1 1 auto!important;
  min-height:76px!important;
  margin:0!important;
  line-height:1.45!important;
}
.hub-community > a.hub-community-card .hub-stats3{
  flex:0 0 auto!important;
  width:100%!important;
  margin-top:auto!important;
  padding-top:18px!important;
}
.hub-community > a.hub-community-card .hub-card-open{
  flex:0 0 auto!important;
  display:block!important;
  margin-top:18px!important;
  min-height:28px!important;
}

@media(max-width:1150px){
  .hub-product-grid,
  .hub-community{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:760px){
  .hub-two-columns .hub-article-grid.compact:not(:has(.hub-article-card))::before{
    min-height:190px!important;
    padding:24px 20px!important;
    font-size:16px!important;
  }
}
@media(max-width:640px){
  .hub-product-grid,
  .hub-community{
    grid-template-columns:1fr!important;
  }
  .hub-product-grid > article.hub-card > .hub-card-body,
  .hub-community > a.hub-community-card h3,
  .hub-community > a.hub-community-card > p{
    min-height:0!important;
  }
}
/* === PMCC PHASE 11.2.7E CSS ONLY END === */

/* =========================================================
   PMCC PHASE 11.2.7G — EXACT HOME FIX FROM FULL SITE SNAPSHOT
   2026-09-01
   ========================================================= */

/* Featured articles: real empty-state HTML, only when current month has none */
.home-article-square-grid > .home-articles-empty{
  grid-column:1/-1!important;
  min-height:270px!important;
  width:100%!important;
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  padding:38px 44px!important;
  text-align:center!important;
  background:#fff!important;
  border:1px dashed rgba(6,92,76,.30)!important;
  border-radius:14px!important;
  color:#5f716b!important;
}
.home-article-square-grid > .home-articles-empty strong{
  display:block!important;
  font:700 22px/1.25 Georgia,serif!important;
  color:#18312c!important;
}
.home-article-square-grid > .home-articles-empty span{
  display:block!important;
  max-width:720px!important;
  font-size:14px!important;
  line-height:1.55!important;
}

/* TIENDA: exact current HTML = article.hub-card > .hub-product-img + .hub-card-body */
.hub-product-grid{
  align-items:stretch!important;
}
.hub-product-grid > article.hub-card{
  display:grid!important;
  grid-template-rows:245px minmax(0,1fr)!important;
  height:100%!important;
  min-height:0!important;
}
.hub-product-grid > article.hub-card > .hub-product-img{
  width:100%!important;
  height:245px!important;
  min-height:245px!important;
  aspect-ratio:auto!important;
  overflow:hidden!important;
}
.hub-product-grid > article.hub-card > .hub-product-img img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}
.hub-product-grid > article.hub-card > .hub-card-body{
  display:grid!important;
  grid-template-rows:auto minmax(72px,auto) 1fr!important;
  align-content:stretch!important;
  padding:16px!important;
  min-height:185px!important;
  box-sizing:border-box!important;
}
.hub-product-grid > article.hub-card .hub-card-type{
  align-self:start!important;
}
.hub-product-grid > article.hub-card h3{
  align-self:start!important;
  min-height:72px!important;
  margin:8px 0 10px!important;
}
.hub-product-grid > article.hub-card .hub-price{
  align-self:end!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  width:100%!important;
  margin:0!important;
  padding-top:14px!important;
  min-height:58px!important;
  box-sizing:border-box!important;
}
.hub-product-grid > article.hub-card .hub-price b{
  margin:0!important;
  line-height:1.15!important;
}
.hub-product-grid > article.hub-card .hub-price .hub-btn{
  margin-left:auto!important;
  flex:0 0 auto!important;
  white-space:nowrap!important;
}

/* COMUNIDAD: exact current HTML = a.hub-community-card */
.hub-community{
  align-items:stretch!important;
}
.hub-community > a.hub-community-card{
  display:flex!important;
  flex-direction:column!important;
  height:100%!important;
  min-height:330px!important;
  box-sizing:border-box!important;
}
.hub-community > a.hub-community-card .hub-space-icon{
  flex:0 0 52px!important;
}
.hub-community > a.hub-community-card h3{
  flex:0 0 auto!important;
  min-height:50px!important;
  margin:10px 0 8px!important;
}
.hub-community > a.hub-community-card > p{
  flex:1 1 auto!important;
  min-height:82px!important;
  margin:0!important;
  line-height:1.45!important;
}
.hub-community > a.hub-community-card .hub-stats3{
  flex:0 0 auto!important;
  width:100%!important;
  margin-top:auto!important;
  padding-top:16px!important;
}
.hub-community > a.hub-community-card .hub-card-open{
  flex:0 0 auto!important;
  display:block!important;
  min-height:26px!important;
  margin-top:16px!important;
}

@media(max-width:1050px){
  .hub-product-grid > article.hub-card > .hub-card-body{min-height:170px!important}
  .hub-community > a.hub-community-card{min-height:300px!important}
}
@media(max-width:640px){
  .home-article-square-grid > .home-articles-empty{min-height:190px!important;padding:26px 20px!important}
  .home-article-square-grid > .home-articles-empty strong{font-size:19px!important}
  .hub-product-grid > article.hub-card{grid-template-rows:auto auto!important}
  .hub-product-grid > article.hub-card > .hub-product-img{height:auto!important;min-height:0!important;aspect-ratio:1.05!important}
  .hub-product-grid > article.hub-card > .hub-card-body{min-height:0!important}
  .hub-product-grid > article.hub-card h3{min-height:0!important}
  .hub-community > a.hub-community-card{min-height:0!important}
  .hub-community > a.hub-community-card h3,
  .hub-community > a.hub-community-card > p{min-height:0!important}
}
/* === END PMCC PHASE 11.2.7G === */

/* === PMCC PHASE 11.2.7H — TIENDA EXACT CARD ALIGNMENT === */
/* Exact tienda.php structure reviewed 2026-09-01:
   .hub-product-grid > article.hub-card > .hub-product-img [+ .product-gallery-strip] > .hub-card-body
   The previous HOME 7G grid rule does not fit cards with gallery strips and tienda.php kept hub.css?v=7400.
*/

.hub-product-grid{
  align-items:stretch!important;
}

.hub-product-grid > article.hub-card{
  display:flex!important;
  flex-direction:column!important;
  height:100%!important;
  min-height:0!important;
  box-sizing:border-box!important;
}

.hub-product-grid > article.hub-card > .hub-product-img{
  display:block!important;
  flex:0 0 245px!important;
  width:100%!important;
  height:245px!important;
  min-height:245px!important;
  aspect-ratio:auto!important;
  overflow:hidden!important;
}

.hub-product-grid > article.hub-card > .hub-product-img img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}

/* Gallery is allowed to occupy its real row without breaking the card body. */
.hub-product-grid > article.hub-card > .product-gallery-strip{
  flex:0 0 auto!important;
  min-height:50px!important;
  box-sizing:border-box!important;
}

.hub-product-grid > article.hub-card > .hub-card-body{
  display:flex!important;
  flex-direction:column!important;
  flex:1 1 auto!important;
  min-height:0!important;
  padding:16px!important;
  box-sizing:border-box!important;
}

.hub-product-grid > article.hub-card .hub-card-type,
.hub-product-grid > article.hub-card .product-rating-summary,
.hub-product-grid > article.hub-card .product-star-form{
  flex:0 0 auto!important;
}

.hub-product-grid > article.hub-card h3{
  flex:0 0 auto!important;
  min-height:58px!important;
  margin:8px 0 10px!important;
}

.hub-product-grid > article.hub-card .product-rating-summary{
  min-height:24px!important;
  margin:4px 0 6px!important;
}

.hub-product-grid > article.hub-card .hub-card-body > p{
  flex:0 0 auto!important;
  min-height:46px!important;
  margin:0 0 8px!important;
}

.hub-product-grid > article.hub-card .product-star-form{
  min-height:36px!important;
  margin:8px 0!important;
}

/* This is the key: every price/action row is pinned to the bottom of the equal-height card. */
.hub-product-grid > article.hub-card .hub-price{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  width:100%!important;
  margin-top:auto!important;
  padding-top:16px!important;
  min-height:62px!important;
  box-sizing:border-box!important;
}

.hub-product-grid > article.hub-card .hub-price b{
  margin:0!important;
  padding:0!important;
  line-height:1.15!important;
  white-space:nowrap!important;
}

.hub-product-grid > article.hub-card .hub-price form{
  margin:0!important;
  margin-left:auto!important;
  flex:0 0 auto!important;
}

.hub-product-grid > article.hub-card .hub-price .hub-btn{
  margin:0!important;
  white-space:nowrap!important;
}

@media(max-width:1050px){
  .hub-product-grid > article.hub-card h3{min-height:0!important}
}

@media(max-width:640px){
  .hub-product-grid > article.hub-card > .hub-product-img{
    flex-basis:auto!important;
    height:auto!important;
    min-height:0!important;
    aspect-ratio:1.05!important;
  }
  .hub-product-grid > article.hub-card h3,
  .hub-product-grid > article.hub-card .hub-card-body > p,
  .hub-product-grid > article.hub-card .product-rating-summary,
  .hub-product-grid > article.hub-card .product-star-form{
    min-height:0!important;
  }
}
/* === END PMCC PHASE 11.2.7H === */

/* === PMCC Phase 11.2.7I | Biblioteca exact alignment + per-card actions === */
.publication-compact-grid{align-items:stretch!important}
.publication-compact-card{display:flex!important;flex-direction:column!important;height:100%!important;min-height:100%!important;overflow:hidden!important;background:#fff!important}
.publication-card-link{display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-width:0!important;color:inherit!important;text-decoration:none!important}
.publication-square-media{flex:0 0 auto!important}
.publication-compact-body{display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-height:0!important}
.publication-compact-body h3{min-height:2.3em!important}
.publication-compact-body p{min-height:3em!important}
.publication-compact-body .hub-format-tags{margin-top:auto!important;padding-top:6px!important}
.publication-compact-card>.pmcc-reading-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;margin:0!important;padding:10px!important;border-top:1px solid #e2ebe8!important;background:#fbfdfc!important}
.publication-compact-card>.pmcc-reading-actions button{width:100%!important;min-height:34px!important;border:1px solid #cadbd6!important;background:#fff!important;color:#075446!important;border-radius:999px!important;padding:7px 8px!important;font:700 11px/1.1 Arial,sans-serif!important;cursor:pointer!important;white-space:nowrap!important}
.publication-compact-card>.pmcc-reading-actions button:hover{background:#eaf7f3!important}
@media(max-width:700px){.publication-compact-body h3,.publication-compact-body p{min-height:0!important}.publication-compact-card>.pmcc-reading-actions{grid-template-columns:1fr!important}}
/* === /PMCC Phase 11.2.7I === */

/* === PMCC Phase 11.2.7J | Biblioteca action buttons containment === */
.publication-compact-card>.pmcc-reading-actions{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:6px!important;
  width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
.publication-compact-card>.pmcc-reading-actions button{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  padding:7px 5px!important;
  font-size:10px!important;
  line-height:1.1!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:clip!important;
}
@media(max-width:1180px){
  .publication-compact-card>.pmcc-reading-actions{grid-template-columns:1fr!important}
  .publication-compact-card>.pmcc-reading-actions button{font-size:11px!important}
}
/* === /PMCC Phase 11.2.7J === */


/* PMCC Phase 11.2.7K — Dedicated Video Library */
.pmcc-video-library-page{padding-top:28px;padding-bottom:54px}
.pmcc-video-library-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:24px}
.pmcc-video-library-head h1{margin:4px 0 7px;font-size:clamp(34px,4vw,54px);line-height:1;color:#082f28}
.pmcc-video-library-head p{margin:0;max-width:760px;color:#65756f;font-size:16px;line-height:1.5}
.pmcc-video-search{display:flex;gap:8px;min-width:min(420px,100%)}
.pmcc-video-search input{width:100%;min-width:0;border:1px solid #d6e2de;border-radius:999px;padding:12px 16px;background:#fff;font:inherit}
.pmcc-video-search button{border:0;border-radius:999px;background:#0a715f;color:#fff;padding:12px 18px;font-weight:700;cursor:pointer}
.pmcc-video-library-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.pmcc-video-library-card{min-width:0;border:1px solid #dbe5e1;border-radius:14px;background:#fff;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 8px 24px rgba(9,50,41,.035)}
.pmcc-video-library-open{display:block;width:100%;padding:0;border:0;background:none;cursor:pointer}
.pmcc-video-library-thumb{display:block;position:relative;aspect-ratio:16/9;background:#07271f;overflow:hidden}
.pmcc-video-library-thumb img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .2s ease}
.pmcc-video-library-card:hover .pmcc-video-library-thumb img{transform:scale(1.025)}
.pmcc-video-library-thumb i{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:rgba(7,104,86,.94);color:#fff;font-style:normal;font-size:17px;box-shadow:0 6px 20px rgba(0,0,0,.2)}
.pmcc-video-library-body{padding:14px;display:flex;flex:1;flex-direction:column;min-width:0}
.pmcc-video-library-body h3{margin:5px 0 15px;color:#102f29;font-size:17px;line-height:1.23;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.pmcc-video-library-meta{margin-top:auto;border-top:1px solid #edf2f0;padding-top:10px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.pmcc-video-library-meta small{color:#788681;white-space:nowrap}
.pmcc-video-library-meta a{color:#08715f;text-decoration:none;font-weight:700;font-size:12px;text-align:right}
.pmcc-video-pagination{margin-top:26px;display:flex;align-items:center;justify-content:center;gap:16px}
.pmcc-video-pagination a{border:1px solid #cfded9;border-radius:999px;padding:9px 14px;color:#096d5c;text-decoration:none;font-weight:700;background:#fff}
.pmcc-video-pagination span{color:#687872;font-weight:700}
@media(max-width:1350px){.pmcc-video-library-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1050px){.pmcc-video-library-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.pmcc-video-library-head{align-items:stretch;flex-direction:column}.pmcc-video-search{min-width:0;width:min(520px,100%)}}
@media(max-width:760px){.pmcc-video-library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.pmcc-video-library-body h3{font-size:15px}.pmcc-video-library-meta{align-items:flex-start;flex-direction:column}}
@media(max-width:480px){.pmcc-video-library-grid{grid-template-columns:1fr}.pmcc-video-search{display:grid;grid-template-columns:1fr auto}}


/* PHASE 11.2.8 HOME MONTH HERO LIBRARY5 CATEGORIES FULL */
.home-categories-full{width:100%;margin-top:8px;margin-bottom:42px}
.home-categories-full .hub-section-head{align-items:center}
.home-categories-full .rail-category-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;width:100%}
.home-categories-full .rail-category-grid a{min-height:86px;padding:16px 18px;font-size:14px;border-radius:12px}
.home-categories-full .rail-category-grid a>span{width:38px;height:38px}
.home-categories-full .rail-category-grid svg,.home-categories-full .rail-category-grid img{width:32px;height:32px}
.home-categories-full .home-category-more-card{background:#0b5f50;color:#fff;border-color:#0b5f50;justify-content:center;text-align:center}
.home-categories-full .home-category-more-card>span{font-size:28px;color:#fff}
@media(max-width:1050px){.home-categories-full .rail-category-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:650px){.home-categories-full .rail-category-grid{grid-template-columns:1fr 1fr}.home-categories-full .rail-category-grid a{min-height:72px;padding:12px;font-size:12px}}
