/* ENGINEER TV 3.1: navigation and on-page video switching. */
.etv31 .etv31-navigation{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-height:40px}
.etv31 .etv31-navigation button.tv22-navbtn{font:inherit;font-size:13px;font-weight:800;cursor:pointer;line-height:1.3;appearance:none}
.etv31 .etv31-navigation button.tv22-navbtn:disabled{opacity:.45;cursor:not-allowed}
.etv31 .etv31-video-row{cursor:pointer}
.etv31 .etv31-video-row:focus-visible{outline:3px solid #087db5;outline-offset:2px}
.etv31 [data-etv31-player] {scroll-margin-top:170px}
.etv31 .etv31-description-text {white-space:pre-wrap;line-height:1.55;color:#475569;font-size:13px}
.etv31 .etv31-comment-meta {font-size:11px;color:#64748b}

/* V3.2: use the WordPress main-site logo in place of the text return button. */
body.etv-portal-page .etv-portal-navlinks .etv-cadverse-home{
  display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;
  background:#ffffff!important;color:#123b70!important;
  padding:5px 11px!important;min-width:90px;min-height:46px;
  border:1px solid #bcd8eb;border-radius:12px;
  box-shadow:0 0 0 0 rgba(8,125,181,.19);
  animation:etv32-logo-halo 2.8s ease-in-out infinite;
  transition:transform .2s ease, border-color .2s ease;
}
body.etv-portal-page .etv-portal-navlinks .etv-cadverse-home:hover,
body.etv-portal-page .etv-portal-navlinks .etv-cadverse-home:focus-visible{
  background:#fff!important;border-color:#087db5;transform:translateY(-1px);
}
.etv-cadverse-home-logo{display:block;max-height:45px;width:auto;max-width:clamp(110px,13vw,220px);object-fit:contain}
.etv-cadverse-home-fallback{display:block;color:#123B70;font-size:16px;font-weight:900;letter-spacing:.025em;white-space:nowrap}
@keyframes etv32-logo-halo{
  0%,100%{box-shadow:0 0 0 0 rgba(8,125,181,.12),0 1px 8px rgba(18,59,112,.07)}
  50%{box-shadow:0 0 0 4px rgba(8,125,181,.10),0 0 16px rgba(8,125,181,.38)}
}
@media(max-width:720px){body.etv-portal-page .etv-portal-navlinks .etv-cadverse-home{min-height:38px;padding:4px 7px!important}.etv-cadverse-home-logo{max-height:31px;max-width:125px}.etv-cadverse-home-fallback{font-size:12px}}
@media(prefers-reduced-motion:reduce){body.etv-portal-page .etv-portal-navlinks .etv-cadverse-home{animation:none;box-shadow:0 0 0 2px rgba(8,125,181,.14)}}

/* Beta display ad is separate from YouTube and absent by default. */
.etv31 .etv-beta-ad-unit{margin:14px 0 0;padding:10px;border:1px solid #d6e4f3;border-radius:12px;background:#f8fbff;overflow:hidden;min-width:0}
.etv31 .etv-beta-ad-label{font-size:10px;letter-spacing:.1em;text-align:center;color:#6b7b90;text-transform:uppercase;margin:0 0 7px}

/* V4.1 BETA: unobtrusive subcategory pagination helper */
.etv31-navigation .etv41-page-hint{align-self:center;font-size:12px;color:#64748b;margin-left:auto;line-height:1.4}
@media(max-width:600px){.etv31-navigation .etv41-page-hint{width:100%;margin-left:0}}

/* Watch-page H1 retains the previous video-title appearance. */
.tv22-player-details h1{color:#102d52!important;font-size:clamp(15px,1.35vw,21px)!important;font-weight:850!important;line-height:1.3!important;margin:12px 0 5px!important}

/* V4.4 BETA: responsive branded header, accessible reading sizes and cinema mode. */
body.etv-portal-page .etv-portal-brand{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:11px;row-gap:5px;align-items:center;min-width:0;flex-shrink:0}
body.etv-portal-page .etv-portal-brand .etv-portal-logo{width:58px;height:42px;min-width:0;grid-column:1;grid-row:1}
body.etv-portal-page .etv-portal-brand-name{grid-column:2;grid-row:1;display:block;white-space:nowrap;line-height:1.15}
body.etv-portal-page .etv-portal-tagline{grid-column:1/-1;grid-row:2;display:block;margin:0;font-size:12px;color:#486583;white-space:normal}
body.etv-portal-page .etv-portal-search{height:44px;min-width:0}
body.etv-portal-page .etv-portal-search input{font-size:14px!important;color:#123b70!important}
body.etv-portal-page .etv-portal-search input::placeholder{color:#64748b;opacity:1}
body.etv-portal-page .etv-portal-search button{display:flex;align-items:center;justify-content:center;flex:0 0 46px;height:100%;padding:0!important;color:#123b70!important}
body.etv-portal-page .etv-portal-search button:hover{background:#e2eef8!important}
body.etv-portal-page .etv-portal-search:focus-within{outline:2px solid #087db5;outline-offset:2px}
.etv31 .tv22-main-cats{top:var(--etv44-header-bottom,95px)!important}
.etv31 [data-etv31-player]{scroll-margin-top:calc(var(--etv44-header-bottom,95px) + 155px)}
.etv31 .etv41-page-hint,.etv31 [data-etv31-range]{font-size:15px!important;font-weight:750;color:#123b70!important;line-height:1.4}
.etv31 .etv3-video-list{max-height:1120px;gap:10px;padding:2px 4px}
.etv31 .tv22-video-row{min-height:110px;padding:10px 12px;gap:14px;align-items:center}
.etv31 .tv22-video-row img{width:150px;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:8px}
.etv31 .tv22-video-row b{font-size:16px;line-height:1.38;font-weight:750;color:#123b70;display:block;overflow-wrap:anywhere;overflow:visible}
.etv31 .tv22-video-row small{font-size:13px;font-weight:550;color:#425b77;line-height:1.5;overflow-wrap:anywhere}
.etv31 .tv22-video-row>span:nth-child(2){gap:7px}
.etv31 .tv22-video-row>span:last-child{font-size:25px;font-weight:700}
.etv31 .tv22-player{border-radius:14px;border:1px solid #a3bed6;background:#07192f;box-shadow:0 6px 20px #123b7020}
.etv31 .tv22-player-details h1{font-size:clamp(19px,1.7vw,27px)!important;line-height:1.32!important;font-weight:800!important;margin:10px 0 7px!important;overflow-wrap:anywhere}
.etv31 .tv22-video-byline{font-size:14px;font-weight:550;color:#415c7a;gap:8px;line-height:1.55}
.etv31 .tv22-video-byline a{font-weight:700;color:#075d8f!important}
.etv31 .tv22-description{font-size:15px;color:#2f4b68;padding:12px 0}
.etv31 .tv22-description summary{font-size:15px;line-height:1.45}
.etv31 .tv22-description div,.etv31 .etv31-description-text{font-size:15px;line-height:1.65;color:#334d67;max-height:340px;overflow:auto;overflow-wrap:anywhere;white-space:pre-wrap}
.etv31 .tv22-share h3,.etv31 .tv22-rate h3,.etv31 .tv22-comments h3{font-size:16px!important}
.etv31 .etv3-feedback-box .etv3-rating-summary span,.etv31 .tv22-muted,.etv31 .tv22-comment-form label,.etv31 .tv22-rating-form legend{font-size:13px;color:#405c78}
.etv31 .tv22-comment-form input,.etv31 .tv22-comment-form textarea,.etv31 .tv22-comment p{font-size:14px}
.etv31 .etv44-title-row{display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap}
.etv31 .etv44-title-row h1{flex:1 1 240px;min-width:0}
.etv31 .etv44-player-tools{display:flex;justify-content:flex-end;margin:8px 0 0}
.etv31 .etv44-cinema,.etv31 .etv44-edit-button,.etv31 .etv44-cancel{border:1px solid #adcbe4;background:#edf5fc;color:#123b70;border-radius:8px;font:inherit;font-size:13px;font-weight:700;padding:8px 12px;cursor:pointer;line-height:1.3}
.etv31 .etv44-edit-button{background:#123b70;color:white;border-color:#123b70}
.etv31 .etv44-title-row>.etv44-edit-button{margin-top:9px}
.etv31.etv44-cinema-mode .tv22-workspace{grid-template-columns:minmax(0,1fr)}
.etv31.etv44-cinema-mode .tv22-left{display:none}
.etv31.etv44-cinema-mode .tv22-right{width:100%;max-width:1320px;margin-inline:auto}
.etv31 .etv44-edit-form{margin:16px 0;padding:16px;background:#f0f6fc;border:1px solid #c4d9ec;border-radius:10px;display:grid;gap:12px}
.etv31 .etv44-edit-form h2{margin:0;font-size:18px;color:#123b70}
.etv31 .etv44-edit-form label{display:grid;gap:6px;font-size:14px;font-weight:700;color:#123b70}
.etv31 .etv44-edit-form input,.etv31 .etv44-edit-form textarea{width:100%;min-width:0;padding:10px;font:inherit;font-size:15px;color:#173955;background:white;border:1px solid #a9c5df;border-radius:7px}
.etv31 .etv44-edit-form textarea{resize:vertical;min-height:120px}
.etv31 .etv44-edit-actions{display:flex;gap:9px;flex-wrap:wrap}
.etv31 .etv44-edit-note,.etv31 .etv44-edit-status{font-size:13px;color:#355772;margin:0;line-height:1.5}
.etv31 .etv44-edit-status{font-weight:650;color:#14613b}.etv31 .etv44-edit-status.is-error{color:#a12323}
.etv31 .etv44-edit-button:disabled{opacity:.6;cursor:wait}
@media(max-width:1000px){
 body.etv-portal-page .etv-portal-nav{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 8px;padding:10px 13px;min-height:0}
 body.etv-portal-page .etv-portal-brand{grid-column:1;grid-row:1;flex-shrink:1;align-self:center;column-gap:7px;row-gap:4px}
 body.etv-portal-page .etv-portal-brand .etv-portal-logo{width:clamp(37px,7.5vw,54px);height:clamp(31px,5.6vw,40px);border-radius:9px}
 body.etv-portal-page .etv-portal-logo svg{width:clamp(24px,4.6vw,30px);height:clamp(24px,4.6vw,30px)}
 body.etv-portal-page .etv-portal-brand-name{font-size:clamp(16px,4.55vw,29px);letter-spacing:-.055em}
 body.etv-portal-page .etv-portal-brand-name small{font-size:clamp(7px,1.65vw,10px);padding:2px 3px;letter-spacing:0}
 body.etv-portal-page .etv-portal-tagline{font-size:clamp(10px,2.4vw,12px);line-height:1.3}
 body.etv-portal-page .etv-portal-navlinks{grid-column:2;grid-row:1;display:flex;flex-direction:column;align-items:flex-end;gap:5px;margin:0;min-width:0;align-self:center}
 body.etv-portal-page .etv-portal-navlinks .etv-cadverse-home{min-width:0;min-height:34px;padding:4px 6px!important;border-radius:10px;max-width:100%}
 body.etv-portal-page .etv-cadverse-home-logo{display:block;width:clamp(88px,29vw,185px);max-width:100%;height:auto;max-height:37px;object-fit:contain}
 body.etv-portal-page .etv-cadverse-home-fallback{font-size:10px}
 body.etv-portal-page .etv-portal-navlinks .etv44-add-video{font-size:10px;padding:5px 7px}
 body.etv-portal-page .etv-portal-search{grid-column:1/-1;grid-row:2;max-width:none;width:100%;height:44px;margin:0}
 .etv31 .etv3-video-list{max-height:800px}
 .etv31 .tv22-video-row img{width:130px}
}
@media(max-width:480px){
 body.etv-portal-page .etv-portal-nav{padding:9px 10px;gap:10px 6px}
 body.etv-portal-page .etv-portal-brand{column-gap:5px}
 body.etv-portal-page .etv-portal-brand-name{font-size:clamp(15px,5.1vw,23px)}
 body.etv-portal-page .etv-portal-brand-name small{font-size:clamp(6px,1.5vw,8px);padding:1px 2px}
 body.etv-portal-page .etv-portal-brand .etv-portal-logo{width:clamp(35px,10vw,48px);height:clamp(30px,8vw,38px)}
 body.etv-portal-page .etv-portal-logo svg{width:25px;height:25px}
 body.etv-portal-page .etv-cadverse-home-logo{width:clamp(80px,28vw,135px)}
 body.etv-portal-page .etv-portal-tagline{font-size:10px}
 .etv31 .tv22-video-row{min-height:94px;padding:8px;gap:10px}
 .etv31 .tv22-video-row img{width:108px}
 .etv31 .tv22-video-row b{font-size:14px;line-height:1.35}
 .etv31 .tv22-video-row small{font-size:12px}
 .etv31 .etv3-video-list{max-height:620px}
 .etv31 .etv41-page-hint,.etv31 [data-etv31-range]{font-size:14px!important}
 .etv31 .etv44-title-row h1{flex-basis:100%}
 .etv31 .etv44-title-row>.etv44-edit-button{margin-top:0}
}
@media(max-width:350px){body.etv-portal-page .etv-portal-brand-name{font-size:15px}body.etv-portal-page .etv-cadverse-home-logo{width:78px}body.etv-portal-page .etv-portal-tagline{font-size:9px}}
