/* The account-move pages' pick tool (kit/PickTool.astro): questions on the left, the result card on the right, and the
   table "What each answer means" under them. Tokens only; light and dark follow the site's. Classes only: no inline style. */

.pk { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s-6); align-items: stretch; }
.pk__form { display: grid; gap: var(--s-3); margin: 0; }
.pk__q { margin: 0; padding: var(--s-4) var(--s-5); border: 1px solid var(--line); background: var(--paper); min-width: 0; transition: border-color var(--dur) var(--ease); }
.pk__q.is-answered { border-color: var(--accent-tint-2); }
.pk__legend { float: left; width: 100%; display: flex; align-items: baseline; gap: var(--s-3); padding: 0; font-size: var(--fs-body); font-weight: 600; line-height: 1.35; color: var(--ink); }
.pk__q > :not(legend) { clear: both; }
.pk__n { color: var(--accent-deep); flex: none; }
.pk__hint { margin: var(--s-1) 0 0; font-size: var(--fs-small); line-height: 1.45; color: var(--muted); }
.pk__opts { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.pk__opt { position: relative; display: inline-flex; flex: 1 1 auto; min-width: 0; }
.pk__opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pk__opt span { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line-2); background: var(--paper); font-size: var(--fs-small); font-weight: 500; line-height: 1.3; text-align: center; color: var(--ink); transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.pk__opt:hover span { border-color: var(--accent); background: var(--accent-tint); }
.pk__opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pk__opt input:checked + span { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.pk__reset { justify-self: start; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--s-2); border: 0; background: none; color: var(--accent-text); cursor: pointer; }
.pk__reset:hover { text-decoration: underline; }

.pk__prev { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pk__pi { display: flex; justify-content: space-between; gap: var(--s-3); padding: 8px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-small); line-height: 1.35; }
.pk__pl { color: var(--ink); font-weight: 600; min-width: 0; }
.pk__pv { color: var(--muted); text-align: right; min-width: 0; }
.pk__pi.is-ok .pk__pv { color: var(--ok-ink); }
.pk__pi.is-risk .pk__pv { color: var(--warn-ink); font-weight: 600; }
.pk__pi.is-stop .pk__pv { color: var(--accent-text); font-weight: 600; }
.pk__result { align-self: stretch; align-content: start; display: grid; gap: var(--s-3); padding: var(--s-5); border: 1px solid var(--line); border-top: 3px solid var(--accent); background: var(--paper); min-width: 0; }
.pk__kicker { margin: 0; color: var(--accent-deep); }
.pk__empty { margin: 0; font-size: var(--fs-small); line-height: 1.5; color: var(--muted); }
.pk__verdict { display: grid; gap: var(--s-2); }
.pk__verdict[hidden], .pk__prev[hidden], .pk__empty[hidden], .pk__lines[hidden], .pk__act[hidden], .pk__copy[hidden] { display: none; }
.pk.is-js .pk__verdict { animation: pk-in 240ms var(--ease) both; }
.pk:not(.is-js) .pk__verdict { padding-top: var(--s-3); border-top: 1px solid var(--line); }
.pk:not(.is-js) .pk__empty { display: none; }
.pk__vt { margin: 0; font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; color: var(--ink); }
.pk__vb { font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); }
.pk__vb p { margin: 0 0 var(--s-2); }
.pk__go { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-small); font-weight: 600; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.pk__lines { display: grid; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.pk__line { position: relative; padding: var(--s-2) var(--s-3) var(--s-2) var(--s-4); border-left: 3px solid var(--line-2); font-size: var(--fs-small); line-height: 1.5; color: var(--ink); background: var(--paper-2); }
.pk__line--risk { border-left-color: var(--warn-ink); }
.pk__line--ok { border-left-color: var(--ok); }
.pk__line--stop { border-left-color: var(--accent); }
.pk__act { display: grid; gap: var(--s-2); }
.pk__why { margin: 0; font-size: var(--fs-xs); line-height: 1.4; color: var(--muted); }
.pk__copy { justify-self: start; }
@keyframes pk-in { from { opacity: 0; transform: translateY(6px); } }

.pk__sources { margin-top: var(--s-6); }
.pk__sh { margin: 0 0 var(--s-3); padding: var(--s-2) 0; font-size: var(--fs-body); font-weight: 600; color: var(--accent-text); cursor: pointer; }
.pk__sources[open] > .pk__sh { margin-bottom: var(--s-3); }
.pk__table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); line-height: 1.45; }
.pk__table th, .pk__table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.pk__table thead th { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.pk__table tbody th { font-weight: 600; color: var(--ink); }
.pk__table td:last-child { white-space: nowrap; }
.pk__table td:last-child svg { vertical-align: -2px; margin-right: 4px; }
.pk__table [data-sev='risk'] td:last-child { color: var(--warn-ink); }
.pk__table [data-sev='ok'] td:last-child { color: var(--ok-ink); }
.pk__table [data-sev='stop'] td:last-child { color: var(--accent-text); }

@media (max-width: 900px) {
  .pk { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .pk__q { padding: var(--s-3) var(--s-4); }
  .pk__opt span { padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .pk.is-js .pk__verdict { animation: none; }
  .pk__q, .pk__opt span { transition: none; }
}

/* ---------- the folds of the account-move pages (html sections): quotes, cards, steps, claims, boards ---------- */
.aphook { margin: 0 0 var(--s-3); font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; color: var(--ink); }
.apnext { margin: var(--s-3) 0 0; }
.apq { margin: var(--s-3) 0; padding: var(--s-3) var(--s-4); border-left: 3px solid var(--accent); background: var(--paper-2); }
.apq p { margin: 0; font-size: var(--fs-body); line-height: 1.5; color: var(--ink); }
.apq .apq__src { margin-top: var(--s-2); font-size: var(--fs-xs); line-height: 1.4; color: var(--muted); }
.apcards { display: grid; gap: var(--s-4); margin: var(--s-4) 0; }
.apcards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.apcards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.apcard { padding: var(--s-4) var(--s-5); border: 1px solid var(--line); background: var(--paper); min-width: 0; }
.apcard__k { margin: 0 0 var(--s-2); color: var(--accent-deep); }
.apcard h3 { margin: 0 0 var(--s-2); font-size: var(--fs-h3); line-height: 1.25; }
.apcard p { margin: 0 0 var(--s-2); font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); }
.apclaim { margin: var(--s-4) 0; padding: var(--s-4) var(--s-5); border: 1px solid var(--line); border-top: 3px solid var(--accent); background: var(--paper); }
.apclaim__k { margin: 0 0 var(--s-2); color: var(--accent-deep); }
.apclaim blockquote { margin: 0; }
.apclaim blockquote p { margin: 0; font-size: var(--fs-body); line-height: 1.55; color: var(--ink); }
.apclaim__src { margin: var(--s-2) 0 0; font-size: var(--fs-xs); color: var(--muted); }
.apnote { margin: var(--s-4) 0; padding: var(--s-3) var(--s-4); border: 1px solid var(--warn-ink); background: var(--warn-tint); font-size: var(--fs-small); line-height: 1.5; color: var(--ink); }
.apsteps { display: grid; gap: var(--s-3); margin: var(--s-4) 0; padding: 0; list-style: none; counter-reset: none; }
.apstep { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--s-3); padding: var(--s-3) var(--s-4); border: 1px solid var(--line); background: var(--paper); }
.apstep__n { color: var(--accent-deep); padding-top: 2px; }
.apstep h3 { margin: 0; font-size: var(--fs-body); line-height: 1.3; }
.apstep p { margin: var(--s-1) 0 0; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); }
.apstep__who { color: var(--accent-deep) !important; }
.apt { width: 100%; border-collapse: collapse; font-size: var(--fs-small); line-height: 1.45; }
.apt caption { padding: 0 0 var(--s-2); text-align: left; font-size: var(--fs-xs); color: var(--muted); }
.apt th, .apt td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.apt thead th { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.apt tbody th { font-weight: 600; color: var(--ink); }
.apfig { margin: var(--s-4) 0 0; }
.apfig img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.apfig figcaption { margin-top: var(--s-2); font-size: var(--fs-xs); color: var(--muted); }

/* merge: two boards become one */
.apdiff { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--s-4); align-items: center; margin: var(--s-4) 0 var(--s-2); padding: var(--s-4); border: 1px solid var(--line); background: var(--paper-2); }
.apdiff__k { margin: 0 0 var(--s-2); color: var(--accent-deep); }
.apdiff__arrow { font-size: 28px; color: var(--accent); }
.apboard { display: grid; gap: 4px; margin-bottom: var(--s-2); padding: var(--s-2) var(--s-3); border: 1px solid var(--line-2); background: var(--paper); font-size: var(--fs-small); }
.apboard b { font-weight: 600; }
.apboard i { font-style: normal; color: var(--muted); }
.apboard--one { border-color: var(--accent); }
.apboard__src { color: var(--accent-text) !important; font-weight: 600; }

