/*
Theme Name: Reese Transport Theme
Theme URI: https://reesetransport.net
Description: Custom brutalist NEMT theme for Reese Transport LLC.
Author: Reese Transport LLC
Version: 1.2.16
License: GNU GPLv2 or later
Text Domain: reese-transport
*/


/* ============================================================ 
   TOKEN FILE: fonts.css 
   ============================================================ */

/* ============================================================
   FONTS
   Lora (serif display), Manrope (UI / data), Atkinson Hyperlegible (body).
   The theme enqueues these families once in functions.php.
   ============================================================ */


/* ============================================================ 
   TOKEN FILE: colors.css 
   ============================================================ */

/* ============================================================
   COLOR TOKENS
   Three brand colors carry the load: navy is text + structure,
   gold is the single primary action, ivory is the resting canvas.
   Each expands into a ramp. Warm neutrals are tuned to the ivory so
   grays never read cold beside the brand.
   ============================================================ */
:root {
  /* ---- BRAND ---- */
  --brand-navy:  #112641;   /* structure, text, dark surfaces */
  --brand-gold:  #e8c561;   /* the single primary action */
  --brand-ivory: #faf8f3;   /* the resting canvas */
  --brand-cream: #f6efdc;   /* warm canvas variation, sits between gold + ivory */

  /* ---- NAVY RAMP ---- */
  --navy-50:  #eef3f8;
  --navy-100: #dde6f0;
  --navy-200: #bccce0;
  --navy-300: #8aa6c6;
  --navy-400: #5a82ad;
  --navy-500: #356193;
  --navy-600: #274d78;
  --navy-700: #1b3a5e;
  --navy-800: #112641;   /* brand navy */
  --navy-900: #0a1626;

  /* ---- GOLD RAMP ---- */
  --gold-50:  #fdf9ec;
  --gold-100: #faf1d8;
  --gold-200: #f5e4b3;
  --gold-300: #efd587;
  --gold-400: #e8c561;   /* brand gold, primary fill */
  --gold-500: #d9b24a;
  --gold-600: #b9912f;   /* gold-toned text that passes AA on light */
  --gold-700: #8f6f1f;

  /* ---- WARM NEUTRALS (tuned to ivory so grays never read cold) ---- */
  --neutral-50:  #faf8f3;  /* = ivory canvas */
  --neutral-100: #f3f0e8;
  --neutral-200: #e8e3d8;
  --neutral-300: #d6cfc0;
  --neutral-400: #b3aa98;
  --neutral-500: #8a8270;
  --neutral-600: #635c4d;
  --neutral-700: #46413a;
  --neutral-800: #2b2a26;
  --neutral-900: #1a1916;

  /* ---- SEMANTIC (muted to sit beside the warm palette) ---- */
  --success:        #2f7d5b;
  --success-bg:     #e4f1ea;
  --success-border: #bfddcd;
  --warning:        #b5862a;
  --warning-bg:     #f8eed5;
  --warning-border: #ecd6a3;
  --error:          #b3392f;
  --error-bg:       #f7e4e1;
  --error-border:   #e6c1bb;
  --info:           #356193;
  --info-bg:        #e3ecf5;
  --info-border:    #bcd0e6;

  /* ---- SURFACES ---- */
  --surface-canvas: var(--brand-ivory); /* level 0, the page */
  --surface-cream:  var(--brand-cream); /* level 0 alt, warm sections / banded backgrounds */
  --surface-raised: #ffffff;            /* level 2, hero / white cards */
  --surface-sunken: var(--neutral-100); /* wells, code, insets */
  --surface-navy:   var(--navy-800);    /* inverted bands, footer */

  /* ---- TEXT ---- */
  --text:         var(--navy-800);
  --text-strong:  var(--navy-900);
  --text-muted:   var(--neutral-600);
  --text-subtle:  var(--neutral-500);
  --text-on-navy: var(--brand-ivory);
  --text-on-gold: var(--navy-800);   /* gold ALWAYS pairs with navy text */
}


/* ============================================================ 
   TOKEN FILE: typography.css 
   ============================================================ */

/* ============================================================
   TYPOGRAPHY TOKENS
   Three faces, three jobs.
   - Lora      : serif authority for display + headings
   - Manrope   : precise hand for labels, buttons, tabular data
   - Atkinson  : body + form values, where legibility matters most
   Scale is clamped: loud on marketing, settled on the app.
   ============================================================ */
:root {
  /* ---- FAMILIES ---- */
  --font-display: 'Lora', Georgia, 'Times New Roman', serif;        /* headings, display */
  --font-ui:      'Manrope', system-ui, sans-serif;                 /* labels, buttons, data */
  --font-body:    'Atkinson Hyperlegible', system-ui, sans-serif;   /* body, form values */

  /* ---- SCALE ---- */
  --text-display: clamp(2.75rem, calc(1.4rem + 6vw), 6.5rem); /* @kind font */  /* hero only */
  --text-h1: clamp(2.25rem, calc(1.4rem + 3.6vw), 3.75rem); /* @kind font */
  --text-h2: clamp(1.75rem, calc(1.2rem + 2.2vw), 2.75rem); /* @kind font */
  --text-h3: clamp(1.375rem, calc(1.1rem + 1vw), 1.75rem); /* @kind font */
  --text-h4: 1.25rem;
  --text-body-lg: 1.25rem;   /* 20 */
  --text-body:    1.0625rem; /* 17, base reading size */
  --text-body-sm: 0.9375rem; /* 15 */
  --text-label:   0.8125rem; /* 13, caps labels */
  --text-micro:   0.6875rem; /* 11, eyebrows / overline */

  /* ---- LEADING + TRACKING ---- */
  --leading-tight: 1.04;
  --leading-snug:  1.18;
  --leading-body:  1.6;
  --track-tight: -0.03em;
  --track-caps:   0.10em;
}


/* ============================================================ 
   TOKEN FILE: spacing.css 
   ============================================================ */

/* ============================================================
   SPACING TOKENS
   4px grid with an 8px rhythm. Marketing breathes with large
   vertical padding; the app tightens up to stay scannable.
   ============================================================ */
:root {
  --space-1: 4px;   --space-2: 8px;   --space-3: 12px;  --space-4: 16px;
  --space-5: 20px;  --space-6: 24px;  --space-8: 32px;  --space-10: 40px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px; --space-24: 96px;
  --space-32: 128px; --space-40: 160px;

  --container:      1200px;
  --container-wide: 1440px;
  --gutter: 32px;
  --gutter-mobile: 20px;
  --section-y: clamp(72px, 9vw, 140px); /* @kind spacing */ /* marketing vertical rhythm */
}


/* ============================================================ 
   TOKEN FILE: shape.css 
   ============================================================ */

/* ============================================================
   SHAPE TOKENS — radius + borders
   Soft brutalist geometry. A 4px base radius keeps things sharp
   and professional. Two border weights split the system: a 2px
   navy edge for loud marketing surfaces, a 1px hairline for the
   quiet app. Pills are the only fully round shape — status only.
   ============================================================ */
