/* ==========================================================================
   Ride Alliance — Self-Service Booking
   Shared design system. Built on the DRCOG brand standards and the
   Ride Alliance sub-brand (blue #003B76 + red + yellow + gray, Oswald display).
   Body type: Arial (DRCOG standard, accessibility-approved).
   Target: WCAG 2.1 AA. Comfortable sizing for an older audience.
   ========================================================================== */

/* ----- Fonts ----- */
/* Oswald = Ride Alliance display typeface (Google Fonts). Arial = body/UI. */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
  /* Brand — Ride Alliance */
  --ra-blue:          #003B76;  /* primary */
  --ra-blue-700:      #00305f;
  --ra-blue-800:      #002247;
  --ra-navy:          #00244D;  /* deep backgrounds, footer */
  --ra-blue-bright:   #05A4E1;  /* DRCOG blue — large accents only (fails AA as text) */
  --ra-blue-light:    #6BC4E8;
  --ra-blue-50:       #eaf3fb;  /* tint surface */
  --ra-blue-100:      #d6e6f5;

  --ra-yellow:        #FFD200;  /* accent / highlight (needs dark text) */
  --ra-yellow-soft:   #fff4cc;
  --ra-red:           #990000;  /* error / destructive (AA on white) */
  --ra-red-bright:    #CC3300;  /* warning */
  --ra-red-50:        #fbeaea;
  --ra-green:         #336600;  /* success (AA dark) */
  --ra-green-700:     #2c5800;
  --ra-green-50:      #eef5e6;
  --ra-orange:        #B35600;  /* aging-services accent / suspended (AA darkened from #F47A00) */
  --ra-orange-50:     #fbf0e3;

  /* Neutrals (warm gray family from brand #494E54 / #B1B4B3) */
  --ra-ink:           #1b2733;  /* primary text ~14:1 */
  --ra-ink-2:         #424d57;  /* secondary text ~8:1 */
  --ra-ink-3:         #5d6770;  /* muted ~5.3:1 */
  --ra-line:          #c9cfd4;  /* borders */
  --ra-line-soft:     #e3e7ea;
  --ra-surface:       #ffffff;
  --ra-surface-2:     #f4f6f8;  /* page background */
  --ra-surface-3:     #eef1f4;

  /* Links — dark enough for AA body text */
  --ra-link:          #00599E;
  --ra-link-hover:    var(--ra-blue);

  /* Type */
  --font-body: Arial, 'Helvetica Neue', Helvetica, system-ui, sans-serif;
  --font-display: 'Oswald', 'Arial Narrow', Arial, sans-serif;

  /* Scale (base 18px for comfortable reading) */
  --fs-xs:  0.833rem;   /* 15px */
  --fs-sm:  0.944rem;   /* 17px */
  --fs-base: 1rem;      /* 18px */
  --fs-md:  1.167rem;   /* 21px */
  --fs-lg:  1.389rem;   /* 25px */
  --fs-xl:  1.722rem;   /* 31px */
  --fs-2xl: 2.111rem;   /* 38px */
  --fs-3xl: 2.667rem;   /* 48px */

  /* Spacing */
  --sp-1: 0.25rem; --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 2.5rem;  --sp-8: 3.5rem;

  /* Radius / shadow */
  --radius:    10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --shadow-1: 0 1px 2px rgba(0,36,77,.06), 0 1px 3px rgba(0,36,77,.08);
  --shadow-2: 0 4px 12px rgba(0,36,77,.10), 0 2px 4px rgba(0,36,77,.06);
  --shadow-3: 0 12px 32px rgba(0,36,77,.16);

  --maxw: 1120px;
  --focus: 0 0 0 3px #fff, 0 0 0 6px var(--ra-blue-bright);
}

