/* =============================================================================
   Your Future — YF1.1 "Horizon": shared structure (approved YF1.2 production presentation).
   Geometry and behaviour both art directions share. The look lives in the art
   layer (yf11-art.css for the candidate; yf11-a.css / yf11-b.css for the two
   studies). Scoped to the route root once YF1.1 has mounted (.yf11-on).
   ============================================================================= */

.your-future-page .app-inner.yf1-on > .rt,
.your-future-page .app-inner.yf1-on > .pf-future-status,
.your-future-page .app-inner.yf1-on #your-future-assessments-link,
.your-future-page .app-inner.yf1-on .pf-pagehead-sub { display: none !important; }
body.pf-frame-v1.your-future-page .app-inner.pf-page.yf1-on { --pf-read-max: none; max-width: var(--pf-page-max, 1280px); }
@media (prefers-reduced-motion: reduce) { html:has(body.your-future-page) { scroll-behavior: auto; } }

.yf11 {
  --yf-navy: #081f47; --yf-navy-2: #12489e; --yf-ink: #16233f; --yf-body: #26334d; --yf-slate: #5d6b84; --yf-ter: #66748b;
  --yf-mist: #9aa7bb; --yf-faint: #c3cddb; --yf-brand: #1f6fd6; --yf-link: #1559b0; --yf-rule: #dfe4ec; --yf-soft: #edf0f5;
  --yf-wash: #f6f8fb; --yf-tint: #eaf2fd; --yf-amber: #8a5208; --yf-amber-bg: #fdf1df;
  --yf-ease: cubic-bezier(.16, 1, .3, 1); --yf-ease-io: cubic-bezier(.45, 0, .2, 1);
  /* the horizon's geometry, tuned by the art layer */
  --yf-label-row: 64px; --yf-track-row: 28px; --yf-track: 2px; --yf-track-now: 4px; --yf-node: 10px;
  color: var(--yf-ink);
  font-family: var(--pf-font, var(--font-application-ui, "IBM Plex Sans", system-ui, sans-serif));
  font-size: 15px; line-height: 1.55; font-variant-numeric: tabular-nums;
  container: yf1 / inline-size;
}
.yf11 *, .yf11 *::before, .yf11 *::after { box-sizing: border-box; }
.yf11 a { color: inherit; }
.yf11 :focus-visible { outline: 2px solid var(--yf-brand); outline-offset: 3px; border-radius: 4px; }
.yf11 .yf1-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.yf11 .yf1-chev { width: 16px; height: 16px; flex: 0 0 16px; color: var(--yf-mist); transition: transform 180ms var(--yf-ease), color 180ms; }
.yf11 .yf11-arrow { width: 20px; height: 16px; flex: none; transition: transform 200ms var(--yf-ease); }
.yf11 .yf1-short { display: none; }

/* ---------------------------------------------------------------- opening */

/* An editorial spread: the headline and its standfirst side by side, the
   horizon beneath them, then the student's own dates. One reading order on
   every width: who you are, where you are, what comes next. */
