/* RaspHTML v428 video warning. Screen-only, viewport anchored. */
@media screen {
  html body.page-schedule-detail { padding-bottom:var(--pskgu-sj-clearance, 0px)!important; }
  html body.page-schedule-detail .pskgu-sj-notice {
    position:fixed!important;
    left:max(12px, env(safe-area-inset-left))!important;
    right:max(12px, env(safe-area-inset-right))!important;
    bottom:max(10px, env(safe-area-inset-bottom))!important;
    top:auto!important;
    z-index:1100!important;
    width:auto!important;
    max-width:1120px!important;
    margin:0 auto!important;
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:28px minmax(0,1fr) 34px!important;
    column-gap:11px!important;
    align-items:start!important;
    padding:12px 14px!important;
    background:#fff9ed!important;
    color:#223346!important;
    border:1px solid #d7b879!important;
    border-radius:11px!important;
    box-shadow:0 3px 14px rgba(16,32,51,.15)!important;
    white-space:normal!important;
    text-align:left!important;
    overflow:auto!important;
    max-height:min(48vh, 260px)!important;
    font:inherit!important;
  }
  html body.page-schedule-detail .pskgu-sj-notice__icon {
    display:grid!important; place-items:center!important;
    width:28px!important;height:28px!important;
    background:#f9e4b4!important;border-radius:50%!important;
    color:#805313!important; font:700 20px/1 Arial,sans-serif!important;
  }
  html body.page-schedule-detail .pskgu-sj-notice__text {min-width:0!important;grid-column:2!important;}
  html body.page-schedule-detail .pskgu-sj-notice__title {
    display:block!important; margin:0 0 3px!important;
    font-family:inherit!important; font-size:14px!important; font-weight:700!important;
    line-height:1.35!important; color:#60393a!important;
  }
  html body.page-schedule-detail .pskgu-sj-notice__description {
    margin:0!important; font:inherit!important; font-size:13px!important;
    line-height:1.43!important;color:inherit!important;
  }
  html body.page-schedule-detail .pskgu-sj-notice__link {
    appearance:none!important;cursor:pointer!important;box-sizing:border-box!important;
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    width:fit-content!important;max-width:100%!important;
    min-height:30px!important;margin-top:8px!important;
    padding:5px 11px!important;
    border:1px solid #be954e!important;border-radius:7px!important;
    color:#794713!important;background:transparent!important;
    font-family:inherit!important;font-size:12.5px!important;font-weight:650!important;
    text-decoration:none!important;white-space:normal!important;
  }
  html body.page-schedule-detail .pskgu-sj-notice__close {
    position:static!important;grid-column:3!important;grid-row:1!important;
    display:grid!important;place-items:center!important;
    width:34px!important;height:34px!important;
    margin:0!important;padding:0!important;
    border:1px solid transparent!important;border-radius:7px!important;
    background:transparent!important;color:#73583a!important;
    font:400 22px/1 Arial,sans-serif!important;cursor:pointer!important;
  }
  html body.page-schedule-detail .pskgu-sj-notice__link:hover,
  html body.page-schedule-detail .pskgu-sj-notice__close:hover {
    background:#f5e7cb!important;
  }
  html body.page-schedule-detail .pskgu-sj-notice__link:focus-visible,
  html body.page-schedule-detail .pskgu-sj-notice__close:focus-visible {
    outline:2px solid #ad7525!important;outline-offset:2px!important;
  }
  html[data-theme="dark"] body.page-schedule-detail .pskgu-sj-notice {
    background:#2b2a2d!important; color:#f0e8de!important;
    border-color:#786440!important;box-shadow:0 3px 14px rgba(0,0,0,.55)!important;
  }
  html[data-theme="dark"] body.page-schedule-detail .pskgu-sj-notice__icon {
    background:#55452d!important;color:#f6d08c!important;
  }
  html[data-theme="dark"] body.page-schedule-detail .pskgu-sj-notice__title {color:#ffdfcf!important;}
  html[data-theme="dark"] body.page-schedule-detail .pskgu-sj-notice__link {
    color:#f4d7a8!important;border-color:#957345!important;
  }
  html[data-theme="dark"] body.page-schedule-detail .pskgu-sj-notice__close {color:#e3d0b0!important;}
  html[data-theme="dark"] body.page-schedule-detail .pskgu-sj-notice__link:is(:hover,:focus-visible) {
    background:#624b2b!important;color:#fff3dd!important;border-color:#e4b76f!important;
  }
  html[data-theme="dark"] body.page-schedule-detail .pskgu-sj-notice__link:active {
    background:#795a33!important;color:#fff!important;
  }
  html[data-theme="dark"] body.page-schedule-detail .pskgu-sj-notice__close:hover {
    background:#453a2d!important;color:#fff0d3!important;
  }

  @media(max-width:700px) {
    html body.page-schedule-detail .pskgu-sj-notice {
      left:6px!important;right:6px!important;
      bottom:max(6px, env(safe-area-inset-bottom))!important;
      padding:10px 10px!important;gap:8px!important;
      grid-template-columns:22px minmax(0,1fr) 30px!important;
      border-radius:9px!important;
      max-height:min(42vh, 225px)!important;
    }
    html body.page-schedule-detail .pskgu-sj-notice__icon {width:22px!important;height:22px!important;font-size:16px!important;}
    html body.page-schedule-detail .pskgu-sj-notice__title {font-size:12.8px!important;}
    html body.page-schedule-detail .pskgu-sj-notice__description {font-size:12px!important;}
    html body.page-schedule-detail .pskgu-sj-notice__link {font-size:12px!important;min-height:28px!important;}
    html body.page-schedule-detail .pskgu-sj-notice__close {width:30px!important;height:30px!important;}
  }
}
@media print { html body.page-schedule-detail .pskgu-sj-notice {display:none!important;} }

/* STAGE14: accessible explanation for students; shared by detail schedules and Telemost page. */
html body .pskgu-video-dialog {
  position:fixed;
  box-sizing:border-box;
  width:min(850px, calc(100vw - 24px));
  max-width:calc(100vw - 24px);
  max-height:min(86dvh, 750px);
  padding:0;
  border:1px solid #c6d5e5;
  border-radius:13px;
  box-shadow:0 12px 45px rgba(9,31,53,.23);
  background:#fff;
  color:#172b42;
  font:inherit;
}
html body .pskgu-video-dialog:not([open]) { display:none!important; }
html body .pskgu-video-dialog::backdrop { background:rgba(5,17,30,.58); }
html body .pskgu-video-dialog__head {
  display:flex;align-items:start;justify-content:space-between;gap:16px;
  padding:16px 18px 12px;border-bottom:1px solid #d9e4ef;
}
html body .pskgu-video-dialog__head h2 {margin:0;font-size:1.16rem;line-height:1.35;color:#123559;}
html body .pskgu-video-dialog__close {
  flex:0 0 34px;width:34px;height:34px;
  display:grid;place-items:center;cursor:pointer;
  border:1px solid #d4e0ec;border-radius:8px;background:transparent;color:inherit;
  font:400 22px/1 Arial,sans-serif;
}
html body .pskgu-video-dialog__scroll {max-height:calc(min(86dvh,750px) - 70px);overflow:auto;overscroll-behavior:contain;padding:12px 18px 18px;}
html body .pskgu-video-dialog__scroll p {margin:0 0 12px;line-height:1.48;}
html body .pskgu-video-dialog__scroll h3 {font-size:1rem;color:#123559;margin:16px 0 7px;}
html body .pskgu-video-dialog__scroll ol {margin:0 0 10px;padding-left:23px;line-height:1.5;}
html body .pskgu-video-dialog__scroll li {margin-bottom:5px;}
html body .pskgu-video-dialog__textlink {
  border:0;padding:0;margin:0;display:inline;
  font:inherit;background:none;color:#155c9f;text-decoration:underline;cursor:pointer;
}
html body .pskgu-video-dialog__tablewrap {max-width:100%;overflow-x:auto;border:1px solid #d8e3ee;border-radius:8px;}
html body .pskgu-video-dialog table {width:100%;min-width:520px;border-collapse:collapse;font-size:.88rem;}
html body .pskgu-video-dialog th,html body .pskgu-video-dialog td {padding:8px 9px;border-bottom:1px solid #d8e3ee;text-align:left;vertical-align:top;}
html body .pskgu-video-dialog thead th {background:#edf3fa;color:#173a5c;}
html body .pskgu-video-dialog tbody th {font-weight:650;width:37%;}
html body .pskgu-video-dialog tbody tr:last-child th,html body .pskgu-video-dialog tbody tr:last-child td {border-bottom:0;}
html body .pskgu-video-dialog__note {font-size:.83rem;color:#536779;margin:8px 0 0!important;}
html body .pskgu-video-dialog__actions {display:flex;gap:8px;flex-wrap:wrap;margin-top:13px;}
html body .pskgu-video-dialog__actions a {
  display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;
  min-height:39px;padding:8px 13px;
  border:1px solid #b9d1eb;border-radius:8px;background:#f1f6fc;
  color:#164f8b;text-decoration:none;font-size:.88rem;font-weight:650;
}
html body .pskgu-video-dialog__actions a:hover {background:#e4effb;}
html body .pskgu-video-dialog :is(button,a):focus-visible {outline:2px solid #2875c8;outline-offset:2px;}
html body .pskgu-video-dialog--sdo {width:min(460px, calc(100vw - 24px));}
html body .pskgu-video-dialog__sdo {display:grid;gap:9px;padding:15px 18px 20px;}
html body .pskgu-video-dialog__sdo a {
  display:grid;gap:3px;padding:13px 14px;border:1px solid #c8d9eb;border-radius:9px;
  text-decoration:none;color:#164f8b;background:#f2f7fc;
}
html body .pskgu-video-dialog__sdo a span {font-size:.82rem;color:#56718d;}
html[data-theme="dark"] body .pskgu-video-dialog {background:#122131;color:#edf4fb;border-color:#36536c;box-shadow:0 18px 56px rgba(0,0,0,.55);}
html[data-theme="dark"] body .pskgu-video-dialog__head {border-color:#37516a;}
html[data-theme="dark"] body .pskgu-video-dialog__head h2,
html[data-theme="dark"] body .pskgu-video-dialog__scroll h3 {color:#d6eafa;}
html[data-theme="dark"] body .pskgu-video-dialog__close {border-color:#45617c;}
html[data-theme="dark"] body .pskgu-video-dialog__textlink {color:#91ceff;}
html[data-theme="dark"] body .pskgu-video-dialog__tablewrap,
html[data-theme="dark"] body .pskgu-video-dialog th,
html[data-theme="dark"] body .pskgu-video-dialog td {border-color:#36516a;}
html[data-theme="dark"] body .pskgu-video-dialog thead th {background:#1d354b;color:#edf5fc;}
html[data-theme="dark"] body .pskgu-video-dialog__note {color:#c0d1e1;}
html[data-theme="dark"] body .pskgu-video-dialog__actions a,
html[data-theme="dark"] body .pskgu-video-dialog__sdo a {background:#20374d;color:#d2e9ff;border-color:#41617c;}
html[data-theme="dark"] body .pskgu-video-dialog__sdo a span {color:#c5d8e8;}
@media(max-width:620px) {
  html body .pskgu-video-dialog__head {padding:12px;}
  html body .pskgu-video-dialog__head h2 {font-size:1.02rem;}
  html body .pskgu-video-dialog__scroll {padding:10px 12px 14px;}
  html body .pskgu-video-dialog__actions a {width:100%;}
}
@media print {html body .pskgu-video-dialog{display:none!important;}}

/* STAGE17: explicit text/fill contrast on the actual interactive control. */
html[data-theme="dark"] body.page-schedule-detail .pskgu-sj-notice .pskgu-sj-notice__link:hover,
html[data-theme="dark"] body.page-schedule-detail .pskgu-sj-notice .pskgu-sj-notice__link:focus-visible {
  background-color:#62412d!important; color:#fff0e2!important;
  -webkit-text-fill-color:#fff0e2!important; border-color:#e6ad68!important;
}
html[data-theme="light"] body.page-schedule-detail .pskgu-sj-notice .pskgu-sj-notice__link:hover {
  background-color:#f5e7cb!important; color:#794713!important;
  -webkit-text-fill-color:#794713!important;
}

/* STAGE19: schedule pages actually load runtime-schedule-fast.css. Keep the
   standalone dialog stylesheet in sync to preserve link contrast in both. */
html[data-theme="dark"] body.page-schedule-detail .pskgu-sj-notice .pskgu-sj-notice__link:is(:hover,:focus-visible) {
  background-color:#765334!important; color:#fff9ee!important;
  -webkit-text-fill-color:#fff9ee!important; border-color:#ebbb75!important;
  text-decoration:none!important; opacity:1!important;
}
html[data-theme="dark"] body.page-schedule-detail .pskgu-sj-notice .pskgu-sj-notice__link:active {
  background-color:#896039!important; color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important; border-color:#f2c68a!important;
}


/* STAGE19: Match the existing RaspHTML .popup-window modal chrome across
   group notices, /telemost/ and /telemost/stud/. No second SDO selector. */
html body dialog.pskgu-video-dialog {
  margin:auto!important;
  border-radius:18px!important;
  border:1px solid #cbddeb!important;
  box-shadow:0 18px 54px rgba(8,24,46,.26)!important;
  background:#fff!important;
  color:#172b42!important;
  overflow:hidden!important;
}
html body dialog.pskgu-video-dialog .pskgu-video-dialog__head {
  min-height:76px!important;
  box-sizing:border-box!important;
  padding:13px 17px 13px 22px!important;
  gap:18px!important;
  align-items:center!important;
  border-bottom:1px solid #dce6ef!important;
  background:#fff!important;
}
html body dialog.pskgu-video-dialog .pskgu-video-dialog__head h2 {
  color:#111827!important;
  font-family:inherit!important;
  font-size:1.14rem!important;
  font-weight:650!important;
  line-height:1.35!important;
}
html body dialog.pskgu-video-dialog .pskgu-video-dialog__close {
  position:relative!important;
  display:block!important;
  flex:0 0 44px!important;
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  min-height:44px!important;
  padding:0!important;
  border:1px solid #cbddeb!important;
  border-radius:12px!important;
  background:#f7fbfe!important;
  color:#1762a7!important;
  -webkit-text-fill-color:#1762a7!important;
  font-size:0!important;
  line-height:0!important;
  cursor:pointer!important;
}
html body dialog.pskgu-video-dialog .pskgu-video-dialog__close::before,
html body dialog.pskgu-video-dialog .pskgu-video-dialog__close::after {
  content:''!important;
  display:block!important;
  position:absolute!important;
  left:50%!important;
  top:50%!important;
  width:16px!important;
  height:2px!important;
  border-radius:2px!important;
  background:currentColor!important;
  transform-origin:center!important;
}
html body dialog.pskgu-video-dialog .pskgu-video-dialog__close::before {transform:translate(-50%,-50%) rotate(45deg)!important;}
html body dialog.pskgu-video-dialog .pskgu-video-dialog__close::after {transform:translate(-50%,-50%) rotate(-45deg)!important;}
html body dialog.pskgu-video-dialog .pskgu-video-dialog__close:is(:hover,:focus-visible) {
  background:#edf6fc!important;
  color:#104d87!important;
  -webkit-text-fill-color:#104d87!important;
  border-color:#a9cbe5!important;
}
html body dialog.pskgu-video-dialog .pskgu-video-dialog__scroll {padding:17px 23px 21px!important;}
html body dialog.pskgu-video-dialog .pskgu-video-dialog__textlink:hover {color:#0b4a85!important;text-decoration:underline!important;}
html[data-theme="dark"] body dialog.pskgu-video-dialog {
  background:#122131!important;color:#edf4fb!important;border-color:#30485f!important;
  box-shadow:0 18px 56px rgba(0,0,0,.55)!important;
}
html[data-theme="dark"] body dialog.pskgu-video-dialog .pskgu-video-dialog__head {
  background:#122131!important;border-bottom-color:#30485f!important;
}
html[data-theme="dark"] body dialog.pskgu-video-dialog .pskgu-video-dialog__head h2 {color:#f4f8fc!important;}
html[data-theme="dark"] body dialog.pskgu-video-dialog .pskgu-video-dialog__close {
  color:#a9d3f4!important;-webkit-text-fill-color:#a9d3f4!important;
  background:#182c40!important;border-color:#35516c!important;
}
html[data-theme="dark"] body dialog.pskgu-video-dialog .pskgu-video-dialog__close:is(:hover,:focus-visible) {
  background:#203a52!important;border-color:#4c7598!important;
  color:#f0f8ff!important;-webkit-text-fill-color:#f0f8ff!important;
}
html[data-theme="dark"] body dialog.pskgu-video-dialog .pskgu-video-dialog__textlink:hover {
  color:#c3e4ff!important;-webkit-text-fill-color:#c3e4ff!important;
}
@media(max-width:560px) {
  html body dialog.pskgu-video-dialog .pskgu-video-dialog__head {
    min-height:69px!important;padding:12px 12px 12px 15px!important;gap:12px!important;
  }
  html body dialog.pskgu-video-dialog .pskgu-video-dialog__close {
    flex-basis:40px!important;width:40px!important;height:40px!important;
    min-width:40px!important;min-height:40px!important;border-radius:11px!important;
  }
  html body dialog.pskgu-video-dialog .pskgu-video-dialog__scroll {padding:14px 17px 18px!important;}
}
/* The schedule warning is not a dialog. Its X and link must keep contrasting
   text in both pointer hover and keyboard focus (even against global a:hover). */
html[data-theme="light"] body.page-schedule-detail .pskgu-sj-notice .pskgu-sj-notice__close:is(:hover,:focus-visible) {
  background:#f0dfbe!important;color:#60370f!important;
  -webkit-text-fill-color:#60370f!important;border-color:#ba9153!important;
}
html[data-theme="dark"] body.page-schedule-detail .pskgu-sj-notice .pskgu-sj-notice__close:is(:hover,:focus-visible) {
  background:#62482f!important;color:#fff8e8!important;
  -webkit-text-fill-color:#fff8e8!important;border-color:#b38b52!important;
}
html[data-theme="dark"] body.page-schedule-detail .pskgu-sj-notice .pskgu-sj-notice__link:is(:hover,:focus-visible) {
  background:#765334!important;color:#fff9ee!important;
  -webkit-text-fill-color:#fff9ee!important;border-color:#ebbb75!important;
  text-decoration:none!important;opacity:1!important;
}
