/* The written-answer pieces, for every page whose course is graded on
   written answers: the FSA pages (ILA 101 and the rest), ALTAM and ASTAM,
   and the CAS Exam 5 to 9 pages. Loaded after fm.css, which carries every
   shared product-page rule (tokens, Today card, path, collages, score
   cards, instructor cards, price terms, checked lists, about, questions,
   close). This adds the written-answer problem and its spreadsheet, the
   Word and Excel files, the graded parts and their feedback, the grading
   chat and the flashcards. Every colour is a Clear token or an fm.css page
   token. */

/* Learn: study manual rows are plain text, not maths. */
.prod-sheet__row.ila-row { font-size: 13px; line-height: 18px; }

/* Practice: the written-answer problem, its two parts, and the sheet it is
   answered on (Clear's spreadsheet surface, reduced to three rows). The
   sheet keeps to the card's left so the graded tile sits on empty paper
   beside it. */
.ila-prob__title { margin: 10px 0 8px; font-size: 15px; line-height: 20px; font-weight: 650; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.ila-parts { display: grid; row-gap: 5px; }
.ila-parts li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: baseline; gap: 6px; font-family: var(--font-reading); font-size: 13px; line-height: 1.4; color: var(--ink); }
.ila-parts b { font-family: var(--font-sans); font-size: 12px; font-weight: 650; color: var(--muted-foreground); }
.ila-parts em { font-family: var(--font-sans); font-style: normal; font-size: 11.5px; color: var(--muted-foreground); white-space: nowrap; }
.ila-sheet { display: grid; grid-template-columns: 18px auto auto; width: 140px; margin-top: 12px; border: 1px solid var(--hair); border-radius: var(--radius-md); overflow: hidden; font-size: 12px; line-height: 24px; color: var(--ink); }
.ila-sheet i { font-style: normal; text-align: center; font-size: 10.5px; font-weight: 600; color: var(--muted-foreground); background: var(--muted); }
.ila-sheet i:first-child { visibility: hidden; }
.ila-sheet span { padding: 0 6px; border-left: 1px solid var(--hair); border-top: 1px solid var(--hair); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ila-sheet span:nth-of-type(even) { text-align: right; }
.ila-sheet span.is-sel { box-shadow: inset 0 0 0 2px var(--practice-hi); font-weight: 600; }
/* The header row's B and C sit over the sheet's two columns. */
.ila-sheet i:nth-child(2), .ila-sheet i:nth-child(3) { border-left: 1px solid var(--hair); }

/* Practice exams: the paper as its two files. */
.ila-files { display: grid; row-gap: 6px; margin-top: 14px; }
.ila-files li { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: var(--radius-lg); border: 1px solid var(--hair); background: var(--paper); font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; }
.ila-file { display: grid; place-items: center; flex-shrink: 0; width: 22px; height: 22px; border-radius: 5px; font-size: 11px; font-weight: 700; color: var(--on-accent-fill); }
.ila-file--doc { background: var(--learn); } /* the AA step, as pa.css's W: --learn-hi under a white letter is 4.05:1 in light */
.ila-file--xls { background: var(--success); }

/* The graded parts: label and points per part, as Clear's reader lists them. */
.ila-grades { display: grid; row-gap: 8px; margin-top: 22px; }
.ila-grades li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: var(--radius-lg); border: 1px solid var(--edge); background: var(--page); font-size: 16px; color: var(--ink); }
.ila-grades b { font-weight: 650; color: var(--muted-foreground); }
.ila-grades__label { font-weight: 600; }
.ila-grades__pts { font-weight: 600; white-space: nowrap; }

/* The feedback line under the graded parts: what to do for the missing
   point, on the practice tint with on-tint text. */
