/* GenesisL1 site: the light/dark switch and the cookie notice, on every page. */
.gl1-theme-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(17, 22, 29, .2);
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease;
}
.gl1-theme-switch:hover { border-color: currentColor; }
.gl1-theme-switch:focus-visible { outline: 2px solid #245cae; outline-offset: 2px; }
.gl1-theme-switch svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gl1-theme-switch .gl1-sun { display: none; }
:root[data-theme="dark"] .gl1-theme-switch { border-color: rgba(226, 233, 242, .24); }
:root[data-theme="dark"] .gl1-theme-switch:hover { border-color: rgba(226, 233, 242, .6); }
:root[data-theme="dark"] .gl1-theme-switch .gl1-sun { display: block; }
:root[data-theme="dark"] .gl1-theme-switch .gl1-moon { display: none; }
.gl1-theme-switch.gl1-small { width: 34px; height: 34px; }
.gl1-theme-switch.gl1-small svg { width: 16px; height: 16px; }
/* where a page has no place in its header, the switch floats in a corner */
.gl1-theme-float { position: fixed; z-index: 9990; left: 14px; bottom: 14px; background: #fff; color: #11161d; box-shadow: 0 8px 26px rgba(17, 22, 29, .14); }
:root[data-theme="dark"] .gl1-theme-float { background: #151b23; color: #e8edf3; box-shadow: 0 8px 26px rgba(0, 0, 0, .5); }
/* places the switch sits in */
.gl1-masthead-end { display: inline-flex; align-items: center; gap: 18px; }
.header-actions .gl1-header-switch { width: 44px; height: 44px; }
.top-actions .gl1-dapp-switch { width: 42px; height: 42px; }
/* on a phone, an app whose header is full shows the switch in a corner instead */
.gl1-theme-switch.gl1-narrow-only { display: none !important; }
@media (max-width: 720px) {
  .gl1-theme-switch.gl1-narrow-only { display: inline-flex !important; }
  .gl1-theme-switch.gl1-wide-only { display: none !important; }
}
/* the main header: with Broccoli in the menu, up to 1700px the menu sits centred between the logo and the buttons */
@media (min-width: 1281px) and (max-width: 1700px) {
  .site-header[data-header] { grid-template-columns: auto minmax(0, 1fr) auto; }
  .site-header[data-header] .desktop-nav { justify-content: center; }
}
/* the black GenesisL1 mark turns white where its light disc turned dark */
:root[data-theme="dark"] img[src$="genesisl1-mark.svg"] { filter: invert(1) brightness(1.05); }

/* cookie notice: one short line, No thanks and OK, in the corner */
.gl1-cookie {
  --c-bg: #ffffff;
  --c-text: #202933;
  --c-line: rgba(29, 52, 78, .24);
  --c-link: #245cae;
  --c-btn: #11161d;
  --c-btn-hover: #000000;
  --c-btn-ink: #ffffff;
  --c-shadow: rgba(28, 60, 98, .14);
  position: fixed;
  z-index: 9999;
  right: 16px;
  bottom: 16px;
  box-sizing: border-box;
  max-width: calc(100vw - 32px);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 8px 8px 14px;
  border: 1px solid var(--c-line);
  border-radius: 0;
  background: var(--c-bg);
  color: var(--c-text);
  box-shadow: 0 12px 36px var(--c-shadow);
  font: 400 13px/1.4 Inter, "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
}
:root[data-theme="dark"] .gl1-cookie,
.gl1-cookie.gl1-cookie-dark {
  --c-bg: #11171f;
  --c-text: #c7d1dc;
  --c-line: rgba(182, 202, 228, .26);
  --c-link: #8fb5f5;
  --c-btn: #e9eef5;
  --c-btn-hover: #ffffff;
  --c-btn-ink: #0a0e13;
  --c-shadow: rgba(0, 0, 0, .5);
}
/* a page that follows the system without saying so (the Broccoli page, until a theme is picked) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .gl1-cookie {
    --c-bg: #11171f;
    --c-text: #c7d1dc;
    --c-line: rgba(182, 202, 228, .26);
    --c-link: #8fb5f5;
    --c-btn: #e9eef5;
    --c-btn-hover: #ffffff;
    --c-btn-ink: #0a0e13;
    --c-shadow: rgba(0, 0, 0, .5);
  }
}
.gl1-cookie *, .gl1-cookie *::before, .gl1-cookie *::after { box-sizing: border-box; }
div.gl1-cookie p { margin: 0; padding: 0; color: var(--c-text); font: inherit; letter-spacing: 0; }
div.gl1-cookie a.gl1-cookie-link { color: var(--c-link); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
div.gl1-cookie span.gl1-cookie-buttons { flex: none; display: flex; gap: 6px; }
div.gl1-cookie button.gl1-cookie-ok,
div.gl1-cookie button.gl1-cookie-no {
  flex: none;
  min-width: 56px;
  min-height: 32px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--c-btn);
  border-radius: 0;
  background: var(--c-btn);
  color: var(--c-btn-ink);
  font: 700 12px/1 Inter, "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: .02em;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
}
div.gl1-cookie button.gl1-cookie-no { border-color: var(--c-line); background: transparent; color: var(--c-text); }
div.gl1-cookie button.gl1-cookie-ok:hover { background: var(--c-btn-hover); border-color: var(--c-btn-hover); }
div.gl1-cookie button.gl1-cookie-no:hover { border-color: var(--c-text); }
div.gl1-cookie button.gl1-cookie-ok:focus-visible, div.gl1-cookie button.gl1-cookie-no:focus-visible, div.gl1-cookie a.gl1-cookie-link:focus-visible { outline: 2px solid var(--c-link); outline-offset: 2px; }
@media (max-width: 520px) {
  .gl1-cookie { right: 10px; bottom: 10px; left: 10px; max-width: none; flex-wrap: wrap; gap: 8px 12px; padding: 10px 10px 10px 14px; }
  div.gl1-cookie p { flex: 1 1 100%; }
  div.gl1-cookie span.gl1-cookie-buttons { flex: 1 1 100%; }
  div.gl1-cookie button.gl1-cookie-ok, div.gl1-cookie button.gl1-cookie-no { flex: 1 1 0; }
}
@media print { .gl1-cookie, .gl1-theme-switch { display: none !important; } }