:root {
  --radius-sm: 2px;
  --radius:    4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;  /* pills only */

  --border-strong: var(--navy-800);     /* the 2px brutalist edge (marketing) */
  --border-soft:   var(--neutral-200);  /* hairline (app) */
  --border-field:  var(--neutral-300);
  --bw-brutal:    2px;
  --bw-brutal-lg: 3px;
}


/* ============================================================ 
   TOKEN FILE: elevation.css 
   ============================================================ */

/* ============================================================
   ELEVATION TOKENS
   Two depth systems, used in two places.
   - HARD OFFSET BLOCK : the signature, a solid shadow with no blur,
     for marketing buttons + cards. The shadow is always a step darker
     than the surface under it (a navy card drops to near-black).
   - SOFT NAVY : calm elevation for the app, where many hard shadows
     on one screen would turn into noise.
   Rule of thumb: selling something -> block. Doing work -> soft.
   Never mix the two on one screen.
   ============================================================ */
:root {
  /* hard offset (marketing) */
  --offset: 6px;          /* card block depth */
  --offset-lg: 8px;       /* oversized cards */
  --btn-offset: 4px;      /* brutal button block depth */
  --shadow-block:         var(--offset) var(--offset) 0 0 var(--navy-800);
  --shadow-block-lg:      var(--offset-lg) var(--offset-lg) 0 0 var(--navy-800);
  --shadow-block-dark:    var(--offset) var(--offset) 0 0 var(--navy-900);
  --shadow-block-dark-lg: var(--offset-lg) var(--offset-lg) 0 0 var(--navy-900);

  /* soft navy (app) */
  --shadow-1: 0 1px 2px rgba(17,38,65,.06), 0 1px 3px rgba(17,38,65,.10);
  --shadow-2: 0 2px 6px rgba(17,38,65,.08), 0 8px 18px rgba(17,38,65,.10);
  --shadow-3: 0 10px 24px rgba(17,38,65,.12), 0 18px 44px rgba(17,38,65,.10);

  --focus-ring: 0 0 0 3px var(--gold-300), 0 0 0 5px var(--navy-700);
}


/* ============================================================ 
   TOKEN FILE: motion.css 
   ============================================================ */

/* ============================================================
   MOTION TOKENS
   Motion is smooth and weighted, never snappy. Elements glide into
   place with real velocity — quick to leave, slow to settle — using
   velocity-led ease-out curves. Brutalist buttons still press into
   their shadow and cards lift off it, but the travel is eased so it
   reads as momentum, not a jump-cut. The spring keeps a soft, refined
   overshoot. Everything collapses to instant under reduced motion.
   ============================================================ */
:root {
  --dur-fast: 200ms; /* @kind other */
  --dur:      340ms; /* @kind other */
  --dur-slow: 560ms; /* @kind other */
  /* standard: smooth, weighted decel for color/box-shadow changes */
  --ease-standard: cubic-bezier(.4, 0, .2, 1); /* @kind other */
  /* spring: refined overshoot — settles with a gentle bit of bounce */
  --ease-spring:   cubic-bezier(.34, 1.32, .5, 1); /* @kind other */
  /* smooth: strong initial velocity easing to a soft stop (expo-out) */
  --ease-smooth:   cubic-bezier(.16, 1, .3, 1); /* @kind other */
}


/* ============================================================ 
   TOKEN FILE: base.css 
   ============================================================ */

/* ============================================================
   BASE
   Minimal element resets so token specimens and consuming pages
   inherit the brand defaults. Kept separate from component CSS —
   components carry their own styling inline (React) or in the kit.
   ============================================================ */
*, *::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(--text-body);
  line-height: var(--leading-body);
  color: var(--text);
  background: var(--surface-canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text-strong); margin: 0 0 .4em; font-weight: 700; }
h1 { font-size: var(--text-h1); line-height: var(--leading-snug); letter-spacing: var(--track-tight); }
h2 { font-size: var(--text-h2); line-height: var(--leading-snug); letter-spacing: -0.02em; }
h3 { font-size: var(--text-h3); line-height: 1.2; }
h4 { font-size: var(--text-h4); line-height: 1.25; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--navy-600); text-underline-offset: 3px; }
strong { font-weight: 700; }
::selection { background: var(--gold-300); color: var(--navy-900); }
:focus-visible { outline: 2px solid transparent; outline-offset: 3px; box-shadow: var(--focus-ring) !important; border-radius: var(--radius-sm); }
.rt-skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--brand-gold);
  color: var(--navy-900);
  border: 2px solid var(--navy-900);
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-weight: 800;
  text-decoration: none;
}
.rt-skip-link:focus { transform: translateY(0); }
#primary:focus { outline: none; box-shadow: none !important; }


/* ============================================================ 
   EXTRACTED COMPONENT STYLES 
   ============================================================ */

/* ========================================== 
   COMPONENT CSS: rt-alert-css (CSS) 
   ========================================== */

.rt-alert{ display: flex; gap: var(--space-3); align-items: flex-start; border: 1px solid; border-left-width: 4px; border-radius: var(--radius-md);
  padding: var(--space-4); font-family: var(--font-body); font-size: var(--text-body-sm); }
.rt-alert__t{ font-family: var(--font-ui); font-weight: 700; display: block; margin-bottom: 2px; }
.rt-alert--success{ background: var(--success-bg); border-color: var(--success-border); border-left-color: var(--success); color: var(--neutral-800); }
.rt-alert--warning{ background: var(--warning-bg); border-color: var(--warning-border); border-left-color: var(--warning); color: var(--neutral-800); }
.rt-alert--error{   background: var(--error-bg);   border-color: var(--error-border);   border-left-color: var(--error);   color: var(--neutral-800); }
.rt-alert--info{    background: var(--info-bg);    border-color: var(--info-border);    border-left-color: var(--info);    color: var(--neutral-800); }
.rt-alert__ico{ flex: 0 0 20px; line-height: 1.5; }

/* ========================================== 
   COMPONENT CSS: rt-modal-css (CSS) 
   ========================================== */

@keyframes rt-modal-rise{ from{ opacity: 0; transform: translateY(10px) scale(.99); } to{ opacity: 1; transform: translateY(0) scale(1); } }
@keyframes rt-modal-fade{ from{ opacity: 0; } to{ opacity: 1; } }
.rt-modal__scrim{ position: fixed; inset: 0; background: rgba(10,22,38,.55); display: grid; place-items: center; padding: var(--space-6); z-index: 100;
  animation: rt-modal-fade var(--dur) var(--ease-standard) both; }
.rt-modal{ width: min(440px, 100%); background: var(--surface-raised); border: var(--bw-brutal) solid var(--border-strong);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-block-lg); padding: var(--space-8);
  animation: rt-modal-rise var(--dur-slow) var(--ease-smooth) both; }
.rt-modal h3{ margin: 0 0 var(--space-2); font-family: var(--font-display); font-size: var(--text-h3); color: var(--text-strong); }
.rt-modal p{ color: var(--text-muted); margin: 0; }
.rt-modal__actions{ display: flex; gap: var(--space-3); justify-content: flex-end; margin-top: var(--space-6); }

/* ========================================== 
   COMPONENT CSS: rt-toast-css (CSS) 
   ========================================== */

