/* guided: ordered source sections, combined by the asset build. */
/* Guided unit content: prompts, options, media and the unit guidebook.
   The lesson chrome (header, panel layout, completion, transitions) lives in lesson-ui.css. */
.guided-context {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-2);
  margin: 8px 0 24px;
  font-weight: 750;
}
.guided-content {
  padding-bottom: 24px;
}
.guided-eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.09em;
  color: var(--brand-ink);
  text-transform: uppercase;
}
#cards .guided-page h1 {
  font-size: clamp(27px, 6vw, 34px);
  line-height: 1.2;
  margin: 0 0 20px;
  text-wrap: balance;
  outline: none;
}
.guided-intro,
.guided-instruction {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
}
.guided-story {
  margin: 20px 0;
  padding: 24px;
  border-radius: 22px;
  background: var(--brand-soft);
  line-height: 1.65;
}
.guided-key-fact {
  margin: 24px 0;
  border-radius: 22px;
  padding: 34px 20px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-weight: 950;
  font-size: 44px;
  text-align: center;
}
.guided-fact {
  margin: 20px 0 10px;
  font-size: 19px;
  line-height: 1.65;
  white-space: pre-line;
}
.guided-options {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
.guided-option {
  width: 100%;
  border: 2px solid var(--line-2);
  border-radius: 17px;
  box-shadow: 0 3px 0 var(--lip);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  transition:
    transform 0.12s ease,
    background 0.12s ease,
    border-color 0.12s ease,
    box-shadow 0.12s ease,
    color 0.12s ease;
}
.guided-option:active {
  transform: scale(0.98);
}
.guided-option-mark {
  flex: 0 0 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line-2);
  border-radius: 50%;
  font-size: 17px;
}
.guided-option.is-selected {
  background: var(--brand-soft);
  border-color: var(--brand);
  box-shadow: 0 3px 0 var(--brand);
  color: var(--brand-ink);
}
.guided-option.is-selected .guided-option-mark {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: inset 0 0 0 5px var(--brand-soft);
}
.guided-option.is-correct {
  border-color: var(--correct);
  background: var(--correct-soft);
  box-shadow: 0 3px 0 var(--correct);
}
.guided-option.is-correct .guided-option-mark {
  background: var(--correct-lip);
  color: #fff;
  border-color: var(--correct-lip);
}
.guided-option.is-wrong {
  border-color: #ec9a91;
  background: var(--wrong-soft);
  box-shadow: 0 3px 0 #ec9a91;
}
.guided-option.is-wrong .guided-option-mark {
  color: var(--wrong-ink);
  border-color: #ec9a91;
}
.guided-option:disabled {
  opacity: 1;
  cursor: default;
}
.guided-actions {
  margin-top: auto;
  padding: 20px 0 12px;
}
#cards .guided-actions .big {
  width: 100%;
  margin: 0;
  color: #fff;
}
#cards .guided-actions .big:disabled {
  background: var(--panel-2);
  box-shadow: 0 4px 0 var(--disabled);
  color: var(--ink-2);
  opacity: 1;
}
.guided-guide {
  display: block;
}
.guided-guide > .guided-eyebrow {
  margin-top: 25px;
}
.guided-guide section {
  border-top: 1px solid var(--line-2);
  padding: 20px 0;
}
.guided-guide h2 {
  margin: 0 0 10px;
  font-size: 20px;
}
.guided-guide section p {
  margin: 0;
  line-height: 1.7;
  font-size: 16px;
  color: var(--ink);
}
.today-guided-kind {
  display: block;
  color: var(--topic-banner);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  font-weight: 950;
  margin-bottom: 5px;
}
@media (prefers-reduced-motion: reduce) {
  .guided-option {
    transition: none;
  }
  .guided-option:active {
    transform: none;
  }
}
.guided-question-screen .guided-options {
  margin-top: 16px;
  gap: 14px;
}
/* Answers share the practice and mock weight (feed-reel.css .opt). */
.guided-question-screen .guided-option {
  font-size: 18px;
  font-weight: 700;
  border: 2px solid var(--line-1);
  box-shadow: 0 2px 0 var(--line-1);
  border-radius: 15px;
}
.guided-question-screen .guided-option-mark {
  display: none;
}
.guided-question-screen .guided-option.is-selected {
  background: var(--brand-soft);
  color: var(--brand-ink);
  border-color: var(--brand-soft-2);
  box-shadow: 0 2px 0 var(--brand-soft-2);
}
.guided-question-screen .guided-option.is-correct {
  background: var(--correct-soft);
  color: var(--correct-ink);
  border-color: var(--correct-line);
  box-shadow: 0 2px 0 var(--correct-line);
}
.guided-question-screen .guided-option.is-wrong {
  color: var(--wrong-ink);
  background: var(--wrong-soft);
  border-color: var(--wrong-line);
  box-shadow: 0 2px 0 var(--wrong-line);
}
/* The moose teaches one idea in the same frame as the next question. */
.guided-reading-screen .guided-content {
  padding-top: 18px;
}
.guided-reading-screen .moose-question {
  border-bottom: 0;
}
/* A reading bubble is plain white with a light rule, like a character speaking, not a tinted panel. */
.guided-reading-screen .moose-question-bubble,
.guided-reading-screen .moose-question-bubble::before {
  background: var(--paper);
  border-color: var(--line-2);
}
.guided-reading-screen .moose-question-bubble {
  border-radius: 16px;
  padding: 16px 18px;
}
/* The mascot's hello: a short bubble above a big waving moose, centred, with a
   soft shadow under its paws. */