/* ==========================================================================
   2. Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ra-ink);
  background: var(--ra-surface-2);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; color: var(--ra-blue); margin: 0 0 .4em; letter-spacing: .2px; }
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
p { margin: 0 0 1em; }
strong, b { font-weight: 700; }
a { color: var(--ra-link); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--ra-link-hover); }

/* Visible focus everywhere (WCAG 2.4.7) */
:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 4px;
}

/* Screen-reader-only + skip link */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ra-blue); color: #fff; padding: .7rem 1.1rem;
  border-radius: 0 0 8px 8px; text-decoration: none; font-weight: 700;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; color: #fff; box-shadow: var(--focus); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   3. Layout
   ========================================================================== */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--sp-5); }
.container--narrow { max-width: 760px; }
.container--mid { max-width: 920px; }
.page { min-height: 100vh; display: flex; flex-direction: column; }
.page__main { flex: 1 0 auto; padding: var(--sp-7) 0 var(--sp-8); }
.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-6); }
.grid { display: grid; gap: var(--sp-5); }
.muted { color: var(--ra-ink-2); }
.center { text-align: center; }
.eyebrow {
  font-family: var(--font-display); font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; font-size: var(--fs-xs); color: var(--ra-blue-bright);
}

/* ==========================================================================
   4. Header / top nav
   ========================================================================== */
.appbar {
  background: var(--ra-surface); border-bottom: 1px solid var(--ra-line-soft);
  position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow-1);
}
.appbar__inner { display: flex; align-items: center; gap: var(--sp-5); height: 76px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand__lockup { display: inline-flex; flex: none; flex-direction: column; align-items: center; width: max-content; line-height: 1; }
.brand__mark { flex: none; width: auto; height: auto; max-height: 42px; object-fit: contain; }
.brand__tagline { display: block; margin-top: 3px; font-family: var(--font-body); font-size: .72rem; line-height: 1.1; color: var(--ra-ink-3); letter-spacing: .3px; text-align: center; white-space: nowrap; }
.brand__type { display: none; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display); font-weight: 600; font-size: 1.45rem;
  color: var(--ra-blue); letter-spacing: .5px;
}
.brand__sub { font-size: .72rem; color: var(--ra-ink-3); letter-spacing: .3px; margin-top: 3px; }
.authwrap__aside .brand__tagline, .footer .brand__tagline { color: #aebccb; }

.appnav { display: flex; align-items: center; gap: var(--sp-2); margin-left: auto; }
.appnav__link {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--ra-ink); text-decoration: none; font-weight: 700;
  padding: .55rem .9rem; border-radius: var(--radius-sm); font-size: var(--fs-sm);
}
.appnav__link svg { width: 18px; height: 18px; flex: none; }
.appnav__link:hover { background: var(--ra-blue-50); color: var(--ra-blue); }
.appnav__link[aria-current="page"] { color: var(--ra-blue); box-shadow: inset 0 -3px 0 var(--ra-blue); border-radius: 0; }

.lang-switch { display: inline-flex; border: 1px solid var(--ra-line); border-radius: 999px; overflow: hidden; }
.lang-switch button {
  font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 700;
  border: 0; background: #fff; color: var(--ra-ink-2); padding: .4rem .7rem; cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--ra-blue); color: #fff; }

.menu-toggle {
  display: none; margin-left: auto; background: #fff; border: 1px solid var(--ra-line);
  border-radius: var(--radius-sm); padding: .6rem; cursor: pointer; color: var(--ra-blue);
}
.menu-toggle svg { width: 26px; height: 26px; }

/* In-bar buttons sit shorter than form buttons */
.appbar .btn { min-height: 44px; padding: .5rem 1rem; font-size: var(--fs-sm); }
.appnav-cta { display: flex; gap: .5rem; }

.app-actions { display: flex; align-items: center; gap: var(--sp-2); }
.utility-btn {
  position: relative; width: 44px; height: 44px; display: inline-grid; place-items: center;
  border: 1px solid var(--ra-line); border-radius: 50%; color: var(--ra-blue);
  background: #fff; text-decoration: none;
}
.utility-btn:hover { background: var(--ra-blue-50); }
.utility-btn[aria-current="page"] { border-color: var(--ra-blue); background: var(--ra-blue-50); }
.utility-dot {
  position: absolute; top: 8px; right: 8px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--ra-red); border: 2px solid #fff;
}

