/* ===== Trucker Space page: colors of the Trucker Space platform itself =====
   Source: the portal's own tokens in src/index.css
     .portal-shell sidebar  hsl(213 100% 9%)  -> #00152E   (navy)
     .portal-shell accent   hsl(213 70% 14%)  -> #0B213D
     .portal-shell primary  hsl(172 72% 45%)  -> #20C5AF   (turquoise: buttons, controls)
     .auth-shell  cyan      hsl(188 88% 55%)  -> #27D6F1   (login glow)
   Scoped to <main> of trucker-space.html: header, footer and the rest of the site keep
   the In Trucks corporate green. */
body[data-page="ts"] main {
  --teal: #20C5AF;
  --teal-600: #169E8C;
  --teal-300: #6FE3D2;
  --teal-50: #E8FAF7;
  --ts-navy: #00152E;
  --ts-navy-2: #0B213D;
  --ts-cyan: #27D6F1;
}

/* Portal section: navy + turquoise/cyan glow, like the portal sign-in */
body[data-page="ts"] .ts-sec {
  background:
    radial-gradient(1100px 600px at 85% 0%, rgba(32,197,175,.20), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(39,214,241,.12), transparent 60%),
    linear-gradient(160deg, var(--ts-navy-2) 0%, var(--ts-navy) 60%);
}
body[data-page="ts"] .feat.on .ic { background: rgba(32,197,175,.16); border-color: rgba(32,197,175,.45); }
body[data-page="ts"] .feat.on { border-color: rgba(32,197,175,.35); }
body[data-page="ts"] .rs-how li::before { background: rgba(32,197,175,.12); border-color: rgba(32,197,175,.35); }
body[data-page="ts"] .rs-how li:not(:last-child)::after { background: linear-gradient(rgba(32,197,175,.45), rgba(32,197,175,.05)); }
body[data-page="ts"] .rs-phone { background: var(--ts-navy); }

/* Buttons in the portal's turquoise; text in the portal navy for contrast */
body[data-page="ts"] main .btn-teal { background: var(--teal); color: var(--ts-navy); box-shadow: 0 10px 28px -10px rgba(32,197,175,.75); }
body[data-page="ts"] main .btn-teal:hover { background: var(--teal-300); }

/* "How to get your COI": step numbers and video in portal colors */
body[data-page="ts"] .step-v::before { background: var(--ts-navy); color: var(--teal); }
body[data-page="ts"] .video { background: var(--ts-navy); }
body[data-page="ts"] .video button.poster {
  background: radial-gradient(circle at 70% 20%, rgba(32,197,175,.35), transparent 55%), linear-gradient(150deg, var(--ts-navy-2), var(--ts-navy));
}
body[data-page="ts"] .video .poster .pl { background: var(--teal); color: var(--ts-navy); box-shadow: 0 0 0 12px rgba(32,197,175,.2); }
body[data-page="ts"] .coi-grid h2 em { color: inherit; }

/* Head: the Trucker Space logo as the protagonist (left), title and text on the right */
body[data-page="ts"] .ts-head { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 64px; }
body[data-page="ts"] .ts-head .ts-logo { position: relative; margin: 0; display: grid; justify-items: center; padding: 34px 30px 26px; border-radius: 28px; background: linear-gradient(160deg, rgba(32,197,175,.10), rgba(39,214,241,.04)); border: 1px solid rgba(32,197,175,.25); isolation: isolate; }
body[data-page="ts"] .ts-head .ts-logo::before { content: ""; position: absolute; inset: -30px; z-index: -1; background: radial-gradient(circle closest-side, rgba(32,197,175,.28), transparent); }
body[data-page="ts"] .ts-logo-crop { width: min(400px, 100%); }
body[data-page="ts"] .ts-logo-eb { margin-top: 18px; padding: 6px 14px; border-radius: 99px; background: rgba(32,197,175,.12); border: 1px solid rgba(32,197,175,.35); }
body[data-page="ts"] .ts-head h2 { margin-top: 0; }
body[data-page="ts"] .ts-head .sub { margin-bottom: 22px; }

/* "Access Trucker Space": prominent, on top of "How it works" */
body[data-page="ts"] .rs-how .rs-cta { display: flex; width: 280px; max-width: 100%; height: 56px; margin-bottom: 30px; font-size: 14px; letter-spacing: .06em; border-radius: 16px; justify-content: center; animation: tsCtaPulse 2.8s ease-in-out infinite; }
@keyframes tsCtaPulse { 0%, 100% { box-shadow: 0 0 0 6px rgba(32,197,175,.14), 0 18px 40px -14px rgba(32,197,175,.85); } 50% { box-shadow: 0 0 0 10px rgba(32,197,175,.08), 0 18px 40px -14px rgba(32,197,175,.85); } }
@media (prefers-reduced-motion: reduce) { body[data-page="ts"] .rs-how .rs-cta { animation: none; box-shadow: 0 0 0 6px rgba(32,197,175,.14), 0 18px 40px -14px rgba(32,197,175,.85); } }
@media (max-width: 1080px) {
  body[data-page="ts"] .ts-head { grid-template-columns: 1fr; gap: 28px; }
  body[data-page="ts"] .ts-logo-crop { width: min(320px, 100%); }
  body[data-page="ts"] .rs-how .rs-cta { width: 100%; }
}
@media (max-width: 640px) { body[data-page="ts"] .ts-head .ts-logo { padding: 26px 18px 20px; } }
