/* Inert viewport overlay: normal compositing, no filters, layout or hit-test changes. */
.n9-screen-tint-overlay{position:fixed;inset:0;z-index:2147483000;pointer-events:none!important;user-select:none;background:transparent;mix-blend-mode:multiply}
.n9-screen-tint-overlay[hidden]{display:none!important}
.n9-screen-tint-tools{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;white-space:nowrap}
.n9-screen-tint-tools[hidden],.n9-screen-tint-tools [hidden],.n9-tint-panel[hidden]{display:none!important}
.n9-screen-tint-tools .n9-tint-eyes,.n9-screen-tint-tools .n9-tint-reset,.n9-tint-panel .n9-tint-close{display:inline-flex;align-items:center;justify-content:center;position:relative;min-height:44px;min-width:44px;padding:9px 12px;box-sizing:border-box;background:#fff;color:#172d3b;border:1px solid #52647a;border-radius:12px;box-shadow:none;font:750 14px/1.25 Arial,sans-serif;cursor:pointer;text-transform:none;letter-spacing:normal;transform:none}
.n9-screen-tint-tools .n9-tint-eyes{padding:9px;width:44px}
.n9-screen-tint-tools .n9-tint-reset{background:#172d3b;color:#fff;border-color:#172d3b}
.n9-screen-tint-tools .n9-tint-reset:hover{background:#253d4e}
.n9-screen-tint-tools .n9-tint-eyes:hover{background:#eaf1ff}
.n9-tint-active-mark{position:absolute;top:1px;right:2px;font-size:11px;line-height:1;border-radius:50%;background:#fff;color:#164aba}
.n9-screen-tint-tools :focus-visible,.n9-tint-panel :focus-visible{outline:3px solid #164aba;outline-offset:3px;box-shadow:0 0 0 2px #fff}
.n9-tint-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.n9-tint-panel{position:fixed;inset:auto;margin:0;padding:20px;box-sizing:border-box;border:1px solid #52647a;border-top:5px solid #164aba;border-radius:20px;background:#fff;color:#172d3b;box-shadow:0 18px 55px #172d3b33;font:15px/1.55 Arial,sans-serif;overflow:auto;overscroll-behavior:contain;z-index:2147483100}
.n9-tint-panel[popover]:not(:popover-open){display:none}
.n9-tint-panel::backdrop{background:transparent;pointer-events:none}
.n9-tint-panel *{box-sizing:border-box}
.n9-tint-panel-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.n9-tint-panel .n9-tint-panel-top h2{font:850 24px/1.2 Arial,sans-serif;color:#172d3b;letter-spacing:-.03em;margin:0}
.n9-tint-panel .n9-tint-close{font-size:26px;line-height:1;padding:4px}
.n9-tint-panel p{margin:14px 0;color:#334155}
.n9-tint-panel fieldset{padding:0;border:0;margin:20px 0}
.n9-tint-panel legend{font-weight:800;font-size:15px;margin:0 0 10px;padding:0;color:#172d3b}
.n9-tint-choices{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.n9-tint-panel .n9-tint-choice{display:flex;align-items:center;gap:8px;position:relative;min-width:0;min-height:48px;padding:10px 8px;margin:0;border:1px solid #718096;border-radius:12px;background:#fff;color:#172d3b;font:700 13px/1.35 Arial,sans-serif;cursor:pointer;white-space:normal}
.n9-tint-choice:has(input:checked){background:#eaf1ff;border:2px solid #164aba;padding:9px 7px}
.n9-tint-choice input{appearance:auto;accent-color:#164aba;flex:0 0 auto;width:16px;height:16px;min-height:0;margin:0;padding:0;border:0;background:none}
.n9-tint-swatch{width:17px;height:17px;flex:0 0 auto;border:1px solid #52647a;border-radius:50%;background:#fff}
[data-n9-tint-swatch=rose]{background:#ff6070}[data-n9-tint-swatch=green]{background:#65bb70}[data-n9-tint-swatch=mint]{background:#66d8bd}[data-n9-tint-swatch=amber]{background:#ffd04a}[data-n9-tint-swatch=blue]{background:#70b8f0}[data-n9-tint-swatch=lavender]{background:#bc94ec}
.n9-tint-choice-mark{display:none;margin-left:auto;font-size:14px;color:#164aba}
.n9-tint-choice:has(input:checked) .n9-tint-choice-mark{display:inline}
.n9-tint-panel .n9-tint-strength-label{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#172d3b;font-weight:800;font-size:15px;margin:0 0 10px}
.n9-tint-strength-label output{font:800 14px/1.3 Arial,sans-serif;color:#164aba}
.n9-tint-panel input[type=range]{display:block;width:100%;min-height:44px;margin:0;padding:0;background:#fff;accent-color:#164aba;border:0;box-shadow:none;cursor:pointer}
.n9-tint-range-labels{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:#475569}
.n9-tint-panel .n9-tint-state{padding:10px 12px;border-radius:10px;background:#eaf1ff;font-weight:800;color:#172d3b;margin-bottom:8px}
.n9-tint-panel .n9-tint-save{font-size:12px;line-height:1.5;color:#475569;margin:8px 0}
.n9-tint-panel .n9-tint-reminder{padding:12px;border:1px solid #d9b633;border-radius:12px;background:#fff7d0;color:#172d3b;font-size:13px;line-height:1.55}
.n9-tint-panel .n9-tint-guide-link{display:inline-flex;align-items:center;justify-content:space-between;gap:14px;min-height:44px;color:#164aba;font:800 14px/1.4 Arial,sans-serif;text-decoration:underline;text-underline-offset:4px;padding:5px 0}
/* Make room for the always-available eyes/Reset pair without hiding Reset in a menu. */
.n9-public-header .header-inner:has(>.n9-screen-tint-tools){display:flex;flex-wrap:nowrap;gap:16px;width:min(1360px,calc(100% - 32px));min-width:0}
.n9-public-header .header-inner:has(>.n9-screen-tint-tools) .brand{flex:0 0 auto;order:1}
.n9-public-header .header-inner:has(>.n9-screen-tint-tools)>.nav{order:2;flex:1 1 auto;justify-content:flex-end;min-width:0;gap:14px}
.n9-public-header .header-inner>.n9-screen-tint-tools{order:3}
.n9-public-header .header-inner:has(>.n9-screen-tint-tools) .mobile-header-actions{order:4}
.student-bar>.n9-screen-tint-tools,.guardian-bar>.n9-screen-tint-tools{margin-left:auto}
@media(max-width:1350px){
 .n9-public-header .header-inner:has(>.n9-screen-tint-tools){gap:8px;min-height:72px}
 .n9-public-header .header-inner:has(>.n9-screen-tint-tools) .brand{margin-right:auto}

 .n9-public-header .header-inner:has(>.n9-screen-tint-tools) .mobile-header-actions{display:flex;flex:0 0 auto;align-items:center}
 .n9-public-header .header-inner:has(>.n9-screen-tint-tools) .menu-toggle{display:inline-flex}
 .n9-public-header .header-inner:has(>.n9-screen-tint-tools)>.nav{position:absolute;inset:72px 16px auto;display:none;flex-direction:column;align-items:stretch;justify-content:flex-start;padding:16px;background:#fff;border:1px solid #cbd5e1;border-radius:16px;box-shadow:0 14px 35px #172d3b22}
 .n9-public-header .header-inner:has(>.n9-screen-tint-tools)>.nav.open{display:flex}
 .n9-public-header .header-inner:has(>.n9-screen-tint-tools) .n9-grade-desktop-links{display:none}
 .n9-public-header .header-inner:has(>.n9-screen-tint-tools) .n9-grade-menu{display:block}
 .n9-public-header .header-inner:has(>.n9-screen-tint-tools) .n9-header-language-tools{width:100%;padding-top:12px;border-top:1px solid #e2e8f0}
 .student-bar:has(>.n9-screen-tint-tools),.guardian-bar:has(>.n9-screen-tint-tools){flex-wrap:wrap}
}
@media(max-width:375px){
 .n9-public-header .header-inner:has(>.n9-screen-tint-tools){width:calc(100% - 16px);gap:5px}

 .n9-screen-tint-tools{gap:4px}.n9-screen-tint-tools .n9-tint-reset{font-size:12px;padding-inline:8px}
 .n9-tint-panel{padding:16px}.n9-tint-choices{gap:6px}.n9-tint-panel .n9-tint-choice{font-size:12px;gap:5px}
}
@media print{.n9-screen-tint-overlay,.n9-screen-tint-tools,.n9-tint-panel{display:none!important}}
@media(forced-colors:active){.n9-screen-tint-overlay{display:none!important}.n9-tint-swatch{forced-color-adjust:none}.n9-tint-choice:has(input:checked){outline:2px solid Highlight}.n9-screen-tint-tools :focus-visible,.n9-tint-panel :focus-visible{outline-color:Highlight}}

/* Eyes and one-click Reset remain in original colours above the wash. */
.n9-screen-tint-tools{position:relative;z-index:2147483200;isolation:isolate;background:#fff;border-radius:12px}

/* The navigation stays in original colours so Reset cannot be obscured. */
.site-header:has([data-n9-tint-tools]),.student-header:has([data-n9-tint-tools]),.guardian-header:has([data-n9-tint-tools]){z-index:2147483100}

/* Preserve the complete original logo: menus adapt, artwork never shrinks/crops. */
.n9-public-header .header-inner .brand,.student-brand,.guardian-brand{flex-shrink:0}
.n9-public-header .header-inner .brand img,.student-brand img,.guardian-brand img{display:block;width:112px!important;min-width:112px;max-width:none!important;height:auto!important;object-fit:contain!important}
@media(max-width:1350px){
 .n9-public-header .header-inner:has(>.n9-screen-tint-tools)>.nav{inset:auto 0 auto;top:calc(100% + 8px);max-height:calc(100svh - 170px);overflow:auto}
}
@media(max-width:560px){
 .n9-public-header .header-inner:has(>.n9-screen-tint-tools){flex-wrap:wrap;min-height:72px;padding:12px 0;gap:8px}
 .n9-public-header .header-inner>.n9-screen-tint-tools{order:2}
 .n9-public-header .header-inner:has(>.n9-screen-tint-tools) .mobile-header-actions{order:3}
 .n9-public-header .header-inner>.n9-screen-tint-tools[data-n9-tint-active=true]{order:4;flex-basis:100%;justify-content:flex-end;background:none}
 .n9-screen-tint-tools .n9-tint-eyes,.n9-screen-tint-tools .n9-tint-reset{min-height:48px}
 .n9-public-header .header-inner:has(>.n9-screen-tint-tools) .menu-toggle{height:48px;width:48px}
}

/* Keep the new controls’ focus ring above inherited palette rules. */
.n9-screen-tint-tools :focus-visible,.n9-tint-panel :focus-visible{outline:3px solid #164aba!important;outline-offset:3px!important;box-shadow:0 0 0 2px #fff!important}

/* Explanation anchors are separate from the labels that apply each tint. */
.n9-tint-choice-row{display:flex;flex-direction:column;gap:2px;min-width:0}
.n9-tint-choice-row[data-n9-colour-choice=off]{grid-column:1/-1}
.n9-tint-panel .n9-tint-choice-help{margin:0 0 12px;font-size:13px;line-height:1.5;color:#334155}
.n9-tint-panel .n9-tint-colour-info{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:44px;min-width:0;padding:5px 8px;border-radius:8px;color:#103d99;font:700 13px/1.4 Arial,sans-serif;white-space:normal;text-decoration:underline;text-underline-offset:3px}
.n9-tint-panel .n9-tint-colour-info:hover{background:#eaf1ff}
.n9-tint-panel .n9-tint-colour-info>span{flex:0 0 auto}
