/* Public event website (apps/website), on top of base.css: same tokens,
   header and footer, but no side navigation. No literal colour values. */

/* 1200 px wide (part B2): programme, tables and cards use the full
   column, running text (.site-prose) about 70 characters a line. */
.site-main {
  max-width: 75rem;
  margin: 0 auto;
}

/* Head (decided 01.11.2026): a white bar with the institute's logo and the
   language switch, without a line below, so that the gradients of photos
   and banners run into it undisturbed. A banner follows below the bar on
   the gradient between its edge colours (--head-top, --head-bottom, set on
   .site-banner-frame), without them the navy of the tokens. Above and
   below the logo a third of its height: 24 px to 72 px, 17 px to 51 px
   below 30rem. The white runs across the window, logo and switch line up
   with the content of .site-main (75rem, the padding of main in base.css,
   04.11.2026). */
.site-head-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 24px max(32px, (100% - 75rem) / 2 + 32px);
  background: var(--color-surface);
}

/* 72 px: the line below the name stays readable (capitals about 6.7 px);
   51 px below 30rem (capitals about 4.7 px), so that the bar there is not
   much higher than before with less room. The width follows from the
   proportion. */
.site-logo {
  display: block;
  flex: none;
  width: auto;
  max-width: 100%;
  height: 72px;
}

/* The logo is a link (version 0.18.0): to the institute's website or to the
   list of events. No underline and no colour change, the focus ring of all
   links with a little room around the logo. */
.site-logo-link {
  position: relative;
  display: block;
  flex: none;
  max-width: 100%;
  border-radius: var(--radius-control);
}

.site-logo-link:focus-visible {
  outline-offset: 4px;
}

/* With the logo leading to the institute's website: "All events" left of
   the switch. Where both do not fit beside the logo, they move together to
   a line of their own below it, on the right, the gap the same as the room
   above the logo. */
.site-head-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
}

.site-all-events {
  padding: 4px 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-navy);
}

/* The switch in the colours of the page instead of the dark header of the
   internal area (base.css). */
.site-head .language-switch {
  flex: none;
  border-color: var(--color-input-border);
}

.site-head .language-switch a,
.site-head .language-switch span {
  color: var(--color-text);
}

.site-head .language-switch a:hover {
  color: var(--color-text);
  background: var(--color-nav-active);
}

.site-head .language-switch [aria-current] {
  color: var(--color-surface);
  background: var(--color-navy);
}

.site-banner-frame {
  background: linear-gradient(
    var(--head-top, var(--color-navy)),
    var(--head-bottom, var(--color-header-field))
  );
}

/* Centred on the gradient: at most as wide as the image itself, smaller
   only in narrow windows or, with a limited height, for tall images; width
   and height stay in proportion (both auto), so nothing is ever cropped. */
.site-banner {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* The chosen share of the window height (--banner-limit, 30 to 100,
   EventWebsite.banner_height_limit). */
.site-banner-limited {
  max-height: calc(var(--banner-limit) * 1vh);
}

/* Across the full width (photos): as wide as the window, also wider than
   the image itself; the height follows from the proportion. */
.site-banner-full {
  width: 100%;
}

/* With a limited height the width follows from the proportion instead, so
   the image is never distorted; the gradient fills the sides. */
.site-banner-full.site-banner-limited {
  width: min(
    100%,
    var(--banner-limit) * 1vh * var(--banner-width) / var(--banner-height)
  );
  max-height: none;
}

.site-credit {
  padding: 6px 16px 0;
  margin: 0;
  font-size: 12px;
  color: var(--color-text-secondary);
  text-align: center;
  overflow-wrap: break-word;
}

/* Below the head: title, period and venue as text. */
.site-hero {
  margin: 24px 0 28px;
  text-align: center;
}

.site-hero h1 {
  margin: 8px 0 12px;
  font-size: 40px;
  hyphens: auto;
  overflow-wrap: break-word;
}

.site-when {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  justify-content: center;
  margin: 0;
  font-size: 18px;
  color: var(--color-text-secondary);
}

.site-section {
  padding: 20px 24px;
  margin-bottom: 24px;
  container: site-section / inline-size;
  /* Reached from the jump bar: not right at the top edge. */
  scroll-margin-top: 16px;
}

/* A section ends with its padding, as it begins: the margin of its last
   element (a list item, the contact address) does not add to it, down three
   levels like the cards of the internal area (base.css, 10.11.2026). */
.site-section > :last-child,
.site-section > :last-child > :last-child,
.site-section > :last-child > :last-child > :last-child,
.site-abstract > :last-child {
  margin-bottom: 0;
}

/* Jump bar to the sections: a line of links, below 52rem a menu
   (<details>); only one of them is shown. */
.site-jump {
  margin: 0 0 24px;
}

.site-jump ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-jump-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.site-jump a {
  display: block;
  padding: 8px 16px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  background: var(--color-surface);
  border: 1px solid var(--color-choice-border);
  border-radius: var(--radius-control);
}

.site-jump a:hover {
  color: var(--color-accent-dark);
  border-color: var(--color-accent);
}

.site-jump-menu {
  display: none;
}

/* 44px high with its border, like a button. */
.site-jump-menu summary {
  padding: 10px 16px;
  line-height: 22px;
  font-weight: 500;
  cursor: pointer;
  background: var(--color-surface);
  border: 1px solid var(--color-choice-border);
  border-radius: var(--radius-control);
}

.site-jump-menu ul {
  display: grid;
  gap: 4px;
  margin-top: 4px;
}

.site-jump-menu a {
  border-radius: var(--radius-control);
}

/* "Back to top": fixed at the bottom right; the footer keeps room for it.
   It lies in the footer (0.19.0), so the selectors name the footer and win
   over the colour of the footer links. */
.site-footer .to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-header-text);
  text-decoration: none;
  background: var(--color-navy);
  border-radius: var(--radius-control);
  box-shadow: 0 2px 6px color-mix(in srgb, var(--color-navy) 30%, transparent);
}