@keyframes rt-toast-rise{ from{ opacity: 0; transform: translateY(8px); } to{ opacity: 1; transform: translateY(0); } }
.rt-toast{ display: inline-flex; gap: var(--space-3); align-items: center; background: var(--navy-800); color: var(--text-on-navy);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-3); padding: var(--space-4) var(--space-5); font-family: var(--font-ui); font-weight: 600; font-size: var(--text-body-sm);
  animation: rt-toast-rise var(--dur) var(--ease-smooth) both; }
.rt-toast__dot{ width: 10px; height: 10px; border-radius: 50%; background: var(--gold-400); flex: 0 0 10px; }
.rt-toast__x{ margin-left: var(--space-4); color: var(--navy-300); cursor: pointer; background: none; border: none; font-size: 1.1rem; line-height: 1; }
.rt-toast__x:hover{ color: var(--text-on-navy); }

/* ========================================== 
   COMPONENT CSS: rt-btn-css (CSS) 
   ========================================== */

.rt-btn{
  font-family: var(--font-ui); font-weight: 700; font-size: var(--text-body-sm);
  letter-spacing: .01em; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2); padding: 14px 22px; border-radius: var(--radius); cursor: pointer;
  border: var(--bw-brutal) solid var(--border-strong); background: var(--gold-400); color: var(--text-on-gold);
  text-decoration: none; white-space: nowrap; user-select: none;
  transition: transform var(--dur) var(--ease-smooth), box-shadow var(--dur) var(--ease-smooth),
              background var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard);
}
.rt-btn:focus-visible{ box-shadow: var(--focus-ring); }
.rt-btn[disabled], .rt-btn.is-disabled{ opacity: .5; cursor: not-allowed; pointer-events: none; }
.rt-btn--sm{ padding: 10px 16px; font-size: var(--text-label); }
.rt-btn--lg{ padding: 18px 30px; font-size: var(--text-body); }
.rt-btn--block{ width: 100%; }

/* brutal: hard offset block, presses into its shadow on hover */
.rt-btn--brutal{ box-shadow: var(--btn-offset) var(--btn-offset) 0 0 var(--navy-800); }
.rt-btn--brutal:hover{ transform: translate(calc(var(--btn-offset)/2), calc(var(--btn-offset)/2)); box-shadow: calc(var(--btn-offset)/2) calc(var(--btn-offset)/2) 0 0 var(--navy-800); }
.rt-btn--brutal:active{ transform: translate(var(--btn-offset), var(--btn-offset)); box-shadow: 0 0 0 0 var(--navy-800); }
.rt-btn--brutal.rt-btn--secondary{ background: var(--surface-raised); }
.rt-btn--brutal.rt-btn--ghost{ background: transparent; box-shadow: none; }
.rt-btn--brutal.rt-btn--ghost:hover{ background: var(--navy-50); transform: none; box-shadow: none; }

/* soft: calm elevation for the app, no jump, subtle press */
.rt-btn--soft{ box-shadow: var(--shadow-1); border-color: transparent; }
.rt-btn--soft:hover{ box-shadow: var(--shadow-2); transform: translateY(-1px); }
.rt-btn--soft:active{ box-shadow: var(--shadow-1); transform: translateY(0); }
.rt-btn--soft.rt-btn--secondary{ background: var(--surface-raised); color: var(--text); border: 1px solid var(--border-field); box-shadow: none; }
.rt-btn--soft.rt-btn--secondary:hover{ background: var(--navy-50); border-color: var(--navy-300); }
.rt-btn--soft.rt-btn--ghost{ background: transparent; box-shadow: none; color: var(--navy-600); }
.rt-btn--soft.rt-btn--ghost:hover{ background: var(--navy-50); }

.rt-btn__spin{ width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: rt-spin .7s linear infinite; }
@keyframes rt-spin{ to{ transform: rotate(360deg); } }

/* ========================================== 
   COMPONENT CSS: rt-form-css (FORM_CSS) 
   ========================================== */

.rt-field{ display: grid; align-content: start; gap: var(--space-2); }
.rt-field + .rt-field{ margin-top: var(--space-5); }
/* Side-by-side fields in a 2-col grid row space via the grid gap, not the stacked-field margin. */
.rt-qf-2col > .rt-field + .rt-field, .rt-cf-2col > .rt-field + .rt-field, .rt-pf-2col > .rt-field + .rt-field{ margin-top: 0; }
.rt-field__label{ font-family: var(--font-ui); font-weight: 700; font-size: var(--text-label); letter-spacing: .04em;
  text-transform: uppercase; color: var(--navy-700); }
.rt-field__label .rt-req{ color: var(--error); margin-left: 2px; }
.rt-input, .rt-select, .rt-textarea{
  font-family: var(--font-body); font-size: var(--text-body); color: var(--text);
  background: var(--surface-raised); border: 1px solid var(--border-field); border-radius: var(--radius-md);
  padding: 12px 14px; width: 100%; transition: border-color var(--dur) var(--ease-standard), box-shadow var(--dur) var(--ease-standard);
}
.rt-input::placeholder, .rt-textarea::placeholder{ color: var(--text-subtle); }
.rt-input:hover, .rt-select:hover, .rt-textarea:hover{ border-color: var(--navy-300); }
.rt-input:focus, .rt-select:focus, .rt-textarea:focus{ outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px var(--navy-100); }
.rt-textarea{ min-height: 96px; resize: vertical; }
.rt-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='%23112641' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.rt-field__help{ font-family: var(--font-body); font-size: var(--text-body-sm); color: var(--text-muted); }
.rt-field--error .rt-input, .rt-field--error .rt-select, .rt-field--error .rt-textarea{ border-color: var(--error); }
.rt-field--error .rt-field__help{ color: var(--error); font-weight: 600; }
.rt-field--ok .rt-input{ border-color: var(--success); }

