.t4-main { max-width: 54rem; width: 100%; margin: auto; padding: 1rem; box-sizing: border-box; }
.t4-main [hidden] { display: none !important; }
.t4-bar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.t4-bar h1, .t4-bar p { margin: 0; }
.t4-bar > div:last-child { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.t4-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.t4-topics button.topic { color: #16342e; background: #f3efff; min-width: 0; }
.t4-topics button.topic:nth-child(5n + 2) { background: #e8f1ff; }
.t4-topics button.topic:nth-child(5n + 3) { background: #ffeef0; }
.t4-topics button.topic:nth-child(5n + 4) { background: #e8f6ed; }
.t4-topics button.topic:nth-child(5n + 5) { background: #fff3e0; }
.t4-topics .topic-title { overflow-wrap: anywhere; }
.t4-topics img[hidden] + .topic-title { grid-column: 1 / -1; }
@media (max-width: 830px) {
  .t4-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 630px) {
  .t4-topics { grid-template-columns: minmax(0, 1fr); gap: .65rem; }
}
.t4-practice { text-align: start; min-width: 0; }
.t4-practice blockquote { margin: 1rem 0; padding: 1rem; border-inline-start: .3rem solid #257c70; background: #e7f5f1; white-space: pre-line; overflow-wrap: anywhere; }
.t4-choices { display: grid; gap: .5rem; margin: 1rem 0; }
.t4-choices button { text-align: start; overflow-wrap: anywhere; white-space: normal; width: 100%; }
.t4-choices button[data-result="correct"] { background: #d8f3df; color: #154c25; border-color: #287340; }
.t4-choices button[data-result="wrong"] { background: #ffe2e2; color: #791a1a; border-color: #9a2727; }
.t4-feedback { padding: .75rem; background: #fff0cf; border-radius: .5rem; }

.t4-practice { font-size: 1.1rem; }
.t4-choices button { min-height: 3rem; }
.t4-topics button.topic { grid-template: 1fr / minmax(0, 1fr); min-height: 5rem; }

.t4-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.t4-table :is(td, th) { padding: .3rem; border: 1px solid #91aaa2; overflow-wrap: anywhere; }
.t4-table caption { margin-bottom: .5rem; text-align: left; font-weight: 700; }

.t4-chart { margin: 0; }
.t4-chart figcaption { margin-bottom: .5rem; font-weight: 700; }
.t4-chart-row { display: grid; grid-template-columns: minmax(5rem, 1fr) minmax(2rem, 2fr) auto; gap: .5rem; align-items: center; margin: .35rem 0; }
.t4-chart-track { height: .8rem; background: #e2ebe7; border-radius: .2rem; }
.t4-chart-bar { display: block; height: 100%; border-radius: .2rem; background: #276456; }
