@font-face {
  font-family: "TASA Explorer";
  src: url("/fonts/tasa-explorer-v2.012.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --font-ui: "TASA Explorer", "Noto Sans HK", "PingFang HK", "Microsoft JhengHei", "Noto Sans TC", system-ui, sans-serif;
}

:root{color-scheme:light;--ink:#142923;--body:#29443c;--muted:#50695f;--line:#d9e4dc;--bg:#f4f8f3;--surface:#fff;--accent:#d9f36b;--green:#17614a;--good:#dbf3e5;--bad:#ffe7de;--warn:#8c2d1e;font:100%/1.56 var(--font-ui)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);min-height:100vh;display:flex;flex-direction:column}a{color:var(--green);text-underline-offset:3px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #308d70;outline-offset:3px}.skip{position:absolute;left:1rem;top:-5rem;background:white;padding:.6rem;z-index:10}.skip:focus{top:1rem}header{background:#11251f;color:#fff}.head,.wrap,.foot{max-width:1160px;margin:auto;padding-inline:clamp(1rem,4vw,2rem)}.head,.foot{display:flex;justify-content:space-between;gap:1rem;align-items:center}.head{min-height:74px}.brand{display:flex;gap:.65rem;align-items:center;color:#fff;text-decoration:none;font-size:1.12rem;font-weight:850;white-space:nowrap}.brand svg{width:39px;height:39px}nav{display:flex;gap:.3rem}nav a{color:#d5e7db;text-decoration:none;padding:.6rem .85rem;border-radius:9px;font-weight:700}nav a:hover,nav a[aria-current]{background:#2b473c;color:#fff}.wrap{width:100%;flex:1;padding-block:clamp(1.25rem,4vw,3rem)}h1,h2,h3,p{margin:0 0 .7em}h1{font-size:clamp(2rem,5vw,3.35rem);line-height:1.14;letter-spacing:-.04em}h2{font-size:clamp(1.25rem,2.7vw,1.65rem);line-height:1.25}h3{font-size:1.13rem}.muted,.small{color:var(--muted)}.small{font-size:.9rem}.eyebrow{font-size:.87rem;letter-spacing:.09em;text-transform:uppercase;font-weight:800;color:var(--green)}.hero{display:grid;grid-template-columns:1.65fr 1fr;gap:1.5rem;background:#112c23;color:#fff;padding:clamp(1.35rem,5vw,3.5rem);border-radius:25px;position:relative;overflow:hidden}.hero:after{content:"";border:1px solid #50947855;border-radius:50%;width:29rem;height:29rem;position:absolute;right:-12rem;top:-17rem;pointer-events:none}.hero .eyebrow{color:#d7ef79}.hero p:not(.eyebrow){color:#d6e7dc;max-width:36rem}.hero strong{font-size:1.5rem}.spec{position:relative;z-index:1;align-self:center;background:#24463a;border:1px solid #467361;border-radius:18px;padding:1.15rem 1.25rem}.spec div{display:flex;justify-content:space-between;align-items:center;gap:.7rem;padding:.5rem 0;border-bottom:1px solid #557366}.spec div:last-of-type{border:0}.row{display:flex;gap:.65rem;align-items:center;flex-wrap:wrap}.spread{justify-content:space-between}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.35rem;color:var(--ink);text-decoration:none;background:#fff;border:1px solid var(--line);border-radius:12px;padding:.67rem 1rem;font-weight:800;min-height:46px}.btn:hover:not(:disabled){border-color:#469079}.primary{background:var(--accent);border-color:var(--accent);color:#192a1b}.dark{background:#194b3a;color:#fff;border-color:#194b3a}.tile,.panel{background:#fff;border:1px solid var(--line);border-radius:18px;padding:clamp(1rem,3vw,1.65rem)}.tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:1.25rem 0}.tile{display:flex;flex-direction:column;gap:.35rem}.tile>*:last-child{align-self:flex-start;margin-top:auto}.tag{font-weight:800;font-size:.875rem;border-radius:20px;background:#e3efe6;color:#275646;padding:.24rem .65rem;display:inline-block}.strip{margin-block:1.25rem}.q-layout{display:grid;grid-template-columns:minmax(0,1fr) 19rem;gap:1rem;align-items:start}.q-head{margin-bottom:1rem}.bar{height:9px;background:#e2ece4;border-radius:10px;overflow:hidden;margin:.6rem 0}.bar i{display:block;height:100%;background:#3a946f}.options{display:grid;gap:.55rem;margin:1rem 0}.opt{background:#f9fbf8;color:var(--ink);border:1px solid var(--line);border-radius:12px;text-align:left;padding:.7rem;min-height:56px;display:flex;align-items:center;gap:.75rem;width:100%}.opt:hover:not(:disabled),.opt.sel{border-color:#247957;background:#e6f3e8}.opt:disabled{opacity:1}.opt.good,.good{background:var(--good)}.opt.bad,.bad{background:var(--bad)}.letter{display:grid;place-items:center;border:1px solid #b8ccbf;border-radius:8px;min-width:2rem;min-height:2rem;font-weight:800}.note{padding:.85rem 1rem;border-radius:12px;border:1px solid var(--line);margin:.85rem 0;overflow-wrap:anywhere}.note p:last-child{margin-bottom:0}.clock{font-variant-numeric:tabular-nums;font-weight:850;color:#174f3d}.urgent{color:var(--warn)}.gridnum{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.32rem}.gridnum button{min-height:42px;border:1px solid var(--line);background:#f9fbf8;border-radius:8px;color:var(--ink)}.gridnum .filled{background:#d9f1de}.gridnum .flagged{border:2px solid #9d6728}.gridnum .here{box-shadow:0 0 0 2px #225b48 inset;font-weight:850}.jump{padding:.9rem 1rem}.jump summary{cursor:pointer;font-weight:850}.jump section{margin-top:.85rem}.form{display:flex;flex-wrap:wrap;gap:.85rem;align-items:end;margin-bottom:1rem}.form label{display:grid;gap:.3rem;font-weight:750}.form input,.form select{min-height:46px;padding:.5rem .75rem;background:white;border:1px solid #9fb8aa;color:var(--ink);border-radius:10px;max-width:100%}.list{display:grid;gap:.65rem}.list details{background:white;border:1px solid var(--line);border-radius:12px;padding:.75rem 1rem}.list summary{cursor:pointer;font-weight:750}.list details[open] summary{margin-bottom:.65rem}.list ol{padding-left:1.35rem}.kpi{font-size:clamp(1.65rem,4vw,2.6rem);font-weight:900;line-height:1.2}.statline{display:grid;grid-template-columns:minmax(5.5rem,1fr) 3fr minmax(4rem,auto);gap:.65rem;align-items:center;padding:.5rem 0;border-bottom:1px solid var(--line)}.results{display:grid;gap:.75rem;grid-template-columns:repeat(2,minmax(0,1fr));margin-block:1rem}.results .note{margin:0}.foot{padding-block:1.1rem;font-size:.9rem;flex-wrap:wrap}.foot span{color:var(--muted)}footer{border-top:1px solid var(--line)}dialog{max-width:min(460px,calc(100% - 2rem));border:1px solid var(--line);border-radius:18px;color:var(--ink);padding:1.5rem}dialog::backdrop{background:#10261caa}
@media(max-width:800px){.q-layout{grid-template-columns:1fr}.hero{grid-template-columns:1fr}.spec{max-width:30rem}.gridnum{grid-template-columns:repeat(7,minmax(0,1fr))}}
@media(max-width:560px){.head{display:block;padding-top:.7rem}.brand svg{width:33px;height:33px}nav{margin-top:.4rem;display:grid;grid-template-columns:repeat(4,1fr)}nav a{text-align:center;padding:.55rem .2rem;font-size:.94rem}.tiles{grid-template-columns:1fr}.hero{gap:1rem;border-radius:18px}.hero h1{font-size:2rem}.btn{padding:.66rem .75rem}.q-head h2{font-size:1.32rem}.form label{width:100%}.form input,.form select{width:100%}.gridnum{grid-template-columns:repeat(6,minmax(0,1fr))}.results{grid-template-columns:1fr}.foot{justify-content:flex-start}.foot span{order:3;width:100%}.q-actions{display:grid;grid-template-columns:1fr 1fr}.q-actions>*{width:100%}}
/* Hong Kong taxi edition */
:root{--ink:#142c34;--body:#27424a;--muted:#426067;--line:#d7e8e8;--bg:#f9fcfc;--accent:#006b70;--green:#006b70;--good:#ddf4ea;--bad:#ffe7de}
header{background:#fff;color:var(--ink);border-bottom:1px solid #e3eeee}.head,.wrap,.foot{max-width:1136px}.head{min-height:70px}.brand{color:var(--ink);font-weight:900}.brand svg{width:36px;height:36px}nav a{color:#244f57;border-radius:40px}nav a:hover,nav a[aria-current]{color:#00595e;background:#dcefee}.wrap{padding-top:2rem}.btn{border-radius:999px}.primary,.dark{background:#006b70;border-color:#006b70;color:#fff}.primary:hover:not(:disabled),.dark:hover:not(:disabled){background:#00595e;border-color:#00595e}.eyebrow{color:#006b70}.intro{display:grid;grid-template-columns:1fr minmax(0,1fr);align-items:center;gap:1rem;min-height:360px;padding:1.1rem 0 2rem}.intro-copy{position:relative;z-index:1}.intro h1{font-size:clamp(2.2rem,4.15vw,3.55rem);font-weight:930;line-height:1.13;letter-spacing:-.04em;margin-bottom:.36em}.intro h1 em{font-style:normal;color:#097e80}.intro-copy>p:not(.eyebrow){color:var(--muted);margin:0 0 1.22rem}.intro .row{gap:.55rem}.intro-more{background:transparent;border-color:#abd4d3;color:#00686a}.intro-art{margin:0;position:relative;isolation:isolate;text-align:center}.intro-art:before{content:"";position:absolute;z-index:-1;inset:14% 7% 9%;background:radial-gradient(ellipse,#d6eeeb 0%,#e8f6f4 60%,#f9fcfc00 100%);border-radius:52%}.intro-art img{display:block;width:100%;height:auto;max-height:345px;object-fit:contain}
.course-area{background:#d7efee;border-radius:24px;padding:clamp(1.05rem,3.2vw,2rem);position:relative;overflow:hidden}.course-area:before{content:"";position:absolute;inset:28% -4% 11% -5%;border:2px dashed #80c3c2;border-radius:35% 58% 39% 48%;transform:rotate(7deg);pointer-events:none}.section-heading{position:relative;display:flex;justify-content:space-between;align-items:end;gap:.8rem;margin-bottom:1rem}.section-heading h2{margin-bottom:0;font-size:clamp(1.5rem,3vw,2rem)}.section-heading .eyebrow{margin-bottom:.28rem}.course-link{background:#eef9f9;border-color:#9acccb;color:#005b60;flex-shrink:0}.courses,.quick-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;position:relative}.course{display:flex;flex-direction:column;min-height:218px;background:#fff;border:1px solid #bedfde;border-radius:18px;padding:1rem 1.1rem;box-shadow:0 6px 22px #1a5e6810}.course-top{display:flex;justify-content:space-between;align-items:center;gap:.65rem;margin-bottom:.67rem}.course-no{display:grid;place-items:center;background:#e1f3f0;border-radius:10px;width:2.25rem;height:2.25rem;color:#00676c;font-weight:900}.course h3{margin-bottom:.2rem;font-size:1.21rem}.course-count{font-weight:750;color:#006b70;margin-bottom:.36rem}.course .muted{margin-bottom:.85rem}.road .course-no,.road .tag{background:#ffefdd;color:#8b3d05}.geo .course-no,.geo .tag{background:#fae9e3;color:#953b2b}.course-btn{margin-top:auto;background:#bb3f15;border-color:#bb3f15;color:#fff;width:100%}.course-btn:hover:not(:disabled){background:#98310e;border-color:#98310e}.sim{position:relative;background:#075d64;color:#fff;border-radius:18px;margin-top:1rem;padding:1.15rem 1.25rem;display:flex;gap:.8rem;align-items:center;justify-content:space-between}.sim h3{font-size:1.35rem;margin:.31rem 0 .2rem}.sim p{margin:0;color:#e5f4f0}.sim-tag{font-size:.89rem;font-weight:800;color:#adf0e6}.sim-btn{color:#00565d;background:#fff;flex-shrink:0}.quick-links{margin:1.2rem 0}.quick-links h2{font-size:1.2rem}.faq{margin-bottom:.3rem}.faq h2{margin-bottom:.7rem}.faq details{border-top:1px solid var(--line);padding:.75rem 0}.faq summary{cursor:pointer;font-weight:800}.faq details p{margin:.45rem 0 0;color:var(--muted)}.tag{background:#dff0ee;color:#005d62}.bar i{background:#0d837f}.opt:hover:not(:disabled),.opt.sel{border-color:#0b817d;background:#e9f7f4}.opt.good{background:var(--good)}.opt.bad{background:var(--bad)}.gridnum .filled{background:#ceeeea}.gridnum .here{box-shadow:0 0 0 2px #146970 inset}.clock{color:#006b70}.urgent{color:#9f301e}
@media(max-width:760px){.intro{min-height:0;gap:.6rem}.intro h1{font-size:clamp(1.95rem,5vw,3rem)}.courses,.quick-links{gap:.6rem}.course{padding:1rem}.section-heading{align-items:start}}
@media(max-width:560px){.head{padding-top:.66rem}.wrap{padding-top:1.2rem}.intro{grid-template-columns:1fr;padding:0 0 1rem;gap:.4rem}.intro h1{font-size:clamp(2rem,8vw,2.55rem)}.intro-copy>p:not(.eyebrow){margin-bottom:.7rem}.intro-art img{max-height:190px}.section-heading{display:block}.section-heading .course-link{margin-top:.65rem;min-height:43px}.course-area{border-radius:17px}.courses,.quick-links{grid-template-columns:1fr;gap:.7rem}.course{min-height:0}.course-top{margin-bottom:.45rem}.sim{align-items:flex-start;flex-direction:column}.sim-btn{width:100%}.intro .row .btn{min-height:46px}.quick-links .tile{gap:0}.quick-links .tile p{margin-bottom:.45rem}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}


/* Visual QA: distinguish hover from chosen answers; keep the first card action in view on phones. */
.opt:hover:not(:disabled):not(.sel){background:#fff;border-color:#70a8ab}.opt.sel{border-color:#006b70;background:#ddf2ef;box-shadow:inset 0 0 0 1px #006b70}.opt.sel .letter{background:#006b70;border-color:#006b70;color:#fff}
@media(max-width:560px){.intro-art img{max-height:165px}.section-heading .course-link{border:0;background:none;padding:0;min-height:38px;justify-content:flex-start;text-decoration:underline;margin-top:.2rem}.course .muted{margin-bottom:.65rem}.course-area{padding:1rem}.course{padding:.95rem}}

.foot{min-height:66px}.foot-brand{font-weight:850;color:var(--ink);text-decoration:none}.foot-links{display:flex;flex-wrap:wrap;align-items:center;gap:.2rem 1rem}.foot-links a{display:inline-flex;align-items:center;min-height:44px;color:var(--muted);text-decoration:none}.foot-links a:hover{text-decoration:underline}@media(max-width:560px){.foot{justify-content:space-between;gap:.4rem .75rem}.foot-links{gap:.25rem .65rem}}

/* Motion is decorative and never gates a question or timer. */
@keyframes arrive-copy{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes arrive-taxi{0%{opacity:0;transform:translateX(27px) scale(.98)}70%{opacity:1;transform:translateX(-2px) scale(1)}100%{opacity:1;transform:none}}
@keyframes route-trace{from{opacity:0;transform:rotate(11deg) scale(.96)}to{opacity:1;transform:rotate(7deg) scale(1)}}
@keyframes choice-pop{0%{transform:scale(.86)}68%{transform:scale(1.06)}100%{transform:none}}
@keyframes answer-feedback{from{opacity:.45;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes score-fill{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media(prefers-reduced-motion:no-preference){
 .intro-copy{animation:arrive-copy .44s cubic-bezier(.18,.75,.3,1) both}
 .intro-art img{animation:arrive-taxi .72s cubic-bezier(.25,.67,.35,1) both}
 .course-area:before{animation:route-trace .85s ease-out .08s both}
 .course{animation:arrive-copy .38s ease-out backwards;transition:transform .2s,box-shadow .2s}
 .course:nth-child(2){animation-delay:.07s}.course:nth-child(3){animation-delay:.14s}
 .course-btn,.intro .btn,.sim-btn{transition:background-color .16s,border-color .16s,transform .16s}
 .course-btn:active,.intro .btn:active,.sim-btn:active{transform:scale(.97)}
 .opt.sel .letter,.opt.good .letter{animation:choice-pop .24s ease-out both}
 .options+.note,.results .note{animation:answer-feedback .28s ease-out both}
 .statline .bar i{animation:score-fill .4s ease-out both;transform-origin:left}
}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.course:hover,.course:focus-within{transform:translateY(-4px);box-shadow:0 11px 26px #1a5e6825}}
@media(max-width:560px) and (prefers-reduced-motion:no-preference){@keyframes arrive-taxi{0%{opacity:0;transform:translateX(12px) scale(.98)}70%{opacity:1;transform:translateX(-1px) scale(1)}100%{opacity:1;transform:none}}}

.stat-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}.reset-btn{color:#8c2d1e}.danger{color:#fff;background:#8c2d1e;border-color:#8c2d1e}.danger:hover:not(:disabled){border-color:#6d2114;background:#6d2114}.verdict .kpi{margin:.1rem 0 .38rem}@media(max-width:800px){.stat-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:360px){.stat-tiles{grid-template-columns:1fr}}

.ad-reserve{min-height:82px;margin:1.15rem 0;display:grid;place-items:center;border:1px dashed #c7dcdc;border-radius:12px;background:#f5fafa;color:#526a72;font-size:.85rem}.ad-reserve span{padding:.25rem .65rem}
.signal-art{position:absolute;z-index:2;width:clamp(26px,6vw,48px);height:auto;left:0;bottom:5%;transform:rotate(-3deg);filter:drop-shadow(0 3px 3px #15384035)}.signal-red,.signal-amber{opacity:.25}.signal-green{opacity:1}
.opt{background:#fff;border-radius:14px;box-shadow:0 2px 6px #1130380a;min-height:58px}.opt.good{background:var(--good)}.opt.bad{background:var(--bad)}.choice-label{flex:1;min-width:0}.choice-mark{display:grid;place-items:center;width:1.35rem;height:1.35rem;border-radius:50%;background:#006b70;color:#fff;font-size:.82rem;flex:none}
@keyframes question-arrive{from{opacity:.62;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes signal-red{0%,31%{opacity:1}32%,100%{opacity:.25}}@keyframes signal-amber{0%,31%,62%,100%{opacity:.25}32%,61%{opacity:1}}@keyframes signal-green{0%,61%{opacity:.25}62%,100%{opacity:1}}
@media(prefers-reduced-motion:no-preference){.signal-red{animation:signal-red 1.25s steps(1,end) both}.signal-amber{animation:signal-amber 1.25s steps(1,end) both}.signal-green{animation:signal-green 1.25s steps(1,end) both}.question-arrive .q-head,.question-arrive .options{animation:question-arrive .22s ease-out both}.opt{transition:box-shadow .15s,border-color .15s,background-color .15s,transform .15s}.opt:active:not(:disabled){transform:scale(.993)}.choice-mark{animation:choice-pop .24s ease-out both}.opt.sel{box-shadow:0 2px 8px #1a726927,inset 0 0 0 1px #006b70}}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.opt:hover:not(:disabled):not(.sel){transform:translateY(-1px);box-shadow:0 4px 12px #1a72691a}}
@media(max-width:560px){.signal-art{width:26px;left:2%;bottom:7%}.ad-reserve{min-height:72px}.foot-links{justify-content:flex-end}}


.ad-reserve[hidden]{display:none!important}
.guide-entry{margin:1.15rem 0;display:flex;gap:1rem;align-items:center;justify-content:space-between}.guide-entry h2,.guide-entry p{margin:.2rem 0}.guide-entry p,.guide-lead{color:var(--muted)}.guide-article{max-width:870px;margin-inline:auto}.guide-article h1{font-size:clamp(1.9rem,4.4vw,3rem);line-height:1.15}.guide-article h2{font-size:1.3rem;margin-top:1.3rem}.guide-article li{margin:.3rem 0}.guide-lead{font-size:1.075rem}.guide-grid,.guide-spec{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:.75rem;margin:1rem 0}.guide-card,.guide-spec div{background:#eaf5f3;border:1px solid #d2e7e3;border-radius:14px;padding:1rem;display:flex;flex-direction:column;gap:.38rem}.guide-card{text-decoration:none}.guide-card:hover strong{text-decoration:underline}.guide-card span,.guide-spec dd{color:var(--muted)}.guide-spec dt{font-weight:850}.guide-spec dd{margin:0}.guide-actions{margin-top:1.3rem}
.taxi-scene{display:block;width:min(100%,228px);height:60px;margin:.25rem 0 .7rem}.section-heading .taxi-scene{height:46px;width:164px;margin:0}.scene-hand{transform-origin:182px 29px}.scene-bar{transform-box:fill-box;transform-origin:center bottom}.scene-pin{transform-box:fill-box;transform-origin:center bottom}
@keyframes taxi-route{0%{opacity:0;transform:translateX(-9px)}25%{opacity:1}80%{transform:translateX(20px)}100%{transform:translateX(16px)}}@keyframes taxi-trace{from{stroke-dashoffset:25}to{stroke-dashoffset:0}}@keyframes pin-arrive{from{opacity:.25;transform:translateY(-7px)}to{opacity:1;transform:none}}@keyframes meter-hand{from{transform:rotate(-35deg)}to{transform:none}}@keyframes bars-up{from{transform:scaleY(.2)}to{transform:none}}
@media(prefers-reduced-motion:no-preference){.svg-cab{animation:taxi-route .85s cubic-bezier(.2,.65,.25,1) both}.scene-route{animation:taxi-trace 1s ease-out both}.scene-pin{animation:pin-arrive .47s ease-out .22s both}.scene-hand{animation:meter-hand .65s ease-out .2s both}.scene-bar{animation:bars-up .52s ease-out both}.scene-bar:nth-child(2){animation-delay:.09s}.scene-bar:nth-child(3){animation-delay:.18s}}
@media(max-width:560px){.guide-entry{align-items:flex-start;flex-direction:column;gap:.6rem}.section-heading .taxi-scene{display:none}.taxi-scene{height:48px;width:178px;margin-bottom:.45rem}}


/* 香港的士生活： shared paint, compact topics and route lab */
:root{--cab-red:#ad3329;--cab-red-dark:#8a261f;--harbour:#006b70;--sign-white:#fff}
.primary,.primary:hover:not(:disabled){color:var(--sign-white);background:var(--cab-red);border-color:var(--cab-red)}
.primary:hover:not(:disabled){background:var(--cab-red-dark);border-color:var(--cab-red-dark)}
.course-btn,.course-btn:hover:not(:disabled){color:var(--harbour);background:var(--sign-white);border-color:#8dbdbc}
.course-btn:hover:not(:disabled){background:#eaf7f6}
.topic-icon{display:grid;place-items:center;flex:none;width:2.65rem;height:2.65rem;border-radius:.75rem;background:#e1f3f0;color:#00676c}
.topic-icon svg{width:1.75rem;height:1.75rem}.road .topic-icon{background:#fae9e3;color:var(--cab-red)}
.practice-tile{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:.55rem .8rem;padding:.9rem 1rem}
.practice-tile h2{font-size:1.13rem;margin:0}.practice-tile p{margin:0;font-size:.88rem}
.practice-tile .btn{grid-column:2;justify-self:start;margin:0;min-height:44px;padding:.38rem .78rem}
.route-entry,.stats-start,.next-study{display:flex;align-items:center;gap:1rem;background:#eaf6f5;border-color:#c0e0de;margin-block:1rem}
.route-entry>div,.stats-start>div,.next-study>div{flex:1}
.route-entry h2,.stats-start h2,.next-study h2{margin:0 0 .25rem}.route-entry p,.stats-start p,.next-study p{margin:0;color:var(--muted)}
.route-lab{max-width:52rem}.route-figure{margin:1rem 0;padding:.75rem;background:#eef8f7;border-radius:.9rem}
.route-sketch{display:block;width:100%;max-width:25rem;margin:auto;overflow:visible}
.route-water{fill:none;stroke:#a7d5d4;stroke-width:2}
.route-track{fill:none;stroke:#00757a;stroke-width:3;stroke-dasharray:5 4;stroke-linecap:round;stroke-linejoin:round}
.route-sketch circle{fill:#fff;stroke:#00757a;stroke-width:2}.route-sketch circle.route-highlight{fill:#ffe6df;stroke:var(--cab-red);transform-box:fill-box;transform-origin:center}
.route-sketch text{font:700 11px var(--font-ui);fill:var(--ink)}
.route-stops{margin:.25rem 0 .65rem;list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:.3rem .65rem}
.route-stops li{font-size:.9rem;color:var(--ink);white-space:normal}.route-stops span{display:inline-grid;place-items:center;background:#d1ece9;width:1.35rem;height:1.35rem;border-radius:50%;font-size:.78rem;font-weight:800}
.route-stop-key{font-weight:800}.route-figure figcaption{margin:0}
@keyframes location-reveal{50%{transform:scale(1.28)}}
@media(prefers-reduced-motion:no-preference){.route-sketch .route-highlight{animation:location-reveal .44s ease-out both}}
@media(max-width:560px){.practice-tiles{gap:.6rem}.practice-tile{grid-template-columns:auto minmax(0,1fr) auto;padding:.63rem .7rem;gap:.5rem}.practice-tile .btn{grid-column:3;font-size:.86rem;padding:.35rem .55rem}.practice-tile .topic-icon{width:2.2rem;height:2.2rem}.practice-tile h2{font-size:1rem}.route-entry,.stats-start,.next-study{flex-wrap:wrap;gap:.65rem}.route-entry .btn,.stats-start .btn,.next-study .btn{flex:none}.route-entry>div,.stats-start>div,.next-study>div{min-width:180px}}
@media(max-width:355px){.practice-tile{grid-template-columns:auto minmax(0,1fr)}.practice-tile .btn{grid-column:2}}

.practice-tile #no-wrong{grid-column:1/-1;margin:0}

.mistake-history{margin:0 0 1rem}.mistake-history h3{margin:.85rem 0 .45rem;font-size:1rem}.mistake-history .list details{overflow-wrap:anywhere}.mistake-status{display:inline-block;margin-inline-start:.3em;font-weight:650}.mistake-fixed{margin-top:.8rem}.mistake-fixed>.list{margin-top:.65rem}

/* 香港的士生活 | design.md */
:root{--color-taxi-red:#d62828;--color-taxi-red-dark:#a91e24;--color-taxi-red-tint:#fff0ee;--color-nt-green:#168b53;--color-nt-green-tint:#e7f6ec;--color-lantau-blue:#2878c8;--color-lantau-blue-tint:#eaf4ff;--color-roof-cream:#fff5e5;--color-paper-white:#fff;--color-road-charcoal:#30343b;--color-asphalt-gray:#626973;--color-road-line:#d5d8dd;--color-disabled-gray:#a7adb5;--color-caution-amber:#e7a72e;--color-error-red:#c92b32;--blue-text:#195c9c;--green-text:#126439;--ink:var(--color-road-charcoal);--body:var(--color-asphalt-gray);--muted:var(--color-asphalt-gray);--line:var(--color-road-line);--bg:var(--color-paper-white);--cab-red:var(--color-taxi-red);--cab-red-dark:var(--color-taxi-red-dark);--green:var(--blue-text);--harbour:var(--blue-text);--good:var(--color-nt-green-tint);--bad:var(--color-taxi-red-tint);--warn:var(--color-taxi-red-dark);font:100%/1.55 var(--font-ui)}
body{font-size:1.0625rem;color:var(--ink);background:#fffdf9}p{color:var(--body)}
.head,.wrap,.foot{max-width:1200px}header{position:sticky;top:0;z-index:5;background:#fff;border-bottom:1px solid var(--line)}.skip{position:fixed;z-index:20}.head{min-height:70px}.brand{color:var(--color-taxi-red-dark);font-size:1.1rem}.brand svg{flex:none}nav a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border-radius:12px;color:var(--ink);font-size:.9375rem;white-space:nowrap}nav a:hover,nav a[aria-current]{color:var(--color-taxi-red-dark);background:var(--color-taxi-red-tint)}
h1,h2,h3,.kpi{font-family:var(--font-ui);letter-spacing:normal}h1{font-size:clamp(2.125rem,5vw,3rem)}.intro h1{color:var(--ink);font-size:clamp(2rem,4.5vw,3rem);letter-spacing:normal;line-height:1.2}.intro h1 em{color:var(--color-taxi-red)}.eyebrow{color:var(--color-taxi-red-dark);letter-spacing:normal}.intro{gap:clamp(1rem,3vw,2.5rem);padding:0 0 clamp(3rem,6vw,5rem);min-height:0}.intro-art:before{display:none}.intro-art img{max-height:none;aspect-ratio:14/9;border-radius:20px}.intro-art{background:var(--color-roof-cream);border-radius:20px;overflow:hidden}.taxi-pills{margin:1rem 0 0}.taxi-pill{display:inline-flex;gap:.35rem;align-items:center;min-height:44px;padding:.25rem .6rem;border:2px solid transparent;border-radius:12px;font-size:.875rem;font-weight:700;text-decoration:none;color:var(--tone);background:var(--tint)}.taxi-pill svg{width:1.25rem;height:1.25rem;flex:none}.taxi-pill:hover,.taxi-pill:focus-visible{border-color:currentColor}.taxi-urban{--tone:var(--color-taxi-red-dark);--tint:var(--color-taxi-red-tint)}.taxi-nt{--tone:var(--green-text);--tint:var(--color-nt-green-tint)}.taxi-lantau{--tone:var(--blue-text);--tint:var(--color-lantau-blue-tint)}
.btn{min-height:48px;border:2px solid var(--line);border-radius:12px;color:var(--blue-text);box-shadow:none;background:#fff}.btn:hover:not(:disabled){background:var(--color-lantau-blue-tint);border-color:var(--color-lantau-blue)}.primary,.dark,.primary:hover:not(:disabled),.dark:hover:not(:disabled){background:var(--color-taxi-red);border-color:var(--color-taxi-red);color:white}.primary:hover:not(:disabled),.dark:hover:not(:disabled){background:var(--color-taxi-red-dark);border-color:var(--color-taxi-red-dark)}.course-btn,.course-btn:hover:not(:disabled){background:white;border-color:var(--line);color:var(--blue-text)}.course-btn:hover:not(:disabled){background:var(--color-lantau-blue-tint);border-color:var(--color-lantau-blue)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--color-lantau-blue);outline-offset:3px}
.course-area{background:var(--color-roof-cream);border-radius:20px}.course-area:before{border-color:#dfc8a7}.card,.list details,.course,.panel,.tile{border:1px solid var(--line);border-radius:20px;box-shadow:none;background:#fff}.course{padding:1.25rem}.course-count{color:var(--color-taxi-red-dark)}.sim{color:var(--ink);background:#fff;border:2px solid #efccc2}.sim p{color:var(--muted)}.sim-tag,.tag{color:var(--color-taxi-red-dark);background:var(--color-taxi-red-tint)}.sim-tag{padding:.18rem .48rem;border-radius:8px}.topic-icon,.guide-card,.guide-spec div,.route-figure{color:var(--blue-text);background:var(--color-lantau-blue-tint);border-color:var(--line)}.road .topic-icon{color:var(--color-taxi-red-dark);background:var(--color-taxi-red-tint)}.route-entry,.stats-start,.next-study{background:var(--color-roof-cream);border-color:#ead5b5}.guide-article{max-width:760px}.guide-article h1{letter-spacing:normal}.bar{background:var(--line);border-radius:999px}.bar i{background:var(--color-taxi-red);border-radius:inherit}.clock,.urgent{color:var(--color-taxi-red-dark)}.opt{padding:clamp(.7rem,2.4vw,1rem);border:2px solid var(--line);border-radius:18px;box-shadow:none;min-height:60px}.opt:hover:not(:disabled):not(.sel){border-color:var(--color-lantau-blue);background:var(--color-lantau-blue-tint);box-shadow:none;transform:none}.opt.sel{border-color:var(--color-lantau-blue);background:var(--color-lantau-blue-tint);box-shadow:none}.opt.sel .letter,.choice-mark{background:var(--blue-text);border-color:var(--blue-text);color:#fff}.opt.good{background:var(--good);border-color:var(--color-nt-green)}.opt.bad{background:var(--bad);border-color:var(--color-error-red)}.opt.good strong,.note.good strong{color:var(--green-text)}.opt.bad strong,.note.bad strong{color:var(--color-taxi-red-dark)}.letter{border-color:var(--line);flex:none}.choice-label{overflow-wrap:anywhere}.gridnum button{min-height:44px;border-color:var(--line);background:#fff}.gridnum .filled{color:var(--blue-text);background:var(--color-lantau-blue-tint)}.gridnum .here{box-shadow:0 0 0 2px var(--blue-text) inset}.gridnum .flagged{border:2px solid #906020}.form input,.form select{border:2px solid var(--line)}.route-track,.route-sketch circle{stroke:var(--color-lantau-blue)}.route-stops span{background:var(--color-lantau-blue-tint)}.ad-reserve{min-height:88px;border-color:var(--line);background:#faf9f7;color:var(--muted)}.reset-btn{color:var(--color-taxi-red-dark)}.danger,.danger:hover:not(:disabled){background:var(--color-taxi-red-dark);color:white;border-color:var(--color-taxi-red-dark)}
footer{background:var(--color-taxi-red);color:#fff;border:0}.foot{align-items:flex-start;padding-block:2rem}.foot-brand{color:white;font-size:1.15rem}.foot-group{display:flex;flex-direction:column;align-items:flex-start}.foot-group strong{color:white}.foot-links{align-items:flex-start;gap:.8rem 2rem}.foot-links a{color:#fff}.foot-links a:hover{color:#fff} .opt.good .choice-mark{background:var(--green-text)}.opt.bad .choice-mark{background:var(--color-taxi-red-dark)} .opt.sel .letter{background:var(--blue-text)} .mistake-history summary{min-height:44px;align-content:center}footer a:focus-visible{outline-color:#fff}.taxi-info-grid{margin:1.5rem 0}.taxi-info-card{background:var(--tint);border-color:var(--tone);scroll-margin-top:10rem}.taxi-info-card h2{color:var(--tone);font-size:1.35rem}.taxi-info-card svg{width:84px;height:56px}.taxi-info-card>*:last-child{margin-top:0}.taxi-fare{font-weight:850;color:var(--tone);font-size:1.35rem}.progress-note{margin:.65rem 0 1rem}.intro .row .btn{min-height:48px}
@media(prefers-reduced-motion:no-preference){.intro-art img{animation:arrive-taxi .58s ease-out 1 both}.course,.course:hover,.course:focus-within{box-shadow:none}.bar i{transition:width .32s ease-out}.opt{transition:background-color .15s,border-color .15s}.q-layout:has(.clock) *{animation:none!important;transition:none!important}}
@media(max-width:780px){.head{display:block;padding-top:.55rem}.head nav{display:flex;flex-wrap:wrap;margin:0;gap:0}.head nav a{padding:.45rem .52rem}.intro{gap:1rem}.foot-links{justify-content:flex-start}}
@media(max-width:560px){.intro{grid-template-columns:minmax(0,1fr);padding-bottom:2.5rem}.intro-art img{max-height:215px;object-fit:contain}.intro h1{font-size:clamp(1.82rem,8vw,2.2rem)}nav a{font-size:.875rem}.section-heading .course-link{min-height:44px}.q-actions>*{min-width:0}.foot{display:block}.foot-links{margin-top:.7rem}.taxi-pills{gap:.32rem}.taxi-pill{padding-inline:.45rem}.course-area+.route-entry{margin-top:2.25rem}}
@media(max-width:360px){.head nav a{padding-inline:.35rem}.gridnum{grid-template-columns:repeat(5,minmax(0,1fr))}}

/* Quiet interaction: use state feedback, not decorative motion. */
.intro-copy,.intro-art img,.course,.course-area:before,.svg-cab,.scene-route,.scene-pin,.scene-hand,.scene-bar,.signal-art *,.question-arrive .q-head,.question-arrive .options,.opt .letter,.choice-mark,.options+.note,.results .note,.statline .bar i,.route-sketch .route-highlight{animation:none}
.course:hover,.course:focus-within,.btn:active,.opt:active:not(:disabled){transform:none}
@media(prefers-reduced-motion:no-preference){
 .btn,.opt,.taxi-pill,nav a{transition:background-color .14s ease,border-color .14s ease,color .14s ease}
 .btn:active:not(:disabled){transform:translateY(1px)}
 .opt:active:not(:disabled){transform:none}
}
.q-layout:has(.clock) *{animation:none!important;transition:none!important}

.opt.sel .letter,.opt.good .letter{animation:none}.opt:hover:not(:disabled):not(.sel){transform:none}

/* Typography and navigation shared by the handbook and its study pages. */
:root {
  --paper-ink: #242c29;
  --paper-muted: #515b56;
  --paper-rule: #cfcec5;
  --stamp-red: #ad3027;
}
body { background: #fff; color: var(--paper-ink); }
.head, .wrap, .foot { max-width: 1248px; }
header { background: #fff; border-bottom: 1px solid var(--paper-rule); }
.head { min-height: 72px; }
.brand, .foot-brand { color: var(--paper-ink); font: 800 1.22rem/1.3 var(--font-ui); letter-spacing: .035em; }
.brand { gap: .7rem; }
.roof-sign {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 26px;
  border: 2px solid currentColor;
  border-bottom-width: 3px;
  border-radius: 9px 9px 3px 3px;
  color: var(--stamp-red);
  font: 800 15px/1 var(--font-ui);
  letter-spacing: .015em;
}
.roof-sign::after { content: ''; position: absolute; bottom: -5px; inset-inline: -4px; height: 2px; background: currentColor; }
.head nav { gap: .25rem; }
.head nav a { padding: .58rem .75rem; border-radius: 0; color: var(--paper-ink); font-weight: 650; }
.head nav a:is(:hover,[aria-current]) { background: transparent; color: var(--stamp-red); text-decoration: underline; text-underline-offset: .45rem; text-decoration-thickness: 2px; }
footer { background: #f4f3ed; border-top: 1px solid var(--paper-rule); color: var(--paper-ink); }
.foot { padding-block: 2.1rem; align-items: flex-start; }
.foot-brand { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.foot-links { gap: 1rem clamp(1.6rem,6vw,5.5rem); }
.foot-group strong { color: var(--paper-ink); font-size: .93rem; margin: .55rem 0 .3rem; }
.foot-links a { color: var(--paper-muted); min-height: 38px; font-size: .9rem; }
.foot a:hover { color: var(--stamp-red); }
footer a:focus-visible { outline-color: var(--blue-text); }

.wrap:has(.handbook) { padding-block: 0 clamp(3.5rem,6vw,5.5rem); }
.handbook h1, .handbook h2, .handbook h3 { color: var(--paper-ink); font-family: var(--font-ui); margin: 0; }
.handbook a { color: inherit; }
.handbook p { color: var(--paper-muted); }
.handbook h2 { font-size: clamp(1.55rem,2.4vw,2.12rem); font-weight: 750; line-height: 1.4; }
.hb-arrow { font: 400 1.18em/1 var(--font-ui); }
.hb-cover {
  display: grid;
  grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr);
  align-items: center;
  gap: clamp(1.5rem,4vw,4rem);
  padding-block: clamp(2.8rem,4.4vw,4rem) clamp(2rem,3.3vw,3rem);
}
.handbook .hb-edition { margin: 0 0 .8rem; color: var(--stamp-red); font-size: .9rem; font-weight: 700; letter-spacing: .1em; }
.handbook h1 { font-size: clamp(3.4rem,5.1vw,4.85rem); font-weight: 800; letter-spacing: .04em; line-height: 1.17; }
.hb-lead { max-width: 25em; margin: 1.12rem 0 1.45rem; font-size: 1.05rem; line-height: 1.85; line-break: strict; }
.hb-actions { display: flex; align-items: center; gap: .5rem 1.3rem; flex-wrap: wrap; }
.handbook .hb-primary {
  display: inline-flex; gap: 1rem;
  padding: .68rem 1.15rem; min-height: 48px;
  background: var(--stamp-red); border: 1px solid var(--stamp-red); border-radius: 4px;
  color: white; font-weight: 700;
}
.handbook .hb-primary:hover:not(:disabled) { background: #82251e; border-color: #82251e; }
.hb-text-link { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: .33em; text-decoration-color: #a9aaa1; font-weight: 650; font-size: .98rem; }
button.hb-text-link { color: inherit; border: 0; padding: 0; background: transparent; text-decoration-line: underline; }
.hb-text-link:hover { text-decoration-color: currentColor; color: var(--stamp-red); }
.hb-plate { margin: 0; min-width: 0; }
.hb-picture img { display: block; width: 100%; height: auto; }
.hb-plate figcaption {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  margin: .4rem 0 0; padding-block: .2rem 0; border-top: 1px solid var(--paper-rule);
  font-size: .85rem;
}
.hb-plate figcaption > span { font-weight: 700; }
.hb-nickname { margin-inline-start: .5rem; padding-inline-start: .5rem; border-inline-start: 1px solid var(--paper-rule); color: var(--paper-muted); font-weight: 450; }
.hb-plate figcaption a, .hb-section-head a { display: inline-flex; gap: .5rem; align-items: center; min-height: 44px; color: var(--paper-muted); text-decoration: none; font-size: .88rem; font-weight: 550; }
.hb-plate figcaption a:hover, .hb-section-head a:hover { color: var(--stamp-red); text-decoration: underline; }
.hb-study {
  display: grid;
  grid-template-columns: minmax(0,1.58fr) minmax(0,1fr);
  align-items: stretch;
  gap: clamp(2rem,4.5vw,4.4rem);
  padding-top: clamp(1.7rem,3vw,2.6rem);
  border-top: 2px solid var(--paper-ink);
}
.hb-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.hb-contents, .hb-index { list-style: none; padding: 0; margin: 0; }
.hb-contents li { border-top: 1px solid var(--paper-rule); }
.hb-contents li:last-child, .hb-index li:last-child, .hb-faq details:last-child { border-bottom: 1px solid var(--paper-rule); }
.hb-contents button, .hb-index button {
  width: 100%; text-align: start; color: inherit; background: transparent; border: 0; padding: 0;
}
.hb-contents button { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 1.35rem; padding: 1rem .2rem; }
.hb-contents button:hover { color: var(--stamp-red); background: #faf9f5; }
.hb-contents button .hb-arrow { padding-inline-end: .25rem; color: var(--stamp-red); }
.hb-part { font: 650 .88rem/1.4 var(--font-ui); letter-spacing: .06em; border-inline-end: 1px solid var(--paper-rule); padding-inline-end: 1.15rem; color: var(--paper-muted); }
.hb-chapter-copy strong, .hb-chapter-copy small { display: block; }
.hb-chapter-copy strong { font-size: 1.18rem; line-height: 1.4; font-weight: 700; }
.hb-chapter-copy small { color: var(--paper-muted); font-size: .9rem; line-height: 1.55; margin-top: .16rem; }
.hb-route {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: clamp(1.4rem,2.6vw,2.25rem);
  background: #24463b; color: #fffdf5; border-radius: 2px;
}
.handbook .hb-route-label { color: #e0e9d9; font-size: .86rem; font-weight: 600; letter-spacing: .08em; margin: 0 0 .75rem; }
.handbook .hb-route h2 { color: inherit; font-weight: 650; font-size: clamp(1.5rem,2.2vw,1.9rem); line-height: 1.45; }
.hb-route a { display: inline-flex; align-items: center; gap: .8rem; min-height: 42px; margin-bottom: -.35rem; text-decoration: underline; text-underline-offset: .35em; text-decoration-color: #8ba99a; font-weight: 600; font-size: .95rem; }
.hb-route a:hover, .hb-route a:focus-visible { text-decoration-color: white; outline-color: white; }
.hb-route-line {
  position: relative; isolation: isolate; display: flex; align-items: flex-start; justify-content: space-between;
  width: 100%; max-width: 19rem; margin: 1.25rem 0 .7rem;
}
.hb-route-line::before { content: ''; position: absolute; z-index: -1; top: 7px; left: 1.4rem; right: .9rem; border-top: 2px solid #acc7b3; }
.hb-route-line span { display: grid; justify-items: center; gap: .35rem; font-size: .84rem; color: #eff3e8; }
.hb-route-line span::before { content: ''; width: 10px; height: 10px; margin-top: 2px; border: 2px solid #e3edda; border-radius: 50%; background: #24463b; }
.hb-route-line i { margin-top: -3px; border: 1px dashed #b8cfbe; border-radius: 50%; width: 22px; height: 22px; text-align: center; background: #24463b; color: white; font: 600 .86rem/21px var(--font-ui); }
.hb-directory { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(2rem,6vw,6rem); align-items: start; margin-top: clamp(3rem,5vw,4.75rem); }
.hb-directory h2 { margin-bottom: .85rem; }
.hb-index li, .hb-faq details { border-top: 1px solid var(--paper-rule); }
.hb-index a, .hb-index button, .hb-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; min-height: 51px; padding: .6rem .1rem; color: var(--paper-ink); font-weight: 550; text-decoration: none; }
.hb-index a > span { display: inline-flex; align-items: center; gap: .75rem; }
.hb-index .hb-arrow, .hb-index a > span { color: var(--paper-muted); }
.hb-index :is(a,button):hover, .hb-faq summary:hover { color: var(--stamp-red); }
.hb-index .note { margin: 0 0 .6rem; }
.hb-faq details { margin: 0; padding: 0; }
.hb-faq summary { cursor: pointer; list-style: none; }
.hb-faq summary::-webkit-details-marker { display: none; }
.hb-faq summary::after { content: '+'; font: 400 1.3rem var(--font-ui); }
.hb-faq details[open] summary::after { content: '−'; }
.hb-faq details p { margin: 0 0 1rem; font-size: .98rem; line-height: 1.8; }

@media (max-width: 850px) {
  .head { padding-top: 0; display: flex; min-height: 64px; }
  .head nav { gap: 0; }
  .head nav a { padding-inline: .48rem; }
  .hb-cover { grid-template-columns: minmax(0,1fr) minmax(0,.98fr); gap: 1.4rem; padding-block: 2.2rem; }
  .hb-study { grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 1.7rem; }
}
@media (max-width: 680px) {
  header { position: static; }
  .head { display: block; padding-top: .75rem; min-height: 0; }
  .brand { width: max-content; }
  .head nav { display: flex; align-items: center; justify-content: space-between; gap: 0; margin: .3rem 0 0; }
  .head nav a { padding-inline: .12rem; font-size: clamp(.82rem,3.45vw,.94rem); }
  .hb-cover { grid-template-columns: 1fr; gap: 1rem; padding-block: 1.6rem 1.25rem; }
  .handbook .hb-edition { margin-bottom: .6rem; font-size: .82rem; }
  .handbook h1 { font-size: clamp(2rem,9vw,3.5rem); }
  .hb-cover h1 br { display: none; }
  .hb-actions { column-gap: .85rem; }
  .hb-lead { max-width: 29em; margin: .85rem 0 1.05rem; font-size: 1rem; line-height: 1.78; }
  .hb-picture { max-width: 28rem; margin-inline: auto; }
  .hb-plate figcaption { margin-top: .1rem; }
  .hb-study, .hb-directory { grid-template-columns: 1fr; gap: 1.65rem; }
  .hb-study { padding-top: 1.3rem; }
  .hb-contents button { gap: .85rem; padding-block: .88rem; }
  .hb-part { padding-inline-end: .75rem; }
  .hb-chapter-copy strong { font-size: 1.08rem; }
  .hb-route { padding: 1.4rem 1.45rem; }
  .hb-directory { margin-top: 2.4rem; gap: 2rem; }
  .foot { display: block; padding-block: 1.25rem; }
  .foot-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .55rem; margin-top: .5rem; }
  .foot-links a { min-height: 44px; }
}

.reading-note { margin-block: 1rem; padding: .55rem .9rem; border-left: 3px solid #ad3027; font-size: .95rem; line-height: 1.75; }
.reading-note a { color: #963126; text-underline-offset: .2em; }

/* 筆試、題庫及乘客資料 */
body:has(.study-page) { background: var(--study-paper, #f7f5ee); }
.study-page {
  --study-ink: #232622;
  --study-muted: #5c5d54;
  --study-rule: #c9c7ba;
  --study-accent: #a52e24;
  --study-paper: #f7f5ee;
  --study-surface: #fffdf7;
  --ink: var(--study-ink);
  --body: #43463f;
  --muted: var(--study-muted);
  --line: var(--study-rule);
  --green: #81332c;
  --good: #e7eee2;
  --bad: #f9e8df;
  color: var(--study-ink);
  padding-block: clamp(.75rem, 2.5vw, 2rem) clamp(1.5rem, 4vw, 3.5rem);
}
.study-heading { margin-block-end: clamp(1.75rem, 4vw, 3.5rem); }
.study-heading h1 {
  margin: 0;
  font: 750 clamp(2.45rem, 4.7vw, 4.45rem)/1.13 var(--font-ui);
  letter-spacing: -.045em;
}
.study-heading .eyebrow { margin-block-end: .65rem; color: var(--study-accent); }
.study-heading .muted { margin: .8rem 0 0; max-width: 40em; text-wrap: pretty; }
.short-quiz-links { display: flex; flex-wrap: wrap; gap: .2rem 1.5rem; margin-block: .65rem; }
.short-quiz-links a, .practice-other .short-quiz-links a {
  display: inline-flex; align-items: center; gap: .45em; width: auto; min-height: 44px;
  color: #87291f; font-weight: 650; text-decoration: underline; text-underline-offset: .21em;
}
.practice-other .short-quiz-links { margin-block: 0 .55rem; }
.short-paper-item { max-width: 46rem; border-top: 1px solid var(--study-rule); padding-block: 1rem; }
.short-paper-item summary { cursor: pointer; width: fit-content; padding-block: .65rem; }
.short-paper-item ol { padding-inline-start: 1.7rem; }
.study-hospitalQuiz, .study-rideQuiz, .short-paper { max-width: 48rem; margin-inline: auto; }
.study-hospitalQuiz .study-heading, .study-rideQuiz .study-heading { margin-bottom: 1.3rem; }
.study-page .short-quiz { padding: 1rem 0 0; border: 0; border-top: 2px solid var(--study-ink); border-radius: 0; }
.short-quiz > p:first-child { margin: 0 0 1rem; }
.short-quiz .q-head h2 { line-height: 1.5; text-wrap: pretty; }
#short-share-manual { max-width: 100%; }
#short-share-url { width: 31rem; max-width: 100%; }
.study-page h2, .study-page h3 { font-family: var(--font-ui); }
.study-page h2 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
.study-page .btn {
  min-height: 46px; padding: .55rem 1rem; border: 1px solid var(--study-rule); border-radius: 3px;
  background: var(--study-surface); color: var(--study-ink); font-weight: 650;
}
.study-page .btn:hover:not(:disabled) { color: var(--study-ink); background: #eeede4; border-color: var(--study-ink); }
.study-page .btn:is(.primary, .danger) { color: #fff; background: var(--study-accent); border-color: var(--study-accent); }
.study-page .btn:is(.primary, .danger):hover:not(:disabled) { color: #fff; background: #80221b; border-color: #80221b; }
.study-page :is(button,a,input,select,summary):focus-visible { outline: 3px solid #256a75; outline-offset: 3px; }
.study-columns {
  display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  align-items: start; gap: clamp(2rem, 7vw, 6rem);
}
.practice-part {
  display: grid; grid-template-columns: minmax(3rem, .27fr) minmax(0, 1fr);
  gap: clamp(.65rem, 2vw, 1.6rem); border-block-start: 2px solid var(--study-ink);
}
.practice-part + .practice-part { margin-top: 1rem; }
.practice-part h2 {
  margin: 0; padding-block: 1.1rem;
  color: var(--study-accent); font-size: clamp(1.15rem, 2vw, 1.55rem); font-weight: 700;
}
.practice-tiles { display: block; list-style: none; margin: 0; padding: 0; }
.practice-tiles li { display: block; border-bottom: 1px solid var(--study-rule); }
.practice-tiles .practice-tile {
  width: 100%; display: grid; grid-template-columns: minmax(0,1fr) auto auto;
  align-items: center; gap: clamp(.45rem,1.8vw,1.6rem);
  min-height: 4.5rem; padding: .75rem .2rem; text-align: start;
  background: transparent; border: 0; color: inherit; line-height: 1.4;
}
.practice-tile strong { font-size: clamp(1.08rem, 1.7vw, 1.45rem); }
.practice-tile .topic-count { color: var(--study-muted); font: 550 .92rem/1.5 var(--font-ui); white-space: nowrap; }
.practice-tile > span:last-child, .practice-other :is(a,button) > span { color: var(--study-accent); font-size: 1.2rem; }
.practice-other { padding: 1.35rem clamp(1rem, 2vw, 1.8rem); background: #eeece2; }
.practice-other > h2 { margin: 0 0 1rem; }
.practice-other > div { border-top: 1px solid var(--study-rule); padding-block: .35rem .6rem; }
.practice-other :is(a, button) {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%;
  min-height: 44px; padding: 0; color: inherit; text-decoration: none; background: none; border: 0; font-weight: 700; text-align: start;
}
.practice-tiles button:hover:not(:disabled), .practice-other :is(a,button):hover { color: var(--study-accent); }
.practice-other p { margin: 0; color: var(--study-muted); font-size: .9rem; }
.practice-other #no-wrong { margin-block: .3rem; }
.exam-layout { grid-template-columns: minmax(0, 1fr) minmax(0,1.5fr); gap: clamp(1.75rem,6vw,5rem); }
.exam-start { padding: clamp(1.25rem,3vw,2.3rem); color: #fffdf6; background: var(--study-ink); border-radius: 3px; }
.exam-start h2 { margin: 0; font-size: 1.1rem; }
.exam-spec {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.25rem 0 1rem;
  padding-block: 1rem; border-block: 1px solid #62655a;
}
.exam-spec:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.exam-spec dt { color: #c9cbbd; font-size: .875rem; }
.exam-spec dd {
  margin: .25rem 0 0; font: 550 clamp(2.1rem,3.75vw,3.5rem)/1 var(--font-ui); letter-spacing: -.055em;
}
.exam-spec small { font: 550 .94rem/1 var(--font-ui); letter-spacing: normal; }
.exam-start p { color: #e4e4da; line-height: 1.7; font-size: .95rem; }
.exam-buttons { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.3rem; }
.exam-start .btn:focus-visible { outline-color: #f4dca3; }
.exam-paper table { width: 100%; border-collapse: collapse; border-top: 2px solid currentColor; text-align: start; font-size: 1rem; }
.exam-paper :is(th, td) { padding: .9rem .5rem; text-align: start; vertical-align: top; border-bottom: 1px solid var(--study-rule); }
.exam-paper thead th { padding-block: .6rem; color: var(--study-muted); font-weight: 600; font-size: .86rem; }
.exam-paper tr > :first-child { padding-left: 0; white-space: nowrap; }
.exam-paper tr > :last-child { padding-right: 0; }
.exam-paper td strong { color: var(--study-accent); }
.exam-paper .small { margin: .75rem 0 0; }
.study-reference { display: inline-flex; align-items: center; min-height: 44px; font-size: .94rem; }
.bank-tools {
  display: grid; grid-template-columns: minmax(0,1.5fr) minmax(10rem,.75fr) auto;
  gap: 1rem; align-items: end; background: #eeece2; padding: 1rem clamp(1rem,2.5vw,2rem) 1.25rem;
  border-top: 2px solid var(--study-ink);
}
.bank-tools label { min-width: 0; font-size: .9rem; }
.bank-tools :is(input,select) { width: 100%; border: 1px solid #8c8d82; border-radius: 3px; min-height: 46px; font-size: 1rem; }
.bank-tools button[aria-pressed=true] { background: var(--study-ink); color: white; border-color: var(--study-ink); }
.bank-tools button[aria-pressed=true]::before { content: "✓" / ""; }
.bank-count { margin: 1.35rem 0 .45rem; font-variant-numeric: tabular-nums; }
.study-page .list { gap: 0; border-top: 1px solid var(--study-rule); }
.study-page .list details { padding: 0; border: 0; border-bottom: 1px solid var(--study-rule); border-radius: 0; background: transparent; }
.study-page .list summary { min-height: 44px; padding: .9rem .1rem; }
.study-page .list summary:hover { color: var(--study-accent); }
.study-page .tag { padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--study-accent); font-size: .875rem; }
.bank-entries summary { display: grid; grid-template-columns: 8rem minmax(0,1fr) auto; gap: 1rem; align-items: baseline; list-style: none; }
.bank-entries summary::-webkit-details-marker { display: none; }
.bank-entries summary::after { content: "+" / ""; color: var(--study-accent); font: 500 1.35rem/1 var(--font-ui); }
.bank-entries details[open] summary::after { content: "−" / ""; }
.bank-answer { max-width: 42rem; margin: 0 0 1.1rem 9rem; padding: .7rem 1rem; border-left: 2px solid var(--study-accent); background: #eeece2; }
.bank-answer p:last-child { margin-bottom: 0; }
.study-page .bank-entries details[open] summary { margin-bottom: .2rem; }
.study-page .panel { background: transparent; }
.study-page .q-layout { gap: clamp(1.5rem,5vw,4.5rem); }
.study-page :is(.q-layout > .panel,.route-lab) { border: 0; border-radius: 0; padding: 0; }
.study-page .q-head h1 { max-width: 28em; margin: .75rem 0 0; font: 730 clamp(1.4rem,2.4vw,2rem)/1.55 var(--font-ui); }
.study-page .q-head .bar { height: 4px; margin-block: .8rem; }
.study-page .clock { color: var(--study-ink); font: 650 1.05rem/1.4 var(--font-ui); font-variant-numeric: tabular-nums; }
.study-page .clock.urgent { color: var(--study-accent); }
progress.bar { display: block; width: 100%; appearance: none; border: 0; border-radius: 0; accent-color: var(--study-accent); }
progress.bar::-webkit-progress-bar { background: var(--line); }
progress.bar::-webkit-progress-value { background: var(--study-accent); }
progress.bar::-moz-progress-bar { background: var(--study-accent); }
.study-page .options { gap: .55rem; }
.study-page .opt {
  border: 1px solid var(--study-rule); border-radius: 3px; min-height: 58px;
  color: var(--study-ink); background: var(--study-surface);
}
.study-page .opt .letter {
  border-radius: 2px; border: 1px solid var(--study-rule); color: inherit; background: transparent;
  font: 600 1rem/1 var(--font-ui);
}
.study-page .opt:hover:not(:disabled):not(.sel) { background: #f0eee4; border-color: #787b6f; }
.study-page .opt.sel { background: #ecebe2; border-color: var(--study-ink); }
.study-page .opt.sel .letter, .study-page .choice-mark { color: white; background: var(--study-ink); border-color: var(--study-ink); }
.study-page .opt.good, .study-page .note.good { background: var(--good); border-color: #56816b; }
.study-page .opt.bad, .study-page .note.bad { background: var(--bad); border-color: #b96352; }
.study-page .opt.good .choice-mark { background: #275c41; }
.study-page .opt.bad .choice-mark { background: var(--study-accent); }
.study-page .q-actions { margin-top: 1.4rem; }
.study-page .jump { border-top: 2px solid; padding: .2rem 0 0; }
.study-page .jump summary { min-height: 44px; align-content: center; }
.study-page .jump section { margin-top: .3rem; }
.study-page .jump h3 { font-size: .95rem; }
.jump-legend { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: .7rem; }
.jump-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.jump-legend span::before { content: ''; width: .75rem; height: .75rem; background: #d8ded0; border: 1px solid #82927d; }
.jump-legend span + span::before { background: transparent; border: 2px dashed #805b21; }
.study-page .gridnum button { border-radius: 2px; background: var(--study-surface); font-variant-numeric: tabular-nums; }
.study-page .gridnum .filled { color: #283c2a; border-color: #82927d; background: #d8ded0; }
.study-page .gridnum .flagged { border: 2px dashed #805b21; }
.study-page .gridnum .here { box-shadow: inset 0 0 0 2px var(--study-ink); }
.study-page .note, .study-page dialog { border-radius: 3px; }
.study-page dialog { background: var(--study-surface); }
.study-page .route-figure { padding: clamp(.9rem,2.5vw,1.5rem); border: 1px solid var(--study-rule); border-radius: 0; background: #e9ede4; }
.route-figure .route-track { stroke: #365147; stroke-dasharray: none; }
.route-figure .route-water { stroke: #c5d5ce; }
.route-figure .route-sketch circle { stroke: #365147; }
.route-figure .route-stops span { background: var(--study-surface); }
.route-figure .route-stop-key { color: #723329; }
.route-figure .route-sketch circle.route-highlight { stroke: var(--study-accent); }
.study-page .stats-start, .study-page .next-study {
  border: 0; border-top: 2px solid var(--study-ink); border-bottom: 1px solid var(--study-rule);
  border-radius: 0; padding: clamp(1.35rem,3vw,2.2rem) 0; background: transparent;
}
.study-page .stats-start .progress-note { margin-top: .6rem; }
.study-page .stat-tiles {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  border-top: 2px solid var(--study-ink); border-bottom: 1px solid var(--study-rule);
}
.study-page .stat-tiles .tile { padding: 1rem; background: transparent; border: 0; border-right: 1px solid var(--study-rule); border-radius: 0; gap: .35rem; }
.study-page .stat-tiles .tile:first-child { padding-left: 0; }
.study-page .stat-tiles .tile:last-child { border-right: 0; }
.study-page .stat-tiles h2 { font: 650 .98rem/1.5 var(--font-ui); margin: 0; }
.study-page .kpi { font: 550 clamp(2rem, 4vw, 3.3rem)/1.15 var(--font-ui); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.study-page .stat-tiles .btn { font-size: .91rem; margin: 0; min-height: 44px; padding: .2rem 0; background: transparent; border: 0; text-decoration: underline; }
.study-stats > .panel { border: 0; border-top: 1px solid var(--study-rule); border-radius: 0; padding: 1.5rem 0 0; }
.study-stats > .panel .note { border: 0; border-bottom: 1px solid var(--study-rule); padding: .65rem 0; border-radius: 0; }
.study-page .results .note { padding: clamp(1rem,2.5vw,1.75rem); border-radius: 0; }
.study-page .verdict .note { border-width: 2px 0 0; background: #eeece2; }
.study-page .results .note h2 { margin: 0 0 .5rem; font-size: 1.05rem; }
.study-page .results .note p { margin-bottom: 0; }
.study-result :is(.results,.next-study,.row) { margin-bottom: 1.4rem; }
.result-links { gap: .4rem 1.35rem; }
.study-page .result-links .btn {
  border: 0; padding-inline: 0; background: transparent; color: var(--study-accent);
  text-decoration: underline; text-underline-offset: .25em;
}
.study-page .taxi-info-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(1rem,2.6vw,2.3rem); margin: 0 0 2.5rem; }
.study-page .taxi-info-card { display: block; padding: 1.1rem 0; border: 0; border-top: 4px solid var(--tone); border-radius: 0; background: transparent; }
.taxi-info-card .cab-name { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.taxi-info-card .cab-name svg { width: 40px; height: 38px; flex: none; }
.taxi-info-card .cab-name h2 { color: inherit; font-size: clamp(1.15rem,2vw,1.55rem); margin: 0; }
.taxi-info-card .cab-name p { color: var(--tone); font-size: .9rem; font-weight: 700; margin: .12rem 0 0; }
.taxi-info-card .taxi-fare { color: inherit; margin: .2rem 0 1rem; font: 550 clamp(2rem,3.7vw,3.4rem)/1.1 var(--font-ui); letter-spacing: -.045em; }
.taxi-info-card .taxi-fare small { font: 650 .95rem/1.1 var(--font-ui); margin-right: .35em; letter-spacing: normal; }
.taxi-info-card .service-area, .fare-notes ul { margin: 0; }
.fare-notes { display: grid; grid-template-columns: minmax(10rem,.85fr) minmax(0,2fr); gap: 2rem; padding-block: 1.5rem; border-top: 1px solid var(--study-rule); }
.fare-notes ul { padding-left: 1.2rem; }
.fare-notes li + li { margin-top: .5rem; }
.study-sources, .study-privacy, .study-disclaimer { max-width: 50rem; }
.study-page:is(.study-sources,.study-privacy,.study-disclaimer) .panel { border: 0; border-top: 2px solid var(--study-ink); border-radius: 0; padding: 1.45rem 0 0; }
.study-page:is(.study-sources,.study-privacy,.study-disclaimer) .panel p { max-width: 38em; line-height: 1.85; }
.study-page:is(.study-sources,.study-privacy) .panel h2:not(:first-child) { margin-top: 1.8rem; }
.study-sources .source-index { padding: 0; list-style: none; margin-top: -.85rem; }
.source-index li { border-bottom: 1px solid var(--study-rule); }
.source-index a { display: block; padding: .7rem 0; }
@media (max-width: 760px) {
  .study-columns { grid-template-columns: minmax(0,1fr); gap: 1.9rem; }
  .study-page .taxi-info-grid { display: block; }
  .study-page .taxi-info-card { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .6rem 1rem; margin-bottom: 1rem; }
  .taxi-info-card .cab-name, .taxi-info-card .taxi-fare { margin-bottom: 0; }
  .taxi-info-card .service-area { grid-column: 1/-1; }
  .fare-notes { grid-template-columns: minmax(0,1fr); gap: .4rem; }
}
@media (max-width: 590px) {
  .practice-tiles .practice-tile { min-height: 3.75rem; }
  .practice-part h2 { padding-block: .95rem; }
  .bank-tools { grid-template-columns: minmax(0,1fr) auto; gap: .8rem; }
  .bank-tools label:first-child { grid-column: 1/-1; }
  .bank-entries summary { grid-template-columns: minmax(0,1fr) auto; gap: .2rem .65rem; }
  .bank-entries summary .tag { grid-column: 1; }
  .bank-entries summary > span:nth-child(2) { grid-row: 2; }
  .bank-entries summary::after { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .bank-answer { margin-left: 0; }
  .study-page .stat-tiles { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .study-page .stat-tiles .tile { padding: .85rem 0 .85rem .85rem; }
  .study-page .stat-tiles .tile:nth-child(odd) { padding-left: 0; }
  .study-page .stat-tiles .tile:nth-child(even) { border-right: 0; }
  .study-page .stat-tiles .tile:nth-child(n+3) { border-top: 1px solid var(--study-rule); }
}

/* Reflow by reading space when a narrow viewport uses a large default type size. */
@media (max-width: 19em) {
  .study-heading h1 { font-size: 1.85rem; }
  .study-page .btn { max-inline-size: 100%; }
  .practice-part { display: block; }
  .practice-part h2 { padding-block: .5rem .15rem; }
  .practice-tiles .practice-tile { grid-template-columns: minmax(0,1fr) auto; gap: .2rem .4rem; }
  .practice-tile strong { grid-column: 1 / -1; }
  .practice-tile .topic-count { justify-self: start; }
  .study-page .taxi-info-card { display: block; }
  .taxi-info-card .fare-column { margin-block: .6rem; }
  .study-page .opt { display: grid; grid-template-columns: auto minmax(0,1fr); gap: .4rem; }
  .study-page .opt .letter { grid-area: 1 / 1; }
  .study-page .opt > span:nth-child(2) { grid-area: 2 / 1 / 3 / -1; }
  .study-page .opt .choice-mark { grid-area: 1 / 2; justify-self: end; }
  .study-page .gridnum { grid-template-columns: repeat(auto-fit,minmax(min(1.8rem,100%),1fr)); }
  .study-page .q-actions, .study-page .bank-tools { grid-template-columns: minmax(0,1fr); }
  .study-page .stat-tiles { grid-template-columns: minmax(0,1fr); }
  .study-page .stat-tiles .tile { padding-inline: 0; border: 0; border-bottom: 1px solid var(--study-rule); }
  .study-page .stat-tiles .tile:nth-child(n+3) { border-top: 0; }
  .study-page .stat-tiles .tile:last-child { border-bottom: 0; }
  .study-page .statline { grid-template-columns: minmax(0,1fr) auto; gap: .15rem .5rem; }
  .study-page .statline progress { grid-area: 2 / 1 / 3 / -1; margin-top: 0; }
  .study-page .statline > span { grid-area: 1 / 2; }
}


.bank-count{scroll-margin-top:6rem}
.bank-count:focus-visible{outline:2px solid currentColor;outline-offset:4px}
