/* ActuallySpeak Kids — starting path (A1 / A2): the onboarding path card,
   the A2 picture check, the map's "A1 review anytime" group and the
   Grown-ups → Settings "Learning path" control. */

/* ============================ onboarding: path card ============================ */
.obp-learned .ob4-opt__t { font-size: .98em; }
.obp-path { display: flex; flex-direction: column; gap: 12px; margin-top: 2px; }
.obp-opt {
  position: relative; display: flex; align-items: flex-start; gap: 12px; width: 100%;
  padding: 16px 14px 14px; padding-inline-end: 46px; border-radius: 20px; font: inherit; text-align: start; cursor: pointer;
  background: #fff; color: var(--j-ink, #33261A);
  border: 3px solid var(--j-line, var(--t-line-d, #E7D3AA));
  box-shadow: 0 4px 0 var(--j-line, var(--t-line-d, #E7D3AA));
  transition: transform .12s ease, box-shadow .12s ease, border-color .15s ease, background .15s ease;
}
.obp-opt:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--j-line, var(--t-line-d, #E7D3AA)); }
.obp-opt.is-rec { margin-top: 10px; }
.obp-opt.is-on { border-color: var(--ob-pick); background: var(--ob-pick-soft); box-shadow: 0 4px 0 var(--ob-pick); }
.obp-opt__flag {
  position: absolute; top: -12px; inset-inline-start: 14px; padding: 3px 10px; border-radius: 999px;
  background: var(--ob-sun, #FFD21E); color: #5A3B00; font-weight: 900; font-size: .74em; letter-spacing: .02em;
  box-shadow: 0 2px 0 var(--ob-sun-d, #B4741A);
}
.obp-opt__lv {
  flex: 0 0 auto; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  font-weight: 900; font-size: 1.08em; color: #fff; background: #43A94A; box-shadow: 0 3px 0 rgba(0,0,0,.18);
}
.obp-opt--a2 .obp-opt__lv { background: #2BA6CF; }
.obp-opt__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.obp-opt__t { font-weight: 900; font-size: 1em; line-height: 1.25; }
.obp-opt__who { font-weight: 800; font-size: .86em; color: var(--ob-pick-d, #15803D); }
.obp-opt__sub { font-weight: 700; font-size: .8em; color: var(--j-ink-2, #6B5A45); line-height: 1.3; margin-top: 2px; }
.obp-opt__ok {
  position: absolute; top: 50%; inset-inline-end: 12px; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%;
  border: 3px solid var(--j-line, var(--t-line-d, #E7D3AA)); background: #fff;
}
.obp-opt.is-on .obp-opt__ok { border-color: var(--ob-pick-d); background: var(--ob-pick-d); }
.obp-opt.is-on .obp-opt__ok::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 14px; line-height: 1; }
.obp-ready { margin-top: 12px; white-space: normal; border-radius: 16px; line-height: 1.35; font-size: .86em; }
.obp-note { margin: 8px 0 0; padding: 8px 12px; border-radius: 14px; background: rgba(255,255,255,.78); font-weight: 700; font-size: .84em; color: var(--j-ink-2, #6B5A45); }
/* the account form's "Path ready · starts at A2 · My Jungle World" chip can wrap */
.ob4-card--form .ob2-ready { white-space: normal; border-radius: 14px; }
.obp-path + .obp-ready + .ob2-link, .obp-ready + .ob2-link, .obp-note + .ob2-link { margin-top: 6px; }

/* ============================ onboarding: A2 picture check ============================ */
.obp-chk { gap: 12px; }
.obp-grid {
  flex: 1 1 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  align-content: center; max-width: 440px; width: 100%; margin: 0 auto;
}
.askonb--v2 .obp-grid .obp-card { min-height: 0; aspect-ratio: 1 / 1; border-radius: 24px; transition: opacity .25s ease, transform .25s ease; }
.ob2--b-check .obp-card { animation: ob5Pop .5s cubic-bezier(.34,1.56,.64,1) both; animation-delay: calc(var(--k, 0) * .08s); }
/* the pop-in animation keeps its end state (fill: both), so dimming is an
   overlay rather than opacity/transform */
.askonb--v2 .obp-card.is-dim::before { content: ""; position: absolute; inset: 0; z-index: 3; background: rgba(255,255,255,.6); border-radius: inherit; }
html .askonb--v2 .obp-grid .obp-card.is-hint { box-shadow: 0 0 0 6px var(--ob-sun, #FFD21E), 0 8px 0 6px var(--ob-sun-d, #B4741A), 0 0 26px rgba(255,210,30,.75); }
.obp-chk .ob2-pic__e { font-size: 64px; }
.ob2-rounds i.is-soft { filter: grayscale(.2); opacity: .75; }
.obp-chkdone__art { font-size: 44px; letter-spacing: 8px; margin-top: 4px; }

/* ============================ map: A1 "review anytime" group ============================ */
.askm-head__lv {
  flex: 0 0 auto; padding: 3px 9px; border-radius: 999px; background: var(--lc, var(--j-blue));
  color: #fff; font-weight: 900; font-size: .8em; line-height: 1.3;
}
.askm-grp { margin: 10px 0 2px; }
.askm-grp__h {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 62px; padding: 8px 14px;
  border-radius: 20px; font: inherit; text-align: left; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--j-ink); border: 3px solid #fff;
  box-shadow: 0 4px 0 rgba(76,29,149,.18);
}
.askm-grp__lv {
  flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: var(--lc, #43A94A); color: #fff; font-weight: 900; font-size: 1em; box-shadow: 0 3px 0 rgba(0,0,0,.16);
}
.askm-grp__t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.askm-grp__t b { font-weight: 900; font-size: .98em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.askm-grp__t small { font-weight: 800; font-size: .78em; color: var(--j-ink-2); }
.askm-grp:not(.is-collapsed) > .askm-grp__h .askm-row__chev { transform: rotate(180deg); }
.askm-grp.is-collapsed > .askm-grp__in { display: none; }
.askm-grp__in { padding: 2px 0 0 10px; border-left: 4px dotted rgba(255,255,255,.7); margin-left: 18px; }

/* ============================ Grown-ups → Settings: learning path ============================ */
.askpath-k { font-weight: 900; font-size: .94em; margin-bottom: 10px; }
.askpath-opts { display: flex; flex-direction: column; gap: 10px; }
.askpath-opt {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 12px;
  border-radius: 16px; font: inherit; text-align: left; cursor: pointer; background: #fff; color: var(--j-ink);
  border: 3px solid var(--j-line); box-shadow: 0 3px 0 var(--j-line);
}
.askpath-opt.is-on { border-color: var(--lc); background: color-mix(in srgb, var(--lc) 10%, #fff); box-shadow: 0 3px 0 var(--lc); }
.askpath-opt__lv {
  flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: var(--lc); color: #fff; font-weight: 900;
}
.askpath-opt__t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.askpath-opt__t b { font-weight: 900; }
.askpath-opt__t small { font-weight: 700; font-size: .8em; color: var(--j-ink-2); }
.askpath-opt__ok {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  border: 3px solid var(--j-line); color: #fff; font-weight: 900; font-size: 14px;
}
.askpath-opt.is-on .askpath-opt__ok { background: var(--lc); border-color: var(--lc); }
.askpath-note { margin: 12px 2px 0; font-weight: 700; font-size: .84em; color: var(--j-ink-2); line-height: 1.45; }

@media (prefers-reduced-motion: reduce) {
  .ob2--b-check .obp-card { animation: none; }
  .obp-opt, .askonb--v2 .obp-grid .obp-card { transition: none; }
}
html.ask-reduced .ob2--b-check .obp-card { animation: none; }
