/* Page chrome. Font follows the Aa reading settings. */
@font-face {
  font-family: OpenDyslexic;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/opendyslexic@5.2.8/latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: OpenDyslexic;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/opendyslexic@5.2.8/latin-700-normal.woff2") format("woff2");
}

:root {
  --font-sans: "Fredoka", Nunito, ui-rounded, system-ui, sans-serif;
  --font-display: "Fredoka", Nunito, ui-rounded, system-ui, sans-serif;
  --font-read: "Fredoka", Nunito, ui-rounded, system-ui, sans-serif;
  --font-brand: "Fredoka", Nunito, ui-rounded, system-ui, sans-serif;
  --read-scale: 1;
}

html[data-font="nunito"] {
  --font-sans: Nunito, ui-rounded, system-ui, sans-serif;
  --font-display: Nunito, ui-rounded, system-ui, sans-serif;
}
html[data-font="lexend"] {
  --font-sans: Lexend, ui-sans-serif, system-ui, sans-serif;
  --font-display: Lexend, ui-sans-serif, system-ui, sans-serif;
}
html[data-font="atkinson"] {
  --font-sans: "Atkinson Hyperlegible", Verdana, sans-serif;
  --font-display: "Atkinson Hyperlegible", Verdana, sans-serif;
}
html[data-font="opendyslexic"] {
  --font-sans: OpenDyslexic, Verdana, sans-serif;
  --font-display: OpenDyslexic, Verdana, sans-serif;
}
html[data-font="verdana"] {
  --font-sans: Verdana, Geneva, sans-serif;
  --font-display: Verdana, Geneva, sans-serif;
}

html,
body,
button,
input,
textarea,
select {
  font-family: var(--font-sans);
}

.study {
  font-family: var(--font-sans);
  letter-spacing: 0;
  word-spacing: 0;
}

.ws-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(74, 55, 40, 0.08);
  background: rgba(247, 240, 234, 0.9);
  backdrop-filter: blur(12px);
  color: #4a3728;
}

.ws-bar-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.5rem 0.75rem;
}

.ws-menu-wrap,
.ws-level-wrap,
.ws-read-wrap {
  position: relative;
}

.ws-icon-btn,
.ws-pill,
.ws-teacher,
.ws-burger {
  font-family: Fredoka, Nunito, ui-rounded, system-ui, sans-serif;
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(74, 55, 40, 0.15);
  background: #fffaf6;
  color: #4a3728;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0 0.8rem;
  cursor: pointer;
}

.ws-icon-btn,
.ws-burger {
  width: 2.75rem;
  padding: 0;
}

.ws-icon-btn:hover,
.ws-pill:hover,
.ws-burger:hover {
  border-color: #ee6c5a;
}

.ws-pill[aria-current="page"],
.ws-menu-link.is-here {
  border-color: #ee6c5a;
  box-shadow: 0 0 0 2px rgba(238, 108, 90, 0.35);
}

.ws-teacher {
  border: 0;
  background: #ee6c5a;
  color: #fff7f3;
}

.ws-teacher:hover {
  background: #e05544;
}

.ws-burger-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ws-burger-icon {
  width: 1.15rem;
  height: 1.15rem;
}

.ws-level-now {
  margin-left: 0.35rem;
  color: #7a5c4f;
  font-weight: 600;
}

.ws-level-opt.is-on {
  border-color: #ee6c5a;
  background: #fff;
}

.ws-brand {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 0.6rem;
  color: #4a3728;
  text-decoration: none;
}

.ws-logo {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.ws-brand-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.15;
}

.ws-brand-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: #ee6c5a;
  letter-spacing: -0.02em;
}

.ws-brand-app {
  font-size: 0.82rem;
  font-weight: 600;
}

.ws-brand-app-mobile {
  display: none;
  margin: 0;
  padding: 0 0.85rem 0.45rem;
}

.ws-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.4rem;
}

.ws-how {
  display: none;
}

.ws-menu-pop,
.ws-level-pop {
  position: absolute;
  z-index: 40;
  top: calc(100% + 0.4rem);
  left: 0;
  width: min(22.5rem, calc(100vw - 1rem));
  max-height: min(78dvh, 42rem);
  overflow: auto;
  border-radius: 20px;
  border: 1px solid rgba(74, 55, 40, 0.1);
  background: #fffaf6;
  padding: 0.45rem 0.7rem 0.7rem;
  box-shadow: 0 16px 40px -24px rgba(74, 55, 40, 0.6);
}

