/* App-wide styles. Bootstrap 5.3 does the heavy lifting; keep this small. */
/* --ih-accent and friends come from the agent's (else the system's) colours (themeColors.ts, <style id="ih-colors">);
   this is only the fallback for pages without them (sign-in). Stylesheets never pick a colour of their own. */
:root { --ih-accent: #198754; }
.form-control, .form-select { font-size: 16px; } /* no iOS zoom on focus */
.ih-card { border: 1px solid var(--bs-border-color); border-radius: .75rem; padding: 1.25rem; background: var(--bs-body-bg); }
.ih-hero { padding: 4rem 0 3rem; }
/* A floating label never wraps: cap it at its field so a long one ends in "…" instead of widening the page. */
.form-floating > label { max-width: 100%; }

/* Seller journey diagram (dashboard): a vertical timeline on phones, a connected row of steps from md up. */
.ih-journey { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .5rem; }
.ih-journey-step { position: relative; }
.ih-journey-link { display: flex; gap: .75rem; height: 100%; padding: .75rem; border: 1px solid var(--bs-border-color); border-radius: .75rem; color: inherit; text-decoration: none; background: var(--bs-body-bg); transition: border-color .15s, box-shadow .15s; }
.ih-journey-link:hover, .ih-journey-link:focus-visible { border-color: var(--bs-success); box-shadow: 0 0 0 .2rem rgba(var(--bs-success-rgb), .15); }
.ih-journey-num { flex: 0 0 2rem; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; border: 2px solid var(--bs-success); color: var(--bs-success); background: var(--bs-body-bg); position: relative; z-index: 1; }
.ih-journey-step.is-done .ih-journey-num { background: var(--bs-success); color: var(--ih-accent-text, #fff); }
.ih-journey-body { min-width: 0; }
/* phone: connector line down the left between the number circles */
.ih-journey-step:not(:last-child)::after { content: ""; position: absolute; left: calc(.75rem + 1rem - 1px); top: 2.75rem; bottom: -.5rem; width: 2px; background: rgba(var(--bs-success-rgb), .35); }
@media (min-width: 768px) {
  .ih-journey { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 1.25rem; }
  .ih-journey-link { flex-direction: column; gap: .5rem; }
  /* arrow between steps */
  .ih-journey-step:not(:last-child)::after { left: auto; right: -1.1rem; top: 50%; bottom: auto; width: 1rem; height: 2px; }
  .ih-journey-step:not(:last-child)::before { content: ""; position: absolute; right: -1.15rem; top: calc(50% - 4px); border: 5px solid transparent; border-left-color: rgba(var(--bs-success-rgb), .6); border-right: 0; z-index: 1; }
}
@media print { .ih-journey-step::after, .ih-journey-step::before { display: none; } }
