/* nzdriving.com site style, 2026-11-05
   loaded after style.css (trimmed W3.CSS 4.13): sets the brand look and restyles the W3 classes the pages use.
   colours come from the logo: charcoal car, white, red L plate; answer states follow traffic lights.
   header and footer markup: templates/temp_top_02.php and templates/temp_bottom.php */

:root{
  --sg-ink:#16233b;        /* navy: text, header, dark buttons (NZ look, PRD decision 5) */
  --sg-red:#2f6fed;        /* NZ blue: main actions, active menu (the name is kept from sg, so its rules carry over) */
  --sg-red-dark:#1f4fb0;   /* links, hover */
  --sg-mist:#f4f6f9;       /* page background */
  --sg-paper:#ffffff;      /* page panel, cards */
  --sg-line:#e1e6ee;       /* borders */
  --sg-muted:#5c6b82;      /* secondary text */
  --sg-go:#1f9d63;         /* correct, passed */
  --sg-go-soft:#e7f6ee;
  --sg-amber:#b7791f;      /* flagged, notices */
  --sg-amber-soft:#fdf3e1;
  --sg-stop:#d0021b;       /* wrong, failed, errors (on sg these used the logo red) */
  --sg-stop-dark:#a80016;
  --sg-stop-soft:#fdeceb;
  --sg-display:"Public Sans","Segoe UI",Roboto,Arial,sans-serif;
  --sg-body:"Public Sans","Segoe UI",Roboto,Arial,sans-serif;
  --sg-wrap:1080px;
  --sg-radius:10px;
}

/* ---------- base ---------- */
html,body{font-family:var(--sg-body);font-size:16px;line-height:1.6}
body{background:var(--sg-mist);color:var(--sg-ink)}
h1,h2,h3,h4,h5,h6{font-family:var(--sg-display);color:var(--sg-ink);line-height:1.2}
a{color:var(--sg-red-dark)}
a:hover,a:active{color:var(--sg-red)}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--sg-red);outline-offset:2px}
hr{border-top-color:var(--sg-line)}
img{max-width:100%}
.sg-wrap{max-width:var(--sg-wrap);margin:0 auto;padding:0 20px}

