/* Resources only: keep the approved header and Training destination. */
#liveApp.mobile-resources-page>.consistent-page-heading>.driver-page-menu{background:#203d36!important;border-color:#203d36!important;color:#fff!important}
#liveApp.mobile-resources-page .u172-resources button[onclick*="courses"]{background:#203d36!important;border-color:#203d36!important;color:#fff!important}
#liveApp.mobile-resources-page .u172-resources button[onclick*="courses"] span[aria-hidden="true"]{display:inline-block;font-size:32px;line-height:.65;vertical-align:-.1em;margin-left:6px}

@media (max-width: 700px) {
  .driver-panel #status.mobile-resources-status:empty {
    display: none;
  }
  #liveApp.mobile-resources-page > .consistent-page-heading {
    min-height: 120px !important;
    padding-bottom: 22px !important;
  }
}

@media (max-width:700px) {
  #liveApp.bk-resources-page .bk-resources-shell {
    --resource-ink: #202d30;
    --resource-green: #203d36;
    --resource-border: #d7e2dc;
    --resource-icon: #e7efea;
    color: var(--resource-ink);
    margin: 0 auto;
    max-width: 480px;
  }
  #liveApp.bk-resources-page .bk-resources-expanded {
    --resource-border: #d3e1ed;
    --resource-icon: #dbeaf8;
    background: #f1f6fb;
    border-radius: 14px;
    padding: 0 12px 18px;
    min-height: min(580px, 82vh);
  }
  .driver-panel .content:has(> #liveApp.bk-resources-page) > #status:empty { display:none }
  #liveApp .bk-resource-top { display:flex; align-items:center; justify-content:space-between; min-height:48px; gap:8px }
  #liveApp .bk-resource-top .bk-resource-menu {
    position:static !important; display:inline-flex !important; flex:0 0 auto;
    margin:0 0 0 auto; width:auto !important; height:auto !important;
    min-width:94px !important; min-height:44px; max-width:none;
    align-items:center; justify-content:center; gap:8px; padding:0 12px;
    background:#203d36 !important; border:1px solid #203d36; color:#fff !important;
    font:inherit; font-size:15px; border-radius:9px;
  }
  #liveApp .bk-resource-menu::before, #liveApp .bk-resource-menu::after { content:none !important }
  #liveApp .bk-resource-menu span { font-size:21px; line-height:1 }
  #liveApp .bk-resource-back {
    display:inline-flex; align-items:center; gap:8px; min-height:44px; text-align:left;
    padding:0; border:0; background:none; color:#203d36; font:inherit; font-weight:750;
  }
  #liveApp .bk-resource-back span { font-size:25px; line-height:1 }
  #liveApp .bk-resource-heading { margin:0 0 20px; padding:0; border:0; box-shadow:none; background:none }
  #liveApp .bk-resource-heading h1 {
    font-size:clamp(30px, 9.25vw, 36px); font-weight:850; line-height:1.12;
    margin:17px 0 8px; color:var(--resource-ink); overflow-wrap:anywhere;
  }
  #liveApp .bk-resource-heading p, #liveApp .bk-resource-empty p {
    margin:0; color:#536661; font-size:14px; line-height:1.45; overflow-wrap:anywhere;
  }
  #liveApp .bk-resource-cards { display:grid; gap:12px; margin:0 0 14px }
  #liveApp .bk-resource-card, #liveApp .bk-resource-empty {
    background:#fff; border:1px solid var(--resource-border); border-radius:13px;
    color:var(--resource-ink); font:inherit;
  }
  #liveApp .bk-resource-card {
    display:grid; grid-template-columns:50px minmax(0,1fr) auto;
    align-items:center; gap:11px; text-align:left; min-height:82px; width:100%; padding:11px;
  }
  #liveApp .bk-resource-card[aria-pressed="true"] { border-color:#203d36 }
  #liveApp .bk-resource-card strong { display:block; font-size:16px; line-height:1.25; overflow-wrap:anywhere }
  #liveApp .bk-resource-card small {
    display:block; color:#536661; font-size:12px; line-height:1.35; margin-top:4px; overflow-wrap:anywhere;
  }
  #liveApp .bk-resource-card > span:last-child { color:#203d36; font-size:24px; line-height:1 }
  #liveApp .bk-resource-icon {
    display:grid; place-items:center; width:50px; height:50px;
    border-radius:10px; background:var(--resource-icon); color:#203d36;
  }
  #liveApp .bk-resource-icon svg { width:25px; height:25px }
  #liveApp .bk-resource-empty { padding:13px; margin:0 0 14px }
  #liveApp .bk-resource-empty h2, #liveApp .bk-resource-watch h2 {
    font-size:18px; line-height:1.25; margin:10px 0 6px; overflow-wrap:anywhere;
  }
  #liveApp .bk-resource-watch { margin:0 0 14px }
  #liveApp .bk-resource-player {
    position:relative; width:100%; aspect-ratio:16/9;
    display:grid; place-items:center; overflow:hidden; border-radius:12px;
    background:#152723; color:#fff; text-align:center;
  }
  #liveApp .bk-resource-player p[role="status"]::before {
    content:""; display:block; width:28px; height:28px; margin:0 auto 9px;
    border:3px solid #b4d7ed; border-left-color:transparent; border-radius:50%;
    animation:bk-resource-loading .9s linear infinite;
  }
  @keyframes bk-resource-loading { to { transform:rotate(360deg) } }
  @media (prefers-reduced-motion:reduce) {
    #liveApp .bk-resource-player p[role="status"]::before { animation:none }
  }
  #liveApp .bk-resource-player iframe, #liveApp .bk-resource-player video {
    display:block; width:100%; height:100%; border:0; position:absolute; inset:0;
  }
  #liveApp .bk-resource-youtube-link { display:inline-block; padding:8px 0 0; color:#203d36; font-size:13px }
  #hubDialog [data-resource-action] { display:grid; gap:9px; margin:12px 0; padding:12px 0; border-top:1px solid #d7e2dc }
  #hubDialog [data-resource-action] [hidden] { display:none !important }
}

@media (max-width:700px) {
  #liveApp.bk-resources-page .bk-resources-section {
    --resource-border:#e3d5c2;
    --resource-icon:#efe0ca;
    background:#f7efe3;
  }
  body.driver-panel:has(#liveApp.bk-resources-page .bk-resources-section),
  .driver-panel .content:has(#liveApp.bk-resources-page .bk-resources-section) {
    background:#f7efe3;
  }
}
