/* frappe — the TCF trainer (view "tcf", js/game/tcf.js). Classes are prefixed tc-. Phone first: one column of
   section cards, level chips that scroll sideways, full-width actions; two columns from 900 px. */

.tc-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.tc-date {
  border: 0;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.tc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--g-gap);
}
@media (min-width: 900px) {
  .tc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.tc-sec {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-width: 0;
}
.tc-sec-h {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
}
.tc-ic {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.8rem;
  background: color-mix(in srgb, var(--main) 16%, transparent);
  font-size: 1.35rem;
}
.tc-sec-t p {
  margin: 0.1rem 0 0;
}
.tc-h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.25;
}
.tc-est {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.3rem;
  max-width: 9rem;
  text-align: right;
}
.tc-est b {
  font-size: 1.15rem;
  font-weight: 600;
}
.tc-est-none {
  color: var(--g-gloss);
  font-size: 0.78rem;
}

/* level chips: one row that scrolls sideways on a phone */
.tc-levels {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -0.2rem;
  padding: 0.1rem 0.2rem;
}
.tc-levels::-webkit-scrollbar {
  display: none;
}

.tc-acts {
  display: grid;
  gap: 0.5rem;
}
@media (min-width: 520px) {
  .tc-acts {
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  }
}
.tc-acts .g-btn {
  width: 100%;
}

/* writing / speaking: the three tasks as big rows */
.tc-tasks {
  display: grid;
  gap: 0.45rem;
}
.tc-task {
  gap: 0.7rem;
  min-height: 3.6rem;
}
.tc-task-n {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--main);
  color: var(--bg);
  font-weight: 600;
}
.tc-task-t {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.25;
}
.tc-task-t b {
  font-weight: 500;
}
.tc-last,
.tc-ai {
  margin: 0;
}

/* the mock exam and the bosses */
.tc-more {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--g-gap);
}
@media (min-width: 700px) {
  .tc-more {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.tc-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  width: 100%;
  border: 0;
  font: inherit;
  text-align: left;
}
.tc-link > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
[data-theme^="royaume"] .tc-link {
  border: 2px solid var(--ts-ink);
}