.account-menu { position: relative; }
.account-menu .userchip { cursor: pointer; min-height: 44px; }
.userchip[aria-current="page"] { border-color: var(--ra-blue); box-shadow: inset 0 0 0 1px var(--ra-blue); }
.account-menu__panel {
  position: absolute; top: calc(100% + .6rem); right: 0; width: min(320px, calc(100vw - 2rem));
  display: none; padding: var(--sp-3); background: #fff; border: 1px solid var(--ra-line);
  border-radius: var(--radius); box-shadow: var(--shadow-3); z-index: 70;
}
.account-menu.is-open .account-menu__panel { display: grid; gap: .25rem; }
.account-menu__identity {
  display: flex; align-items: center; gap: .7rem; padding: .55rem .65rem .8rem;
  border-bottom: 1px solid var(--ra-line-soft); margin-bottom: .25rem;
}
.account-menu__identity span:not(.userchip__avatar) { display: block; color: var(--ra-ink-2); font-size: var(--fs-xs); }
.account-menu__panel a {
  display: flex; align-items: center; gap: .6rem; padding: .7rem .65rem;
  border-radius: var(--radius-sm); color: var(--ra-ink); font-weight: 700;
  text-decoration: none; font-size: var(--fs-sm);
}
.account-menu__panel a:hover { background: var(--ra-blue-50); color: var(--ra-blue); }
.account-menu__panel svg { width: 18px; height: 18px; flex: none; color: var(--ra-blue); }
.account-menu__lang { border-top: 1px solid var(--ra-line-soft); margin-top: .25rem; padding: .7rem .65rem .35rem; }

.mobile-tasknav { display: none; }

@media (max-width: 1040px) {
  .appnav {
    position: absolute; top: 76px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0; padding: var(--sp-3);
    border-bottom: 1px solid var(--ra-line); box-shadow: var(--shadow-2);
    display: none;
  }
  .appnav.is-open { display: flex; }
  .appnav__link { padding: .85rem 1rem; font-size: var(--fs-base); }
  .appnav-lang { padding: .75rem 1rem; }
  .appnav .appnav-cta { flex-direction: column; align-items: stretch; margin-top: var(--sp-2); }
  .appbar .btn { min-height: 52px; }
  .appnav__link[aria-current="page"] { box-shadow: inset 3px 0 0 var(--ra-blue); }
  .menu-toggle { display: inline-flex; margin-left: 0; order: 3; }
  .app-actions { margin-left: auto; order: 2; }
  .appnav .lang-switch { align-self: flex-start; margin-top: var(--sp-2); }
}

/* Authenticated user chip */
.userchip { display: inline-flex; align-items: center; gap: .55rem; padding: .35rem .35rem .35rem .7rem;
  border: 1px solid var(--ra-line); border-radius: 999px; background: #fff; font-weight: 700; font-size: var(--fs-sm); color: var(--ra-ink); }
.userchip__avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ra-blue); color: #fff;
  display: grid; place-items: center; font-family: var(--font-display); font-size: .95rem; }

