/**
 * ENGINEER TV 5.4.8 | The CAD Verse Ecosystem UI adapter
 * Reference: Theme 3.0.25 assets/ecosystem-design.css
 * Uses canonical --tcv-ui-* tokens with matching fallbacks if the theme is unavailable.
 * Intentionally does not implement header, navigation or messaging: Members already owns these.
 */
body.etv-portal-page {
  --etv-ui-font:var(--tcv-ui-font,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif);
  --etv-ui-navy:var(--tcv-ui-navy,#123b70);
  --etv-ui-blue:var(--tcv-ui-blue,#087db5);
  --etv-ui-ink:var(--tcv-ui-ink,#122337);
  --etv-ui-muted:var(--tcv-ui-muted,#526479);
  --etv-ui-border:var(--tcv-ui-border,#c6d9e9);
  --etv-ui-hover:var(--tcv-ui-hover,#e8f5fc);
  --etv-ui-focus:var(--tcv-ui-focus,#087db5);
  --etv-ui-radius:var(--tcv-ui-radius,8px);
  --etv-ui-shadow:var(--tcv-ui-shadow,0 8px 26px rgba(20,50,80,.065));
  font-family:var(--etv-ui-font)!important;
  color:var(--etv-ui-ink)!important;
}
body.etv-portal-page :is(.tv22,.etv31,.etv-portal-search input) {
  font-family:var(--etv-ui-font)!important;
}
/* Shared brand components are rendered by tcvm30_header; do not create a second header. */
body.etv-portal-page .etv-portal-search {
  min-height:44px;height:auto;border:1px solid var(--etv-ui-border);
  border-radius:var(--etv-ui-radius);background:#fff;
}
body.etv-portal-page .etv-portal-search input {
  min-height:44px;font-size:14px!important;color:var(--etv-ui-ink)!important;
}
body.etv-portal-page .etv-portal-search:focus-within {
  outline:2px solid var(--etv-ui-focus);outline-offset:2px;
}
body.etv-portal-page .etv-portal-search button {
  min-width:44px;min-height:44px;color:var(--etv-ui-navy)!important;
  background:#fff!important;
}
body.etv-portal-page .etv-portal-search button:hover {background:var(--etv-ui-hover)!important}
/* Content panels, text and borders align to the homepage card system. */
body.etv-portal-page .tv22 {--t:var(--etv-ui-navy);--cyan:var(--etv-ui-blue);--stroke:var(--etv-ui-border);color:var(--etv-ui-ink)}
body.etv-portal-page :is(.tv22-left,.tv22-right,.etv31 .etv5-popular,.tv22-player-card) {
  border-color:var(--etv-ui-border);box-shadow:var(--etv-ui-shadow);
}
body.etv-portal-page :is(.tv22-panel-top h3,.tv22-video-list-heading h3,.etv5-heading h2,.tv22-share h3,.tv22-rate h3,.tv22-comments h3) {
  color:var(--etv-ui-navy)!important;
  font-family:var(--etv-ui-font)!important;
}
body.etv-portal-page .tv22-video-row b {font-size:14px;font-weight:750;line-height:1.45;color:var(--etv-ui-navy)}
body.etv-portal-page .tv22-video-row small {font-size:12px;line-height:1.4;color:var(--etv-ui-muted)}
body.etv-portal-page :is(.etv5-card-content b,.tv22-subtile-caption b) {font-family:var(--etv-ui-font);font-weight:750}
body.etv-portal-page .etv5-card-content b {font-size:14px;line-height:1.4}
body.etv-portal-page .etv5-card-meta {font-size:12px;color:var(--etv-ui-muted)}
body.etv-portal-page :is(.tv22-video-byline,.etv31-description-text,.tv22-description,.tv22-description div) {
  font-size:13px;color:var(--etv-ui-muted);line-height:1.55;
}
body.etv-portal-page .tv22-player-details h1 {color:var(--etv-ui-navy)!important;font-family:var(--etv-ui-font);line-height:1.3}
body.etv-portal-page .tv22-video-row {border-color:var(--etv-ui-border);background:#fff}
body.etv-portal-page :is(.tv22-video-row:hover,.tv22-video-row.is-current) {border-color:var(--etv-ui-blue);background:var(--etv-ui-hover)}
/* Shared secondary buttons: white, navy text, light border, standard radius. */
body.etv-portal-page .etv31 :is(
  .tv22-navbtn,.tv22-small-btn,.tv22-submit,.tv22-copy-btn,
  .etv44-edit-button,.etv44-cancel,.etv44-cinema,
  .etv5-controls button,.etv-watch,.tv22-pagination a,.etv-pagination a
),
body.etv-portal-page .etv31 .etv44-player-tools :is(button,a):not(.etv51-play),
body.etv-portal-page .etv31 .tv22-share-links :is(a,button) {
  box-sizing:border-box;
  min-height:40px;
  padding:8px 13px;
  border:1px solid var(--etv-ui-border)!important;
  border-radius:var(--etv-ui-radius)!important;
  background:#fff!important;
  color:var(--etv-ui-navy)!important;
  box-shadow:none!important;
  font:700 14px/1.35 var(--etv-ui-font)!important;
  text-decoration:none!important;
  transition:background .16s,border-color .16s,color .16s;
}
body.etv-portal-page .etv31 .etv5-controls button {min-width:36px;width:36px;min-height:36px;height:36px;padding:0!important;font-size:18px!important}
body.etv-portal-page .etv31 .tv22-share-links :is(a,button) {width:40px;height:40px;padding:0!important;font-size:17px!important}
body.etv-portal-page .etv31 :is(
  .tv22-navbtn,.tv22-small-btn,.tv22-submit,.tv22-copy-btn,
  .etv44-edit-button,.etv44-cancel,.etv44-cinema,
  .etv5-controls button,.etv-watch,.tv22-pagination a,.etv-pagination a
):hover:not(:disabled),
body.etv-portal-page .etv31 .etv44-player-tools :is(button,a):not(.etv51-play):hover:not(:disabled),
body.etv-portal-page .etv31 .tv22-share-links :is(a,button):hover:not(:disabled) {
  background:var(--etv-ui-hover)!important;border-color:#69bfe9!important;color:var(--etv-ui-blue)!important;
}
body.etv-portal-page .etv31 :is(
  .tv22-navbtn,.tv22-small-btn,.tv22-submit,.tv22-copy-btn,
  .etv44-edit-button,.etv44-cancel,.etv44-cinema,
  .etv5-controls button,.etv-watch,.tv22-pagination a,.etv-pagination a
):focus-visible,
body.etv-portal-page .etv31 .etv44-player-tools :is(button,a):focus-visible,
body.etv-portal-page .etv31 .tv22-share-links :is(a,button):focus-visible {
  outline:2px solid var(--etv-ui-focus)!important;outline-offset:3px;
}
body.etv-portal-page .etv31 :is(.tv22-navbtn,.etv5-controls button):disabled {opacity:.45;cursor:not-allowed}
/* Active states and playback remain visually distinct; no behavioral changes. */
body.etv-portal-page .etv31 :is(.tv22-pagination a[aria-current="page"],.etv-pagination a[aria-current="page"]) {
  background:#e5f2fc!important;border-color:var(--etv-ui-blue)!important;
}
body.etv-portal-page .etv31 .etv51-play :is(span,strong) {
  background:var(--etv-ui-navy);color:#fff;
}
body.etv-portal-page .tv22 :is(input[type="search"],input[type="text"],select,textarea):not([type="hidden"]) {
  accent-color:var(--etv-ui-blue);font-family:var(--etv-ui-font);
}
body.etv-portal-page .tv22 :is(input,select,textarea):focus-visible {
  outline:2px solid var(--etv-ui-focus);outline-offset:2px;
}
/* V5 badge intentionally remains muted rose as approved for ENGINEER TV. */
@media(max-width:720px){
  body.etv-portal-page .etv31 .etv5-controls button{width:32px;height:32px;min-width:32px;min-height:32px}
  body.etv-portal-page .tv22-video-row b{font-size:13px}
  body.etv-portal-page .tv22-video-row small{font-size:11px}
}
@media(prefers-reduced-motion:reduce){body.etv-portal-page .etv31 button,body.etv-portal-page .etv31 a{transition:none!important}}