/* Maple stands in the same place on every hello: the bubble grows upward from
   its tail, the way a speech bubble should, instead of pushing him down. */
.guided-hello {
  display: grid;
  grid-template-rows: minmax(112px, auto) auto;
  justify-items: center;
  align-content: start;
  text-align: center;
  margin: 12px auto 0;
}
.guided-hello-bubble {
  position: relative;
  align-self: end;
  max-width: 360px;
  padding: 12px 16px;
  border: 2px solid var(--line-2);
  border-radius: 14px;
  background: var(--paper);
}
#cards .guided-hello-screen .guided-hello-bubble h1,
.guided-hello-screen .guided-hello-bubble h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink);
}
.guided-hello-bubble::after {
  content: "";
  position: absolute;
  left: calc(50% - 8px);
  bottom: -9px;
  width: 14px;
  height: 14px;
  background: var(--paper);
  border-right: 2px solid var(--line-2);
  border-bottom: 2px solid var(--line-2);
  transform: rotate(45deg);
}
.guided-hello-stage {
  width: min(62vw, 300px);
  margin-top: 26px;
}
/* Text-only test instructions have no mascot shadow or speech-bubble tail. */
.mock-intro .guided-hello {
  display: block;
}
.mock-intro .guided-hello-bubble {
  margin: 0 auto;
}
.mock-intro .guided-hello-bubble::after {
  content: none;
}
@media (max-height: 760px) {
  .guided-hello-stage {
    width: min(50vw, 240px);
  }
}
/* Key terms marked **like this** in the content. */
#cards .guided-term {
  color: var(--brand-ink);
  font-weight: 800;
  text-decoration-line: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
  text-decoration-skip-ink: auto;
}
/* Anchor the shadow to the visible feet, inside each pose's transparent canvas. */
.guided-hello-stage {
  --mascot-ground-x: var(--mascot-wave-ground-x);
  --mascot-ground-y: var(--mascot-wave-ground-y);
  --mascot-ground-width: var(--mascot-wave-ground-width);
}
.lesson-complete-stage {
  --mascot-ground-x: var(--mascot-trophy-ground-x);
  --mascot-ground-y: var(--mascot-trophy-ground-y);
  --mascot-ground-width: var(--mascot-trophy-ground-width);
}
.guided-hello-stage,
.lesson-complete-stage {
  position: relative;
  isolation: isolate;
}
.guided-hello-stage::after,
.lesson-complete-stage::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: var(--mascot-ground-x);
  top: var(--mascot-ground-y);
  width: var(--mascot-ground-width);
  height: 4%;
  border-radius: 50%;
  background: var(--line-2);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.guided-hello-stage > img,
.lesson-complete-stage > img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  transform-origin: var(--mascot-ground-x) var(--mascot-ground-y);
}
/* The phone's own permission box, pictured under the mascot's offer of a daily
   reminder with an arrow at Allow (owner, 5 Oct 2026, from a reference). It is
   drawn as the phone draws it, in the phone's own type, day and night: Apple's
   alert on an iPhone, Android's dialog with Allow above Don't allow. The
   mascot steps down a size on this screen to leave it room. */