@media (max-width: 760px) {
  .appbar__inner { gap: var(--sp-3); }
  .brand__sub { display: none; }
  .userchip { padding: .25rem; }
  .userchip__name, .account-menu .userchip > svg { display: none; }
  .utility-btn { width: 42px; height: 42px; }
  .mobile-tasknav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    padding: .35rem max(.5rem, env(safe-area-inset-left)) calc(.35rem + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--ra-line-soft); box-shadow: 0 -4px 18px rgba(0,36,77,.12);
  }
  .mobile-tasknav a {
    min-height: 58px; display: grid; place-items: center; gap: .12rem;
    color: var(--ra-ink-2); text-decoration: none; font-weight: 700; font-size: var(--fs-xs);
    border-radius: var(--radius-sm);
  }
  .mobile-tasknav a svg { width: 21px; height: 21px; }
  .mobile-tasknav a[aria-current="page"] { color: var(--ra-blue); background: var(--ra-blue-50); }
  .page__main { padding-bottom: calc(var(--sp-8) + 76px); }
}

/* ==========================================================================
   5. Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 700; font-size: var(--fs-base);
  line-height: 1.1; padding: .85rem 1.4rem; min-height: 52px; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer; text-decoration: none; text-align: center;
  transition: background .12s ease, border-color .12s ease, transform .04s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn--primary { background: var(--ra-blue); color: #fff; }
.btn--primary:hover { background: var(--ra-blue-700); color: #fff; }
.btn--secondary { background: #fff; color: var(--ra-blue); border-color: var(--ra-blue); }
.btn--secondary:hover { background: var(--ra-blue-50); color: var(--ra-blue); }
.btn--ghost { background: transparent; color: var(--ra-blue); border-color: transparent; }
.btn--ghost:hover { background: var(--ra-blue-50); }
.btn--danger { background: var(--ra-red); color: #fff; }
.btn--danger:hover { background: #7d0000; color:#fff; }
.btn--danger-outline { background:#fff; color: var(--ra-red); border-color: var(--ra-red); }
.btn--danger-outline:hover { background: var(--ra-red-50); }
.btn--lg { font-size: var(--fs-md); min-height: 60px; padding: 1rem 1.8rem; }
.btn--block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.btn-row--end { justify-content: flex-end; }
.btn-row--between { justify-content: space-between; align-items: center; }

/* ==========================================================================
   6. Cards / surfaces
   ========================================================================== */
.card {
  background: var(--ra-surface); border: 1px solid var(--ra-line-soft);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-1);
}
.card__body { padding: var(--sp-6); }
.card__head { padding: var(--sp-5) var(--sp-6); border-bottom: 1px solid var(--ra-line-soft); }
.card__head h2, .card__head h3 { margin: 0; }
.card--flat { box-shadow: none; }
.card--pad { padding: var(--sp-6); }
.panel { background: var(--ra-surface-3); border-radius: var(--radius); padding: var(--sp-5); }

.section-title { display: flex; align-items: center; gap: .6rem; margin-bottom: var(--sp-4); }
.section-title h2 { margin: 0; }

/* ==========================================================================
   7. Forms
   ========================================================================== */
.field { margin-bottom: var(--sp-5); }
.field > label, .field-label {
  display: block; font-weight: 700; color: var(--ra-ink); margin-bottom: .4rem; font-size: var(--fs-base);
}
.field .req { color: var(--ra-red); font-weight: 700; }
.field .opt { color: var(--ra-ink-3); font-weight: 400; font-size: var(--fs-sm); }
.field__hint { color: var(--ra-ink-2); font-size: var(--fs-sm); margin: 0 0 .5rem; }
.input, .select, .textarea {
  width: 100%; font-family: var(--font-body); font-size: var(--fs-base); color: var(--ra-ink);
  background: #fff; border: 2px solid var(--ra-line); border-radius: var(--radius-sm);
  padding: .8rem .9rem; min-height: 52px;
}
.input::placeholder, .textarea::placeholder { color: #8a949c; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ra-ink-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ra-blue); box-shadow: 0 0 0 3px rgba(5,164,225,.3); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2300244D' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.6rem;
}
.input--invalid, .select--invalid, .textarea--invalid { border-color: var(--ra-red); box-shadow: 0 0 0 3px rgba(153,0,0,.15); }
.field__error { display: flex; align-items: flex-start; gap: .4rem; color: var(--ra-red); font-weight: 700; font-size: var(--fs-sm); margin-top: .45rem; }
.field__error svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }

