/* Cookie banner + settings window, in the site's two colours and type */
html.has-cookie body { padding-bottom: var(--cookie-h, 0px); } /* the end of every page can be scrolled clear of the banner */
.cookie { position: fixed; z-index: 90; inset: auto 0 0 0; display: grid; gap: 12px; padding: 14px var(--g) calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #15209f; background: #f0ede5; color: #15209f; font-family: var(--text); transform: translateY(100%); opacity: 0; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s; }
.cookie.is-in { transform: none; opacity: 1; }
.cookie__text { margin: 0; font-size: 14px; line-height: 1.25; text-wrap: wrap; }
.cookie a, .cookie-set a, .cookie__link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; transition: opacity 0.3s; }
.cookie a:hover, .cookie-set a:hover, .cookie__link:hover { opacity: 0.7; }
.cookie a:active, .cookie-set a:active, .cookie__link:active { opacity: 0.5; }
.cookie a:focus-visible, .cookie-set a:focus-visible, .cookie__link:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.cookie__actions { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 6px; }
.btn.cookie__btn { --btn-bg: #15209f; --btn-fg: #f0ede5; min-height: 44px; border: 0; border-radius: 0; cursor: pointer; font-size: 13px; }
.btn.cookie__btn:hover { opacity: 0.88; }
.btn.cookie__btn:focus-visible { outline: 2px solid #15209f; outline-offset: 3px; }
.cookie__link { min-height: 44px; padding: 0 0 0 12px; border: 0; background: none; font-family: var(--text); font-size: 14px; cursor: pointer; }

html.cookie-open { overflow: hidden; }
.cookie-set { width: min(640px, calc(100vw - 2 * var(--g))); max-width: none; max-height: calc(100dvh - 2 * var(--g)); padding: 0; border: 0; overflow: auto; overscroll-behavior: contain; background: #f0ede5; color: #15209f; font-family: var(--text); }
.cookie-set::backdrop { background: rgba(21, 32, 159, 0.55); }
.cookie-set__in { padding: var(--s2) var(--g) var(--g); }
.cookie-set__top { display: flex; justify-content: space-between; align-items: center; margin-right: -12px; }
.cookie-set h2 { margin: 0; font-family: var(--text); font-weight: 500; font-size: clamp(24px, 2.3vw, 34px); line-height: 1.08; letter-spacing: -0.03em; }
.cookie-set__close { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; transition: opacity 0.3s; }
.cookie-set__close:hover { opacity: 0.7; }
.cookie-set__close:active { opacity: 0.5; }
.cookie-set__close:focus-visible { outline: 2px solid currentColor; outline-offset: -6px; }
.cookie-set ul { margin: var(--s1) 0 0; padding: 0; list-style: none; }
.cookie-set li { border-top: 1px solid rgba(21, 32, 159, 0.3); }
.cookie-set label { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding: 13px 0; cursor: pointer; transition: opacity 0.3s; }
.cookie-set label:hover { opacity: 0.8; }
.cookie-set label:active { opacity: 0.6; }
.cookie-set label:has(:disabled), .cookie-set label:has(:disabled):hover { cursor: default; opacity: 1; }
.cookie-set input { position: absolute; width: 22px; height: 22px; margin: 13px 0 0; opacity: 0; cursor: inherit; }
/* the square bullet of the homepage, as a checkbox */
.cookie-set__box { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid #15209f; }
.cookie-set__box::after { content: ""; width: 12px; height: 12px; background: #15209f; transform: scale(0); transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.cookie-set input:checked + .cookie-set__box::after { transform: none; }
.cookie-set input:disabled + .cookie-set__box { opacity: 0.5; }
.cookie-set input:focus-visible + .cookie-set__box { outline: 2px solid #15209f; outline-offset: 3px; }
.cookie-set b { display: block; font-weight: 600; font-size: 18px; line-height: 1.2; }
.cookie-set__text { display: block; margin-top: 4px; font-size: 15px; line-height: 1.25; }
.cookie-set__more { margin: 0; padding: 13px 0 var(--s2); border-top: 1px solid rgba(21, 32, 159, 0.3); font-size: 15px; line-height: 1.25; }
.cookie-set__actions { display: grid; gap: 6px; }
@media (min-width: 600px) { .cookie-set__actions { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) {
  .cookie { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--s3); }
  .cookie__text { font-size: 16px; }
  .cookie__actions { grid-template-columns: 150px 150px auto; }
}
@media (max-width: 899px) and (max-height: 600px) { .cookie { gap: 6px; padding-top: 8px; padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)); } }
@media (min-width: 600px) and (max-width: 899px) and (max-height: 600px) { /* phones held sideways: one row */
  .cookie { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--s2); padding-left: max(var(--g), env(safe-area-inset-left, 0px)); padding-right: max(var(--g), env(safe-area-inset-right, 0px)); }
  .cookie__actions { grid-template-columns: 100px 100px auto; }
}
@media (prefers-reduced-motion: reduce) { .cookie, .cookie-set__box::after { transition: none; } }
