/* Styles for the two corner buttons, their panels, and the accessibility adjustments they switch on. */

/* ---------- Corner buttons ---------- */
.fabs { position: fixed; right: 18px; bottom: 18px; z-index: 180; display: flex; flex-direction: column; gap: 12px; }
.fab { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--white); background: var(--navy); color: var(--white); box-shadow: var(--shadow-pop); cursor: pointer; }
.fab .icon { width: 25px; height: 25px; }
.fab--assist { background: var(--teal-ink); }
.fab:hover { background: var(--blue); }
.fab[aria-expanded="true"] { background: var(--white); color: var(--navy); border-color: var(--navy); }
@media (max-width: 599px) { .fabs { right: 12px; bottom: 12px; gap: 10px; } .fab { width: 50px; height: 50px; } }
@media print { .fabs, .wpanel, .a11y-guide { display: none !important; } }

/* ---------- Panels ---------- */
.wpanel { position: fixed; right: 86px; bottom: 18px; z-index: 190; display: flex; flex-direction: column; width: min(400px, calc(100vw - 110px)); max-height: min(680px, calc(100vh - 36px)); max-height: min(680px, calc(100dvh - 36px)); background: var(--white); color: var(--text); border: 1px solid var(--line-strong); border-radius: 24px; box-shadow: var(--shadow-pop); overflow: hidden; font-size: 0.95rem; }
.wpanel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 14px 20px; background: var(--navy); color: var(--white); }
.wpanel__head h2 { font-size: 1.15rem; color: var(--white); margin: 0; }
.wpanel__mode { font-size: 0.8rem; color: #C3CFE0; margin: 2px 0 0; }
.wpanel__close { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.12); color: var(--white); cursor: pointer; }
.wpanel__close:hover { background: rgba(255, 255, 255, 0.24); }
.wpanel__close:focus-visible, .wpanel__head :focus-visible { outline-color: #8FE3DE; }
.wpanel__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 20px 18px; }
.wpanel__body h3 { font-size: 1rem; margin: 20px 0 10px; }
.wpanel__intro { color: var(--muted); }
.wpanel__note { display: flex; gap: 8px; align-items: flex-start; margin-top: 18px; padding: 12px; border-radius: 14px; background: var(--cream); font-size: 0.88rem; }
.wpanel__note .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--teal-ink); }
.wpanel__foot { padding: 12px 20px; border-top: 1px solid var(--line); background: var(--cream); }
@media (max-width: 599px) {
  .wpanel { left: 8px; right: 8px; bottom: 8px; width: auto; max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); border-radius: 20px; }
  .wpanel-open .fabs { display: none; }
}

