@font-face {
  font-family: "YS Text";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../fonts/ys-text-regular.woff2") format("woff2");
}

@font-face {
  font-family: "YS Text";
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url("../fonts/ys-text-bold.woff2") format("woff2");
}

:root {
  --sc-page: #f1f1f1;
  --sc-card: #f1f1f1;
  --sc-line: #b9b9b9;
  --sc-field-line: #cccccc;
  --sc-art: #e2e2e2;
  --sc-ink: #000000;
  --sc-sub: #2b2b2b;
  --sc-muted: #4d4d4d;
  --sc-accent: #405ec5;
  --sc-accent-hover: #3550b2;
  --sc-error: #b4232f;
}

.access-page,
.access-page *,
.access-widget,
.access-widget *,
.sc-dialog,
.sc-dialog * {
  box-sizing: border-box;
}

body.access-page {
  margin: 0;
  background: var(--sc-page);
  color: var(--sc-ink);
  font-family: "YS Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  color-scheme: light;
}

.access-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1px 0 0;
}

/* ---- the widget ------------------------------------------------------- */

.access-widget {
  display: block;
  width: 399px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--sc-ink);
  font: 400 17px/22px "YS Text", "Helvetica Neue", Arial, sans-serif;
}

.access-widget > summary {
  list-style: none;
}

.access-widget > summary::-webkit-details-marker {
  display: none;
}

.access-widget > summary::marker {
  content: "";
}

/* ---- "I'm not a robot" card ------------------------------------------- */

.access-launch {
  position: relative;
  margin: 0;
  padding: 0;
  display: block;
  width: 399px;
  height: 115.5px;
  border: 1px solid var(--sc-line);
  border-radius: 12px;
  background: var(--sc-card);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.access-check {
  position: absolute;
  top: 18.5px;
  left: 19px;
  width: 32px;
  height: 32px;
  border: 2px solid #a9a9a9;
  border-radius: 4px;
  background: var(--sc-card);
}

.sc-title,
.sc-subtitle,
.sc-legal {
  position: absolute;
  display: block;
  margin: 0;
  white-space: nowrap;
  pointer-events: none;
}

.sc-title {
  top: 19.5px;
  left: 69.5px;
  color: var(--sc-ink);
  font-family: "YS Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0;
}

.sc-subtitle {
  top: 53px;
  left: 69.5px;
  color: var(--sc-sub);
  font-family: "YS Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 17.3px;
  font-weight: 400;
  line-height: 22px;
}

.sc-legal {
  top: 88px;
  left: 69px;
  color: var(--sc-muted);
  font-family: "YS Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 16px;
}

.sc-legal-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: inherit;
  cursor: pointer;
  pointer-events: auto;
}

.sc-brand {
  position: absolute;
  top: 17.5px;
  left: 336.5px;
  display: block;
  width: 48px;
  height: 24.5px;
  pointer-events: none;
  user-select: none;
}

/* ---- challenge card ---------------------------------------------------- */

.access-panel {
  position: relative;
  width: 399px;
  height: 426.5px;
  margin-top: 10px;
  border: 1px solid var(--sc-line);
  border-radius: 12px;
  background: var(--sc-card);
}

.access-art {
  position: absolute;
  top: 18.5px;
  left: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 360.5px;
  height: 136.5px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--sc-art);
}

