/* =============================================================================
   Your Future — YF1.2 "Clickable Journey" (approved YF1.2 production presentation).

   Layered on YF1.1 Horizon (yf11.css + yf11-art.css), which it does not change.
   These rules only mark what is now a way into a guide: a chevron on each
   station and milestone that opens one, the chapter title as a link with its
   arrow, the contents bar's entries, and on phones a row of Year 6 stops.
   Anything that is not a link keeps YF1.1's look and gains no affordance.
   ============================================================================= */

/* ------------------------------------------------- the line: stations */
.yf11 .yf12-go { cursor: pointer; }
.yf11 .yf12-go .yf1-st-year { display: inline-flex; align-items: center; gap: 2px; }
.yf11 .yf12-go .yf1-chev { width: 13px; height: 13px; flex-basis: 13px; color: var(--yf-mist); }
.yf11 .yf1-st.is-end .yf12-go .yf1-chev { width: 16px; height: 16px; flex-basis: 16px; }
.yf11 a.yf12-go:hover .yf1-chev, .yf11 a.yf12-go:focus-visible .yf1-chev { transform: translateX(3px); color: var(--yf-ink); }
.yf11 a.yf12-go:hover .yf1-st-year { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ----------------------------------------------- the line: milestones */
.yf11 .yf1-tick-label .yf1-chev { width: 12px; height: 12px; flex-basis: 12px; margin-left: 1px; vertical-align: -2px; color: var(--yf-mist); }
.yf11 .yf1-tick a:hover .yf1-chev, .yf11 .yf1-tick a:focus-visible .yf1-chev { transform: translateX(2px); color: var(--yf-ink); }
.yf11 .yf1-tick a { cursor: pointer; }
/* A milestone without a guide for this student: the same mark, no link. */
.yf11 .yf1-tick > .yf12-plain { position: relative; display: flex; flex-direction: column; gap: 1px; margin-left: -5px; padding: 10px 10px 6px 5px; width: max-content; max-width: 118px; }
.yf11 .yf1-tick > .yf12-plain::before { content: ""; position: absolute; left: 4px; top: 0; width: 1px; height: 8px; background: var(--yf-rule); }
.yf11 .yf1-tick.is-row2 > .yf12-plain { padding-top: 54px; }
.yf11 .yf1-tick.is-row2 > .yf12-plain::before { height: 52px; }
.yf11 .yf1-tick.is-plain .yf1-tick-label { color: var(--yf-slate); font-weight: 500; }
.yf11 .yf1-tick.is-plain::before { border-color: var(--yf-mist); }

/* ------------------------------------------- phones: the Year 6 stops */
.yf11 .yf12-stops { display: none; }
@container yfline (max-width: 680px) {
  .yf11 .yf12-stops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; list-style: none; margin: 12px 0 0; padding: 0; }
  .yf11 .yf12-stops a, .yf11 .yf12-stops li > span {
    position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; box-sizing: border-box; height: 100%; min-height: 52px;
    padding: 8px 22px 8px 10px; border: 1px solid var(--yf-rule); border-radius: 10px; background: #fff; text-decoration: none; color: inherit;
    transition: background-color 180ms, border-color 180ms;
  }
  .yf11 .yf12-stops a:hover, .yf11 .yf12-stops a:active { background: var(--yf-wash); border-color: var(--yf-mist); }
  .yf11 .yf12-stops .yf1-chev { position: absolute; right: 5px; top: 50%; width: 14px; height: 14px; margin-top: -7px; }
  .yf11 .yf12-stops li.is-plain > span { border-style: dashed; background: transparent; }
  .yf11 .yf12-stop-t { font-size: 12.5px; font-weight: 600; line-height: 1.25; color: var(--yf-ink); }
  .yf11 .yf12-stop-w { font-size: 11.5px; line-height: 1.3; color: var(--yf-slate); }
  .yf11 .yf12-stops li.is-plain .yf12-stop-t, .yf11 .yf12-stops li.is-passed .yf12-stop-t { color: var(--yf-slate); font-weight: 500; }
}

/* ----------------------------------------------------- chapter titles */
.yf11 .yf12-ch-link { display: inline-block; padding: 4px 0; margin: -4px 0; color: inherit; text-decoration: none; border-radius: 4px; }
.yf11 .yf12-ch-link .yf11-arrow { width: .62em; height: .5em; margin-left: .22em; vertical-align: .06em; color: var(--yf-mist); transition: transform 200ms var(--yf-ease), color 180ms; }
.yf11 .yf12-ch-link:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; text-decoration-color: var(--yf-faint); }
.yf11 .yf12-ch-link:hover .yf11-arrow, .yf11 .yf12-ch-link:focus-visible .yf11-arrow { transform: translateX(5px); color: var(--yf-ink); }
.yf11 .yf12-ch-link:focus-visible { outline-offset: 6px; }
.yf11 .yf12-ch-link.yf11-going .yf11-arrow { transform: translateX(7px); color: var(--yf-ink); }

/* -------------------------------------------------------- contents bar */
.yf11 .yf1-mini a .yf1-chev { width: 12px; height: 12px; flex-basis: 12px; margin-left: -3px; }
.yf11 .yf1-mini a:hover .yf1-chev, .yf11 .yf1-mini a:focus-visible .yf1-chev, .yf11 .yf1-mini a.is-hint .yf1-chev { transform: translateX(2px); color: var(--yf-ink); }
/* On the hover/hint wash the number needs the darker grey (4.45:1 → 5.0:1). */
.yf11 .yf1-mini a:hover .yf1-mini-n, .yf11 .yf1-mini a.is-hint .yf1-mini-n { color: var(--yf-slate); }
.yf11 .yf1-mini .yf12-mini-off { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 6px 10px; white-space: nowrap; font-size: 13.5px; font-weight: 500; color: var(--yf-ter); cursor: default; }
.yf11 .yf1-mini .yf12-mini-off.is-in { color: var(--yf-ink); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .yf11 .yf12-ch-link.yf11-going .yf11-arrow { transform: none; }
}
