/*
 * The paid course's own pages (curso.html, the four test pages, falsos-amigos.html). Loaded AFTER the site theme (or
 * standalone.css) and course.css, which carries the shared pieces (answer options, meters, timers, checklists, forms,
 * tables). Only the course pages load this file, so the landing page and the free check stay light.
 * Colours are theme tokens only; sizes in rem; motion runs once and stops under prefers-reduced-motion.
 */
/* ======================================================================================================
 * THE COURSE (curso.html, the four test pages, falsos-amigos.html). Same tokens and devices as the landing:
 * the highlighter (the right answer fills, the sentence that proves it lights up), the drawn tick, the white sheet.
 * Motion idea: the one authored moment is marking a set. Every right option fills from the left like the landing
 * sample and its proof sentence lights up in the French text, one item after another (stagger by item, once).
 * Listening adds the "heard once" track that drains while the transcript is on screen, then folds the transcript away.
 * Nothing loops; under reduced motion nothing moves and every state still shows.
 * ==================================================================================================== */
.tc-course { --tc-measure: 46rem; }

/* course tabs: one row, scrolls sideways on phones (the page never does) */
.tc-tabs { background: var(--page); border-bottom: 1px solid var(--line); }
.tc-tabs ul { display: flex; gap: 0.15rem; list-style: none; margin: 0; padding: 4px 0 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tc-tabs ul::-webkit-scrollbar { display: none; }
.tc-tabs a { position: relative; display: inline-flex; align-items: center; min-height: 3rem; padding: 0 0.85rem; white-space: nowrap; font-weight: 700; font-size: 0.95rem; color: var(--ink-2); text-decoration: none; border-radius: 10px 10px 0 0; }
.tc-tabs li:first-child a { padding-left: 0.2rem; }
.tc-tabs a:hover { color: var(--ink); }
.tc-tabs a[aria-current="page"] { color: var(--ink); }
.tc-tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); transform-origin: left center; animation: tc-under 420ms var(--ease) both; }
.tc-tabs li:first-child a[aria-current="page"]::after { left: 0.2rem; }
.tc-tabs a:focus-visible { outline-offset: -3px; }
@keyframes tc-under { from { transform: scaleX(0); } }
.coursenav a.is-current { color: var(--accent-deep); }

/* page head: answer first */
.tc-head { position: relative; isolation: isolate; padding-block: clamp(1.75rem, 5vw, 4rem) clamp(1.25rem, 3vw, 2.25rem); }
.tc-course .btn { white-space: normal; text-align: center; height: auto; padding-block: 0.6rem; }
/* course home: the exam map sits in the hero as a white sheet; beside the headline on wide screens */
.tc-head-split { padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.tc-head-map { margin-top: 2.5rem; padding: clamp(1.1rem, 3vw, 1.75rem); border-radius: 24px; background: var(--page); box-shadow: var(--tc-shadow), inset 0 0 0 1px var(--line); scroll-margin-top: 90px; }
.tc-head-map > .small { margin-top: 0.4rem; }
.tc-map-title { font-size: clamp(1.3rem, 3vw, 1.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.tc-head-map .tc-map { margin-top: 1.1rem; }
.tc-head-map .tc-map-row:last-child { border-bottom: 0; padding-bottom: 0.2rem; }
@media (min-width: 1100px) {
  .tc-head-split .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(2.5rem, 4vw, 4rem); align-items: start; }
  .tc-head-split .tc-h1 { font-size: clamp(2.6rem, 4vw, 3.6rem); }
  .tc-head-map { margin-top: 0.4rem; }
}
.tc-h1 { font-weight: 800; letter-spacing: -0.035em; line-height: 1.03; text-wrap: balance; font-size: clamp(2.05rem, 7.2vw, 4rem); max-width: 17em; }
.tc-lead { max-width: 42rem; color: var(--ink-2); }
.tc-lead .src { color: var(--ink-2); }
.tc-saved { margin-top: 0.9rem; display: flex; align-items: center; gap: 0.5rem; }
.tc-saved::before { content: ""; flex: none; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--good); }
.tc-ctas { margin-top: 1.6rem; }
.tc-h2 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; font-size: clamp(1.6rem, 4.2vw, 2.4rem); text-wrap: balance; }
.tc-noaudio { max-width: var(--tc-measure); margin: 0 0 1.25rem; padding: 0.9rem 1.1rem; border-radius: 16px; background: var(--wash); box-shadow: inset 0 0 0 1px var(--line); font-size: 0.97rem; }

