/* Saif r5, local until approved. Layout only. */

/* 1. header: left-aligned at card width, video link far right */
.rs-col.sr4-tut .rs-colhead.sr5-hd { text-align: left; margin-bottom: 24px; }
.sr4-tut .sr5-hd .rs-sub { max-width: none; margin-inline: 0; }
.rs-col.sr4-tut .rs-colhead.sr5-hd { align-items: flex-start; }
.sr5-vid.lnk-wp { flex: none; white-space: nowrap; margin-top: 4px; }
@media (max-width: 599px) { .rs-col.sr4-tut .rs-colhead.sr5-hd { flex-direction: column; align-items: flex-start; gap: 12px; } .rs-col.sr4-tut .rs-colhead.sr5-hd > :first-child { flex: 0 0 auto; } } /* the 360px width basis turned into height when stacked */

/* 2. step list: rail tabs */
.sr4-st { align-items: center; }
.sr4-st__list { gap: 0; }
.sr4-st .sr4-st__li { border-radius: 0; background: none; padding: 0 0 0 20px; position: relative; }
.sr4-st .sr4-st__li.is-active { background: none; }
.sr4-st .sr4-st__li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; border: 0; background: var(--neutral-100, #EAEFEF); }
.sr4-st .sr4-st__li:not(:last-child)::before { bottom: 0; }
.sr4-st .sr4-st__b { display: block; padding: 16px 0 0; border-radius: var(--radius-4); }
.sr4-st .sr4-st__li:not(.is-active):hover { background: var(--neutral-50); }
.sr4-st .sr4-st__b:focus-visible { outline-offset: 2px; }
.sr4-st__l { display: block; font: 500 12px/16px Rubik, sans-serif; color: var(--type-tertiary); }
.sr4-st .sr4-st__t { display: block; margin-top: 2px; font: 500 15px/22px Rubik, sans-serif; color: var(--type-secondary); }
.sr4-st .sr4-st__b:hover .sr4-st__t { color: var(--type-primary); }
.sr4-st .sr4-st__li.is-active .sr4-st__t { color: var(--type-primary); }
.sr4-st .sr4-st__d { display: grid; grid-template-rows: 0fr; opacity: 0; padding: 0; }
.sr4-st .sr4-st__li.is-active .sr4-st__d { display: grid; grid-template-rows: 1fr; opacity: 1; }
.sr4-st__di { overflow: hidden; min-height: 0; padding-right: 8px; }
.sr4-st__d p { padding-top: 6px; }
.sr4-st .sr4-st__li:not(.is-active) .sr4-st__b { padding-bottom: 16px; }
.sr4-st .sr4-st__li.is-active .sr4-st__di { padding-bottom: 16px; }
/* active rail segment: brand orange, fills top to bottom while auto-advancing, solid otherwise */
.sr4-st .sr4-st__p { display: none; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; height: auto; margin: 0; background: none; border-radius: 0; z-index: 1; }
.sr4-st .sr4-st__li.is-active .sr4-st__p { display: block; }
.sr4-st .sr4-st__p i { background: var(--brand-100); transform: none; transform-origin: top; animation: none; }
.sr4-st.is-auto .sr4-st__li.is-active .sr4-st__p i { animation: sr5-fill 5s linear both; }
.sr4-st.is-paused .sr4-st__p i { animation-play-state: paused; }
@keyframes sr5-fill { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: no-preference) {
  .sr4-st .sr4-st__d { transition: grid-template-rows .3s ease, opacity .25s ease; }
  .sr4-st .sr4-st__t, .sr4-st .sr4-st__li { transition: color .2s ease, background-color .2s ease; }
}
@media (max-width: 899px) {
  .sr4-st .sr4-st__li::before { display: block; }
  .sr4-st .sr4-st__li:not(:last-child)::before { display: block; }
  .sr4-st__di { padding-right: 0; }
}

/* 3. (Rijul r6) fixed-size frame: the shot frame has one fixed size per page width and never changes with the active step.
   Every shot is cropped to the same 16:9 box. The step list stretches to the frame height (steps share the spare space),
   so there is no white band above or below the steps. Narrow cards stack the shot above the steps (by width only). */
.sr4-tut { container-type: inline-size; }
@media (min-width: 900px) {
  .sr4-st { grid-template-columns: 320px minmax(0, 1fr); align-items: stretch; }
  .sr4-st .sr4-st__b { padding-top: 12px; }
  .sr4-st .sr4-st__li:not(.is-active) .sr4-st__b, .sr4-st .sr4-st__li.is-active .sr4-st__di { padding-bottom: 12px; } /* keeps the tallest list inside the fixed frame */
  .sr4-st__list { justify-content: space-between; }
  .sr4-st .sr4-st__li { flex: 1 1 auto; }
  .sr4-st__imgs { aspect-ratio: 1512 / 806; } /* every shot is a 1512x806 product capture */
  .sr4-st__imgs img { width: 100%; height: 100%; object-fit: cover; object-position: center top; align-self: stretch; }
}
@container (max-width: 1179px) {
  .sr4-st { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .sr4-st .sr4-st__pane { order: -1; }
  .sr4-st .sr4-st__li { flex: none; }
}

/* Saif r7 (Rijul), local until approved */
.sr1-how:not(.sr3-ok) .fm-hd { gap: 8px; } /* how-it-works: subtext 8px under the title */
.sr1-how:not(.sr3-ok) .fm-sub { font: var(--body-md); color: var(--type-secondary); }
.rs-head:has(+ .sr1-stat) { margin-bottom: 16px; min-height: 0; } /* testimonial title to status card: 16px (Rijul r7b) */
.sr7-stpill { height: 32px; padding: 0 10px 0 12px; gap: 6px; font: 500 14px/20px Rubik, sans-serif; border: 0; cursor: pointer; transition: filter .15s ease; }
.sr7-stpill:hover { filter: brightness(.96); }
.sr7-stpill:focus-visible { outline: var(--focus-ring-width, 2px) solid var(--focus-ring-color, var(--brand-100)); outline-offset: 2px; }
.sr7-stpill .fa, .sr7-stpill svg { font-size: 12px; width: 12px; height: 12px; }
.sr7-stpill[aria-expanded="true"] .fa { transform: rotate(180deg); }
.sr1-how:not(.sr3-ok) .tpl-head { align-items: flex-start; } /* X sits on the title line */
.sr1-how:not(.sr3-ok) .tpl-head .mx { margin-top: -5px; } /* centre the X on the title line (box is 28px, title line 22px, glyph sits low) */
/* testimonial set delete: red banner, Figma 18192:11339 look (tile, text, action on the right) */
.tsv-delc.sr7-delban { inset: 6px 0; gap: 12px; justify-content: flex-start; padding: 0 8px 0 12px; background: var(--red-10, #FFEFEE); border: 1px solid var(--red-50, #FECECC); border-radius: var(--radius-8, 8px); color: var(--type-primary, #393939); font: 400 13px/18px Rubik, sans-serif; }
.sr7-delban__ic { flex: none; width: 20px; height: 20px; border-radius: var(--radius-4, 4px); background: var(--red-100, #FB5C55); color: #fff; font: 500 12px/20px Rubik, sans-serif; text-align: center; }
.sr7-delban__t { flex: 1; min-width: 0; }
.sr7-delban .tsv-delb { margin-left: auto; gap: 8px; }
.sr7-delban__no, .sr7-delban__yes { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: var(--radius-4, 4px); font: 500 13px/1 Rubik, sans-serif; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.sr7-delban__no { background: #fff; border: 1px solid var(--stroke-secondary, #CDD3D8); color: var(--type-primary, #393939); }
.sr7-delban__no:hover { border-color: var(--neutral-500, #8E9499); }
.sr7-delban__yes { background: var(--red-100, #FB5C55); border: 1px solid var(--red-100, #FB5C55); color: #fff; }
.sr7-delban__yes:hover { background: var(--red-200, #A73636); border-color: var(--red-200, #A73636); }
.sr7-delban__no:focus-visible, .sr7-delban__yes:focus-visible { outline: 2px solid var(--brand-100); outline-offset: 2px; }
@media (max-width: 700px) { .tsv-set.is-del > :not(.tsv-delc) { display: none; } .tsv-delc.sr7-delban { position: static; grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; margin: 6px 0; padding: 8px 12px; } .sr7-delban__t { flex: 1 1 calc(100% - 32px); } .sr7-delban .tsv-delb { margin-left: 32px; } }
.sr2-ask__edit .sr1-mail__ta + .field-help { margin-top: 4px; } /* hint 8px under the message box (Rijul r7) */
/* status card on Edit testimonial: 8px corners (Rijul r7) */
.card.sr1-stat { border-radius: var(--radius-8, 8px); }
/* missing link / buttons: red banner, Figma 18192:11339 (tile, text, blue action) */
.sr1-linkerr.sr7-ban { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; margin-top: 4px; padding: 8px 8px 8px 12px; background: var(--red-10, #FFEFEE); border: 1px solid var(--red-50, #FECECC); border-radius: var(--radius-8, 8px); }
.sr1-linkerr.sr7-ban[hidden] { display: none; }
.sr7-ban__ic { flex: none; width: 20px; height: 20px; border-radius: var(--radius-4, 4px); background: var(--red-100, #FB5C55); color: #fff; font: 500 12px/20px Rubik, sans-serif; text-align: center; }
.sr7-ban__t { flex: 1; min-width: 0; font: var(--body-sm, 400 13px/18px Rubik, sans-serif); color: var(--type-primary); }
.sr7-ban .btn-wp { flex: none; gap: 6px; }
@media (max-width: 599px) { .sr1-linkerr.sr7-ban { flex-wrap: wrap; } .sr7-ban__t { flex: 1 1 calc(100% - 28px); } .sr7-ban .btn-wp { margin-left: 28px; } }
/* DS SR7-CHECK fixes */
.sr4-st__l { color: var(--type-secondary); } /* Step N label stays 4.5:1 on the hover background */
.sr7-stpill.red { --lc: var(--red-200); } /* Rejected pill text 5.8:1 */
/* Saif audit (Rijul 2026-11-05), local until approved (DS SR11-CHECK: brand-300 hover, 6:1) */
.sr10-open { color: inherit; text-decoration: none; border-radius: var(--radius-2, 2px); }
.sr10-open:hover { color: var(--brand-300); text-decoration: underline; text-underline-offset: 3px; }
.sr10-open:focus-visible { outline: var(--focus-ring-width, 2px) solid var(--focus-ring-color, var(--brand-100)); outline-offset: 2px; }
.dash-avatar { cursor: default; }
.rs-chipbtn .fa, .rs-chipbtn svg { font-size: 10px; width: 10px; height: 10px; margin-left: 4px; }
.sr10-xerr[hidden] { display: none; }
.sr10-st .field-help { margin-top: 4px; }
.rs-chipbtn.red { --lc: var(--red-200); } /* Rejected pill text and chevron 5.8:1 */
.sr1-prev__meta dt { white-space: nowrap; } /* "Last sent" stays on one line */
/* required and optional fields (Rijul 2026-11-05): a red * after needed labels, a muted "(optional)" after the rest */
.sr11-req { margin-left: 2px; color: var(--red-200, #A73636); font-weight: 500; }
.sr11-opt { font-weight: 400; color: var(--type-secondary); }