/* ---------- header ---------- */
.sg-header{background:var(--sg-paper);border-bottom:1px solid var(--sg-line);position:relative;z-index:20}
.sg-head{display:flex;align-items:center;gap:16px;min-height:68px}
.sg-logo{display:block;flex:none;line-height:0}
.sg-logo img{height:44px;width:auto}
.sg-nav{flex:1;display:flex;align-items:center;gap:4px}
.sg-nav ul{list-style:none;margin:0;padding:0}
.sg-menu{display:flex;gap:2px;flex:1}
.sg-menu > li{position:relative}
.sg-menu a,.sg-menu .sg-sub-title{display:block;font-family:var(--sg-display);font-weight:600;font-size:16px;color:var(--sg-ink);text-decoration:none;padding:10px 12px;border-radius:6px;white-space:nowrap;cursor:pointer}
.sg-menu a:hover,.sg-menu .sg-sub-title:hover{background:var(--sg-mist);color:var(--sg-ink)}
.sg-menu > li > a.sg-on,.sg-menu > li.sg-on > .sg-sub-title{color:var(--sg-red);box-shadow:inset 0 -3px 0 var(--sg-red);border-radius:6px 6px 0 0}
.sg-sub-title::after{content:"";display:inline-block;margin-left:6px;width:6px;height:6px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-3px) rotate(45deg)}
.sg-sub{display:none;position:absolute;left:0;top:100%;min-width:210px;background:var(--sg-paper);border:1px solid var(--sg-line);border-radius:var(--sg-radius);box-shadow:0 12px 28px rgba(22,35,59,.12);padding:6px;z-index:30}
.sg-sub a{font-family:var(--sg-body);font-weight:600;font-size:15px}
.sg-sub a.sg-on{color:var(--sg-red)}
.sg-menu > li:hover > .sg-sub,.sg-menu > li:focus-within > .sg-sub{display:block}
.sg-account{display:flex;align-items:center;gap:8px;flex:none}
.sg-account .sg-sub{left:auto;right:0}
.sg-user{position:relative}
.sg-user > .sg-sub-title{font-family:var(--sg-display);font-weight:600;font-size:15px;padding:8px 12px;border:1px solid #ccd3df;border-radius:8px;cursor:pointer;display:block;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sg-user:hover > .sg-sub,.sg-user:focus-within > .sg-sub{display:block}
.sg-user .sg-sub a{display:block;padding:8px 10px;border-radius:6px;color:var(--sg-ink);text-decoration:none;white-space:nowrap}
.sg-user .sg-sub a:hover{background:var(--sg-mist)}
.sg-user .sg-sub hr{margin:6px 0}
.sg-burger{display:none;margin-left:auto;align-items:center;gap:8px;background:var(--sg-ink);color:#fff;border:0;border-radius:8px;padding:9px 12px;font-family:var(--sg-display);font-weight:600;font-size:15px;cursor:pointer}
.sg-burger i{display:block;width:18px;height:2px;background:#fff;box-shadow:0 -6px 0 #fff,0 6px 0 #fff;margin:6px 0}

/* ---------- buttons (own and W3) ---------- */
.sg-btn,.w3-button,.w3-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;font-family:var(--sg-display);font-weight:600;font-size:15px;line-height:1.2;border-radius:8px;padding:10px 16px;border:1px solid transparent;text-decoration:none;cursor:pointer;white-space:nowrap;transition:background-color .15s,border-color .15s,color .15s}
.sg-btn-primary,.w3-button.w3-red{background:var(--sg-red)!important;color:#fff!important}
.sg-btn-primary:hover,.w3-button.w3-red:hover{background:var(--sg-red-dark)!important;color:#fff!important}
.sg-btn-ghost{background:var(--sg-paper);color:var(--sg-ink);border-color:#ccd3df}
.sg-btn-ghost:hover{border-color:var(--sg-ink);color:var(--sg-ink)}
.sg-btn-small{padding:8px 12px;font-size:14px}
.w3-button.w3-black,.w3-black{background:var(--sg-ink)!important;color:#fff!important}
.w3-button.w3-black:hover{background:var(--sg-red)!important}
.w3-hover-red:hover{background:var(--sg-red)!important;color:#fff!important}
.w3-button.w3-grey,.w3-button.w3-light-grey{background:var(--sg-mist)!important;color:var(--sg-ink)!important;border-color:var(--sg-line)}
.w3-button.w3-green,.w3-green{background:var(--sg-go)!important;color:#fff!important}
.w3-hover-green:hover{background:var(--sg-go)!important;color:#fff!important}
.w3-hover-grey:hover{background:#e9e5e3!important;color:var(--sg-ink)!important}
input[type=submit],input[type=button],button[type=submit]{font-family:var(--sg-display);font-weight:600;border-radius:8px;cursor:pointer}

/* ---------- colours used by the pages, mapped to the brand ---------- */
.w3-text-deep-orange,.w3-text-red,.w3-text-orange{color:var(--sg-red)!important}
.w3-red{background:var(--sg-red)!important;color:#fff!important}
.w3-border-red{border-color:var(--sg-red)!important}
.w3-text-green{color:var(--sg-go)!important}
.w3-text-grey,.w3-text-gray{color:var(--sg-muted)!important}
.w3-light-grey,.w3-light-gray{background:var(--sg-mist)!important;color:var(--sg-ink)!important}
.w3-yellow{background:var(--sg-amber-soft)!important;color:var(--sg-ink)!important}
.w3-orange{background:var(--sg-ink)!important;color:#fff!important}
.w3-orange a{color:#fff}
.w3-border{border-color:var(--sg-line)!important}

/* ---------- forms ---------- */
.w3-input,.w3-select,.sg-page input[type=text],.sg-page input[type=email],.sg-page input[type=password],.sg-page textarea,.sg-page select{font-family:var(--sg-body);font-size:16px;color:var(--sg-ink);background:var(--sg-paper);border:1px solid #ccd3df!important;border-radius:8px;padding:10px 12px}
.w3-input:focus,.w3-select:focus,.sg-page input:focus,.sg-page textarea:focus,.sg-page select:focus{border-color:var(--sg-ink)!important;outline:3px solid rgba(198,40,40,.18);outline-offset:0}
.w3-check,.w3-radio{accent-color:var(--sg-red)}

/* ---------- page panel ---------- */
.sg-main{padding:24px 0 40px}
.sg-page{background:var(--sg-paper);border:1px solid var(--sg-line);border-radius:12px;padding:28px 32px 32px;min-height:320px}
.sg-page h1{font-size:30px;font-weight:700;margin:0 0 16px}
.sg-page h1.w3-border-bottom{border-bottom:0!important;padding-bottom:0}
.sg-page h1::after{content:"";display:block;width:48px;height:4px;background:var(--sg-red);border-radius:2px;margin-top:10px}
.sg-page h2{font-size:24px;font-weight:600}
.sg-page h3{font-size:20px;font-weight:600}
.sg-page .w3-xlarge{font-size:28px!important}
.sg-page .w3-panel,.sg-page .w3-light-grey.w3-padding{border-radius:var(--sg-radius)}

/* ---------- data tables ---------- */
.w3-table,.w3-table-all{border:0!important;font-size:15px}
.w3-table th,.w3-table-all th{font-family:var(--sg-display);font-weight:600;color:var(--sg-ink);border-bottom:2px solid var(--sg-ink);background:transparent!important}
/* header rows the pages colour with w3-grey or bgcolor: one light band */
.sg-page tr.w3-grey,.sg-page tr.eventmain,.sg-page tr[bgcolor]{background:var(--sg-mist)!important;color:var(--sg-ink)!important}
.w3-table td,.w3-table-all td{border-bottom:1px solid var(--sg-line);font-variant-numeric:tabular-nums}
.w3-table-all tr,.w3-table-all tr:nth-child(odd),.w3-table-all tr:nth-child(even){background:transparent;border-bottom:0}
.w3-hoverable tbody tr:hover,.w3-table-all tr:hover{background:#f8f9fb!important}

/* ---------- footer ---------- */
.sg-footer{background:var(--sg-ink);color:#d6dce6;font-size:15px;padding:36px 0 28px}
.sg-footer a{color:#fff;text-decoration:none}
.sg-footer a:hover{color:#ff8a80;text-decoration:underline}
.sg-foot{display:grid;grid-template-columns:1.4fr repeat(3,1fr);gap:28px}
.sg-foot h2{font-family:var(--sg-display);font-size:15px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:#9aa5b8;margin:0 0 10px}
.sg-foot ul{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.sg-foot .sg-tagline{font-family:var(--sg-display);font-size:20px;font-weight:600;color:#fff;line-height:1.3;margin:0 0 10px}
.sg-foot p{margin:0 0 10px}
.sg-copy{border-top:1px solid #3a3636;margin-top:28px;padding-top:16px;font-size:14px;color:#9aa5b8;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}

/* ---------- phones and tablets ---------- */
@media (max-width:960px){
  .sg-head{flex-wrap:wrap;min-height:60px;padding-top:8px;padding-bottom:8px}
  .sg-logo img{height:38px}
  .sg-burger{display:inline-flex}
  .sg-nav{display:none;flex-basis:100%;flex-direction:column;align-items:stretch;gap:10px;padding:8px 0 12px;border-top:1px solid var(--sg-line)}
  .sg-header.sg-open .sg-nav{display:flex}
  .sg-menu{flex-direction:column}
  .sg-menu a,.sg-menu .sg-sub-title{padding:11px 8px;font-size:17px}
  .sg-menu > li > a.sg-on,.sg-menu > li.sg-on > .sg-sub-title{box-shadow:inset 3px 0 0 var(--sg-red);border-radius:0}
  .sg-sub-title::after{display:none}
  .sg-menu .sg-sub-title{font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--sg-muted);padding:14px 8px 2px;cursor:default}
  .sg-menu .sg-sub-title:hover{background:none;color:var(--sg-muted)}
  .sg-sub{display:block;position:static;border:0;box-shadow:none;padding:0 0 0 14px;min-width:0}
  .sg-sub a{font-size:16px;padding:9px 8px}
  .sg-account{flex-wrap:wrap}
  .sg-account .sg-btn{flex:1}
  .sg-user{flex-basis:100%}
  .sg-user > .sg-sub-title{max-width:none}
  .sg-user .sg-sub{display:block;position:static;border:0;box-shadow:none;padding:4px 0 0}
  .sg-foot{grid-template-columns:1fr 1fr}
  .sg-foot > div:first-child{grid-column:1/-1}
}
@media (max-width:600px){
  .sg-wrap{padding:0 14px}
  .sg-main{padding:12px 0 24px}
  .sg-page{padding:18px 16px 22px;border-radius:10px}
  .sg-page h1{font-size:25px}
  .sg-page .w3-xlarge{font-size:24px!important}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}

/* =====================================================================
   phase 2 components: learning pages (home, topics, practice, mock test, review, flash cards)
   ===================================================================== */

/* page head: title, one line of help, optional actions on the right */
.sg-pagehead{display:flex;justify-content:space-between;align-items:flex-end;gap:12px 20px;flex-wrap:wrap;margin-bottom:18px}
.sg-pagehead h1{margin:0}
.sg-pagehead p{margin:6px 0 0;color:var(--sg-muted)}
.sg-lead{color:var(--sg-muted);margin:0 0 18px;max-width:70ch}

/* hero at the top of the home page panel */
.sg-hero{background:var(--sg-ink);color:#fff;margin:-28px -32px 26px;border-radius:12px 12px 0 0;padding:34px 32px 30px;display:grid;grid-template-columns:1.5fr 1fr;gap:24px;align-items:center}
.sg-hero h1{color:#fff;font-size:36px;margin:0 0 8px}
.sg-page .sg-hero h1::after{display:none}
.sg-hero p{color:#d6dce6;margin:0;font-size:17px}
.sg-stats{display:flex;gap:26px;flex-wrap:wrap;justify-content:flex-end}
.sg-stats div{font-size:13px;color:#ccd3df;line-height:1.3}
.sg-stats b{display:block;font-family:var(--sg-display);font-size:32px;color:#fff;font-variant-numeric:tabular-nums}
.sg-lplate{display:inline-grid;place-items:center;width:34px;height:34px;background:#fff;color:var(--sg-red);border:2px solid var(--sg-red);border-radius:3px;font-family:var(--sg-display);font-weight:700;font-size:22px;margin-bottom:4px}

/* test cards */
.sg-tests{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.sg-test{background:var(--sg-paper);border:1px solid var(--sg-line);border-radius:12px;padding:18px;display:flex;flex-direction:column;gap:14px}
.sg-test header{display:flex;gap:12px;align-items:center}
.sg-test header img{width:56px;height:56px;object-fit:contain;flex:none;border-radius:8px}
.sg-test h2{font-size:20px;font-weight:700;margin:0}
.sg-test-sub{font-size:14px;color:var(--sg-muted)}
.sg-test-count{font-size:15px;color:var(--sg-muted)}
.sg-test-count b{color:var(--sg-ink);font-family:var(--sg-display);font-size:22px;font-variant-numeric:tabular-nums}
.sg-test-count a.sg-test-progress{color:var(--sg-go);text-decoration:none;font-weight:600}
.sg-test-count a.sg-test-progress b{color:var(--sg-go);font-size:18px}
.sg-start{display:flex;gap:8px;margin-top:auto}
.sg-start select{flex:none;width:auto!important;padding:8px 10px!important}
.sg-start .sg-btn{flex:1}
.sg-test-links{display:flex;gap:6px 18px;flex-wrap:wrap;font-size:15px}
.sg-test-links a{color:var(--sg-ink);font-weight:600;text-decoration:none;border-bottom:1px solid #ccd3df}
.sg-test-links a:hover{color:var(--sg-red);border-color:var(--sg-red)}

/* news on the home page */
.sg-section{margin-top:32px}
.sg-section > h2{font-size:22px;margin:0 0 12px}
.sg-news{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.sg-news li{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--sg-line);padding:8px 0}
.sg-news a{color:var(--sg-ink);font-weight:600;text-decoration:none}
.sg-news a:hover{color:var(--sg-red)}
.sg-news time{color:var(--sg-muted);font-size:14px;white-space:nowrap;font-variant-numeric:tabular-nums}
.sg-article{border-top:1px solid var(--sg-line);padding:20px 0}
.sg-article h2{font-size:22px;margin:0 0 4px}
.sg-article time{color:var(--sg-muted);font-size:14px}
.sg-article .sg-article-body{margin-top:10px}

/* notices */
.sg-banner{display:flex;gap:10px 14px;align-items:center;flex-wrap:wrap;background:var(--sg-amber-soft);border:1px solid #f0d7a8;border-radius:var(--sg-radius);padding:12px 16px;margin-bottom:16px}
.sg-banner .sg-btn{margin-left:auto}
.sg-note{background:var(--sg-mist);border-radius:var(--sg-radius);padding:12px 16px;font-size:15px;color:var(--sg-muted)}
.sg-note b{color:var(--sg-ink)}

/* tabs to switch between the three tests */
.sg-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:16px}
.sg-tabs a{font-family:var(--sg-display);font-weight:600;font-size:15px;text-decoration:none;color:var(--sg-ink);border:1px solid #ccd3df;border-radius:99px;padding:6px 14px}
.sg-tabs a:hover{border-color:var(--sg-ink)}
.sg-tabs a.sg-on{background:var(--sg-ink);border-color:var(--sg-ink);color:#fff}

/* topics: chapter cards with topic rows */
.sg-chip{display:inline-block;font-size:13px;font-weight:700;background:var(--sg-mist);border-radius:99px;padding:2px 10px;color:var(--sg-muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.sg-chapter{border:1px solid var(--sg-line);border-radius:12px;margin-bottom:12px;overflow:hidden;background:var(--sg-paper)}
.sg-chapter-head{display:flex;align-items:center;gap:12px;padding:12px 16px;background:#f8f9fb;border-bottom:1px solid var(--sg-line)}
.sg-chapter-head .sg-num{font-family:var(--sg-display);font-weight:700;color:var(--sg-red);font-size:20px;min-width:28px}
.sg-chapter-head h2{font-size:19px;font-weight:600;margin:0;flex:1}
.sg-topic{display:flex;align-items:center;gap:12px;padding:10px 16px 10px 56px;border-bottom:1px solid #f0edec;color:var(--sg-ink);text-decoration:none;scroll-margin-top:90px}
.sg-topic:last-child{border-bottom:0}
.sg-topic .sg-name{flex:1}
a.sg-topic:hover{background:#f8f9fb;color:var(--sg-red)}
.sg-topic .sg-go{font-family:var(--sg-display);font-weight:600;font-size:14px;color:var(--sg-red);white-space:nowrap}
.sg-lock{display:inline-flex;align-items:center;gap:5px;font-size:13px;color:var(--sg-muted);white-space:nowrap}
.sg-topic:target,.sg-chapter-head:target{background:#fff3b0}

/* practice question screen */
.sg-pbar{display:flex;align-items:center;gap:12px 16px;flex-wrap:wrap;margin-bottom:14px}
.sg-pbar .sg-ptitle{font-family:var(--sg-display);font-weight:700;font-size:20px}
.sg-pbar .sg-ptitle span{color:var(--sg-muted);font-weight:600}
.sg-progress{flex:1;min-width:140px;height:8px;background:var(--sg-mist);border-radius:99px;overflow:hidden}
.sg-progress i{display:block;height:100%;background:var(--sg-red);border-radius:99px}
.sg-qnav{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:14px}
.sg-qn{position:relative;display:grid;place-items:center;min-width:38px;height:38px;padding:0 6px;border-radius:8px;border:1px solid var(--sg-line);background:var(--sg-paper);color:var(--sg-ink);font-weight:700;font-size:14px;text-decoration:none;font-variant-numeric:tabular-nums}
.sg-qn:hover{border-color:var(--sg-ink);color:var(--sg-ink)}
.sg-qn.sg-ok{background:var(--sg-go-soft);border-color:#b9dcbb;color:var(--sg-go)}
.sg-qn.sg-bad{background:var(--sg-stop-soft);border-color:#efc2c2;color:var(--sg-stop-dark)}
.sg-qn.sg-now{background:var(--sg-ink);border-color:var(--sg-ink);color:#fff}
.sg-qn.sg-flag::after{content:"";position:absolute;top:-4px;right:-4px;width:11px;height:11px;border-radius:50%;background:var(--sg-amber);border:2px solid #fff}
.sg-tools{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:18px}
.sg-tools select{width:auto!important;padding:7px 10px!important;font-size:15px!important}
.sg-btn.sg-flagged{background:var(--sg-amber-soft);border-color:var(--sg-amber);color:#7a4f0e}
.sg-qtext{font-size:21px;font-weight:600;line-height:1.45;margin:0 0 16px}
.sg-qtext .sg-qno{color:var(--sg-red);font-family:var(--sg-display);margin-right:6px}
.sg-qpic{margin:0 0 16px}
.sg-qpic img{max-height:180px;max-width:100%;border-radius:8px;border:1px solid var(--sg-line)}
.sg-opts{display:grid;gap:10px}
.sg-opt{display:flex;gap:12px;align-items:flex-start;border:2px solid var(--sg-line);border-radius:10px;padding:12px 14px;background:var(--sg-paper);cursor:pointer;transition:border-color .15s,background-color .15s}
.sg-opt:hover{border-color:#bdb6b3}
.sg-opt input[type=radio]{position:absolute;opacity:0;width:1px;height:1px}
.sg-opt .sg-letter{flex:none;width:30px;height:30px;border-radius:50%;border:2px solid #ccd3df;display:grid;place-items:center;font-family:var(--sg-display);font-weight:700;font-size:15px}
.sg-opt .sg-otext{flex:1;padding-top:3px}
.sg-opt .sg-mark{flex:none;visibility:hidden;font-size:18px;padding-top:3px}
.sg-opt.sg-right{border-color:#98c99b;background:var(--sg-go-soft)}
.sg-opt.sg-right .sg-letter{border-color:var(--sg-go);background:var(--sg-go);color:#fff}
.sg-opt.sg-right .sg-mark{visibility:visible;color:var(--sg-go)}
.sg-opt.sg-wrong{border-color:#e29a9a;background:var(--sg-stop-soft)}
.sg-opt.sg-wrong .sg-letter{border-color:var(--sg-stop);background:var(--sg-stop);color:#fff}
.sg-opt.sg-wrong .sg-mark{visibility:visible;color:var(--sg-stop)}
.sg-feedback{margin-top:16px;border-radius:10px;border:1px solid var(--sg-line);padding:14px 16px;background:var(--sg-paper)}
.sg-feedback:empty{display:none}
.sg-verdict{font-family:var(--sg-display);font-weight:700;font-size:19px}
.sg-fb-right .sg-verdict{color:var(--sg-go)}
.sg-fb-wrong .sg-verdict{color:var(--sg-stop-dark)}
.sg-explain{margin-top:6px}
.sg-study{margin-top:10px;padding-top:10px;border-top:1px solid var(--sg-line);font-size:14px;color:var(--sg-muted);display:grid;gap:3px}
.sg-study a{color:var(--sg-ink);font-weight:600}
.sg-pager{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:20px;flex-wrap:wrap}
.sg-pager .sg-count{color:var(--sg-muted);font-size:15px}
.sg-pager .sg-spacer{min-width:1px}
/* practice on a phone (2026-11-09): the question first, then Previous / Next, then the tools, then the question numbers as an
   overview at the bottom; the top of the screen is for the question (#form_mem is the practice form) */
@media (max-width:600px){
  #form_mem{display:flex;flex-direction:column}
  #form_mem > *{order:9}
  #form_mem > .question_block{order:1}
  #form_mem > .sg-pager{order:2;margin-top:16px}
  #form_mem > .sg-tools{order:3;margin:18px 0 10px;padding-top:14px;border-top:1px solid var(--sg-line)}
  #form_mem > .sg-qnav{order:4;margin-bottom:6px}
  /* the tools as icons on one line: the question list, then Flag, Save, Comment, Check result (labels for screen readers) */
  #form_mem > .sg-tools{flex-wrap:nowrap;gap:6px}
  #form_mem > .sg-tools select{flex:1;min-width:0}
  #form_mem > .sg-tools .sg-btn-small{flex:none;width:44px;height:40px;padding:0;font-size:17px}
  #form_mem > .sg-tools .sg-tlabel{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .sg-pbar{margin-bottom:12px}
  .sg-pbar .sg-ptitle{font-size:18px}
  .sg-qtext{font-size:19px}
}

/* comments under a question */
.sg-comments{margin-top:28px;border-top:1px solid var(--sg-line);padding-top:18px}
.sg-comments > h2{font-size:20px;margin:0 0 12px}
.sg-comment{border:1px solid var(--sg-line);border-radius:10px;padding:12px 14px;margin-bottom:10px}
.sg-comment header{display:flex;justify-content:space-between;gap:10px;font-size:14px;color:var(--sg-muted);margin-bottom:6px;flex-wrap:wrap}
.sg-comment header b{color:var(--sg-ink)}
.sg-comment p{margin:0}
.sg-comment-form{display:grid;gap:10px;max-width:640px}
.sg-comment-form[hidden]{display:none}

/* score summary (practice result, mock test pass / fail) */
.sg-score{display:flex;align-items:center;gap:20px 28px;flex-wrap:wrap;border:1px solid var(--sg-line);border-radius:12px;padding:20px 22px;margin-bottom:20px}
.sg-score .sg-big{font-family:var(--sg-display);font-weight:700;font-size:46px;line-height:1;font-variant-numeric:tabular-nums}
.sg-score .sg-big small{font-size:22px;color:var(--sg-muted)}
.sg-score dl{display:flex;gap:22px;margin:0;flex-wrap:wrap}
.sg-score dt{font-size:13px;color:var(--sg-muted)}
.sg-score dd{margin:0;font-family:var(--sg-display);font-weight:700;font-size:22px;font-variant-numeric:tabular-nums}
.sg-pill{display:inline-block;font-size:14px;font-weight:700;border-radius:99px;padding:3px 12px}
.sg-pill.sg-pass{background:var(--sg-go-soft);color:var(--sg-go)}
.sg-pill.sg-fail{background:var(--sg-stop-soft);color:var(--sg-stop-dark)}
.sg-actions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}

/* question review cards (missed questions, after a test) */
.sg-review{border:1px solid var(--sg-line);border-radius:12px;padding:16px 18px;margin-bottom:14px}
.sg-review .sg-qtext{font-size:18px;margin-bottom:12px}
.sg-review .sg-opts{gap:8px}
.sg-review .sg-opt{cursor:default;padding:9px 12px}
.sg-review .sg-opt .sg-letter{width:26px;height:26px;font-size:13px}
.sg-review-foot{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap;margin-top:10px;font-size:14px;color:var(--sg-muted)}
.sg-yours{font-size:15px;margin-top:10px}
.sg-yours b{font-family:var(--sg-display)}

/* card grid (mock test choices, flash card sets) */
.sg-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}
.sg-card{display:flex;flex-direction:column;gap:8px;border:1px solid var(--sg-line);border-radius:12px;padding:16px 18px;background:var(--sg-paper);color:var(--sg-ink);text-decoration:none}
a.sg-card:hover{border-color:var(--sg-ink);color:var(--sg-ink);box-shadow:0 6px 18px rgba(22,35,59,.08)}
.sg-card h2{font-size:18px;margin:0}
.sg-card .sg-meta{font-size:14px;color:var(--sg-muted);display:flex;gap:14px;flex-wrap:wrap}
.sg-card .sg-go{margin-top:auto;font-family:var(--sg-display);font-weight:600;color:var(--sg-red)}

@media (max-width:960px){
  .sg-hero{grid-template-columns:1fr}
  .sg-stats{justify-content:flex-start}
  .sg-tests{grid-template-columns:1fr}
}
@media (max-width:600px){
  .sg-hero{margin:-18px -16px 20px;padding:24px 18px;border-radius:10px 10px 0 0}
  .sg-hero h1{font-size:27px}
  .sg-topic{padding-left:16px}
  .sg-qtext{font-size:18px}
  .sg-qn{min-width:34px;height:34px}
  .sg-score .sg-big{font-size:38px}
}
.sg-banner .sg-btn + .sg-btn{margin-left:0}
.sg-page h1,.sg-page h2{text-wrap:balance}
.sg-opt:focus-within{outline:3px solid rgba(198,40,40,.35);outline-offset:1px}
.w3-table td{vertical-align:middle}
.w3-table select{width:auto!important;padding:5px 10px!important;font-size:15px!important}
/* mock test: the chosen answer, the timer */
.sg-opt.sg-picked{border-color:var(--sg-ink);background:#f1f3f7}
.sg-opt.sg-picked .sg-letter{border-color:var(--sg-ink);background:var(--sg-ink);color:#fff}
.sg-opt .sg-mine{flex:none;font-size:13px;font-weight:700;color:var(--sg-ink);padding-top:5px}
.sg-opt[role=radio]:focus-visible{outline:3px solid rgba(198,40,40,.35);outline-offset:1px}
.sg-timer{display:inline-flex;align-items:center;gap:6px;font-family:var(--sg-display);font-weight:700;color:var(--sg-ink)}
.sg-page .sg-timer input{width:84px;text-align:center;font-family:var(--sg-display);font-weight:700;font-size:20px;color:#fff;background:var(--sg-ink);border:0!important;border-radius:8px;padding:6px 8px;font-variant-numeric:tabular-nums}
/* a data table that turns into cards on phones: each cell shows its column name (set by data-label) */
@media (max-width:600px){
  .sg-stack thead{display:none}
  .sg-stack tr{display:block;border:1px solid var(--sg-line);border-radius:10px;padding:8px 12px;margin-bottom:10px}
  .sg-stack td{display:flex;justify-content:space-between;gap:12px;border:0!important;padding:4px 0!important;text-align:right!important}
  .sg-stack td::before{content:attr(data-label);color:var(--sg-muted);text-align:left}
}
/* flash cards: one card at a time, click / Space flips it over (flash-card.php) */
.sg-deck{max-width:640px;margin:8px auto 0;outline:none;perspective:1400px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.sg-flip-inner{display:grid;transition:transform .45s ease;transform-style:preserve-3d}
.sg-flip.sg-flipped .sg-flip-inner{transform:rotateY(180deg)}
.sg-flip-face{grid-area:1/1;min-height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;padding:32px 28px;border-radius:16px;backface-visibility:hidden;-webkit-backface-visibility:hidden;box-shadow:0 10px 26px rgba(22,35,59,.10)}
.sg-flip-front{background:var(--sg-paper);border:1px solid var(--sg-line);border-top:6px solid var(--sg-red)}
.sg-flip-back{background:var(--sg-ink);color:#fff;transform:rotateY(180deg)}
.sg-flip-front .sg-flip-text{font-family:var(--sg-display);font-weight:600;font-size:26px;line-height:1.3;text-wrap:balance}
.sg-flip-back .sg-flip-text{font-size:20px;line-height:1.5}
.sg-flip-face img{max-width:240px;max-height:220px;border-radius:10px;background:#fff}
.sg-deck:focus-visible .sg-flip-face{outline:3px solid rgba(198,40,40,.4);outline-offset:3px}
.sg-deck-hint{text-align:center;color:var(--sg-muted);font-size:14px;margin:12px 0 0}
.sg-pager button:disabled{opacity:.4;cursor:default}
@media (max-width:600px){
  .sg-flip-face{min-height:260px;padding:24px 18px}
  .sg-flip-front .sg-flip-text{font-size:22px}
  .sg-flip-back .sg-flip-text{font-size:18px}
}
@media (prefers-reduced-motion:reduce){.sg-flip-inner{transition:none}}

/* footer stays at the bottom on short pages */
body{min-height:100vh;display:flex;flex-direction:column}
.sg-main{flex:1 0 auto}

/* simple forms on the page panel (login), no card */
.sg-form{display:grid;gap:14px;max-width:520px}
.sg-pass{position:relative}
.sg-pass input{padding-right:46px}
.sg-pass-eye{position:absolute;right:6px;top:50%;transform:translateY(-50%);background:none;border:0;padding:8px;color:var(--sg-muted);cursor:pointer;font-size:17px}
.sg-pass-eye:hover{color:var(--sg-ink)}
.sg-form-links{display:flex;flex-direction:column;gap:6px;margin:6px 0 0}

/* price page: one plan card per test */
.sg-plans{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px;margin-bottom:18px}
.sg-plan{display:flex;flex-direction:column;gap:14px;border:1px solid var(--sg-line);border-radius:12px;padding:20px;background:var(--sg-paper)}
.sg-plan header{display:flex;gap:12px;align-items:center}
.sg-plan header img{width:48px;height:48px;object-fit:contain;border-radius:8px;flex:none}
.sg-plan h2{font-size:20px;margin:0}
.sg-durations{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.sg-durations li{display:flex;justify-content:space-between;align-items:center;gap:10px;border:1px solid var(--sg-line);border-radius:10px;padding:10px 14px;background:#f8f9fb}
.sg-durations b{font-family:var(--sg-display);font-size:17px}
.sg-durations small{display:block;color:var(--sg-muted);font-size:13px}
.sg-price{font-family:var(--sg-display);font-weight:700;font-size:24px;font-variant-numeric:tabular-nums}
.sg-features{margin:0;padding-left:20px;color:var(--sg-muted);font-size:15px;display:grid;gap:4px}
.sg-plan .sg-btn{margin-top:auto}
.sg-flip-ref{font-size:13px;color:#ccd3df;margin-top:4px}
.sg-flip-ref a{color:#fff}
.sg-card h2 .sg-num{color:var(--sg-red);margin-right:2px}

/* FAQ page: questions by section, a jump list at the top */
.sg-faq-toc{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:8px 24px;background:var(--sg-mist);border-radius:var(--sg-radius);padding:16px 20px;margin-bottom:8px}
.sg-faq-toc h2{font-size:16px;margin:0 0 6px;color:var(--sg-red)}
.sg-faq-toc ul{margin:0;padding-left:18px;font-size:15px;display:grid;gap:4px}
.sg-faq-toc a{color:var(--sg-ink)}
.sg-faq-toc a:hover{color:var(--sg-red)}
.sg-faq{border-top:1px solid var(--sg-line);padding:16px 0;scroll-margin-top:20px}
.sg-faq h3{font-size:19px;margin:0 0 8px}
.sg-faq-a{max-width:75ch}
.sg-faq:target{background:#fffbe6;border-radius:8px;padding-left:12px;padding-right:12px}

/* FAQ list and FAQ / news entries, refined 2026-11-05: no underlined list, indented content */
.sg-faq-toc ul{list-style:none;padding-left:0;gap:0}
.sg-faq-toc li{border-bottom:1px solid var(--sg-line)}
.sg-faq-toc li:last-child{border-bottom:0}
.sg-faq-toc a{display:flex;gap:8px;align-items:baseline;padding:7px 6px;border-radius:6px;text-decoration:none;color:var(--sg-ink);line-height:1.4}
.sg-faq-toc a::before{content:"\203A";color:var(--sg-red);font-weight:700;flex:none}
.sg-faq-toc a:hover{background:var(--sg-paper);color:var(--sg-red)}
.sg-faq h3,.sg-article h2{position:relative}
.sg-faq-a,.sg-article .sg-article-body{margin-left:4px;padding-left:18px;border-left:3px solid #f0d4d4}
.sg-article time{display:block;margin-bottom:2px}
@media (max-width:600px){
  .sg-faq-a,.sg-article .sg-article-body{padding-left:12px;margin-left:0}
}

/* =====================================================================
   cheat sheets (cheatsheet.php): screen layout, then two A4 pages in print
   ===================================================================== */
.cs-head .cs-actions{flex:none}
.cs-ref{font-style:normal;font-size:11px;color:var(--sg-muted);white-space:nowrap}
.cs-numbers{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.cs-num{background:var(--sg-mist);border-radius:8px;padding:8px 10px;display:flex;flex-direction:column;gap:2px;break-inside:avoid}
.cs-num b{font-family:var(--sg-display);font-size:24px;line-height:1.1;color:var(--sg-red);font-variant-numeric:tabular-nums}
.cs-num span{font-size:13px;line-height:1.3}
.cs-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 22px;margin-top:14px}
.cs-sec{break-inside:avoid}
.cs-sec h2,.cs-numbers-sec h2{font-size:17px;margin:14px 0 8px;padding-bottom:4px;border-bottom:2px solid var(--sg-red)}
.cs-list{margin:0;padding-left:18px;font-size:14px;line-height:1.45;display:grid;gap:4px}
.cs-small{font-size:13px;color:var(--sg-ink);margin:8px 0 0;line-height:1.45}
.cs-signs,.cs-boards,.cs-lights{display:grid;gap:8px}
.cs-signs{grid-template-columns:1fr 1fr}
.cs-boards{grid-template-columns:1fr 1fr;margin-top:10px}
.cs-signs > div,.cs-boards > div,.cs-lights > div,.cs-roads > div{display:flex;gap:8px;align-items:center}
.cs-signs svg{width:34px;height:34px;flex:none}
.cs-boards svg{width:44px;height:28px;flex:none}
.cs-lights svg{width:18px;height:34px;flex:none}
.cs-signs p,.cs-boards p,.cs-lights p,.cs-roads p{margin:0;font-size:13px;line-height:1.35}
.cs-roads{display:grid;gap:6px}
.cs-roads svg{width:96px;height:27px;flex:none;border-radius:3px}
.cs-rule{background:var(--sg-mist);border-radius:8px;padding:8px 10px;margin-bottom:8px;font-size:14px}
.cs-rule .cs-list{margin-top:4px}
.cs-table{border-collapse:collapse;width:100%;font-size:13px}
.cs-table th,.cs-table td{text-align:left;padding:4px 6px;border-bottom:1px solid var(--sg-line)}
.cs-table th{font-weight:700;white-space:nowrap}
.cs-pair{display:flex;gap:12px;align-items:center;margin-bottom:8px;flex-wrap:wrap}
.cs-pair svg{height:80px;width:auto;max-width:100%}
.cs-foot{display:flex;align-items:center;gap:12px;font-size:12px;color:var(--sg-muted);margin-top:16px;border-top:1px solid var(--sg-line);padding-top:8px}
.cs-foot img{height:28px;width:auto;flex:none}
.cs-foot p{margin:0}
.cs-brand{display:none}
@media (max-width:760px){.cs-grid{grid-template-columns:1fr}}

@media print{
  @page{size:A4;margin:10mm}
  html,body{background:#fff!important;font-size:10.5px;display:block;min-height:0}
  .sg-header,.sg-footer,.cs-noprint,.cs-actions,#sg-burger{display:none!important}
  .sg-main{padding:0}
  .sg-wrap{max-width:none;padding:0}
  .sg-page{border:0;padding:0;min-height:0;border-radius:0}
  .sg-page h1{font-size:20px;margin:0 0 2px}
  .sg-page h1::after{display:none}
  .sg-pagehead{margin-bottom:6px}
  .sg-pagehead p{margin:0;font-size:11px}
  .cs-numbers{grid-template-columns:repeat(4,1fr);gap:4px}
  .cs-num{padding:4px 7px}
  .cs-num b{font-size:16px}
  .cs-num span{font-size:10.5px}
  .cs-grid{grid-template-columns:1fr 1fr!important;gap:4px 16px;margin-top:4px}
  .cs-signs,.cs-boards{grid-template-columns:1fr}
  .cs-signs,.cs-boards,.cs-lights,.cs-roads{gap:3px}
  .cs-sec h2,.cs-numbers-sec h2{font-size:14px;margin:8px 0 5px;padding-bottom:2px}
  .cs-list{font-size:11px;gap:3px;padding-left:14px}
  .cs-small,.cs-signs p,.cs-boards p,.cs-lights p,.cs-roads p,.cs-table,.cs-rule{font-size:11px}
  .cs-ref{font-size:8.5px}
  .cs-signs svg{width:26px;height:26px}
  .cs-boards svg{width:32px;height:20px}
  .cs-lights svg{width:13px;height:24px}
  .cs-roads svg{width:84px;height:24px}
  .cs-break{break-before:page}
  .cs-pair svg{height:60px}
  .cs-foot{font-size:8.5px;margin-top:8px}
  .cs-foot img{height:22px}
  .cs-brand{display:flex;justify-content:space-between;align-items:center;border-bottom:3px solid var(--sg-ink);padding-bottom:6px;margin-bottom:8px}
  .cs-brand-logo{display:flex;align-items:center;gap:10px}
  .cs-brand-logo img{height:34px;width:auto}
  .cs-brand-logo span{font-family:var(--sg-display);font-weight:700;font-size:13px}
  .cs-brand-qr{display:flex;align-items:center;gap:6px;font-size:9px;line-height:1.25;text-align:right}
  .cs-brand-qr img{width:52px;height:52px;order:2}
  a{color:inherit;text-decoration:none}
  *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}

/* content pages (About, Terms, Privacy, Resources, Videos), added 2026-11-05 */
.sg-prose{max-width:75ch;font-size:17px;line-height:1.6}
.sg-prose h2{font-size:22px;margin:28px 0 8px}
.sg-prose h3{font-size:18px;margin:18px 0 6px}
.sg-prose p,.sg-prose ul,.sg-prose ol{margin:0 0 12px}
.sg-prose ul,.sg-prose ol{padding-left:22px}
.sg-prose li{margin-bottom:6px}
.sg-prose a{color:var(--sg-red)}
.sg-updated{color:var(--sg-muted);font-size:14px;margin:0 0 16px}
.sg-toc{background:var(--sg-mist);border-radius:var(--sg-radius);padding:12px 18px;margin:0 0 20px;font-size:15px}
.sg-toc ol{margin:0;padding-left:20px;columns:2 220px;column-gap:24px}
.sg-toc a{color:var(--sg-ink)}
.sg-links{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;margin:0 0 8px;padding:0;list-style:none}
.sg-links a{display:block;height:100%;border:1px solid var(--sg-line);border-radius:12px;padding:14px 16px;background:var(--sg-paper);color:var(--sg-ink);text-decoration:none}
.sg-links a:hover{border-color:var(--sg-ink);box-shadow:0 6px 18px rgba(22,35,59,.08)}
.sg-links b{display:block;font-size:17px;margin-bottom:4px}
.sg-links span{display:block;font-size:15px;color:var(--sg-muted)}
.sg-links small{display:block;margin-top:6px;font-size:13px;color:var(--sg-red)}
.sg-videos{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px;margin:0 0 8px;padding:0;list-style:none}
.sg-video{border:1px solid var(--sg-line);border-radius:12px;overflow:hidden;background:var(--sg-paper)}
.sg-video-frame{position:relative;aspect-ratio:16/9;background:#000}
.sg-video-frame img,.sg-video-frame iframe{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border:0}
.sg-video-play{position:absolute;inset:0;width:100%;height:100%;border:0;padding:0;background:transparent;cursor:pointer}
.sg-video-play::after{content:"";position:absolute;left:50%;top:50%;width:64px;height:44px;margin:-22px 0 0 -32px;border-radius:12px;background:var(--sg-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23fff'/%3E%3C/svg%3E") center/26px no-repeat;opacity:.92}
.sg-video-play:hover::after,.sg-video-play:focus-visible::after{opacity:1}
.sg-video-text{padding:12px 14px}
.sg-video-text h3{font-size:17px;margin:0 0 4px}
.sg-video-text p{font-size:15px;color:var(--sg-muted);margin:0}

/* test landing pages (basic-theory-test.php etc.), added 2026-11-05 */
.sg-answer{font-size:19px;line-height:1.55;color:var(--sg-ink)}
.sg-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:18px 0}
.sg-facts div{background:var(--sg-mist);border-radius:var(--sg-radius);padding:12px 14px}
.sg-facts b{display:block;font-family:var(--sg-display);font-size:28px;color:var(--sg-red);line-height:1.1}
.sg-facts span{font-size:14px;color:var(--sg-muted)}
.sg-chapters{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:0 24px}
.sg-chapters li{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--sg-line);padding:9px 0}
.sg-chapters small{color:var(--sg-muted);white-space:nowrap;font-size:14px}
.sg-samples{margin:0;padding-left:22px;display:grid;gap:16px;max-width:75ch}
.sg-samples > li{border:1px solid var(--sg-line);border-radius:12px;padding:12px 16px}
.sg-sample-q{font-weight:600;margin:0 0 6px}
.sg-samples ol{margin:0 0 8px;padding-left:22px}
.sg-samples summary{cursor:pointer;color:var(--sg-red);font-weight:600}
.sg-samples details p{margin:8px 0 0}
.sg-ref{display:block;font-size:13px;color:var(--sg-muted);margin-top:4px}

/* account forms (sign up, profile, password reset), added 2026-11-05 */
.sg-field{display:grid;gap:4px}
.sg-field > span{font-weight:600;font-size:15px}
.sg-field > span i{font-weight:400;color:var(--sg-muted)}
.sg-field small{color:var(--sg-muted);font-size:14px}
.sg-check{display:flex;gap:8px;align-items:flex-start;font-size:15px}
.sg-check input{margin-top:3px;flex:none}
.sg-benefits{list-style:none;padding:0;margin:0 0 18px;display:grid;gap:6px;max-width:520px}
.sg-benefits li{padding-left:26px;position:relative}
.sg-benefits li::before{content:"\2713";position:absolute;left:0;color:var(--sg-red);font-weight:700}
#status_report_checking_div:empty{display:none}
.sg-danger{border:1px solid #f0c4c4;background:#fdf3f3;border-radius:var(--sg-radius);padding:16px 18px;max-width:520px}
.sg-danger h2{font-size:19px;margin:0 0 6px}
.sg-btn-danger{background:var(--sg-stop);color:#fff;border-color:var(--sg-stop)}
.sg-msg{background:var(--sg-mist);border-left:4px solid var(--sg-red);border-radius:var(--sg-radius);padding:16px 18px;font-size:17px;max-width:75ch}
.sg-msg a{color:var(--sg-red)}

/* main menu by test (BTT, FTT, RTT), 2026-11-05 */
.sg-sub-note{padding:8px 10px 8px;margin-bottom:4px;border-bottom:1px solid var(--sg-line);font-family:var(--sg-display);font-weight:700;font-size:15px;color:var(--sg-ink);white-space:nowrap}
.sg-sub-note small{display:block;font-family:var(--sg-body);font-weight:400;font-size:13px;color:var(--sg-muted)}
.sg-test-menu > .sg-sub{min-width:240px}
@media (max-width:960px){
  /* phone menu: one compact block per test, its name as the heading, the links in two columns */
  .sg-test-menu{border-top:1px solid var(--sg-line);padding:8px 0 6px}
  .sg-test-menu > .sg-sub-title{display:none}
  .sg-test-menu > .sg-sub{display:grid;grid-template-columns:1fr 1fr;gap:0 10px;padding:0}
  .sg-test-menu > .sg-sub a{padding:7px 8px;font-size:15px}
  .sg-sub-note{grid-column:1/-1;border:0;margin:0;padding:2px 8px 4px;font-size:16px}
  .sg-test-menu.sg-on .sg-sub-note{color:var(--sg-red)}
  .sg-test-menu > .sg-sub{min-width:0}
  .sg-help-menu > .sg-sub{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}
  .sg-help-menu > .sg-sub a{padding:7px 8px;font-size:15px}
  /* a touch counts as hover and focus: the desktop rule that opens a dropdown (display:block) turned the two columns into
     one at the moment of the tap, so the links moved and the tap opened another page (2026-11-09); they stay a grid */
  .sg-menu > li.sg-test-menu:hover > .sg-sub,.sg-menu > li.sg-test-menu:focus-within > .sg-sub,
  .sg-menu > li.sg-help-menu:hover > .sg-sub,.sg-menu > li.sg-help-menu:focus-within > .sg-sub{display:grid}
}

/* review cards: the answers, explanation and topic indented under the question text (2026-11-06) */
.sg-review .sg-qtext{display:flex;gap:6px}
.sg-review .sg-qtext .sg-qno{flex:none;min-width:2.4em;margin-right:0}
.sg-review-body{margin-left:calc(2.4em + 6px)}
@media (max-width:600px){.sg-review-body{margin-left:0}}

/* comments: the comment is what matters; who and when are a small line below (2026-11-06) */
.sg-comment{display:grid;grid-template-columns:2.4em 1fr auto;gap:4px 14px;align-items:baseline;border:0;border-bottom:1px solid var(--sg-line);border-radius:0;background:none;padding:12px 4px;margin:0}
.sg-comment:last-child{border-bottom:0}
.sg-comment-no{font-family:var(--sg-display);font-weight:600;font-size:13px;color:var(--sg-muted)}
.sg-comment-text{margin:0;font-size:16px;line-height:1.6;color:var(--sg-ink);overflow-wrap:anywhere}
.sg-comment footer{margin:0;font-size:13px;color:var(--sg-muted);white-space:nowrap;text-align:right}
@media (max-width:600px){
  .sg-comment{grid-template-columns:2em 1fr}
  .sg-comment footer{grid-column:2;white-space:normal}
}
.sg-comment-notice{margin:0 0 12px;padding:10px 14px;border-radius:8px;background:#e8f5e9;color:#1b5e20;font-size:15px}
.sg-comment-refused{background:#fdf3f3;color:var(--sg-red)}
.sg-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* answer state badges: correct, wrong, not answered, flagged; one round shape, white symbol (2026-11-06) */
.sg-state{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;color:#fff;font-size:12px;line-height:1;vertical-align:middle;position:relative;top:-1px;margin-right:8px;flex:none}
.sg-state-right{background:var(--sg-go)}
.sg-state-wrong{background:var(--sg-stop)}
.sg-state-skip{background:#8a8482}
.sg-state-flag{background:var(--sg-amber)}
.sg-state .fa-bookmark{font-size:11px} /* the mark of a flagged question is a bookmark, as on the practice page (2026-11-10) */

/* confirmation dialog (js/sg-dialog.js), in place of the browser's confirm() box (2026-11-06) */
.sg-dialog{border:0;border-radius:14px;padding:0;max-width:440px;width:calc(100% - 32px);box-shadow:0 24px 60px rgba(22,35,59,.28);color:var(--sg-ink)}
.sg-dialog::backdrop{background:rgba(22,35,59,.45)}
.sg-dialog form{padding:22px 24px 20px;border-top:4px solid var(--sg-red);border-radius:14px}
.sg-dialog h2{font-size:21px;margin:0 0 8px}
.sg-dialog p{margin:0;color:var(--sg-muted);font-size:16px;line-height:1.5}
.sg-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px;flex-wrap:wrap}
@media (max-width:420px){.sg-dialog-actions .sg-btn{flex:1}}

/* test landing pages (basic-theory-test.php etc.), redesigned 2026-11-06: one reading column, a clear header
   per section with its content indented, numbered chapters with their share of the questions */
.tg{max-width:860px}
.tg .sg-updated{margin-bottom:12px}
.tg-answer{background:var(--sg-mist);border-left:4px solid var(--sg-red);border-radius:0 var(--sg-radius) var(--sg-radius) 0;padding:16px 20px}
.tg-answer p{margin:0 0 8px;font-size:17px;line-height:1.6;color:var(--sg-ink)}
.tg-answer p:last-child{margin:0;color:var(--sg-muted);font-size:16px}
.tg-answer .tg-answer-label{font-family:var(--sg-display);font-weight:700;font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--sg-red);margin-bottom:4px}
.tg-facts{margin:18px 0 14px}
.tg-actions{margin:0 0 8px}
.tg-sec{margin-top:40px}
.tg-sec > h2{display:flex;align-items:center;gap:12px;font-size:23px;margin:0 0 16px;padding-bottom:10px;border-bottom:2px solid var(--sg-line)}
.tg-ico{flex:none;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:var(--sg-red);color:#fff;font-size:16px}
.tg-body{padding-left:46px}
.tg-body > p{margin:0 0 14px;font-size:16px;line-height:1.6;max-width:none}
.tg-hint{color:var(--sg-muted)}
/* chapters */
.tg-chapters{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr;gap:8px}
.tg-chapters a{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:12px;padding:11px 14px;border:1px solid var(--sg-line);border-radius:10px;color:var(--sg-ink);text-decoration:none;height:100%}
.tg-chapters a:hover{border-color:var(--sg-ink);box-shadow:0 4px 14px rgba(22,35,59,.07)}
.tg-chap-no{font-family:var(--sg-display);font-weight:700;color:var(--sg-red);font-size:16px}
.tg-chap-name{font-weight:600;line-height:1.3}
.tg-chap-count{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--sg-muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.tg-bar{display:block;width:56px;height:6px;border-radius:3px;background:var(--sg-line);overflow:hidden}
.tg-bar i{display:block;height:100%;background:var(--sg-red);border-radius:3px}
/* samples */
.tg-samples{max-width:none;padding-left:0;list-style:none;counter-reset:tgq}
.tg-samples > li{counter-increment:tgq}
.tg-samples .sg-sample-q::before{content:"Q" counter(tgq) ". ";color:var(--sg-red);font-family:var(--sg-display)}
/* steps */
.tg-steps{list-style:none;margin:0;padding:0;counter-reset:tgs;display:grid;gap:12px}
.tg-steps li{counter-increment:tgs;position:relative;padding-left:44px;line-height:1.55;font-size:16px}
.tg-steps li::before{content:counter(tgs);position:absolute;left:0;top:-2px;width:30px;height:30px;border-radius:50%;background:var(--sg-ink);color:#fff;font-family:var(--sg-display);font-weight:700;display:flex;align-items:center;justify-content:center;font-size:15px}
/* questions and answers */
.tg-qa{padding:14px 0;border-top:1px solid var(--sg-line)}
.tg-qa:first-child{border-top:0;padding-top:0}
.tg-qa h3{font-size:18px;margin:0 0 6px}
.tg-qa p{margin:0;padding-left:14px;border-left:3px solid var(--sg-line);color:var(--sg-ink);line-height:1.55}
.tg-more{margin-top:12px}
.tg-note{margin-top:36px}
@media (max-width:700px){
  .tg-body{padding-left:0}
  .tg-chapters{grid-template-columns:1fr}
  .tg-sec > h2{font-size:21px}
}

/* test landing pages, more depth (2026-11-06): contents, sources, the way to a licence, checks, topics, numbers */
.tg-toc{display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center;margin:22px 0 0;padding:12px 14px;background:var(--sg-mist);border-radius:var(--sg-radius);font-size:14px}
.tg-toc b{font-family:var(--sg-display);margin-right:4px}
.tg-toc a{color:var(--sg-ink);text-decoration:none;border:1px solid #d6dce6;background:var(--sg-paper);border-radius:999px;padding:4px 11px}
.tg-toc a:hover{border-color:var(--sg-ink)}
.tg-sec{scroll-margin-top:16px}
.tg-ref{font-size:13px;color:var(--sg-muted);margin:-6px 0 16px}
.tg-ref .fa{margin-right:4px}
.tg-sub{font-weight:600;margin-bottom:10px}
.tg-h3{font-size:18px;margin:22px 0 10px}
.tg-journeys{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:14px}
.tg-journey{border:1px solid var(--sg-line);border-radius:12px;padding:14px 16px}
.tg-journey h3{font-size:16px;margin:0 0 10px}
.tg-journey ol{list-style:none;margin:0;padding:0;counter-reset:tgj;display:grid;gap:8px}
.tg-journey li{counter-increment:tgj;position:relative;padding-left:34px;font-size:15px;line-height:1.45}
.tg-journey li::before{content:counter(tgj);position:absolute;left:0;top:0;width:24px;height:24px;border-radius:50%;border:2px solid var(--sg-line);color:var(--sg-muted);font-family:var(--sg-display);font-weight:700;font-size:13px;display:flex;align-items:center;justify-content:center;box-sizing:border-box}
.tg-journey li b{display:block}
.tg-journey li span{color:var(--sg-muted)}
.tg-journey li.tg-here::before{background:var(--sg-red);border-color:var(--sg-red);color:#fff}
.tg-journey li.tg-here b{color:var(--sg-red)}
.tg-checks{margin:0 0 14px;padding:0;list-style:none;display:grid;gap:8px}
.tg-checks li{position:relative;padding-left:26px;line-height:1.55}
.tg-checks li::before{content:"\f00c";font-family:FontAwesome;position:absolute;left:0;top:1px;color:var(--sg-go);font-size:14px}
.tg-tips li::before{content:"\f0eb";color:var(--sg-amber)}
.tg-chap-main{display:grid;gap:2px;min-width:0}
.tg-chap-topics{font-size:13px;color:var(--sg-muted);line-height:1.4}
.tg-numbers{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px}
.tg-numbers li{background:var(--sg-mist);border-radius:10px;padding:10px 12px;display:grid;gap:2px}
.tg-numbers b{font-family:var(--sg-display);font-size:20px;color:var(--sg-red);line-height:1.15}
.tg-numbers span{font-size:14px;line-height:1.35}
.tg-numbers small{font-size:12px;color:var(--sg-muted)}
.tg-related{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.tg-rel span{font-size:14px;color:var(--sg-muted)}
@media (max-width:700px){.tg-journeys{grid-template-columns:1fr}}
.tg-body > p.tg-cta{margin:20px 0 0} /* .tg-body > p is more specific, so name it here */
.tg-wide{max-width:none}
/* home: how the site helps (2026-11-06) */
.sg-how-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}
.sg-how-steps li{border:1px solid var(--sg-line);border-radius:12px;padding:16px 18px;background:var(--sg-paper)}
.sg-how-steps h3{font-size:18px;margin:10px 0 6px}
.sg-how-steps p{margin:0;font-size:15px;color:var(--sg-muted);line-height:1.5}
.sg-how-more{margin-top:12px;font-size:15px}
/* lists inside sections (About and others) */
.tg-body ul:not(.tg-checks):not(.sg-links):not(.tg-numbers),.tg-body ol:not(.tg-steps):not(.tg-chapters):not(.sg-samples){padding-left:22px;line-height:1.6}
.tg-body ul:not(.tg-checks):not(.sg-links):not(.tg-numbers) li{margin-bottom:6px}
.sg-anchor{scroll-margin-top:12px}

/* mock test start page: chapters with question counts, recent results (2026-11-06) */
.mt-chapters{margin:8px 0 0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:6px 24px}
.mt-chapters li{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-bottom:1px solid var(--sg-line)}
.mt-n{color:var(--sg-muted);font-size:14px;white-space:nowrap}
.mt-recent{max-width:420px}

/* account forms (sign-up, login, password, activation, contact, profile): the form in a card, help beside it,
   messages under each box (js/sg-form.js) and a message box at the top (sg_form_alert) (2026-11-06) */
.fm-wrap{display:grid;grid-template-columns:minmax(0,480px) minmax(0,1fr);gap:28px;align-items:start}
.fm-wrap.fm-wide{grid-template-columns:minmax(0,620px) minmax(0,1fr)}
.fm-card{display:grid;gap:18px;border:1px solid var(--sg-line);border-radius:12px;padding:24px;background:var(--sg-paper)}
.fm-card h2{font-size:19px;margin:0}
.fm-field{display:grid;gap:6px}
.fm-field > label:not(.sg-check),.fm-label{font-weight:600;font-size:15px}
.fm-field > label i,.fm-label i{font-weight:400;color:var(--sg-muted)}
.fm-labelrow{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.fm-labelrow a{font-size:14px;font-weight:400}
.fm-field .w3-input[readonly]{background:var(--sg-mist);color:var(--sg-muted)}
.fm-msg{color:var(--sg-muted);font-size:14px;line-height:1.45}
.fm-msg:empty{display:none}
.fm-msg.fm-err{color:var(--sg-red-dark)}
.fm-bad .w3-input{border-color:var(--sg-stop)!important;box-shadow:0 0 0 3px var(--sg-stop-soft)}
.fm-bad .sg-check input{outline:2px solid var(--sg-stop);outline-offset:2px}
.fm-submit{width:100%;justify-content:center;font-size:17px;padding:13px 20px}
.fm-submit:disabled{opacity:.7;cursor:wait}
.fm-alt{margin:-4px 0 0;text-align:center;font-size:15px;color:var(--sg-muted)}
/* the bot trap box (sg_bot_fields), out of sight and out of reach (2026-11-10) */
.fm-hp{position:absolute!important;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}
.fm-alert{display:grid;grid-template-columns:20px 1fr;gap:10px;align-items:start;border-radius:10px;padding:12px 14px;font-size:15px;line-height:1.5}
.fm-alert > i{font-size:18px;margin-top:1px}
.fm-alert-err{background:var(--sg-stop-soft);color:var(--sg-stop-dark)}
.fm-alert-ok{background:var(--sg-go-soft);color:var(--sg-go)}
.fm-alert-info{background:var(--sg-mist);color:var(--sg-ink)}
.fm-alert a{color:inherit;font-weight:600}
.fm-aside{background:var(--sg-mist);border-radius:12px;padding:24px}
.fm-aside h2{font-size:19px;margin:0 0 14px}
.fm-aside > p{margin:0 0 12px;line-height:1.55}
.fm-aside ul,.fm-aside ol{list-style:none;margin:0;padding:0;display:grid;gap:16px}
.fm-aside li{display:grid;grid-template-columns:36px 1fr;gap:12px;align-items:start;line-height:1.5}
.fm-aside li > i,.fm-aside ol li::before{width:36px;height:36px;border-radius:50%;background:var(--sg-paper);color:var(--sg-red);display:grid;place-items:center;font-size:16px}
.fm-aside ol{counter-reset:fm}
.fm-aside ol li{counter-increment:fm}
.fm-aside ol li::before{content:counter(fm);font-family:var(--sg-display);font-weight:700}
.fm-aside li b{display:block}
.fm-aside .sg-btn{margin-top:16px}
.fm-note{margin:18px 0 0;padding-top:14px;border-top:1px solid var(--sg-line);font-size:14px;color:var(--sg-muted)}
.fm-foot{margin:18px 0 0;font-size:14px}
.fm-foot a{color:var(--sg-muted)}
.fm-done{text-align:center;justify-items:center}
.fm-done > i{font-size:40px;color:var(--sg-go)}
.fm-done p{margin:0;line-height:1.6}
.fm-row{display:flex;gap:10px;flex-wrap:wrap}
@media (max-width:760px){
  .fm-wrap,.fm-wrap.fm-wide{grid-template-columns:1fr;gap:20px}
  .fm-card,.fm-aside{padding:18px}
}
.fm-card.sg-danger{border-color:#f0c4c4;background:#fdf3f3}

/* Prices: the All tests plan (2026-11-06) */
.pl-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:stretch;margin:16px 0 22px}
.pl-card{border-top:4px solid var(--sg-red)}
.pl-price{display:flex;align-items:baseline;gap:8px}
.pl-price .sg-price{font-size:40px;line-height:1}
.pl-price span + span{color:var(--sg-muted);font-size:17px}
.pl-action{display:grid;gap:10px}
.pl-action .sg-btn{margin-top:0;justify-content:center;text-align:center}
.pl-pp{min-height:50px}
.pl-small{margin:0;font-size:14px;line-height:1.5;color:var(--sg-muted)}
.pl-small:empty{display:none}
#pp-msg{color:var(--sg-red-dark);font-weight:600}
.pl-have{display:grid;grid-template-columns:22px 1fr;gap:8px;background:var(--sg-go-soft,#eaf6ec);border-radius:10px;padding:12px 14px;font-size:15px;line-height:1.5}
.pl-have i{color:var(--sg-go);font-size:19px;margin-top:1px}
.pl-list h2{font-size:20px;margin:4px 0 12px}
@media (max-width:760px){ .pl-cards{grid-template-columns:1fr} }
.pn-ref{font-family:ui-monospace,Menlo,Consolas,monospace;background:var(--sg-amber-soft);border-radius:6px;padding:1px 7px;letter-spacing:.04em}
.pn-qr{display:flex;flex-wrap:wrap;gap:18px;margin:4px 0 18px}
.pn-qr figure{margin:0;text-align:center;font-size:14px;color:var(--sg-muted)}
.pn-qr img{display:block;width:200px;height:200px;object-fit:contain;border:1px solid var(--sg-line);border-radius:10px;background:#fff;margin-bottom:6px}
.pn-form{max-width:520px}
#paynow{scroll-margin-top:16px}
/* My Subscription */
.ms-plan{display:grid;gap:14px}
.ms-plan h2{margin:0;font-size:21px}
.ms-rows{display:grid;grid-template-columns:max-content 1fr;gap:8px 18px;margin:0;font-size:15px}
.ms-rows dt{color:var(--sg-muted)}
.ms-rows dd{margin:0;font-weight:600}
.ms-badge{display:inline-block;border-radius:999px;padding:2px 10px;font-size:13px;font-weight:700;background:var(--sg-mist);color:var(--sg-ink)}
.ms-badge.on{background:var(--sg-go-soft,#eaf6ec);color:#1b6b2c}
.ms-badge.off{background:var(--sg-stop-soft);color:var(--sg-stop-dark)}
.ms-old{width:100%;border-collapse:collapse;font-size:15px}
.ms-old th,.ms-old td{text-align:left;padding:9px 10px;border-bottom:1px solid var(--sg-line);vertical-align:top}
.ms-old th{font-size:13px;color:var(--sg-muted);font-weight:600}
.ms-old small{display:block;color:var(--sg-muted);font-size:13px}
@media (max-width:600px){ .ms-old thead{display:none} .ms-old tr{display:grid;border-bottom:1px solid var(--sg-line);padding:6px 0} .ms-old td{border:0;padding:3px 0} }
.tg-body > p.ms-more{margin:20px 0 0} /* .tg-body > p is more specific */

/* FAQ and News numbers (2026-11-07) */
.sg-faq-no{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:26px;padding:0 6px;margin-right:10px;border-radius:999px;background:var(--sg-red);color:#fff;font-family:var(--sg-display);font-size:14px;font-weight:700;vertical-align:2px;flex:none}
.sg-faq-toc a::before{content:none}
.sg-faq-toc .sg-faq-no{min-width:24px;width:24px;padding:0;height:22px;margin-right:2px;font-size:12px;background:var(--sg-paper);color:var(--sg-red);border:1px solid #f0d4d4;vertical-align:0}
.sg-faq-intro{color:var(--sg-muted);margin:-4px 0 6px;max-width:75ch}
.sg-faq h3{display:flex;align-items:baseline}
.sg-news-meta{display:flex;gap:10px;align-items:center;margin-bottom:4px}
.sg-news-no{display:inline-block;border-radius:999px;padding:1px 9px;background:var(--sg-mist);color:var(--sg-red-dark);font-size:13px;font-weight:700}
.sg-article{scroll-margin-top:16px}
.sg-article:target{background:#fffbe6;border-radius:8px;padding-left:12px;padding-right:12px}
.sg-article .sg-article-body{max-width:75ch}

/* =====================================================================
   topic cheat sheets (cheat-sheet.php), the hub (cheat-sheets.php) and the share image (?card=1), 2026-11-07
   ===================================================================== */
.cs-answer{font-size:17px;line-height:1.55;color:var(--sg-ink);max-width:80ch}
.cs-sharebar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 10px}
.cs-share{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--sg-line);background:var(--sg-paper);border-radius:999px;padding:6px 12px;font:inherit;font-size:14px;color:var(--sg-ink);text-decoration:none;cursor:pointer}
.cs-share:hover{border-color:var(--sg-red);color:var(--sg-red)}
.cs-share i,.cs-share b{font-size:15px;width:16px;text-align:center}
.cs-signs-1{grid-template-columns:1fr}
.cs-check{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:6px 14px;font-size:14px;line-height:1.35}
.cs-check li{position:relative;padding-left:24px}
.cs-check i{position:absolute;left:0;top:2px;width:18px;color:var(--sg-red);font-size:15px;text-align:center}
.cs-check b{margin-right:4px}
.cs-more{margin-top:28px;border-top:1px solid var(--sg-line);padding-top:12px}
.cs-more h2{font-size:18px;margin:0 0 8px}
.cs-more ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:6px 18px}
.cs-more a{text-decoration:none;color:var(--sg-ink)}
.cs-more a:hover{color:var(--sg-red)}
.cs-tag{display:inline-block;min-width:34px;margin-right:8px;border-radius:6px;padding:0 5px;background:var(--sg-mist);color:var(--sg-red-dark);font-size:12px;font-weight:700;text-align:center}
@media (max-width:600px){.cs-check{grid-template-columns:1fr}}
@media print{
  .cs-topic .cs-answer{font-size:11px;line-height:1.4}
  .cs-topic .cs-check{font-size:11px;gap:2px 10px}
  .cs-topic .cs-check li{padding-left:16px}
  .cs-topic .cs-check i{font-size:11px;width:12px;top:1px}
  .cs-topic .cs-sec h2{margin-top:6px}
}
/* the hub */
.csh-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px}
.csh-card{display:flex;flex-direction:column;border:1px solid var(--sg-line);border-radius:12px;overflow:hidden;text-decoration:none;color:var(--sg-ink);background:var(--sg-paper)}
.csh-card:hover{border-color:var(--sg-red);box-shadow:0 4px 14px rgba(0,0,0,.08)}
.csh-card img{width:100%;height:auto;display:block;border-bottom:1px solid var(--sg-line);background:var(--sg-mist)}
.csh-body{padding:10px 12px;display:grid;gap:4px}
.csh-body b{font-family:var(--sg-display);font-size:17px}
.csh-body span{font-size:14px;color:var(--sg-muted);line-height:1.4}
.csh-full{display:flex;gap:10px;align-items:center;margin-top:14px;padding:10px 14px;border-radius:10px;background:var(--sg-mist);text-decoration:none;color:var(--sg-ink)}
.csh-full i{font-size:20px;color:var(--sg-red)}
.csh-full b{display:block;font-family:var(--sg-display)}
/* the share image: exactly 1080 x 1350 */
.cd-body{margin:0;background:#fff;width:1080px;height:1350px;overflow:hidden}
.cd{box-sizing:border-box;width:1080px;height:1350px;padding:46px 66px 30px;display:flex;flex-direction:column;background:#fff;border-top:22px solid var(--sg-red);font-family:var(--sg-body,'Source Sans 3',Arial,sans-serif);color:var(--sg-ink)}
.cd-top{display:flex;justify-content:space-between;align-items:center;font-size:26px;color:var(--sg-muted)}
.cd-kicker{background:var(--sg-red);color:#fff;font-weight:700;letter-spacing:.06em;text-transform:uppercase;border-radius:8px;padding:6px 14px;font-size:24px}
.cd h1{font-family:var(--sg-display,Barlow,Arial,sans-serif);font-size:56px;line-height:1.04;margin:18px 0 20px}
.cd h1::after{display:none}
.cd-list{list-style:none;margin:0;padding:0;display:grid;gap:10px;flex:1;align-content:start}
.cd-list li{display:grid;grid-template-columns:110px 1fr;gap:20px;align-items:center;background:var(--sg-mist);border-radius:14px;padding:7px 18px}
.cd-ico{display:flex;align-items:center;justify-content:center;height:66px}
.cd-ico svg{height:58px;width:auto;max-width:110px}
.cd-ico .fa{font-size:52px;color:var(--sg-red)}
.cd-num{font-family:var(--sg-display,Barlow,Arial,sans-serif);font-weight:700;font-size:40px;color:var(--sg-red);white-space:nowrap;letter-spacing:-.01em}
.cd-bus{font-size:30px;background:#fbc02d;color:#16233b;border-radius:8px;padding:2px 10px}
.cd-txt{font-size:27px;line-height:1.22}
.cd-txt b{display:block;font-size:31px;line-height:1.12;font-family:var(--sg-display,Barlow,Arial,sans-serif)}
.cd-foot{display:flex;align-items:center;gap:24px;border-top:3px solid var(--sg-ink);padding-top:16px;margin-top:16px}
.cd-logo{height:76px;width:auto}
.cd-url{flex:1;min-width:0;font-size:23px;font-weight:700;color:var(--sg-red-dark);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cd-url b{display:block;font-size:24px;color:var(--sg-muted);font-weight:600;margin-bottom:2px}
.cd-qr{width:108px;height:108px}
.cd-src{font-size:19px;color:var(--sg-muted);margin:8px 0 0}
.sg-chapter-note{margin:0;padding:8px 16px 10px 56px;font-size:14px;line-height:1.5;color:var(--sg-muted);border-bottom:1px solid var(--sg-line);background:#f8f9fb}
.sg-chapter-note a{white-space:nowrap;margin-left:6px}
@media (max-width:600px){.sg-chapter-note{padding-left:16px}}
/* the share pack (2026-11-08): carousel slides 1080 x 1350 (cheat-sheet.php?slide=N), the quiz and the downloads on the page */
.sl{box-sizing:border-box;width:1080px;height:1350px;padding:46px 64px 28px;display:flex;flex-direction:column;background:#fff;border-top:22px solid var(--sg-red);font-family:var(--sg-body);color:var(--sg-ink)}
.sl-top{display:flex;justify-content:space-between;align-items:center}
.sl-count{font-family:var(--sg-display);font-weight:700;font-size:28px;color:var(--sg-muted)}
.sl h1{font-family:var(--sg-display);font-size:64px;line-height:1.04;margin:20px 0 22px}
.sl h1::after{display:none}
.sl-body{flex:1;display:flex;flex-direction:column;gap:16px;min-height:0}
.sl-items{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.sl-items li{display:grid;grid-template-columns:200px 1fr;gap:22px;align-items:center;background:var(--sg-mist);border-radius:16px;padding:16px 20px}
.sl-pic svg{width:190px;height:auto;display:block;border-radius:6px}
.sl-items .sl-h{display:block;font-family:var(--sg-display);font-weight:700;font-size:34px;line-height:1.1;margin-bottom:4px}
.sl-items .sl-t{font-size:29px;line-height:1.28}
.sl-trap,.sl-tip{border-radius:16px;padding:16px 22px;font-size:29px;line-height:1.3}
.sl-trap{background:#fdecea;border:3px solid var(--sg-red)}
.sl-tip{background:#e8f3e9;border:3px solid var(--sg-go)}
.sl-lbl{display:block;font-family:var(--sg-display);font-weight:700;font-size:23px;text-transform:uppercase;letter-spacing:.06em;margin-bottom:4px}
.sl-trap .sl-lbl{color:var(--sg-red)}
.sl-tip .sl-lbl{color:var(--sg-go)}
.sl-pen{display:flex;gap:14px;align-items:center;font-size:24px;color:var(--sg-muted);line-height:1.3}
.sl-pen i{font-size:30px;color:var(--sg-red)}
.sl-who{margin:0;font-size:27px;line-height:1.35;background:var(--sg-mist);border-radius:16px;padding:14px 20px}
.sl-table{width:100%;border-collapse:separate;border-spacing:0 12px;font-size:28px;line-height:1.25}
.sl-table th{text-align:left;font-family:var(--sg-display);font-size:26px;color:var(--sg-muted);padding:0 12px}
.sl-table td{background:var(--sg-mist);padding:14px 12px;vertical-align:middle}
.sl-table td:first-child{border-radius:14px 0 0 14px;width:330px}
.sl-table td:last-child{border-radius:0 14px 14px 0}
.sl-table td:first-child .sl-pic svg{width:150px;margin-bottom:6px}
.sl-table td:first-child .sl-h{font-family:var(--sg-display);font-weight:700;font-size:30px;display:block}
.sl-lead{font-size:34px;line-height:1.3;margin:0}
.sl-toc{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.sl-toc li{display:flex;gap:18px;align-items:center;font-size:34px;font-family:var(--sg-display);background:var(--sg-mist);border-radius:14px;padding:16px 20px}
.sl-toc span{flex:none;width:52px;height:52px;border-radius:50%;background:var(--sg-red);color:#fff;display:flex;align-items:center;justify-content:center;font-size:28px}
.sl-stat{margin:0;font-size:28px;color:var(--sg-red-dark);font-weight:700}
.sl-swipe{margin:auto 0 0;text-align:right;font-family:var(--sg-display);font-size:32px;color:var(--sg-red)}
.sl-quiz{margin:0;padding:0;list-style:none;display:grid;gap:14px}
.sl-quiz li{background:var(--sg-mist);border-radius:16px;padding:16px 22px;font-size:29px;line-height:1.25}
.sl-quiz b{font-family:var(--sg-display);font-size:30px}
.sl-opts{display:flex;flex-wrap:wrap;gap:6px 26px;margin-top:6px}
.sl-answers{margin-top:auto;border-top:3px dashed var(--sg-line);padding-top:12px;font-size:22px;line-height:1.3;color:var(--sg-muted);display:grid;gap:3px}
.sl-answers > b{font-family:var(--sg-display);font-size:22px;text-transform:uppercase;letter-spacing:.06em;color:var(--sg-ink)}
.sl-foot{display:flex;align-items:center;gap:20px;border-top:3px solid var(--sg-ink);padding-top:14px;margin-top:16px}
.sl-logo{height:62px;width:auto}
.sl-url{font-size:23px;font-weight:700;color:var(--sg-red-dark);flex:1;min-width:0;white-space:nowrap}
.sl-ref{font-size:18px;color:var(--sg-muted);text-align:right;max-width:280px;line-height:1.25}
.cs-quiz{margin-top:24px}
.cs-quiz h2,.cs-pack h2{font-size:20px;margin:0 0 10px;padding-bottom:4px;border-bottom:2px solid var(--sg-red)}
.cs-quiz ol{margin:0;padding-left:20px;display:grid;gap:12px}
.cs-quiz p{margin:0}
.cs-opts{list-style:none;margin:4px 0;padding:0;display:flex;flex-wrap:wrap;gap:4px 18px;color:var(--sg-muted)}
.cs-quiz summary{cursor:pointer;color:var(--sg-red-dark);font-weight:600}
.cs-pack{margin-top:24px}
.cs-pack > p{margin:0 0 10px;color:var(--sg-muted)}
.cs-slides{display:flex;gap:10px;overflow-x:auto;padding-bottom:6px;scroll-snap-type:x mandatory}
.cs-slides a{flex:none;width:168px;scroll-snap-align:start}
.cs-slides img{width:100%;height:auto;display:block;border:1px solid var(--sg-line);border-radius:8px}
.cs-packbtns{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.cs-table th svg{display:block;width:84px;height:auto;margin:0 0 3px;border-radius:3px}
@media print{ .cs-table th svg{width:56px;margin-bottom:1px} .cs-topic .cs-foot{margin-top:4px} }
@media print{ .cs-topic .cs-grid{row-gap:14px;column-gap:22px} .cs-topic .cs-sec h2{margin-top:0} }
.cs-topic .cs-grid{row-gap:26px}
.sl-series{margin:0;font-size:24px;line-height:1.3;color:var(--sg-muted)}
.sl-disc{margin:8px 0 0;font-size:17px;line-height:1.3;color:var(--sg-muted)}
@media print{ .cs-topic .cs-table th,.cs-topic .cs-table td{padding:2px 5px} .cs-topic .cs-table th svg{width:46px;display:inline-block;vertical-align:middle;margin:0 6px 0 0} .cs-topic .cs-answer{margin-bottom:2px} }
/* print, topic sheets (2026-11-08): the intro full width in a light box; the logo and disclaimer at the foot of the page */
@media print{
  .cs-topic{display:flex;flex-direction:column;min-height:268mm}
  .cs-topic .cs-head{display:block;margin-bottom:10px}
  .cs-topic .cs-head > div{max-width:none}
  .cs-topic .cs-answer{max-width:none;margin:6px 0 0;padding:7px 10px;background:var(--sg-mist);border-left:3px solid var(--sg-red);border-radius:0 6px 6px 0;font-size:11.5px;line-height:1.45}
  .cs-topic .cs-foot{margin-top:auto;padding-top:8px}
  .cs-topic .cs-grid{margin-bottom:18px}
}
/* breadcrumb trail (2026-11-08) */
.sg-crumbs{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center;font-size:14px;color:var(--sg-muted);margin:0 0 10px}
.sg-crumbs a{color:var(--sg-muted);text-decoration:none}
.sg-crumbs a:hover{color:var(--sg-red);text-decoration:underline}
.sg-crumbs [aria-current]{color:var(--sg-ink)}
/* the sheet's source and disclaimer: at the end of the page on screen (no logo), at the foot of the printed page */
@media screen{ .cs-topic .cs-foot{margin-top:28px} .cs-topic .cs-foot img{display:none} }
/* topic sheets on screen: the intro across the full width, in the same light box as in print (2026-11-08) */
@media screen{
.cs-topic .cs-head{display:block}
.cs-topic .cs-answer{max-width:none;margin:10px 0 0;padding:12px 16px;background:var(--sg-mist);border-left:4px solid var(--sg-red);border-radius:0 8px 8px 0}
}
/* slide pictures: road strips fill the 190px box; signs, lights, numbers and icons sit centred in it */
.sl-pic{display:flex;align-items:center;justify-content:center;min-height:70px}
.sl-pic svg{max-height:104px}
.sl-pic .cd-num{font-size:50px;line-height:1}
.sl-pic .cd-num .fa{font-size:52px;color:var(--sg-red)}
.sl-table td:first-child .sl-pic{justify-content:flex-start;min-height:0}
.sl-table td:first-child .sl-pic .cd-num{font-size:40px}
/* the cover slide's picture strip: each topic looks different at a glance (2026-11-08) */
.sl-hero{display:flex;gap:16px;align-items:center;justify-content:space-between;background:var(--sg-mist);border-radius:18px;padding:14px 22px;min-height:128px}
.sl-hero > span{flex:1;display:flex;justify-content:center;align-items:center;min-width:0}
.sl-hero svg{height:100px;width:auto;max-width:100%}
.slt-cover .sl-hero svg[viewBox="0 0 120 34"]{height:auto;width:100%}
.sl-big{font-family:var(--sg-display);font-weight:700;font-size:76px;line-height:.95;color:var(--sg-red);text-align:center}
.sl-big small{display:block;font-size:26px;color:var(--sg-muted);font-weight:600;margin-top:4px}
.slt-cover .sl-toc{gap:8px}
.slt-cover .sl-toc li{padding:8px 20px;font-size:29px}
.slt-cover .sl-toc span{width:46px;height:46px;font-size:25px}
.slt-cover .sl-body{gap:13px}
.slt-cover .sl-lead{font-size:32px}
.csh-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}
.csh-card img{aspect-ratio:480/311;object-fit:cover;object-position:top}
.csh-body .csh-tag{display:inline-block;justify-self:start;background:var(--sg-ink);color:#fff;border-radius:999px;padding:1px 10px;font-size:12px;font-weight:700;letter-spacing:.03em}
/* the whole-test sheets on screen: the intro box and buttons of the topic sheets */
@media screen{
  .cs-whole .cs-head{display:block}
  .cs-whole .cs-answer{max-width:none;margin:10px 0 0;padding:12px 16px;background:var(--sg-mist);border-left:4px solid var(--sg-red);border-radius:0 8px 8px 0;color:var(--sg-ink);font-size:17px;line-height:1.55}
}
.cs-topiclist{margin:0;padding-left:20px;display:grid;gap:6px}
@media print{ .cs-whole .cs-answer{font-size:11px;line-height:1.4;max-width:none;margin:0} }
/* hub cards: a picture panel drawn on the page (2026-11-08) */
.csh-art{display:flex;align-items:center;justify-content:center;gap:10px;height:118px;padding:14px 16px;background:var(--sg-mist);border-bottom:1px solid var(--sg-line);box-sizing:border-box}
.csh-art > span{flex:1;display:flex;align-items:center;justify-content:center;min-width:0}
.csh-art svg{height:46px;width:auto;max-width:100%}
.csh-art svg[viewBox="0 0 120 34"]{width:100%;height:auto;border-radius:3px}
.csh-art .sl-big{font-size:30px}
.csh-art .sl-big small{font-size:11px;margin-top:2px}
.csh-card:hover .csh-art{background:#fbeaea}
.csh-art-doc svg{height:72px}
.csh-code{flex:none!important;flex-direction:column;font-family:var(--sg-display);font-weight:700;font-size:34px;color:var(--sg-red);line-height:1}
.csh-code small{font-size:13px;color:var(--sg-muted);font-weight:600;margin-top:4px}
.csh-art svg{height:54px}
.csh-art-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px;align-content:center}
.csh-art-grid svg[viewBox="0 0 120 34"]{width:100%}
.csh-art .sl-big{font-size:32px}
.csh-art-doc{gap:14px}
.csh-art-doc > span{flex:none}
/* the slide viewer on a cheat sheet page (2026-11-08): one slide large, the list of slides beside it */
.cs-viewer{display:grid;grid-template-columns:minmax(0,380px) 1fr;gap:22px;align-items:start}
.cs-stage{position:relative;margin:0}
.cs-stage img{display:block;width:100%;height:auto;border:1px solid var(--sg-line);border-radius:10px;box-shadow:0 4px 16px rgba(0,0,0,.08);background:#fff}
.cs-prev,.cs-next{position:absolute;top:50%;transform:translateY(-50%);width:40px;height:40px;border-radius:50%;border:1px solid var(--sg-line);background:rgba(255,255,255,.95);color:var(--sg-ink);cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px rgba(0,0,0,.12)}
.cs-prev{left:-14px}.cs-next{right:-14px}
.cs-prev:hover,.cs-next:hover{color:var(--sg-red);border-color:var(--sg-red)}
.cs-stage figcaption{text-align:center;margin-top:8px;font-size:14px;color:var(--sg-muted)}
.cs-slidelist{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.cs-slidelist li{display:flex;align-items:center;gap:6px;border-radius:8px}
.cs-slidelist button{flex:1;display:flex;align-items:center;gap:10px;text-align:left;font:inherit;font-size:15px;color:var(--sg-ink);background:none;border:1px solid transparent;border-radius:8px;padding:7px 10px;cursor:pointer}
.cs-slidelist button:hover{background:var(--sg-mist)}
.cs-slidelist button[aria-current]{background:var(--sg-mist);border-color:var(--sg-line);font-weight:600}
.cs-sn{flex:none;width:26px;height:26px;border-radius:50%;background:var(--sg-red);color:#fff;font-family:var(--sg-display);font-weight:700;font-size:14px;display:flex;align-items:center;justify-content:center}
.cs-slidelist a{flex:none;width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:8px;color:var(--sg-muted)}
.cs-slidelist a:hover{background:var(--sg-mist);color:var(--sg-red)}
@media (max-width:760px){ .cs-viewer{grid-template-columns:1fr} .cs-stage{max-width:380px;margin:0 auto} .cs-prev{left:6px} .cs-next{right:6px} }
@media (max-width:760px){ .cs-prev,.cs-next{width:32px;height:32px;opacity:.85;font-size:13px} .cs-prev{left:2px} .cs-next{right:2px} }
/* slides, quieter frame (2026-11-08): no red bar at the top; a light footer, the logo only on the cover and the last slide */
.sl{border-top:0;padding-top:52px}
.sl-foot{border-top:2px solid var(--sg-line);padding-top:12px}
.sl-foot-quiet{justify-content:space-between;font-size:19px;color:#8a95a8;border-top:1px solid var(--sg-line)}
.sl-foot-quiet .sl-ref{color:#8a95a8}
.sl-disc{color:#8a95a8}
/* the viewer alone, centred, with a download icon on the slide (2026-11-08) */
.cs-viewer{display:block;max-width:400px;margin:0 auto}
.cs-dlone{position:absolute;top:10px;right:10px;width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.95);border:1px solid var(--sg-line);color:var(--sg-ink);display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px rgba(0,0,0,.12);text-decoration:none}
.cs-dlone:hover{color:var(--sg-red);border-color:var(--sg-red)}
@media (max-width:760px){ .cs-viewer{max-width:340px} .cs-dlone{width:32px;height:32px;top:6px;right:6px} }
/* handbook pictures of signs, boards and lights (2026-11-09), in place of our own drawings: kept whole (contain) in each box */
.cs-hb{display:block;flex:none;object-fit:contain}
.cs-signs .cs-hb{width:44px;height:44px}
.cs-boards .cs-hb{width:64px;height:32px}
.cs-lights .cs-hb{width:22px;height:44px}
.cs-pair .cs-hb{height:80px;width:auto;max-width:100%}
.sl-pic .cs-hb{width:190px;height:110px}
.sl-table td:first-child .sl-pic .cs-hb{width:150px;height:80px;margin-bottom:6px}
.sl-hero .cs-hb{height:100px;width:auto;max-width:100%}
.csh-art .cs-hb{height:54px;width:100%;aspect-ratio:auto;object-fit:contain;border:0;background:none}
.cs-table th .cs-hb{width:84px;height:40px;max-width:none;margin:0 0 3px}
@media print{ .cs-signs .cs-hb{width:24px;height:24px} .cs-boards .cs-hb{width:36px;height:18px} .cs-lights .cs-hb{width:14px;height:28px} .cs-pair .cs-hb{height:60px} }
/* road markings: the handbook's pictures cropped to a strip of road (2026-11-09) */
.cs-road{border-radius:4px}
.cs-roads .cs-hb{width:96px;height:48px}
.cs-table th .cs-road{width:84px;height:42px}
.sl-pic .cs-road{width:190px;height:110px}
.sl-hero .cs-road{height:96px}
@media print{ .cs-roads .cs-hb{width:56px;height:28px} .cs-table th .cs-road{width:48px;height:24px} .cs-topic .cs-table th .cs-road{width:44px;height:22px;max-width:none;display:inline-block;vertical-align:middle;margin:0 5px 0 0} }
.sl-table td:first-child .sl-pic .cs-road{width:290px;height:58px;max-width:none;margin-bottom:6px}
/* slides: large pictures above an item list (the roundabout diagrams); a caption under a picture (the accelerator, pedal 4) */
.sl-figs{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:0 0 14px}
.sl-figs figure{margin:0;background:var(--sg-mist);border-radius:16px;padding:14px;text-align:center}
.sl-figs .cs-hb{width:100%;height:auto;aspect-ratio:1;border-radius:8px}
.sl-figs figcaption{font-size:26px;line-height:1.25;margin-top:10px;text-align:left}
.sl-figs figcaption b{display:block;font-family:var(--sg-display);font-size:32px}
.sl-pic:has(.sl-cap){flex-direction:column;gap:6px}
.sl-cap{font-size:22px;line-height:1.1;font-weight:700;color:var(--sg-red)}
.sl-figs-4 .cs-hb{width:auto;height:240px;max-width:100%;margin:0 auto;display:block}
.sl-figs-4 figcaption{font-size:24px}
.sl-figs-4 figcaption b{font-size:30px}
/* slides with room to spare: larger pictures (the RTT checks) */
.sl-items-big li{grid-template-columns:250px 1fr}
.sl-items-big .sl-pic .cs-hb{width:240px;height:140px}

/* My progress (progress.php), 2026-11-10: one test at a time; a bar per test, chapter and topic: learnt green,
   in progress amber, not tried grey */
.pg-tabpct{font-weight:600;opacity:.75;margin-left:2px}
.pg-sub{display:flex;gap:4px 18px;flex-wrap:wrap;border-bottom:1px solid var(--sg-line);margin:-4px 0 16px}
.pg-sub a{padding:8px 2px;text-decoration:none;color:var(--sg-muted);font-weight:600;border-bottom:3px solid transparent;margin-bottom:-1px}
.pg-sub a.sg-on{color:var(--sg-ink);border-bottom-color:var(--sg-red)}
.pg-test{border:1px solid var(--sg-line);border-radius:var(--sg-radius);background:var(--sg-paper);padding:18px 20px;margin:0 0 18px}
.pg-test header{display:flex;justify-content:space-between;align-items:baseline;gap:8px 16px;flex-wrap:wrap;margin-bottom:10px}
.pg-test h2{margin:0;font-size:22px}
.pg-h3{font-size:18px;margin:22px 0 6px}
.pg-code{display:inline-block;background:var(--sg-ink);color:#fff;border-radius:6px;padding:1px 8px;font-size:15px;vertical-align:2px;margin-right:4px}
.pg-pct{font-family:var(--sg-display);font-weight:700;font-size:20px;color:var(--sg-go)}
.pg-bar{display:flex;height:10px;border-radius:99px;background:#e6eaf0;overflow:hidden;min-width:60px}
.pg-bar.pg-big{height:16px}
.pg-bar span{display:block;height:100%}
.pg-bar .pg-l,.pg-dot.pg-l{background:var(--sg-go)}
.pg-bar .pg-p,.pg-dot.pg-p{background:var(--sg-amber)}
.pg-legend{display:flex;flex-wrap:wrap;gap:6px 18px;list-style:none;margin:10px 0 0;padding:0;font-size:15px;color:var(--sg-muted)}
.pg-legend b{color:var(--sg-ink)}
.pg-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:#e6eaf0;margin-right:6px;vertical-align:0}
.pg-ready{display:flex;gap:10px;align-items:flex-start;margin:14px 0 0;padding:10px 14px;border-radius:var(--sg-radius);background:var(--sg-amber-soft);border:1px solid #f0d7a8;font-size:15px}
.pg-ready>.fa{font-size:20px;color:var(--sg-amber);margin-top:2px}
.pg-ready-yes{background:var(--sg-go-soft);border-color:#cfe3d0}
.pg-ready-yes>.fa{color:var(--sg-go)}
.pg-est{color:var(--sg-muted);font-size:13.5px}
.pg-mocks{margin:12px 0 0;font-size:15px;display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center}
.pg-mock{display:inline-flex;align-items:center;gap:4px;border-radius:99px;padding:1px 9px;font-size:13.5px;font-weight:700;font-variant-numeric:tabular-nums}
.pg-pass{background:var(--sg-go-soft);color:var(--sg-go)}
.pg-fail{background:var(--sg-stop-soft);color:var(--sg-stop)}
.pg-actions{margin-top:14px}
.pg-locked{opacity:.75}
.pg-chapter{border-top:1px solid #f0ecea;padding:4px 0}
.pg-row{display:grid;grid-template-columns:28px minmax(0,1fr) minmax(80px,180px) 64px;gap:2px 10px;align-items:center;padding:6px 4px;border-radius:8px}
.pg-row:hover{background:var(--sg-mist)}
.pg-row .pg-name{color:var(--sg-ink);text-decoration:none}
.pg-row .pg-name:hover{text-decoration:underline}
.pg-lv1 .pg-name{font-weight:700}
.pg-lv2{font-size:15px}
.pg-lv2 .pg-name{padding-left:14px;color:var(--sg-muted)}
.pg-row .sg-num{font-family:var(--sg-display);font-weight:700;color:var(--sg-muted)}
.pg-num{text-align:right;font-variant-numeric:tabular-nums;font-size:14px;color:var(--sg-muted)}
.pg-gos{grid-column:2 / -1;font-size:13.5px;color:var(--sg-muted);display:flex;gap:4px 10px;flex-wrap:wrap;align-items:center}
.pg-lv2 .pg-gos{padding-left:14px}
.pg-chipgo{font-weight:700;color:var(--sg-red-dark);text-decoration:none}
.pg-chipgo:hover{text-decoration:underline}
.pg-lists{margin-bottom:8px}
.pg-pages{display:flex;gap:10px;align-items:center;justify-content:center;margin:12px 0}
.pg-unmark{display:inline;margin:0}
@media (max-width:600px){
  .pg-test{padding:14px}
  .pg-row,.pg-lv2{grid-template-columns:22px minmax(0,1fr) 54px}
  .pg-row .pg-bar{grid-column:2 / 4;grid-row:2}
  .pg-gos{grid-row:3}
}
.pg-line{display:flex;gap:10px;align-items:flex-start;background:var(--sg-mist);border-radius:var(--sg-radius);padding:10px 14px;font-size:15px;margin:12px 0}
.pg-line>.fa{color:var(--sg-go);margin-top:3px}
/* the states' colours on links and tabs, as on the bars: not tried grey, in progress amber, marked a bookmark (2026-11-10) */
.pg-go-new .pg-dot,.pg-go-progress .pg-dot,.pg-sub .pg-dot,.pg-lists .pg-dot{margin-right:6px}
.pg-dot:not(.pg-l):not(.pg-p){background:#b9b2af}
.pg-go-progress{border-color:#e9c98f}
.pg-go-progress:hover{border-color:var(--sg-amber)}
.pg-chipgo.pg-go-progress{color:#8a5a12}
.pg-chipgo.pg-go-new{color:var(--sg-ink)}
.pg-chipgo .pg-dot{width:8px;height:8px;margin-right:4px}
.pg-mk-marked{color:var(--sg-amber);margin-right:6px}
.sg-tabs a.sg-on .pg-dot:not(.pg-l):not(.pg-p){background:#fff}
/* menu icons (2026-11-10): a small icon in front of each menu item, in the muted colour; red on the page being shown */
.sg-mi{display:inline-block;width:1.25em;text-align:center;margin-right:7px;color:var(--sg-muted);font-size:.95em}
.sg-menu a.sg-on .sg-mi,.sg-menu > li.sg-on > .sg-sub-title .sg-mi,.sg-sub a.sg-on .sg-mi{color:var(--sg-red)}
.sg-menu a:hover .sg-mi{color:var(--sg-ink)}
.sg-user .sg-sub a .sg-mi{margin-right:9px}
@media (max-width:960px){
  /* phone menu: the links of a group sit indented under its heading, with a thin line down their left side, so it is
     clear which heading they belong to (2026-11-10) */
  .sg-test-menu > .sg-sub,.sg-help-menu > .sg-sub{position:relative;padding-left:18px}
  .sg-test-menu > .sg-sub > .sg-sub-note{margin-left:-18px}
  .sg-test-menu > .sg-sub::before,.sg-help-menu > .sg-sub::before{content:"";position:absolute;left:8px;bottom:6px;border-left:2px solid var(--sg-line)}
  .sg-test-menu > .sg-sub::before{top:52px}
  .sg-help-menu > .sg-sub::before{top:4px}
  .sg-test-menu.sg-on > .sg-sub::before,.sg-help-menu.sg-on > .sg-sub::before{border-left-color:#f2c9c9}
  .sg-menu .sg-help-menu > .sg-sub-title{font-size:16px;letter-spacing:0;text-transform:none;color:var(--sg-ink);font-weight:700;padding:12px 8px 4px}
  .sg-help-menu{border-top:1px solid var(--sg-line)}
  .sg-menu > li > a[href="price.php"]{border-top:1px solid var(--sg-line);border-radius:0}
  .sg-user .sg-sub{position:relative;padding-left:18px}
  .sg-user .sg-sub::before{content:"";position:absolute;left:8px;top:8px;bottom:6px;border-left:2px solid var(--sg-line)}
}