.site-footer .to-top:hover,
.site-footer .to-top:focus-visible {
  color: var(--color-surface);
  background: var(--color-header-field);
}

.site .site-footer {
  padding-bottom: 64px;
}

/* Running text: about 70 characters a line. */
.site-prose {
  max-width: 70ch;
}

.site-prose > :last-child {
  margin-bottom: 0;
}

.site-prose ul {
  padding-left: 1.4em;
}

/* Welcome: the tagline large and right-aligned on the left, the text on
   the right; one below the other where the section is narrow. */
.site-welcome-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 16px 40px;
  align-items: start;
}

.site-tagline {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-navy);
  text-align: right;
  overflow-wrap: break-word;
}

/* Photos in a row of equal height: each as wide as its proportion
   (--photo-ratio) asks, never higher than the smallest photo of the row is
   (--photo-height) nor than 30rem; never cropped. */
.site-photos {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
}

.site-photo {
  flex: calc(var(--photo-ratio)) 1 0;
  min-width: 0;
  max-width: calc(var(--photo-ratio) * min(var(--photo-height) * 1px, 30rem));
  margin: 0;
}

.site-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-control);
}

.site-photo figcaption {
  margin-top: 4px;
  font-size: 12px;
  color: var(--color-text-secondary);
  overflow-wrap: break-word;
}

/* Start page: the public events, one below the other, as the programme. */
.site-events {
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-events li {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-divider);
}

.site-events li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.site-section h2 + .site-events li:first-child {
  padding-top: 0;
}

.site-event-title {
  font-size: 20px;
  font-weight: 600;
  overflow-wrap: break-word;
  hyphens: auto;
}

.site-event-when {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin: 4px 0 0;
  color: var(--color-text-secondary);
}

/* Programme: one list per day, time beside the item. */
.site-day {
  padding-top: 16px;
  margin: 16px 0 0;
  border-top: 1px solid var(--color-divider-strong);
}

.site-section h2 + .site-day {
  padding-top: 0;
  border-top: 0;
}

.site-programme {
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-item {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 4px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-divider);
}

.site-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

/* The last item ends with the text, the card adds its padding (10.11.2026). */
.site-item-body > :last-child {
  margin-bottom: 0;
}

.site-item-time {
  margin: 0;
  color: var(--color-text-secondary);
}

.site-item-title {
  margin: 0 0 6px;
  font-size: 17px;
  hyphens: auto;
  overflow-wrap: break-word;
}

.site-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.site-people {
  margin: 0 0 4px;
}

.site-people-role {
  font-weight: 500;
}

.site-institution {
  color: var(--color-text-secondary);
}

.site-abstract {
  margin-top: 8px;
  font-size: 14px;
  color: var(--color-text-secondary);
}

/* Reached from a profile: not right at the top edge. */
.site-item,
.site-profile {
  scroll-margin-top: 16px;
}

