/* "Mon parcours" / "My journey" — questionnaire and program, on top of summit.css */
.journey {
  padding-top: 48px; /* the Programme's .page-head, so the title sits at the same height */
  padding-bottom: 80px;
}

@media (max-width: 640px) {
  .journey { padding-top: 28px; }
}

.journey:focus { outline: none; }

.journey [hidden] { display: none !important; } /* .btn sets a display that would show hidden buttons */

.journey__card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-card);
  padding: 28px;
  min-width: 0; /* a fieldset would otherwise grow past 360 px */
}

.journey h1,
.journey h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.25;
  margin-bottom: 8px;
}

.journey h1,
.journey__result > h2 { /* the Programme's .page-head h1 */
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: inherit;
  color: var(--accent);
  margin-bottom: 12px;
}

.journey h1:focus,
.journey h2:focus { outline: none; }

.journey__hint {
  color: var(--muted);
  margin-bottom: 16px;
}

/* Welcome screen: title, text and button on the page's left edge, then the 3 blocks of the prototype */
.journey__lead { color: var(--muted); font-size: 1.05rem; max-width: 760px; margin: 0 0 24px; }

.journey__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}

.journey__feature { /* the prototype's dark block with a blue border */
  border: 2px solid #2f7f9f;
  border-radius: 24px;
  padding: 26px;
  background: linear-gradient(135deg, #12202e, #0a1020);
}

.journey__feature svg { display: block; color: #6dc5e3; margin-bottom: 14px; }

.journey .journey__feature h2 { color: #6dc5e3; font-size: 1.05rem; margin: 0; }

.journey__feature-title { color: #fff; font-size: 1.3rem; font-weight: 700; line-height: 1.3; margin: 10px 0 8px; }

.journey__feature p:last-child { color: #a9b4c9; font-size: 0.95rem; line-height: 1.55; margin: 0; }

@media (max-width: 760px) {
  .journey__features { grid-template-columns: 1fr; }
}

/* Questions: the site's card, the step count after the question */
fieldset.journey__card { border-radius: 8px; padding: 34px 38px 30px; }

fieldset.journey__card legend { float: left; width: 100%; } /* the heading inside the block, not on its border */

fieldset.journey__card legend + * { clear: both; }

fieldset.journey__card h2 { color: var(--accent); font-weight: 800; }

.journey__step { color: var(--muted); font-size: 1.1rem; font-weight: 600; white-space: nowrap; }

.journey__actions [disabled] { visibility: hidden; } /* shown once an answer is picked; keeps its place so "Back" does not move */

@media (max-width: 600px) {
  fieldset.journey__card { padding: 24px 20px; }
}

.journey__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.journey__choice { /* the Programme's filter button, .filter-dropdown__btn */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.journey__choice:hover,
.journey__choice[aria-pressed="true"],
.journey__choice:has(:checked) {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.journey__choice[aria-pressed="true"],
.journey__choice:has(:checked) { color: var(--accent); }

.journey__choice input { /* a real checkbox, drawn in the Summit colours */
  appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--muted);
  border-radius: 6px;
  background: transparent center / 14px no-repeat;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.journey__choice:hover input { border-color: var(--accent); }

.journey__choice input:checked {
  border-color: var(--accent);
  background-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23050816' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

@media (forced-colors: active) { /* Windows high contrast: back to the system checkbox */
  .journey__choice input { appearance: auto; }
}

.journey button:focus-visible,
.journey__choice:has(:focus-visible),
.journey textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.journey textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  resize: vertical;
}

.journey__count {
  margin-top: 6px;
  font-size: 0.9rem;
}

.journey__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.journey__label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.journey__title {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.journey__open { /* a session title that opens its details */
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.journey__open:hover { color: var(--accent); text-decoration: underline; }

.journey__small { padding: 6px 14px; font-size: 0.85rem; }

/* Result: the hero */
.journey__result h3 { font-size: 1.35rem; margin: 40px 0 8px; }

.journey__hero {
  border: 2px solid var(--accent);
  border-radius: 8px;
  padding: 32px;
  background: linear-gradient(135deg, #12202e, #0a1020);
}

.journey__message {
  margin: 0 0 12px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.33);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.13);
  font-size: 0.9rem;
}

.journey__recap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 700;
}

.journey__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
  list-style: none;
}

.journey__chips li {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 8, 22, 0.6);
  font-size: 0.9rem;
}

.journey__hero .journey__chips li { /* the answers, outlined in the accent colour */
  padding: 4px 12px;
  border: 2px solid var(--accent);
  background: none;
  color: var(--accent);
  font-size: 0.8rem;
}

.journey__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0 0;
  list-style: none;
  text-align: center;
}

.journey__stats li { /* blocks, as in the prototype */
  padding: 26px;
  border-radius: 8px;
  background: #132e49;
  color: #e3eaf7;
  font-size: 1.0625rem;
}

.journey__stats b { display: block; font-size: 2.875rem; line-height: 1.2; color: #fff; }

/* Result: the timeline */
.journey__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 40px; /* on the row, so the button centres on the title */
}

.journey__head h3 { margin: 0; }

@media screen and (max-width: 640px) { /* phones: the figures stay side by side, titles keep their button beside them */
  .journey__stats { gap: 8px; }
  .journey__stats li { padding: 12px 4px; font-size: 0.8rem; }
  .journey__stats b { font-size: 1.35rem; white-space: nowrap; }
  fieldset.journey__card h2 { font-size: 1.15rem; }
  .journey__hero .journey__chips { gap: 6px; }
  .journey__hero .journey__chips li { padding: 2px 8px; font-size: 0.75rem; }
  .journey__recap,
  .journey__head { flex-wrap: nowrap; align-items: center; }
  .journey__recap { font-size: 0.9rem; }
  .journey__head h3 { font-size: 1.05rem; }
  .journey__recap .journey__small,
  .journey__head .journey__small { flex: none; padding: 4px 8px; font-size: 0.7rem; }
}

.journey__row {
  display: grid;
  grid-template-columns: 8rem 1fr; /* one width for every row, wide enough for "13h30 – 14h30" on one line */
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.journey__time { color: var(--accent); font-weight: 700; white-space: nowrap; }
.journey__time:lang(en) { font-size: 0.85rem; } /* "1:30 p.m. – 2:30 p.m." fits the 8rem column */

.journey__picks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.journey__cocktail,
.journey__stand {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-card);
  padding: 16px;
}

.journey__first,
.journey__alt { /* the Programme's session card, in the prototype's colours */
  gap: 8px;
  min-height: 0;
  padding: 18px 22px;
  border: 2px solid var(--accent);
}

.journey__first { background: var(--summit-highlight-grad); } /* the keynote's */

.journey__first .journey__label { color: var(--accent); }

.journey__first .session-card__title { font-size: 1.25rem; }

.journey__first .session-card__company { color: #dbe7fb; }

.journey__alt { align-items: flex-start; background: #0a0f22; }

.journey__alt .session-card__title { color: #fff; font-size: 1.0625rem; font-weight: 800; }

.journey__alt [data-swap] { margin-top: auto; }

.journey__alt .session-card__level + [data-swap] { margin-top: 0; }

/* The keynote: drawn by summit-keynote.js, styled by summit.css only, like on the Programme */
.journey .agenda-featured { margin: 16px 0; }

.journey__break { align-items: center; color: #8a9bb8; font-style: italic; }

.journey__break .journey__time { color: inherit; font-size: 0.8rem; font-style: normal; font-weight: 400; opacity: 0.55; }

.journey__break p + p { display: flex; align-items: center; gap: 14px; }

.journey__break p + p::before,
.journey__break p + p::after { content: ""; flex: 1; border-top: 1px solid #1f3550; }

.journey__empty {
  grid-column: 1 / -1;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
}

/* Result: the stands */
.journey__stands {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.journey__stand { display: grid; justify-items: center; gap: 8px; text-align: center; } /* the logo alone, its category below */

.journey__stand > * { margin: 0; }

.journey__logo { /* the sponsors block's artwork, made for the dark background */
  width: 140px; /* wide wordmarks stay legible */
  height: 56px;
  object-fit: contain;
}

.journey__initials {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #050816;
  font-weight: 700;
}

.journey__zones { /* the prototype's row of zone tiles, the recommended one first */
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px;
  border: 6px solid rgba(219, 233, 255, 0.4);
  border-radius: 22px;
}

.journey__zones > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.journey__zones > div:first-child {
  border: 2px solid var(--accent);
  background: var(--summit-highlight-grad); /* the first idea's and the keynote's */
}

.journey__zones h4 { order: 1; font-size: 0.8rem; font-weight: 400; opacity: 0.92; } /* the caption, under the name */

.journey__zones ul { list-style: none; font-size: 1.1rem; font-weight: 700; }

/* Result: keep the ideas, and more */
.journey__keep { margin: 40px 0 0; }

.journey__keep h3,
.journey__more h3 { margin-top: 0; }

.journey__more { margin-top: 40px; }

.journey__more h4 { margin: 16px 0 4px; }

/* Room after the time, "AI" in white: the room rules planned for the Programme, same class names; drop them here once summit.css has them */
.session-room-sep { margin: 0 0.6em; font-weight: 400; color: var(--muted); }

.session-room { font-weight: 600; }

.session-room__ai { color: #fff; }

/* Session details: the Programme popup (.speaker-modal) on a native <dialog>; its content uses the .session-modal__* rules of summit.css */
.journey__dialog {
  margin: auto; /* summit.css resets margins, which pinned the dialog to the top left */
  width: min(920px, calc(100vw - 32px));
  max-width: none;
  max-height: min(90vh, 760px);
  padding: 28px 28px 24px;
  border: 2px solid var(--accent);
  border-radius: 12px;
  background: #0b1024;
  color: var(--text);
}

.journey__dialog::backdrop { background: rgba(2, 4, 12, 0.78); }

/* "Save as PDF": a one-page A4 programme, the only thing printed (D-T9) */
.journey__print { display: none; }

@media print {
  @page { size: A4; margin: 0; }

  body { background: #fff; }

  body > :not(main),
  main > :not(.journey__print) { display: none !important; }

  .journey.wrap { max-width: none; padding: 0; }

  .journey__print {
    --navy: #00185e;
    --blue: #0050d7;
    --sky: #7fd6ff;
    --ink: #3b4a66;
    --soft: #5a6b8c;
    --rule: #e3e9f4;
    --tint: #eef4ff;
    --edge: #cfdcf2;
    display: flex;
    flex-direction: column;
    min-height: 296mm; /* the footer at the bottom of the page, under 297 mm so no blank second page */
    font-family: 'Gotham Rounded', 'Source Sans 3', system-ui, sans-serif;
    font-size: 9.5pt;
    line-height: 1.4;
    color: var(--ink);
    background: #fff;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .journey__print img { display: block; width: 100%; height: 40mm; object-fit: cover; }

  .journey__print-body { padding: 5.5mm 16mm 4mm; }

  .journey__print h2,
  .journey__print h3 { color: var(--navy); font-weight: 700; line-height: 1.2; }

  .journey__print h2 { font-size: 20pt; margin: 1mm 0 2mm; }

  .journey__print h3 { font-size: 13pt; margin: 0 0 1mm; }

  .journey__print-kicker {
    font-size: 8pt;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue);
  }

  .journey__print-sub { color: var(--soft); font-size: 8.5pt; margin-bottom: 2.5mm; }

  .journey__print [data-part="info"] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 4mm 0;
    padding: 3mm 0;
    background: var(--tint);
    border-radius: 2mm;
  }

  .journey__print [data-part="info"] > div { padding: 0 5mm; }

  .journey__print [data-part="info"] > div + div { border-left: 1px solid var(--edge); }

  .journey__print dt { font-size: 7.5pt; text-transform: uppercase; letter-spacing: 0.06em; color: var(--soft); }

  .journey__print dd { font-weight: 700; color: var(--navy); }

  .journey__print [data-part="keynote"] {
    margin-bottom: 5mm;
    padding: 4mm 6mm;
    border-radius: 2mm;
    background: var(--navy);
    color: #c9d6f2;
  }

  .journey__print [data-part="keynote"] .journey__print-kicker { color: var(--sky); }

  .journey__print-keynote { margin: 1mm 0; font-size: 12pt; font-weight: 700; color: #fff; }

  .journey__print ol { list-style: none; margin-bottom: 5mm; }

  .journey__print ol > li {
    display: grid;
    grid-template-columns: 22mm 1fr;
    padding: 2mm 0;
    border-bottom: 1px solid var(--rule);
    break-inside: avoid;
  }

  .journey__print ol > li > p { font-size: 11pt; font-weight: 700; color: var(--blue); }

  .journey__print ol > li > div > p:first-child { font-size: 10pt; font-weight: 700; color: var(--navy); }

  .journey__print ol > li > div > p + p { font-size: 8.5pt; color: var(--soft); }

  .journey__print [data-print-zones] { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3mm; margin-bottom: 4mm; }

  .journey__print [data-print-zones] > p { /* no display here: the hidden attribute hides an empty tile */
    padding: 3mm 4mm;
    border: 1px solid var(--edge);
    border-radius: 2mm;
    break-inside: avoid;
  }

  .journey__print [data-print-zones] span { display: block; }

  .journey__print [data-print-zones] span:first-child { font-size: 7.5pt; text-transform: uppercase; letter-spacing: 0.06em; color: var(--soft); }

  .journey__print [data-print-zones] span:last-child { font-size: 10pt; font-weight: 700; color: var(--navy); }

  .journey__print [data-print-zones] > p:first-child { background: var(--blue); border-color: var(--blue); }

  .journey__print [data-print-zones] > p:first-child span { color: #fff; }

  .journey__print [data-print-zones] > p:last-child { background: var(--tint); }

  .journey__print [data-part="stands"] .journey__print-kicker { color: var(--soft); font-size: 7.5pt; }

  .journey__print [data-print-stands] { font-size: 10pt; font-weight: 700; color: var(--navy); }

  .journey__print [data-part="footer"] {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding: 4mm 16mm;
    background: var(--navy);
    color: #fff;
    font-size: 9pt;
  }

  .journey__print [data-part="footer"] a { color: var(--sky); }
}

@media screen and (max-width: 720px) {
  .journey__picks,
  .journey__stands { grid-template-columns: 1fr; }
  .journey__row { grid-template-columns: 1fr; gap: 8px; }
  .journey__zones { grid-auto-flow: row; }
}

@media (max-width: 480px) {
  .journey__card,
  .journey__hero,
  .journey__dialog { padding: 20px 16px; }
}
