/* Find the 3rds — guided practice (js/18-find-thirds.js) */
.ft-wrap { padding: 8px 0 40px; }
.ft-back { font-family: 'Mulish', sans-serif; font-size: 13px; font-weight: 600; color: #b8ad9c; background: transparent; border: 1px solid #4a4238; border-radius: 8px; padding: 7px 14px; margin-bottom: 18px; cursor: pointer; }
.ft-back:hover { color: #f2ece1; border-color: #6b6154; }

.ft-card { max-width: 1040px; margin: 0 auto; font-family: 'Mulish', system-ui, sans-serif; color: #e8e0d4; }
/* step strip below the board (Design explorations 5a/5b) — pick markers:
   done = wood pick with a check, current = gold pick, upcoming = dark pick */
.ft-strip { display: flex; margin-top: 2px; border: 1px solid #33291f; border-top: none; border-radius: 0 0 12px 12px; background: #1c1712; overflow: hidden; }
.ft-tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 10px; border-top: 2px solid transparent; }
.ft-tab-l { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #6b6154; white-space: nowrap; }
.ft-pick { width: 22px; height: 25px; display: grid; place-items: center; padding-bottom: 3px;
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 11px; color: #9a9186; background: #3E342E;
  -webkit-mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='300 235 425 470'%3E%3Cpath d='M495.2,249.5c46.7-3.2,96.1,9.1,138.4,28.3,98.2,44.6,58.4,167.2,22.5,240.7-21.8,44.7-91.6,154.9-139.5,171.4-19.7,5.3-34.5-5.2-48.9-17.8-21.9-19.1-39.7-42-56.8-65.4-36.6-49.9-65.9-103.2-82.9-162.3-22.3-77.6-14-146.1,72-175.6,35.8-12.2,56.8-17.1,95.3-19.3Z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='300 235 425 470'%3E%3Cpath d='M495.2,249.5c46.7-3.2,96.1,9.1,138.4,28.3,98.2,44.6,58.4,167.2,22.5,240.7-21.8,44.7-91.6,154.9-139.5,171.4-19.7,5.3-34.5-5.2-48.9-17.8-21.9-19.1-39.7-42-56.8-65.4-36.6-49.9-65.9-103.2-82.9-162.3-22.3-77.6-14-146.1,72-175.6,35.8-12.2,56.8-17.1,95.3-19.3Z'/%3E%3C/svg%3E") center/contain no-repeat; }
.ft-tab.cur { border-top-color: #E8C36B; background: rgba(232,195,107,0.05); }
.ft-tab.cur .ft-pick { background: #E8C36B; color: #1a1614; }
.ft-tab.cur .ft-tab-l { color: #E8C36B; }
.ft-tab.done .ft-pick { background: #8a6d3a; color: #1a1614; }
.ft-tab.done .ft-tab-l { color: #9a9186; }
@media (max-width: 720px) { .ft-tab-l { font-size: 8.5px; letter-spacing: 0.03em; } }
.ft-context { font-size: 13.5px; color: #b8ad9c; margin-bottom: 10px; }
.ft-context b { color: #E8C36B; font-weight: 600; }
.ft-k { color: #fff; font-weight: 700; }
.ft-r { color: #EC6A43; font-weight: 700; }
.ft-b { color: #4FA0EC; font-weight: 700; }
/* Round header: short + sans (the serif one-liner was too much reading per
   round — Robert 2026-08-08). ft-sub carries the standing instructions small. */
.ft-prompt { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 18px; line-height: 1.35; margin-bottom: 4px; color: #f2ece1; }
.ft-sub { font-family: 'Mulish', sans-serif; font-size: 13.5px; line-height: 1.5; color: #b8ad9c; margin-bottom: 12px; }
.ft-sub b { color: #E8C36B; font-weight: 700; }
.ft-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13px; }
.ft-lbl { color: #9a9186; }
.ft-letter { width: 44px; height: 38px; text-align: center; font-family: 'IBM Plex Mono', monospace; font-size: 18px; text-transform: uppercase; background: #211b16; border: 2px solid #4a4238; border-radius: 8px; color: #f2ece1; }
.ft-letter.correct { border-color: #6bb583; }
.ft-letter.wrong { border-color: #d65c4e; }
.ft-acc { display: inline-flex; gap: 2px; }
.ft-acc button { width: 32px; height: 38px; font-size: 16px; background: #211b16; border: 2px solid #4a4238; border-radius: 8px; color: #b8ad9c; cursor: pointer; }
.ft-acc button.sel { background: #4a4238; color: #fff; border-color: #6b6154; }
.ft-nmstate { font-family: 'IBM Plex Mono', monospace; font-size: 12px; }
.ft-nmstate.correct { color: #6bb583; }
.ft-nmstate.wrong { color: #d68b4e; }
.ft-cap { font-size: 12px; color: #9a9186; }
.ft-link { font-size: 12px; color: #7fb0e0; cursor: pointer; text-decoration: underline; }
.ft-board { background: #1c1712; border: 1px solid #33291f; border-radius: 12px 12px 0 0; padding: 10px 8px 4px; }
.ft-board svg { width: 100%; height: auto; display: block; }
.ft-board-hdr { display: flex; justify-content: space-between; align-items: center; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: #8a7f6f; padding: 2px 6px 8px; }
.ft-count { color: #b8ad9c; }
.ft-count.done { color: #6bb583; font-weight: 600; }
.ft-actions { display: flex; align-items: center; gap: 14px; min-height: 40px; margin-top: 12px; }
.ft-try { color: #d68b4e; font-size: 13.5px; flex: 1; }
.ft-btn { font-family: 'Mulish', sans-serif; font-size: 13.5px; font-weight: 600; padding: 9px 16px; border-radius: 9px; border: 1px solid transparent; cursor: pointer; }
.ft-ghost { background: transparent; border-color: #4a4238; color: #b8ad9c; }
.ft-next { background: #E8C36B; color: #1a1614; }
.ft-help { background: rgba(79,160,236,0.12); border-color: rgba(79,160,236,0.4); color: #7fb0e0; padding: 6px 12px; }
.ft-help.on { background: rgba(79,160,236,0.25); color: #cde3f8; }
.ft-banner { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 14px 16px; background: rgba(107,181,131,0.08); border: 1px solid rgba(107,181,131,0.25); border-radius: 12px; }
.ft-banner.assist { background: rgba(214,139,78,0.08); border-color: rgba(214,139,78,0.28); }
.ft-chk { color: #6bb583; font-size: 20px; }
.ft-bt { flex: 1; font-size: 14.5px; color: #e8e0d4; }
.ft-bt small { display: block; color: #9a9186; font-size: 12.5px; margin-top: 3px; }
.ft-bt small.ft-assist { color: #d68b4e; }
.ft-note { font-size: 11.5px; color: #6b6154; line-height: 1.5; margin-top: 12px; padding-top: 10px; border-top: 1px solid #2a231b; }
.ft-done { text-align: center; padding: 40px 20px; }
.ft-done-big { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 24px; color: #6bb583; margin-bottom: 14px; }
.ft-done p { color: #b8ad9c; font-size: 14.5px; line-height: 1.6; margin-bottom: 20px; }

/* ---- mobile + accessibility (editor edit #6) ---- */
.ft-board-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ft-board-scroll svg { min-width: 680px; }   /* keeps tap targets ≥ ~40px on phones; board scrolls */
.fb-cell-multi:focus-visible { outline: none; stroke: #E8C36B; stroke-width: 2.5; fill: rgba(232,195,107,0.12); }
.ft-btn:focus-visible, .ft-back:focus-visible, .ft-letter:focus-visible, .ft-acc button:focus-visible, .ft-link:focus-visible { outline: 2px solid #E8C36B; outline-offset: 2px; }
@media (max-width: 640px) {
  .ft-prompt { font-size: 17px; }
  .ft-steps { font-size: 11px; }
  .ft-btn { padding: 12px 16px; }              /* ≥44px touch targets */
  .ft-acc button { width: 40px; height: 44px; }
  .ft-letter { width: 52px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .ft-card *, .ft-board * { transition: none !important; animation: none !important; }
}
/* Deep Check preview summary table */
.ftdc-table { margin: 14px auto; border-collapse: collapse; font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; color: #c8bcac; }
.ftdc-table th, .ftdc-table td { padding: 5px 12px; border-bottom: 1px solid #33291f; text-align: left; }
.ftdc-table th { color: #8a7f6f; font-weight: 600; }

/* drills-pass row 1 (2026-07-18): bigger surface, clearer chrome */
.ft-card { max-width: 1280px; }
.ft-board-hdr { font-size: 13px; color: #C9BDAF; }
.ft-prog { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.ft-prog-l { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #8F7F72; }
.ft-chip { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 14px; color: #8F7F72; background: rgba(255,255,255,0.04); border: 1px solid #433730; border-radius: 8px; padding: 5px 12px; }
.ft-chip.cur { color: #1a1614; background: #E8C36B; border-color: #E8C36B; font-size: 16px; padding: 6px 15px; }
.ft-chip.done { color: #6bb583; border-color: rgba(107,181,131,0.4); }
.ft-prog-n { margin-left: auto; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #C9BDAF; }
.ft-nmstate.almost { color: #E8C36B; }
.ft-letter.almost { border-color: #E8C36B; }

/* Deep Check — editor-response build: Check-name action + two-domain result */
.ftdc-check { padding: 7px 14px; font-size: 13px; }
.ft-note-inline { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #8F7F72; }
.ftdc-domain { margin: 6px 0; font-size: 14.5px; color: #C9BDAF; }
.ftdc-domain b { color: #E8C36B; }
.ftdc-overall { margin-top: 10px; padding-top: 10px; border-top: 1px solid #33291f; font-size: 15.5px; }

/* ---- The 3rds loop (js/18-find-thirds.js ThirdsLoop) ----
   Runner screens reuse the Skill Check runner classes (.auto-runner …) so they
   pick up both skins; these cover the home / results card and its pieces. */
#drillContent .assess-wrap.th3-home { max-width: 920px; }
.th3-cat .drill-skill-card { grid-column: 1 / -1; }
.th3-card { padding: 26px 30px; }
.th3-kicker { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #4FA0EC; margin-bottom: 6px; }
.th3-title { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 24px; line-height: 1.25; color: var(--ink, #F5F1E8); margin: 0 0 10px; }
.th3-lead, .th3-body p { font-family: 'Mulish', sans-serif; font-size: 15px; line-height: 1.6; color: var(--ink-dim, #C9BDAF); margin: 0 0 12px; }
.th3-body p b, .th3-rule b { color: var(--ink, #F5F1E8); }
.th3-body p.th3-dim { font-size: 13.5px; color: var(--ink-faint, #8F7F72); }
.th3-steps { list-style: none; margin: 18px 0 20px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.th3-step { display: flex; align-items: flex-start; gap: 14px; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid var(--rule, #433730); }
.th3-step.next { border-color: rgba(232,195,107,0.55); background: rgba(232,195,107,0.06); }
.th3-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 700 13px 'IBM Plex Mono', monospace; color: #8F7F72; background: #211b16; border: 1px solid #433730; }
.th3-step.next .th3-n { color: #1a1614; background: #E8C36B; border-color: #E8C36B; }
.th3-step.done .th3-n { color: #0c1420; background: #4FA0EC; border-color: #4FA0EC; }
.th3-st { display: flex; flex-direction: column; gap: 3px; }
.th3-st b { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 15px; color: var(--ink, #F5F1E8); }
.th3-st span { font-size: 13.5px; line-height: 1.5; color: var(--ink-dim, #C9BDAF); }
.th3-actions { justify-content: flex-start; margin-top: 4px; }
.th3-rule { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--rule, #433730); font-size: 13px; line-height: 1.55; color: var(--ink-faint, #8F7F72); }
.th3-table { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 14.5px; }
.th3-table th, .th3-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--rule, #433730); }
.th3-table thead th { font: 600 11px 'IBM Plex Mono', monospace; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint, #8F7F72); }
.th3-table tbody th { font-weight: 600; color: var(--ink-dim, #C9BDAF); width: 34%; }
.th3-table td { font-family: 'IBM Plex Mono', monospace; color: var(--ink, #F5F1E8); }
.th3-table tr.th3-transfer th, .th3-table tr.th3-transfer td { color: #8EC3F2; }
.th3-fb { margin-top: 10px; font-size: 14px; color: #8EC3F2; }
.th3-hint-note { font-size: 12.5px; color: var(--ink-faint, #8F7F72); }
.dv3-th3-line { margin: 4px 0 0; font-family: 'IBM Plex Mono', monospace; font-size: 13px; line-height: 1.6; color: var(--ink-dim, #C9BDAF); }
/* 3rds loop runner: the big one-action prompt, the practice intro, and the
   arrow that points at the string in play (js/18 ThirdsLoop promptHTML /
   placePointer). Chips use the locked degree colors (root vermillion, 3rd azure). */
.th3-run .th3-q { text-align: center; padding: 4px 0 2px; }
.th3-q-kicker { display: inline-block; font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent, #E8C36B); padding: 3px 12px; border: 1px solid transparent; border-radius: 999px; margin-bottom: 8px; }
.th3-q-new .th3-q-kicker { background: rgba(232,195,107,0.14); border-color: rgba(232,195,107,0.55); animation: th3-pop 0.7s ease-out; }
@keyframes th3-pop { 0% { transform: scale(0.9); opacity: 0.3; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: scale(1); } }
.th3-ask { font-family: var(--font-display, 'Sora'), sans-serif; font-weight: 600; font-size: clamp(22px, 3.4vw, 32px); line-height: 1.35; color: var(--ink, #F5F1E8); }
.th3-chip { display: inline-block; font-family: 'IBM Plex Mono', monospace; font-weight: 700; line-height: 1; padding: 5px 12px 6px; border-radius: 7px; vertical-align: 0.06em; margin: 0 2px; }
.th3-chip-r { background: #EC6A43; color: #1a1614; }
.th3-chip-3 { background: #4FA0EC; color: #0c1420; }
.th3-str { color: var(--accent, #E8C36B); white-space: nowrap; }
.th3-nw, .th3-q-kicker span { white-space: nowrap; }
.th3-q-sub { margin: 8px auto 0; max-width: 60ch; font-family: 'Mulish', sans-serif; font-size: 15px; line-height: 1.5; color: var(--ink-dim, #C9BDAF); }
.th3-q-sub strong { color: var(--ink, #F5F1E8); }
.th3-q-sub.th3-q-warn { color: #E8A272; }
.th3-intro { margin: 12px 0 14px; padding: 14px 18px 16px; border: 1px solid rgba(232,195,107,0.55); border-radius: 10px; background: rgba(232,195,107,0.07); text-align: left; }
.th3-intro-t { font-family: var(--font-display, 'Sora'), sans-serif; font-weight: 600; font-size: 18px; color: var(--ink, #F5F1E8); margin-bottom: 6px; }
.th3-intro p { margin: 0 0 12px; font-family: 'Mulish', sans-serif; font-size: 15px; line-height: 1.55; color: var(--ink-dim, #C9BDAF); max-width: 70ch; }
.th3-board { position: relative; }
.th3-pointer { position: absolute; left: 1px; width: 15px; height: 20px; margin-top: -10px; background: var(--accent, #E8C36B); clip-path: polygon(0 0, 100% 50%, 0 100%); transition: top 0.3s ease; pointer-events: none; z-index: 2; }
.th3-pointer[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .th3-q-new .th3-q-kicker { animation: none; }
  .th3-pointer { transition: none; }
}
@media (max-width: 560px) {
  .th3-ask { font-size: 21px; }
  .th3-q-kicker { font-size: 11px; letter-spacing: 0.08em; }
  .th3-q-sub, .th3-intro p { font-size: 14px; }
  .th3-intro { padding: 12px 14px 14px; }
  .th3-card { padding: 18px 16px; }
  .th3-title { font-size: 20px; }
  .th3-table { font-size: 13px; }
  .th3-table th, .th3-table td { padding: 8px 6px; }
}