/* Quote form choice controls and animated conditional regions */
.rt-segment-control{ display:flex; gap:var(--space-3); }
.rt-seg-btn{ position:relative; flex:1; min-width:0; overflow:hidden; padding:15px 14px; color:var(--text-muted); background:var(--surface-raised); border:2px solid var(--navy-200); border-radius:var(--radius); box-shadow:0 0 0 var(--navy-800); font-family:var(--font-ui); font-size:var(--text-body-sm); font-weight:800; letter-spacing:.01em; text-align:center; cursor:pointer; transform:translate(0,0) scale(1); transition:color 240ms var(--ease-standard),background-color 240ms var(--ease-standard),border-color 240ms var(--ease-standard),box-shadow 280ms var(--ease-spring),transform 280ms var(--ease-spring); }
.rt-seg-btn::after{ content:""; position:absolute; inset:-35% auto -35% -32%; width:24%; background:rgba(255,255,255,.55); transform:skewX(-18deg) translateX(-250%); transition:transform 430ms var(--ease-smooth); pointer-events:none; }
.rt-seg-btn:hover{ color:var(--navy-900); border-color:var(--gold-600); transform:translateY(-2px); }
.rt-seg-btn:hover::after{ transform:skewX(-18deg) translateX(650%); }
.rt-seg-btn:active{ transform:translate(2px,2px) scale(.985); }
.rt-seg-btn:focus-visible{ outline:none; box-shadow:0 0 0 3px var(--navy-100); }
.rt-seg-btn.is-active{ color:var(--navy-900); background:var(--gold-400); border-color:var(--navy-800); box-shadow:3px 3px 0 var(--navy-800); transform:translate(-1px,-1px); }
.rt-seg-btn.is-active:active{ box-shadow:1px 1px 0 var(--navy-800); transform:translate(1px,1px) scale(.985); }
.rt-transition-region,.extra-stop-item{ transform-origin:top center; will-change:height,opacity,transform; }
.rt-check input{ transition:background-color 220ms var(--ease-standard),box-shadow 260ms var(--ease-spring),transform 260ms var(--ease-spring); }
.rt-check input:checked{ animation:rt-check-pop 380ms var(--ease-spring); box-shadow:2px 2px 0 var(--navy-800); }
.rt-check span{ transition:color 220ms var(--ease-standard),transform 260ms var(--ease-spring); }
.rt-check:has(input:checked) span{ color:var(--navy-900); transform:translateX(3px); }
.rt-remove-stop-btn{ transition:color 220ms var(--ease-standard),background-color 220ms var(--ease-standard),border-color 220ms var(--ease-standard),box-shadow 260ms var(--ease-spring),transform 260ms var(--ease-spring); }
.rt-remove-stop-btn:active{ transform:scale(.92); }
.rt-remove-stop-btn:hover{ background:var(--gold-200)!important; box-shadow:3px 3px 0 var(--navy-800); transform:translate(-1px,-1px) rotate(4deg); }
@keyframes rt-check-pop{ 0%{transform:scale(.72) rotate(-8deg)} 58%{transform:scale(1.18) rotate(4deg)} 100%{transform:scale(1) rotate(0)} }
@media(max-width:560px){ .rt-segment-control{gap:var(--space-2)}.rt-seg-btn{padding:14px 10px;font-size:.86rem}.rt-seg-btn.is-active{box-shadow:2px 2px 0 var(--navy-800)} }

/* Custom date and time pickers */
.rt-picker-trigger{ min-height:48px; width:100%; display:flex; align-items:center; justify-content:space-between; gap:var(--space-3); padding:12px 14px; font:inherit; text-align:left; color:var(--text-subtle); background:var(--surface-raised); border:1px solid var(--border-field); border-radius:var(--radius-md); cursor:pointer; transition:border-color var(--dur) var(--ease-standard),box-shadow var(--dur) var(--ease-standard),transform var(--dur-fast) var(--ease-spring); }
.rt-picker-trigger:hover{ border-color:var(--navy-300); transform:translateY(-1px); }
.rt-picker-trigger:focus-visible{ outline:none; border-color:var(--navy-600); box-shadow:0 0 0 3px var(--navy-100); }
.rt-picker-trigger.is-filled{ color:var(--text); }
.rt-picker-trigger__icon{ position:relative; width:30px; height:30px; display:block; flex:0 0 30px; color:var(--navy-900); background:var(--gold-300); border:2px solid var(--navy-800); border-radius:var(--radius-sm); box-sizing:border-box; }
.rt-picker-trigger__icon--date::before{ content:""; position:absolute; left:5px; top:7px; width:16px; height:14px; border:2px solid currentColor; border-radius:2px; box-sizing:border-box; background:linear-gradient(currentColor,currentColor) 0 3px/100% 2px no-repeat,radial-gradient(circle,currentColor 1px,transparent 1.4px) 1px 6px/5px 4px repeat; transition:transform var(--dur-fast) var(--ease-spring); }
.rt-picker-trigger__icon--date::after{ content:""; position:absolute; left:9px; top:4px; width:2px; height:6px; border-radius:2px; background:currentColor; box-shadow:6px 0 0 currentColor; }
.rt-picker-trigger__icon--time::before{ content:""; position:absolute; left:5px; top:5px; width:16px; height:16px; border:2px solid currentColor; border-radius:50%; box-sizing:border-box; transition:transform var(--dur-fast) var(--ease-spring); }
.rt-picker-trigger__icon--time::after{ content:""; position:absolute; left:12px; top:8px; width:5px; height:7px; border-left:2px solid currentColor; border-bottom:2px solid currentColor; box-sizing:border-box; transform-origin:1px 6px; transition:transform var(--dur-fast) var(--ease-spring); }
.rt-picker-trigger:hover .rt-picker-trigger__icon--date::before{ transform:translateY(-1px) scale(1.04); }
.rt-picker-trigger:hover .rt-picker-trigger__icon--time::before{ transform:scale(1.06); }
.rt-picker-trigger:hover .rt-picker-trigger__icon--time::after{ transform:rotate(12deg); }
.rt-field--error .rt-picker-trigger{ border-color:var(--error); }
.rt-picker-layer{ position:fixed; inset:0; z-index:400; display:grid; place-items:center; padding:var(--space-5); background:rgba(8,22,38,.66); backdrop-filter:blur(3px); animation:rt-picker-fade var(--dur) var(--ease-standard); }
.rt-picker{ width:min(460px,100%); max-height:min(720px,calc(100dvh - 32px)); overflow:auto; background:var(--surface-raised); border:var(--bw-brutal) solid var(--navy-800); border-radius:var(--radius-lg); box-shadow:9px 9px 0 var(--navy-900); animation:rt-picker-in var(--dur-slow) var(--ease-spring); }
.rt-picker__head{ display:flex; align-items:flex-start; justify-content:space-between; gap:var(--space-4); padding:var(--space-5); color:var(--brand-ivory); background:var(--navy-800); border-bottom:var(--bw-brutal) solid var(--navy-900); }
.rt-picker__head h3{ margin:2px 0 0; color:inherit; font-family:var(--font-display); font-size:var(--text-h3); }
.rt-picker__eyebrow{ margin:0; color:var(--gold-300); font-family:var(--font-ui); font-size:var(--text-caption); font-weight:800; letter-spacing:var(--track-caps); text-transform:uppercase; }
.rt-picker__close{ width:40px; height:40px; flex:0 0 40px; color:var(--brand-ivory); background:transparent; border:1px solid var(--navy-500); border-radius:var(--radius); font-size:1.75rem; line-height:1; cursor:pointer; }
.rt-picker__close:hover,.rt-picker__close:focus-visible{ color:var(--navy-900); background:var(--gold-300); outline:none; }
.rt-picker [data-picker-content]{ padding:var(--space-5); }
.rt-picker__actions{ display:grid; grid-template-columns:1fr 1.35fr; gap:var(--space-3); padding:var(--space-4) var(--space-5) var(--space-5); border-top:1px solid var(--border-soft); }
.rt-picker__cancel,.rt-picker__apply{ min-height:46px; border-radius:var(--radius); font-family:var(--font-ui); font-weight:800; text-transform:uppercase; letter-spacing:.04em; cursor:pointer; }
.rt-picker__cancel{ color:var(--navy-700); background:var(--surface-raised); border:2px solid var(--navy-300); }
.rt-picker__apply{ color:var(--navy-900); background:var(--gold-400); border:2px solid var(--navy-800); box-shadow:3px 3px 0 var(--navy-800); }
.rt-picker__apply:hover{ transform:translate(1px,1px); box-shadow:2px 2px 0 var(--navy-800); }
.rt-picker__hint{ margin:var(--space-4) 0 0; color:var(--text-muted); font-size:var(--text-body-sm); line-height:1.5; }
.rt-calendar__nav{ display:grid; grid-template-columns:42px 1fr 42px; align-items:center; gap:var(--space-2); margin-bottom:var(--space-4); text-align:center; }
.rt-calendar__nav strong{ font-family:var(--font-display); font-size:1.15rem; color:var(--text-strong); }
.rt-calendar__nav button{ width:42px; height:42px; color:var(--navy-800); background:var(--navy-50); border:1px solid var(--navy-200); border-radius:var(--radius); font-size:1.6rem; cursor:pointer; }
.rt-calendar__week,.rt-calendar__days{ display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:4px; }
.rt-calendar__week{ margin-bottom:5px; color:var(--text-muted); font-family:var(--font-ui); font-size:.72rem; font-weight:800; text-align:center; text-transform:uppercase; }
.rt-calendar__days button{ aspect-ratio:1; min-width:0; color:var(--navy-800); background:transparent; border:1px solid transparent; border-radius:var(--radius-sm); font-family:var(--font-ui); font-weight:700; cursor:pointer; }
.rt-calendar__days button:hover:not(:disabled),.rt-calendar__days button:focus-visible{ background:var(--gold-100); border-color:var(--gold-500); outline:none; }
.rt-calendar__days button.is-selected{ color:var(--navy-900); background:var(--gold-400); border:2px solid var(--navy-800); box-shadow:2px 2px 0 var(--navy-800); }
.rt-calendar__days button:disabled{ color:var(--navy-300); cursor:not-allowed; text-decoration:line-through; }
.rt-calendar__nav--select{ display:flex; grid-template-columns:none; gap:var(--space-2); text-align:left; }
.rt-calendar__select{ flex:1 1 auto; min-width:0; height:44px; padding:0 12px; font-family:var(--font-ui); font-weight:800; font-size:1rem; color:var(--navy-800); background:var(--surface-raised); border:1px solid var(--border-field); border-radius:var(--radius); cursor:pointer; }
.rt-calendar__select:focus-visible{ outline:none; border-color:var(--navy-600); box-shadow:0 0 0 3px var(--navy-100); }
.rt-time{ display:grid; grid-template-columns:1fr 1fr .8fr; gap:var(--space-3); }
.rt-time>div>span{ display:block; margin-bottom:var(--space-2); color:var(--navy-700); font-family:var(--font-ui); font-size:var(--text-caption); font-weight:800; letter-spacing:.05em; text-transform:uppercase; text-align:center; }
.rt-time__list,.rt-time__period{ height:240px; overflow-y:auto; display:grid; align-content:start; gap:5px; padding:5px; background:var(--navy-50); border:1px solid var(--navy-200); border-radius:var(--radius); scrollbar-width:thin; }
.rt-time__period{ height:auto; }
.rt-time button{ min-height:42px; color:var(--navy-800); background:var(--surface-raised); border:1px solid transparent; border-radius:var(--radius-sm); font-family:var(--font-ui); font-weight:800; cursor:pointer; }
.rt-time button:hover,.rt-time button:focus-visible{ border-color:var(--gold-500); outline:none; }
.rt-time button.is-selected{ color:var(--navy-900); background:var(--gold-400); border:2px solid var(--navy-800); box-shadow:2px 2px 0 var(--navy-800); }
@keyframes rt-picker-fade{ from{opacity:0} }
@keyframes rt-picker-in{ from{opacity:0;transform:translateY(18px) scale(.98)} }
@media(max-width:560px){ .rt-picker-layer{align-items:end;padding:0}.rt-picker{width:100%;max-height:92dvh;border-width:2px 0 0;border-radius:var(--radius-lg) var(--radius-lg) 0 0;box-shadow:0 -7px 0 rgba(8,22,38,.3)}.rt-picker__head,.rt-picker [data-picker-content]{padding:var(--space-4)}.rt-picker__actions{position:sticky;bottom:0;padding:var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom));background:var(--surface-raised)}.rt-calendar__days button{min-height:40px;aspect-ratio:auto}.rt-time__list{height:min(230px,34dvh)} }