.access-art img {
  display: block;
  width: 283.5px;
  height: 91.5px;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.sc-label {
  position: absolute;
  top: 187px;
  left: 19px;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 24px;
  margin: 0;
  color: var(--sc-ink);
  font-family: "YS Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 24px;
  white-space: nowrap;
}

.sc-help {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  padding: 0;
  border: 2px solid var(--sc-muted);
  border-radius: 50%;
  background: none;
  color: var(--sc-muted);
  font-family: "YS Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transform: translateY(1px);
}

.sc-help:hover {
  border-color: var(--sc-ink);
  color: var(--sc-ink);
}

.access-panel input[type="password"],
.access-panel input[type="text"],
.access-panel input[type="tel"] {
  position: absolute;
  top: 223px;
  left: 19px;
  display: block;
  width: 360.5px;
  height: 41.5px;
  margin: 0;
  padding: 1px 10px 0;
  border: 1px solid var(--sc-field-line);
  border-radius: 4px;
  background: var(--sc-card);
  color: var(--sc-ink);
  font-family: "YS Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 17.35px;
  font-weight: 400;
  line-height: normal;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.access-panel input::placeholder {
  color: #4a4a4a;
  opacity: 1;
}

.access-panel input:focus {
  border-color: #8f8f8f;
}

.sc-tools {
  position: absolute;
  top: 300px;
  right: 19px;
  left: 19px;
  height: 48px;
}

.sc-tool {
  position: absolute;
  top: 11.75px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--sc-muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.sc-tool:nth-of-type(1) { left: 11.75px; }
.sc-tool:nth-of-type(2) { left: 59.75px; }
.sc-tool:nth-of-type(3) { left: 107.75px; }

.sc-tool:hover {
  color: var(--sc-ink);
}

.sc-tool svg {
  display: block;
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.sc-refresh svg {
  width: 24px;
  height: 24px;
}

.sc-audio svg {
  width: 24px;
  height: 24px;
}

.sc-info svg {
  width: 24px;
  height: 24px;
}

.sc-submit {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 197.5px;
  height: 47.5px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--sc-accent);
  color: #ffffff;
  font-family: "YS Text", "Helvetica Neue", Arial, sans-serif;
  padding-left: 2px;
  font-size: 20.7px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
  transition: background-color .12s ease;
}

.sc-submit:hover {
  background: var(--sc-accent-hover);
}

.sc-submit:focus-visible,
.sc-tool:focus-visible,
.sc-help:focus-visible,
.access-widget > summary:focus-visible {
  outline: 2px solid #2c4fb8;
  outline-offset: 2px;
}

.sc-error {
  position: absolute;
  top: 270px;
  left: 19px;
  width: 360.5px;
  margin: 0;
  color: var(--sc-error);
  font-family: "YS Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  line-height: 16px;
}

.sc-ok {
  position: absolute;
  top: 270px;
  left: 19px;
  width: 360.5px;
  margin: 0;
  color: #1f7a3d;
  font-family: "YS Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  line-height: 16px;
}

.sc-legal-row {
  position: absolute;
  top: 375.5px;
  right: 17px;
  left: 19px;
  height: 24.5px;
  margin: 0;
}

.sc-legal-row .sc-footer-text {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  color: var(--sc-muted);
  font-family: "YS Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 13.2px;
  font-weight: 400;
  line-height: 16px;
  white-space: nowrap;
}

.sc-legal-row .sc-footer-brand {
  position: absolute;
  top: 6.5px;
  right: 0;
  display: block;
  width: 48px;
  height: 24px;
  pointer-events: none;
  user-select: none;
}

/* hidden service data, shown by the info dialogs */
.access-data {
  display: none;
}

.sc-dialog {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(20, 21, 24, .32);
}

.sc-dialog.is-open {
  display: grid;
}

.sc-dialog__box {
  width: min(100%, 360px);
  padding: 20px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .22);
  color: #1d1d1f;
  font: 400 14px/20px "YS Text", "Helvetica Neue", Arial, sans-serif;
}

.sc-dialog__box h3 {
  margin: 0 0 10px;
  color: #000;
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
}

.sc-dialog__box p {
  margin: 0 0 10px;
}

.sc-dialog__box a {
  color: #2c4fb8;
}

.sc-dialog__box button:focus {
  outline: none;
}

.sc-dialog__box button:focus-visible {
  outline: 2px solid #2c4fb8;
  outline-offset: 2px;
}

.sc-dialog__box button {
  display: block;
  width: 100%;
  height: 38px;
  margin-top: 6px;
  border: 0;
  border-radius: 6px;
  background: var(--sc-accent);
  color: #fff;
  font: 400 15px "YS Text", Arial, sans-serif;
  cursor: pointer;
}

@media (max-width: 430px) {
  .access-page {
    align-items: flex-start;
    padding: 8px 0;
    overflow-x: hidden;
  }

  .access-widget {
    transform: scale(.9);
    transform-origin: top center;
  }
}





/* ---- Material for MkDocs integration ---------------------------------- */

.md-typeset .access-widget,
.md-typeset .access-widget[open] {
  width: 399px;
  margin: 20px 0 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--sc-ink);
}

.md-typeset .access-widget > .access-launch,
.md-typeset .access-widget[open] > .access-launch {
  margin: 0;
  padding: 0;
  border: 1px solid var(--sc-line);
  border-radius: 12px;
  background: var(--sc-card);
  box-shadow: none;
  color: inherit;
}

.access-widget summary::before,
.access-widget summary::after {
  content: none;
}

.md-typeset .access-widget p,
.md-typeset .access-widget label,
.md-typeset .access-widget .sc-legal,
.md-typeset .access-widget .sc-footer-text {
  margin: 0;
}

.md-typeset .access-widget button {
  margin: 0;
  box-shadow: none;
  text-transform: none;
  letter-spacing: inherit;
}

.md-typeset .access-widget .sc-submit {
  display: flex;
  min-height: 0;
  color: #ffffff;
}

.md-typeset .access-widget .sc-tool,
.md-typeset .access-widget .sc-help,
.md-typeset .access-widget .sc-legal-button {
  min-height: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--sc-muted);
}