/* split: three lists, and a link across the cut */
.apcut { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); margin: var(--s-4) 0 var(--s-2); }
.apcut__col { padding: var(--s-3) var(--s-4); border: 1px solid var(--line); background: var(--paper); }
.apcut__col--leave { border-top: 3px solid var(--accent); }
.apcut__col--stay { border-top: 3px solid var(--line-2); }
.apcut__col--both { border-top: 3px dashed var(--warn-ink); }
.apcut__k { margin: 0 0 var(--s-2); color: var(--accent-deep); }
.apcut ul { margin: 0; padding-left: 18px; font-size: var(--fs-small); line-height: 1.5; }
.apdiag { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); gap: var(--s-2); align-items: stretch; margin: var(--s-4) 0; padding: var(--s-4); border: 1px solid var(--line); background: var(--paper-2); }
.apdiag__b { display: grid; gap: 4px; align-content: center; padding: var(--s-3); border: 1px solid var(--line-2); background: var(--paper); font-size: var(--fs-small); }
.apdiag__b i { font-style: normal; color: var(--muted); }
.apdiag__b--move { border-color: var(--accent); }
.apdiag__cut { border-left: 2px dashed var(--warn-ink); justify-self: center; }
.apdiag__t { grid-column: 1 / -1; margin: var(--s-2) 0 0; color: var(--accent-deep); }