.yf11-open { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "line" "side"; align-items: start; }
.yf11-open-main { grid-area: main; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; align-items: end; }
.yf11-open-main > .yf1-chip { grid-column: 1 / -1; }
.yf11-open-main > .yf11-head { grid-column: 1; }
.yf11-open-main > .yf11-deck { grid-column: 2; }
.yf11-open-main > .yf1-hero-note, .yf11-open-main > .yf1-proposal { grid-column: 1 / -1; }
.yf11-open-side { grid-area: side; min-width: 0; }
.yf11-horizon { grid-area: line; min-width: 0; }
@container yf1 (max-width: 899px) {
  .yf11-open-main { grid-template-columns: minmax(0, 1fr); }
  .yf11-open-main > .yf11-deck { grid-column: 1; }
}
.yf11 .yf1-hero-note { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-size: 14px; color: var(--yf-slate); }
.yf11 .yf1-hero-note.is-warn { color: var(--yf-amber); }
.yf11 .yf1-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--yf-mist); animation: yf11-pulse 1.4s ease-in-out infinite; }
@keyframes yf11-pulse { 50% { opacity: .35; } }
.yf11 .yf1-proposal { margin: 16px 0 0; max-width: 64ch; padding: 10px 14px; border: 1px dashed #c69a4a; border-radius: 8px; background: #fdf8ee; color: #6b4a10; font-size: 13.5px; }

/* Coming up (rows) — shared mechanics; the art layer sets the look. */
.yf11 .yf1-rows, .yf11 .yf1-ahead, .yf11 .yf1-await-list, .yf11 .yf11-index ol { list-style: none; margin: 0; padding: 0; }
.yf11 .yf1-row > a { display: grid; grid-template-columns: 104px minmax(0, 1fr) 16px; align-items: center; gap: 2px 16px; text-decoration: none; }
.yf11 .yf1-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.yf11 .yf1-when { display: flex; flex-direction: column; gap: 1px; }
.yf11 .yf1-wd-m { display: none; }
.yf11 .yf1-row-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.yf11 .yf1-awaiting summary { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; }
.yf11 .yf1-awaiting summary::-webkit-details-marker { display: none; }
.yf11 .yf1-awaiting summary .yf1-chev { transform: rotate(90deg); }
.yf11 .yf1-awaiting[open] summary .yf1-chev { transform: rotate(-90deg); }
.yf11 .yf1-awaiting[open] .yf1-await-list { animation: yf11-unfold 220ms var(--yf-ease) both; }
@keyframes yf11-unfold { from { opacity: 0; transform: translateY(-4px); } }
.yf11 .yf1-await-list a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; min-height: 44px; padding: 10px 0; text-decoration: none; }
.yf11 .yf1-ahead a, .yf11 .yf11-index a {
  display: grid; grid-template-columns: minmax(0, 1fr) 16px; column-gap: 14px; align-items: center; text-decoration: none; min-height: 56px;
}
.yf11 .yf1-ahead b { grid-column: 1; }
.yf11 .yf1-ahead span { grid-column: 1; }
.yf11 .yf1-ahead .yf1-chev { grid-column: 2; grid-row: 1 / span 2; }
.yf11 .yf11-index a { grid-template-columns: 36px minmax(0, 1fr) auto 16px; }

/* ---------------------------------------------------------------- horizon */