/* Speakers and chairs (version 0.14.0, step 6): cards in columns of at
   least 24rem, the photo square on the left (cropped by CSS only, a bit
   above the middle, where faces usually are), above the text where the
   card is narrow. Without a photo the text alone (W34). */
.site-profiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr));
  gap: 24px 32px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-profile {
  container: profile / inline-size;
}

.site-profile-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px 16px;
  align-items: start;
}

.site-profile-with-photo {
  grid-template-columns: 8rem minmax(0, 1fr);
}

.site-portrait {
  display: block;
  width: 8rem;
  height: 8rem;
  object-fit: cover;
  object-position: 50% 30%;
  background: var(--color-divider);
  border-radius: var(--radius-control);
}

.site-profile-name {
  margin: 0 0 2px;
  font-size: 17px;
  hyphens: auto;
  overflow-wrap: break-word;
}

.site-profile-institution {
  margin: 0 0 6px;
  color: var(--color-text-secondary);
}

.site-profile-tasks {
  padding: 0;
  margin: 0 0 8px;
  font-size: 14px;
  list-style: none;
}

.site-profile-tasks li + li {
  margin-top: 4px;
}

.site-biography,
.site-profile-link {
  margin: 0 0 6px;
  overflow-wrap: break-word;
}

.site-profile-body > :last-child {
  margin-bottom: 0;
}

.site-empty,
.site-note {
  color: var(--color-text-secondary);
}

/* Fees and add-ons (Phase 4, part A): label and amount in two columns;
   early bird deadline, date, description and a differing VAT rate small
   below. */
.site-fees {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 24px;
  /* Fees and add-ons equally wide, so their amounts line up; room for the
     descriptions of the add-ons. */
  max-width: 40rem;
  margin: 0 0 12px;
}

.site-fees dt {
  overflow-wrap: break-word;
}

.site-fees dd {
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

.site-fee-detail {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-secondary);
}

.site-fee-detail p {
  margin: 4px 0 0;
}

.site-fees-heading {
  margin: 16px 0 8px;
  font-size: 17px;
}

h2 + .site-fees-heading {
  margin-top: 0;
}

.site-registration {
  border-left: 4px solid var(--color-accent);
}

/* Registration (Phase 4, part B): the form and the pages after it below
   the title of the event, which links back to its page. */
.site-hero-title {
  margin: 8px 0 12px;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  hyphens: auto;
  overflow-wrap: break-word;
}

.site-register h1 {
  margin: 0 0 12px;
  font-size: 24px;
}

.site-register .site-prose,
.site-register > p,
.registration-text {
  max-width: 40rem;
}

.registration-text {
  margin: 1.5rem 0 0.5rem;
  color: var(--color-text-secondary);
}

/* The trap field for bots: never shown (RegistrationForm.homepage). */
.registration-trap {
  display: none;
}

.registration-summary {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 24px;
  max-width: 40rem;
  margin: 0 0 16px;
}

.registration-summary dt {
  font-weight: 600;
}

.registration-summary dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.registration-summary ul {
  padding-left: 1.25rem;
  margin: 0;
}

.registration-back {
  margin-top: 24px;
}

/* Venue and directions (part B3): the venue from the application, then
   one block per site of the reserved rooms. The venue and the names of the
   sites look alike: each names a place. */
