/* TOEFL Reading take page: task-specific layout, shared IELTS runner controls. */
.tf-take { max-width: 68rem; margin-inline: auto; }
.tf-source-note { margin: -.5rem 0 1.3rem; color: rgb(148,163,184); font-size: .75rem;
  line-height: 1.5; }
.tf-source-note a { color: rgb(125,211,252); }
.tf-unit-nav { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1.25rem; }
.tf-unit-nav a { border: 1px solid rgba(45,212,191,.25); border-radius: 999px;
  padding: .45rem .7rem; color: rgb(153,246,228); font-size: .77rem; line-height: 1.35;
  text-decoration: none; }
.tf-unit-nav a:hover, .tf-unit-nav a:focus-visible { background: rgba(45,212,191,.12); }
.tf-unit { scroll-margin-top: 5rem; padding: 1.2rem; }
.tf-unit .ie-passage-h { font-size: 1rem; text-transform: none; letter-spacing: 0; }
.tf-unit-zh, .tf-question-zh { display: block; color: rgb(148,163,184); font-size: .82rem;
  line-height: 1.5; margin: .15rem 0 .4rem; }
.tf-instruction { color: rgb(148,163,184); font-size: .84rem; line-height: 1.6; }
.tf-c-text, .tf-source { color: rgb(203,213,225); font-size: .96rem; line-height: 2.2;
  max-width: 70ch; }
.tf-source p { margin: 0 0 .9rem; }
.tf-c-text { white-space: pre-line; }
.tf-gap { display: inline-flex; align-items: baseline; border-radius: .25rem;
  padding: 0 .12rem; white-space: nowrap; }
.tf-gap input { min-height: 32px; margin-left: 1px;
  padding: 0 .15rem; border: 0; border-bottom: 2px solid rgb(56,189,248);
  border-radius: 0; background: rgba(2,6,23,.4); color: #fff; font: inherit; }
.tf-gap.is-right { background: rgba(74,222,128,.12); }
.tf-gap.is-wrong { background: rgba(251,146,60,.12); }
.tf-gap.is-right input { border-bottom-color: rgb(74,222,128); }
.tf-gap.is-wrong input { border-bottom-color: rgb(251,146,60); }
.tf-c-review { margin-top: 1rem; border-top: 1px solid rgba(255,255,255,.1); padding-top: .6rem; }
.tf-c-review p { margin: .4rem 0; font-size: .82rem; line-height: 1.6; }
.tf-review-right { color: rgb(134,239,172); }
.tf-review-wrong { color: rgb(253,186,116); }
.tf-questions { margin-top: 1.2rem; }
.tf-questions .ie-item { margin-bottom: 1.25rem; }
.tf-questions .ie-item-options { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
.tf-questions .ie-opt { border-radius: .55rem; line-height: 1.45; padding: .5rem .7rem;
  align-items: flex-start; }
.tf-questions .ie-opt input { margin-top: .2rem; flex: none; }
.tf-c-review[hidden], .tf-take .ie-take-start[hidden],
.tf-take .ie-take-submit[hidden] { display: none !important; }
html:not([data-theme="light"]) .tf-take :is(.tf-gap.is-right, .tf-gap.is-wrong, .tf-gap input) {
  background: var(--reading-surface, #01040e);
}
html[data-theme="light"] .tf-unit-nav a { color: rgb(8,93,88); border-color: rgba(8,93,88,.35); }
html[data-theme="light"] .tf-c-text, html[data-theme="light"] .tf-source { color: rgb(51,63,82); }
html[data-theme="light"] .tf-instruction, html[data-theme="light"] .tf-unit-zh,
html[data-theme="light"] .tf-question-zh { color: rgb(80,94,113); }
html[data-theme="light"] .tf-gap input { background: rgba(255,255,255,.65); color: rgb(30,41,59); }
html[data-theme="light"] .tf-review-right { color: rgb(21,128,61); }
html[data-theme="light"] .tf-review-wrong { color: rgb(154,52,18); }
@media (max-width: 680px) {
  .tf-questions .ie-item-options { grid-template-columns: 1fr; }
  .tf-unit { padding: .85rem; }
  .tf-c-text { line-height: 2.45; }
}

/* ▼▼ LIGHT THEME — GENERATED by scripts/build_light_theme.py from the rules above. Do not edit by hand: run the builder. Hand tuning goes in 36-theme-light.css. ▼▼ */
html[data-theme="light"] .tf-source-note{color:rgb(61 75 94)}
html[data-theme="light"] .tf-source-note a{color:rgb(0 90 133)}
html[data-theme="light"] .tf-unit-nav a{color:rgb(7 110 90)}
html[data-theme="light"] .tf-unit-zh,html[data-theme="light"] .tf-question-zh{color:rgb(61 75 94)}
html[data-theme="light"] .tf-instruction{color:rgb(61 75 94)}
html[data-theme="light"] .tf-c-text,html[data-theme="light"] .tf-source{color:rgb(48 65 85)}
html[data-theme="light"] .tf-gap input{background-color:rgb(250 251 252/0.4);color:rgb(51 63 82)}
html[data-theme="light"] .tf-c-review{border-top-color:rgb(15 23 42/0.14)}
html[data-theme="light"] .tf-review-right{color:rgb(12 113 49)}
html[data-theme="light"] .tf-review-wrong{color:rgb(133 68 0)}
/* ▲▲ LIGHT THEME END ▲▲ */
