/* Geometry: figures are part of the problem — show them clearly */
.q-fig img { max-width: min(560px, 100%); padding: 6px; }
.tp-ex .q-fig { margin: 8px 0 10px; }
.geo-cover { float: right; width: 150px; height: auto; margin: 0 0 10px 18px; border-radius: 6px; box-shadow: 0 6px 18px #0002; }
@media (max-width: 600px) { .geo-cover { width: 104px; margin-left: 12px; } }

/* owner 11-07: check page before hand-in */
.chk { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.chk-row { display: grid; grid-template-columns: 38px 1fr minmax(90px, 30%) 78px; gap: 10px; align-items: center; text-align: left; padding: 12px; border: 2px solid #d5d8e0; border-radius: 12px; background: #fff; font: inherit; font-size: 1rem; cursor: pointer; color: inherit; }
.chk-row:hover { border-color: #3b6fd8; }
.chk-n { font-weight: 800; font-size: 1.15rem; text-align: center; }
.chk-q { color: #444; }
.chk-a { font-weight: 800; color: #1d3f8f; }
.chk-c { font-weight: 700; color: #3b6fd8; text-align: right; }
@media (max-width: 640px) { .chk-row { grid-template-columns: 30px 1fr; } .chk-a { grid-column: 2; } .chk-c { grid-column: 2; text-align: left; } }

.test-clock { display: none !important; }   /* owner 11-07: no time limit */
.time-line { font-size: 1.15rem; margin: 6px 0; } .time-line b { color: #1d3f8f; }
/* owner 11-08: "I don't know this one" on tests — set apart from the real choices */
.opt.idk { border-style: dashed; margin-top: 14px; color: #6b5a3a; background: #fffaf0; }
.opt.idk b { color: #b7791f; }
.opt.idk.sel { border-style: solid; }
/* tester 11-08: two-column proofs in worked examples */
.proof2 { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 18px; }
.proof2 th { text-align: left; background: #13294b; color: #fff; padding: 8px 10px; }
.proof2 td { border: 1px solid #e3d6ae; padding: 8px 10px; vertical-align: top; background: #fffdf7; }
.proof2 td:first-child { width: 58%; } .proof2 .why-row { display: block; margin-top: 6px; font-size: 16px; color: #555; }
@media (max-width: 560px) { .proof2, .proof2 tbody, .proof2 tr, .proof2 td { display: block; width: auto !important; } .proof2 thead { display: none; }
  .proof2 td:last-child::before { content: "Reason: "; font-weight: 700; } .proof2 tr { margin-bottom: 8px; } }
/* owner 11-08: all chapters in the left sidebar */
.sb-chap { border-bottom: 1px solid rgba(255,255,255,.12); }
.sb-chap > summary.sb-ch { cursor: pointer; list-style: none; position: relative; padding-right: 22px; }
.sb-chap > summary.sb-ch::-webkit-details-marker { display: none; }
.sb-chap > summary.sb-ch::after { content: "▸"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); opacity: .7; }
.sb-chap[open] > summary.sb-ch::after { content: "▾"; }
#side .sb-chap > summary.sb-ch, #side .sb-chap > summary.sb-ch b { color: #fff; } #side .sb-chap > summary.sb-ch:hover { background: #ffffff14; border-radius: 8px; }
/* owner 11-09: write-the-proof items */
.pf-help { font-size: 18px; color: #3a4256; margin: 10px 0 6px; }
.pf { display: flex; flex-direction: column; gap: 12px; margin: 8px 0 14px; }
.pf-row { border: 2px solid #e3d6ae; border-radius: 12px; background: #fffdf7; padding: 10px 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.pf-row.ok { border-color: #2f9e44; background: #f1faf3; } .pf-row.no { border-color: #d64545; background: #fdf3f3; }
.pf-n { grid-column: 1 / -1; font: 800 18px -apple-system, "Segoe UI", sans-serif; color: #13294b; }
.pf-h { font: 700 16px -apple-system, "Segoe UI", sans-serif; color: #5f6878; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.pf-chip { display: block; width: 100%; text-align: left; border: 2px solid #d9dfec; background: #fff; border-radius: 10px; padding: 9px 12px; margin: 0 0 6px; font-size: 18px; line-height: 1.35; cursor: pointer; color: #1d2433; }
.pf-chip:hover:not(:disabled) { border-color: #2f5bea; }
.pf-chip.sel { border-color: #2f5bea; background: #eef2ff; font-weight: 700; }
.pf-chip.right { border-color: #2f9e44; background: #e7f7ee; font-weight: 700; } .pf-chip.wrong { border-color: #d64545; background: #fdeeee; text-decoration: line-through; }
.pf-chip:disabled { cursor: default; }
.pf-row .why-row { grid-column: 1 / -1; font-size: 17px; color: #444; }
@media (max-width: 700px) { .pf-row { grid-template-columns: 1fr; } }
.pf-or { display: block; margin-top: 6px; }
.pf[hidden] { display: none !important; }
/* owner 11-10: a section that needs a MAKEUP or a RETEST is clearly orange in the sidebar, with the word; hover and the
   selected (green) row never hide it */
#side .sb-secs button.pend { background: #e8820c; color: #fff; font-weight: 700; }
#side .sb-secs button.pend:hover { background: #d46f00; }
#side .sb-secs button.pend .sm.retest { background: #fff; border-color: #fff; color: #c2410c; }
#side .sb-secs button.on.pend { background: var(--teal); box-shadow: inset 7px 0 0 #ff9a2e; }
#side .sb-secs button.on.pend .sm.retest { background: #ff9a2e; border-color: #ff9a2e; color: #fff; }
#side .sb-badge { display: inline-block; font-style: normal; font-weight: 800; font-size: 14px; line-height: 1.2; background: #fff; color: #b45309; border-radius: 999px; padding: 2px 9px; margin-left: 4px; white-space: nowrap; }
#side .sb-secs button.on.pend .sb-badge { background: #ff9a2e; color: #fff; }

/* owner 11-19: questions with a picture — picture LEFT (sticky, always in sight), question + choices / proof steps RIGHT.
   Phones: the picture stays pinned at the top of the card (max 35vh); tap it to see it big. Cards without a picture are untouched. */
:root { --qs-top: 0px; }
@media (max-width: 900px) { :root { --qs-top: 64px; } }   /* the phone/tablet top bar (☰ Geometry) is sticky there */
.qsplit .qs-fig .q-fig { margin: 0; cursor: zoom-in; }
.qsplit .qs-fig .q-fig img { width: auto; height: auto; max-width: 100%; margin: 0 auto; object-fit: contain; }
.qsplit .qs-main { min-width: 0; }
.qsplit .qs-main > .q:first-child, .qsplit .qs-main > .pt-count:first-child { margin-top: 0; }
@media (min-width: 820px) {
  .card.qsplit { display: grid; grid-template-columns: minmax(0, 43fr) minmax(0, 57fr); gap: 0 26px; align-items: start; }
  .qsplit .qs-fig { position: sticky; top: calc(var(--qs-top) + 14px); z-index: 2; }
  .qsplit .qs-fig .q-fig img { max-height: calc(100vh - var(--qs-top) - 48px); }
}
@media (max-width: 819.98px) {
  .qsplit .qs-fig { position: sticky; top: var(--qs-top); z-index: 3; background: inherit; margin: -6px -10px 12px; padding: 6px 10px 8px;
    border-radius: 0 0 12px 12px; box-shadow: 0 6px 10px -6px #1d243340; }
  .qsplit .qs-fig .q-fig img { max-height: 35vh; }
}
.fig-zoom { position: fixed; inset: 0; z-index: 2000; background: #0d1626e6; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out; }
.fig-zoom img { max-width: 100%; max-height: calc(100vh - 90px); width: auto; height: auto; background: #fff; border-radius: 10px; }
.fig-zoom .fz-x { margin-top: 12px; color: #fff; font: 700 18px -apple-system, sans-serif; border: 2px solid #fff8; border-radius: 10px; padding: 8px 18px; }

/* 2026-11-24 phone check (390 / 360): "✓ Teaching / Practice · 10 min / Test" did not fit next to "☰ Contents" (Teaching was cut, Practice squeezed)
   → Contents sits on its own line above the tabs, every tab ≥ 44px tall; the floating cloud button is a small 44px round ☁️ on a phone
   and the page ends with room under the last line */
@media (max-width: 520px) {
  body.tb .trail.tabs { flex-wrap: wrap; }
  body.tb .trail.tabs .tab-toc { order: -1; flex: 1 0 100%; text-align: right; padding: 2px 6px 8px; min-height: 44px; }
  body.tb .trail.tabs > button:not(.tab-toc) { font-family: -apple-system, "Segoe UI", Roboto, sans-serif; padding-left: 2px; padding-right: 2px; min-height: 44px; }
}
@media (max-width: 600px) {
  #hteSync { font-size: 0 !important; width: 44px; height: 44px; padding: 0 !important; display: flex; align-items: center; justify-content: center; }
  #hteSync::before { content: "☁️"; font-size: 20px; line-height: 1; }
  body.tb main { padding-bottom: 76px; }
}

/* 2026-11-25 picture solutions (圖解): hint picture under Hint 1, solution picture under the steps; tap = enlarge (book.js vizImg).
   Same block as the G6–A2 courses (網站_G7 g7.css): pictures are 400 wide with 22-unit text, so on a phone the text stays ≥ 16px. */
.viz-key { margin: 6px 0 4px; font-size: 19px; color: #1f3a6b; }
.viz-fig { margin: 8px 0 12px; cursor: zoom-in; max-width: 440px; }
.viz-fig img { display: block; width: 100%; height: auto; background: #fff; border: 1px solid #dde3e1; border-radius: 8px; }
.viz-fig figcaption { margin-top: 4px; font-size: 16px; color: #5b6475; text-align: center; }
.viz-fig:focus-visible { outline: 3px solid #f0b429; outline-offset: 2px; }
@media (max-width: 560px) { .viz-fig { max-width: none; width: 100%; } }
@media (max-width: 420px) { .viz-fig { margin-left: -12px; margin-right: -12px; width: calc(100% + 24px); } .viz-fig img { border-radius: 0; border-left: 0; border-right: 0; } }   /* 360 phone: text stays ≥ 16px */
