/* Added study support only. All selectors are scoped to the added panels. */
.tsa-support { display: grid; gap: 18px; min-width: 0; border: 1px solid var(--line); border-left: 4px solid var(--teal); scroll-margin-top: 130px; overflow-wrap: anywhere; }
.tsa-support-heading { display: grid; gap: 10px; }
.tsa-support-heading .tag { justify-self: start; }
.tsa-support-heading h2 { font-size: 1.35rem; }
.tsa-support-heading h3 { font-size: 1.08rem; color: var(--ink-2); }
.tsa-support details { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.tsa-support summary { cursor: pointer; padding: 12px 14px; font-weight: 700; color: var(--violet-ink); }
.tsa-support summary:hover { background: var(--surface-2); border-radius: 10px; }
.tsa-support summary:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.tsa-support-body { display: grid; gap: 18px; padding: 4px 16px 18px; }
.tsa-support-group { display: grid; gap: 8px; }
.tsa-support-group h4, .tsa-support-footer h4 { font-size: .95rem; }
.tsa-support p { line-height: 1.65; }
.tsa-support ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.tsa-support-formula { padding: 12px 14px; border-radius: 9px; background: var(--surface-2); font-family: var(--font-mono); font-size: .88rem; line-height: 1.75; white-space: pre-wrap; }
.tsa-support-answer > p { padding: 0 14px 14px; }
.tsa-support-footer { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.tsa-support-citations { display: grid; gap: 10px; margin: 0; padding-left: 18px; font-size: .86rem; }
.tsa-support-citations li > span { display: block; color: var(--ink-2); font-size: .78rem; }
.tsa-support-note { font-size: .78rem; color: var(--ink-2); }
details.tsa-support-exercise { display: block; margin: 14px 0 18px; border-radius: 10px; background: var(--surface-2); }
.tsa-support-exercise > .tsa-support-body { padding: 6px 16px 18px; font-size: .92rem; }
@media (max-width: 480px) {
  .tsa-support-body { padding-left: 12px; padding-right: 12px; }
  .tsa-support-heading h2 { font-size: 1.2rem; }
}

/* Chapters 4-5: tables that wrap, the shared-shock grid and small cards (2026-11-04) */
table.t.ts-wrap td, table.t.ts-wrap th, table.t.ts-fix td, table.t.ts-fix th { white-space: normal; text-align: left; vertical-align: top; min-width: 60px; }
.ts-fix td:nth-child(2), .ts-fix td:nth-child(3) { min-width: 150px; }
.ts-grid td, .ts-grid th { text-align: center; min-width: 58px; }
.ts-grid tbody th { text-align: right; }
.ts-grid td.on { background: color-mix(in srgb, var(--teal) 20%, var(--surface)); font-weight: 700; }
.ts-cards .card { display: grid; gap: 6px; padding: 12px 14px; }
.ts-cards .card > b { font-size: .95rem; }
.tp-problem li, .tp-problem p { overflow-x: auto; }
/* On phones the slide-correction table becomes stacked cards */
@media (max-width: 640px) {
  table.t.ts-fix, table.t.ts-fix tbody, table.t.ts-fix tr, table.t.ts-fix td { display: block; width: 100%; }
  table.t.ts-fix thead { display: none; }
  table.t.ts-fix tr { padding: 8px 0; border-bottom: 2px solid var(--line); }
  table.t.ts-fix td { border: 0; padding: 4px 10px; min-width: 0; overflow-x: auto; }
  table.t.ts-fix td::before { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
  table.t.ts-fix td:nth-child(1)::before { content: "Slide"; }
  table.t.ts-fix td:nth-child(2)::before { content: "Printed"; }
  table.t.ts-fix td:nth-child(3)::before { content: "Correct"; }
  table.t.ts-fix td:nth-child(4)::before { content: "Why"; }
}

/* Lesson notes block (2026-11-04) */
#b-deep .deep-h { margin: 22px 0 10px; font-size: 1.12rem; }
#b-deep .deep-explain h4 { margin: 14px 0 4px; }
#b-deep .deep-uses .card { display: grid; gap: 6px; padding: 12px 14px; }
#b-deep .deep-fs { display: grid; gap: 14px; }
.deep-f { min-width: 0; display: grid; gap: 8px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.deep-f h4 { margin: 0; font-size: .86rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.deep-f .math { overflow-x: auto; overflow-y: hidden; padding: 2px 0; }
.deep-f .deep-words { margin: 0; }
.deep-f .deep-sym { display: table; width: 100%; font-size: .92rem; }
.deep-f .deep-sym td:first-child { width: 130px; white-space: normal; }
.deep-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 10px; margin: 0; }
.deep-dl > div { min-width: 0; overflow-x: auto; padding: 9px 12px; border-radius: 10px; background: var(--surface-2); font-size: .92rem; line-height: 1.5; }
.deep-dl dt { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px; }
.deep-dl dd { margin: 0; }
.deep-dl .trap { background: var(--warn-bg); }
