/* ICT Revision Workbook answers page (workbook.html). Uses the site's colour variables, so it follows the
   light, dark and high-contrast themes. Can be appended to style.css instead of being linked separately. */
.wb-page h2.wb-topic { margin: 34px 0 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wb-toc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 24px; }
@media (max-width: 900px) { .wb-toc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .wb-toc { grid-template-columns: minmax(0, 1fr); } }
.wb-toc h3 { font-size: 1rem; margin: 10px 0 4px; }
.wb-find .wb-toc ol { list-style: none; padding: 0; margin: 0; }
.wb-toc li { margin: 2px 0; }
.wb-sub { scroll-margin-top: calc(var(--hdr-h, 60px) + 12px); }
.wb-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.wb-head h3 { margin: 6px 0 2px; font-size: 1.25rem; }
.wb-total { font-weight: 700; color: var(--text-2); white-space: nowrap; }
.wb-links { margin: 0 0 6px; }
.wb-sec { display: flex; align-items: center; gap: 8px; margin: 18px 0 6px; font-size: 1rem; }
.wb-k { display: inline-flex; align-items: center; justify-content: center; width: 1.5em; height: 1.5em; border-radius: 5px; background: var(--text); color: var(--surface); font-size: .8rem; font-weight: 800; }
.wb-list { list-style: none; padding: 0; margin: 0; }
.wb-q { border-top: 1px solid var(--border); padding: 10px 0 8px; scroll-margin-top: calc(var(--hdr-h, 60px) + 12px); }
.wb-qh { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; }
.wb-n { display: inline-flex; align-items: center; justify-content: center; min-width: 1.9em; height: 1.9em; padding: 0 6px; border-radius: 999px; background: var(--brand); color: var(--brand-ink, #fff); font-weight: 800; font-size: .9rem; }
.wb-type { font-weight: 700; }
.wb-m { font-size: .85rem; font-weight: 700; color: var(--text-2); background: var(--surface-2); border-radius: 999px; padding: 1px 9px; }
.wb-lo { font-size: .78rem; color: var(--text-2); margin-left: auto; }
.wb-a { margin: 6px 0 0 2px; overflow-wrap: anywhere; }
.wb-a p { margin: 4px 0; }
.wb-al { font-weight: 700; margin-right: 6px; }
.wb-ans { margin: 4px 0; }
.wb-inline { display: inline; list-style: none; padding: 0; margin: 0; counter-reset: wb; }
.wb-inline li { display: inline; counter-increment: wb; margin-right: 12px; white-space: nowrap; }
.wb-inline li::before { content: counter(wb) " "; font-weight: 700; color: var(--text-2); }
.wb-pts { margin: 4px 0 6px; padding-left: 1.3em; }
.wb-pts li { margin: 2px 0; }
.wb-rule, .wb-why { color: var(--text-2); font-size: .93rem; }
.wb-part { margin: 6px 0 8px; }
.wb-ph { margin: 6px 0 2px; }
.wb-check { list-style: none; padding: 0; margin: 4px 0 6px; }
.wb-check label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; padding: 2px 0; }
.wb-check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--good); }
.wb-a code { font-family: var(--mono, monospace); font-size: .92em; background: var(--surface-2); padding: 0 4px; border-radius: 4px; }
@media (max-width: 600px) { .wb-lo { margin-left: 0; width: 100%; } }
@media print { .wb-find, .wb-links, .breadcrumb { display: none; } .wb-sub { break-inside: auto; } .wb-q { break-inside: avoid; } .wb-head, .wb-sec, h2.wb-topic { break-after: avoid; } }
