[data-workshop='methodes'] {
  --workshop-ink: #246258;
  --workshop-tint: #daeee8;
}
[data-workshop='exercices'] {
  --workshop-ink: #84531b;
  --workshop-tint: #ffebc6;
}
[data-workshop='controle'] {
  --workshop-ink: #594778;
  --workshop-tint: #ede5f4;
}

.table-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.2rem, 5vw, 5rem);
  margin: 1rem 0 1.5rem;
  padding: clamp(1.45rem, 3vw, 2.45rem) clamp(1.45rem, 4vw, 3.5rem);
  border-radius: 23px;
  background: #194f49;
  color: #fffdf2;
  box-shadow: var(--shadow);
}
.table-banner .section-kicker {
  color: #cceadd;
}
.table-banner h1 {
  color: inherit;
  font-size: clamp(2.4rem, 4.2vw, 4.05rem);
  line-height: 1;
  letter-spacing: -0.045em;
}
.table-banner p:last-child {
  max-width: 38rem;
  margin-top: 0.8rem;
  color: #e8f5eb;
}
.table-slate {
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  padding: 0.75rem clamp(1.2rem, 3vw, 2.5rem);
  min-width: 10.5rem;
  border: 3px solid #e1ab6c;
  border-radius: 12px;
  background: #203e3d;
  box-shadow: 3px 4px 0 #103a33;
  transform: rotate(2deg);
}
.table-slate:hover {
  border-color: #f3d392;
}
.table-slate > span {
  color: #ffe6a6;
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: 0.05em;
}
.table-slate small {
  color: #f3f7e8;
  font-size: 0.89rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.table-slate .counter-array {
  gap: 0.28rem;
}
.table-slate .counter-row {
  gap: 0.32rem;
}
.table-slate .counter-row i {
  width: 0.8rem;
  height: 0.8rem;
  border: 0;
  background: #f6be58;
  box-shadow: inset 0 -2px 0 #cd9434;
}
.table-resume,
.table-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
}
.table-resume {
  margin-top: 1.25rem;
}
.school-tables-link {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 0.65rem 1.1rem 0.65rem 0.7rem;
  margin: 1rem 0;
  border: 1px solid #a9cbba;
  border-radius: 14px;
  background: #eaf4ec;
}
.school-tables-link:hover {
  border-color: #588b73;
}
.school-tables-link strong,
.school-tables-link small {
  display: block;
}
.school-tables-link strong {
  font-size: 1.06rem;
}
.school-tables-link small {
  font-size: 0.91rem;
  color: #416455;
  margin-top: 0.2rem;
}
.times-mark {
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  flex: none;
  border-radius: 12px;
  background: #2c6156;
  color: #ffdc91;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.table-column,
.table-methods,
.table-layout > * {
  min-width: 0;
}
.table-work .table-layout {
  grid-template-columns: minmax(185px, 0.52fr) minmax(0, 1.5fr);
}
.table-work .section-heading,
.tables-report .section-heading {
  margin: 1.2rem 0 1.5rem;
}
.table-methods,
.table-question,
.table-setup,
.correction-panel {
  padding: clamp(1.1rem, 2.5vw, 2rem);
}
.table-methods h2,
.table-setup h2,
.table-history h2 {
  margin: 0;
}
.table-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.85rem 0 1.25rem;
}
.table-chip,
.table-tabs button,
.fact-tile {
  border: 1px solid #c7d8c9;
  border-radius: 12px;
  background: #fffefa;
  font-weight: 600;
}
.table-chip {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.45rem 0.7rem;
}
.table-chip[aria-pressed='true'],
.table-tabs button[aria-pressed='true'] {
  background: #295f52;
  color: white;
  border-color: #295f52;
}
.table-chip:hover,
.fact-tile:hover,
.table-tabs button:hover {
  border-color: #468468;
}
.fact-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}
.fact-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 0.4rem 0 1.4rem;
}
.fact-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.38rem 0.12rem;
  background: #f6f5e9;
}
.fact-tile span {
  font-size: 0.9rem;
  color: #506458;
}
.fact-tile strong {
  font-size: 1.2rem;
}
.fact-tile[aria-pressed='true'] {
  background: #fff0c9;
  border: 2px solid #a27427;
  padding: calc(0.38rem - 1px) 0;
}
.table-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.7rem 0;
}
.table-tabs button {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.45rem 0.75rem;
  font-size: 0.96rem;
}
.method-demo {
  display: grid;
  grid-template-columns: minmax(9rem, 0.72fr) minmax(0, 1.28fr);
  gap: 1.05rem;
  align-items: center;
  margin: 1rem 0 0;
}
.counter-board {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.6rem;
  padding: 0.85rem 0.4rem;
  min-height: 9.2rem;
  border-radius: 16px;
  background: #edf3e9;
  border: 1px solid #d4e2d2;
}
.counter-board > span {
  color: #3b6152;
  font-size: 0.91rem;
  text-align: center;
}
.counter-array {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: fit-content;
  max-width: 100%;
}
.counter-row {
  display: grid;
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  gap: 3px;
}
.counter-row i {
  display: block;
  width: clamp(9px, 1.45vw, 16px);
  height: clamp(9px, 1.45vw, 16px);
  border: 1px solid #34745f;
  border-radius: 50%;
  background: #5a9979;
  box-shadow: inset 0 -2px 0 #37775e;
}
.counter-row.other-group i {
  background: #edb559;
  border-color: #a77530;
  box-shadow: inset 0 -2px 0 #c08a39;
}
.method-copy h3,
.table-setup h3 {
  margin: 0 0 0.35rem;
}
.math-line {
  margin: 0.5rem 0;
  font-weight: 700;
  color: #285d50;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.method-end {
  margin-top: 1.15rem;
}
.recall-card {
  padding: 1rem;
  border-radius: 14px;
  background: #fbf0d1;
}
.recall-card p {
  margin: 0.35rem 0 0.7rem;
}
.setup-note {
  color: var(--muted);
  margin: 0.1rem 0 1.15rem;
}
.replace-note {
  margin: 0 0 0.8rem;
}
.table-round-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  color: #496352;
}
.table-round-line strong {
  font-size: 0.96rem;
  color: #315e53;
}
.table-question .step-track {
  margin: 0.65rem 0 1.3rem;
}
.table-question .step-track i {
  flex: 1;
  border-radius: 8px;
  height: 7px;
  background: #e4e8dc;
}
.table-question .step-track i.current {
  background: #dfb552;
}
.table-question .step-track i.done {
  background: #5f936f;
}
.question-type {
  color: #527366;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.table-question .table-prompt {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0.35rem 0;
  font-size: clamp(2.1rem, 4vw, 3.45rem);
  letter-spacing: -0.04em;
  line-height: 1.12;
}
.table-question .table-prompt.story {
  font-size: clamp(1.24rem, 2.2vw, 1.7rem);
  letter-spacing: 0;
  line-height: 1.42;
}
.table-prompt:focus {
  outline: 0;
}
.listen-prompt {
  margin: 0.8rem 0;
}
.answer-bar {
  border-top: 1px solid var(--line);
  margin-top: 0.45rem;
  padding-top: 0.3rem;
}
.table-answer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.4rem;
}
.table-answer-row input {
  padding: 0.7rem 0.9rem;
  border: 1px solid #a9bfad;
  border-radius: 11px;
  width: 9rem;
  min-height: 46px;
  font-size: 1.15rem;
  background: white;
}
.table-oral {
  display: grid;
  gap: 0.65rem;
  justify-items: start;
}
.table-oral .heard-number strong {
  font-size: 1.5rem;
  color: var(--green);
}
.table-validation {
  color: #8c422f;
  margin-top: 0.35rem;
}
.table-help {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
  padding-top: 0.35rem;
}
.hint-content {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem;
  background: #f2f4e9;
  border-radius: 13px;
}
.hint-content p {
  margin: 0.25rem 0;
}
.hint-content .counter-array {
  flex: none;
}
.story-groups {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  margin: 0.25rem 0 0.8rem;
  border-radius: 14px;
  background: #eff4e9;
}
.story-groups figcaption {
  color: #456355;
  font-size: 0.94rem;
}
.answer-feedback {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin: 0.55rem 0;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
}
.answer-feedback .icon {
  flex: none;
  align-self: center;
}
.encouragement-listen {
  display: inline-grid;
  place-items: center;
  flex: none;
  align-self: center;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid #abc7ad;
  border-radius: 50%;
  color: #285f46;
  background: #fffefa;
}
.encouragement-listen:hover {
  background: #f4f9ef;
}
.practice-verdict {
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  font-weight: 600;
  margin-top: 0.35rem;
}
.answer-feedback.settled {
  background: #e4f1df;
  color: #245e3d;
}
.answer-feedback.try-again {
  background: #fff0d5;
  color: #784d19;
}
.table-next,
.change-round {
  margin-top: 0.65rem;
}
.table-score {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #eaf4e9;
  border: 1px solid #bdd6c4;
  border-radius: 18px;
  padding: 1.1rem 1.35rem;
}
.score-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: #ffe1a1;
  color: #755119;
}
.table-score strong {
  font-size: 2rem;
  line-height: 1.1;
}
.report-help {
  margin-top: 0.55rem;
  color: var(--muted);
}
.report-actions {
  margin: 1rem 0 1.25rem;
}
.correction-list,
.table-history-list {
  margin: 0.45rem 0;
  padding: 0;
  list-style: none;
}
.correction-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid #e0e6da;
}
.correction-list li:last-child,
.table-history-list li:last-child {
  border-bottom: 0;
}
.correction-list p,
.correction-list small {
  color: #506759;
}
.correction-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
}
.correction-icon.right {
  background: #dfeddc;
  color: #276346;
}
.correction-icon.review {
  background: #fce8c6;
  color: #7d551c;
}
.table-history {
  margin-top: 1.2rem;
}
.table-history h2 {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.65rem;
}
.table-history-list li {
  border-bottom: 1px solid var(--line);
}
.table-history-list a {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.6rem 0.2rem;
}
.table-history-list a:hover strong {
  text-decoration: underline;
}
.table-history-list small {
  display: block;
  color: var(--muted);
  margin-top: 0.2rem;
}
@media (max-width: 800px) {
  .table-work .table-layout {
    grid-template-columns: minmax(135px, 0.4fr) minmax(0, 1.5fr);
    gap: 0.8rem;
  }
  .method-demo {
    grid-template-columns: 1fr;
  }
  .counter-board {
    min-height: 6rem;
  }
}
@media (max-width: 700px) {
  .table-work .table-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .table-banner {
    padding: 1.1rem;
    gap: 0.8rem;
  }
  .table-banner h1 {
    font-size: clamp(1.88rem, 7.5vw, 3rem);
  }
  .table-slate {
    min-width: 0;
    padding: 0.55rem;
    gap: 0.3rem;
  }
  .table-slate > span {
    font-size: 1.15rem;
  }
  .table-slate .counter-row i {
    width: 0.56rem;
    height: 0.56rem;
  }
  .table-slate small {
    font-size: 0.78rem;
  }
  .table-banner .section-kicker {
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.85rem;
  }
  .counter-row i {
    width: 13px;
    height: 13px;
  }
  .fact-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .hint-content {
    flex-wrap: wrap;
  }
}
@media (max-width: 390px) {
  .table-banner {
    grid-template-columns: minmax(0, 1fr);
  }
  .table-slate {
    display: none;
  }
}