.rt-check{ display: flex; gap: var(--space-3); align-items: flex-start; font-family: var(--font-body); font-size: var(--text-body); cursor: pointer; }
.rt-check input{ appearance: none; width: 22px; height: 22px; flex: 0 0 22px; margin-top: 1px; border: var(--bw-brutal) solid var(--navy-800);
  border-radius: var(--radius-sm); background: var(--surface-raised); display: grid; place-items: center; cursor: pointer; transition: background var(--dur) var(--ease-standard); }
.rt-check input[type=radio]{ border-radius: 50%; }
.rt-check input:checked{ background: var(--gold-400); }
.rt-check input:checked::after{ content:""; width: 11px; height: 7px; border-left: 3px solid var(--navy-900); border-bottom: 3px solid var(--navy-900);
  transform: rotate(-45deg) translateY(-1px); }
.rt-check input[type=radio]:checked::after{ width: 9px; height: 9px; border: none; border-radius: 50%; background: var(--navy-900); transform: none; }
.rt-check input:focus-visible{ box-shadow: var(--focus-ring); }

/* ========================================== 
   COMPONENT CSS: rt-hero-css (CSS) 
   ========================================== */

.rt-hero{ position: relative; background: var(--surface-navy); color: var(--text-on-navy);
  overflow: hidden; width: 100%;
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: stretch; }
.rt-hero__inner{ position: relative; z-index: 2; padding: clamp(var(--space-10), 5vw, var(--space-24));
  display: flex; flex-direction: column; justify-content: center; }
.rt-hero h1{ font-family: var(--font-display); font-weight: 700; font-size: clamp(2.5rem, 1.3rem + 4vw, 4.75rem); line-height: var(--leading-tight); letter-spacing: var(--track-tight); margin: 0 0 var(--space-5); color: var(--brand-ivory); }
.rt-hero h1 .rt-hl{ color: var(--gold-400); font-style: italic; }
.rt-hero__lede{ font-family: var(--font-body); font-size: var(--text-body-lg); color: var(--navy-100); max-width: 48ch; margin: 0 0 var(--space-8); }
.rt-hero__cta{ display: flex; flex-wrap: wrap; gap: var(--space-4); }
.rt-hero__media{ position: relative; min-height: 420px; }
.rt-hero__media > img, .rt-hero__media > image-slot, .rt-hero__media > *{ position: absolute; inset: 0; width: 100%; height: 100%; }
.rt-hero__media > img{ object-fit: cover; display: block; }
/* protection gradient: blends the photo into the navy text column, no hard seam */
.rt-hero__media::after{ content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--navy-800) 0%, rgba(17,38,65,.55) 24%, rgba(17,38,65,0) 58%); }
/* CTAs on the dark ground: gold primary keeps a darker block, secondary becomes an ivory outline */
.rt-hero .rt-btn--brutal{ box-shadow: var(--btn-offset) var(--btn-offset) 0 0 var(--navy-900); }
.rt-hero .rt-btn--brutal:hover{ box-shadow: calc(var(--btn-offset)/2) calc(var(--btn-offset)/2) 0 0 var(--navy-900); }
.rt-hero .rt-btn--brutal:active{ box-shadow: 0 0 0 0 var(--navy-900); }
.rt-hero .rt-btn--brutal.rt-btn--secondary{ background: transparent; color: var(--brand-ivory); border-color: var(--brand-ivory); }
.rt-hero .rt-btn--brutal.rt-btn--secondary:hover{ background: rgba(250,248,243,.12); }
@media (max-width: 760px){
  .rt-hero{ grid-template-columns: 1fr; }
  .rt-hero__media{ order: -1; min-height: 240px; }
  .rt-hero__media::after{ background: linear-gradient(180deg, rgba(17,38,65,0) 45%, var(--navy-800) 100%); }
}

