/* R21.0.6 — isolated Engineering Video Hub, no shared header/footer changes. */
body.etv-portal-page .etv218{--hub-cyan:#00b6d4;--hub-navy:#123b70;--hub-border:#d5e3eb;--hub-white:#fff;color:var(--hub-navy);min-width:0}
.etv218 .etv218-main-cats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:0 0 14px;position:static}
.etv218 .etv218-cat{display:flex;align-items:center;gap:8px;min-width:0;padding:9px;background:#fff;border:1px solid var(--hub-border);border-radius:10px;text-decoration:none!important;color:var(--hub-navy)!important;box-sizing:border-box;overflow:hidden}
.etv218 .etv218-cat:hover,.etv218 .etv218-cat:focus-visible,.etv218 .etv218-cat.is-active{border-color:var(--hub-cyan);background:#edfaff}
.etv218 .etv218-main-cats .etv218-cat img{width:clamp(48px,5vw,83px);height:clamp(48px,5vw,83px);object-fit:contain;flex:none;border-radius:5px}
.etv218 .etv218-cat span{display:flex;flex-direction:column;gap:5px;min-width:0;line-height:1.25;overflow-wrap:anywhere}
.etv218 .etv218-cat b{font-size:14px;line-height:1.25;font-weight:750}.etv218 .etv218-cat small{color:#536878;font-size:12px}
.etv218 .etv218-category-panel{display:grid;grid-template-columns:minmax(160px,25%) minmax(0,1fr);gap:12px;padding:12px;margin:0 0 14px;background:white;border:1px solid var(--hub-border);border-radius:12px}
.etv218 .etv218-hero{display:flex;flex-direction:column;gap:6px;min-width:0;padding:6px;overflow:hidden}.etv218 .etv218-hero h2{font-size:clamp(19px,2.1vw,30px);line-height:1.2;margin:0;color:var(--hub-navy)}.etv218 .etv218-hero p{font-size:14px;line-height:1.4;margin:0;color:#52697a}.etv218 .etv218-hero img{width:100%;max-height:330px;object-fit:contain;margin-top:auto}
.etv218 .etv218-subgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;min-width:0}.etv218 .etv218-subgrid .etv218-cat{flex-direction:column;justify-content:center;text-align:center;padding:8px;gap:5px;min-height:126px}.etv218 .etv218-subgrid img{width:100%;height:95px;object-fit:contain}.etv218 .etv218-subgrid b:after{display:block;content:'';width:32px;height:3px;border-radius:2px;background:var(--hub-cyan);margin:5px auto 0}
body.etv-portal-page .etv218 .tv22-workspace{display:grid!important;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr)!important;gap:14px;align-items:start!important;margin:0 0 14px}
body.etv-portal-page .etv218 .tv22-right,body.etv-portal-page .etv218 .tv22-left{width:auto!important;min-width:0;max-width:none!important;height:auto!important;min-height:0!important;align-self:start!important;position:static!important;overflow:visible!important}
body.etv-portal-page .etv218 .tv22-video-list{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;flex:none!important;display:grid;gap:6px;padding:0!important}
body.etv-portal-page .etv218 .tv22-video-row{display:grid!important;grid-template-columns:minmax(70px,30%) minmax(0,1fr) 12px!important;align-items:center;gap:9px!important;min-height:0!important;height:auto!important;padding:7px!important;border-radius:8px}
body.etv-portal-page .etv218 .tv22-video-row img{width:100%!important;height:auto!important;aspect-ratio:16/9;object-fit:cover!important;max-height:95px!important;border-radius:5px}body.etv-portal-page .etv218 .tv22-video-row b{font-size:13px!important;line-height:1.3!important;overflow-wrap:anywhere}body.etv-portal-page .etv218 .tv22-video-row small{font-size:11px!important;line-height:1.3!important}body.etv-portal-page .etv218 .tv22-video-list-heading{margin:0 0 8px}
body.etv-portal-page .etv218 .tv22-player{aspect-ratio:16/9;height:auto!important;min-height:0!important;max-height:none!important}body.etv-portal-page .etv218 .tv22-player-details h1{font-size:clamp(19px,2vw,29px)!important;line-height:1.25!important;overflow-wrap:anywhere}
body.etv-portal-page .etv218.etv44-cinema-mode .tv22-workspace{grid-template-columns:minmax(0,1fr)!important}body.etv-portal-page .etv218.etv44-cinema-mode .tv22-left{display:none!important}body.etv-portal-page .etv218.etv44-cinema-mode .tv22-right{width:100%!important;max-width:1320px!important;margin:auto}.etv218.etv44-cinema-mode .etv218-showcase,.etv218.etv44-cinema-mode .etv218-ecosystem{display:none}
.etv218 .etv218-showcase{background:white;border:1px solid var(--hub-border);border-radius:12px;padding:12px;margin:0 0 14px;content-visibility:auto;contain-intrinsic-size:auto 270px}.etv218 .etv218-tabbar{display:flex;flex-wrap:wrap;gap:8px;border-bottom:1px solid var(--hub-border);padding-bottom:9px;margin-bottom:10px}.etv218 .etv218-tabbar button{font-family:inherit;font-size:15px;font-weight:700;line-height:1.3;background:white;color:var(--hub-navy);border:1px solid var(--hub-border);border-radius:6px;padding:8px 13px;cursor:pointer}.etv218 .etv218-tabbar button[aria-pressed=true]{background:#e7f7fc;border-color:var(--hub-cyan)}.etv218 .etv218-showcase-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.etv218 .etv218-showcase-grid[hidden]{display:none!important}.etv218 .etv218-showcard{display:flex;flex-direction:column;gap:6px;padding:0 0 8px;overflow:hidden;border:1px solid var(--hub-border);border-radius:8px;text-decoration:none!important;color:var(--hub-navy)!important;min-width:0}.etv218 .etv218-showcard img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}.etv218 .etv218-showcard b,.etv218 .etv218-showcard span{padding:0 9px;overflow-wrap:anywhere}.etv218 .etv218-showcard b{font-size:14px;line-height:1.3}.etv218 .etv218-showcard span{font-size:12px;color:#52697a}.etv218 .etv218-showcard:hover{border-color:var(--hub-cyan)}
.etv218 .etv218-comments{margin-top:10px;border:1px solid var(--hub-border);border-radius:8px;padding:10px;background:#fff}.etv218 .etv218-comments>summary{cursor:pointer;font-weight:700;color:var(--hub-navy)}.etv218 .etv218-comments .tv22-comments{margin-top:8px}.etv218 .etv218-ecosystem{content-visibility:auto;contain-intrinsic-size:auto 240px}body.etv-portal-page .etv218 .etv218-ecosystem .tcv-eco-feature-panel{min-height:0!important;height:auto!important}
@media(max-width:1250px){.etv218 .etv218-main-cats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){body.etv-portal-page .etv218 .tv22-workspace{grid-template-columns:minmax(0,1fr)!important}.etv218 .etv218-category-panel{grid-template-columns:1fr}.etv218 .etv218-hero img{display:none}.etv218 .etv218-subgrid{grid-template-columns:repeat(3,minmax(0,1fr))}.etv218 .etv218-showcase-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.etv218 .etv218-main-cats{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.etv218 .etv218-main-cats .etv218-cat{padding:7px;gap:5px}.etv218 .etv218-main-cats .etv218-cat img{width:43px;height:43px}.etv218 .etv218-cat b{font-size:12px}.etv218 .etv218-cat small{font-size:10px}.etv218 .etv218-subgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.etv218 .etv218-subgrid img{height:74px}.etv218 .etv218-subgrid .etv218-cat{min-height:104px}.etv218 .etv218-category-panel{padding:8px}.etv218 .etv218-showcard b{font-size:12px}.etv218 .etv218-tabbar button{font-size:13px}}
body.etv-portal-page .etv218:not(.etv44-cinema-mode) .tv22-workspace{align-items:start!important}
body.etv-portal-page .etv218:not(.etv44-cinema-mode) :is(.tv22-left,.tv22-right){align-self:start!important}
body.etv-portal-page .etv218:not(.etv44-cinema-mode) .tv22-video-list{overflow:visible!important;max-height:none!important;height:auto!important;flex:none!important}
body.etv-portal-page .etv218 .etv218-share-collapse{background:white;border:1px solid var(--hub-border);padding:10px;border-radius:8px;min-width:0}.etv218 .etv218-share-collapse>summary{cursor:pointer;color:var(--hub-navy);font-weight:700}.etv218 .etv218-share-collapse .tcv33-share{border:0;box-shadow:none;background:transparent;padding:8px 0}.etv218 .tcv33-engagement{grid-template-columns:minmax(0,1fr)!important;gap:8px!important}.etv218 .tcv33-feedback{min-height:0!important;padding:10px!important}.etv218 .tcv33-feedback .tcv33-stars{max-width:100%}
body.etv-portal-page .etv218.etv44-cinema-mode [data-etv31-player-content]>.etv218-comments{grid-column:2;min-width:0;max-width:100%}
@media(max-width:1000px){body.etv-portal-page .etv218.etv44-cinema-mode [data-etv31-player-content]{display:block!important}}
body.etv-portal-page .etv218 .tv22-video-row img{max-width:none!important;justify-self:stretch;display:block}body.etv-portal-page .etv218 .tv22-video-row b{font-weight:700!important}

/* R21.0.8: compact opened category panel, original artwork, no changes to navigation. */
.etv218 .etv218-category-panel{grid-template-columns:minmax(170px,19%) minmax(0,1fr);gap:8px;padding:8px;align-items:stretch}
.etv218 .etv218-hero{padding:4px;gap:4px;min-height:0}
.etv218 .etv218-hero h2{font-size:clamp(18px,1.45vw,26px);overflow-wrap:anywhere;border-left:3px solid var(--hub-cyan);padding-left:8px}
.etv218 .etv218-hero p{font-size:12px;line-height:1.35}
.etv218 .etv218-hero img{display:block;width:100%;height:0;min-height:0;flex:1 1 0;max-height:210px;align-self:center;object-fit:contain;margin:0;mix-blend-mode:multiply}
.etv218 .etv218-subgrid{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;grid-auto-rows:minmax(126px,auto)}
.etv218 .etv218-subgrid .etv218-cat{min-height:126px;padding:6px;gap:4px;justify-content:center}
.etv218 .etv218-subgrid img{height:74px;width:100%;flex:none;object-fit:contain}
.etv218 .etv218-subgrid .etv218-cat span{gap:3px}
.etv218 .etv218-subgrid .etv218-cat b{font-size:13px;line-height:1.15}
.etv218 .etv218-subgrid .etv218-cat small{font-size:11px;line-height:1.2}
.etv218 .etv218-subgrid b:after{margin-top:3px}
@media(max-width:1050px){.etv218 .etv218-category-panel{grid-template-columns:1fr}.etv218 .etv218-hero{display:grid;grid-template-columns:minmax(0,1fr) 100px;grid-template-rows:auto auto;align-items:center}.etv218 .etv218-hero img{grid-column:2;grid-row:1 / 3;height:88px;max-height:88px}.etv218 .etv218-subgrid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:520px){.etv218 .etv218-subgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.etv218 .etv218-subgrid .etv218-cat{min-height:112px}.etv218 .etv218-subgrid img{height:64px}.etv218 .etv218-subgrid{grid-auto-rows:minmax(112px,auto)}}
.etv218 .etv218-subgrid img{mix-blend-mode:multiply}

/* R21.0.11: cinema is full width; retain iframe DOM and playback. */
body.etv-portal-page .etv218.etv44-cinema-mode .tv22-right{width:100%!important;max-width:none!important;margin:0!important;min-width:0!important}
body.etv-portal-page .etv218.etv44-cinema-mode [data-etv31-player-content]{display:block!important;width:100%!important;max-width:none!important}
body.etv-portal-page .etv218.etv44-cinema-mode .tv22-player-card{width:100%!important;max-width:none!important;min-width:0!important}
body.etv-portal-page .etv218.etv44-cinema-mode .tv22-player{width:100%!important;max-width:none!important;aspect-ratio:16/9!important}
body.etv-portal-page .etv218.etv44-cinema-mode [data-etv31-player-content]>:is(.tcv33-engagement,.tv22-feedback-grid,.etv218-comments){margin-top:10px!important}
@media(min-width:1001px){
body.etv-portal-page .etv218:not(.etv44-cinema-mode) .tv22-left{height:var(--etv211-player-height,auto)!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;box-sizing:border-box!important}
body.etv-portal-page .etv218:not(.etv44-cinema-mode) .tv22-video-list{flex:1 1 0!important;min-height:0!important;overflow:auto!important;align-content:start!important;grid-auto-rows:max-content!important;overscroll-behavior:contain;scrollbar-width:thin}
}