.hello-reminders .guided-hello-stage {
  width: min(40vw, 170px);
  margin-top: 18px;
}
.reminder-permission {
  --allow: #007aff;
  position: relative;
  width: 270px;
  margin: 26px auto 54px;
  font-family: -apple-system, "SF Pro Text", system-ui, sans-serif;
}
.reminder-permission-box {
  overflow: hidden;
  border-radius: 14px;
  background: #f2f2f7;
  box-shadow:
    0 10px 30px rgb(0 0 0 / 12%),
    0 0 0 1px rgb(0 0 0 / 5%);
  color: #000;
  text-align: center;
}
#cards .reminder-permission-title,
.reminder-permission-title {
  margin: 0;
  padding: 19px 16px 2px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.4px;
}
.reminder-permission-text {
  margin: 0;
  padding: 0 16px 19px;
  font-size: 13px;
  line-height: 1.35;
}
.reminder-permission-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  border-top: 0.5px solid rgb(60 60 67 / 29%);
}
.reminder-permission-actions span {
  padding: 11px 8px;
  font-size: 17px;
  line-height: 22px;
  color: rgb(60 60 67 / 60%);
}
.reminder-permission-actions span + span {
  border-left: 0.5px solid rgb(60 60 67 / 29%);
}
.reminder-permission-actions .is-allow {
  color: var(--allow);
  font-weight: 600;
}
.reminder-permission-arrow {
  position: absolute;
  right: 52px;
  bottom: -50px;
  width: 32px;
  height: 40px;
  fill: var(--allow);
  animation: reminder-arrow 1.2s ease-in-out infinite;
}
@keyframes reminder-arrow {
  50% {
    transform: translateY(-7px);
  }
}
/* Android: a rounded dialog with a bell, the question, then Allow above
   Don't allow, so the arrow points in from the side at Allow. */
.reminder-permission.is-android {
  --allow: #0b57d0;
  width: 290px;
  margin-bottom: 26px;
  font-family: Roboto, system-ui, sans-serif;
}
.is-android .reminder-permission-box {
  padding: 22px 20px 18px;
  border-radius: 28px;
  background: #ece6f0;
}
.reminder-permission-bell {
  width: 24px;
  height: 24px;
  fill: var(--allow);
}
#cards .is-android .reminder-permission-title,
.is-android .reminder-permission-title {
  padding: 10px 0 18px;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0;
  color: #1d1b20;
}
.is-android .reminder-permission-actions {
  grid-template-columns: 1fr;
  gap: 6px;
  border: 0;
}
.is-android .reminder-permission-actions span,
.is-android .reminder-permission-actions span + span {
  padding: 11px;
  border: 0;
  border-radius: 20px;
  background: rgb(255 255 255 / 75%);
  color: var(--allow);
  font-size: 15px;
  font-weight: 500;
}
.is-android .reminder-permission-arrow {
  top: auto;
  right: -42px;
  bottom: 69px;
  transform: rotate(-90deg);
  animation-name: reminder-arrow-side;
}
@keyframes reminder-arrow-side {
  50% {
    transform: rotate(-90deg) translateY(-7px);
  }
}
/* At night the phone draws its boxes dark. */
:root[data-theme="dark"] .reminder-permission {
  --allow: #0a84ff;
}
:root[data-theme="dark"] .reminder-permission-box {
  background: #2c2c2e;
  box-shadow: 0 10px 30px rgb(0 0 0 / 40%);
  color: #fff;
}
:root[data-theme="dark"] .reminder-permission-actions,
:root[data-theme="dark"] .reminder-permission-actions span + span {
  border-color: rgb(84 84 88 / 65%);
}
:root[data-theme="dark"] .reminder-permission-actions span:not(.is-allow) {
  color: rgb(235 235 245 / 60%);
}
:root[data-theme="dark"] .reminder-permission.is-android {
  --allow: #a8c7fa;
}
:root[data-theme="dark"] .is-android .reminder-permission-box {
  background: #2b2930;
}
:root[data-theme="dark"] #cards .is-android .reminder-permission-title,
:root[data-theme="dark"] .is-android .reminder-permission-title {
  color: #e6e0e9;
}
:root[data-theme="dark"] .is-android .reminder-permission-actions span {
  background: rgb(255 255 255 / 8%);
}
@media (max-height: 700px) {
  .hello-reminders .guided-hello-stage {
    width: min(30vw, 120px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .reminder-permission-arrow {
    animation: none;
  }
}