/* ---------- Accessibility options ---------- */
.a11y__presets { display: grid; gap: 8px; }
.a11y__preset { display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--line-strong); background: var(--white); color: var(--navy); cursor: pointer; }
.a11y__preset .icon { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--teal-ink); }
.a11y__preset strong { display: block; font-family: var(--font-display); font-size: 0.98rem; }
.a11y__preset span span { display: block; font-size: 0.85rem; line-height: 1.4; color: var(--muted); }
.a11y__preset[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: var(--white); }
.a11y__preset[aria-pressed="true"] .icon { color: #8FE3DE; }
.a11y__preset[aria-pressed="true"] span span { color: #D6DFEC; }
.a11y__set { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
.a11y__set legend, .a11y__size > span { font-weight: 600; color: var(--navy); padding: 0; margin-bottom: 6px; display: block; }
.a11y__seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--grey); }
.a11y__seg button { min-height: 40px; padding: 4px 6px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 0.86rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.a11y__seg button[aria-pressed="true"] { background: var(--white); color: var(--navy); box-shadow: 0 1px 3px rgba(21, 43, 80, 0.2); }
.a11y__stepper { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 8px; }
.a11y__stepper button { display: grid; place-items: center; height: 44px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--white); color: var(--navy); cursor: pointer; }
.a11y__stepper button[disabled] { opacity: 0.4; cursor: not-allowed; }
.a11y__stepper output { text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--navy); }
.a11y__toggles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 14px; margin-top: 16px; }
.a11y__toggle { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 550; color: var(--navy); cursor: pointer; }
.a11y__toggle input { flex: none; width: 20px; height: 20px; accent-color: var(--navy); }
.a11y__outline { list-style: none; display: grid; gap: 2px; padding: 0; margin: 0; }
.a11y__outline button { width: 100%; text-align: left; padding: 8px 10px 8px 22px; border: 0; border-radius: 10px; background: none; font: inherit; color: var(--navy); cursor: pointer; }
.a11y__outline button.is-top { padding-left: 10px; font-weight: 700; }
.a11y__outline button:hover { background: var(--cream); }
@media (max-width: 379px) { .a11y__toggles { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Site guide ---------- */
.assist__body { display: flex; flex-direction: column; gap: 12px; min-height: 220px; background: var(--cream); }
.assist__log { display: flex; flex-direction: column; gap: 10px; }
.amsg { max-width: 92%; padding: 11px 14px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 5px; overflow-wrap: anywhere; }
.amsg p { margin: 0 0 8px; } .amsg p:last-child { margin-bottom: 0; }
.amsg--you { align-self: flex-end; background: var(--navy); color: var(--white); border-color: var(--navy); border-radius: 16px; border-bottom-right-radius: 5px; }
.amsg--note { background: none; border-style: dashed; font-size: 0.85rem; color: var(--muted); max-width: 100%; }
.amsg--wait { color: var(--muted); font-style: italic; }
.amsg__links { list-style: none; display: grid; gap: 8px; padding: 0; margin: 4px 0 0; }
.amsg__links a { font-weight: 650; }
.amsg__links span { display: block; font-size: 0.85rem; color: var(--muted); line-height: 1.4; }
.amsg__mail { margin-top: 8px; padding: 12px; border-radius: 12px; background: var(--cream); font-size: 0.88rem; }
.amsg__mail pre { margin: 8px 0; white-space: pre-wrap; font: inherit; }
.amsg__row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.assist__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.assist__chip { min-height: 38px; padding: 6px 13px; border-radius: var(--r-pill); border: 1.5px solid var(--navy); background: var(--white); color: var(--navy); font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer; text-align: left; }
.assist__chip:hover { background: var(--navy); color: var(--white); }
.assist__form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--white); }
.assist__form .input { min-height: 46px; }
.assist__fine { margin: 0; padding: 0 16px 12px; font-size: 0.76rem; line-height: 1.45; color: var(--muted); background: var(--white); }

