/* The learner licence practice test (learner-licence-test.php). Loaded on that page only, after site.css. */
/* Partly right, or short of a pass. Red is for buttons, links and wrong answers. */
:root { --part:#8f5b00; --part-b:#c97a00; --edge:#8f887f; } @media (prefers-color-scheme: dark) { :root { --part:#f0b84a; --part-b:#f0b84a; --edge:#8a8180; } }
.tt-wrap { padding-top:clamp(1.5rem, 4vw, 2.5rem); padding-bottom:clamp(2rem, 5vw, 3.5rem); }
#theory { background:var(--warm); border:1px solid var(--line); border-radius:24px; padding:clamp(1.25rem, 4vw, 2.75rem); }
#theory[hidden] { display:none; }
#theory h2 { font-size:clamp(1.35rem, 2.8vw, 2rem); line-height:1.18; letter-spacing:-.02em; margin:0 0 .5rem; }
#theory [tabindex="-1"]:focus { outline:none; }
.tt-start { display:grid; gap:1.25rem 3rem; align-items:center; } .tt-start p { margin:0; color:var(--fg-2); font-size:1.08rem; line-height:1.5; }
@media (min-width: 56rem) { .tt-start { grid-template-columns:minmax(0, 1fr) auto; } }
.tt-acts { display:flex; flex-wrap:wrap; gap:.75rem; } .tt-acts .btn + .btn { margin:0; }
.btn-line { background:transparent; color:var(--fg); border-color:var(--fg); } .btn-line:hover { background:var(--warm-2); border-color:var(--fg); box-shadow:none; }
.tt-prog { display:flex; flex-wrap:wrap; align-items:center; gap:.25rem 1.5rem; margin:1.5rem 0 0; padding-top:1.1rem; border-top:1px solid var(--line); color:var(--fg-2); }
.tt-link { background:none; border:0; padding:.6rem 0; min-height:44px; font:700 1rem/1.3 var(--head); color:var(--accent); text-decoration:underline; text-underline-offset:.2em; cursor:pointer; }
#theory .tt-save { margin:1.5rem 0 0; padding-top:1.1rem; border-top:1px solid var(--line); color:var(--fg-2); } .tt-save > p { margin:0; line-height:1.5; max-width:46rem; } #theory .tt-save h3 { font-size:1.25rem; margin:0 0 .35rem; color:var(--fg); } .tt-save .tt-link { text-align:left; }
.tt-save > p + h3, .tt-save > .tt-ok + .tt-acct { margin-top:.75rem; }
.tt-save form { max-width:34rem; } .tt-save label { margin:.9rem 0 .35rem; } .tt-row { display:flex; flex-wrap:wrap; gap:.75rem; } .tt-row input { flex:1 1 14rem; min-width:0; width:auto; } .tt-row .btn { flex:none; min-height:48px; margin:0; }
.tt-acct { display:flex; flex-wrap:wrap; align-items:center; gap:.1rem 1.5rem; } .tt-acct span { overflow-wrap:anywhere; } #theory .tt-save .tt-small { margin-top:.75rem; font-size:.95rem; } .tt-small a { display:inline-block; padding:.4rem 0; color:var(--accent); }
.tt-after { margin:2rem 0 0; padding-top:1.1rem; border-top:1px solid var(--line); } #theory .tt-after h3 { font-size:1.25rem; margin:0 0 .75rem; } .tt-after ul { list-style:none; margin:0; padding:0; display:grid; gap:.75rem; } @media (min-width: 40rem) { .tt-after ul { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
.tt-after li { margin:0; padding:1rem 1.2rem; background:var(--bg); border:1px solid var(--line); border-radius:16px; } .tt-after b { display:block; font:800 1.05rem/1.3 var(--head); } .tt-after a { display:inline-block; padding:.5rem 0; color:var(--accent); }
.tt-res + .tt-save { margin-top:2rem; }
@media (max-width: 30rem) { .tt-row .btn { width:100%; } }
.tt-h { font-size:1.25rem; margin:2rem 0 1rem; }
.tt-topics-wrap { padding-bottom:clamp(2rem, 5vw, 3.5rem); } .tt-topics-wrap h2 { margin:0 0 .35rem; } .tt-topics-wrap > p { color:var(--fg-2); margin:0 0 1.25rem; } .tt-on .tt-topics-wrap { display:none; }
.tt-topics { list-style:none; margin:0; padding:0; display:grid; gap:.75rem; }
@media (min-width: 40rem) { .tt-topics { grid-template-columns:repeat(2, minmax(0, 1fr)); } } @media (min-width: 72rem) { .tt-topics { grid-template-columns:repeat(5, minmax(0, 1fr)); } }
.tt-topics li { margin:0; display:flex; flex-direction:column; gap:.35rem; padding:1.15rem 1.25rem; background:var(--warm); border:1px solid var(--line); border-radius:16px; }
.tt-topics a { color:var(--fg); text-decoration:none; } .tt-topics b { display:block; font:800 1.08rem/1.3 var(--head); } .tt-topics small { display:inline-block; padding:.35rem 0; font:600 1rem/1.3 var(--body); color:var(--accent); text-decoration:underline; text-underline-offset:.2em; } .tt-topics a:hover b { color:var(--red-t); }
.tt-topics li p { margin:0; color:var(--fg-2); line-height:1.45; } .tt-go { display:flex; flex-wrap:wrap; align-items:center; gap:.4rem 1rem; margin-top:auto; padding-top:.6rem; } .tt-go .btn { width:auto; margin:0; min-height:44px; padding:.5rem 1.25rem; } .tt-go span { color:var(--fg-2); font-weight:600; }
.tt-got { flex:1 0 100%; height:6px; border-radius:3px; background:var(--line); overflow:hidden; } .tt-got[hidden] { display:none; } .tt-got i { display:block; height:100%; background:var(--ok); }
.tt-thumb { display:block; margin:-1.15rem -1.25rem .6rem; aspect-ratio:2 / 1; overflow:hidden; border-radius:15px 15px 0 0; background:#DDE8CF; } .tt-thumb img, .tt-thumb picture { display:block; width:100%; height:100%; object-fit:cover; }
/* A phone: picture, name and Start on one row, so ten topics are soon scrolled past. */
@media (max-width: 39.99rem) {
  .tt-topics { gap:.6rem; } .tt-topics li { display:grid; grid-template-columns:4.25rem minmax(0, 1fr) auto; gap:.35rem .85rem; align-items:center; padding:.75rem .85rem; }
  .tt-thumb { margin:0; aspect-ratio:auto; height:4.25rem; border-radius:10px; } .tt-topics li > a { grid-column:2 / 4; } .tt-topics b { font-size:1.03rem; line-height:1.25; } .tt-topics small { padding:.3rem 0 0; font-size:.95rem; }
  .tt-topics li p { grid-column:1 / 3; font-size:.97rem; line-height:1.35; } .tt-go { display:contents; } .tt-go .btn { grid-column:3; grid-row:2; padding:.5rem 1rem; } .tt-go span:empty { display:none; } .tt-go span { grid-column:1 / 4; font-size:.95rem; line-height:1.3; } .tt-got { grid-column:1 / 4; }
}
#theory .tt-save.line { margin-top:.5rem; } .tt-save.line p { display:flex; flex-wrap:wrap; align-items:center; gap:0 1.25rem; }
.tt-top { display:flex; justify-content:space-between; align-items:center; gap:1rem; } .tt-top p { margin:0; font:700 1rem/1.3 var(--head); color:var(--fg-2); }
.tt-bar { height:8px; border-radius:4px; background:var(--line); overflow:hidden; margin:.5rem 0 1.5rem; } .tt-bar i { display:block; height:100%; width:0; background:var(--fg-2); border-radius:4px; transition:width .25s; }
.tt-q { display:grid; gap:1.5rem 2.5rem; }
@media (min-width: 56rem) { .tt-q.has-pic { grid-template-columns:minmax(0, 1fr) minmax(0, 1.1fr); align-items:start; } }
.tt-pic, .tt-sign { margin:0; border-radius:16px; overflow:hidden; background:#DDE8CF; } .tt-pic img { display:block; width:100%; height:auto; max-height:21rem; object-fit:contain; }
.tt-pic figcaption { padding:.6rem 1rem; background:var(--bg); color:var(--fg-2); font-weight:600; }
.tt-sign { background:#EEF1EA; display:grid; place-items:center; padding:1.5rem; } .tt-sign img { display:block; width:auto; max-width:100%; height:clamp(8rem, 24vw, 15rem); object-fit:contain; }
.tt-q h2 { font-size:clamp(1.2rem, 2vw, 1.5rem) !important; line-height:1.28 !important; }
.tt-opts { display:grid; gap:.6rem; margin:1rem 0 0; }
.tt-opt { display:flex; align-items:center; gap:.9rem; width:100%; min-height:56px; padding:.8rem 1.1rem; text-align:left; font:600 1.06rem/1.4 var(--body); color:var(--fg); background:var(--bg); border:2px solid var(--edge); border-radius:14px; cursor:pointer; }
.tt-opt::before { content:""; flex:none; width:1.25rem; height:1.25rem; border-radius:50%; border:2px solid var(--muted); background:var(--bg); }
.tt-opt:hover:not(:disabled) { border-color:var(--fg); } .tt-opt:disabled { cursor:default; color:var(--fg); }
.tt-opt.on { border-color:var(--fg); } .tt-opt.on::before { border-color:var(--fg); box-shadow:inset 0 0 0 4px var(--bg); background:var(--fg); }
.tt-opt.ok { border-color:var(--ok); background:color-mix(in srgb, var(--ok) 9%, var(--bg)); } .tt-opt.ok::before { border-color:var(--ok); background:var(--ok); }
.tt-opt.no { border-color:var(--err); background:color-mix(in srgb, var(--err) 8%, var(--bg)); } .tt-opt.no::before { border-color:var(--err); background:var(--err); }
/* A tick and a cross as well as the colours. */
.tt-opt.ok::before, .tt-opt.no::before { display:grid; place-items:center; width:1.6rem; height:1.6rem; margin:0 calc(2px - .175rem); border:0; color:var(--bg); font:800 1rem/1 var(--head); }
.tt-opt.ok::before { content:"\2713"; content:"\2713" / ""; } .tt-opt.no::before { content:"\2715"; content:"\2715" / ""; }
.tt-say p { margin:1rem 0 0; color:var(--fg-2); line-height:1.55; font-size:1.06rem; } .tt-say p + p { margin-top:.4rem; }
#theory .tt-ok { color:var(--ok); font-weight:700; } #theory .tt-no { color:var(--err); font-weight:700; }
.tt-next { display:flex; flex-wrap:wrap; gap:.75rem; margin:1.5rem 0 0; min-height:48px; } .tt-next .btn + .btn { margin:0; }
/* Next stays at the bottom of the screen, so it is never below it. */
.tt-next.up { position:sticky; bottom:0; z-index:5; margin:1rem 0 0; padding:.75rem 0 calc(.75rem + env(safe-area-inset-bottom)); background:var(--warm); box-shadow:0 -1px 0 var(--line); }
.tt-next .btn[class] { min-height:48px; }
.tt-res h2 { font-size:clamp(2.2rem, 6vw, 3.6rem) !important; } .tt-res p { font-size:1.12rem; color:var(--fg-2); } .tt-res .tt-acts { margin:1.25rem 0 0; }
.tt-res.ok, .tt-res.no { background:var(--bg); border:2px solid var(--part-b); border-radius:16px; padding:clamp(1.25rem, 3vw, 2rem); }
.tt-res.ok { border-color:var(--ok); }
#theory .tt-verdict { margin:0 0 .35rem; font:800 clamp(1.15rem, 2.4vw, 1.5rem)/1.25 var(--head); color:var(--part); } #theory .tt-res.ok .tt-verdict { color:var(--ok); }
.tt-meter { position:relative; margin:.35rem 0 1rem; max-width:40rem; padding-bottom:1.7rem; } .tt-meter > div { position:relative; height:14px; border-radius:7px; background:var(--line); } .tt-meter i { display:block; height:100%; border-radius:7px; background:var(--part-b); } .tt-res.ok .tt-meter i { background:var(--ok); }
.tt-meter b { position:absolute; top:-4px; bottom:-4px; width:3px; margin-left:-1.5px; background:var(--fg); border-radius:2px; } .tt-meter span { position:absolute; bottom:0; transform:translateX(-50%); white-space:nowrap; font:700 .95rem/1.3 var(--head); color:var(--fg-2); }
.tt-by { list-style:none; margin:0; padding:0; display:grid; gap:0 2.5rem; } @media (min-width: 56rem) { .tt-by { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
.tt-by li { margin:0; display:grid; grid-template-columns:minmax(0, 1fr) auto auto; align-items:center; gap:.1rem 1rem; min-height:56px; padding:.5rem 0; border-top:1px solid var(--line); } .tt-by li.all { grid-template-columns:minmax(0, 1fr) auto; }
.tt-by-n { font-weight:600; } .tt-by-s { color:var(--fg-2); white-space:nowrap; } .tt-by-b { grid-column:1 / 3; grid-row:2; height:6px; border-radius:3px; background:var(--line); overflow:hidden; } .tt-by-b i { display:block; height:100%; background:var(--part-b); } .tt-by .all .tt-by-b i { background:var(--ok); } .tt-by .tt-link { grid-column:3; grid-row:1 / 3; }
.tt-miss li[hidden] { display:none; } .tt-miss li:focus { outline:none; } .tt-miss + p { margin:0; }
.tt-miss { list-style:none; margin:0; padding:0; } .tt-miss li { display:grid; gap:1rem 1.75rem; padding:1.4rem 0; border-top:1px solid var(--line); margin:0; } .tt-miss b { font:700 1.08rem/1.4 var(--head); } .tt-miss p { margin:.4rem 0 0; color:var(--fg-2); line-height:1.5; }
.tt-miss img { display:block; width:100%; max-width:14rem; max-height:9rem; object-fit:contain; background:#fff; border-radius:12px; }
@media (min-width: 48rem) { .tt-miss li:has(img) { grid-template-columns:14rem minmax(0, 1fr); align-items:start; } }
.tt-sample { list-style:none; margin:1.5rem 0; padding:0 !important; } .prose .tt-sample > li { margin:0; padding:1.4rem 0; border-top:1px solid var(--line); }
.tt-sample b { display:block; font:700 1.1rem/1.4 var(--head); color:var(--fg); margin-bottom:.5rem; } .tt-sample img { display:block; max-width:15rem; width:100%; max-height:10rem; object-fit:contain; object-position:left; margin:0 0 .75rem; background:#fff; border-radius:12px; }
.prose .tt-you { margin:-.35rem 0 .75rem; color:var(--muted); font-weight:600; font-size:1rem; }
.prose .tt-sample ol { list-style:upper-alpha; margin:.4rem 0 .6rem; padding-left:1.4rem; } .tt-sample details { margin:0; }
/* Made tappable by theory.js; the same words stay in the page. */
.tt-sample > li[hidden] { display:none; } .tt-sample > li:focus { outline:none; }
.prose .tt-sample .tap ol { list-style:none; margin:.75rem 0 0; padding:0; display:grid; gap:.55rem; } .prose .tt-sample .tap ol li { margin:0; padding:0; } .prose .tt-sample .tap ol li::before { display:none; }
.tt-sample .tap details { display:none; } .tt-sample .tap .tt-say .tt-ok { color:var(--ok); font-weight:700; } .tt-sample .tap .tt-say .tt-no { color:var(--err); font-weight:700; }
.tt-sample .tap .tt-opt span { font-weight:600; } .tt-more { margin:1rem 0 0; }

/* A question on a phone: all of it on one screen where it can be. The site's header steps aside during a test. */
@media (max-width: 40rem) {
  body.tt-on .top { display:none; } body.tt-on #theory { padding:.9rem 1rem 0; border-radius:18px; }
  .tt-top .tt-name { display:none; } .tt-top .tt-link { min-height:40px; padding:.35rem 0; } .tt-bar { margin:.15rem 0 .85rem; height:6px; }
  .tt-q { gap:.8rem; } .tt-pic img { max-height:8.25rem; } .tt-pic figcaption { padding:.3rem .8rem; font-size:.95rem; } .tt-sign { padding:.7rem; } .tt-sign img { height:7.5rem; }
  .tt-q h2 { font-size:1.12rem !important; line-height:1.28 !important; margin:0 !important; } .tt-opts { gap:.45rem; margin:.7rem 0 0; } .tt-opt { min-height:50px; padding:.55rem .85rem; gap:.75rem; line-height:1.3; }
  .tt-say p { margin:.7rem 0 0; line-height:1.45; } .tt-next.up { margin:.6rem -1rem 0; padding-left:1rem; padding-right:1rem; border-radius:0 0 18px 18px; } .tt-next.up { flex-wrap:nowrap; } .tt-next.up .btn { width:auto; flex:0 0 auto; } .tt-next.up .btn:last-child { flex:1; } .tt-next:not(.up) { min-height:.9rem; margin:0; }
}
.tt-rest small { display:block; margin-top:.15rem; font:400 .95rem/1.3 var(--body); color:var(--muted); } .prose .tt-rest { margin:1.25rem 0 2rem; padding:0; list-style:none; } .prose .tt-rest li { padding:0; } .prose .tt-rest li::before { display:none; }
.prose h3.tt-set { font-size:1.4rem; margin:2.25rem 0 0; } .prose .tt-set + .tt-sample { margin-top:.9rem; }
.tt-start a.btn-line { text-decoration:none; }

/* The top of the page: the heading with the buttons under it, and the photo to the edge. A test or a score has the page's width. */
.tt-band { position:relative; background:var(--bg); } .tt-band .phead { background:none; border:0; overflow:visible; } .tt-band #theory { background:var(--bg); } .tt-band .tt-next.up { background:var(--bg); }
.tt-full .tt-band { background:var(--warm); border-bottom:1px solid var(--line); }
body:not(.tt-full) .tt-hero .phead-in { padding-bottom:0; } body:not(.tt-full) .tt-hero .tt-wrap { padding-top:1.75rem; padding-bottom:clamp(1rem, 3vw, 2rem); }
body:not(.tt-full) .tt-hero #theory { background:none; border:0; border-radius:0; padding:0; } body:not(.tt-full) .tt-hero .tt-start { grid-template-columns:minmax(0, 1fr); }
/* Said by a screen reader; on screen the page's own heading says it. */
body:not(.tt-full) .tt-hero .tt-start h2 { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
body:not(.tt-full) .tt-hero .tt-start > div:has(> h2:only-child) { position:absolute; }
body:not(.tt-full) .tt-hero #theory .tt-prog, body:not(.tt-full) .tt-hero #theory .tt-save { margin-top:.6rem; padding-top:0; border:0; } body:not(.tt-full) .tt-hero #theory .tt-prog + .tt-save.line { margin-top:-.35rem; } body:not(.tt-full) .tt-hero #theory .tt-save:not(.line):has(form) { margin-top:1rem; }
/* Carry on, a new test and quick questions on one line. */
@media (min-width: 40rem) { body:not(.tt-full) .tt-hero .tt-acts:has(.btn:nth-child(3)) .btn { padding:.7rem 1.1rem; font-size:.97rem; } body:not(.tt-full) .tt-hero .tt-acts:has(.btn:nth-child(3)) { gap:.5rem; } }
.tt-photo, .tt-taste { display:none; } .tt-photo img { display:block; width:100%; height:100%; object-fit:cover; object-position:60% 38%; }
@media (min-width: 40rem) and (min-height: 40rem) and (max-width: 61.99rem) { body:not(.tt-full) .tt-photo { display:block; height:17rem; overflow:hidden; } body:not(.tt-full) .tt-hero .phead-in { padding-top:1.25rem; } }
@media (min-width: 62rem) {
  .tt-band { --split:52vw; --tall:36rem; }
  body:not(.tt-full) .tt-photo { display:block; position:absolute; top:0; right:0; left:var(--split); height:var(--tall); overflow:hidden; border-bottom-left-radius:34px; }
  /* Keeps the learner at the photo's right-hand side, whatever its width. */
  .tt-photo img { object-position:min(0px, calc(100vw - var(--split) - 52rem)) 40%; }
  body:not(.tt-full) .tt-hero { min-height:var(--tall); display:flex; flex-direction:column; justify-content:center; }
  body:not(.tt-full) .tt-hero .phead, body:not(.tt-full) .tt-hero .tt-wrap { width:100%; } body:not(.tt-full) .tt-hero .phead-text, body:not(.tt-full) .tt-hero #theory { max-width:calc(var(--split) - max(2rem, (100vw - var(--wide)) / 2 + 2rem) - 3rem); }
  body:not(.tt-full) .tt-hero .phead h1 { font-size:clamp(2.6rem, 4vw, 3.6rem); }
}
@media (min-width: 80rem) {
  .tt-band { --split:48vw; }
  body:not(.tt-full) .tt-taste { display:block; position:absolute; left:calc(var(--split) + 1.5rem); top:calc(var(--tall) - 1.75rem); transform:translateY(-100%); width:17rem; padding:1rem; background:var(--bg); border-radius:20px; box-shadow:0 24px 60px -18px rgba(36,31,30,.45); cursor:pointer; }
  .tt-taste img { display:block; width:100%; height:auto; object-fit:cover; border-radius:12px; } .tt-taste b { display:block; margin:.8rem 0 .6rem; font:800 1.05rem/1.3 var(--head); color:var(--fg); }
  .tt-taste span { display:flex; align-items:center; gap:.6rem; margin-top:.4rem; padding:.5rem .7rem; border:2px solid var(--edge); border-radius:11px; font:600 .86rem/1.3 var(--body); color:var(--fg); }
  .tt-taste span::before { content:""; flex:none; width:1rem; height:1rem; border:2px solid var(--muted); border-radius:50%; }
  .tt-taste .ok { border-color:var(--ok); background:color-mix(in srgb, var(--ok) 9%, var(--bg)); } .tt-taste .ok::before { content:"\2713"; display:grid; place-items:center; width:1.3rem; height:1.3rem; margin:0 -.15rem; border:0; background:var(--ok); color:var(--bg); font:800 .8rem/1 var(--head); }
}
.tt-full .tt-hero .phead { display:none; }
.tt-topics-wrap { padding-top:clamp(1.75rem, 4vw, 3rem); }
/* Jumping between questions */
.tt-tools { display:flex; gap:1.25rem; align-items:center; }
.tt-map { list-style:none; margin:.25rem 0 1.1rem; padding:0; display:grid; grid-template-columns:repeat(12, minmax(0, 1fr)); gap:.4rem; } .tt-map li { margin:0; }
.tt-map button { width:100%; min-height:44px; padding:0; font:700 1rem/1 var(--head); color:var(--fg); background:var(--bg); border:2px solid var(--line); border-radius:10px; cursor:pointer; } .tt-map button:hover { border-color:var(--fg); } .tt-map button.done { background:var(--warm-2); border-color:var(--muted); } .tt-map button.here { border-color:var(--fg); box-shadow:inset 0 0 0 1px var(--fg); }
.tt-res .tt-map { grid-template-columns:repeat(auto-fill, minmax(2.75rem, 1fr)); max-width:32rem; margin:1rem 0 0; }
/* After a pass */
.tt-up { margin:1.25rem 0 0; padding:clamp(1.25rem, 3vw, 2rem); background:var(--warm-2); border-radius:16px; } #theory .tt-up h3 { font-size:clamp(1.25rem, 2.4vw, 1.6rem); margin:0 0 .5rem; } .tt-up p { margin:0; font-size:1.1rem; line-height:1.5; color:var(--fg-2); } .tt-up .tt-acts { margin:1.1rem 0 0; } .tt-up a.btn { text-decoration:none; text-align:center; justify-content:center; }
@media (max-width: 40rem) { .tt-on .tt-band { background:none; border:0; } .tt-tools { gap:1rem; } .tt-map { grid-template-columns:repeat(7, minmax(0, 1fr)); gap:.35rem; } }

/* A test on its own: the rest of the site steps aside until it ends. The logo stays. */
body.tt-on .announce, body.tt-on .nav-desk, body.tt-on .top-cta, body.tt-on .top .menu, body.tt-on .precta, body.tt-on .foot, body.tt-on main > :not(.tt-band):not(.tt-wrap) { display:none; }
.tt-on .tt-band { min-height:calc(100vh - 5rem); } @media (max-width: 40rem) { .tt-on .tt-band { min-height:100vh; } body.tt-on .tt-wrap { padding-top:.75rem; padding-bottom:.75rem; } }
.tt-on #theory { max-width:60rem; margin-inline:auto; }
@media (min-width: 40.01rem) { .tt-next .btn:last-child { margin-left:auto !important; } .tt-on #theory { padding:clamp(1.25rem, 3vw, 2.25rem); } }
/* The score, with the next thing to do beside it. */
@media (min-width: 62rem) { .tt-two { display:grid; grid-template-columns:minmax(0, 1.15fr) minmax(0, 1fr); gap:1.25rem; } .tt-two .tt-up { margin:0; display:flex; flex-direction:column; justify-content:center; } }
.tt-check h2 { font-size:clamp(1.6rem, 4vw, 2.4rem) !important; } @media (max-width: 40rem) { body.tt-on .tt-check { padding-bottom:1rem; } }
@media (min-width: 72rem) { .tt-topics li { padding:1rem; } .tt-thumb { margin:-1rem -1rem .5rem; } .tt-topics b { font-size:1rem; } .tt-topics li p { font-size:.97rem; } .tt-go span { font-size:.95rem; } }
@media (min-width: 88rem) { body:not(.tt-full) .tt-taste { left:calc(var(--split) + 2.25rem); top:calc(var(--tall) - 2rem); width:19rem; padding:1.1rem; } .tt-taste span { font-size:.95rem; } }
.tt-tools .tt-link { white-space:nowrap; } @media (max-width: 22rem) { .tt-top { gap:.5rem; } .tt-top p, .tt-tools .tt-link { font-size:.93rem; } .tt-tools { gap:.75rem; } }
/* A topic's page: its own drawing at the top, and a question's picture beside it. */
.tt-draw { background:#DDE8CF; }
@media (max-width: 61.99rem) { body:not(.tt-full) .tt-draw { display:none; } body:not(.tt-full) .tt-band-topic .phead-in { padding-top:clamp(2rem, 5vw, 3.25rem); }  }
@media (min-width: 62rem) { .tt-band-topic { --tall:30rem; } body:not(.tt-full) .tt-band-topic .tt-hero .phead h1 { font-size:clamp(2.3rem, 3.1vw, 2.9rem); line-height:1.08; } body:not(.tt-full) .tt-draw img { object-position:50% 50%; } body:not(.tt-full) .tt-draw img[src*='t-signs'] { object-fit:contain; object-position:50% 100%; } }
@media (min-width: 48rem) {
  .prose .tt-sample > li:has(> img) { display:grid; grid-template-columns:15rem minmax(0, 1fr); column-gap:1.75rem; align-items:start; } .tt-sample > li[hidden] { display:none !important; }
  .tt-sample > li:has(> img) > * { grid-column:2; min-width:0; } .tt-sample > li > img { grid-column:1; grid-row:1 / span 6; margin:0; } .prose .tt-sample > li > .tt-you { margin:0 0 .4rem; }
}
/* A phone held sideways: the question has the whole screen, its picture beside it. */
@media (max-height: 32rem) and (orientation: landscape) {
  body.tt-on .top { display:none; } body.tt-on .tt-wrap { padding-top:.5rem; padding-bottom:.5rem; } body.tt-on #theory { padding:.5rem 1rem 0; border-radius:16px; max-width:none; } .tt-on .tt-band { min-height:100vh; }
  .tt-on .tt-top .tt-link { min-height:40px; padding:.35rem 0; } .tt-on .tt-bar { margin:0 0 .6rem; height:5px; }
  .tt-on .tt-q { gap:.5rem 1.25rem; } .tt-on .tt-q.has-pic { grid-template-columns:minmax(0, 2fr) minmax(0, 3fr); align-items:start; } .tt-on .tt-pic img { max-height:11rem; } .tt-on .tt-pic figcaption { padding:.25rem .75rem; font-size:.9rem; } .tt-on .tt-sign { padding:.5rem; } .tt-on .tt-sign img { height:9rem; }
  .tt-on .tt-q h2 { font-size:1.08rem !important; line-height:1.25 !important; margin:0 !important; } .tt-on .tt-opts { gap:.4rem; margin:.5rem 0 0; } .tt-on .tt-opt { min-height:44px; padding:.4rem .8rem; line-height:1.25; font-size:1rem; } .tt-on .tt-q:not(.has-pic) .tt-opts { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .tt-on .tt-say p { margin:.5rem 0 0; line-height:1.4; } .tt-on .tt-next.up { margin:.5rem 0 0; padding:.4rem 0 calc(.5rem + env(safe-area-inset-bottom)); } .tt-on .tt-next .btn[class] { min-height:44px; padding:.4rem 1.25rem; }
  .tt-on .tt-map { gap:.3rem; margin:.1rem 0 .6rem; } .tt-on .tt-map button { min-height:40px; } .tt-on .tt-check { padding-bottom:1rem; }
}
