/* TOEFL Reading take page: task-specific layout, shared IELTS runner controls. */
.tf-take { max-width: 68rem; margin-inline: auto; }
.tf-take .tfk-intro .tfk-source { margin: .8rem 0 0; }
.tf-source-note { margin: -.5rem 0 1.3rem; color: #cbd5e1; font-size: .86rem;
  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(52,211,153,.4); border-radius: 999px;
  padding: .5rem .85rem; color: rgb(167,243,208); font-size: .9rem; font-weight: 700; line-height: 1.35;
  text-decoration: none; }
.tf-unit-nav a:hover, .tf-unit-nav a:focus-visible { background: rgba(52,211,153,.16); border-color: rgba(52,211,153,.8); }
.tf-unit { scroll-margin-top: 5rem; padding: 1.2rem; }
.tf-unit .ie-passage-h { font-size: 1.2rem; font-weight: 800; color: #f8fafc; text-transform: none; letter-spacing: 0; }
.tf-unit-zh, .tf-question-zh { display: block; color: #cbd5e1; font-size: .9rem;
  line-height: 1.5; margin: .15rem 0 .4rem; }
.tf-instruction { color: #e2e8f0; font-size: .95rem; font-weight: 600; line-height: 1.6; padding: .5rem .8rem; border-left: 3px solid rgb(52,211,153); background: rgba(52,211,153,.08); border-radius: 0 .5rem .5rem 0; }
.tf-c-text, .tf-source { color: #e2e8f0; font-size: 1.05rem; 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; border-bottom-color: rgb(52,211,153); }
.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: .92rem; 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(48 65 85)}
html[data-theme="light"] .tf-source-note a{color:rgb(0 90 133)}
html[data-theme="light"] .tf-unit-nav a{color:rgb(13 112 66)}
html[data-theme="light"] .tf-unit .ie-passage-h{color:rgb(38 66 94)}
html[data-theme="light"] .tf-unit-zh,html[data-theme="light"] .tf-question-zh{color:rgb(48 65 85)}
html[data-theme="light"] .tf-instruction{color:rgb(44 63 88)}
html[data-theme="light"] .tf-c-text,html[data-theme="light"] .tf-source{color:rgb(44 63 88)}
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 ▲▲ */