.ws-level-pop {
  left: auto;
  right: 0;
  width: 16rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ws-menu-pop[hidden],
.ws-level-pop[hidden],
.ws-read[hidden] {
  display: none;
}

.ws-read {
  position: absolute;
  z-index: 40;
  top: calc(100% + 0.4rem);
  right: 0;
  width: min(22rem, calc(100vw - 1rem));
  max-height: min(78dvh, 36rem);
  overflow: auto;
  border-radius: 20px;
  border: 1px solid rgba(74, 55, 40, 0.1);
  background: #fffaf6;
  padding: 0.9rem 0.9rem 1rem;
  box-shadow: 0 16px 40px -24px rgba(74, 55, 40, 0.6);
  color: #4a3728;
  text-align: left;
}

.ws-read-title {
  margin: 0 0 0.2rem;
  font-size: 1.15rem;
  font-weight: 650;
}

.ws-read-label,
.ws-read-kicker {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #7a5c4f;
}

.ws-read-now {
  color: #4a3728;
}

.ws-read-range {
  width: 100%;
  accent-color: #ee6c5a;
}

.ws-read-fonts {
  display: grid;
  gap: 0.4rem;
}

.ws-read-font {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  width: 100%;
  min-height: 3.1rem;
  padding: 0.45rem 0.7rem;
  border-radius: 14px;
  border: 1px solid rgba(74, 55, 40, 0.12);
  background: #fff;
  color: #4a3728;
  text-align: left;
  cursor: pointer;
}

.ws-read-font b {
  font-size: 1.05rem;
  font-weight: 700;
}

.ws-read-font span {
  font-family: Fredoka, Nunito, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: #7a5c4f;
}

.ws-read-font.is-on {
  border-color: #ee6c5a;
  box-shadow: 0 0 0 2px rgba(238, 108, 90, 0.28);
}

.ws-read-reset {
  margin-top: 0.75rem;
  min-height: 2.3rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(74, 55, 40, 0.15);
  background: #fff;
  color: #4a3728;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.study-face {
  overflow: auto;
}

.study-mid,
.study-word,
.study-back-word,
.study-sent,
.study-sent-es,
.study-hint,
.study-verb-forms,
.study-verb-forms p,
.topic-box,
.topic-box p,
.home-page > ul.grid > li > button,
.home-page > ul.grid > li > button span,
.g-prompt,
.g-tile,
.g-choice strong,
.g-choice-copy > span,
.g-card,
.g-answers button,
.g-walker {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.study-word {
  font-size: calc(1.45rem * var(--read-scale, 1)) !important;
}

.study-back-word {
  font-size: calc(1.3rem * var(--read-scale, 1)) !important;
}

.study-sent,
.study-sent-es {
  font-size: calc(0.92rem * var(--read-scale, 1)) !important;
  max-width: 100% !important;
}

.study-hint,
.study-verb-forms {
  font-size: calc(0.78rem * var(--read-scale, 1));
}

.topic-box > p.mt-2,
.home-page > ul.grid > li > button > span:nth-child(2) {
  font-size: calc(1.05rem * var(--read-scale, 1)) !important;
}

.ws-menu-link {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.7rem;
  border-bottom: 1px solid rgba(74, 55, 40, 0.1);
  color: #4a3728;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.ws-menu-link .ws-tile-icon,
.ws-group summary .ws-tile-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.ws-menu-grid .ws-menu-link {
  border: 0;
  border-radius: 12px;
  min-height: 2.75rem;
  padding: 0.2rem 0.15rem;
  font-size: 1rem;
  background: transparent;
}

.ws-menu-label {
  margin: 0.7rem 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #7a5c4f;
}

.ws-menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.1rem;
  padding-bottom: 0.25rem;
}

.ws-group {
  margin-top: 0.15rem;
  border-top: 1px solid rgba(74, 55, 40, 0.1);
}

.ws-group summary {
  cursor: pointer;
  list-style: none;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1rem;
  font-weight: 600;
  color: #4a3728;
}

.ws-group summary span {
  flex: 1;
}

.ws-group summary::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  margin-right: 0.2rem;
  flex: none;
}

.ws-group[open] summary::after {
  transform: rotate(-135deg) translateY(-1px);
}

.ws-group summary::-webkit-details-marker {
  display: none;
}

.ws-tile {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
  min-height: 2.65rem;
  padding: 0.3rem 0.2rem;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: #4a3728;
  text-align: left;
  text-decoration: none;
  font-family: Fredoka, Nunito, ui-rounded, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
}

.ws-tile-icon {
  width: 24px;
  height: 24px;
  flex: none;
}

.ws-tile:hover,
.ws-tile.is-here {
  border-color: #ee6c5a;
}

.ws-tile.is-here {
  box-shadow: 0 0 0 2px rgba(238, 108, 90, 0.35);
}

.ws-footer {
  margin-top: auto;
  border-top: 2px solid #ff8fa3;
  background: rgba(255, 255, 255, 0.65);
  color: #555;
  backdrop-filter: blur(12px);
  padding: 1.25rem 1.5rem;
}

.ws-footer,
.ws-footer button,
.ws-footer a,
.ws-footer span,
.ws-footer p {
  font-family: Poppins, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 17.5px;
  color: #555;
}

.ws-foot-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
}

