/* =========================================================
   The header's language, accessibility and search buttons and their panels (see shared/tools.js), and the
   visitor's own accessibility choices. Each design sets these on its .site:
     --tl-main --tl-accent --tl-ink --tl-soft --tl-line --tl-grey   its colours
     --tl-font --tl-wrap --tl-gutter                                  its type and page width
     --tl-corner --tl-button                                          the panel's corner, and button roundness
     --tl-tool-fill --tl-tool-on                                      the round button's hover colours
   and handles high contrast itself, because that depends on its own colours.
   ========================================================= */

.tl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.tl-tool { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; cursor: pointer; transition: background-color .2s, color .2s; }
.tl-tool:hover, .tl-tool[aria-expanded="true"], .tl-tool[aria-pressed="true"] { background: var(--tl-tool-fill, #000); color: var(--tl-tool-on, #fff); box-shadow: none; }
.tl-tool[hidden] { display: none; }
/* On a phone the header has no room for another round button, so listening is offered in the
   accessibility panel instead (.tl-listen-row). */
@container site (max-width: 600px) { .tl-tool-listen, .tl-tool-essentials { display: none; } }
.tl-tool-essentials { text-decoration: none; }
.tl-tool.tl-tool-essentials[aria-current] { background: var(--tl-tool-fill, #000); color: var(--tl-tool-on, #fff); box-shadow: none; }
.tl-listen-row { box-sizing: border-box; text-decoration: none; display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 16px; padding: 12px 16px; border: 0; border-radius: 12px; background: var(--tl-grey, #f2f2f2); color: var(--tl-ink, #111); box-shadow: inset 0 0 0 1.5px var(--tl-line, #ddd); text-align: start; cursor: pointer; font-family: var(--tl-font, system-ui, sans-serif); }
.tl-listen-row[hidden] { display: none; }
.tl-listen-row svg { flex-shrink: 0; width: 26px; height: 26px; color: var(--tl-main, #111); }
.tl-listen-row span { display: grid; gap: 2px; }
.tl-listen-row b { font-size: 17px; }
.tl-listen-row small { font-size: 14.5px; color: var(--tl-soft, #555); }
.tl-listen-row:hover { box-shadow: inset 0 0 0 2px var(--tl-main, #111); }
.tl-listen-row[aria-pressed="true"] { background: var(--tl-main, #111); color: #fff; box-shadow: none; }
.tl-listen-row[aria-pressed="true"] :is(svg, small) { color: #fff; }

/* The bar that appears while a page is being read aloud (see Listening in shared/tools.js): at the foot of the
   window, in the site's main colour, with Pause and Stop. */
/* What is being read: the passage softly, and the word being spoken more strongly (Listening in shared/tools.js).
   Dark text on both, so they read on the dark photographs as well as on white. Each is its own rule, so a
   browser without the highlight feature skips them without losing the rest. */
::highlight(tl-passage) { background-color: #fff0a6; color: #111; }
::highlight(tl-word) { background-color: #ffb703; color: #111; }
.tl-player { position: fixed; z-index: 92; inset-inline: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: fit-content; max-width: calc(100% - 32px); margin-inline: auto; box-sizing: border-box; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 22px; border-radius: 999px; background: var(--tl-main, #111); color: #fff; box-shadow: 0 14px 40px rgba(0, 0, 0, .32); font: 700 15.5px/1.2 var(--tl-font, system-ui, sans-serif); }
.tl-player[hidden] { display: none; }
.tl-player-title { margin-inline-end: 6px; }
.tl-player button { padding: 11px 18px; border: 0; border-radius: 999px; background: #fff; color: var(--tl-main, #111); font: inherit; cursor: pointer; }
.tl-player button:hover { filter: brightness(.9); }
.tl-player button:focus-visible { outline: 3px solid var(--tl-accent, #c00); outline-offset: 2px; }
@media (max-width: 520px) { .tl-player { inset-inline: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); max-width: calc(100% - 16px); padding-inline-start: 16px; } .tl-player-title { display: none; } .tl-player button { flex: 1; } }

.tl-panel { position: absolute; z-index: 40; top: calc(100% + 1px); inset-inline-end: max(var(--tl-gutter, 16px), calc((100% - var(--tl-wrap, 1200px)) / 2 + var(--tl-gutter, 16px))); width: min(430px, calc(100% - 2 * var(--tl-gutter, 16px))); max-height: min(80vh, 640px); overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; padding: 22px 26px 24px; background: #fff; color: var(--tl-ink, #111); font-family: var(--tl-font, system-ui, sans-serif); font-size: 17px; line-height: 1.5; text-align: start; border-top: 4px solid var(--tl-accent, #c00); border-end-start-radius: var(--tl-corner, 20px); box-shadow: 0 18px 44px rgba(0, 0, 0, .22); }
.tl-panel[hidden] { display: none; }
.tl-panel :is(h2, p, ul, li, b, small, label) { margin: 0; padding: 0; letter-spacing: normal; text-transform: none; }
.tl-panel ul { list-style: none; }
.tl-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tl-panel-head h2 { font: 700 25px/1.2 var(--tl-font, system-ui, sans-serif); color: var(--tl-main, #111); }
.tl-panel-close { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--tl-grey, #f2f2f2); color: var(--tl-main, #111); font: 400 26px/1 var(--tl-font, system-ui, sans-serif); cursor: pointer; }
.tl-panel-close:hover { background: var(--tl-main, #111); color: #fff; }
.tl-panel-note { margin-top: 4px; font-size: 15px; color: var(--tl-soft, #555); }
.tl-field { margin-top: 16px; }
.tl-field > b { display: block; margin-bottom: 8px; font-size: 16px; }
.tl-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tl-seg button { padding: 11px 6px; border: 0; border-radius: 12px; background: var(--tl-grey, #f2f2f2); color: var(--tl-ink, #111); box-shadow: inset 0 0 0 1.5px var(--tl-line, #ddd); font: 700 16px/1.2 var(--tl-font, system-ui, sans-serif); cursor: pointer; }
.tl-seg button:nth-child(2) { font-size: 18px; }
.tl-seg button:nth-child(3) { font-size: 20px; }
.tl-seg button[aria-pressed="true"] { background: var(--tl-main, #111); color: #fff; box-shadow: none; }
.tl-switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; margin-top: 10px; padding: 12px 0 0; border: 0; border-top: 1px solid var(--tl-line, #ddd); background: none; color: var(--tl-ink, #111); text-align: start; cursor: pointer; font-family: var(--tl-font, system-ui, sans-serif); }
.tl-switch span { display: grid; gap: 2px; }
.tl-switch b { font-size: 17px; }
.tl-switch small { font-size: 14.5px; color: var(--tl-soft, #555); }
.tl-switch i { position: relative; flex-shrink: 0; width: 50px; height: 28px; border-radius: 999px; background: #b9b5ad; transition: background-color .2s; }
.tl-switch i::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.tl-switch[aria-checked="true"] i { background: var(--tl-accent, #c00); }
.tl-switch[aria-checked="true"] i::after { transform: translateX(22px); }
[dir="rtl"] .tl-switch[aria-checked="true"] i::after { transform: translateX(-22px); }
.tl-reset { margin-top: 18px; padding: 11px 22px; border: 0; border-radius: var(--tl-button, 999px); background: #fff; color: var(--tl-main, #111); box-shadow: inset 0 0 0 1.5px var(--tl-main, #111); font: 700 15.5px/1.2 var(--tl-font, system-ui, sans-serif); cursor: pointer; }
.tl-reset:hover { background: var(--tl-main, #111); color: #fff; }
.tl-search-form { display: flex; gap: 10px; margin-top: 18px; }
.tl-search-form input { flex: 1; min-width: 0; padding: 13px 18px; border: 0; border-radius: var(--tl-button, 999px); background: #fff; color: var(--tl-ink, #111); box-shadow: inset 0 0 0 1.5px var(--tl-main, #111); font: 400 17px/1.2 var(--tl-font, system-ui, sans-serif); }
.tl-go { padding: 12px 22px; border: 0; border-radius: var(--tl-button, 999px); background: var(--tl-accent, #c00); color: #fff; font: 700 16px/1.2 var(--tl-font, system-ui, sans-serif); cursor: pointer; }
.tl-go:hover { filter: brightness(.9); }
.tl-results { margin-top: 14px; }
.tl-results li + li { border-top: 1px solid var(--tl-line, #ddd); }
.tl-results a { display: grid; gap: 3px; padding: 14px 2px; color: inherit; text-decoration: none; }
.tl-results a:hover b { text-decoration: underline; text-underline-offset: 3px; color: var(--tl-accent, #c00); }
.tl-results b { font-size: 18px; color: var(--tl-main, #111); }
.tl-results a > span:last-child { font-size: 15px; line-height: 1.45; color: var(--tl-soft, #555); }
.tl-results-kind { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tl-accent, #c00); }
.tl-results-count, .tl-results-none { font-size: 15px; color: var(--tl-soft, #555); }
.tl-results mark { background: #ffe45c; color: inherit; border-radius: 2px; }

/* The site's languages: a row in the accessibility panel, and a list in the globe button's panel. The
   one being read is filled in. */
.tl-langs { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.tl-langs a { padding: 11px 6px; border-radius: 12px; background: var(--tl-grey, #f2f2f2); color: var(--tl-ink, #111); box-shadow: inset 0 0 0 1.5px var(--tl-line, #ddd); font: 700 16px/1.2 var(--tl-font, system-ui, sans-serif); text-align: center; text-decoration: none; }
.tl-langs a:hover { box-shadow: inset 0 0 0 2px var(--tl-main, #111); }
.tl-langs a[aria-current] { background: var(--tl-main, #111); color: #fff; box-shadow: none; }
.tl-langs-list { grid-template-columns: 1fr; margin-top: 16px; }
.tl-langs-list a { padding: 14px 18px; font-size: 18px; text-align: start; }

/* ---------- The folded menu ----------
   When a design's menu folds behind its button (sw-fold), it opens as a panel under the header, like
   the panels above: lined up under the button, which turns into a cross in the same place. The header
   stays on screen as the page scrolls, so the cross never moves away. Full width on a phone. */
.site.sw-fold.menu-open .tl-menu {
  display: flex; flex-direction: column; gap: 0; position: absolute; z-index: 40; top: calc(100% + 1px); inset-inline-start: auto;
  inset-inline-end: max(var(--tl-gutter, 16px), calc((100% - var(--tl-wrap, 1200px)) / 2 + var(--tl-gutter, 16px)));
  width: min(380px, calc(100% - 2 * var(--tl-gutter, 16px))); max-height: min(80vh, 640px); overflow-y: auto; overscroll-behavior: contain;
  box-sizing: border-box; margin: 0; padding: 8px 26px 24px; list-style: none;
  background: #fff; color: var(--tl-main, #111); font: 700 19px/1.3 var(--tl-font, system-ui, sans-serif); letter-spacing: normal; text-transform: none; text-align: start;
  border-top: 4px solid var(--tl-accent, #c00); border-end-start-radius: var(--tl-corner, 20px); box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
}
.site.sw-fold.menu-open .tl-menu > li { margin: 0; padding: 0; }
.site.sw-fold.menu-open .sw-head-row > .tl-menu { margin: 0; }
.site.sw-fold.menu-open .tl-menu > li:not(.sw-nav-refer, .un-nav-refer) > a { display: block; padding: 14px 2px; border: 0; border-bottom: 1px solid var(--tl-line, #ddd); color: inherit; opacity: 1; white-space: normal; text-decoration: none; }
.site.sw-fold.menu-open .tl-menu > li:not(.sw-nav-refer, .un-nav-refer) > a:hover { color: var(--tl-accent, #c00); }
.site.sw-fold.menu-open .tl-menu > li:nth-last-child(1 of :not(.sw-nav-refer, .un-nav-refer)) > a { border-bottom: 0; }
.site.sw-fold.menu-open .tl-menu > li:is(.sw-nav-refer, .un-nav-refer) { display: block; margin-top: 18px; }
.site.sw-fold.menu-open .tl-menu > li:is(.sw-nav-refer, .un-nav-refer) .btn { display: flex; justify-content: center; width: 100%; box-sizing: border-box; border-bottom: 0; }
@container site (max-width: 600px) {
  .site.sw-fold.menu-open .tl-menu { inset-inline-start: 0; inset-inline-end: 0; width: auto; border-end-start-radius: 0; padding-inline: var(--tl-gutter, 16px); }
}

/* On a phone the logo gives way, so the round buttons and the menu button always fit on the bar. Only
   once the menu has folded: until then a menu too long for the bar, such as in another language, folds
   rather than squashing the logo. A narrow logo leaves its spare room on its right, so the buttons sit at the right. */
.site.sw-fold .sw-head-row > :is(.sw-brand, .un-brand) { min-width: 0; flex-shrink: 1; }
.site.sw-fold .sw-head-row > :is(.sw-brand, .un-brand) > img { min-width: 0; max-width: 100%; object-fit: contain; object-position: left center; }
[dir="rtl"] .site.sw-fold .sw-head-row > :is(.sw-brand, .un-brand) > img { object-position: right center; }
.site .sw-head-row > :is(.sw-nav-toggle, .un-nav-toggle, .tl-tool) { flex-shrink: 0; }
@container site (max-width: 480px) {
  .site.sw-fold .sw-head-row:has(.tl-tool) { gap: 10px; }
  .site.sw-fold .sw-head-row:has(.tl-tool) > :is(.sw-brand, .un-brand) { margin-inline-end: auto; }
}

/* ---------- The cookie notice (a site's own setting), and the offer of another language ----------
   A card at the bottom of the window, outside the page, so it takes the site's main colours. */
.tl-cookies, .tl-offer { position: fixed; z-index: 90; inset-inline-start: 16px; bottom: 16px; width: min(460px, calc(100% - 32px)); box-sizing: border-box; padding: 20px 22px 22px; background: #fff; color: var(--c-ink, #111); font: 400 15.5px/1.55 var(--f-body, system-ui, sans-serif); border-top: 4px solid var(--c-accent, #c00); border-radius: 0 0 14px 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, .28); }
.tl-cookies[hidden], .tl-offer[hidden] { display: none; }
.tl-cookies p, .tl-offer p { margin: 0; }
.tl-cookies b { color: var(--c-main, #111); }
.tl-cookies a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.tl-cookie-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.tl-cookie-btns :is(button, a) { padding: 12px 14px; text-align: center; text-decoration: none !important; border: 0; border-radius: 999px; background: var(--c-main, #111); color: #fff; font: 700 15.5px/1.2 var(--f-body, system-ui, sans-serif); cursor: pointer; }
.tl-offer .tl-cookie-btns a + a { background: #fff; color: var(--c-main, #111); box-shadow: inset 0 0 0 1.5px var(--c-main, #111); }
.tl-cookie-btns :is(button, a):hover { filter: brightness(1.25); }
.tl-cookie-btns :is(button, a):focus-visible { outline: 3px solid var(--c-accent, #c00); outline-offset: 2px; }
.tl-cookie-link { margin-block: 0 0; margin-inline: 14px 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* The footer credit, "Website by Veaivo": the same quiet small print as the cookie link beside it. */
.tl-credit { margin-inline-start: 14px; color: inherit; font: inherit; opacity: .85; text-decoration: none; white-space: nowrap; }
a.tl-credit:is(:hover, :focus-visible) { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
/* Veaivo's logo in the credit: its two-armed V in its two colours, then the name in the footer's own colour. */
.tl-credit-logo { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; }
.tl-credit-logo svg { width: 1.45em; height: 1.45em; flex: none; }
.tl-credit-logo path { fill: #6C4CF1; stroke: #6C4CF1; stroke-width: 2.4; stroke-linejoin: round; }
.tl-credit-logo path.tl-v2 { fill: #2B31DA; stroke: #2B31DA; }
.tl-credit-logo b { font-weight: 800; letter-spacing: -.02em; }
.tl-offer p { font-weight: 700; color: var(--c-main, #111); }
@media (max-width: 520px) { .tl-cookies, .tl-offer { inset-inline-start: 8px; bottom: 8px; width: calc(100% - 16px); } }

/* ---------- The visitor's own accessibility choices (set in the header panel) ---------- */
html.a11y-text-1 .site { zoom: 1.14; }
html.a11y-text-2 .site { zoom: 1.3; }
html.a11y-space .site * { letter-spacing: .05em !important; word-spacing: .16em !important; }
/* The options panel keeps its own line height, so turning this on does not push its last options out of view. */
html.a11y-space .site :is(p, li, label, small):not(.tl-panel *) { line-height: 1.85 !important; }
html.a11y-font .site { --f-head: 'Atkinson Hyperlegible', Verdana, sans-serif !important; --f-body: 'Atkinson Hyperlegible', Verdana, sans-serif !important; --sans: 'Atkinson Hyperlegible', Verdana, sans-serif !important; --tl-font: 'Atkinson Hyperlegible', Verdana, sans-serif !important; }
html.a11y-calm :is(.site, .sw-extras) *, html.a11y-calm :is(.site, .sw-extras) *::before, html.a11y-calm :is(.site, .sw-extras) *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

/* ---------- Essentials: the short version of a page (lib/essentials.js) ----------
   A plain column in the site's own colours and fonts, inside its own header and footer. */
.es { background: #fff; color: var(--c-ink, #1c2430); font-family: var(--f-body, system-ui, sans-serif); }
.es-wrap { box-sizing: border-box; max-width: 760px; margin: 0 auto; padding: clamp(48px, 8vw, 88px) 24px clamp(56px, 8vw, 96px); }
.es-kicker { margin: 0 0 14px; font: 700 14px/1 var(--f-body, system-ui, sans-serif); letter-spacing: .14em; text-transform: uppercase; color: var(--c-accent, #c00); }
.es h1 { margin: 0 0 22px; font-family: var(--f-head, system-ui, sans-serif); font-size: clamp(32px, 5.2vw, 48px); line-height: 1.1; color: var(--c-main, #111); text-transform: none; letter-spacing: normal; }
.es-summary { margin: 0 0 36px; font-size: clamp(19px, 2.4vw, 23px); line-height: 1.5; }
.es h2 { margin: 0 0 14px; font: 700 19px/1.2 var(--f-head, system-ui, sans-serif); color: var(--c-main, #111); text-transform: none; letter-spacing: normal; }
.es-points { display: grid; gap: 12px; margin: 0 0 36px; padding: 0; list-style: none; }
.es-points li { padding: 15px 20px; border-inline-start: 5px solid var(--c-accent, #c00); border-radius: 0 12px 12px 0; background: var(--c-tint, #f4f2ee); font-size: 18px; line-height: 1.5; }
[dir="rtl"] .es-points li { border-radius: 12px 0 0 12px; }
.es-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 36px; }
.es-btn { display: inline-block; padding: 14px 26px; border-radius: var(--radius, 10px); background: var(--c-main, #111); color: var(--c-on-main, #fff); font: 700 16px/1.2 var(--f-body, system-ui, sans-serif); text-decoration: none; }
.es-btn:hover { filter: brightness(1.2); }
.es-btn--full { background: transparent; color: var(--c-main, #111); box-shadow: inset 0 0 0 2px var(--c-main, #111); }
.es-btn--full:hover { background: var(--c-main, #111); color: var(--c-on-main, #fff); filter: none; }
.es-note { margin: 8px 0 22px; padding-top: 22px; border-top: 1px solid rgba(0, 0, 0, .14); font-size: 15.5px; line-height: 1.5; color: #4a5260; }
html.a11y-contrast .es { background: #fff; color: #000; }
html.a11y-contrast .es-points li { background: #fff; box-shadow: inset 0 0 0 2px #000; }
html.a11y-contrast .es-note { color: #000; }
