/* EPCIMA PMT · feel.css (Rev J.9) · click feedback, one set of tokens for the landing and the module pages.
   Spec: reports/Satisfying click feedback specs. Press paints on pointer-down (:active), the action runs on click.
   Only transform and opacity move. Reduced motion keeps colour feedback and drops scale and travel. */
:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-enter: cubic-bezier(0.05, 0.7, 0.1, 1);
  --ease-std: cubic-bezier(0.2, 0, 0, 1);
  --ease-zoom: cubic-bezier(0.2, 0, 0.2, 1);
}
html { -webkit-tap-highlight-color: transparent; }
a, button, summary, [role="button"], .mod, .shot.is-ready { touch-action: manipulation; }

/* ── press: buttons 0.97, cards and tiles 0.985, text links none ── */
.btn { transition-property: scale, background-color, border-color, color, box-shadow; transition-duration: .16s; transition-timing-function: var(--ease-out); }
/* scale, not transform: the magnetic hover on primary buttons owns transform */
.btn:active { scale: 0.97; transform: none; transition-duration: .1s; }
.mod { transition-property: transform, box-shadow; transition-duration: .16s; transition-timing-function: var(--ease-out); }
.mod:active { transform: scale(0.985); transition-duration: .1s; }
.mod:active > a { background: rgba(14, 31, 61, 0.04); }
.portal:active { transform: scale(0.985); transition-duration: .1s; }
.shot.is-ready:active { scale: 0.985; transition-duration: .1s; }
.ui__kpi--hot:active { transform: scale(0.985); transition-duration: .08s; }
.ui__tbl tr[role="button"]:active td { background: rgb(255, 236, 220); transition-duration: 0s; }
.drill__lv button { transition-property: background-color, color; transition-duration: .15s; }
.drill__lv button:active { background: var(--paper-2); }
.levels--hero .drill__lv button:active { background: rgba(255, 255, 255, 0.1); }
.nav__links a:active { color: #fff; opacity: .8; }
.fl__step i { transition-duration: .18s; transition-timing-function: var(--ease-out); }
.fl__step:active i { transform: scale(0.94); transition-duration: .08s; }
.fl__step.is-flash i { box-shadow: 0 0 0 8px rgba(245, 130, 42, 0.28); }
.tourbtn:active .tourbtn__play, .fl__replay:active, .film__replay:active { transform: scale(0.97); }

/* ── module tiles: hover lift stays small and fast, the open tile keeps its ring ── */
@media (hover: hover) and (pointer: fine) {
  .mod:hover { transform: translateY(-2px); transition-duration: .2s; }
  .mod:hover:active { transform: translateY(-1px) scale(0.985); }
}
.mods__wrap { transition-duration: .32s, .32s; transition-timing-function: var(--ease-out), var(--ease-out); }
.mods__panel-in { transition-duration: .26s; transition-timing-function: var(--ease-enter); }

/* ── drill levels: shared axis, in 240 ms, out 150 ms ── */
.ui__view { transform: translateX(20px); transition: opacity .15s var(--ease-out), transform .15s var(--ease-out); }
.ui__view.is-on { transition: opacity .24s var(--ease-enter) .05s, transform .24s var(--ease-enter) .05s; }
.drill.is-back .ui__view { transform: translateX(-20px); }

/* ── flow rails on module pages: hover, press, current ── */
.rail__step { transition-property: box-shadow, opacity, background-color, border-color, transform; transition-duration: .18s; transition-timing-function: var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .rail__step:hover { border-color: var(--orange); }
  .rail__step:hover b { color: var(--ink); }
}
.rail__step:has(.rail__hit:active) { transform: scale(0.97); transition-duration: .08s; }
.rail__now { min-height: 1.6em; }

/* ── lightbox and tour dialog: the backdrop fades with the content ── */
.lb[open] { animation: none; }
.lb::backdrop, .tour::backdrop { transition: opacity .2s var(--ease-out); }
.lb.is-out::backdrop, .tour.is-out::backdrop { opacity: 0; }
.lb[open]::backdrop, .tour[open]::backdrop { animation: feelFade .22s var(--ease-out); }
.lb__fig img { transform-origin: 0 0; }
.tour[open] .tour__box { animation: feelDialog .24s var(--ease-enter); }
@keyframes feelFade { from { opacity: 0; } }
@keyframes feelDialog { from { opacity: 0; transform: scale(0.96); } }

@media (prefers-reduced-motion: reduce) {
  .btn:active { scale: none; }
  .mod:active, .mod:hover, .portal:active, .ui__kpi--hot:active, .fl__step:active i, .rail__step:has(.rail__hit:active), .tourbtn:active .tourbtn__play { transform: none; }
  .shot.is-ready:active { scale: none; }
  .ui__view, .drill.is-back .ui__view { transform: none; }
  .tour[open] .tour__box { animation: feelFade .15s linear; }
}
/* J10: the vendor portal link inside the E-Procurement panel and under the flow */
.mods__sub { justify-self: start; display: inline-flex; align-items: center; min-height: 40px; color: var(--orange-hi); font-weight: 600; text-decoration: none; }
.mods__sub:hover { color: #fff; }
.flow__more + .flow__more { margin-left: 22px; }
.mods__sub[hidden] { display: none; }
/* J11: panel close sits above the animated title and gets a 40 px target; the flow card label is plain text, no kicker */
.mods__close { z-index: 3; width: 40px; height: 40px; right: 10px; top: 10px; }
.fl__side { font-family: var(--text); font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
