/* Keyboard navigation and optional display preferences. */
:root {
  --bs-primary: #0A58CA;
  --bs-primary-rgb: 10, 88, 202;
  --bs-link-color: #0A58CA;
  --bs-link-color-rgb: 10, 88, 202;
  --bs-link-hover-color: #084298;
  --bs-link-hover-color-rgb: 8, 66, 152;
  --bs-success: #167A43;
  --bs-success-rgb: 22, 122, 67;
  --e12-header-height: 80px;
}
.site-main { flex: 1 0 auto; min-width: 0; }
#main-content, [id] { scroll-margin-top: calc(var(--e12-header-height) + 1rem); }
:is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #0A58CA;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px #fff;
}
.e12-header :is(a, button, summary):focus-visible { outline-color: #0A58CA; }
.skip-link {
  position: fixed; inset: .5rem auto auto .5rem; z-index: 1100;
  padding: .85rem 1rem; background: #fff; color: #0A58CA;
  border: 2px solid #0A58CA; border-radius: .25rem;
  font-weight: 700; transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }
.btn-primary { --bs-btn-hover-bg: #084298; --bs-btn-hover-border-color: #084298; --bs-btn-active-bg: #06357a; --bs-btn-active-border-color: #06357a; }
.btn-outline-primary {
  --bs-btn-color: #0A58CA; --bs-btn-border-color: #0A58CA;
  --bs-btn-hover-bg: #0A58CA; --bs-btn-hover-border-color: #0A58CA;
  --bs-btn-active-bg: #084298; --bs-btn-active-border-color: #084298;
}
.a11y-settings { color: var(--navy); }
.a11y-settings > summary {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; padding: .5rem .65rem; border: 1px solid #697a95;
  border-radius: .4rem; font-size: .82rem; font-weight: 600;
  background: #fff; color: #0A1733; cursor: pointer; list-style: none;
  white-space: nowrap;
}
.a11y-settings > summary::-webkit-details-marker { display: none; }
.a11y-panel {
  position: fixed; top: calc(var(--e12-header-height) + .5rem); right: max(.75rem, calc((100vw - 1320px) / 2));
  z-index: 1045; width: min(23rem, calc(100vw - 1.5rem)); padding: 1.1rem;
  max-height: calc(100dvh - var(--e12-header-height) - 1.5rem); overflow-y: auto;
  background: #fff; color: #0A1733; border: 2px solid #0A58CA; border-radius: .5rem;
  font-size: 1rem; line-height: 1.6; text-align: start;
}
.a11y-panel fieldset { min-width: 0; }
.a11y-panel legend { font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; }
.a11y-panel label { display: flex; align-items: center; gap: .65rem; min-height: 48px; cursor: pointer; }
.a11y-panel input { width: 1.25rem; height: 1.25rem; flex-shrink: 0; accent-color: #0A58CA; }
.a11y-panel .btn { min-height: 44px; margin-top: .5rem; }
.a11y-panel a { display: block; min-height: 44px; padding-block: .5rem; text-decoration: underline; }
.a11y-note { font-size: .9rem; margin: .8rem 0 .25rem; }
.elderly-home-link { padding-block: .65rem; background: #fff; border-bottom: 1px solid #b9c7db; }
.elderly-home-link .container { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.elderly-home-link p { margin: 0; color: #0A1733; }
.elderly-home-link a { min-height: 44px; display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; text-decoration: underline; }
.legal-page { line-height: 1.8; }
.legal-page a { text-decoration: underline; }
html.a11y-large-text { font-size: 125%; }
/* Give navigation its own row so both language labels and larger text fit. */
@media (min-width: 1200px) {
  .e12-header .site-nav { flex-wrap: wrap; }
  .e12-header .e12-main-nav { order: 3; width: 100%; margin-left: 0; flex-wrap: wrap; padding-block: .35rem; }
}
@media (max-width: 575.98px) {
  .e12-header .site-nav-actions { flex-wrap: wrap; justify-content: flex-end; }
  .a11y-settings > summary { white-space: normal; padding: .4rem; font-size: .8rem; }
  .e12-header .site-nav-actions { flex: 1; min-width: 0; }
  .e12-header .e12-list-cta { white-space: normal; max-width: 8rem; }
  .e12-header .e12-login { display: none; }
  .e12-header .e12-menu-toggle { min-width: 44px; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
html.a11y-reduced-motion *, html.a11y-reduced-motion *::before, html.a11y-reduced-motion *::after {
  scroll-behavior: auto !important; animation: none !important; transition: none !important;
}
html.a11y-high-contrast body, html.a11y-high-contrast body * {
  color: #fff !important; background-color: #111 !important; background-image: none !important;
  border-color: #fff !important; text-shadow: none !important; box-shadow: none !important;
}
html.a11y-high-contrast body a, html.a11y-high-contrast body a * { color: #ffe66b !important; text-decoration: underline; }
html.a11y-high-contrast :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid #ffe66b !important; outline-offset: 3px; }
html.a11y-high-contrast .a11y-panel input { accent-color: #ffe66b; }
/* Keep native checked states and close icons visible after removing backgrounds. */
html.a11y-high-contrast input.form-check-input {
  appearance: auto !important; -webkit-appearance: auto !important;
  accent-color: #ffe66b; background: transparent !important;
}
html.a11y-high-contrast .btn-close { position: relative; opacity: 1; }
html.a11y-high-contrast .btn-close::before {
  content: '×'; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 1.6rem; line-height: 1; color: #fff;
}
html.a11y-high-contrast .elderly-service { border-left-color: var(--service-color) !important; }

/* W28–W30: a simple home with labelled, coloured service areas. */
.elderly-page { background: #fff; font-size: 1.125rem; line-height: 1.7; }
.elderly-page *, .elderly-page *::before, .elderly-page *::after { box-shadow: none !important; text-shadow: none !important; background-image: none !important; }
.elderly-page .site-header { position: static !important; background: #fff; backdrop-filter: none; }
.elderly-page .e12-main-nav, .elderly-page .e12-list-cta, .elderly-page .e12-menu-toggle, .elderly-page .ask-ai-fab, .elderly-page .mobile-nav { display: none !important; }
.elderly-page { padding-bottom: 0 !important; }
.elderly-page :is(a, button, summary, input, select) { min-height: 48px; }
.elderly-page .brand-word { align-items: center; }
.elderly-intro, .elderly-tasks, .elderly-services, .elderly-help { padding-block: 2rem; }
.elderly-intro { padding-top: 2.5rem; }
.elderly-page h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.35; }
.elderly-page h2 { font-size: 1.5rem; line-height: 1.4; margin-bottom: 1rem; }
.elderly-eyebrow { color: #0A58CA; font-weight: 700; margin-bottom: .5rem; }
.elderly-lead { max-width: 50rem; }
.elderly-search { padding: 1.25rem; border: 2px solid #0A58CA; border-radius: .4rem; background: #fff; }
.elderly-search label { font-weight: 700; }
.elderly-search-help { margin-bottom: .75rem; color: #42526b; }
.elderly-search-controls { display: flex; gap: .75rem; }
.elderly-search-controls input { min-width: 0; flex: 1; font-size: 1.125rem; }
.elderly-search-controls .btn { font-size: 1.125rem; }
.elderly-task-grid, .elderly-service-grid { display: grid; gap: 1rem; padding: 0; margin: 0; }
.elderly-task-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.elderly-task { display: flex; gap: .8rem; height: 100%; padding: 1.1rem; border: 1px solid #8998b0; border-radius: .3rem; color: #0A1733; }
.elderly-task-icon { padding-top: .3rem; color: #0A58CA; }
.elderly-task-title, .elderly-task-description { display: block; }
.elderly-task-title { font-weight: 700; text-decoration: underline; }
.elderly-task-description { margin-top: .3rem; font-size: 1rem; }
.elderly-service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; }
.elderly-service { display: flex; align-items: center; gap: .85rem; height: 100%; min-height: 80px; padding: 1.1rem; background: #fff; color: #0A1733; border: 1px solid #8998b0; border-left: 6px solid var(--service-color); border-radius: .3rem; }
.elderly-service-icon { color: var(--service-color); font-size: 1.35rem; width: 1.5rem; text-align: center; flex-shrink: 0; }
.elderly-service-label { flex: 1; font-weight: 700; text-decoration: underline; }
.elderly-service-arrow { color: var(--service-color); }
.elderly-page a:hover { text-decoration: underline; }
.elderly-help { border-top: 1px solid #b9c7db; }
.elderly-help-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.elderly-help-links a { display: inline-flex; align-items: center; text-decoration: underline; }
.elderly-footer { padding-block: 1.5rem; border-top: 1px solid #8998b0; background: #f6f8fc; color: #0A1733; }
.elderly-footer nav { display: flex; gap: .5rem 1.5rem; flex-wrap: wrap; margin-bottom: .5rem; }
.elderly-footer nav a { display: inline-flex; align-items: center; text-decoration: underline; }
@media (max-width: 991.98px) {
  .elderly-task-grid, .elderly-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .elderly-task-grid, .elderly-service-grid { grid-template-columns: 1fr; }
  .elderly-search-controls { flex-direction: column; }
  .elderly-intro, .elderly-tasks, .elderly-services, .elderly-help { padding-block: 1.25rem; }
}