@media (max-width: 900px) {
  .apcards--3, .apcut { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .apcards--2 { grid-template-columns: minmax(0, 1fr); }
  .apdiff { grid-template-columns: minmax(0, 1fr); }
  .apdiff__arrow { transform: rotate(90deg); justify-self: center; }
  .apstep { grid-template-columns: minmax(0, 1fr); gap: var(--s-1); }
}

.pk:not(.is-js) .pk__prev { display: none; }

/* ---------- merge: a two-sided A | B board with a balance ---------- */
.pk__opts--sides { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.1fr); gap: var(--s-2); }
.pk__opts--sides .pk__opt { grid-row: 1; }
.pk__opts--sides .pk__opt[data-o='a'] { grid-column: 1; }
.pk__opts--sides .pk__opt[data-o='b'] { grid-column: 4; }
.pk__opts--sides .pk__opt[data-o='same'] { grid-column: 2; }
.pk__opts--sides .pk__opt[data-o='unsure'] { grid-column: 3; }
.pk__opts--sides .pk__opt[data-o='a'] span { border-left: 4px solid var(--accent); font-weight: 600; }
.pk__opts--sides .pk__opt[data-o='b'] span { border-right: 4px solid var(--warn-ink); font-weight: 600; }
.pk--sides .pk__q { border-radius: 0; background: linear-gradient(90deg, var(--accent-tint) 0, var(--paper) 22%, var(--paper) 78%, var(--warn-tint) 100%); }
.pk__bal { display: grid; gap: var(--s-2); padding: var(--s-3) 0; }
.pk__balk { margin: 0; font-size: var(--fs-h3); font-weight: 600; color: var(--ink); }
.pk__beam { position: relative; display: flex; justify-content: space-between; align-items: center; height: 40px; padding: 0 var(--s-2); border: 1px solid var(--line-2); background: linear-gradient(90deg, var(--accent-tint-2), var(--paper-2) 50%, var(--warn-tint)); }
.pk__bs { font-family: var(--font-mono); font-weight: 700; font-size: var(--fs-small); color: var(--ink); }
.pk__bm { position: absolute; top: 4px; bottom: 4px; left: calc(50% - 7px); width: 14px; background: var(--ink); transition: left 260ms var(--ease); }
.pk__bal[data-lean='-4'] .pk__bm { left: 4%; } .pk__bal[data-lean='-3'] .pk__bm { left: 14%; } .pk__bal[data-lean='-2'] .pk__bm { left: 26%; } .pk__bal[data-lean='-1'] .pk__bm { left: 38%; }
.pk__bal[data-lean='1'] .pk__bm { left: 58%; } .pk__bal[data-lean='2'] .pk__bm { left: 70%; } .pk__bal[data-lean='3'] .pk__bm { left: 82%; } .pk__bal[data-lean='4'] .pk__bm { left: 92%; }
.pk__bhint { margin: 0; color: var(--muted); }

