/* Reading speed test (tools/reading-speed-test) */
.rst-tool [hidden] { display: none !important; }
.rst-tool .rst-level { display: flex; align-items: flex-start; justify-content: flex-start; gap: 10px; font-size: 16px; padding: 4px 0; }
.rst-tool .rst-level input { margin-top: 5px; }
.rst-tool .rst-level .small { display: block; }
.rst-setup .button { margin-top: 4px; }
.rst-passage { border-top: 1px solid var(--ink); padding-top: 18px; scroll-margin-top: 16px; }
.rst-text { font-size: 19px; line-height: 1.7; max-width: 66ch; }
.rst-text h2 { margin-bottom: 18px; }
.rst-text h2:focus { outline: none; }
.rst-text p { margin: 0 0 18px; }
.rst-done-bar { position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(rgba(246, 243, 238, 0), var(--paper) 30%); }
.rst-done-bar .button { min-width: 200px; }
.rst-result { border-top: 1px solid var(--ink); padding-top: 18px; scroll-margin-top: 16px; }
.rst-big { font-family: var(--serif); font-size: clamp(56px, 9vw, 96px); line-height: 1; margin: 0 0 12px; }
.rst-big .rst-unit { font-family: var(--sans); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rst-quiz { margin: 28px 0; }
.rst-quiz fieldset { border: 0; border-top: 1px solid var(--rule); margin: 0 0 14px; padding: 12px 0 0; display: grid; gap: 8px; }
.rst-quiz legend { font-weight: 500; padding: 0 0 6px; }
.rst-quiz label { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; padding: 4px 8px; }
.rst-quiz label input { margin-top: 4px; }
.rst-quiz label.is-right { background: #E3E6DA; outline: 1px solid var(--olive); }
.rst-quiz label.is-wrong { background: #F1E1DF; outline: 1px solid var(--claret); }
.rst-score { font-size: 17px; font-weight: 500; margin-top: 14px; }
.rst-next { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.rst-next .button { text-align: center; }
.rst-log { border-top: 1px solid var(--ink); margin-top: 48px; padding-top: 18px; }
.rst-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 14px; }
.rst-table th, .rst-table td { text-align: left; padding: 7px 8px 7px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.rst-table th { font-weight: 500; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rst-log-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; font-size: 14px; }
.rst-log-controls label { display: inline-flex; align-items: center; gap: 6px; }
.rst-clear { background: none; border: 0; padding: 0; font-size: 13px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.rst-credits { margin-top: 32px; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .rst-text { font-size: 17px; }
  .rst-table th:nth-child(3), .rst-table td:nth-child(3) { display: none; }
  .rst-next .button, .rst-done-bar .button { width: 100%; }
}
