/* The landing's « Comment ça marche » (#how, templates/public/_landing_how.html).
 *
 * Four steps on the left, read at a glance; on the right a scene that plays
 * them in turn: the library filling up, the same library searched by a person
 * or by an assistant, then e-mails and documents dropped into a Resolve
 * workspace that answers with a chronology and its advice.
 *
 * What is written here by default is each scene's last frame, which is what
 * shows without JavaScript and under reduced motion. landing_how.js adds
 * `is-live` (the steps switch the scene) and, when motion is welcome,
 * `is-moving`: only then do the rules that hold things back until their turn
 * apply. The drags themselves are Web Animations in landing_how.js, measured
 * on the page, so they land where the drop zone is at any width.
 *
 * Same family as the workspace window below it (landing_ws.css): white cards,
 * one navy accent, a quiet yellow for what is found, green for what is done.
 */

.l-how { background: linear-gradient(180deg, #FBFAF7 0%, #FFFFFF 70%); }
.l-how .l-section__head { margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }

.l-how__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr);
  gap: clamp(1.8rem, 4vw, 3.8rem);
  align-items: center;
}

/* ── The three steps ─────────────────────────────────────────────────── */
.l-how .l-how__steps {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.l-how__step {
  position: relative;
  display: flex;
  gap: 0.95rem;
  width: 100%;
  padding: 1rem 1.1rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--r-md, 16px);
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.l-how__step:hover { border-color: #DEDCD6; background: rgba(255, 255, 255, 0.75); }
.l-how__step.is-on {
  border-color: #DEDCD6;
  background: #FFFFFF;
  box-shadow: var(--sh-sm, 0 10px 24px -10px rgba(11, 20, 51, 0.18));
}
.l-how__step:focus-visible { outline: 2px solid var(--c-brand, #0B1F4D); outline-offset: 2px; }
.l-how__num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid #C0BEB5;
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--c-ink-soft, #3B4860);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.l-how__step.is-on .l-how__num { border-color: var(--c-brand, #0B1F4D); background: var(--c-brand, #0B1F4D); color: #FFFFFF; }
.l-how__txt { display: block; min-width: 0; }
.l-how__txt small {
  display: block;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink-muted, #959FB2);
}
.l-how__step.is-on .l-how__txt small { color: var(--c-brand, #0B1F4D); }
.l-how__txt strong {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--c-ink, #0B1433);
}
.l-how__desc {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--c-ink-soft, #3B4860);
}
/* How long the step has left, while the scene plays it. */
.l-how__bar {
  position: absolute;
  right: 1.1rem;
  bottom: 0.45rem;
  left: 3.85rem;
  height: 2px;
  border-radius: 2px;
  overflow: hidden;
}
.l-how__layout.is-moving .l-how__step.is-on .l-how__bar { background: #EEEDE8; }
.l-how__layout.is-moving .l-how__step.is-on .l-how__bar::after {
  content: "";
  display: block;
  height: 100%;
  background: var(--c-brand, #0B1F4D);
  transform-origin: left;
  animation: l-how-progress var(--how-turn, 9s) linear both;
}
@keyframes l-how-progress { from { transform: scaleX(0); } to { transform: none; } }

/* ── The stage ───────────────────────────────────────────────────────── */
/* Every scene in the same cell: the stage is as tall as the tallest, so the
   page does not move when the scene changes. */
.l-how__stage {
  position: relative;
  display: grid;
  min-width: 0;
}
.l-how__scene {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 11.5rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  /* As tall as the tallest scene, without spreading its own rows apart. */
  align-content: start;
  min-width: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}
.l-how__scene.is-on { visibility: visible; opacity: 1; transition: opacity 0.45s ease; }
.l-how__scene[data-l-how-scene="search"],
.l-how__scene[data-l-how-scene="workspace"] { grid-template-columns: minmax(0, 1fr); }

/* Where the files come from: a folder, a mailbox. */
.l-how__src {
  align-self: start;
  margin-top: 3.4rem;
  display: grid;
  gap: 0.45rem;
  padding: 0.8rem;
  border: 1px solid #DEDCD6;
  border-radius: 14px;
  background: #F7F6F2;
}
.l-how .l-how__src-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.2rem;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-ink-muted, #959FB2);
}
.l-how__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.5rem 0.6rem;
  border: 1px solid #DEDCD6;
  border-radius: 10px;
  background: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--c-ink, #0B1433);
  transition: opacity 0.35s ease, border-color 0.35s ease;
}
.l-how__item > i { flex: 0 0 auto; color: var(--c-brand, #0B1F4D); }
.l-how__item .fa-file-pdf { color: #C32324; }
.l-how__item .fa-file-word { color: #2B5DD7; }
.l-how__item > span {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.l-how__item--mail > span { white-space: normal; }
.l-how__item--mail b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.74rem; }
.l-how__item--mail > span { display: block; font-weight: 500; color: var(--c-ink-soft, #3B4860); }
/* Once taken, it stays where it was, dimmed: an e-mail dropped in Thesr is
   still in the mailbox. */
.l-how__item.is-taken { opacity: 0.45; border-style: dashed; }

/* The copy that travels with the pointer. */
.l-how__ghost {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  margin: 0;
  pointer-events: none;
  box-shadow: 0 16px 30px -12px rgba(11, 20, 51, 0.35);
}
.l-how__cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 6;
  font-size: 1.15rem;
  color: var(--c-ink, #0B1433);
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 1px 0 #FFFFFF) drop-shadow(0 2px 3px rgba(11, 20, 51, 0.35));
}

/* Which step is playing, above the scene on a phone. */
.l-how .l-how__now {
  display: none;
  grid-area: 1 / 1;
  align-self: start;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-ink-muted, #959FB2);
}
.l-how__now b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c-brand, #0B1F4D);
  font-family: var(--font-serif);
  font-size: 0.8rem;
  letter-spacing: 0;
  color: #FFFFFF;
}
.l-how__now [data-l-how-now] { color: var(--c-brand, #0B1F4D); }

/* The Thesr window. */
.l-how__win {
  min-width: 0;
  border: 1px solid #DEDCD6;
  border-radius: var(--r-md, 16px);
  background: #FFFFFF;
  box-shadow: var(--sh-md, 0 24px 48px -24px rgba(11, 20, 51, 0.32));
  overflow: hidden;
}
.l-how__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #F7F6F2;
}
.l-how__head-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #F3F7FF;
  color: var(--c-brand, #0B1F4D);
}
.l-how__head-title { min-width: 0; flex: 1 1 auto; line-height: 1.25; }
.l-how__head-title small {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink-muted, #959FB2);
}
.l-how__head-title b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.92rem;
  color: var(--c-ink, #0B1433);
}
.l-how__count { flex: 0 0 auto; font-size: 0.76rem; color: var(--c-ink-soft, #3B4860); }
.l-how__count b { font-variant-numeric: tabular-nums; color: var(--c-brand, #0B1F4D); }
.l-how__resolve {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #F3F7FF;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--c-brand, #0B1F4D);
}
.l-how__live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #169F65;
}
.l-how__body { padding: 0.9rem 1rem 1rem; }

/* Where things are dropped. */
.l-how__drop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.6rem;
  padding: 0.6rem 0.8rem;
  border: 1.5px dashed #C0BEB5;
  border-radius: 12px;
  background: #FBFAF7;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-ink-muted, #959FB2);
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}
.l-how__drop > i,
.l-how__drop-hint > i { color: #959FB2; }
.l-how__drop.is-over {
  border-color: var(--c-brand, #0B1F4D);
  background: #F3F7FF;
  transform: scale(1.015);
}
.l-how__drop--slim { justify-content: flex-start; flex-wrap: wrap; min-height: 3.1rem; }
.l-how__drop-hint { display: inline-flex; align-items: center; gap: 0.45rem; margin-right: 0.3rem; }
.l-how__landed { display: inline-flex; flex-wrap: wrap; gap: 0.35rem; }
.l-how__landed > span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid #E3EDFF;
  border-radius: 999px;
  background: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--c-ink, #0B1433);
}
.l-how__landed i { color: var(--c-brand, #0B1F4D); font-size: 0.68rem; }
.l-how__landed .fa-file-pdf { color: #C32324; }

/* The library's rows. */
.l-how .l-how__docs { margin: 0.75rem 0 0; padding: 0; list-style: none; }
.l-how__docs li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.2rem;
  border-bottom: 1px solid #F7F6F2;
  font-size: 0.82rem;
  color: var(--c-ink, #0B1433);
}
.l-how__docs li > i { width: 1rem; text-align: center; color: var(--c-brand, #0B1F4D); }
.l-how__docs .fa-file-pdf { color: #C32324; }
.l-how__docs .fa-file-word { color: #2B5DD7; }
.l-how__docs li > span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.l-how__state { flex: 0 0 auto; font-size: 0.72rem; font-style: normal; font-weight: 700; }
.l-how__state > span { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.12rem 0.5rem; border-radius: 999px; }
.l-how__state > span:first-child { display: none; background: #EEEDE8; color: var(--c-ink-soft, #3B4860); }
.l-how__state > span:last-child { background: #D3F5E0; color: #0E653F; }
.l-how__state i { font-size: 0.62rem; }
.l-how .l-how__cats { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.8rem 0 0; }
.l-how__cats span {
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: #F3F7FF;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--c-brand, #0B1F4D);
}

/* Searched two ways. */
.l-how__lanes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}
.l-how .l-how__who {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.6rem;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-ink-muted, #959FB2);
}
.l-how__who i { color: var(--c-brand, #0B1F4D); }
.l-how__or {
  align-self: center;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid #DEDCD6;
  border-radius: 50%;
  background: #FFFFFF;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--c-ink-soft, #3B4860);
}
.l-how .l-how__query {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.4rem;
  margin: 0 0 0.6rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid #C7DBFF;
  border-radius: 10px;
  background: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-ink, #0B1433);
}
.l-how__query > i { color: #959FB2; }
.l-how__caret { width: 1.5px; height: 1rem; margin-left: -0.35rem; background: var(--c-brand, #0B1F4D); opacity: 0; }
.l-how__query.is-typing .l-how__caret { opacity: 1; animation: l-how-blink 0.9s steps(2, start) infinite; }
@keyframes l-how-blink { to { visibility: hidden; } }
.l-how__hit {
  margin-bottom: 0.5rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid #EEEDE8;
  border-radius: 10px;
  background: #FBFAF7;
}
.l-how__hit b { display: block; font-size: 0.78rem; color: var(--c-ink, #0B1433); }
.l-how .l-how__hit p { margin: 0.25rem 0 0; font-size: 0.76rem; line-height: 1.5; color: var(--c-ink-soft, #3B4860); }
.l-how__hit mark { padding: 0 0.15rem; border-radius: 3px; background: #FFEEC3; color: inherit; }
.l-how .l-how__bubble {
  margin: 0 0 0.55rem;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  line-height: 1.5;
}
/* Colours with the section's weight: the page's own rule for <p> would win. */
.l-how .l-how__bubble--q { margin-left: 1.2rem; background: var(--c-brand, #0B1F4D); color: #FFFFFF; }
.l-how .l-how__bubble--a { border: 1px solid #EEEDE8; background: #FBFAF7; color: var(--c-ink, #0B1433); }
.l-how .l-how__bubble--a p { margin: 0; color: var(--c-ink, #0B1433); }
.l-how .l-how__cites { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.45rem; }
.l-how__cites span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: #F3F7FF;
  font-size: 0.7rem;
  font-weight: 650;
  color: var(--c-brand, #0B1F4D);
}
.l-how__cites i { font-size: 0.58rem; }
.l-how .l-how__tool {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.55rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--c-ink-soft, #3B4860);
}
.l-how__spin {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border: 2px solid #C0BEB5;
  border-top-color: var(--c-brand, #0B1F4D);
  border-radius: 50%;
}

/* Resolve's answer. */
.l-how .l-how__status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: #F7F6F2;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--c-ink-soft, #3B4860);
}
/* Each line that works says so while it runs, and what it found after;
   the last frame is the second. Both texts share one cell, as do the spinner
   and the tick, so the line keeps the same size from one to the other. */
.l-how__mark,
.l-how__say { display: grid; }
.l-how__mark > *,
.l-how__say > * { grid-area: 1 / 1; }
.l-how__mark { flex: 0 0 auto; place-items: center; width: 12px; }
.l-how__mark i { font-size: 0.72rem; color: #169F65; }
.l-how__say { flex: 1 1 auto; min-width: 0; }
.l-how__say > * { align-self: center; }
.l-how__spin,
.l-how__run { visibility: hidden; }
.l-how__status-done {
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: #FFEEC3;
  font-size: 0.72rem;
  font-weight: 700;
  color: #61490C;
}
.l-how .l-how__label {
  margin: 0.85rem 0 0.4rem;
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-ink-muted, #959FB2);
}
.l-how__rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  padding-top: 1rem;
}
.l-how__rail::before {
  content: "";
  position: absolute;
  top: 0.3rem;
  right: 0;
  left: 0;
  height: 2px;
  background: #C7DBFF;
  transform-origin: left;
}
.l-how__ev { position: relative; font-size: 0.72rem; line-height: 1.35; }
.l-how__ev::before {
  content: "";
  position: absolute;
  top: -1rem;
  left: 0;
  width: 10px;
  height: 10px;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  background: var(--c-brand, #0B1F4D);
  box-shadow: 0 0 0 1px #C0BEB5;
}
.l-how__ev time { display: block; font-weight: 700; color: var(--c-brand, #0B1F4D); }
.l-how__ev b { display: block; margin-top: 0.1rem; font-size: 0.76rem; color: var(--c-ink, #0B1433); }
.l-how__ev span { display: block; margin-top: 0.12rem; font-size: 0.68rem; color: var(--c-ink-muted, #959FB2); }
.l-how__ev--due::before { background: #C32324; box-shadow: 0 0 0 1px #FECD5C; }
.l-how__ev--due time { color: #C32324; }
.l-how__advice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin-top: 0.85rem; }
.l-how__card {
  padding: 0.65rem 0.75rem;
  border: 1px solid #EEEDE8;
  border-radius: 12px;
  background: #FBFAF7;
}
.l-how .l-how__card p { margin: 0; font-size: 0.78rem; line-height: 1.45; color: var(--c-ink, #0B1433); }
.l-how .l-how__card .l-how__label { margin: 0 0 0.25rem; font-size: 0.66rem; color: var(--c-ink-muted, #959FB2); }
.l-how .l-how__verdict { position: relative; min-height: 1.6rem; margin-top: 0.5rem; }
.l-how__ask,
.l-how__ok {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}
.l-how__ask { background: #FFEEC3; color: #61490C; }
.l-how__ok { background: #D3F5E0; color: #0E653F; }
/* The last frame: the step is in the to-do. */
.l-how__verdict--todo .l-how__ask { opacity: 0; }

/* ── The motion, when it is welcome ──────────────────────────────────── */
.l-how__layout.is-moving [data-l-how-in] {
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.l-how__layout.is-moving [data-l-how-in]:not(.is-in) { opacity: 0; transform: translateY(6px); }
.l-how__layout.is-moving .is-resetting,
.l-how__layout.is-moving .is-resetting * { transition: none !important; }
/* Read, then indexed; synchronising, then synchronised. */
.l-how__layout.is-moving .l-how__docs li:not(.is-done) .l-how__state > span:first-child { display: inline-flex; }
.l-how__layout.is-moving .l-how__docs li:not(.is-done) .l-how__state > span:last-child { display: none; }
/* The assistant reads, then says what waits for a person. */
.l-how__layout.is-moving :not(.is-done) > .l-how__mark .l-how__spin,
.l-how__layout.is-moving :not(.is-done) > .l-how__say .l-how__run { visibility: visible; }
.l-how__layout.is-moving :not(.is-done) > .l-how__mark i,
.l-how__layout.is-moving :not(.is-done) > .l-how__say .l-how__end,
.l-how__layout.is-moving :not(.is-done) > .l-how__status-done { visibility: hidden; }
.l-how__layout.is-moving .l-how__spin { animation: l-how-spin 0.9s linear infinite; }
@keyframes l-how-spin { to { transform: rotate(360deg); } }
.l-how__layout.is-moving .l-how__live { animation: l-how-pulse 1.8s ease-in-out infinite; }
@keyframes l-how-pulse { 50% { box-shadow: 0 0 0 5px rgba(22, 159, 101, 0.16); } }
/* The chronology's line draws itself before its events arrive. */
.l-how__layout.is-moving .l-how__rail::before { transform: scaleX(0); transition: transform 0.9s ease-out; }
.l-how__layout.is-moving .l-how__rail.is-in::before { transform: none; }
/* The first step goes to the to-do once read. */
.l-how__layout.is-moving .l-how__card:not(.is-done) .l-how__ok { opacity: 0; }
.l-how__layout.is-moving .l-how__card:not(.is-done) .l-how__verdict .l-how__ask { opacity: 1; }

/* ── Narrower screens ────────────────────────────────────────────────── */
/* Below 1180px the scene needs the whole width: the steps go side by side
   above it. Two columns at 1024 left the window 390px wide - every line
   wrapped and the workspace's name was cut. */
@media (max-width: 1180px) {
  .l-how__layout { grid-template-columns: minmax(0, 1fr); }
  .l-how .l-how__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .l-how__step { flex-direction: column; gap: 0.6rem; }
  .l-how__bar { left: 1.1rem; }
  .l-how__stage { width: 100%; max-width: 860px; margin: 0 auto; }
}
@media (max-width: 760px) {
  .l-how .l-how__steps { grid-template-columns: minmax(0, 1fr); }
  .l-how__step { flex-direction: row; }
  .l-how__bar { left: 3.85rem; }
  /* The folder and the mailbox above the window: the drags go down. */
  .l-how__scene { grid-template-columns: minmax(0, 1fr); }
  .l-how__src { display: flex; flex-wrap: wrap; align-items: stretch; }
  .l-how .l-how__src-label { flex: 0 0 100%; }
  .l-how__item { flex: 1 1 9rem; }
  .l-how__lanes { grid-template-columns: minmax(0, 1fr); }
  .l-how__or { justify-self: center; }
  .l-how__rail { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.4rem; }
  .l-how__rail::before,
  .l-how__ev::before { display: none; }
  .l-how__advice { grid-template-columns: minmax(0, 1fr); }
  .l-how__count { display: none; }
  .l-how__head-title b { white-space: normal; }
  .l-how .l-how__now { display: flex; }
  /* Squeezed beside the reading line it broke into three; the cards below
     say « À relire » themselves. */
  .l-how .l-how__status-done { display: none; }
  .l-how__now ~ .l-how__scene { margin-top: 2.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .l-how__step,
  .l-how__num,
  .l-how__scene,
  .l-how__drop,
  .l-how__item { transition: none; }
}

/* ── Four steps, each with its words (18 October) ───────────────
   The card is the item now, not the button: the words sit under the button
   and belong to the same card. */
.l-how .l-how__steps > li {
  border: 1px solid transparent;
  border-radius: var(--r-md, 16px);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.l-how .l-how__steps > li.is-on {
  border-color: #DEDCD6;
  background: #FFFFFF;
  box-shadow: var(--sh-sm, 0 10px 24px -10px rgba(11, 20, 51, 0.18));
}
.l-how .l-how__steps > li:not(.is-on):hover { border-color: #DEDCD6; background: rgba(255, 255, 255, 0.75); }
.l-how .l-how__step,
.l-how .l-how__step:hover,
.l-how .l-how__step.is-on {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  align-items: center;
}
.l-how .l-how__txt small { text-transform: none; letter-spacing: 0.02em; font-size: 0.74rem; }
.l-how__more { padding: 0 1.1rem 1.1rem 3.85rem; }
.l-how .l-how__more p,
.l-how .l-how__more li {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--c-ink-soft, #3B4860);
}
.l-how .l-how__more ul { margin: 0.35rem 0 0; padding-left: 1.1rem; }
.l-how .l-how__more li { margin-top: 0.15rem; }
.l-how .l-how__more li b { color: var(--c-ink, #0B1433); font-weight: 650; }
.l-how__layout.is-live .l-how__steps > li:not(.is-on) .l-how__more { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .l-how__layout.is-live .l-how__steps > li.is-on .l-how__more { animation: l-how-more 0.35s ease both; }
}
@keyframes l-how-more { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* The workspace scene. */
.l-how__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin-top: 0.85rem; }
.l-how__grp {
  min-width: 0;
  padding: 0.65rem 0.75rem 0.7rem;
  border: 1px solid #EEEDE8;
  border-radius: 12px;
  background: #FBFAF7;
}
.l-how .l-how__grp .l-how__label { display: flex; align-items: center; gap: 0.4rem; margin: 0 0 0.4rem; }
.l-how__label i { color: var(--c-brand, #0B1F4D); font-size: 0.7rem; }
.l-how__chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.25rem;
  padding: 0.3rem 0.5rem;
  border: 1px solid #DEDCD6;
  border-radius: 8px;
  background: #FFFFFF;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--c-ink, #0B1433);
}
.l-how__chip i { flex: 0 0 auto; color: var(--c-brand, #0B1F4D); font-size: 0.7rem; }
.l-how__chip .fa-file-pdf { color: #C32324; }
.l-how__hint { display: block; margin-top: 0.3rem; font-size: 0.68rem; color: var(--c-ink-muted, #959FB2); }
.l-how__task {
  display: block;
  margin-top: 0.25rem;
  padding: 0.3rem 0.5rem;
  border: 1px solid #DEDCD6;
  border-radius: 8px;
  background: #FFFFFF;
  line-height: 1.3;
}
.l-how__task b { display: block; font-size: 0.74rem; color: var(--c-ink, #0B1433); }
.l-how__task em { display: block; margin-top: 0.1rem; font-size: 0.66rem; font-style: normal; color: var(--c-ink-muted, #959FB2); }
.l-how .l-how__note { display: flex; align-items: center; gap: 0.45rem; margin: 0.75rem 0 0; font-size: 0.74rem; color: var(--c-ink-soft, #3B4860); }
.l-how__note i { color: var(--c-brand, #0B1F4D); }
@media (max-width: 560px) {
  .l-how__grid { grid-template-columns: minmax(0, 1fr); }
  .l-how__more { padding-left: 1.1rem; }
}

/* What is not needed to follow the step is folded: the words stay on the page
   (and for the engines), the eye gets the lead. */
.l-how__rest { margin-top: 0.55rem; }
.l-how__rest > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--c-accent, #2B5DD7);
  list-style: none;
}
.l-how__rest > summary::-webkit-details-marker { display: none; }
.l-how__rest > summary::after { content: "+"; font-weight: 700; }
.l-how__rest[open] > summary::after { content: "\2212"; }
.l-how__rest > summary:focus-visible { outline: 2px solid var(--c-brand, #0B1F4D); outline-offset: 3px; border-radius: 4px; }