.ws-foot-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
}

.ws-foot-center {
  align-items: center;
  text-align: center;
}

.ws-foot-end {
  align-items: flex-end;
  text-align: right;
}

.ws-foot-link,
.ws-hub,
.ws-heart {
  font: inherit;
  color: #555;
  background: transparent;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
}

.ws-footer .ws-hub {
  color: #ee6c5a;
  font-weight: 500;
}

.ws-footer .ws-foot-link:hover,
.ws-footer .ws-heart:hover,
.ws-footer .ws-hub:hover {
  color: #ff8fa3;
}

.ws-footer .ws-slogan,
.ws-footer .ws-slogan sup {
  font-family: Caveat, cursive;
  font-size: 1.5625rem;
  font-weight: 700;
  color: #3d8b7a;
  line-height: normal;
}

.ws-footer .ws-legal {
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.5;
  color: #555;
}

.ws-made,
.ws-copy,
.ws-slogan,
.ws-legal {
  margin: 0;
}

.ws-slogan {
  font-family: Caveat, cursive;
  font-size: 1.5625rem;
  font-weight: 700;
  color: #3d8b7a;
  line-height: normal;
  white-space: nowrap;
}

.ws-slogan sup {
  font-family: Caveat, cursive;
  font-size: 0.7em;
  font-weight: 700;
  color: #3d8b7a;
  line-height: 0;
}

.ws-legal {
  max-width: none;
  margin: 1rem 0 0;
  padding: 0.75rem 0 0.25rem;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.5;
  color: #555;
}

.study-verb-forms {
  z-index: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  margin-top: 0.2rem;
}

.study-verb-forms p {
  margin: 0;
  text-align: center;
}

.study-verb-k {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #7a5c4f;
  line-height: 1.15;
}

.study-verb-forms strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #3a2e24;
  line-height: 1.2;
}

.study-verb-ex {
  display: block;
  font-size: 0.68rem;
  color: #5c4638;
  line-height: 1.25;
  text-wrap: pretty;
}

.study-back:has(.study-verb-forms) .study-sent {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  line-height: 1.3;
}

.study-back:has(.study-verb-forms) .study-sent-es {
  margin-top: 0.2rem;
  font-size: 0.75rem;
}

.study-back:has(.study-verb-forms) .study-back-word {
  font-size: 1.2rem;
}

.study-back:has(.study-verb-forms) .study-hint {
  padding-top: 0.2rem;
  font-size: 0.64rem;
}

.ws-level-opt {
  font: inherit;
  font-weight: 600;
  min-height: 2.5rem;
  border-radius: 999px;
  border: 2px solid rgba(74, 55, 40, 0.12);
  background: #f7f0ea;
  color: #4a3728;
  padding: 0 0.8rem;
  cursor: pointer;
}

@media (min-width: 640px) {
  .ws-how {
    display: inline-flex;
  }
  .ws-brand-app-mobile {
    display: none !important;
  }
}

@media (max-width: 639px) {
  .ws-brand-app {
    display: none;
  }
  .ws-brand-app-mobile {
    display: block;
  }
  .ws-how {
    display: none;
  }
  .ws-foot-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.85rem;
  }
  .ws-foot-col,
  .ws-foot-center,
  .ws-foot-end {
    align-items: center;
    text-align: center;
  }
}

.topic-page ul.grid > li,
.home-page > ul.grid > li {
  display: flex;
}

.topic-box,
button.topic-box,
.home-page > ul.grid > li > button {
  height: auto;
  min-height: 13rem;
  max-height: none;
  overflow: visible;
  flex: 1 1 auto;
  cursor: pointer;
}

button.topic-box {
  width: 100%;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

button.topic-box:disabled {
  cursor: default;
}

.study-actions {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
}

.study-more {
  justify-self: end;
  display: flex;
  gap: 0.5rem;
}

.topic-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding-top: 0.55rem;
}

