/* Accessibility adjustments (WCAG 2.2 AA colour contrast and link distinction), added in 1.1.1.
   Same hues as the original design, deepened just enough for white text to reach 4.5:1. */
:root{--a11y-teal:#007f87;--a11y-blue:#006fb0}
/* Stage headers with white text */
.stage-head[data-stage="s2"]{background:var(--a11y-teal)!important}
.stage-head[data-stage="s3"]{background:var(--a11y-blue)!important}
.stage-head .stage-num{opacity:1!important}
/* Active view tabs (career and NIHR use teal; funding keeps its purple) */
.view-switch button[aria-selected="true"]:not([data-view="funding"]){background:var(--a11y-teal)!important;border-color:var(--a11y-teal)!important;color:#fff!important}
/* Selected role card */
/* not inside a story walkthrough, which keeps its orange */
.role-node.selected:not(.story-selection *){background:var(--a11y-teal)!important;border-color:var(--a11y-teal)!important}
/* Roles dimmed while another is selected: keep text readable */
.has-selection .role-node:not(.selected):not(.next-step){color:#56646a!important}
/* Links inside running text are underlined, not colour-only */
.archive-notice a,.nihr-notes a,dialog p a,.story-reading p a,.panel-content p a{text-decoration:underline!important;text-underline-offset:2px}
/* Heading order: the NIHR stories heading is an h2 (was h3 straight after the h1), styled as before */
.nihr-related-title{font-family:"Barlow Semi Condensed","Arial Narrow",Arial,sans-serif;font-size:18.72px;font-weight:800;line-height:1.1;margin:0 0 10px;color:#193e72}
/* 1.2.0 text version of the map, inside About */
.text-summary{margin:14px 0;border-top:1px solid #d6dde0;padding-top:10px}
.text-summary summary{cursor:pointer;font-weight:700;color:#193e72}
.text-summary dl{margin:10px 0 0}
.text-summary dt{font-weight:700;margin-top:10px}
.text-summary dd{margin:2px 0 0}
.text-summary-stage{font-weight:400;color:#56646a}
.text-summary ul{margin:10px 0 0;padding-left:20px}
.text-summary li{margin:3px 0}
.text-summary a{text-decoration:underline!important;text-underline-offset:2px}

/* 1.3.0 jobs board section in role panels */
.role-jobs .role-jobs-list{list-style:none!important;margin:8px 0 10px!important;padding:0!important}
.role-jobs-count{margin:0 0 4px;color:#56646a}
.role-jobs-list li{padding:9px 0;border-bottom:1px solid #dfe6e9}
.role-jobs-list li:last-child{border-bottom:0}
.role-jobs-list a{font-weight:700;color:#193e72;text-decoration:underline;text-underline-offset:2px;display:block;line-height:1.3}
.role-job-meta{display:block;font-size:.88em;color:#56646a;margin-top:3px}
.role-jobs-all{font-weight:700;color:#007f87;text-decoration:underline;text-underline-offset:2px}

/* 1.4.0 NIHR pathway: open calls */
.nihr-open{margin:16px 0 4px;padding:10px 14px;border-left:4px solid #c8d3d6;background:#f4f7f8}
.nihr-open p{margin:0}
.nihr-open-live{border-left-color:#1d7a3a;background:#eef7f0}
.nihr-open h3{margin:0 0 6px;font-size:1rem;color:#14592a;display:flex;align-items:center;gap:8px}
.nihr-open-dot{width:9px;height:9px;border-radius:50%;background:#1d7a3a;flex:none}
.nihr-open ul{list-style:none;margin:0;padding:0}
.nihr-open li{margin:4px 0}
.nihr-open a{font-weight:700;color:#193e72;text-decoration:underline!important;text-underline-offset:2px}
.nihr-open h3{border:0!important;padding-bottom:0!important}
.nihr-open-date{display:block;font-size:.88em;color:#3f4d52}
.nihr-node{position:absolute}
.nihr-open-badge{position:absolute;top:-9px;right:8px;background:#1d7a3a;color:#fff;font-size:11px;font-weight:700;line-height:1;padding:4px 7px;border-radius:10px;letter-spacing:.02em}
.nihr-guidance-link{text-decoration:underline!important;text-underline-offset:2px}