.input-group { display: flex; align-items: stretch; }
.input-group .input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group__icon { display: grid; place-items: center; padding: 0 .9rem; border: 2px solid var(--ra-line); border-left: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--ra-surface-3); color: var(--ra-ink-2); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2) var(--sp-5); }
@media (max-width: 620px){ .grid-2 { grid-template-columns: 1fr; } }

/* Choice controls — large tap targets */
.choice {
  display: flex; gap: .8rem; align-items: flex-start; border: 2px solid var(--ra-line);
  border-radius: var(--radius); padding: 1rem 1.1rem; cursor: pointer; background: #fff;
}
.choice:hover { border-color: var(--ra-blue); background: var(--ra-blue-50); }
.choice input { margin-top: .2rem; width: 24px; height: 24px; accent-color: var(--ra-blue); flex: none; }
.choice__title { font-weight: 700; }
.choice__desc { color: var(--ra-ink-2); font-size: var(--fs-sm); }
.choice:has(input:checked) { border-color: var(--ra-blue); background: var(--ra-blue-50); box-shadow: inset 0 0 0 1px var(--ra-blue); }
.choice:has(input:focus-visible) { box-shadow: var(--focus); }
.choice-grid { display: grid; gap: var(--sp-3); }
.choice-grid--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 620px){ .choice-grid--2 { grid-template-columns: 1fr; } }

