/* Reflow, landmarks and keyboard access across both Portal entrances. */
.portal-skip{position:fixed;top:8px;left:8px;z-index:30000;max-width:calc(100vw - 16px);padding:12px 16px;border:2px solid var(--hw-action,var(--blue));border-radius:var(--portal-radius-control);background:var(--hw-white,var(--s1));color:var(--hw-navy,var(--navy));font-size:1rem;line-height:1.5;transform:translateY(calc(-100% - 16px));text-decoration:none}
.portal-skip:focus,.portal-skip:focus-visible{transform:none;outline:2px solid var(--hw-action,var(--blue));outline-offset:2px}
#student-main,#hub-workspace,#login-screen,#board{scroll-margin-block-start:5rem}
#student-main:focus,#hub-workspace:focus,#home:focus,#login-screen:focus{outline:none}
html[data-hub-workspace]{--fs-2xs:var(--portal-font-caption);--fs-xs:var(--portal-font-caption);--fs-sm:var(--portal-font-small);--fs-md:var(--portal-font-body)}
/* Existing legacy sheets animate offscreen, but closed controls must leave focus and AT. */
html[data-hub-workspace] [data-portal-dialog]{transition:transform var(--portal-exit) var(--portal-ease-move),opacity var(--portal-exit) var(--portal-ease-move),visibility 0s linear var(--portal-exit)}
.ov-sheet:not(#profile-sheet):not(#myc-sheet):not(.open):not([data-portal-inline]),.sp-sheet:not(.open),#tc-success:not(.open){visibility:hidden}
.ov-sheet[data-portal-inline],.ov-sheet.open,.sp-sheet.open,#tc-success.open,.ov-backdrop.open>.ov-sheet:not(#profile-sheet):not(#myc-sheet){visibility:visible}
html[data-hub-workspace] [data-portal-dialog].open,html[data-hub-workspace] .ov-backdrop.open>[data-portal-dialog]:not([id=tc-success]){transition-duration:var(--portal-enter),var(--portal-enter),0s;transition-timing-function:var(--portal-ease-out),var(--portal-ease-out),linear;transition-delay:0s}
:is(.ov-backdrop,.sp-ov){transition:opacity var(--portal-exit) var(--portal-ease-move),visibility 0s linear var(--portal-exit)}
.ov-backdrop:not(.open){visibility:hidden}
.ov-backdrop.open{visibility:visible;transition-duration:var(--portal-enter),0s;transition-delay:0s}
.sp-ov:not(.open){visibility:hidden}
.sp-ov.open{visibility:visible;transition-duration:var(--portal-enter),0s;transition-delay:0s}
html[data-hub-workspace] .hw .ha-shift .tc-punch-header{flex-wrap:wrap;min-width:0}
html[data-hub-workspace] .hw .ha-shift .tc-punch-badge{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.ds-head{flex-wrap:wrap}
.ds-meta{min-width:0}
.ds-meta>span{white-space:normal;overflow-wrap:anywhere}
.sp-sheet-actions{flex-wrap:wrap}
.sp-sheet-actions>.sp-btn{min-width:0;flex-wrap:wrap;overflow-wrap:anywhere}
[data-portal-surface=student] .tkt-when{overflow-wrap:anywhere;hyphens:auto}
[data-portal-surface=student] .tabbar .tab{min-width:0;padding:8px 2px;line-height:1.35}
[data-portal-surface=student] .tabbar .tab>span{max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere}
[data-portal-surface=student] .tabbar-in{align-items:stretch}
[data-portal-surface=student].has-tabs{padding-bottom:calc(var(--portal-dock-clearance,8rem) + env(safe-area-inset-bottom))}
[data-portal-surface=student] .wk-days{grid-template-columns:repeat(7,minmax(2.8rem,1fr));overflow-x:auto;padding:2px;scroll-padding:4px}
[data-portal-surface=student] .wk-days .wd{min-width:0;overflow-wrap:anywhere}
[data-portal-surface=student] .sesh{display:grid;grid-template-columns:minmax(2.9rem,auto) minmax(0,1fr);align-items:start;gap:8px 12px}
[data-portal-surface=student] .sesh-day{width:auto;min-width:0}
[data-portal-surface=student] .sesh-meta{overflow-wrap:anywhere;line-height:1.65}
[data-portal-surface=student] .sesh>.next-tag{grid-column:2;justify-self:start}
[data-portal-surface=public] .staff-link.site-link{white-space:normal;overflow-wrap:anywhere;text-align:center;max-width:100%}
[data-portal-surface=public] .wd-row{flex-wrap:wrap}
[data-portal-surface=public] .wd-word{min-width:0;max-width:100%;overflow-wrap:anywhere}
.hw-preview-body{padding-bottom:var(--portal-dock-clearance,7rem)}
#hub-workspace{padding-bottom:var(--portal-dock-clearance,7rem)}
html[data-hub-workspace] .hub-tabbar,.hw-preview-top nav{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,5rem),1fr));align-items:stretch;width:min(max(520px,32rem),calc(100% - 24px));max-width:max(520px,32rem)}
html[data-hub-workspace] .hub-tab,.hw-preview-top nav [data-hw-department]{min-width:0;height:auto;white-space:normal;overflow-wrap:anywhere;line-height:1.35;text-align:center}
html[data-hub-workspace] .hub-tab{padding-inline:2px}
html[data-hub-workspace] .hub-tab>span{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.portal-readiness{margin:0 0 16px;padding:12px 14px;border:1px solid var(--hw-line);border-radius:var(--portal-radius-control);background:var(--hw-white);font-size:var(--fs-sm);line-height:1.65;color:var(--hw-muted)}
@media(forced-colors:active){:is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid Highlight}.portal-skip{background:Canvas;color:CanvasText;border-color:Highlight}[aria-selected=true],[aria-pressed=true],.portal-readiness{border:1px solid CanvasText}}
html:is([data-hub-held],[data-hub-motion=off]) :is(.ov-sheet,.ov-backdrop,.sp-sheet,.sp-ov,#tc-success){transition:none!important}
@media(prefers-reduced-motion:reduce){:is(.ov-sheet,.ov-backdrop,.sp-sheet,.sp-ov,#tc-success){transition:none!important}}
@media print{.portal-skip{display:none}}