/* ==========================================
   HERO LOAD-IN ANIMATION + VIDEO LEGIBILITY
   (live hero = #top / .rt-hero-copy, not the legacy .rt-hero above)
   ========================================== */
/* Soft shadow keeps the ivory copy readable over the moving video */
.rt-hero-copy h1,
.rt-hero-copy p{ text-shadow: 0 2px 14px rgba(6,14,25,.55), 0 1px 3px rgba(6,14,25,.45); }

/* Background video fades + settles in once it starts playing (see initHeroVideo) */
@keyframes rtHeroMediaIn{
  from{ opacity: 0; transform: scale(1.07); }
  to{ opacity: 1; transform: scale(1); }
}
[data-hero-video]{ opacity: 0; }
[data-hero-video].is-loaded{ animation: rtHeroMediaIn 1200ms cubic-bezier(.22,.61,.36,1) both; }

/* Copy rises + fades in, staggered, the moment the page loads */
@keyframes rtHeroItemIn{
  from{ opacity: 0; transform: translateY(30px); }
  to{ opacity: 1; transform: none; }
}
.rt-hero-copy [data-hero-item]{ opacity: 0; animation: rtHeroItemIn 820ms cubic-bezier(.22,.61,.36,1) both; }
.rt-hero-copy [data-hero-item]:nth-child(1){ animation-delay: 240ms; }
.rt-hero-copy [data-hero-item]:nth-child(2){ animation-delay: 370ms; }
.rt-hero-copy [data-hero-item]:nth-child(3){ animation-delay: 500ms; }
.rt-hero-copy [data-hero-item]:nth-child(4){ animation-delay: 630ms; }
.rt-hero-copy [data-hero-item]:nth-child(5){ animation-delay: 760ms; }

/* Scroll cue: a quiet invitation at the base of the hero. Fades in after the
   copy has settled, then the whole label floats on a steady loop. The outer
   anchor owns centering; the inner wrapper owns the float so the two
   transforms never fight. Chevron is CSS-drawn (no font glyphs). */
.rt-hero-scroll-cue{
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 2; display: block;
  text-decoration: none;
  font-family: var(--font-ui); font-weight: 700; font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand-ivory);
  opacity: 0;
  animation: rtScrollCueIn 700ms var(--ease-smooth) 1150ms both;
}
.rt-hero-scroll-cue__inner{
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: rtScrollCueFloat 2s ease-in-out 1.85s infinite;
}
.rt-hero-scroll-cue:hover .rt-hero-scroll-cue__chevron,
.rt-hero-scroll-cue:focus-visible .rt-hero-scroll-cue__chevron{ border-color: var(--gold-400); }
.rt-hero-scroll-cue:focus-visible{ outline: 2px solid var(--gold-400); outline-offset: 5px; }
.rt-hero-scroll-cue__chevron{
  width: 10px; height: 10px;
  border-right: 2.5px solid var(--brand-ivory);
  border-bottom: 2.5px solid var(--brand-ivory);
  transform: rotate(45deg);
}
@keyframes rtScrollCueIn{ from{ opacity: 0; } to{ opacity: .92; } }
@keyframes rtScrollCueFloat{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(8px); }
}

@media (prefers-reduced-motion: reduce){
  [data-hero-video],
  [data-hero-video].is-loaded,
  .rt-hero-copy [data-hero-item]{ animation: none; opacity: 1; transform: none; }
  .rt-hero-scroll-cue{ animation: none; opacity: .92; }
  .rt-hero-scroll-cue__inner{ animation: none; }
}

/* ========================================== 
   COMPONENT CSS: rt-mkt-card-css (CSS) 
   ========================================== */

.rt-mkt-card{
  background: var(--surface-raised); border: var(--bw-brutal) solid var(--border-strong);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-block-lg); padding: var(--space-8);
  transition: transform var(--dur-slow) var(--ease-smooth), box-shadow var(--dur-slow) var(--ease-smooth);
}
.rt-mkt-card:hover{ transform: translate(-3px,-3px); box-shadow: 11px 11px 0 0 var(--navy-800); }
.rt-mkt-card__icon{ width: 48px; height: 48px; display: grid; place-items: center; border: var(--bw-brutal) solid var(--border-strong);
  border-radius: var(--radius); background: var(--gold-300); margin-bottom: var(--space-5); color: var(--navy-800); }
.rt-mkt-card h3{ font-family: var(--font-display); font-size: var(--text-h3); margin: 0 0 var(--space-2); color: var(--text-strong); }
.rt-mkt-card p{ font-family: var(--font-body); color: var(--text-muted); margin: 0; }
/* ========================================== 
   COMPONENT CSS: rt-footer-css (CSS) 
   ========================================== */

.rt-footer{ background: var(--navy-800); color: var(--text-on-navy); border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-10); }
.rt-footer__grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-10); }
.rt-footer__brand{ margin-bottom: var(--space-4); }
.rt-footer__brand img{ height: 64px; width: auto; display: block; }
.rt-footer__wordmark{ font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--brand-ivory); }
.rt-footer p{ color: var(--navy-200); font-size: var(--text-body-sm); max-width: 42ch; }
.rt-footer h4{ font-family: var(--font-ui); font-weight: 700; font-size: var(--text-label); letter-spacing: var(--track-caps);
  text-transform: uppercase; color: var(--gold-300); margin: 0 0 var(--space-4); }
.rt-footer ul{ list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.rt-footer a{ color: var(--navy-100); text-decoration: none; font-family: var(--font-ui); font-size: var(--text-body-sm); transition: color var(--dur) var(--ease-standard); }
.rt-footer a:hover{ color: var(--gold-300); }
.rt-footer__bar{ margin-top: var(--space-10); padding-top: var(--space-5); border-top: 1px solid var(--navy-700);
  font-size: var(--text-body-sm); color: var(--navy-300); font-family: var(--font-ui); }
@media (max-width: 760px){ .rt-footer__grid{ grid-template-columns: 1fr; gap: var(--space-8); } }

/* Levels grid: 4 across on wide desktop, 2x2 on tablet, single column on mobile. */
@media (max-width: 1024px){ .rt-levels-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .rt-levels-grid{ grid-template-columns: 1fr; } }

/* ========================================== 
   COMPONENT CSS: rt-nav-css (CSS) 
   ========================================== */

.rt-nav{ display: flex; align-items: center; justify-content: space-between; gap: var(--space-6);
  background: var(--surface-raised); border: var(--bw-brutal) solid var(--border-strong); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-block); padding: var(--space-3) var(--space-5); }
