/* PHOJ canonical UI typography + interaction tokens. Code, math, icons and
   configurable navbar text are independent systems, deliberately excluded. */
@font-face{font-family:"PH Nav Source Serif";font-style:normal;font-display:swap;font-weight:400 800;src:url('/ph-fonts/source-serif-4-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"PH Nav Lora";font-style:normal;font-display:swap;font-weight:400 800;src:url('/ph-fonts/lora-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"PH Nav Merriweather";font-style:normal;font-display:swap;font-weight:400 800;src:url('/ph-fonts/merriweather-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"PH Nav Spectral";font-style:normal;font-display:swap;font-weight:400 800;src:url('/ph-fonts/spectral-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"PH Nav IBM Plex Serif";font-style:normal;font-display:swap;font-weight:400 800;src:url('/ph-fonts/ibm-plex-serif-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"PH Nav Roboto Serif";font-style:normal;font-display:swap;font-weight:400 800;src:url('/ph-fonts/roboto-serif-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

html.ph8550-design-system {
  --ph8550-font-ui:"PH Noto Serif 8476",Georgia,"Times New Roman",serif;
  --ph8550-focus:#3985e0; --ph8550-hover:#edf5ff; --ph8550-press:#dcecff;
  --ph8550-shadow:0 7px 18px rgb(30 74 124 / 12%); --ph8550-ease:cubic-bezier(.2,.7,.2,1);
}
html.theme--dark.ph8550-design-system { --ph8550-focus:#e8c177; --ph8550-hover:#1b304b; --ph8550-press:#203b58; --ph8550-shadow:0 7px 20px rgb(0 0 0 / 24%); }
html[data-ph-font-phase="8476"].theme--dark.ph8550-design-system body .header--mobile { background:#14233a !important; border-bottom-color:#2c4058 !important; color:#e0ecf8 !important; }
html[data-ph-font-phase="8476"].theme--dark.ph8550-design-system body .header--mobile .hamburger-inner,
html[data-ph-font-phase="8476"].theme--dark.ph8550-design-system body .header--mobile .hamburger-inner::before,
html[data-ph-font-phase="8476"].theme--dark.ph8550-design-system body .header--mobile .hamburger-inner::after { background-color:#e0ecf8 !important; }
html.ph8550-design-system body .header__hamburger:focus-visible { outline:2px solid var(--ph8550-focus) !important; outline-offset:2px; }
html[data-ph-font-phase="8476"].ph8550-design-system body :is(.dialog,.notification,.dropdown,.ph8516-system-tooltip) { font-family:var(--ph8550-font-ui) !important; font-synthesis:none; }
html[data-ph-font-phase="8476"].ph8550-design-system body :is(.main,.dialog,.dropdown,.notification,.footer,.ph8516-system-tooltip)
  :is(h1,h2,h3,h4,h5,h6,p,a,span,small,strong,b,em,i,label,legend,summary,button,input,select,textarea,option,th,td,dt,dd,li,time,output,figcaption,.section__title,.textbox,.select):not(:is(.icon,[class*="icon-"],.katex,.katex *,.MathJax,.MathJax *,mjx-container,mjx-container *,pre,pre *,code,code *,kbd,samp,.monospace,.monospace *,.CodeMirror,.CodeMirror *,.cm-editor,.cm-editor *,.monaco-editor,.monaco-editor *,.monaco-diff-editor *,.ace_editor,.ace_editor *,.ph846-submit-editor,.ph846-submit-editor *,[class*="language-"],[class*="language-"] *,.ph8500-nav-text-layer,.ph8500-nav-text-layer *,.ph8500-nav-text,.ph8500-nav-text *,.ph84933-code-editor,.ph84933-code-editor *,[data-ph84933-input],.ph8412-submit-code-input,.ph8412-submit-code-stage,.ph8412-submit-code-stage *,.ph843-code-highlight,.ph843-code-highlight *,.cm-tooltip,.cm-tooltip *)) {
  font-family:var(--ph8550-font-ui) !important;
  font-synthesis:none !important;
  font-kerning:normal;
}
html.ph8550-design-system body .ph843-training-detail-card-with-image::before,
html.ph8550-design-system body .ph843-training-detail-card-with-image::after {
  font-family:var(--ph8550-font-ui) !important; font-synthesis:none !important; letter-spacing:normal !important; word-spacing:normal !important;
}
/* The accessible, real h1 is the only title in the on-demand overview. */
html.ph8550-design-system body .ph8520-intro.ph843-training-detail-card-with-image::before {
  content:"" !important; min-height:140px !important; height:140px; padding:0 !important;
}
html.ph8550-design-system body .ph8520-training .ph8520-eyebrow { font-family:var(--ph8550-font-ui) !important; }
/* These fallback/input textareas are outside Monaco's measured text layer.
   Keep them monospace even against the old generic textarea font lock. */
html[data-ph-font-phase="8476"].ph8550-design-system body :is(.ph84934-code-native-source,[data-ph84933-input]) { font-family:"SFMono-Regular","Cascadia Code",Consolas,"Liberation Mono",monospace !important; }
html.ph8550-design-system body :is(.main,.dialog,.dropdown,.footer) :is(.button,button:not(.star):not(.star-toggle),.menu__link,summary,[role="button"]):not(:is(.CodeMirror *,.cm-editor *,.monaco-editor *,.ace_editor *)) {
  transition-property:background-color,border-color,box-shadow,color,opacity !important;
  transition-duration:160ms !important; transition-timing-function:var(--ph8550-ease) !important;
  -webkit-tap-highlight-color:transparent;
}
html.ph8550-design-system body :is(.main,.dialog,.dropdown,.footer) :is(a,button,input,select,textarea,summary,[role="button"]):focus-visible:not(:is(.CodeMirror *,.cm-editor *,.monaco-editor *,.ace_editor *)) {
  outline:2px solid var(--ph8550-focus) !important; outline-offset:3px;
}
html.ph8550-design-system body :is(.main,.dialog,.dropdown,.footer) :is(.button,button:not(.star):not(.star-toggle),summary):active:not(:disabled):not([aria-disabled="true"]):not(:is(.CodeMirror *,.cm-editor *,.monaco-editor *,.ace_editor *)) {
  box-shadow:inset 0 2px 5px rgb(8 36 68 / 17%) !important;
}
html.ph8550-design-system body :is(button,.button,[role="button"]):is(:disabled,[aria-disabled="true"]) { cursor:not-allowed; }
@media(hover:hover) and (pointer:fine) {
  html.ph8550-design-system body :is(.main,.dialog,.dropdown,.footer) :is(.button,button[type="submit"]):hover:not(:disabled):not([aria-disabled="true"]) { box-shadow:var(--ph8550-shadow); }
  html.ph8550-design-system body :is(.main,.dialog,.dropdown) .menu__link:hover:not(.disabled):not(:disabled) { background-color:var(--ph8550-hover) !important; }
  html.ph8550-design-system body :is(.ph8540-training-card,.ph8540-group-card,.ph8540-continue-card,.ph8540-subgroup-card,.ph8540-live-card):hover { border-color:var(--ph8550-focus); box-shadow:var(--ph8550-shadow); }
  html.ph8550-design-system body .main a:not(.button):not(.menu__link):not(:is(.CodeMirror *,.cm-editor *,.monaco-editor *,.ace_editor *)):hover { text-decoration-thickness:1px; text-underline-offset:3px; }
}
/* A bounded, non-interactive portal effect; never insert spans into controls. */
.ph8550-click-ring { position:fixed; z-index:2147483000; width:24px; height:24px; margin:-12px; border:1px solid var(--ph8550-focus,#3985e0); border-radius:50%; background:rgb(57 133 224 / 10%); pointer-events:none !important; user-select:none; animation:ph8550-click-ring 420ms var(--ph8550-ease,ease-out) forwards; }
@keyframes ph8550-click-ring { from { opacity:.42; transform:scale(.3); } to { opacity:0; transform:scale(1.8); } }
@media(prefers-reduced-motion:reduce) {
  html.ph8550-design-system body :is(.button,button,.menu__link,summary,[role="button"],.ph8540-training-card,.ph8540-group-card,.ph8540-live-card) { transition-duration:0ms !important; }
  .ph8550-click-ring { display:none !important; animation:none !important; }
}