/* the set switcher: free set filled, locked sets outlined with a drawn padlock */
.tc-setnav ol { display: flex; gap: 0.55rem; list-style: none; margin: 0 0 0.5rem; padding: 4px 4px 6px; overflow-x: auto; scrollbar-width: none; }
.tc-setnav ol::-webkit-scrollbar { display: none; }
.tc-setnav a { display: inline-flex; flex-direction: column; justify-content: center; min-height: 3.4rem; min-width: 7.5rem; padding: 0.35rem 1rem; border-radius: 14px; text-decoration: none; color: var(--ink); background: var(--page); box-shadow: inset 0 0 0 1.5px var(--line-2); transition: box-shadow 150ms var(--ease), transform 150ms var(--ease); }
.tc-setnav a:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.tc-setnav a span { font-weight: 800; letter-spacing: -0.01em; }
.tc-setnav a small { position: relative; font-size: 0.82rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.tc-setnav a.is-free { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.tc-setnav a.is-free small { color: var(--accent-deep); }
.tc-setnav a.is-locked small { padding-left: 1rem; }
.tc-setnav a.is-locked small::before, .tc-lock-tag::before { content: ""; position: absolute; left: 0; top: 50%; width: 0.62rem; height: 0.5rem; margin-top: -0.12rem; border-radius: 2px; background: currentColor; }
.tc-setnav a.is-locked small::after, .tc-lock-tag::after { content: ""; position: absolute; left: 0.12rem; top: 50%; width: 0.38rem; height: 0.42rem; margin-top: -0.5rem; border: 2px solid currentColor; border-bottom: 0; border-radius: 0.3rem 0.3rem 0 0; box-sizing: border-box; }

/* a practice set */
.tc-set { padding-block: clamp(1.25rem, 3vw, 2rem) clamp(2.5rem, 6vw, 4rem); scroll-margin-top: 120px; }
.tc-set + .tc-set { border-top: 1px solid var(--line); }
.tc-set-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.3rem 1.5rem; max-width: var(--tc-measure); }
.tc-set-meta { font-weight: 700; color: var(--ink-2); }
.tc-exposure, .tc-record { max-width: var(--tc-measure); margin-top: 0.8rem; }
.tc-record { padding: 0.9rem 1.1rem; border-radius: 16px; background: var(--accent-soft); }
.tc-noscript { margin-top: 1rem; max-width: var(--tc-measure); }
.tc-setbar { max-width: var(--tc-measure); margin-top: 1.25rem; }
.tc-setbar.is-start { padding: clamp(1rem, 3vw, 1.4rem); border-radius: 22px; background: var(--wash); box-shadow: inset 0 0 0 1px var(--line); }
.tc-setbar.is-start fieldset.mcq { margin-top: 0; }
.tc-setbar.is-start .actions { margin-bottom: 0; }
.tc-setbar.is-run { position: sticky; top: 68px; z-index: 5; margin-inline: -16px; padding: 0.55rem 16px; background: var(--page); box-shadow: 0 1px 0 var(--line); max-width: none; }
.tc-setbar-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; max-width: var(--tc-measure); }
.tc-setbar.tc-paper .tc-setbar-in { justify-content: flex-start; }
.tc-setbar.tc-paper { padding: 1rem 1.2rem; border-radius: 18px; background: var(--wash); box-shadow: inset 0 0 0 1px var(--line); }
.tc-setbar.tc-paper.is-run { position: sticky; top: 68px; border-radius: 0 0 18px 18px; }
.tc-setbar.tc-paper .small { margin-top: 0.5rem; }
.tc-count { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (min-width: 720px) { .tc-setbar.is-run:not(.tc-paper) { margin-inline: -32px; padding-inline: 32px; } }

/* one question */
.tc-items { max-width: var(--tc-measure); }
.tc-q { padding-block: clamp(1.6rem, 4vw, 2.4rem); border-bottom: 1px solid var(--line); scroll-margin-top: 140px; }
.tc-q:first-child { padding-top: 1.25rem; }
.tc-q > * + * { margin-top: 1rem; }
.tc-q-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; }
.tc-q-n { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; }
.tc-q-doc { display: inline-flex; align-items: center; min-height: 1.75rem; padding: 0 0.7rem; border-radius: 999px; background: var(--wash); box-shadow: inset 0 0 0 1px var(--line); font-size: 0.85rem; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.tc-doc { padding: 1.05rem 1.2rem; border-radius: 18px; background: var(--wash); box-shadow: inset 0 0 0 1px var(--line); font-size: 1.04rem; line-height: 1.62; overflow-wrap: break-word; }
.tc-doc p + p { margin-top: 0.55rem; }
.tc-who { font-weight: 800; margin-right: 0.15rem; }
.tc-opts.mcq { margin-top: 1.25rem; }
.tc-opts.mcq legend { margin-bottom: 0.8rem; }
mark.tc-proof { color: inherit; background-color: transparent; background-image: linear-gradient(var(--tc-hl), var(--tc-hl)); background-repeat: no-repeat; background-size: 0% 100%; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0; border-radius: 2px; transition: background-size 700ms 250ms var(--ease); }
.tc-q.is-checked mark.tc-proof, .tc-q:has(.tc-ans[open]) mark.tc-proof { background-size: 100% 100%; }
.tc-opt::before { content: ""; position: absolute; inset: 2px; border-radius: calc(1rem - 2px); background: var(--good-soft); transform: scaleX(0); transform-origin: left center; transition: transform 550ms var(--ease); pointer-events: none; }
.tc-opt label { position: relative; z-index: 1; }
.tc-q.is-checked .tc-opt { cursor: default; }
.tc-q.is-checked .tc-opt input[type="radio"] { cursor: default; }
.tc-q.is-checked .tc-opt.is-key, .tc-q:has(.tc-ans[open]) .tc-opt.is-key { box-shadow: inset 0 0 0 2px var(--good); background: var(--page); }
.tc-q.is-checked .tc-opt.is-key::before, .tc-q:has(.tc-ans[open]) .tc-opt.is-key::before { transform: scaleX(1); }
.tc-q.is-checked .tc-opt.is-key b, .tc-q:has(.tc-ans[open]) .tc-opt.is-key b { background: var(--good); color: var(--page); }
.tc-q.is-checked .tc-opt.is-key label, .tc-q:has(.tc-ans[open]) .tc-opt.is-key label { font-weight: 700; }
.tc-q.is-checked .tc-opt.is-chosen:not(.is-key) { box-shadow: inset 0 0 0 2px var(--bad); background: var(--bad-soft); }
.tc-q.is-checked .tc-opt.is-chosen:not(.is-key) b { background: var(--bad); color: var(--page); }
.tc-q.is-checked .tc-opt:not(.is-key):not(.is-chosen) { opacity: 0.72; }
/* the marking moment: one item after another, once */
.tc-q.is-checked:nth-child(2) .tc-opt::before, .tc-q.is-checked:nth-child(2) mark.tc-proof { transition-delay: 120ms; }
.tc-q.is-checked:nth-child(3) .tc-opt::before, .tc-q.is-checked:nth-child(3) mark.tc-proof { transition-delay: 200ms; }
.tc-q.is-checked:nth-child(n+4) .tc-opt::before, .tc-q.is-checked:nth-child(n+4) mark.tc-proof { transition-delay: 280ms; }
.tc-q.no-anim .tc-opt::before, .tc-q.no-anim mark.tc-proof { transition: none; }
.tc-q-res { display: flex; align-items: center; gap: 0.55rem; font-weight: 800; }
.tc-q-res::before { content: ""; flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--line-2); }
.tc-q.is-right .tc-q-res { color: var(--good); }
.tc-q.is-right .tc-q-res::before { background: var(--good); -webkit-mask: none; box-shadow: inset 0 0 0 0.45rem var(--good-soft); }
.tc-q.is-wrong .tc-q-res, .tc-q.is-blank .tc-q-res { color: var(--bad); }
.tc-q.is-wrong .tc-q-res::before, .tc-q.is-blank .tc-q-res::before { background: var(--bad); box-shadow: inset 0 0 0 0.45rem var(--bad-soft); }
details.tc-ans { border-radius: 16px; background: var(--page); box-shadow: inset 0 0 0 1.5px var(--line-2); padding: 0 1.1rem; }
details.tc-ans > summary { display: flex; align-items: center; min-height: 48px; cursor: pointer; font-weight: 700; color: var(--accent-deep); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
details.tc-ans[open] { padding-bottom: 1rem; box-shadow: inset 0 0 0 1.5px var(--line-2), var(--tc-shadow-soft); }
details.tc-ans[open] > summary { color: var(--ink-2); text-decoration-color: var(--line-2); }
details.tc-ans > * + * { margin-top: 0.7rem; }
details.tc-ans[open] > :not(summary) { animation: tc-rise 340ms var(--ease) both; }
.tc-key { font-size: 1.03rem; }
.tc-trap-tag { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.2rem 0.75rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep); font-weight: 700; font-size: 0.9rem; box-shadow: inset 0 0 0 1px var(--accent-mid); }
.tc-trap-tag::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); }
details.tc-ans .notes { padding-left: 1.1em; }
details.tc-ans .notes li + li { margin-top: 0.35rem; }