.rt-nav__brand{ display: inline-flex; align-items: center; }
.rt-nav__brand img{ height: 48px; width: auto; display: block; }
.rt-nav__wordmark{ font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--navy-800); letter-spacing: var(--track-tight); }
.rt-nav__links{ display: flex; gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
.rt-nav__links a{ font-family: var(--font-ui); font-weight: 600; font-size: var(--text-body-sm); color: var(--navy-700);
  text-decoration: none; padding: var(--space-2) 0; border-bottom: 2px solid transparent; transition: border-color var(--dur) var(--ease-standard); }
.rt-nav__links a:hover{ border-bottom-color: var(--gold-400); }
@media (max-width: 760px){ .rt-nav__links{ display: none; } }

/* ========================================== 
   COMPONENT CSS: rt-tabs-css (CSS) 
   ========================================== */

.rt-tabs{ display: inline-flex; gap: 4px; background: var(--surface-sunken); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 4px; }
.rt-tab{ font-family: var(--font-ui); font-weight: 700; font-size: var(--text-body-sm); color: var(--text-muted); background: transparent;
  border: none; padding: 9px 16px; border-radius: var(--radius); cursor: pointer; transition: background var(--dur) var(--ease-standard), color var(--dur), box-shadow var(--dur) var(--ease-standard); }
.rt-tab:hover{ color: var(--navy-800); }
.rt-tab.is-active{ background: var(--surface-raised); color: var(--navy-800); box-shadow: var(--shadow-1); }
.rt-tab:focus-visible{ box-shadow: var(--focus-ring); }

/* ========================================== 
   COMPONENT CSS: rt-kpi-css (CSS) 
   ========================================== */

.rt-kpi{ background: var(--surface-raised); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); padding: var(--space-5); }
.rt-kpi__label{ font-family: var(--font-ui); font-weight: 700; font-size: var(--text-micro); letter-spacing: .06em; text-transform: uppercase; color: var(--text-subtle); }
.rt-kpi__val{ font-family: var(--font-ui); font-weight: 800; font-variant-numeric: tabular-nums; font-size: 2.25rem; line-height: 1.1; color: var(--navy-800); margin-top: var(--space-2); }
.rt-kpi__delta{ font-family: var(--font-ui); font-weight: 700; font-size: var(--text-body-sm); margin-top: var(--space-2); display: inline-flex; gap: 4px; }
.rt-kpi__delta.is-up{ color: var(--success); }
.rt-kpi__delta.is-down{ color: var(--error); }
.rt-kpi__delta.is-flat{ color: var(--text-subtle); }

/* ========================================== 
   COMPONENT CSS: rt-stat-css (CSS) 
   ========================================== */

.rt-stat{ border: var(--bw-brutal) solid var(--border-strong); border-radius: var(--radius-lg); background: var(--surface-raised);
  box-shadow: var(--shadow-block); padding: var(--space-6); }
.rt-stat__num{ font-family: var(--font-ui); font-weight: 800; font-variant-numeric: tabular-nums; font-size: clamp(2.5rem,4vw,3.25rem);
  line-height: 1; color: var(--navy-800); letter-spacing: -0.02em; }
.rt-stat__num .rt-stat__u{ color: var(--gold-600); }
.rt-stat__label{ font-family: var(--font-ui); font-weight: 700; font-size: var(--text-label); letter-spacing: var(--track-caps);
  text-transform: uppercase; color: var(--text-subtle); margin-top: var(--space-3); }

/* ========================================== 
   COMPONENT CSS: rt-pill-css (CSS) 
   ========================================== */

.rt-pill{ display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-ui); font-weight: 700;
  font-size: var(--text-label); letter-spacing: .03em; padding: 5px 12px; border-radius: var(--radius-full); border: 1px solid transparent; white-space: nowrap; }
.rt-pill::before{ content:""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 7px; }
.rt-pill--scheduled{ background: var(--navy-50);    color: var(--navy-700);    border-color: var(--navy-200); }
.rt-pill--enroute{   background: var(--info-bg);    color: var(--info);        border-color: var(--info-border); }
.rt-pill--arrived{   background: var(--warning-bg); color: var(--warning);     border-color: var(--warning-border); }
.rt-pill--onboard{   background: var(--gold-100);   color: var(--gold-700);    border-color: var(--gold-300); }
.rt-pill--completed{ background: var(--success-bg); color: var(--success);     border-color: var(--success-border); }
.rt-pill--cancelled{ background: var(--neutral-100);color: var(--neutral-600); border-color: var(--neutral-300); }
.rt-pill--noshow{    background: var(--error-bg);   color: var(--error);       border-color: var(--error-border); }

/* ========================================== 
   COMPONENT CSS: rt-manifest-css (CSS) 
   ========================================== */

.rt-table-wrap{ overflow-x: auto; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); }
.rt-manifest{ width: 100%; border-collapse: collapse; background: var(--surface-raised); font-size: var(--text-body-sm); }
.rt-manifest th{ font-family: var(--font-ui); font-weight: 700; font-size: var(--text-micro); letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-subtle); text-align: left; padding: var(--space-3) var(--space-4); background: var(--surface-sunken); border-bottom: 1px solid var(--border-soft); white-space: nowrap; }
.rt-manifest td{ font-family: var(--font-body); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border-soft); color: var(--text); vertical-align: middle; }
.rt-manifest tbody tr{ transition: background var(--dur-fast) var(--ease-standard); }
.rt-manifest tbody tr:hover{ background: var(--navy-50); }
.rt-manifest tbody tr.is-clickable{ cursor: pointer; }
.rt-manifest tbody tr.is-selected{ background: var(--gold-50); box-shadow: inset 3px 0 0 0 var(--gold-400); }
.rt-manifest tbody tr:last-child td{ border-bottom: none; }
.rt-manifest .rt-num{ font-family: var(--font-ui); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.rt-manifest .rt-rider{ font-weight: 700; color: var(--navy-800); font-family: var(--font-ui); }
.rt-manifest__empty{ padding: var(--space-10); text-align: center; color: var(--text-subtle); font-family: var(--font-ui); }

/* ========================================== 
   COMPONENT CSS: rt-trip-css (CSS) 
   ========================================== */

.rt-trip{ background: var(--surface-raised); border: 1px solid var(--border-soft); border-left: 4px solid var(--gold-400);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-1); padding: var(--space-5); display: grid; gap: var(--space-3); }
.rt-trip__top{ display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); }
.rt-trip__rider{ font-family: var(--font-display); font-weight: 600; font-size: var(--text-h4); color: var(--navy-800); }
.rt-trip__meta{ display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-family: var(--font-ui); font-size: var(--text-body-sm); color: var(--text-muted); }
.rt-trip__meta b{ color: var(--navy-700); font-weight: 700; }
.rt-trip__num{ font-variant-numeric: tabular-nums; font-family: var(--font-ui); font-weight: 700; color: var(--navy-800); }
.rt-trip__leg{ display: grid; grid-template-columns: 18px 1fr; gap: var(--space-3); align-items: start; font-size: var(--text-body-sm); }
.rt-trip__dot{ width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; border: 2px solid var(--navy-800); }
.rt-trip__dot.is-pickup{ background: var(--gold-400); }

