.tq-page {
    color: #203328;
    padding-block-start: 5rem;
}
.tq-width {
    width: min(100% - 2rem, 46rem);
    margin-inline: auto;
}
.tq-intro {
    background: #153e31;
    color: #fff;
    padding-block: clamp(1.25rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 2.75rem);
}
.tq-intro nav ol {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .25rem .55rem;
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}
.tq-intro nav li { display: inline-flex; align-items: center; }
.tq-intro nav li + li::before {
    background: #8fb6a1;
    content: "";
    height: .85em;
    margin-inline-end: .55rem;
    transform: rotate(18deg);
    width: 1px;
}
.tq-intro nav a { color: #ddf2e4; text-underline-offset: .18em; }
.tq-intro h1 {
    color: inherit;
    font-size: clamp(1.9rem, 4vw, 3.1rem);
    letter-spacing: -.025em;
    line-height: 1.14;
    margin: 0 0 .65rem;
}
.tq-intro p { color: #edf5ee; line-height: 1.55; max-inline-size: 63ch; }
.tq-work { padding-block: clamp(1.25rem, 4vw, 2rem) 3rem; }
.tq-reading { color: #415c49; margin-block: .5rem 1rem; }
.tq-reading strong { margin-inline-end: .25rem; }
.tq-work a { color: #145d37; text-underline-offset: .16em; }
.tq-return { border-top: 1px solid #c2d1c5; padding-block-start: 1rem; }
.tq-page a:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

/* The practice pages put the contact link in the page flow to keep choices clear. */
.tq-practice-page > .whatsapp-button {
    display: none;
}

.tq-work [data-topic-results] ul { margin: .5rem 0 1rem 1.4rem; }
.tq-work [data-topic-results] a { display: inline-block; }
.tq-paper-questions ol, .tq-paper-answers ol { margin: .5rem 0 1rem 1.5rem; }
.tq-paper-questions > ol > li, .tq-paper-answers > ol > li { margin-block-end: 1rem; }
.tq-printable-page [lang="ar"] { font-family: "Noto Naskh Arabic", "Geeza Pro", Tahoma, serif; font-size: 1.2em; }

@media print {
    .tq-printable-page #site-header,
    .tq-printable-page #site-footer,
    .tq-printable-page .tq-intro nav,
    .tq-printable-page .tq-paper-jump,
    .tq-printable-page .tq-return { display: none !important; }
    .tq-printable-page, .tq-printable-page .tq-page { margin: 0; padding: 0 !important; }
    .tq-printable-page .tq-width { margin: 0; width: auto; }
    .tq-printable-page .tq-intro { background: none; color: #000; padding: 0; }
    .tq-printable-page .tq-intro p { color: #000; }
    .tq-printable-page .tq-work { padding-block: .5rem 0; }
    .tq-paper-answers { break-before: page; }
    .tq-paper-questions > ol > li, .tq-paper-answers > ol > li { break-inside: avoid; }
}