.ila-tip { margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-lg); border: 1px solid color-mix(in srgb, var(--tone-hi) 35%, transparent); background: color-mix(in srgb, var(--tone-hi) 8%, var(--paper)); font-family: var(--font-reading); font-size: 15.5px; line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.ila-tip b { display: block; margin-bottom: 2px; font-family: var(--font-sans); font-size: 13px; font-weight: 650; color: var(--ink); }

/* Motion, at the FM page's level: where FM's score cards fill their
   meters, these play their own one-time sequence once in view (ila101.js
   arms .score; finished by default, never under reduced motion). The
   graded card scores each part in turn, lands the tip, then plays
   the follow-up question and its answer; the
   flashcard turns over to its answer, then the rating buttons arrive and
   Good is picked. */
.score.is-armed .ila-grades li { opacity: 0; transform: translateX(-12px); }
.score.is-armed .ila-grades__pts { opacity: 0; transform: scale(0.7); }
.score.is-armed .ila-tip { opacity: 0; transform: translateY(12px); }
.score.is-armed.is-in .ila-grades li { opacity: 1; transform: none; transition: opacity 420ms var(--ease-signature) calc(150ms + var(--n) * 260ms), transform 520ms var(--ease-signature) calc(150ms + var(--n) * 260ms); }
.score.is-armed.is-in .ila-grades__pts { opacity: 1; transform: none; transition: opacity 200ms ease calc(420ms + var(--n) * 260ms), transform 420ms var(--ease-emphasis) calc(420ms + var(--n) * 260ms); }
.score.is-armed .ila-chat p { opacity: 0; transform: translateY(10px); }
.score.is-armed.is-in .ila-chat__q { opacity: 1; transform: none; transition: opacity 400ms var(--ease-signature) 1700ms, transform 500ms var(--ease-signature) 1700ms; }
.score.is-armed.is-in .ila-chat__a { opacity: 1; transform: none; transition: opacity 400ms var(--ease-signature) 2250ms, transform 500ms var(--ease-signature) 2250ms; }
.score.is-armed.is-in .ila-tip { opacity: 1; transform: none; transition: opacity 500ms var(--ease-signature) 1050ms, transform 600ms var(--ease-signature) 1050ms; }

.score.is-armed .fcard__back { opacity: 0; transform: perspective(700px) rotateX(-70deg); transform-origin: 50% 0; }
.score.is-armed .fcard__rate li { opacity: 0; transform: translateY(10px); }
.score.is-armed .fcard__when { opacity: 0; }
.score.is-armed.is-in .fcard__back { opacity: 1; transform: none; transition: opacity 360ms ease 450ms, transform 700ms var(--ease-signature) 450ms; }
.score.is-armed.is-in .fcard__rate li { opacity: 1; transform: none; transition: opacity 300ms ease calc(1000ms + var(--n) * 90ms), transform 460ms var(--ease-emphasis) calc(1000ms + var(--n) * 90ms); }
.score.is-armed.is-in .fcard__when { opacity: 1; transition: opacity 300ms ease 900ms; }

/* Feedback and flashcards share one layout (fm.css's .ready grid): copy
   with fm.css's checked points on the left, one card on the right. */
.flash { padding-top: var(--rhythm); }
/* The grading chat under the tip: the student's question right, the
   answer left, as the instructor section's thread draws them. */
.ila-chat { display: grid; row-gap: 8px; margin-top: 14px; }
.ila-chat__q { justify-self: end; max-width: 82%; padding: 9px 14px 10px; border-radius: 16px 16px 4px 16px; background: var(--bubble-q); font-size: 15px; line-height: 1.45; color: var(--ink); }
.ila-chat__a { justify-self: start; max-width: 90%; padding: 9px 14px 10px; border-radius: 16px 16px 16px 4px; border: 1px solid var(--edge); background: var(--page); font-size: 15px; line-height: 1.45; color: var(--ink); }
.fcard__front { margin-top: 22px; font-family: var(--font-reading); font-size: 19px; line-height: 1.45; font-weight: 600; color: var(--ink); text-wrap: pretty; }
.fcard__back { display: grid; row-gap: 6px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--edge); }
.fcard__back li { position: relative; padding-left: 16px; font-family: var(--font-reading); font-size: 16px; line-height: 1.45; color: var(--ink); }
.fcard__back li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--muted-foreground); }
/* What the numbers under the ratings are: the wait before Clear shows the
   card again (Shiv Morjaria; James, 2026-11-08). No rating is picked. */
