/* Stylesheet for public, unauthenticated pages only - extranet/pub/ (login,
   sign-up, privacy-policy, password-help, ...) and marketing/ (home, blog,
   products-services). Never loaded by the authenticated app - that's
   extranet.css, loaded via extranet/nav/extranet_header.php.

   Split out from the old site.css on 2026-08-20: site.css had drifted into a
   mix of real public-page styles and dead code from earlier landing-page
   iterations. The dead code (#truckintersection, .v_content, #p1b/#c1c,
   bare .hero/.footer, .green/.grey, .num, .required:before, .req:after) was
   dropped rather than carried forward - zero usage anywhere in the app. Four
   rules that turned out to be used by *authenticated* pages instead
   (.clickable-row, .glow, #scroll-up, bare <pre>) moved to extranet.css. */

html {
  position: relative;
  min-height: 100%;
}
body {
  color: #444;
  font-family: Roboto, sans-serif;
  font-size: 14px;
}

/* sticky footer: #page wraps <header>/#main/<footer> (see app_header.php /
   app_footer.php) - #main grows to fill any leftover viewport height on a
   short page (e.g. login) so the footer lands at the bottom of the viewport
   instead of riding up under the content. Replaces an old WordPress-era
   `body{margin-bottom:200px}` + `html{position:relative}` pair that was only
   half of that pattern (no matching `position:absolute` on the footer), so
   it never actually did anything. */
#page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}
#main {
  flex: 1 0 auto;
  /* breathing room between the sticky nav and page content - was
     previously flush against it. */
  padding-top: 28px;
}

/* extranet/pub/app_footer.php's <div class="clear"> - was only ever defined
   in extranet.css (never loaded here), so this predates the site.css split
   as an unstyled gap; added here 2026-08-20 to actually fix it. */
.clear { overflow: hidden; width: 100%; }

a#scroll-up i { color: #ffffff; }
a#scroll-up {
  bottom: 180px;
  position: fixed;
  right: 20px;
  display: none;
  background-color: rgba(8,70,168,.9);
  opacity: 0.5;
  padding: 10px 16px;
  border-radius: 2px;
}
a#scroll-up:hover { opacity: 1; }

.card-header {
  font-weight: bolder;
  background-color: #f5f5dc;
  font-size: 1rem;
}

/* shared brand chrome (navbar/footer) - mobile-first, v2 */
:root {
  --tsc-brand: #1f4e6b;
  --tsc-brand-dark: #17394e;
  --tsc-accent: #ff9900;
}
.bg-tsc-brand {
  background-color: var(--tsc-brand);
  background-image: linear-gradient(180deg, var(--tsc-brand), var(--tsc-brand-dark));
  border-bottom: 3px solid var(--tsc-accent);
}

/* modern card treatment - reusable across auth/registration-style pages (login, sign-up, ...) */
.tsc-modern-card {
  border: 1px solid rgba(31,78,107,0.14);
  border-top: 3px solid var(--tsc-accent);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(23,57,78,0.06), 0 12px 28px -8px rgba(23,57,78,0.18);
  overflow: hidden;
}
.tsc-modern-card .card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 0;
}
.tsc-tab-icon {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--tsc-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 0.8rem;
}
.tsc-eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5b6b74;
}
.tsc-modern-card .card-header h1,
.tsc-modern-card .card-header h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.tsc-modern-form .form-label,
.tsc-modern-form .col-form-label { font-size: 0.82rem; font-weight: 600; color: #5b6b74; }
.tsc-modern-form .input-group-text { background: #fff; border-color: #c9d3d8; color: #5b6b74; }
.tsc-modern-form .form-control { border-color: #c9d3d8; }
.tsc-modern-form .form-control:focus,
.tsc-modern-form .form-select:focus {
  border-color: var(--tsc-brand);
  box-shadow: 0 0 0 3px rgba(31,78,107,0.15);
}
.tsc-modern-form .input-group:focus-within .input-group-text { border-color: var(--tsc-brand); }

.btn-tsc {
  background: linear-gradient(180deg, var(--tsc-brand), var(--tsc-brand-dark));
  border: none;
  color: #fff;
  font-weight: 600;
}
.btn-tsc:hover,
.btn-tsc:focus {
  background: linear-gradient(180deg, var(--tsc-brand), var(--tsc-brand-dark));
  filter: brightness(1.08);
  color: #fff;
}
.btn-tsc:focus-visible { outline: 3px solid var(--tsc-accent); outline-offset: 2px; }

.tsc-links a { color: var(--tsc-brand); font-weight: 600; text-decoration: none; }
.tsc-links a:hover { color: var(--tsc-accent); }

/* used by extranet/login/index.php to beat a legacy square-bullet override */
#content ul.tsc-plain-list { list-style: none; padding-left: 0; margin-bottom: 1rem; color: #5b6b74; }

/* mobile/index.php app-icon badge */
.tscapp-icon {
  width: 150px;
  height: 150px;
  border: 2px solid #dee2e6;
  border-radius: 22%;
  background: url('/mobile/assets/340x340bb-80.png') center/cover no-repeat;
}

@media (max-width: 991.98px) {
  #tscPubNav .dropdown-menu {
    box-shadow: none;
    background-color: rgba(255,255,255,.06);
    margin: 0 0 .25rem .5rem;
  }
  #tscPubNav .dropdown-item, #tscPubNav .nav-link { color: rgba(255,255,255,.85); }
  #tscPubNav .dropdown-item:hover, #tscPubNav .nav-link:hover { color:#fff; }
}

/* extranet/privacy-policy/'s tabbed Terms/Privacy/Copyright content */
#tsc-terms h2 {font-family:sans-serif;font-size:18px;}
#tsc-terms h4 {font-family:sans-serif;font-size:18px;}
#tsc-terms p, #tsc-terms li {font-family:sans-serif;font-size:16px;}
#tsc-terms b {font-family:sans-serif;font-size:16px;}
#myTab li {list-style-type:none;}

.form-control:hover, .form-control:focus, .form-control:active, .custom-select:hover, .custom-select:focus {
  border:1px solid #ced4da !important;
  box-shadow:none !important;
}
input:focus, input:active {
  box-shadow:none !important;
}

@media print {
 .no-print, .fas, .far, .btn, .footer, form, a, #search {display:none;}
 body {font-family:helvetica neue,helvetica,arial; font-size:18px;}
 h1,h2,h3,h4 {font-variant:small-caps;}
}
@media only screen and (max-width: 500px) {
  .card, .card-header, .card-body, .card-footer { padding:2px; }
}