.card-ico,
.study-more-btn {
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid #e4d6c9;
  background: #fff;
  color: #5c4638;
  box-shadow: none;
  cursor: pointer;
}

.card-ico svg,
.study-more-btn svg {
  width: 1.15rem;
  height: 1.15rem;
}

.card-ico:disabled {
  opacity: 0.4;
  cursor: default;
}

.study-more-btn {
  width: 3.25rem;
  height: 3.25rem;
}

.study-more-btn svg {
  width: 1.45rem;
  height: 1.45rem;
}

.study-more-btn[aria-label="Games"] svg {
  width: 2.05rem;
  height: 2.05rem;
}

.home-tools {
  align-items: flex-start;
}

.home-search {
  order: 2;
  flex: none;
  width: min(13.5rem, 46vw);
  margin-left: auto;
}

.home-search input {
  min-height: 2.35rem !important;
  height: 2.35rem;
  border-radius: 999px !important;
  font-size: 0.95rem !important;
  padding-left: 0.85rem !important;
  padding-right: 0.85rem !important;
}

.ws-lock {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(12, 12, 14, 0.72);
  color: #f3eee4;
}

.ws-lock form {
  width: min(22rem, 100%);
  display: grid;
  gap: 0.9rem;
  padding: 1.4rem 1.25rem 1.25rem;
  border-radius: 1.25rem;
  background: #141416;
  border: 1px solid rgba(243, 238, 228, 0.14);
}

.ws-lock img {
  margin: 0 auto;
  display: block;
}

.ws-lock p {
  margin: 0;
  text-align: center;
}

.ws-lock label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.ws-lock input {
  min-height: 2.75rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(243, 238, 228, 0.2);
  background: #0c0c0e;
  color: #f3eee4;
  padding: 0 0.75rem;
  font: inherit;
}

.ws-lock [role="status"] {
  color: #ee6c5a;
  font-size: 0.95rem;
  min-height: 1.2rem;
}

.ws-lock button {
  min-height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: #3d8b7a;
  color: #f7f0ea;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.topic-actions,
.set-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding-top: 0.4rem;
}

.set-actions {
  margin-top: 1.15rem;
  padding-top: 0;
  gap: 0.5rem;
}

.topic-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  min-height: 1.7rem;
  padding: 0.08rem 0.62rem 0.1rem;
  border-radius: 999px;
  border: 1px solid #e4d6c9;
  background: transparent;
  color: #7a6456;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
}

.topic-act-study {
  background: #f6f0ea;
  color: #5c4638;
}

.set-actions .topic-act {
  min-height: 2.15rem;
  padding: 0.15rem 0.85rem;
  font-size: 0.9rem;
  flex: 1;
}

.topic-act-icon {
  width: 0.82rem;
  height: 0.82rem;
}

.set-actions .topic-act-icon {
  width: 0.95rem;
  height: 0.95rem;
}

.topic-act:disabled {
  opacity: 0.4;
}

.verb-quiz-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.85rem;
}

.verb-quiz-tab {
  border: 1px solid #e4d6c9;
  background: transparent;
  color: #7a6456;
  border-radius: 999px;
  min-height: 1.85rem;
  padding: 0.12rem 0.7rem;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
}

.verb-quiz-tab.is-on {
  background: #5c4638;
  border-color: #5c4638;
  color: #fffaf6;
}

html[data-copy="hold"],
html[data-copy="hold"] body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

html[data-copy="hold"] input,
html[data-copy="hold"] textarea,
html[data-copy="hold"] select,
html[data-copy="hold"] [contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

.n3-noise,
.n3-mark {
  opacity: 0;
  user-select: none;
  pointer-events: none;
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  font-size: 0 !important;
  line-height: 0 !important;
}

.n3-print-sheet {
  display: none;
}

.n3-warn {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(36, 48, 67, 0.4);
}

.n3-warn-card {
  max-width: 36rem;
  padding: 1.25rem 1.35rem;
  border-radius: 18px;
  background: #fffaf6;
  color: #4a3728;
  border: 1px solid #e4d6c9;
}

.n3-warn-card p {
  margin: 0 0 0.7rem;
}

@media print {
  body * {
    visibility: hidden !important;
  }
  .n3-print-sheet,
  .n3-print-sheet * {
    visibility: visible !important;
  }
  .n3-print-sheet {
    display: block !important;
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    background: #fff;
    color: #000;
  }
  .n3-warn {
    display: none !important;
  }
}