.md-typeset .access-widget .sc-help {
  border: 2px solid var(--sc-muted);
  background: none;
}

.md-typeset .access-widget .sc-legal-button {
  color: inherit;
}

.md-typeset .access-widget .sc-tool:hover,
.md-typeset .access-widget .sc-help:hover {
  color: var(--sc-ink);
}

.access-key {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 18px;
  overflow-wrap: anywhere;
}

.access-key a {
  color: #2c4fb8;
}

.access-widget .access-data,
.md-typeset .access-widget .access-data {
  display: none;
}

/* The compact card stays centered while the native dialogs take focus. */
.access-page { min-height: 100dvh; padding: 12px; align-items: center; }
.access-page main, .access-widget, .access-launch { width: min(399px, calc(100vw - 24px)); }
.access-widget { transform: none; }
.sc-launch-button { position: absolute; inset: 0; width: 100%; border: 0; border-radius: inherit; background: transparent; color: inherit; cursor: pointer; }
.sc-legal { z-index: 1; }
.access-panel {
    position: fixed; inset: 0; padding: 18px; margin: auto;
    width: min(399px, calc(100vw - 24px)); height: fit-content;
    max-height: calc(100dvh - 24px); overflow-y: auto; color: var(--sc-ink);
    font: 400 16px/1.35 "YS Text", Arial, sans-serif;
}
.access-panel[open] { display: block; animation: sc-enter .18s ease-out; }
.access-panel::backdrop, .sc-dialog::backdrop { background: rgb(20 21 24 / 42%); }
.access-panel .access-art { position: static; width: 100%; height: 118px; margin: 24px 0 14px; }
.access-art img { width: 100%; height: 100%; object-fit: cover; }
.sc-close { position: absolute; right: 10px; top: 4px; border: 0; background: transparent; color: var(--sc-muted); cursor: pointer; font-size: 26px; }
.access-panel .sc-label { position: static; display: flex; align-items: center; margin: 9px 0 4px; font-weight: 700; }
.access-panel input[type=password], .access-panel input[type=text] {
    position: static; display: block; box-sizing: border-box; width: 100%; height: 42px;
    padding: 6px 12px; border: 1px solid var(--sc-field-line); border-radius: 6px;
    background: white; color: var(--sc-ink); font: inherit;
}
.access-panel .sc-tools, .access-panel .sc-legal-row, .access-panel .sc-footer-text, .access-panel .sc-error {
    position: static; width: 100%; height: auto; margin: 10px 0 0;
}
.access-panel .sc-tools { display: flex; align-items: center; gap: 8px; }
.access-panel .sc-tools > button { position: static; }
.access-panel .sc-submit { margin-left: auto; }
.sc-dialog[open] { display: block; position: fixed; inset: 0; margin: auto; width: min(360px, calc(100vw - 24px)); height: fit-content; padding: 0; border: 0; border-radius: 12px; }
.access-check { display: grid; place-items: center; transition: background-color .22s, border-color .22s; }
.sc-mark { width: 23px; height: 23px; stroke: white; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.sc-mark path { display: none; stroke-dasharray: 32; stroke-dashoffset: 0; }
.access-widget[data-result=ok] .access-check { background: #228052; border-color: #228052; animation: sc-confirm .42s ease-out; }
.access-widget[data-result=error] .access-check { background: #ab374b; border-color: #ab374b; animation: sc-reject .34s ease-out; }
.access-widget[data-result=ok] .sc-tick, .access-widget[data-result=error] .sc-cross { display: block; animation: sc-draw .3s .07s ease both; }
.access-panel[open] { animation-duration: .24s; }
.access-panel::backdrop { animation: sc-fade .24s ease both; }
.sc-submit:disabled { opacity: .72; cursor: wait; }
@keyframes sc-enter { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes sc-fade { from { opacity: 0; } }
@keyframes sc-draw { from { stroke-dashoffset: 32; } }
@keyframes sc-confirm { 45% { transform: scale(1.12); box-shadow: 0 0 0 5px rgb(34 128 82 / 14%); } }
@keyframes sc-reject { 30% { transform: translateX(-3px); } 65% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) {
    .access-panel[open], .access-panel::backdrop, .access-widget[data-result] .access-check, .sc-mark path {
        animation: none !important;
        transition: none;
    }
}