.fcard__when { margin-top: 20px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--muted-foreground); text-align: center; }
.fcard__rate { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.fcard__rate li { display: grid; justify-items: center; row-gap: 2px; padding: 9px 4px 8px; border-radius: var(--radius-lg); border: 1px solid var(--edge); border-top: 3px solid var(--rate); background: var(--page); }
.fcard__rate b { font-size: 14.5px; font-weight: 650; color: var(--ink); }
.fcard__rate span { font-size: 13px; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }

@media (max-width: 600px) {
  .ila-grades li { font-size: 15px; }
}

/* Today: a fellowship Learn day's Read and practice-problem rows
   (ila101.html and the other FSA pages). In Clear they are notes under the
   day's lessons, not tasks, so they have no checkbox, and Read's "as needed"
   is quieter than a lesson's minutes. */
.task--note .task__check { visibility: hidden; }
.task--note .task__min { font-size: 13px; color: var(--muted-foreground); }
/* A lesson that is one part of a split reading carries Clear's "Part 1 of 2"
   on a quiet second line, and Read carries its manual references there, so
   the title stays short. The narrow card keeps the title's topic and puts
   the minutes (or "as needed") on that line. */
.task--part .task__meta { display: block; margin-top: 1px; font-size: 13px; line-height: 17px; color: var(--muted-foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task--part .task__meta-min { display: none; }
@container (max-width: 459px) {
  .task--part .task__topic, .task--part .task__meta-min { display: inline; }
}
/* A long lesson title on the Next row ends short of the Next pill, which
   floats over that row, instead of running under it. The narrow card hides
   the pill, so its title keeps the full width. */
.today__hl + .tasks__list .task--part.is-next .task__title { padding-right: 68px; }
@container (max-width: 459px) {
  .today__hl + .tasks__list .task--part.is-next .task__title { padding-right: 0; }
}

/* Learn it from worked examples (Eddie, 2026-11-04): after the four steps,
   the copy column beside a sample lesson card and a study manual card. */
.learnsec { padding-block: 72px; }
.learnsec .lv { display: grid; gap: 14px; align-content: start; }
.learnsec .lv__link { display: block; min-width: 0; color: inherit; text-decoration: none; border-radius: var(--radius-2xl); cursor: pointer; }
.learnsec .lv__link:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--page), 0 0 0 4px var(--ring); }
.learnsec .lv__link .o-card { transition: border-color 180ms ease; }
@media (hover: hover) and (pointer: fine) { .learnsec .lv__link:hover .o-card { border-color: var(--learn-hi); } }
.learnsec .lv__video[data-video-loading="true"] { cursor: progress; }
.learnsec .lv__player-shell { overflow: hidden; border: 1px solid var(--edge); border-radius: var(--radius-xl); background: var(--paper); box-shadow: var(--lift-1); }
.learnsec .lv__player { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.learnsec .lv .o-card { padding: 0; overflow: hidden; }
.learnsec .lv .prod-vid { height: 230px; }
.learnsec .lv .prod-vid .chalk { font-size: 24px; top: 52px; }
.learnsec .lv__cap { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; padding: 12px 14px; }
.learnsec .lv .lv__sheet { padding: 14px 16px; }
.learnsec .lv__sheet p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted-foreground); }
.learnsec .lv__sheet .lv__cap { padding: 8px 0 0; color: var(--muted-foreground); }
.learnsec .vid__bar i { width: 0; } /* the card reads 0:00, so the playhead sits at the start */