/* listening: heard once */
.tc-audio > summary { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; cursor: pointer; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.tc-audio[open] > summary { margin-bottom: 0.6rem; }
.tc-audio.is-playing > summary { display: none; }
.tc-audio.is-playing .tc-doc { box-shadow: inset 0 0 0 2px var(--accent); animation: tc-rise 300ms var(--ease) both; }
.tc-listen { display: grid; gap: 0.6rem; padding: 1rem 1.1rem; border-radius: 18px; background: var(--wash); box-shadow: inset 0 0 0 1px var(--line); }
.tc-listen-btn { justify-self: start; }
.tc-listen-track { height: 0.4rem; border-radius: 999px; background: var(--wash-2); overflow: hidden; }
.tc-listen-track > span { display: block; height: 100%; background: var(--accent); transform-origin: left center; transform: scaleX(var(--p, 1)); transition: transform 1000ms linear; }
.tc-listen-track:not(.is-on) > span { transform: scaleX(1); opacity: 0.25; }
.tc-listen-msg { margin: 0; font-weight: 700; }
.tc-listen-msg:empty { display: none; }
.tc-listen.is-heard { background: var(--good-soft); box-shadow: inset 0 0 0 1px var(--good); }
.tc-listen.is-heard .tc-listen-msg { color: var(--ink); font-weight: 600; }

/* end of a set: the result */
.tc-set-end { max-width: var(--tc-measure); scroll-margin-top: 130px; }
.tc-set-end:empty { display: none; }
.tc-result { margin-top: 1.5rem; padding: clamp(1.1rem, 3vw, 1.75rem); border-radius: 24px; background: var(--page); box-shadow: var(--tc-shadow-soft), inset 0 0 0 1px var(--line); }
.tc-result > * + * { margin-top: 0.9rem; }
.tc-result h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 800; letter-spacing: -0.02em; }
.tc-result h4 { margin-top: 1.4rem; font-size: 1.05rem; font-weight: 800; }
.tc-score { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1.2rem; }
.tc-score-n { font-size: clamp(2.6rem, 9vw, 3.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.tc-band { font-weight: 800; }
.tc-band-strong { color: var(--good); }
.tc-band-developing { color: var(--warn); }
.tc-band-priority { color: var(--bad); }
.area { list-style: none; }
.area + .area { margin-top: 0.9rem; }
.area-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.2rem 1rem; margin-bottom: 0.35rem; font-weight: 600; }
.area-n { font-weight: 800; font-variant-numeric: tabular-nums; }
.tc-traps-hit { list-style: none; padding: 0; display: grid; gap: 0.7rem; }
.tc-traps-hit li { padding: 0.8rem 1rem; border-radius: 14px; background: var(--wash); }
.tc-traps-hit strong { display: block; color: var(--accent-deep); }
.tc-traps-hit span { color: var(--ink-2); font-size: 0.95rem; }

/* writing and speaking tasks */
.tc-task { padding-block: clamp(1.6rem, 4vw, 2.4rem); border-bottom: 1px solid var(--line); scroll-margin-top: 130px; }
.tc-task > * + * { margin-top: 1rem; }
.tc-task-head { display: grid; gap: 0.5rem; }
.tc-task-head h3 { font-size: clamp(1.3rem, 3vw, 1.65rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.tc-task-sub { display: block; margin-top: 0.2rem; font-size: 1.02rem; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
.tc-chip { justify-self: start; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; padding: 0.25rem 0.8rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep); font-weight: 700; font-size: 0.92rem; }
.tc-prompt { padding: 1.05rem 1.2rem; border-radius: 18px; background: var(--wash); box-shadow: inset 0 0 0 1px var(--line); font-size: 1.04rem; line-height: 1.6; }
.tc-prompt p + p { margin-top: 0.55rem; }
.tc-prompt p.bullet { position: relative; padding-left: 1.1rem; margin-top: 0.3rem; }
.tc-prompt p.bullet::before { content: ""; position: absolute; left: 0.1rem; top: 0.68em; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--accent); }
.tc-docs { display: grid; gap: 0.8rem; }
@media (min-width: 900px) { .tc-docs { grid-template-columns: 1fr 1fr; } }
.tc-docbox { padding: 1rem 1.15rem; border-radius: 18px; background: var(--page); box-shadow: inset 0 0 0 1.5px var(--line-2); line-height: 1.6; }
.tc-docbox h4 { font-size: 0.95rem; font-weight: 800; color: var(--accent-deep); margin-bottom: 0.4rem; }
.tc-points { padding-left: 1.2em; color: var(--ink-2); }
.tc-points li + li { margin-top: 0.25rem; }
.tc-write label { margin-bottom: 0.5rem; }
.tc-counter { margin-top: 0.6rem; }
.tc-tip { padding: 0.85rem 1.05rem; border-radius: 16px; background: var(--accent-soft); font-size: 0.97rem; }
details.tc-models, details.tc-rubric { border-radius: 18px; background: var(--page); box-shadow: inset 0 0 0 1.5px var(--line-2); padding: 0 1.15rem; }
details.tc-models > summary, details.tc-rubric > summary { display: flex; align-items: center; min-height: 52px; cursor: pointer; font-weight: 800; }
details.tc-models > summary::after, details.tc-rubric > summary::after { content: "+"; margin-left: auto; display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: 50%; background: var(--wash); font-weight: 500; font-size: 1.3rem; transition: transform 250ms var(--ease); }
details.tc-models[open] > summary::after, details.tc-rubric[open] > summary::after { transform: rotate(45deg); }
details.tc-models[open], details.tc-rubric[open] { padding-bottom: 1.1rem; }
details.tc-models > summary::-webkit-details-marker, details.tc-rubric > summary::-webkit-details-marker { display: none; }
details.tc-models > summary, details.tc-rubric > summary { list-style: none; }
.tc-model { padding-top: 1rem; border-top: 1px solid var(--line); }
.tc-model + .tc-model { margin-top: 1rem; }
.tc-model h4 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.8rem; font-size: 1.08rem; font-weight: 800; }
.tc-model-n { font-size: 0.88rem; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tc-model-text { margin-top: 0.6rem; padding: 0.95rem 1.1rem; border-radius: 16px; background: var(--wash); line-height: 1.62; }
.tc-model-text p + p { margin-top: 0.55rem; }
.tc-why { margin-top: 0.6rem; padding-left: 1.2em; font-size: 0.96rem; color: var(--ink-2); }
.tc-why li + li { margin-top: 0.3rem; }
.tc-why span[lang="fr"], .tc-tip span[lang="fr"], .tc-traps-hit span[lang="fr"], .tc-traplist span[lang="fr"] { color: var(--ink); font-weight: 600; }
.tc-rubric-body > * + * { margin-top: 0.8rem; }
.tc-auto-state { display: block; font-weight: 700; font-size: 0.92rem; color: var(--ink-2); }
.tc-how { font-weight: 500; }
.tc-timer-slot:empty { display: none; }
.tc-rubric-oral { margin-top: 2rem; padding: clamp(1rem, 3vw, 1.5rem); border-radius: 22px; background: var(--page); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.tc-rubric-oral h3 { font-size: clamp(1.3rem, 3vw, 1.65rem); font-weight: 800; letter-spacing: -0.02em; }
.tc-rubric-oral > * + * { margin-top: 0.8rem; }
html:not(.js) .tc-rubric-oral .tally:empty, .tally:empty { display: none; }

/* locked sets */
.tc-more { padding-block: clamp(2.5rem, 6vw, 4rem); background: var(--wash); }
.tc-more .small { margin-top: 0.5rem; max-width: 40rem; }
.tc-locks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
@media (min-width: 900px) { .tc-locks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tc-lock { padding: clamp(1.1rem, 3vw, 1.5rem); border-radius: 22px; background: var(--page); box-shadow: var(--tc-shadow-soft), inset 0 0 0 1px var(--line); scroll-margin-top: 120px; }
.tc-lock > * + * { margin-top: 0.6rem; }
.tc-lock-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 1rem; }
.tc-lock-head h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.tc-lock-tag { position: relative; display: inline-flex; align-items: center; min-height: 1.9rem; padding: 0 0.85rem 0 1.85rem; border-radius: 999px; background: var(--ink); color: var(--page); font-size: 0.85rem; font-weight: 700; }
.tc-lock-tag::before { left: 0.8rem; }
.tc-lock-tag::after { left: 0.92rem; }
.tc-lock-meta { font-weight: 700; }
.tc-lock-list { padding-left: 1.2em; color: var(--ink-2); font-size: 0.97rem; }
.tc-lock-cta { display: flex; flex-wrap: wrap; gap: 0.6rem; padding-top: 0.4rem; }
.tc-lock-cta .btn { white-space: normal; text-align: center; height: auto; padding-block: 0.6rem; }

/* traps legend and the official facts */
.tc-legend, .tc-official { padding-block: clamp(2.5rem, 6vw, 4rem); }
.tc-official { border-top: 1px solid var(--line); }
.tc-official .small { margin-top: 1rem; max-width: 46rem; }
.tc-official .facts { margin-top: 1.25rem; }
.tc-traplist { margin: 1.5rem 0 0; display: grid; gap: 0; border-top: 1.5px solid var(--ink); max-width: 64rem; }
.tc-traplist > div { display: grid; gap: 0.25rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.tc-traplist dt { display: flex; align-items: center; gap: 0.55rem; font-weight: 800; font-size: 1.05rem; }
.tc-traplist dt::before { content: ""; flex: none; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--accent); }
.tc-traplist dd { margin: 0; color: var(--ink-2); }
@media (min-width: 900px) { .tc-traplist > div { grid-template-columns: minmax(0, 0.45fr) minmax(0, 1.55fr); gap: 2rem; } }

/* course home: the exam, mapped. One row per official test; the bar is its official length (drawn once). */
.tc-mapsec { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.tc-map { list-style: none; padding: 0; margin: 0; border-top: 1.5px solid var(--ink); }
.tc-map-row { display: grid; gap: 0.45rem; padding: 1.35rem 0 1.4rem; border-bottom: 1px solid var(--line); }
.tc-map-row h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 800; letter-spacing: -0.02em; }
.tc-map-row h3 a { text-decoration: none; }
.tc-map-row h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.tc-map-bar { height: 0.55rem; border-radius: 999px; background: var(--wash-2); overflow: hidden; }
.tc-map-bar > span { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--accent); transform-origin: left center; transform: scaleX(var(--w, 1)); }
html.js .tc-map:not(.is-drawn) .tc-map-bar > span { transform: scaleX(0); }
.tc-map.is-drawn .tc-map-bar > span { transition: transform 800ms var(--ease); }
.tc-map.is-drawn .tc-map-row:nth-child(2) .tc-map-bar > span { transition-delay: 90ms; }
.tc-map.is-drawn .tc-map-row:nth-child(3) .tc-map-bar > span { transition-delay: 180ms; }
.tc-map.is-drawn .tc-map-row:nth-child(4) .tc-map-bar > span { transition-delay: 270ms; }
html:not(.js) .tc-map-bar { display: none; }
.tc-map-k { display: block; font-size: 0.82rem; font-weight: 700; color: var(--ink-2); }
.tc-map-off { color: var(--ink-2); }
.tc-map-ours { font-weight: 600; }
.tc-map-go { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 1rem; padding-top: 0.2rem; }
.tc-free-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; color: var(--accent-deep); text-decoration-color: var(--accent); }
@media (min-width: 900px) and (max-width: 1099px) {
  .tc-map-row { grid-template-columns: 15rem minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "name bar bar" "name off ours" "name go go"; column-gap: 2.25rem; row-gap: 0.55rem; align-items: start; }
  .tc-map-row h3 { grid-area: name; }
  .tc-map-bar { grid-area: bar; margin-top: 0.55rem; }
  .tc-map-off { grid-area: off; }
  .tc-map-ours { grid-area: ours; }
  .tc-map-go { grid-area: go; }
}
.tc-inc th[scope="col"]:last-child, .tc-inc td:last-child { text-align: left; }
.tc-inc tbody td:last-child { font-weight: 700; color: var(--accent-deep); }
@media (max-width: 639px) {
  .tc-inc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tc-inc tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .tc-inc tbody th { grid-column: 1 / -1; border: 0; padding: 0; }
  .tc-inc tbody td { border: 0; padding: 0; }
  .tc-inc tbody td::before { content: attr(data-h); display: block; font-size: 0.8rem; font-weight: 700; color: var(--ink-2); }
}

/* course home: report and plan */
.tc-report { max-width: 52rem; }
.tc-report > * + * { margin-top: 0.9rem; }
.tc-report h4 { margin-top: 1.5rem; font-weight: 800; }
.tc-rep { list-style: none; padding: 0; border-top: 1.5px solid var(--ink); }
.tc-rep-row { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.tc-rep-row .area-row a { font-weight: 800; font-size: 1.08rem; }
.tc-rep-row.is-empty .area-n { color: var(--ink-2); font-weight: 600; }
.tc-rep-row .small { margin-top: 0.4rem; }
.tc-rep-actions { margin-top: 1.25rem; }
.tc-chips { border: 0; padding: 0; margin: 1.75rem 0 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tc-chips legend { width: 100%; padding: 0; margin-bottom: 0.7rem; font-weight: 800; font-size: 1.05rem; }
.tc-chips input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tc-chips label { display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 0 1rem; border-radius: 999px; font-weight: 700; background: var(--page); box-shadow: inset 0 0 0 1.5px var(--line-2); cursor: pointer; transition: box-shadow 150ms var(--ease), background-color 150ms var(--ease); }
.tc-chips label:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.tc-chips input:checked + label { background: var(--ink); color: var(--page); box-shadow: none; }
.tc-chips input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 3px; }
.tc-plan { max-width: 52rem; margin-top: 1.5rem; }
.tc-plan > * + * { margin-top: 0.9rem; }
.tc-weeks-list { list-style: none; padding: 0; display: grid; gap: 0.8rem; }
@media (min-width: 900px) { .tc-weeks-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tc-week { padding: 1rem 1.15rem; border-radius: 18px; background: var(--wash); box-shadow: inset 0 0 0 1px var(--line); }
.tc-week h4 { font-weight: 800; font-size: 1rem; color: var(--accent-deep); }
.tc-week ul { list-style: none; padding: 0; margin-top: 0.5rem; display: grid; gap: 0.15rem; }
.tc-week li a { display: flex; align-items: center; min-height: 40px; font-weight: 600; text-decoration-color: var(--line-2); }
.tc-week li a:hover { text-decoration-color: var(--accent); }
.tc-week li.is-redo a { color: var(--accent-deep); font-weight: 800; }

/* course home: the price, in the page's one dark band */
.tc-pricegrid { align-items: start; }
.tc-price { margin-top: 0; padding: clamp(1.25rem, 3vw, 1.75rem); border-radius: 24px; background: var(--page); color: var(--ink); box-shadow: var(--tc-shadow); font-weight: 400; }
.tc-price > * + * { margin-top: 0.8rem; }
.tc-price a:not(.btn) { color: var(--ink); }
/* the key form sits on the white price card inside the dark band: an ink outline button, not the white one meant for the band (2026-10-31) */
.band-night .tc-price .btn-ghost { background: var(--page); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.band-night .tc-price .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent-deep); }
.tc-refund { margin-top: 0.4rem; }
.tc-price-tag { display: inline-flex; align-items: center; min-height: 1.9rem; padding: 0 0.85rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 0.88rem; }
.tc-price-line { font-size: clamp(1.2rem, 2.6vw, 1.45rem); font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; }
.tc-price-n { font-size: clamp(2.6rem, 8vw, 3.4rem); font-weight: 800; letter-spacing: -0.04em; }
.tc-price-lead { color: var(--ink-2); }
.tc-price form.waitlist { background: var(--wash); box-shadow: inset 0 0 0 1px var(--line); max-width: none; }
.tc-price .tc-key { padding-top: 1rem; border-top: 1px solid var(--line); }
.tc-price .tc-key .h3 { color: var(--ink); font-size: 1.15rem; }
.tc-paynote { margin-top: 0.6rem; }
.tc-key-value { padding: 0.75rem 0.95rem; border-radius: 12px; background: var(--wash); font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tc-course-go { margin-top: 1.4rem; }
.tc-course-buy .tc-price-line { color: var(--on-night); }

/* false friends: a reference list, not cards */
.tc-ff-wrap { padding-block: 0.5rem clamp(3rem, 6vw, 5rem); }
.tc-ff-filter { max-width: 52rem; }
.tc-ff-filter .tc-chips { margin-top: 0; }
.tc-ff-search { margin-top: 1rem; max-width: 26rem; }
.tc-ff-search input { width: 100%; min-height: 48px; padding: 0.65rem 0.9rem; color: var(--ink); background: var(--page); border: 0; border-radius: 0.9rem; box-shadow: inset 0 0 0 1.5px var(--line-2); font: inherit; }
.tc-ff-search input:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.tc-fflist { list-style: none; padding: 0; margin: 1.5rem 0 0; border-top: 1.5px solid var(--ink); display: grid; }
.tc-ff { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); column-gap: 0.75rem; row-gap: 0.25rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 120px; }
.tc-ff > :not(.tc-ff-n) { grid-column: 2; }
.tc-ff-n { grid-row: span 6; font-weight: 800; font-size: 0.9rem; color: var(--ink-2); font-variant-numeric: tabular-nums; padding-top: 0.35rem; }
.tc-ff h3 { font-size: clamp(1.35rem, 3vw, 1.7rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.tc-ff-looks { display: inline-flex; justify-self: start; align-items: center; padding: 0.1rem 0.7rem; border-radius: 999px; background: var(--bad-soft); color: var(--bad); font-weight: 700; font-size: 0.9rem; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.tc-ff-means { font-size: 1.05rem; }
.tc-ff-means strong { font-weight: 700; }
.tc-ff-say { color: var(--ink-2); }
.tc-ff-say span[lang="fr"], .tc-ff-means span[lang="fr"] { color: var(--ink); font-weight: 600; }
.tc-ff-ex { margin-top: 0.35rem; padding: 0.55rem 0.8rem; border-radius: 12px; background: var(--wash); font-style: normal; }
@media (min-width: 900px) {
  .tc-fflist { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; }
}
.tc-ff-cta { margin-top: 2rem; }

@media print {
  .tc-tabs, .tc-setnav, .tc-setbar, .tc-more, .tc-legend, .tc-ctas, .tc-trust, .tc-head-map, #incluye, #precio, #metodo, #preguntas, .tc-weeks, .tc-rep-actions, .tc-head .tc-saved { display: none !important; }
  .tc-head { padding: 0 0 1rem; }
  .band { padding-block: 1rem; }
  .tc-week, .tc-rep-row { break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- round 2 (screenshots 2026-10-31): narrow phones ---------- */
@media (max-width: 379px) {
  .tc-setbar-in { flex-wrap: nowrap; }
  .tc-setbar .tc-count { font-size: 0.92rem; }
  .tc-setbar .clock { min-width: 4.4rem; padding-inline: 0.6rem; font-size: 1rem; }
  details.tc-rubric, details.tc-models { padding-inline: 0.8rem; }
  .tc-rubric fieldset.checklist { padding-inline: 0.8rem; }
}
.tc-rubric fieldset.checklist legend, .tc-rubric-oral fieldset.checklist legend { max-width: 100%; border-radius: 12px; line-height: 1.3; }
