/* ==========================================================================
   Blok „Przygotowanie → raport (nitki)” (.au-flow): dane wchodzą nitkami do DTS,
   rozdziały raportu z niego wychodzą (ścieżki rysuje view.js); trzy drogi po audycie.
   Źródło (prototyp): assets/css/podstrony/audyt.css („Przygotowanie → raport”, „trzy drogi”).
   ========================================================================== */

/* kafelek ikony (wspólny drobiazg modułów Audytu – ten sam w kilku blokach) */
.au-tile.au-tile--navy { background: var(--navy-900); color: var(--orange-400); }

.au-flow { padding: var(--section-y) 0; background: var(--paper-2); }
.au-flow__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(6.5rem, 11vw, 9.5rem) minmax(0, 1.12fr);
  grid-template-rows: auto auto; row-gap: clamp(1.5rem, 2.5vw, 2rem);
}
.au-flow__col { display: grid; grid-template-rows: subgrid; grid-row: 1 / span 2; }
.au-flow__in { grid-column: 1; }
.au-flow__out { grid-column: 3; }
/* both heads start level; the shorter lead (the one ending in a colon) sinks onto its list */
.au-flow__head { display: flex; flex-direction: column; align-items: flex-start; }
.au-flow__head > .eyebrow.eyebrow { margin-bottom: 1.25rem; }
.au-flow__head h2 { margin: 0 0 .9rem; max-width: 15ch; }
.au-flow__lead { margin: auto 0 0; color: var(--muted); font-size: 1.0625rem; max-width: 52ch; }

.au-prep { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.au-prep li {
  position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: .85rem;
  min-height: 50px; padding: .4rem 1.5rem .4rem .45rem; border-radius: 16px;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line);
  font-size: .9375rem; font-weight: 500; line-height: 1.4; color: var(--navy-900);
}
.au-prep li::first-letter { text-transform: uppercase; }
.au-prep__dot {
  position: absolute; right: -5px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 0 0 4px var(--orange-50);
}
.au-note {
  display: flex; align-items: center; gap: .85rem; margin: 1rem 0 0; padding: .9rem 1.1rem .9rem .9rem;
  border-radius: 18px; background: var(--orange-50); box-shadow: inset 0 0 0 1px var(--orange-100);
  font-size: .9375rem; font-weight: 500; line-height: 1.45; color: var(--navy-900);
}
.au-note__ico { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; }
.au-note__ico .icon { width: 1.1rem; height: 1.1rem; stroke-width: 2; }