.site-place-name {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

.site-location + .site-place {
  margin-top: 16px;
}

.site-place + .site-place {
  padding-top: 16px;
  margin-top: 20px;
  border-top: 1px solid var(--color-border);
}

.site-address,
.site-map {
  margin: 0 0 8px;
}

.site-map + .site-prose {
  margin-top: 16px;
}

.site-place > :last-child {
  margin-bottom: 0;
}

/* Contact: no italics of <address>; addresses wrap after "@" only
   (email_breaks). */
.site-contact {
  font-style: normal;
}

.site-contact p {
  margin: 0 0 4px;
}

.site-funders {
  padding-left: 1.4em;
  margin: 0;
}

/* The public list of participants (Phase 4, part C): one name per line, in
   columns where there is room; an entry never splits across columns. */
.site-participants {
  padding: 0;
  margin: 0;
  list-style: none;
  columns: 20rem;
  column-gap: 2rem;
}

.site-participants li {
  break-inside: avoid;
  margin-bottom: 0.6rem;
}

.site-participant-institution {
  display: block;
  font-size: 14px;
  color: var(--color-text-secondary);
}

/* The preview band above the header: never mistaken for the public page. */
.preview-band {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 24px;
  color: var(--color-accent-dark);
  background: var(--color-accent-light);
  border-bottom: 3px solid var(--color-accent);
}

.preview-band p {
  margin: 0;
  overflow-wrap: anywhere;
}

.preview-band a {
  color: var(--color-accent-dark);
}

/* Logged-in accounts on a page that is not public yet: a narrow line above
   the header. */
.not-public-band {
  padding: 6px 24px;
  margin: 0;
  font-size: 14px;
  color: var(--color-accent-dark);
  background: var(--color-accent-light);
  border-bottom: 1px solid var(--color-accent);
}

/* Footer: imprint and privacy policy, below them name and copyright. */
.site-footer p {
  margin: 0;
}

/* Line height 2 (24px): when the links wrap on narrow screens, the lines
   lie 24px apart, so each link keeps a target of 24px (WCAG 2.5.8, 0.19.0),
   not only through the exception for links in text. */
.site-footer-links {
  margin-bottom: 4px;
  line-height: 2;
}

.site-footer a {
  color: var(--color-text-secondary);
}

/* A narrow card: the photo above the text. */
@container profile (width < 22rem) {
  .site-profile-with-photo {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Where the section is narrow, the time stands above the item. */
@container site-section (width < 32rem) {
  .site-item {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The summary of a registration one below the other. */
@container site-section (width < 32rem) {
  .registration-summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .registration-summary dd + dt {
    margin-top: 8px;
  }
}

/* Tagline above the text, left-aligned. */
@container site-section (width < 40rem) {
  .site-welcome-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-tagline {
    font-size: 24px;
    text-align: left;
  }

  /* Photos one below the other, each at most as wide as it is and at
     most 70 % of the window high. */
  .site-photos {
    flex-direction: column;
    align-items: center;
  }

  .site-photo {
    flex: none;
    max-width: 100%;
  }

  .site-photo img {
    width: auto;
    max-width: 100%;
    max-height: 70vh;
    margin: 0 auto;
  }

  .site-photo figcaption {
    text-align: center;
  }
}

@media (width < 52rem) {
  .site-jump-line {
    display: none;
  }

  /* Only the arrow, so that it covers little of the text; the words stay
     for screen readers. As specific as the rule above, so it wins. */
  .site-footer .to-top {
    display: grid;
    place-items: center;
    width: var(--control-height);
    height: var(--control-height);
    padding: 0;
    font-size: 20px;
    border-radius: 50%;
  }

  .to-top-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .site-jump-menu {
    display: block;
  }

  .site-head-bar {
    padding: 24px 16px;
  }

  .site-hero h1 {
    font-size: 30px;
  }

  .site-section {
    padding: 16px;
  }

  .preview-band,
  .not-public-band {
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (width < 30rem) {
  .site-head-bar {
    gap: 17px;
    padding: 17px 16px;
  }

  .site-logo {
    height: 51px;
  }
}

/* The radio buttons of the fee categories at their own size: the inputs of
   .person-form are as wide as the column (base.css). */
.registration-form input[type="radio"] {
  width: auto;
}

/* Fee categories as tiles (forms/choice_tiles.html): labels with amount and
   early bird deadline may take two lines, so the radio stands in line with
   the first one (a grid row instead of the centred flex line of base.css),
   and the row is centred in the tile as there. */
.registration-form .choice-row .choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  align-items: start;
}

.registration-form .choice-row .choice input[type="radio"] {
  margin-top: 0.2em;
}

/* The guest accounts (version 0.14.0): messages above the content, the
   head of the account with the logout button, the list of events. The
   messages as wide as the cards below (04.11.2026), the same distance as
   between two cards. */
.guest-messages {
  margin: 0 0 24px;
  overflow-wrap: break-word;
}

/* The list inside the wrapper with role="status" (0.19.0). */
.guest-messages > .messages {
  margin: 0;
}

/* Above the narrow card of the login pages: 26rem plus its padding and
   border (.login-card in base.css). */
.guest-messages:has(+ .login-card) {
  max-width: calc(26rem + 58px);
  margin-inline: auto;
}

.guest-messages + .login-card {
  margin-top: 24px;
}

.guest-account-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: flex-start;
  justify-content: space-between;
}

.guest-account-head h1 {
  margin: 0 0 8px;
  font-size: 24px;
}

.guest-account-who {
  margin: 0;
  color: var(--color-text-secondary);
}

.guest-events {
  padding: 0;
  margin: 0;
  list-style: none;
}

.guest-events li + li {
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--color-border);
}

.guest-events p {
  margin: 0 0 4px;
}

.guest-event-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
}

/* "The event has been cancelled." beside the title, not in its big type. */
.guest-event-title .chip {
  font-family: var(--font-body);
  vertical-align: middle;
}

.guest-event-when {
  color: var(--color-text-secondary);
}

/* Accepting and declining (version 0.21.0): the buttons side by side, the
   question before declining opens below "Decline", in the flow at every
   width. On phones "Decline" moves below "Accept" for it. */
.guest-answer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
  margin: 8px 0 12px;
}

.guest-decline[open] {
  flex: 1 1 18rem;
}

.guest-decline .transition-panel {
  position: static;
  width: min(32rem, 100%);
  box-shadow: none;
}

/* The page for an invalid link offers "Forgot password?" below (step 3). */
.login-card-subhead {
  margin: 28px 0 8px;
  font-size: 18px;
}

/* The language of the e-mails in the account: the tiles not wider than
   the fields of the forms, the button below the help text. */
.guest-language-form {
  max-width: 32rem;
}

.guest-language-form .help {
  margin: 0 0 16px;
}

/* The consents per event in the account (step 4): the biography and link
   only while the name in the programme is ticked, unless the server
   refused them (the message must stay visible). */
.guest-consent-intro {
  max-width: 70ch;
  margin: 0 0 16px;
}

.guest-consent-form {
  max-width: 40rem;
  margin-top: 12px;
}

.guest-consent-form legend {
  margin-bottom: 8px;
  font-weight: 600;
}

.guest-consent-form .field {
  margin-bottom: 12px;
}

.guest-consent-form > .help {
  margin: 0 0 12px;
}

.guest-consent-form:not(:has(input[name$="-programme"]:checked))
  .guest-consent-profile:not(:has(.errorlist)) {
  display: none;
}

/* The way back to the account above the first card of each of its
   pages, and on long pages again after the last one (31.10.2026). */
.guest-back {
  margin: 0 0 16px;
}

.guest-back a {
  font-weight: 600;
}

/* The pages of the account (details, password): the page heading as in
   the account, the stored link while links are switched off below the
   form. */
.guest-page-card h1 {
  margin: 0 0 8px;
  font-size: 24px;
}

.guest-stored-link {
  max-width: 32rem;
  margin-top: 28px;
}

.guest-stored-link h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.guest-details dd {
  max-width: 70ch;
}

/* The photo of the guest (step 5): a preview no larger than a profile
   picture, the forms as narrow as the other fields. */
.guest-photo-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.guest-photo-card > .help {
  max-width: 70ch;
  margin: 0 0 8px;
}

.guest-photo {
  margin: 16px 0 8px;
}

.guest-photo img {
  display: block;
  width: auto;
  max-width: min(100%, 16rem);
  height: auto;
  max-height: 16rem;
  border-radius: var(--radius-control);
}

.guest-photo figcaption {
  margin-top: 4px;
}

.guest-photo-form,
.guest-photo-delete {
  max-width: 32rem;
  margin-top: 16px;
}

.guest-photo-delete .help {
  margin: 0 0 8px;
}

/* Forced colours (0.19.0, step 4e, the patterns in base.css): the current
   language is chosen, and "Back to top" keeps a box, as it lies over the
   text. */
@media (forced-colors: active) {
  .site-head .language-switch [aria-current] {
    forced-color-adjust: none;
    color: Canvas;
    background: CanvasText;
  }

  .site-footer .to-top {
    background: Canvas;
    border: 2px solid CanvasText;
  }

  /* The institute's logo (INSTITUTE_LOGO) is made for the white head, often
     with dark text on a transparent ground: with dark colours of the user it
     would vanish. Its link keeps the white of the head as a fixed ground,
     the way of .brand in base.css: a gradient, as Firefox takes the
     background colour of a visited link from the style of :visited, which
     forced colours replace. The second exception to the system colours
     (tests/test_forced_colors.py, COLOUR_EXCEPTIONS). The negative margin
     keeps the logo where it stands, the ring in CanvasText around the
     box. */
  .site-logo-link {
    forced-color-adjust: none;
    padding: 4px;
    margin: -4px;
    background: linear-gradient(var(--color-surface), var(--color-surface));
  }

  .site-logo-link:focus-visible {
    outline-color: CanvasText;
  }
}
