/* EG Exercises 1.11.0: the level test ([eg_level_test]). The options look like the exercises' (the
   theme's colors: 8px corners, 46px rows, a round check), with the theme's tokens and their values as
   fallbacks. The options and the small buttons are not the theme's buttons: their colors, size and
   focus ring are set here. */
.egx-lt {
  --egx-lt-ink: var(--eg-ink, #1f2c1e);
  --egx-lt-muted: var(--eg-muted, #6a7267);
  --egx-lt-rule: var(--eg-rule, #e5e2d9);
  --egx-lt-line: #cfcbbf;
  --egx-lt-green: #3f6f23;
  --egx-lt-green-bg: #e9f1e2;
  --egx-lt-red: #b4412b;
  max-width: 720px;
}

.egx-lt__shared {
  margin: 0 0 20px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--eg-gold-pale, #fff4cf);
  color: var(--egx-lt-ink);
  font-weight: 600;
}

.egx-lt__intro {
  font-size: 19px;
  line-height: 1.55;
}

.egx-lt__note,
.egx-lt__time {
  color: var(--egx-lt-muted);
  font-size: 15.5px;
}

.egx-lt__progress {
  margin: 0 0 8px;
  color: var(--egx-lt-muted);
  font-size: 15px;
  font-weight: 600;
}

.egx-lt__progress:focus {
  outline: none;
}

.egx-lt__bar {
  height: 5px;
  margin: 0 0 22px;
  border-radius: 3px;
  background: var(--egx-lt-rule);
  overflow: hidden;
}

.egx-lt__bar span {
  display: block;
  height: 100%;
  background: var(--eg-gold, #d9b44a);
  transition: width 200ms ease;
}

.egx-lt__ask {
  margin: 0 0 4px;
  color: var(--egx-lt-muted);
  font-size: 15px;
}

.egx-lt__prompt {
  margin: 0 0 16px;
  color: var(--egx-lt-ink);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.45;
}

.egx-lt__options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 18px;
}

.egx-lt .egx-lt__option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--egx-lt-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  color: var(--egx-lt-ink);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  text-transform: none;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .egx-lt .egx-lt__option:hover {
    border-color: var(--egx-lt-green);
    background: var(--egx-lt-green-bg);
    color: var(--egx-lt-ink);
  }
}

.egx-lt .egx-lt__option:focus-visible {
  outline: 2px solid var(--eg-pine, #446931);
  outline-offset: 2px;
  box-shadow: none;
  color: var(--egx-lt-ink);
}

.egx-lt__check {
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(17, 24, 39, 0.3);
  border-radius: 50%;
  background: #fff;
}

.egx-lt .egx-lt__option.is-chosen {
  border-color: var(--egx-lt-green);
  background: var(--egx-lt-green-bg);
  box-shadow: inset 0 0 0 1px var(--egx-lt-green);
}

.egx-lt .egx-lt__option.is-chosen .egx-lt__check {
  border: 5px solid var(--egx-lt-green);
}

.egx-lt__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.egx-lt .egx-lt__next:disabled {
  opacity: 0.45;
  cursor: default;
}

.egx-lt .egx-lt__unsure,
.egx-lt .egx-lt__again,
.egx-lt .egx-lt__share-copy {
  min-height: 0;
  margin: 0;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--eg-moss, #446931);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.egx-lt .egx-lt__unsure:hover,
.egx-lt .egx-lt__again:hover,
.egx-lt .egx-lt__share-copy:hover,
.egx-lt .egx-lt__unsure:focus-visible,
.egx-lt .egx-lt__again:focus-visible,
.egx-lt .egx-lt__share-copy:focus-visible {
  background: transparent;
  color: var(--eg-moss-dark, #355d20);
}

/* The result */
.egx-lt__score {
  padding: 22px 24px;
  border-radius: 12px;
  background: var(--eg-tint, #f2f7ec);
}

.egx-lt__eyebrow {
  margin: 0 0 6px;
  color: var(--egx-lt-green);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.egx-lt__eyebrow:focus {
  outline: none;
}

.egx-lt__level {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 0 0 6px;
}

.egx-lt .egx-lt__code.eg-level-label {
  width: auto;
  min-width: 0;
  height: auto;
  padding: 6px 16px;
  border-radius: 12px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
}

.egx-lt__name {
  color: var(--egx-lt-ink);
  font-size: 26px;
  font-weight: 700;
}

.egx-lt__means {
  margin: 18px 0 6px;
  font-size: 17.5px;
  line-height: 1.55;
}

.egx-lt__subtitle {
  margin: 26px 0 8px;
  font-size: 21px;
}

.egx-lt ul.egx-lt__next-steps {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.egx-lt ul.egx-lt__next-steps > li {
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid var(--egx-lt-rule);
  list-style: none;
}

.egx-lt ul.egx-lt__next-steps > li:first-child {
  border-top: 1px solid var(--egx-lt-rule);
}

.egx-lt ul.egx-lt__next-steps > li::before,
.egx-lt ul.egx-lt__next-steps > li::marker {
  content: none;
}

.egx-lt ul.egx-lt__next-steps a {
  font-weight: 600;
}

.egx-lt__save p {
  margin: 0 0 8px;
}

.egx-lt__saved {
  color: var(--egx-lt-green);
  font-weight: 600;
}

.egx-lt__join {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.egx-lt__signin {
  font-weight: 600;
}

.egx-lt__share {
  margin: 22px 0 0;
}

.egx-lt__share-title {
  margin: 0 0 6px;
  font-weight: 700;
}

.egx-lt__share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin: 0;
}

.egx-lt__share-link {
  font-weight: 600;
}

.egx-lt__answers {
  margin: 26px 0 16px;
  border-top: 1px solid var(--egx-lt-rule);
  padding-top: 14px;
}

.egx-lt__answers summary {
  cursor: pointer;
  font-weight: 700;
}

.egx-lt__answers ol {
  margin: 12px 0 0;
  padding-left: 22px;
}

.egx-lt__answers li {
  margin: 0 0 14px;
}

.egx-lt__answers p {
  margin: 0 0 3px;
}

.egx-lt__a-prompt .eg-level-label {
  margin-right: 6px;
  vertical-align: 1px;
}

.egx-lt__a-yours {
  color: var(--egx-lt-muted);
}

.egx-lt__answers li.is-wrong .egx-lt__a-yours {
  color: var(--egx-lt-red);
}

.egx-lt__answers li.is-right .egx-lt__a-yours {
  color: var(--egx-lt-green);
}

.egx-lt__a-key {
  color: var(--egx-lt-green);
  font-weight: 600;
}

.egx-lt__a-why {
  font-size: 15px;
}

.egx-lt__a-more {
  font-size: 15px;
  font-weight: 600;
}

@media (max-width: 600px) {
  .egx-lt__intro {
    font-size: 17.5px;
  }

  .egx-lt__prompt {
    font-size: 17.5px;
  }

  .egx-lt__score {
    padding: 18px;
  }
}