.yf11 .yf1-linewrap { container: yfline / inline-size; }
.yf11 .yf1-line { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; isolation: isolate; }
.yf11 .yf1-st { position: relative; flex: var(--span, 1) 1 0; min-width: 0; display: grid; grid-template-rows: var(--yf-label-row) var(--yf-track-row) auto; align-content: start; }
.yf11 .yf1-st > * { grid-column: 1; }
.yf11 .yf1-st.is-end { flex: 0 0 auto; min-width: 104px; }
.yf11 .yf1-st-label { grid-row: 1; align-self: end; display: flex; flex-direction: column; gap: 2px; padding: 0 14px 10px 0; text-decoration: none; min-width: 0; }
.yf11 .yf1-st-year, .yf11 .yf1-st-name { white-space: nowrap; }
.yf11 .yf1-st-name { overflow: hidden; text-overflow: ellipsis; }
.yf11 .yf1-track { grid-row: 2; position: relative; display: block; height: var(--yf-track-row); }
.yf11 .yf1-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: var(--yf-track); transform: translateY(-50%); border-radius: 99px; background: var(--yf-faint); }
.yf11 .yf1-st.is-past .yf1-track::before { background: var(--yf-navy); }
.yf11 .yf1-st.is-now .yf1-track::before {
  height: var(--yf-track-now);
  background: linear-gradient(to right, var(--yf-navy) 0 var(--today, 0%), var(--yf-faint) var(--today, 0%) 100%);
}
.yf11 .yf1-st.is-transition .yf1-track::before { height: 0; background: none; border-radius: 0; border-top: var(--yf-track) dashed var(--yf-mist); }
.yf11 .yf1-st.is-end .yf1-track::before { display: none; }
.yf11 .yf1-node { position: absolute; left: 0; top: 50%; width: var(--yf-node); height: var(--yf-node); transform: translate(-1px, -50%); border-radius: 50%; background: #fff; border: 2px solid var(--yf-mist); }
.yf11 .yf1-today { position: absolute; left: var(--today, 0%); top: 50%; width: 0; height: 0; z-index: 2; }
.yf11 .yf1-ticks { grid-row: 3; position: relative; list-style: none; margin: 0; padding: 0; min-height: 52px; }
.yf11 .yf1-ticks.has-row2 { min-height: 96px; }
.yf11 .yf1-tick { position: absolute; top: 0; left: var(--at, 0%); }
.yf11 .yf1-tick a { position: relative; display: flex; flex-direction: column; gap: 1px; margin-left: -5px; padding: 10px 10px 6px 5px; text-decoration: none; white-space: nowrap; border-radius: 4px; }
.yf11 .yf1-tick.is-row2 a { padding-top: 54px; }
.yf11 .yf1-resolved .yf1-today { animation: yf11-fade 200ms var(--yf-ease) both; }
@keyframes yf11-fade { from { opacity: 0; } }

@container yfline (max-width: 680px) {
  .yf11 .yf1-st { grid-template-rows: 40px 26px auto; }
  .yf11 .yf1-st-name, .yf11 .yf1-ticks, .yf11 .yf1-long { display: none; }
  .yf11 .yf1-short { display: inline; }
  .yf11 .yf1-st-label { padding: 0 6px 8px 0; }
  .yf11 .yf1-line.is-years .yf1-st { flex-grow: 1; }
  .yf11 .yf1-line.is-years .yf1-st.is-now { flex-grow: 1.9; }
  .yf11 .yf1-line.is-years .yf1-st.is-transition { flex-grow: .55; }
  .yf11 .yf1-line .yf1-st.is-end { flex: 0 0 auto; min-width: 24px; }
  /* The transition keeps its dashed stretch; its words would collide with F1. */
  .yf11 .yf1-st.is-transition .yf1-st-label { visibility: hidden; }
  .yf11 .yf1-line a.yf1-st-label { grid-row: 1 / span 2; align-self: stretch; justify-content: flex-end; padding-bottom: 34px; position: relative; z-index: 1; }
  .yf11 .yf1-line.is-stages .yf1-st { grid-template-rows: 34px 26px 34px; }
  .yf11 .yf1-line.is-stages .yf1-st:nth-child(even) .yf1-st-label { grid-row: 3; align-self: start; padding: 6px 0 0; }
  .yf11 .yf1-line.is-stages .yf1-st:nth-child(even) a.yf1-st-label { grid-row: 2 / span 2; padding-top: 32px; padding-bottom: 0; justify-content: flex-start; }
}

/* ---------------------------------------------------------------- chapters */

.yf11 .yf1-ch { position: relative; display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); column-gap: 48px; }
.yf11 .yf1-ch-head { align-self: start; position: sticky; top: 132px; min-width: 0; }
.yf11 .yf11-ch-main { min-width: 0; }
.yf11 .yf1-ch-title { outline: none; }
.yf11 .yf1-ch-title:focus-visible { outline: 2px solid var(--yf-brand); outline-offset: 6px; }
.yf11 .yf1-ch::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: var(--yf-brand); transform: scaleX(0); transform-origin: left center; opacity: 0; pointer-events: none; }
.yf11 .yf1-ch.yf1-arrive::before { animation: yf11-draw 1100ms var(--yf-ease) both; }
.yf11 .yf1-ch.yf1-arrive .yf1-ch-title, .yf11 .yf1-ch.yf1-arrive .yf1-ch-n { animation: yf11-arrive 420ms var(--yf-ease) both; }
@keyframes yf11-draw { 0% { transform: scaleX(0); opacity: 1; } 30% { transform: scaleX(1); opacity: 1; } 75% { opacity: 1; transform: scaleX(1); } 100% { opacity: 0; transform: scaleX(1); } }
@keyframes yf11-arrive { from { opacity: .35; transform: translateY(8px); } }
.yf11 .yf11-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; }
.yf11 .yf1-toc { list-style: none; margin: 0; padding: 0; }
.yf11 .yf1-toc a { display: grid; grid-template-columns: minmax(0, 1fr) 16px; column-gap: 12px; align-items: center; text-decoration: none; min-height: 56px; }
.yf11 .yf1-toc.is-numbered a { grid-template-columns: 30px minmax(0, 1fr) 16px; }
.yf11 .yf1-toc-t, .yf11 .yf1-toc-s { grid-column: -3 / -2; }
.yf11 .yf11-toc-n { grid-row: 1 / span 2; align-self: start; padding-top: 2px; }
.yf11 .yf1-toc .yf1-chev { grid-column: -2; grid-row: 1 / span 2; }
.yf11 .yf1-exp-photos { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.yf11 .yf1-photo { position: relative; margin: 0; min-width: 0; }
.yf11 .yf1-photo img { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--tone, #dfe4ec); }
.yf11 .yf11-assess { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.yf11 .yf11-assess a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; position: relative; }
.yf11 .yf1-fslist { list-style: none; margin: 0; padding: 0; }
.yf11 .yf11-ribbon { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.yf11 .yf11-ribbon a { display: flex; flex-direction: column; gap: 3px; text-decoration: none; position: relative; }
.yf11 .yf11-route-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); gap: 32px; align-items: start; }
@container yf1 (max-width: 899px) {
  .yf11 .yf1-ch { grid-template-columns: minmax(0, 1fr); }
  .yf11 .yf1-ch-head { position: static; }
  .yf11 .yf11-cols, .yf11 .yf11-route-grid { grid-template-columns: minmax(0, 1fr); }
  .yf11 .yf11-ribbon { grid-template-columns: minmax(0, 1fr); }
  .yf11 .yf11-assess { grid-template-columns: minmax(0, 1fr); }
}

/* Contents bar: sticky on wide screens; one indicator slides to the chapter in view. */
.yf11 .yf1-mini { position: relative; display: flex; align-items: center; gap: 18px; z-index: 3; }
.yf11 .yf1-mini ol { display: flex; flex-wrap: wrap; gap: 2px; list-style: none; margin: 0; padding: 0; }
.yf11 .yf1-mini a { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 6px 10px; text-decoration: none; white-space: nowrap; transition: color 180ms, background-color 180ms; }
.yf11 .yf11-ind { position: absolute; left: 0; width: 100px; transform-origin: left center; opacity: 0; pointer-events: none; transition: transform 320ms var(--yf-ease-io), opacity 200ms; }
.yf11 .yf11-ind.is-on { opacity: 1; }
@container yf1 (min-width: 900px) { .yf11 .yf1-mini { position: sticky; top: 64px; } .yf11 .yf1-ch { scroll-margin-top: 124px; } }
@container yf1 (max-width: 899px) { .yf11 .yf1-mini { display: none; } }

/* Departure cue: the pressed link answers at once; navigation is not delayed. */
.yf11 .yf11-going .yf1-chev, .yf11 .yf11-going .yf11-arrow { transform: translateX(4px); }

@media (max-width: 768px) {
  .yf11 .yf1-ch { scroll-margin-top: 76px; }
  .yf11 .yf1-wd { display: none; }
  .yf11 .yf1-wd-m { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  .yf11 *, .yf11 *::before, .yf11 *::after { animation-duration: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0ms !important; }
  .yf11 .yf1-ch.yf1-arrive::before, .yf11 .yf1-ch.yf1-arrive .yf1-ch-title, .yf11 .yf1-ch.yf1-arrive .yf1-ch-n { animation: none; }
}