/* ---------- Adjustments (classes set on <html> by a11y-init.js) ---------- */
.a11y-line-1 body { line-height: 1.85; } .a11y-line-1 p, .a11y-line-1 li, .a11y-line-1 dd, .a11y-line-1 .lead { line-height: 1.85 !important; }
.a11y-line-2 body { line-height: 2.15; } .a11y-line-2 p, .a11y-line-2 li, .a11y-line-2 dd, .a11y-line-2 .lead { line-height: 2.15 !important; }
.a11y-space-1 body { letter-spacing: 0.04em; word-spacing: 0.1em; } .a11y-space-1 h1, .a11y-space-1 h2, .a11y-space-1 h3 { letter-spacing: 0.02em !important; }
.a11y-space-2 body { letter-spacing: 0.09em; word-spacing: 0.22em; } .a11y-space-2 h1, .a11y-space-2 h2, .a11y-space-2 h3 { letter-spacing: 0.05em !important; }
.a11y-font body, .a11y-font h1, .a11y-font h2, .a11y-font h3, .a11y-font h4, .a11y-font button, .a11y-font input, .a11y-font select, .a11y-font textarea, .a11y-font .btn, .a11y-font .nav__link, .a11y-font .nav__trigger, .a11y-font [class] { font-family: Verdana, Tahoma, "Trebuchet MS", Arial, sans-serif !important; }
.a11y-links a:not(.btn):not(.brand):not(.door):not(.fab) { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px; }
.a11y-heads main h1, .a11y-heads main h2, .a11y-heads main h3 { box-shadow: -6px 0 0 var(--turquoise); padding-left: 12px; background: rgba(32, 183, 176, 0.1); border-radius: 0 6px 6px 0; }
.a11y-focus :focus-visible { outline: 4px solid #FFB000 !important; outline-offset: 3px !important; box-shadow: 0 0 0 8px #152B50 !important; border-radius: 4px; }
.a11y-motion *, .a11y-motion *::before, .a11y-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
.a11y-motion .trail__walker { display: none; }
.a11y-calm .hero__art, .a11y-calm .page-hero__trail, .a11y-calm .cta-band__trail, .a11y-calm .portal__trail, .a11y-calm .mock, .a11y-calm .caption, .a11y-calm .avatar::after, .a11y-calm div:has(> .mock) { display: none !important; }
.a11y-calm .hero__grid, .a11y-calm .product-hero .split, .a11y-calm .split:has(> div > .mock) { grid-template-columns: minmax(0, 1fr) !important; }
.a11y-targets .btn, .a11y-targets .nav__link, .a11y-targets .nav__trigger, .a11y-targets .lang-toggle, .a11y-targets .nav-toggle, .a11y-targets .input, .a11y-targets .select, .a11y-targets summary, .a11y-targets .filters button { min-height: 54px; }
.a11y-targets .btn { padding-inline: 28px; font-size: 1.06rem; }
.a11y-targets main a:not(.btn) { padding-block: 4px; }
.a11y-guide { display: none; position: fixed; left: 0; right: 0; top: 0; z-index: 170; height: 10px; background: rgba(21, 43, 80, 0.82); border-block: 2px solid #FFB000; pointer-events: none; transform: translateY(-40px); }
.a11y-guide-on .a11y-guide, html.a11y-guide .a11y-guide { display: block; }
.a11y-cursor, .a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M8 4l28 22-13 2 8 15-6 3-8-15-9 9z' fill='%23152B50' stroke='%23fff' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") 8 4, auto !important; }

/* Colour modes */
.a11y-contrast { --text: #0A1220; --muted: #1E2939; --teal-ink: #064844; --line: rgba(10, 18, 32, 0.55); --line-strong: #0A1220; --cream: #FFFFFF; --sand: #FFFFFF; --sand-soft: #FFFFFF; --grey: #E2E6EC; --tint-teal: #CDEDEA; }
.a11y-contrast .card, .a11y-contrast .product-card, .a11y-contrast .pillar, .a11y-contrast .door, .a11y-contrast .feature, .a11y-contrast .form-panel, .a11y-contrast .mode, .a11y-contrast .chip, .a11y-contrast .line { border: 2px solid #0A1220; }
.a11y-contrast .section--sand, .a11y-contrast .site-header { border-block: 2px solid #0A1220; background: #FFFFFF; }
.a11y-contrast .site-footer, .a11y-contrast .section--navy, .a11y-contrast .cta-band, .a11y-contrast .compare__col--b { background: #050E1F; color: #FFFFFF; }
.a11y-contrast .site-footer, .a11y-contrast .footer__bottom, .a11y-contrast .footer__ack { color: #FFFFFF; }
.a11y-contrast a:not(.btn):not(.brand):not(.fab) { text-decoration: underline; }
.a11y-dark { filter: invert(1) hue-rotate(180deg); background: #FFFFFF; }
.a11y-dark img, .a11y-dark video { filter: invert(1) hue-rotate(180deg); }
.a11y-grey { filter: grayscale(1); }

/* Larger text: on wide screens the top menu keeps its normal size so that it still fits on one line.
   Everything else on the page grows. (On narrow screens the menu is a list and grows with the rest.) */
@media (min-width: 1260px) {
  .a11y-big .site-header .nav__link, .a11y-big .site-header .nav__trigger { font-size: 15.2px; padding: 10px 12px; }
  .a11y-big .site-header .nav__cta .btn { font-size: 14.5px; min-height: 42px; padding: 8px 16px; }
  .a11y-big .site-header .lang-toggle { font-size: 14px; }
  .a11y-big .site-header .brand svg { height: 42px; }
  .a11y-big .site-header__inner { min-height: 76px; }
  .a11y-big .nav__sublabel { font-size: 15.5px; } .a11y-big .nav__subdesc { font-size: 13.6px; }
}
@media (min-width: 1260px) and (max-width: 1599px) {
  .a11y-big .site-header .nav__link, .a11y-big .site-header .nav__trigger { font-size: 14px; padding: 9px 8px; }
  .a11y-big .site-header .brand svg { height: 36px; }
}