/* ---------- split: question cards, and chips dropped on a cut line ---------- */
.pk--cut .pk__form { grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; }
.pk--cut .pk__q { padding: var(--s-3) var(--s-4); }
.pk--cut .pk__q:last-of-type { grid-column: 1 / -1; }
.pk--cut .pk__reset { grid-column: 1 / -1; }
.pk--cut .pk__legend { font-size: var(--fs-small); }
.pk__cutviz { display: grid; gap: var(--s-2); }
.pk__cutk { display: flex; justify-content: space-between; margin: 0; color: var(--accent-deep); }
.pk__cutbox { position: relative; min-height: 120px; padding: var(--s-3); border: 1px solid var(--line-2); background: linear-gradient(90deg, var(--accent-tint) 0, var(--accent-tint) 50%, var(--paper-2) 50%, var(--paper-2) 100%); }
.pk__cutbox::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 2px dashed var(--warn-ink); }
.pk__chips { position: relative; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 0; padding: 0; list-style: none; }
.pk__chip { padding: 4px 10px; border: 1px solid var(--warn-ink); background: var(--paper); font-size: var(--fs-xs); font-weight: 600; color: var(--ink); animation: pk-drop 260ms var(--ease) both; }
.pk__chip.is-unsure { border-style: dashed; color: var(--muted); }
.pk__cutempty { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 0 var(--s-5); text-align: center; font-size: var(--fs-small); color: var(--muted); }
.pk__cutempty[hidden] { display: none; }
.pk__cutn { margin: 0; color: var(--accent-deep); }
@keyframes pk-drop { from { opacity: 0; transform: translateY(-14px); } }
@media (max-width: 560px) { .pk--cut .pk__form { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .pk__chip, .pk__bm { animation: none; transition: none; } }

/* ---------- the first-screen drawings (kit/AcctArt.astro) ---------- */
.acart { display: grid; gap: var(--s-2); margin: 0; padding: var(--s-5); border: 1px solid var(--line); background: radial-gradient(90% 60% at 100% 0%, var(--accent-tint), var(--paper) 70%); }
.acart__box { padding: var(--s-3) var(--s-4); border: 2px solid var(--line-2); background: var(--paper-2); }
.acart__box--to { border-color: var(--accent); background: var(--accent-tint); }
.acart__k { margin: 0 0 var(--s-2); color: var(--accent-deep); }
.acart__row { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-2); }
.acart__row:last-child { margin-bottom: 0; }
.acart__chip { flex: 1 1 0; min-width: 96px; padding: 10px 12px; border: 1px solid var(--line-2); background: var(--paper); font-style: normal; font-size: var(--fs-small); font-weight: 600; color: var(--ink); text-align: center; }
.acart__chip--new { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.acart__chip--leave { border-color: var(--accent); color: var(--accent-text); }
.acart__cut { margin: var(--s-2) 0; border-top: 2px dashed var(--warn-ink); }
.acart__flow { display: flex; justify-content: center; gap: 14px; height: 22px; }
.acart__dot { width: 8px; height: 8px; margin-top: 2px; border-radius: 50%; background: var(--accent); animation: acart-dot 1.6s ease-in-out 3 both; }
.acart__dot--2 { animation-delay: 0.2s; } .acart__dot--3 { animation-delay: 0.4s; }
.acart__cap { margin: var(--s-1) 0 0; font-size: var(--fs-xs); line-height: 1.45; color: var(--ink-2); }
.acart__chip--in1 { animation: acart-in 700ms var(--ease) 0.5s both; }
.acart__chip--in2 { animation: acart-in 700ms var(--ease) 0.9s both; }
.acart__chip--gone1 { animation: acart-out 700ms var(--ease) 0.5s both; }
.acart__chip--gone2 { animation: acart-out 700ms var(--ease) 0.9s both; }
@keyframes acart-in { from { opacity: 0; transform: translateY(-90px); } }
@keyframes acart-out { to { opacity: 0.88; border-style: dashed; } } /* 0.4 left the word under 4.5:1 (T6, 20 Nov 2026) */
@keyframes acart-dot { 0%, 100% { transform: translateY(0); opacity: 0.3; } 50% { transform: translateY(8px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .acart__dot, .acart__chip--in1, .acart__chip--in2, .acart__chip--gone1, .acart__chip--gone2 { animation: none; } .acart__chip--gone1, .acart__chip--gone2 { opacity: 0.88; border-style: dashed; } }

.pk__copy { gap: 8px; }
.pk__copy .i-check { display: none; color: var(--ok); }
.pk__copy[data-done] .i-copy { display: none; }
.pk__copy[data-done] .i-check { display: inline; }
.pk__ll { font-weight: 600; }

.apsrc { margin: var(--s-3) 0 0; font-size: var(--fs-xs); line-height: 1.45; color: var(--muted); }
.acart__arrow { display: block; width: 28px; height: 22px; color: var(--accent); }
@media (max-width: 640px) { .acart { padding: var(--s-3); } .acart__cap { display: none; } .acart__chip { padding: 6px 8px; min-width: 80px; } .acart__flow { height: 16px; } }

.pk--cut .pk__form { align-content: start; }
.apnote:last-child, .apsteps:last-child, .apcards:last-child, .apclaim:last-child, .apfig:last-child, .apdiff:last-child, .apdiag:last-child, .apcut:last-child { margin-bottom: 0; }
@media (max-width: 640px) { .hero .apq { padding: var(--s-2) var(--s-3); margin: var(--s-2) 0; } .hero .apnext { margin-top: var(--s-2); } .pk__opts--sides { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pk__opts--sides .pk__opt[data-o] { grid-column: auto; grid-row: auto; } }
.prose .apsteps, .apsteps { margin-left: 0; padding-left: 0; }
.apsteps > li { margin: 0; }
.band .prose--html > :last-child { margin-bottom: 0; }
.acart__chip--left { border-style: dashed; color: var(--muted); font-weight: 500; }
@media (max-width: 640px) { .hero .aphook { font-size: var(--fs-body); margin-bottom: var(--s-2); } }
/* the account-move first screens: a smaller title and compact answer lines, so the button and the trust row stay inside 1366x768 */
@media (min-width: 900px) {
  .hero:has(.hero__acct) .hero__title { font-size: clamp(34px, 3.3vw, 44px); line-height: 1.12; }
  .hero:has(.hero__acct) .aphook { font-size: var(--fs-read); line-height: 1.35; margin-bottom: var(--s-2); }
  .hero:has(.hero__acct) .apnext { font-size: var(--fs-body); line-height: 1.5; margin-top: var(--s-2); }
}

.pk--sides .pk__form { align-content: start; }
/* the account-move first screens on a small phone: the button and the trust row stay inside 360x740 */
@media (max-width: 420px) {
  .hero:has(.hero__acct) .hero__eyebrow { display: none; }
  .hero:has(.hero__acct) .hero__title { font-size: 30px; line-height: 1.1; }
  .hero:has(.hero__acct) .aphook { font-size: var(--fs-small); line-height: 1.35; margin-bottom: var(--s-1); }
  .hero:has(.hero__acct) .apnext { font-size: var(--fs-small); line-height: 1.4; margin-top: var(--s-1); }
}
/* links in running text are told apart by more than colour (WCAG 1.4.1; T6, 20 Nov 2026) */
.pk__table td a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