/* Segmented toggle (e.g. pickup / drop-off) */
.segment { display: inline-flex; background: var(--ra-surface-3); border-radius: var(--radius); padding: 4px; gap: 4px; }
.segment button {
  font-family: var(--font-body); font-weight: 700; font-size: var(--fs-sm); border: 0; cursor: pointer;
  background: transparent; color: var(--ra-ink-2); padding: .65rem 1.1rem; border-radius: 7px; min-height: 44px;
}
.segment button[aria-pressed="true"] { background: #fff; color: var(--ra-blue); box-shadow: var(--shadow-1); }

fieldset { border: 0; margin: 0; padding: 0; }
legend { font-weight: 700; font-size: var(--fs-md); color: var(--ra-blue); padding: 0; margin-bottom: .6rem; font-family: var(--font-display); }

/* ==========================================================================
   8. Status pills & badges (icon + label, never color alone)
   ========================================================================== */
.badge {
  display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: var(--fs-xs);
  padding: .35rem .7rem; border-radius: 999px; border: 1.5px solid; line-height: 1.2; white-space: nowrap;
}
.badge svg { width: 15px; height: 15px; }
.badge--pending  { color: #7a5a00; background: var(--ra-yellow-soft); border-color: #e6bf3d; }
.badge--approved { color: var(--ra-green-700); background: var(--ra-green-50); border-color: #8fb36a; }
.badge--denied   { color: var(--ra-red); background: var(--ra-red-50); border-color: #c98c8c; }
.badge--suspend  { color: var(--ra-orange); background: var(--ra-orange-50); border-color: #d8a368; }
.badge--info     { color: var(--ra-blue); background: var(--ra-blue-50); border-color: #9cc6e8; }
.badge--claimed  { color: var(--ra-blue); background: var(--ra-blue-50); border-color: #9cc6e8; }
.badge--neutral  { color: var(--ra-ink-2); background: var(--ra-surface-3); border-color: var(--ra-line); }

/* ==========================================================================
   9. Alerts / callouts
   ========================================================================== */
.alert { display: flex; gap: .8rem; padding: 1rem 1.1rem; border-radius: var(--radius); border: 1.5px solid; align-items: flex-start; }
.alert svg.alert__icon { width: 24px; height: 24px; flex: none; margin-top: 1px; }
.alert__title { font-weight: 700; margin: 0 0 .2rem; }
.alert p { margin: 0; }
.alert--info   { background: var(--ra-blue-50); border-color: #9cc6e8; color: var(--ra-ink); }
.alert--info svg.alert__icon { color: var(--ra-blue); }
.alert--warn   { background: var(--ra-yellow-soft); border-color: #e6bf3d; color: var(--ra-ink); }
.alert--warn svg.alert__icon { color: #9a7400; }
.alert--success{ background: var(--ra-green-50); border-color: #8fb36a; color: var(--ra-ink); }
.alert--success svg.alert__icon { color: var(--ra-green-700); }
.alert--error  { background: var(--ra-red-50); border-color: #c98c8c; color: var(--ra-ink); }
.alert--error svg.alert__icon { color: var(--ra-red); }

/* Important "not guaranteed" notice */
.notice-strong { border-left: 6px solid var(--ra-blue-bright); }

/* ==========================================================================
   10. Stepper / progress
   ========================================================================== */
.stepper { display: flex; gap: var(--sp-2); list-style: none; margin: 0 0 var(--sp-6); padding: 0; }
.stepper li { flex: 1; }
.stepper__inner { display: flex; flex-direction: column; gap: .4rem; }
.stepper__bar { height: 8px; border-radius: 999px; background: var(--ra-line-soft); }
.stepper li[data-state="done"] .stepper__bar,
.stepper li[data-state="current"] .stepper__bar { background: var(--ra-blue); }
.stepper__label { font-size: var(--fs-xs); font-weight: 700; color: var(--ra-ink-3); display: flex; align-items: center; gap: .35rem; }
.stepper li[data-state="current"] .stepper__label { color: var(--ra-blue); }
.stepper li[data-state="done"] .stepper__label { color: var(--ra-green-700); }
.stepper__num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ra-line-soft); color: var(--ra-ink-2); font-size: .75rem; }
.stepper li[data-state="current"] .stepper__num { background: var(--ra-blue); color:#fff; }
.stepper li[data-state="done"] .stepper__num { background: var(--ra-green); color:#fff; }
@media (max-width:620px){ .stepper__label span.txt { display:none; } }

/* ==========================================================================
   11. Lists / rows / data
   ========================================================================== */
.deflist { display: grid; grid-template-columns: max-content 1fr; gap: .6rem 1.4rem; margin: 0; }
.deflist dt { color: var(--ra-ink-2); font-weight: 700; font-size: var(--fs-sm); }
.deflist dd { margin: 0; }
@media (max-width:520px){ .deflist { grid-template-columns: 1fr; gap: .15rem 0; } .deflist dd { margin-bottom: .6rem; } }

.triprow { display: flex; gap: var(--sp-4); align-items: center; padding: var(--sp-5); border: 1px solid var(--ra-line-soft);
  border-radius: var(--radius); background: #fff; text-decoration: none; color: inherit; }
.triprow:hover { border-color: var(--ra-blue); box-shadow: var(--shadow-2); }
.triprow__date { flex: none; width: 76px; text-align: center; border-radius: var(--radius-sm); background: var(--ra-blue-50);
  padding: .5rem; }
.triprow__date .m { font-size: var(--fs-xs); font-weight: 700; color: var(--ra-blue); text-transform: uppercase; letter-spacing: .5px; }
.triprow__date .d { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: var(--ra-blue); line-height: 1; }
.triprow__body { flex: 1; min-width: 0; }
.triprow__route { font-weight: 700; font-size: var(--fs-md); }
.triprow__meta { color: var(--ra-ink-2); font-size: var(--fs-sm); }

/* Map placeholder (no live API in wireframe) */
.mapholder {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--ra-line);
  background:
    linear-gradient(135deg, #e8eef2 0%, #dde7ee 100%);
  min-height: 220px;
}
.mapholder::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(5,164,225,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5,164,225,.12) 1px, transparent 1px);
  background-size: 36px 36px;
}
.mapholder__pin { position: absolute; display: grid; place-items: center; transform: translate(-50%,-100%); color: var(--ra-blue); }
.mapholder__note { position: absolute; bottom: 10px; left: 10px; background: rgba(255,255,255,.92);
  border: 1px solid var(--ra-line); border-radius: 6px; padding: .3rem .55rem; font-size: var(--fs-xs); font-weight: 700; color: var(--ra-ink-2); }

/* ==========================================================================
   12. Auth shell (split layout)
   ========================================================================== */
.authwrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.authwrap__aside {
  background: linear-gradient(160deg, var(--ra-blue) 0%, var(--ra-navy) 100%);
  color: #fff; padding: var(--sp-8) var(--sp-7); display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.authwrap__aside h2, .authwrap__aside h1 { color: #fff; }
.authwrap__form { display: flex; align-items: center; justify-content: center; padding: var(--sp-7) var(--sp-5); background: #fff; }
.authwrap__form-inner { width: 100%; max-width: 440px; }
.authwrap__deco { position: absolute; right: -80px; bottom: -80px; width: 360px; height: 360px; opacity: .18; }
@media (max-width: 900px){ .authwrap { grid-template-columns: 1fr; } .authwrap__aside { display: none; } }

/* ==========================================================================
   13. Footer
   ========================================================================== */
.footer { background: var(--ra-navy); color: #cdd8e4; margin-top: auto; }
.footer a { color: #cfe4f5; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-6); padding: var(--sp-7) 0; }
.footer h4 { color: #fff; font-size: var(--fs-base); margin-bottom: .7rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.15); padding: var(--sp-4) 0; font-size: var(--fs-sm); color: #aebccb; }
@media (max-width: 760px){ .footer__inner { grid-template-columns: 1fr; gap: var(--sp-5); } }

/* ==========================================================================
   14. Modal / dialog
   ========================================================================== */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,36,77,.55); display: grid; place-items: center; padding: var(--sp-4); z-index: 100; }
.modal { background: #fff; border-radius: var(--radius-lg); max-width: 540px; width: 100%; box-shadow: var(--shadow-3); }
.modal__head { padding: var(--sp-5) var(--sp-6); border-bottom: 1px solid var(--ra-line-soft); display:flex; align-items:center; justify-content: space-between; }
.modal__head h2 { margin: 0; }
.modal__body { padding: var(--sp-6); }
.modal__foot { padding: var(--sp-5) var(--sp-6); border-top: 1px solid var(--ra-line-soft); display: flex; gap: var(--sp-3); justify-content: flex-end; }
.iconbtn { background: transparent; border: 0; cursor: pointer; color: var(--ra-ink-2); border-radius: 8px; padding: .4rem; display: grid; place-items: center; }
.iconbtn:hover { background: var(--ra-surface-3); }

/* ==========================================================================
   15. Utilities
   ========================================================================== */
.flex { display: flex; } .items-center { align-items: center; } .gap-2 { gap: var(--sp-2); } .gap-3 { gap: var(--sp-3); } .gap-4 { gap: var(--sp-4); }
.wrap { flex-wrap: wrap; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-4 { margin-top: var(--sp-4); } .mt-5 { margin-top: var(--sp-5); } .mt-6 { margin-top: var(--sp-6); }
.text-sm { font-size: var(--fs-sm); } .text-md { font-size: var(--fs-md); }
.fw-700 { font-weight: 700; }
.divider { height: 1px; background: var(--ra-line-soft); border: 0; margin: var(--sp-5) 0; }
.pill-link { display:inline-flex; align-items:center; gap:.4rem; font-weight:700; text-decoration:none; }
.hide { display: none !important; }
.tag-required-note { font-size: var(--fs-sm); color: var(--ra-ink-2); }
.kbd-hint { font-size: var(--fs-xs); color: var(--ra-ink-3); }
