/* The format page's first-time trail (wizard-trail.js): one choice a page, each a card with a live example. While it
   runs, the page's own controls step aside. */
.step[data-step="2"].trail-on :is(#mode-knob, .format-grid, #format-error, button.next[data-next]) { display: none; }
.format-trail { display: grid; gap: 12px; margin-top: 14px; }
.trail-choices { display: grid; gap: 10px; }
.format-trail[hidden] { display: none; }
.trail-head { display: grid; justify-items: start; gap: 8px; }
.trail-head h3 { margin: 0; font-size: 1.15rem; }
/* The format already chosen, over Wide or tall: a gold-rimmed name with the chosen card's tick. */
.trail-picked { display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  padding: 4px 12px 4px 8px; border: 1px solid var(--accent); border-radius: var(--r-pill); color: var(--ink); font-size: .85rem; font-weight: 700; }
.trail-picked::before { content: "\2713"; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold); color: #14100a; font-size: .65rem; font-weight: 900; }
/* A card: its example a thumbnail at the left, its name and one line beside it; selected, the format cards' gold rim
   and a gold tick (app-layout.css .format-card). */
.trail-card { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: stretch; gap: 0; padding: 0;
  overflow: hidden; text-align: left; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--surface);
  color: var(--ink); font: inherit; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.trail-card:not([aria-checked="true"]):hover { border-color: var(--muted); }   /* gold is the chosen card's alone */
.trail-card[aria-checked="true"] { border-color: var(--accent);
  background: linear-gradient(135deg, rgba(240, 177, 85, .12), rgba(141, 123, 245, .07)); box-shadow: 0 0 0 1px rgba(240, 177, 85, .3); }
.trail-check { position: absolute; top: 7px; right: 7px; width: 19px; height: 19px; border-radius: 50%; border: 1.5px solid var(--line-strong); }
.trail-card[aria-checked="true"] .trail-check { border-color: var(--gold); background: var(--gold); }
.trail-card[aria-checked="true"] .trail-check::after { content: "\2713"; display: grid; place-items: center; height: 100%;
  color: #14100a; font-size: .8rem; font-weight: 900; }
.trail-badge { position: absolute; top: 5px; left: 5px; z-index: 2; padding: 1px 6px; border-radius: var(--r-pill);
  background: rgba(10, 10, 14, .72); color: #fff; font-size: .58rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.trail-words { display: grid; align-content: center; gap: 2px; padding: 8px 28px 8px 12px; min-width: 0; }
.trail-words strong { font-size: 1rem; line-height: 1.25; }
.trail-body { color: var(--ink-dim); font-size: .84rem; line-height: 1.3; }
.trail-continue { justify-self: stretch; margin-top: 4px; }
.trail-all { justify-self: center; min-height: 44px; padding: 0 16px; border: 0; background: transparent; color: var(--muted);
  font: inherit; font-size: .88rem; font-weight: 600; text-decoration: underline; cursor: pointer; }

.trail-example { position: relative; height: 100%; min-height: 82px; overflow: hidden; background: #0b0b0f; }
/* In a card the example is placed, not laid out: its percentage height made one card's row taller than the others. */
.trail-card > .trail-example { position: absolute; top: 0; bottom: 0; left: 0; width: 92px; height: auto; min-height: 0; }
.trail-card > .trail-words { grid-column: 2; min-height: 84px; }
.trail-card:has(.shape) > .trail-words { min-height: 100px; }   /* Wide or tall keeps its room: two cards, not three */
.trail-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.trail-frame { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.trail-frame.on { opacity: 1; }
.trail-example.film img.trail-frame.on { animation: trail-zoom 3.6s ease-out both; }
@keyframes trail-zoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.trail-dayphoto img { animation: trail-zoom 4s ease-out both; }
.trail-day-tag { position: absolute; left: 6px; bottom: 6px; padding: 1px 7px 2px; border-radius: 6px; background: rgba(10, 10, 14, .55);
  font-family: "Fraunces", Georgia, serif; font-size: .9rem; color: #f4f1ea; letter-spacing: .02em; }
.trail-example.dump img.cut { animation: trail-punch .15s ease-out; }
@keyframes trail-punch { from { transform: scale(1.07); } to { transform: scale(1); } }
.trail-beat { position: absolute; right: 8px; bottom: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold);
  animation: trail-beat .3s ease-out infinite; }
@keyframes trail-beat { from { transform: scale(1.6); opacity: 1; } to { transform: scale(1); opacity: .5; } }
.trail-rows { position: absolute; inset: 0 0 16px; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 2px; padding: 4px;
  overflow: hidden;
  background: var(--surface-2); }
.trail-rows .trail-cell { position: relative; height: 13px; border-radius: 2px; overflow: visible; opacity: .45; }
.trail-rows .trail-cell img { height: 100%; width: auto; display: block; border-radius: 3px; }
.trail-rows .trail-cell.picked { opacity: 1; outline: 1.5px solid var(--gold); outline-offset: 1px; }
.trail-rows .trail-cell.picked::after { display: none; }
.trail-map { display: grid; place-items: center; background: #e9e2d0; }
.trail-map svg { width: 70%; height: auto; }
.trail-map path { fill: none; stroke: #c98a2e; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 220; stroke-dashoffset: 220; }
.trail-map.on path { animation: trail-route 1.6s ease-out forwards; }
@keyframes trail-route { to { stroke-dashoffset: 0; } }
.trail-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; padding: 3px; }
.trail-cell { position: relative; min-width: 0; overflow: hidden; border-radius: 6px; opacity: .35; transition: opacity .4s ease; }
.trail-cell.picked { opacity: 1; outline: 2px solid var(--gold); outline-offset: -2px; }
.trail-cell.picked::after { content: "\2713"; position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 5px;
  display: grid; place-items: center; background: var(--gold); color: #14100a; font-size: .8rem; font-weight: 900; }
.trail-chip { position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%); white-space: nowrap; z-index: 2; padding: 1px 6px; border-radius: var(--r-pill);
  background: var(--gold); color: #14100a; font-size: .58rem; font-weight: 800; }
.trail-example.shape { display: grid; place-items: center; background: var(--surface-2); }
.trail-example.shape img { position: static; object-fit: cover; border-radius: 10px; box-shadow: 0 8px 20px rgba(0, 0, 0, .35); }
.trail-example.shape.landscape img { width: 84%; height: auto; aspect-ratio: 16 / 9; }
.trail-example.shape.portrait img { height: 84px; width: auto; aspect-ratio: 9 / 16; }   /* a % height has no box to resolve in */
@media (prefers-reduced-motion: reduce) { .trail-frame, .trail-cell, .trail-card { transition: none; } .trail-example * { animation: none !important; } }
