/* PHS UI-element audit fixes (ISO 9241-161:2025 principles). Additive; no brand/layout changes. */
/* 1. One consistent, clearly visible keyboard focus ring (not colour-only: 3px ring + 2px halo, readable on white and navy) */
:focus-visible{outline:3px solid #e6a100!important;outline-offset:2px!important;box-shadow:0 0 0 2px #1b3e7c!important}
main:focus-visible,[tabindex="-1"]:focus-visible,svg :focus-visible,svg:focus-visible{outline:none!important;box-shadow:none!important}
input:focus-visible,select:focus-visible,textarea:focus-visible{outline-offset:0!important}
/* 2. Desktop dropdowns reveal on keyboard focus (links were focusable but invisible) */
.site-header nav > div:has(:focus-visible):not([data-phs-esc]) > div[class*="pointer-events-none"]{opacity:1!important;transform:none!important;pointer-events:auto!important}
/* 3. Current page / selected states that do not rely on colour alone */
.site-header nav > div > [data-phs-current],.site-header nav > a[aria-current="page"]:not([class*="bg-[#1b3e7c]"]){box-shadow:inset 0 -3px 0 #e6a100;font-weight:600;border-radius:0}
.site-header nav a[aria-current="page"]:not(nav > a){font-weight:600;box-shadow:none;background:#eef2fa;border-radius:8px}
.site-header nav > a[aria-current="page"]:not([class*="bg-[#1b3e7c]"]){background:none}
/* the filled Book a visit button keeps its fill and has no extra mark */
.site-header nav > a[aria-current="page"][class*="bg-[#1b3e7c]"]{box-shadow:none;background:#1b3e7c}
.site-header > div:nth-child(2) :is(a,button)[aria-current="page"],.site-header > div:nth-child(2) [data-phs-current]{font-weight:600;box-shadow:none;background:#eef2fa;border-radius:8px}
button[data-phs-lang][aria-pressed="true"]{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:5px;font-weight:600}
/* 4. Minimum target size for small inline action buttons */
main button{min-height:24px}
/* 5. Form: invalid fields */
[aria-invalid="true"]{border-color:#b91c1c!important}
/* 6. External resource links in the learning framework look like links (matching the site's other external links), not pill buttons */
.sk21 .sk21-links{gap:10px 32px;margin-top:36px}
.sk21 .sk21-links a{border:0!important;border-radius:2px;padding:6px 0;font-size:15px;color:#fff;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px;background:none}
.sk21 .sk21-links a:hover{background:none;color:#e6a100;text-decoration-thickness:2px}
@media(max-width:639px){.sk21 .sk21-links{flex-direction:column;align-items:flex-start;gap:6px}}
/* 7. Learning framework controls use the site's 10px button radius instead of pills */
.sk21 .sk21-tabs button,.sk21 .sk21-more,.sk21 .sk21-go{border-radius:10px}
/* 8. Site-wide sweep: shape consistency, target size, hover affordance, selected state not by colour alone */
main a[href^="mailto:"][class*="border"]{border-radius:10px}
.site-header nav > div > button[aria-label$=" submenu"],button[data-phs-lang]{min-width:24px}
main a[href^="tel:"]:not([class*="border"]),main a[href^="mailto:"]:not([class*="border"]){display:inline-block;min-height:24px;padding-block:2px}
a.btn-press:hover,button.btn-press:hover{filter:brightness(1.07)}
main h2 > button[aria-controls]:hover,main h3 > button[aria-controls]:hover{background:rgba(27,62,124,.05)}
button[data-phs-sel]{box-shadow:inset 0 0 0 2px #1b3e7c;font-weight:600}
/* 9. Wheel: keyboard focus is a gold outline that follows the segment shape, so it differs from hover and selected (white edge) */
svg[aria-label] g[role="button"]:focus-visible{outline:none!important;box-shadow:none!important;filter:drop-shadow(3px 0 0 #e6a100) drop-shadow(-3px 0 0 #e6a100) drop-shadow(0 3px 0 #e6a100) drop-shadow(0 -3px 0 #e6a100)}
/* 10. Links that replaced action buttons keep the 24px minimum target */
main a.nl{min-height:24px}
/* 11. Links that replaced buttons centre their label like a button does (buttons centre content vertically by default; links do not).
   In the base layer so any utility class (flex, block, text-left...) still wins. */
@layer base {
  :where(a.nl) { display: inline-flex; align-items: center; justify-content: center; text-align: center; }
  :where(a.nl.text-left) { justify-content: flex-start; }
  :where(a.nl.text-right) { justify-content: flex-end; }
}
/* 12. Buttons follow the design system (PHS/Button/*): gold Accent has navy text (white on gold is 2.2:1),
   Medium label weight, 10px radius. */
:is(main,footer) :is(a,button)[class*="bg-[#e6a100]"],
:is(main,footer) :is(a,button)[class*="bg-[#e6a100]"] * { color: #1b3e7c !important; }
:is(main,footer) :is(a,button)[class*="bg-[#e6a100]"],
main a.nl[class*="border-white"],
main a.nl.btn-press.bg-white,
.site-header nav > a[class*="bg-[#1b3e7c]"] { font-weight: 500 !important; }
main a.nl.btn-press.bg-white, .adm5-seeall, .adm5-btn, .adm6-lk { border-radius: 10px !important; }
/* 13. The full-width sticky header is square-edged (the site-wide "shadow means 16px radius" rule rounded it). */
.site-header { border-radius: 0 !important; }

/* 14. Hover follows the design system: darker fill only (no lift or shadow); gold hover keeps navy text. */
.adm5-seeall:hover { transform: none !important; box-shadow: none !important; background: #163366 !important; }
.adm5-seeall:active { background: #10264d !important; }
.adm5-btn:hover { background: #d89800 !important; color: #1b3e7c !important; }

/* 15. Calendar: square day cells and a square "today" marker (the global bg-[ rule had rounded the cells). */
.grid-cols-7 > button { border-radius: 0 !important; }
.grid-cols-7 > button > span:first-child { border-radius: 0 !important; }

/* Icon flip on hover (stat tiles): one turn, left to right, plays once per hover; respects reduced motion */
@keyframes phs-icon-flip { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
div.flex-col.items-center.text-center:hover > img.w-8.h-8,
div.flex-col.items-center.text-center:focus-within > img.w-8.h-8 { animation: phs-icon-flip 1.5s cubic-bezier(.45,.1,.25,1) 1; }
@media (prefers-reduced-motion: reduce) {
  div.flex-col.items-center.text-center:hover > img.w-8.h-8,
  div.flex-col.items-center.text-center:focus-within > img.w-8.h-8 { animation: none; }
}

/* Text links use the text colour for their underline (gold on cream is too faint) */
[style*="text-decoration-color"] { text-decoration-color: currentColor !important; }

/* Every button shows the pointer cursor, like links */
button:not(:disabled), [role="button"]:not([aria-disabled="true"]) { cursor: pointer; }

/* Hover standard for links and text buttons (dark text on light, white on navy), consistent across the site */
main a.nl[class*="text-[#1b3e7c]"]:not([class*="bg-"]):hover,
main button[class*="text-[#1b3e7c]"][class*="text-sm"]:hover,
main a.underline:not([class*="text-white"]):hover { color: #10264d !important; text-decoration-line: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
main button[class*="text-[12px]"][class*="text-[#1b3e7c]"]:hover { text-decoration-line: underline; text-underline-offset: 4px; }
footer a.nl:hover, footer a[class*="text-white"]:hover { color: #fff !important; text-decoration-line: underline; text-underline-offset: 4px; }
button[class*="leading-4"][class*="transition"]:not([class*="bg-"]):hover { text-decoration-line: underline; text-underline-offset: 4px; }
a.shrink-0.btn-press:hover { opacity: .85; }
button[aria-controls="phs-chat-panel"]:hover { background: #163366 !important; }
.grid-cols-7 > button:not([aria-pressed="true"]):not([aria-selected="true"]):hover { background: #eef2fa; }

/* Links on dark (navy) backgrounds keep light text on hover */
main a.underline[class*="text-white"]:hover { color: #fff !important; text-decoration-thickness: 2px; }

/* Underline colour always follows the text colour on hover (no gold underline under blue text) */
main a:hover, footer a:hover, main button:hover { text-decoration-color: currentColor !important; }
/* Classless external links (dark framework section) keep their colour; thicker underline on hover */
main a:not([class])[target="_blank"]:hover { text-decoration-thickness: 2px; }