.au-flow__link { grid-column: 2; grid-row: 2; position: relative; }
.au-flow__threads { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.au-flow__threads path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.au-flow__threads .track path { stroke: var(--orange-100); stroke-width: 2; }
.au-flow__threads .draw path { stroke: var(--orange); stroke-width: 2.5; transition: stroke-dashoffset 1s var(--ease); }
.au-flow__hub {
  position: absolute; left: 50%; top: 50%; z-index: 1; translate: -50% -50%;
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: #fff; box-shadow: inset 0 0 0 2.5px var(--orange), var(--shadow-float);
}
.au-flow__hub b { font-size: 1.25rem; font-weight: 700; line-height: 1; letter-spacing: -.03em; color: var(--navy-900); }
.au-flow__hub small { margin-top: .2rem; font-family: var(--font-ui); font-size: .75rem; font-weight: 500; color: var(--muted); }
[data-flow].is-armed .au-flow__hub { opacity: 0; transform: scale(.85); }
[data-flow].is-armed.is-on .au-flow__hub { opacity: 1; transform: none; transition: opacity .4s .75s, transform .6s var(--ease) .75s; }

.au-report {
  --px: clamp(1.2rem, 2.2vw, 1.75rem);
  position: relative; padding: 1.1rem var(--px) .5rem; border-radius: var(--radius-lg); background: #fff;
  box-shadow:
    inset 0 0 0 1px var(--line-strong),
    0 9px 0 -5px var(--paper-2), 0 9px 0 -4px var(--line-strong),
    0 18px 0 -10px var(--paper-2), 0 18px 0 -9px var(--line-strong),
    0 30px 50px -34px rgba(22, 42, 67, .45);
}
.au-report__top { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .85rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line-strong); }
.au-report__title { flex: 1 1 12rem; margin: 0; font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; color: var(--navy-900); }
.au-report__state {
  margin: 0;
  font-family: var(--font-ui); font-size: .6875rem; font-weight: 500; line-height: 1.2; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-2);
}
.au-report__toc { list-style: none; margin: 0; padding: 0; }
.au-report__toc li {
  position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: .9rem; align-items: center;
  min-height: 50px; padding: .4rem 0; border-top: 1px solid var(--line);
}
.au-report__toc li:first-child { border-top: 0; }
.au-report__n {
  grid-row: 1 / span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1.5px var(--navy-700); font-family: var(--font-ui); font-size: .8125rem; font-weight: 500; color: var(--navy-900);
}
.au-report__toc b { font-size: 1rem; font-weight: 600; line-height: 1.3; color: var(--navy-900); }
.au-report__toc li > span:last-child { font-size: .9375rem; line-height: 1.4; color: var(--muted); }
.au-report__dot {
  position: absolute; left: calc(-1 * var(--px) - 5px); top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 0 0 4px var(--orange-50);
}

/* three ways after the audit, drawn as little fleets (the home page's vocabulary) */
.au-ways {
  margin: clamp(2rem, 3.5vw, 2.75rem) 0 0; padding-top: clamp(1.5rem, 2.5vw, 1.75rem); border-top: 1px solid var(--line-strong);
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 1.5rem clamp(2rem, 4vw, 3.5rem); align-items: center;
}
.au-ways__list { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.75rem, 1.4vw, 1.125rem); }
.au-way {
  display: flex; align-items: center; gap: 1rem; padding: .85rem 1.05rem; border-radius: 18px;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line);
}
.au-fleet { flex: none; display: grid; grid-template-columns: repeat(2, 24px); gap: 5px; }
.au-fleet i, .au-ways__key i { width: 24px; height: 24px; border-radius: 8px; background: var(--navy-100); box-shadow: inset 0 0 0 1.5px #b3c3d6; }
.au-fleet i.is-new, .au-ways__key i.is-new { background: var(--orange); box-shadow: 0 6px 12px -8px rgba(236, 110, 40, .9); }
.au-way__text { font-size: 1rem; font-weight: 500; line-height: 1.4; color: var(--navy-900); text-wrap: pretty; }
.au-ways__close {
  margin: 0; font-size: clamp(1.25rem, 1.05rem + .7vw, 1.5rem); font-weight: 600; line-height: 1.3; letter-spacing: -.018em;
  color: var(--navy-900); text-wrap: balance;
}
.au-ways__key { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: .75rem 0 0; font-family: var(--font-ui); font-size: .8125rem; color: var(--muted); }
.au-ways__key span { display: inline-flex; align-items: center; gap: .5rem; }
.au-ways__key i { width: 14px; height: 14px; border-radius: 5px; }

/* --------------------------------------------------------------------------
   Responsywność
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .au-ways { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1100px) {
  .au-ways__list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .au-flow__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 0; }
  .au-flow__col { display: block; grid-row: auto; grid-column: 1; }
  .au-flow__body { margin-top: 1.5rem; }
  .au-flow__link { grid-column: 1; grid-row: auto; height: 150px; }
  .au-flow__threads { display: none; }
  .au-flow__link::before {
    content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2.5px; margin-left: -1.25px; border-radius: 2px; background: var(--orange);
  }
  .au-prep__dot, .au-report__dot { display: none; }
}
@media (max-width: 560px) {
  .au-way { padding: .9rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .au-flow__threads .draw path { transition: none; }
}