/* ==========================================
   LEGAL PAGES STYLING (TOS & Privacy)
   ========================================== */
.lg-acc-body li::marker, .lg-doc li::marker { color: var(--gold-600); }
.lg-crumb { transition: color var(--dur) var(--ease-smooth); }
.lg-crumb:hover { color: var(--gold-300); }

.lg-body { display: grid; grid-template-columns: 282px minmax(0, 1fr); gap: clamp(24px, 3.5vw, 52px); align-items: start; }
@media (max-width: 900px){ .lg-body { grid-template-columns: 1fr; } .lg-toc { position: static !important; } }

.lg-toc a { transition: background var(--dur) var(--ease-smooth), color var(--dur) var(--ease-smooth), border-color var(--dur) var(--ease-smooth); }
.lg-toc a:hover { background: var(--navy-50); color: var(--navy-900); }
.lg-toc a.is-active { background: var(--navy-50); color: var(--navy-900); border-left-color: var(--gold-400) !important; font-weight: 800; }

.lg-acc-q { transition: background var(--dur) var(--ease-smooth); }
.lg-acc-q:hover { background: var(--navy-50); }
[data-acc][data-open="1"] .lg-acc-q { background: var(--navy-50); }
[data-acc][data-open="1"] .lg-badge { background: var(--gold-400) !important; color: var(--navy-900) !important; }
[data-acc-chev] { transition: transform var(--dur) var(--ease-smooth); }
[data-acc-a] { transition: max-height var(--dur-slow) var(--ease-smooth), opacity var(--dur) var(--ease-smooth); }
.lg-doc > section:last-child { border-bottom: none !important; }
@media (max-width: 560px){ .lg-acc-body { padding-left: clamp(18px, 4vw, 24px) !important; } }

.lg-btn-on-navy.rt-btn--brutal { box-shadow: 4px 4px 0 0 var(--navy-900); }
.lg-btn-on-navy.rt-btn--brutal:hover { box-shadow: 2px 2px 0 0 var(--navy-900); }
.lg-btn-on-navy.rt-btn--brutal:active { box-shadow: 0 0 0 0 var(--navy-900); }

/* Global Anchor Scroll Margin offset for Sticky Header */
#services, #levels, #safety, #area, #reviews, #faq, #agreement, #service, #nonemergency, #assistance, #booking, #willcall, #cancellations, #payment, #responsibilities, #website, #accessibility, #liability, #law, #changes, #contact {
  scroll-margin-top: 110px !important;
}

@media print {
  [data-hdr], [data-backtop], .lg-toc, [data-menu], .lg-actions, .lg-contact-cta, footer { display: none !important; }
  .lg-body { grid-template-columns: 1fr !important; }
  [data-acc-a] { max-height: none !important; opacity: 1 !important; overflow: visible !important; }
  .lg-masthead { background: #fff !important; }
  .lg-masthead h1, .lg-masthead p, .lg-masthead a, .lg-masthead span, .lg-masthead li { color: #111 !important; }
  .lg-doc { box-shadow: none !important; border-color: #111 !important; }
  body { background: #fff !important; }
}

/* Offset layouts for floating header */
.lg-masthead {
  margin-top: 86px !important;
}
.lg-toc {
  top: 112px !important;
}
/* Current transportation network partners */
.rt-partners {
	margin-top: clamp(80px, 9vw, 132px);
	padding: clamp(58px, 7vw, 92px) 0;
	background: var(--navy-50);
	border-block: 2px solid var(--navy-800);
	scroll-margin-top: 90px;
}

.rt-partners__inner {
	width: min(1240px, calc(100% - 64px));
	margin-inline: auto;
}

.rt-partners__heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 28px 48px;
	padding-bottom: 22px;
	border-bottom: 3px solid var(--navy-800);
}

.rt-partners__heading > div { max-width: 760px; }
.rt-partners__heading h2 {
	margin: 8px 0 12px;
	font-family: var(--font-display);
	font-size: var(--text-h2);
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: var(--text-strong);
}

.rt-partners__heading p:last-child {
	max-width: 68ch;
	margin: 0;
	font-family: var(--font-body);
	line-height: 1.6;
	color: var(--text-muted);
}

.rt-partners__eyebrow {
	margin: 0;
	font-family: var(--font-ui);
	font-size: var(--text-label);
	font-weight: 800;
	letter-spacing: var(--track-caps);
	text-transform: uppercase;
	color: var(--gold-700);
}

.rt-partner-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
	margin-top: 30px;
}

.rt-partner-card {
	display: flex;
	min-width: 0;
	min-height: 180px;
	flex-direction: column;
	justify-content: space-between;
	padding: 18px;
	background: #fff;
	border: 2px solid var(--navy-800);
	border-radius: var(--radius-lg);
	box-shadow: 4px 4px 0 0 var(--navy-900);
	transition: transform .3s var(--ease-spring), box-shadow .3s var(--ease-spring), background-color .3s var(--ease-smooth);
}

.rt-partner-card:hover,
.rt-partner-card:focus-within {
	transform: translate(-3px, -5px);
	box-shadow: 8px 9px 0 0 var(--navy-900);
	background: var(--brand-ivory);
}

.rt-partner-card__logo-wrap {
	display: grid;
	min-height: 106px;
	place-items: center;
	padding: 8px;
}

.rt-partner-logo {
	display: block;
	max-width: 100%;
	width: auto;
	height: auto;
	max-height: 82px;
	opacity: .76;
	filter: saturate(.72) contrast(.96);
	transform: scale(.96);
	transition: opacity .28s var(--ease-smooth), filter .28s var(--ease-smooth), transform .34s var(--ease-spring);
}

.rt-partner-card:first-child .rt-partner-logo {
	max-height: 112px;
	opacity: .88;
	filter: none;
}

.rt-partner-card:hover .rt-partner-logo,
.rt-partner-card:focus-within .rt-partner-logo {
	opacity: 1;
	filter: saturate(1) contrast(1);
	transform: scale(1.035);
}

.rt-partner-card h3 {
	margin: 12px 0 0;
	font-family: var(--font-ui);
	font-size: .86rem;
	font-weight: 800;
	line-height: 1.3;
	text-align: center;
	color: var(--navy-800);
}

.rt-partners__more {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 24px 0 0;
	font-family: var(--font-ui);
	font-weight: 800;
	color: var(--navy-700);
}

.rt-partners__more span {
	display: inline-grid;
	width: 30px;
	height: 30px;
	place-items: center;
	background: var(--gold-400);
	border: 2px solid var(--navy-800);
	border-radius: var(--radius-full);
	color: var(--navy-900);
}

@media (max-width: 1024px) {
	.rt-partner-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
	.rt-partners__inner { width: min(100% - 32px, 1240px); }
	.rt-partners__heading { align-items: flex-start; flex-direction: column; }
	.rt-partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rt-partner-card { min-height: 160px; padding: 14px; }
	.rt-partner-card__logo-wrap { min-height: 88px; }
	.rt-partner-logo { max-height: 68px; opacity: .82; }
	.rt-partner-card:first-child .rt-partner-logo { max-height: 98px; }
	.rt-partner-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 380px) {
	.rt-partner-grid { grid-template-columns: 1fr; }
}
