/* EG Classes 0.5.0. The page "Classes" (a visitor, a teacher, a class as its students see it) and the
   line above an assignment opened from a class. The colors and corners are the theme's (its --eg-
   properties), with the same values written out for a theme without them. */

.egcl {
  max-width: 760px;
}

/* For a screen reader only. */
.egcl-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.egcl__lead {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.55;
}

.egcl__need {
  margin: 0 0 10px;
  color: var(--eg-ink, #1f2c1e);
  font-weight: 650;
}

.egcl__note {
  margin: 0 0 18px;
  padding: 12px 16px;
  border: 1px solid #d3e0c6;
  border-radius: 10px;
  background: var(--eg-tint, #f2f7ec);
  color: var(--eg-ink, #1f2c1e);
  font-size: 15.5px;
  line-height: 1.45;
}

.egcl__note a {
  margin-left: 4px;
  font-weight: 600;
}

.egcl__limit {
  margin: 0 0 14px;
  color: var(--eg-muted, #6a7267);
  font-size: 15px;
}

/* What a form answered. */
.egcl__said {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #e4efd9;
  color: #2f4a22;
  font-size: 15.5px;
  font-weight: 600;
}

.egcl__said--bad {
  background: #fbe9e4;
  color: #8a2c1a;
}

/* ---------------------------------------------------------------- buttons, fields */
.egcl .egcl__btn,
.egcl a.egcl__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 40px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--eg-rule-strong, #cfcbbf);
  border-radius: var(--eg-radius, 6px);
  background: #fff;
  color: var(--eg-ink, #1f2c1e);
  -webkit-text-fill-color: currentColor;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: none;
  transform: none;
  cursor: pointer;
}

.egcl .egcl__btn:hover,
.egcl a.egcl__btn:hover {
  border-color: var(--eg-muted, #6a7267);
  background: var(--eg-tint, #f2f7ec);
  color: var(--eg-ink, #1f2c1e);
}

.egcl .egcl__btn--main,
.egcl a.egcl__btn--main,
.egcl a.egcl__btn--main:visited {
  border-color: #36552a;
  background: var(--eg-moss, #446931);
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.egcl .egcl__btn--main:hover,
.egcl a.egcl__btn--main:hover {
  border-color: #36552a;
  background: #36552a;
  color: #fff;
}

.egcl .egcl__btn--danger {
  border-color: #b4412b;
  background: #b4412b;
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.egcl .egcl__btn--danger:hover {
  border-color: #963522;
  background: #963522;
  color: #fff;
}

.egcl .egcl__btn--quiet {
  min-height: 24px; /* big enough to tap */
  padding: 0;
  border-color: transparent;
  background: none;
  color: var(--eg-moss, #446931);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.egcl .egcl__btn--quiet:hover {
  border-color: transparent;
  background: none;
  color: var(--eg-ink, #1f2c1e);
}

/* A button that is put away is out of sight (every button here has a display of its own). */
.egcl .egcl__btn[hidden] {
  display: none;
}

.egcl .egcl__btn:focus-visible,
.egcl a.egcl__btn:focus-visible,
.egcl .egcl__input:focus-visible,
.egcl .egcl-sure__word:focus-visible,
.egcl .egcl-tabs__one:focus-visible,
.egcl-results:focus-visible {
  outline: 2px solid var(--eg-ink, #1f2c1e);
  outline-offset: 2px;
}

.egcl__label {
  color: var(--eg-ink, #1f2c1e);
  font-size: 15px;
  font-weight: 650;
}

.egcl .egcl__input {
  box-sizing: border-box;
  flex: 1 1 200px;
  min-width: 0;
  max-width: 320px;
  height: 40px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #c9cfc2;
  border-radius: var(--eg-radius, 6px);
  background: #fff;
  color: var(--eg-ink, #1f2c1e);
  font-size: 16px; /* no zoom on an iPhone */
}

/* 0.2.1: the example in an empty field ("Example: Grade 7 English") is readable: the muted text color, not a browser's pale one. */
.egcl .egcl__input::placeholder {
  color: var(--eg-muted, #6a7267);
  opacity: 1;
}

/* A name's field keeps room for its example: where the row is too narrow for both, the field stands under its label. */
.egcl #egcl-new-name,
.egcl #egcl-rename {
  flex-basis: 240px;
}

.egcl select.egcl__input {
  padding-right: 28px;
}

.egcl__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

/* ---------------------------------------------------------------- a teacher: the classes */
.egcl-tabs {
  margin: 0 0 16px;
}

.egcl .egcl-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.egcl .egcl-tabs__list li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.egcl .egcl-tabs__one {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--eg-rule-strong, #cfcbbf);
  border-radius: 999px;
  background: #fff;
  color: var(--eg-ink, #1f2c1e);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.egcl .egcl-tabs__one:hover {
  background: var(--eg-tint, #f2f7ec);
}

.egcl .egcl-tabs__one[aria-current="page"] {
  border-color: #36552a;
  background: var(--eg-moss, #446931);
  color: #fff;
}

.egcl-card {
  margin: 0 0 22px;
  padding: 18px 20px 20px;
  border: 1px solid var(--eg-panel-border, #e3e6dc);
  border-radius: var(--eg-panel-radius, 14px);
  background: #fff;
}

.egcl-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 0 0 12px;
}

.egcl .egcl-card__name {
  margin: 0;
  color: var(--eg-ink, #1f2c1e);
  font-size: 22px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.egcl-card__count {
  color: var(--eg-muted, #6a7267);
  font-size: 15px;
  font-weight: 600;
}

.egcl .egcl-card__sub {
  margin: 22px 0 8px;
  color: var(--eg-ink, #1f2c1e);
  font-size: 17px;
  line-height: 1.3;
}

.egcl-card__empty {
  margin: 0 0 12px;
  color: var(--eg-muted, #6a7267);
  font-size: 15.5px;
}

/* The class's link: one sentence, the link, "Copy link". */
.egcl-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 12px;
  padding: 14px 16px;
  border: 1px solid #d3e0c6;
  border-radius: 10px;
  background: var(--eg-tint, #f2f7ec);
}

.egcl-link__say {
  flex: 1 1 100%;
  margin: 0;
  color: var(--eg-ink, #1f2c1e);
  font-size: 15.5px;
  line-height: 1.45;
}

.egcl .egcl__input--link {
  flex: 1 1 260px;
  max-width: none;
}

.egcl-link__copied {
  color: #2f4a22;
  font-size: 14.5px;
  font-weight: 600;
}

.egcl-link__copied:empty {
  display: none;
}

/* "Rename", "New link", "Delete class": words in a row; the one pressed opens its question on a line of its own. */
.egcl-more {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px 18px;
}

.egcl-sure {
  margin: 0;
}

.egcl-sure[open] {
  flex: 1 1 100%;
}

.egcl .egcl-sure__word {
  display: inline-block;
  padding: 4px 0;
  color: var(--eg-moss, #446931);
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  list-style: none;
  cursor: pointer;
}

.egcl .egcl-sure__word::-webkit-details-marker {
  display: none;
}

.egcl .egcl-sure__word::marker {
  content: "";
}

.egcl .egcl-sure__word:hover {
  color: var(--eg-ink, #1f2c1e);
}

.egcl-sure__form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 6px 0 4px;
}

.egcl-sure__text {
  flex: 1 1 100%;
  margin: 0;
  color: var(--eg-ink, #1f2c1e);
  font-size: 15.5px;
  font-weight: 650;
  line-height: 1.4;
}

/* The assignments. */
.egcl .egcl-tasks,
.egcl .egcl-work {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  counter-reset: egcl;
}

.egcl .egcl-task,
.egcl .egcl-work__one {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 0;
  padding: 10px 0 10px 34px;
  border-top: 1px solid var(--eg-rule, #e5e2d9);
  list-style: none;
  position: relative;
  counter-increment: egcl;
}

.egcl .egcl-task::before,
.egcl .egcl-work__one::before {
  content: counter(egcl);
  position: absolute;
  left: 0;
  top: 11px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--eg-tint, #f2f7ec);
  color: var(--eg-ink, #1f2c1e);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
}

.egcl-task__what,
.egcl-work__what {
  display: flex;
  flex: 1 1 220px;
  flex-direction: column;
  min-width: 0;
}

.egcl-task__title,
.egcl-work__title {
  color: var(--eg-ink, #1f2c1e);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.egcl-task__title a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #b9c0b2;
  text-underline-offset: 3px;
}

.egcl-task__title a:hover {
  text-decoration-color: currentColor;
}

.egcl-task__about,
.egcl-work__about {
  color: var(--eg-muted, #6a7267);
  font-size: 14.5px;
  line-height: 1.4;
}

.egcl-task.is-off .egcl-task__about {
  color: #8a2c1a;
}

.egcl-task .egcl-sure[open] {
  flex: 1 1 100%;
}

/* Under them: find an exercise, add a word list. */
.egcl-add {
  padding: 12px 0 0;
  border-top: 1px solid var(--eg-rule, #e5e2d9);
}

.egcl-add__form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 10px;
}

/* 0.3.0: the labels' column is as wide as its longest one, "Vocabulary list", on one line. */
.egcl-add__form .egcl__label {
  flex: 0 0 112px;
  white-space: nowrap;
}

.egcl-add__none,
.egcl-found__none {
  margin: 0 0 10px;
  color: var(--eg-muted, #6a7267);
  font-size: 15px;
}

.egcl .egcl-found {
  margin: 0 0 14px;
  padding: 4px 14px;
  border: 1px solid #d3e0c6;
  border-radius: 10px;
  background: var(--eg-tint, #f2f7ec);
  list-style: none;
}

.egcl .egcl-found__one {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: 0;
  padding: 8px 0;
  border-top: 1px solid #d3e0c6;
  list-style: none;
}

.egcl .egcl-found__one:first-child {
  border-top: 0;
}

.egcl-found__title {
  flex: 1 1 200px;
  min-width: 0;
  font-size: 15.5px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.egcl-found__about,
.egcl-found__there {
  color: var(--eg-muted, #6a7267);
  font-size: 14.5px;
}

.egcl-found__there {
  font-weight: 650;
}

.egcl-found__form {
  margin: 0;
}

.egcl .egcl-found .egcl__btn {
  min-height: 34px;
}

/* The results: a table that moves sideways inside its frame when the class has many assignments; the names stay in sight. */
.egcl-results {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--eg-rule, #e5e2d9);
  border-radius: 10px;
  -webkit-overflow-scrolling: touch;
}

.egcl .egcl-table {
  width: auto;
  min-width: 100%;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
  line-height: 1.35;
}

.egcl .egcl-table th,
.egcl .egcl-table td {
  padding: 9px 12px;
  border: 0;
  border-top: 1px solid var(--eg-rule, #e5e2d9);
  background: #fff;
  text-align: left;
  vertical-align: top;
}

.egcl .egcl-table thead th {
  border-top: 0;
  background: #f7f6f1;
  color: var(--eg-ink, #1f2c1e);
  font-size: 14px;
  font-weight: 650;
}

.egcl .egcl-table__who {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 120px;
  max-width: 180px;
  border-right: 1px solid var(--eg-rule, #e5e2d9);
  overflow-wrap: break-word; /* a long name breaks at its hyphen or space first */
}

.egcl .egcl-table__task {
  min-width: 118px;
  max-width: 170px;
}

.egcl-table__n {
  display: inline-block;
  min-width: 20px;
  height: 20px;
  margin-right: 2px;
  border-radius: 50%;
  background: #e4efd9;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.egcl-table__title {
  overflow-wrap: anywhere;
}

.egcl-table__done {
  display: block;
  margin-top: 2px;
  color: var(--eg-muted, #6a7267);
  font-size: 13px;
  font-weight: 600;
}

.egcl-table__name {
  display: block;
  color: var(--eg-ink, #1f2c1e);
  font-weight: 650;
}

.egcl .egcl-table .egcl-sure__word {
  min-height: 24px; /* big enough to tap */
  padding: 0;
  color: var(--eg-muted, #6a7267);
  font-size: 13px;
  line-height: 24px;
}

.egcl .egcl-table .egcl-sure__form {
  margin: 4px 0 0;
}

.egcl .egcl-table .egcl-sure__text {
  font-size: 14px;
}

/* Beside a student's code: what a new code does (a note, not a question). */
.egcl .egcl-table .egcl-table__code + .egcl-sure__text {
  color: var(--eg-muted, #6a7267);
  font-weight: 400;
}

.egcl .egcl-table .egcl__btn {
  min-height: 32px;
  font-size: 14px;
}

.egcl-cell__main {
  display: block;
  color: var(--eg-ink, #1f2c1e);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.egcl-cell--part .egcl-cell__main {
  color: var(--eg-muted, #6a7267);
}

.egcl-cell__sub {
  display: block;
  color: var(--eg-muted, #6a7267);
  font-size: 13px;
}

.egcl .egcl-table .egcl-cell--none {
  color: var(--eg-muted, #6a7267);
}

/* A new class. */
.egcl-new {
  margin: 0 0 10px;
}

.egcl .egcl-new__title {
  margin: 0 0 8px;
  color: var(--eg-ink, #1f2c1e);
  font-size: 17px;
  line-height: 1.3;
}

/* ---------------------------------------------------------------- a class, as its students see it */
.egcl-join {
  margin: 0 0 18px;
}

.egcl-join .egcl__label {
  display: block;
  margin: 0 0 6px;
  font-size: 17px;
}

.egcl-join__say {
  margin: 10px 0 0;
  color: var(--eg-muted, #6a7267);
  font-size: 15px;
}

.egcl-hi {
  margin: 0 0 12px;
  color: var(--eg-ink, #1f2c1e);
  font-size: 19px;
  font-weight: 650;
}

.egcl .egcl-work {
  padding: 0 18px;
  border: 1px solid var(--eg-panel-border, #e3e6dc);
  border-radius: var(--eg-panel-radius, 14px);
  background: #fff;
}

.egcl .egcl-work__one {
  padding-top: 14px;
  padding-bottom: 14px;
}

.egcl .egcl-work__one:first-child {
  border-top: 0;
}

.egcl .egcl-work__one::before {
  top: 15px;
}

.egcl .egcl-work__one.is-done::before {
  background: var(--eg-moss, #446931);
  color: #fff;
}

/* 0.3.0: "See the words" stays in one piece: on a narrow page it moves to the next line as a whole. */
.egcl-work__about {
  display: flex;
  flex-wrap: wrap;
  column-gap: 10px;
}

.egcl-work__state {
  margin-top: 2px;
  color: var(--eg-ink, #1f2c1e);
  font-size: 14.5px;
  font-weight: 650;
}

.egcl-leave {
  margin: 14px 0 6px;
  color: var(--eg-muted, #6a7267);
  font-size: 15px;
}

/* ---------------------------------------------------------------- an assignment opened from a class */
.egcl-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin: 0 0 18px;
  padding: 10px 14px;
  border: 1px solid #d3e0c6;
  border-radius: 10px;
  background: var(--eg-tint, #f2f7ec);
  color: var(--eg-ink, #1f2c1e);
  font-size: 15.5px;
  line-height: 1.45;
}

.egcl-bar__back {
  font-weight: 650;
}

/* After an exercise, in its result: "Sent to your teacher." and the way back. */
.egcl-sent {
  flex: 1 1 100%;
  margin: 10px 0 0;
  color: var(--eg-ink, #1f2c1e);
  font-size: 15.5px;
  font-weight: 650;
}

.egcl-sent:empty {
  display: none;
}

.egcl-sent__again {
  margin: 0;
  padding: 4px 10px;
  border: 1px solid var(--eg-rule-strong, #cfcbbf);
  border-radius: var(--eg-radius, 6px);
  background: #fff;
  color: var(--eg-ink, #1f2c1e);
  font-size: 14.5px;
  font-weight: 650;
  cursor: pointer;
}

/* ---------------------------------------------------------------- a phone */
@media (max-width: 480px) {
  .egcl-card {
    padding: 16px 14px 16px;
  }

  .egcl .egcl-work {
    padding: 0 14px;
  }

  .egcl-add__form .egcl__label {
    flex: 1 1 100%;
  }

  .egcl .egcl__input {
    max-width: none;
  }

  .egcl .egcl-table__who {
    min-width: 96px;
    max-width: 120px;
  }

  .egcl-work__one .egcl__btn {
    flex: 1 1 100%;
  }
}

@media print {
  .egcl-more,
  .egcl-add,
  .egcl-new,
  .egcl-link .egcl__btn,
  .egcl-table .egcl-sure,
  .egcl-bar {
    display: none !important;
  }

  .egcl-results {
    overflow: visible;
    border: 0;
  }
}

/* ---------------------------------------------------------------- the Account page: "Your classes" */
.egcl-account {
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.egcl-account li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  margin: 0;
  padding: 8px 0;
  border-top: 1px solid var(--eg-rule, #e5e2d9);
  list-style: none;
}

.egcl-account li:first-child {
  border-top: 0;
}

.egcl-account a {
  font-weight: 650;
  overflow-wrap: anywhere;
}

.egcl-account__count {
  color: var(--eg-muted, #6a7267);
  font-size: 14.5px;
}

.egcl-account__in {
  margin: 10px 0 0;
  color: var(--eg-muted, #6a7267);
  font-size: 14.5px;
  font-weight: 650;
}

/* ---------------------------------------------------------------- a student's code; a closed class */
.egcl .egcl-card__sub,
.egcl-add {
  scroll-margin-top: 96px; /* the answer to a form is shown here: under the site's own bar, not behind it */
}

.egcl .egcl-table__code {
  margin: 0 0 6px;
  color: var(--eg-ink, #1f2c1e);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

/* A student who is shut out for the moment: the names' column makes room for the note (also on a phone, where it is narrow). */
.egcl .egcl-table__who:has(.egcl-table__lock) {
  min-width: 164px;
  max-width: 200px;
}

.egcl-table__lock {
  display: block;
  max-width: 220px;
  margin-top: 2px;
  color: #8a3b12;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  white-space: normal;
}

.egcl-card__closed {
  padding: 2px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: #8a3b12;
  font-size: 13px;
  font-weight: 600;
}

.egcl-join .egcl-join__code {
  margin-top: 14px;
}

.egcl .egcl__input--code {
  flex: 0 1 130px;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

.egcl-code {
  margin: 6px 0 14px;
  color: var(--eg-ink, #1f2c1e);
  font-size: 15px;
}

.egcl-leave {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
}

.egcl-leave .egcl-sure[open] {
  flex: 1 1 100%;
}

.egcl-table__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
}

.egcl-table__acts .egcl-sure[open] {
  flex: 1 1 100%;
}

.egcl-join__account {
  margin: 12px 0 0;
  color: var(--eg-muted, #6a7267);
  font-size: 15px;
}

/* After a round of the class's word list, in the round's own result. */
.egcl-round {
  font-weight: 650;
}

.egcl-round:empty {
  display: none;
}

.egcl-round .egcl-sent__again {
  margin-left: 4px;
}

/* ---------------------------------------------------------------- a visitor's page: what classes are (0.1.1) */
.egcl--visitor .egcl__lead {
  margin-bottom: 14px;
  font-size: 19px;
}

.egcl-pitch__go {
  margin: 0 0 30px;
}

.egcl .egcl-pitch__go .egcl__btn {
  min-height: 44px;
  padding: 0 22px;
  font-size: 16px;
}

.egcl .egcl-pitch__title {
  margin: 0 0 14px;
  color: var(--eg-ink, #1f2c1e);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}

/* The steps are a path: a line leads from one number to the next. */
.egcl .egcl-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 20px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  counter-reset: egcl-step;
}

.egcl .egcl-step {
  position: relative;
  margin: 0;
  padding: 40px 0 0;
  list-style: none;
  counter-increment: egcl-step;
}

.egcl .egcl-step::before {
  content: counter(egcl-step);
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--eg-moss, #446931);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
}

.egcl .egcl-step::after {
  content: "";
  position: absolute;
  top: 13px;
  left: 38px;
  right: -10px;
  height: 2px;
  background: #d3e0c6;
}

.egcl .egcl-step:last-child::after {
  display: none;
}

.egcl-step__title {
  display: block;
  margin-bottom: 3px;
  color: var(--eg-ink, #1f2c1e);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.egcl-step__text {
  display: block;
  color: #4d564a;
  font-size: 15.5px;
  line-height: 1.5;
}

/* The example of the results table, and the line under it. */
.egcl-results--sample {
  margin: 0 0 8px;
}

.egcl-pitch__note {
  margin: 0 0 24px;
  color: var(--eg-muted, #6a7267);
  font-size: 14px;
  line-height: 1.45;
}

.egcl .egcl-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.egcl .egcl-fact {
  position: relative;
  margin: 0;
  padding: 0 0 0 28px;
  list-style: none;
  color: var(--eg-ink, #1f2c1e);
  font-size: 16px;
  line-height: 1.45;
}

.egcl .egcl-fact::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e4efd9;
}

.egcl .egcl-fact::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 6.5px;
  width: 4px;
  height: 8px;
  border: solid #2f4a22;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.egcl-pitch__join {
  padding-top: 24px;
  border-top: 1px solid var(--eg-rule, #e5e2d9);
  scroll-margin-top: 96px; /* "Join free" at the top leads here: under the site's own bar, not behind it */
}

@media (max-width: 640px) {
  .egcl .egcl-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .egcl .egcl-step {
    padding: 2px 0 20px 44px;
  }

  .egcl .egcl-step:last-child {
    padding-bottom: 0;
  }

  .egcl .egcl-step::after {
    top: 34px;
    right: auto;
    bottom: 6px;
    left: 13px;
    width: 2px;
    height: auto;
  }

  /* On a phone the example shows two assignments, so that it fits its frame. */
  .egcl-results--sample .egcl-table__task:nth-child(4),
  .egcl-results--sample td:nth-child(4) {
    display: none;
  }

  .egcl .egcl-results--sample .egcl-table__who {
    min-width: 76px;
  }

  .egcl .egcl-results--sample .egcl-table__task {
    min-width: 96px;
  }

  .egcl .egcl-facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------------------------------------------------------------- finding an exercise: the levels, and more of them (0.2.0) */
.egcl-levels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
}

.egcl-levels .egcl__label {
  flex: 0 0 112px;
  margin-right: 4px;
}

.egcl .egcl-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 44px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #c9d2c0;
  border-radius: 999px;
  background: #fff;
  color: var(--eg-ink, #1f2c1e);
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
}

.egcl .egcl-level:hover {
  border-color: var(--eg-moss, #446931);
}

.egcl .egcl-level.is-on {
  border-color: var(--eg-moss, #446931);
  background: var(--eg-moss, #446931);
  color: #fff;
}

.egcl .egcl-levels__all {
  margin-left: 8px;
  color: var(--eg-moss-dark, #2f4a22);
  font-size: 14.5px;
  font-weight: 600;
  text-underline-offset: 3px;
}

.egcl .egcl-level:focus-visible,
.egcl .egcl-levels__all:focus-visible {
  outline: 2px solid var(--eg-moss, #446931);
  outline-offset: 2px;
}

/* The level of an exercise, beside its title. */
.egcl-lvl {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e4efd9;
  color: #2f4a22;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
  vertical-align: 2px;
  white-space: nowrap;
}

.egcl-lvl--b1,
.egcl-lvl--b2 {
  background: #dfe9f7;
  color: #1f3f73;
}

.egcl-lvl--c1,
.egcl-lvl--c2 {
  background: #efe1f3;
  color: #5b2a6b;
}

.egcl-found__more {
  margin: -4px 0 14px;
}

.egcl-found__most {
  color: var(--eg-muted, #6a7267);
  font-size: 15px;
}

.egcl .egcl-found__one {
  scroll-margin-top: 96px; /* "Show more" comes back at the first new one, under the site's own bar */
}

@media (max-width: 640px) {
  .egcl-levels {
    gap: 5px;
  }

  /* Six in one row on a phone of 360 px and more. */
  .egcl .egcl-level {
    min-width: 42px;
    min-height: 40px;
    padding: 0 6px;
  }

  .egcl-levels .egcl__label {
    flex-basis: 100%;
  }

  .egcl .egcl-levels__all {
    flex-basis: 100%;
    margin: 4px 0 0;
  }
}

/* ---------------------------------------------------------------- 0.4.0: the results kept up to date */
.egcl-live {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 0 0 10px;
}

.egcl-live__auto {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  color: var(--eg-ink, #1f2c1e);
  font-size: 15px;
  line-height: 1.3;
  cursor: pointer;
}

.egcl-live__auto[hidden] {
  display: none;
}

.egcl .egcl-live__auto input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--eg-moss, #446931);
}

.egcl-live__at {
  color: var(--eg-muted, #6a7267);
  font-size: 14.5px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.egcl-live__at.is-bad {
  color: #8a2c1a;
}

/* Under the table: the codes to print, the results as a file. */
.egcl .egcl-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
  margin: 6px 0 0;
}

.egcl .egcl-tools__one,
.egcl .egcl-codes__back {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--eg-moss, #446931);
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.egcl .egcl-tools__one:hover,
.egcl .egcl-codes__back:hover {
  color: var(--eg-ink, #1f2c1e);
}

.egcl .egcl-tools__one:focus-visible,
.egcl .egcl-codes__back:focus-visible,
.egcl .egcl-live__auto input:focus-visible {
  outline: 2px solid var(--eg-ink, #1f2c1e);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------- 0.4.0: the codes, as slips to print and cut */
.egcl-codes__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  margin: 0 0 16px;
}

.egcl .egcl-codes__title {
  margin: 0;
  color: var(--eg-ink, #1f2c1e);
  font-size: 22px;
  line-height: 1.25;
}

.egcl .egcl-codes__acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin: 0;
}

.egcl .egcl-slips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  margin: 0 0 16px;
  padding: 0;
  border-top: 1px dashed #9aa394;
  border-left: 1px dashed #9aa394;
  list-style: none;
}

.egcl .egcl-slip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 14px 16px 16px;
  border-right: 1px dashed #9aa394;
  border-bottom: 1px dashed #9aa394;
  break-inside: avoid;
  page-break-inside: avoid;
}

.egcl .egcl-slip::before {
  content: none;
}

.egcl-slip__class {
  color: var(--eg-ink, #1f2c1e);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.egcl-slip__link {
  color: var(--eg-muted, #6a7267);
  font-size: 12.5px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.egcl-slip__name {
  margin-top: 10px;
  color: var(--eg-ink, #1f2c1e);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.egcl-slip__code {
  color: var(--eg-ink, #1f2c1e);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.egcl-slip__word {
  color: var(--eg-muted, #6a7267);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0;
}

.egcl-codes__account {
  margin: 0 0 12px;
  color: var(--eg-muted, #6a7267);
  font-size: 15px;
}

/* On paper: the slips only, whatever the theme has around the page, three to a row. */
@media print {
  body:has(.egcl-slips) *:not(:has(.egcl-slips)):not(.egcl-slips):not(.egcl-slips *) {
    display: none !important;
  }

  body:has(.egcl-slips),
  body:has(.egcl-slips) *:has(.egcl-slips) {
    display: block !important;
    float: none !important;
    position: static !important;
    width: auto !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
  }

  /* What the theme draws on those boxes itself (a colored line above the page) stays off the paper too. */
  body:has(.egcl-slips)::before,
  body:has(.egcl-slips)::after,
  body:has(.egcl-slips) *:has(.egcl-slips)::before,
  body:has(.egcl-slips) *:has(.egcl-slips)::after {
    content: none !important;
    display: none !important;
  }

  .egcl .egcl-slips {
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
  }

  .egcl-slip__class,
  .egcl-slip__link,
  .egcl-slip__name,
  .egcl-slip__code,
  .egcl-slip__word {
    color: #000;
  }
}

/* ---------------------------------------------------------------- 0.5.0: "Show to class" */
/* The view fills the window: nothing else of the site is on the screen everyone looks at. */
.egcl.egcl-screen {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  max-width: none;
  margin: 0;
  padding: 14px 24px 28px;
  overflow: auto;
  background: #fff;
}

.egcl .egcl-screen__top {
  flex: 0 0 auto;
  margin: 0;
}

.egcl-screen__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2vh;
  margin: auto;
  text-align: center;
}

.egcl .egcl-screen__title {
  margin: 0;
  color: var(--eg-ink, #1f2c1e);
  font-size: clamp(28px, 5vw, 64px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.egcl-screen__qr {
  display: block;
  width: min(54vh, 80vw);
  max-width: 600px;
  height: auto;
}

.egcl .egcl-screen__link {
  margin: 0;
  color: var(--eg-ink, #1f2c1e);
  font-size: clamp(17px, 2.7vw, 36px);
  line-height: 1.3;
}

.egcl-screen__tail {
  display: inline-block;
  white-space: nowrap;
}

.egcl-screen__link strong {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.egcl .egcl-screen__say {
  margin: 0;
  color: var(--eg-muted, #6a7267);
  font-size: clamp(15px, 1.8vw, 24px);
  line-height: 1.35;
}

.egcl .egcl-screen__count {
  margin: 0;
  color: var(--eg-moss, #446931);
  font-size: clamp(15px, 1.8vw, 24px);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

/* Whatever stands beside the view in the page (a bar of the site that stays on top) is put away. */
body:has(.egcl-screen) *:not(:has(.egcl-screen)):not(.egcl-screen):not(.egcl-screen *) {
  display: none !important;
}

/* In the class's box: the link has a row of its own (it is read whole); "Copy link" and "Show to class" stand under it. */
.egcl .egcl-link .egcl__input--link {
  flex: 1 1 calc(100% - 110px);
  min-width: min(100%, 260px); /* on a phone the field stands under its label, as wide as the box */
}

.egcl .egcl-link__screen {
  flex: 0 0 auto;
}

/* 0.5.0: the class's link as a QR code on each slip, beside what is written. With it a slip is wider: two to a row. */
.egcl .egcl-slips {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.egcl .egcl-slip {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.egcl-slip__text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.egcl-slip__qr {
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
}

@media print {
  /* A sheet with the code to hang up: the view as it is, on the paper. */
  .egcl.egcl-screen {
    position: static;
    padding: 0;
    overflow: visible;
  }

  .egcl-screen .egcl-screen__top {
    display: none !important;
  }

  .egcl-screen__box {
    gap: 8mm;
    margin: 20mm auto 0;
  }

  .egcl-screen__qr {
    width: 110mm;
  }

  /* Two slips to a row, each as wide as half the sheet whatever stands on it; seven rows to a sheet (A4 or Letter). */
  .egcl .egcl-slips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .egcl .egcl-slip {
    padding: 10px 14px 11px;
  }

  .egcl-slip__name {
    margin-top: 6px;
  }

  .egcl-slip__qr {
    width: 26mm;
    height: 26mm;
  }
}
