:root {
  /* SCS brand greens, sampled from the diamond-lattice brand background:
     deep forest through to bright lime. */
  --green-deepest: #0E4F20;
  --green-deep: #136A2B;
  --green: #2E8B2F;
  --green-mid: #57A828;
  --green-bright: #8CC63F;
  --green-tint: #F1F8EC;
  --green-tint-2: #E3F1D7;

  /* Navy stays for body copy and the Specialized First lockup, per the sheets. */
  --navy: #1B2A5B;
  --navy-deep: #142146;
  --navy-tint: #EEF1F8;

  --ink: #14171a;
  --ink-soft: #565f6b;
  --ink-faint: #7b8591;
  --rule: #dde1e6;
  --rule-soft: #eef0f3;
  --paper: #ffffff;
  --ground: #f7f8fb;
  --danger: #b3261e;

  --font-head: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: 'Afacad', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: var(--font-body);

  --wrap: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(20, 23, 26, 0.04), 0 1px 1px rgba(20, 23, 26, 0.03);
  --shadow-md: 0 8px 24px rgba(20, 23, 26, 0.07), 0 2px 6px rgba(20, 23, 26, 0.04);
  --shadow-lg: 0 16px 40px rgba(20, 23, 26, 0.10);
  --shadow: var(--shadow-md);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.btn,
.eyebrow,
.stat__value,
.stat__label,
.lockup__name {
  font-family: var(--font-head);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.22;
  color: var(--navy);
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--green-deep);
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  color: #fff;
  padding: 44px 0 56px;
  background:
    linear-gradient(135deg, rgba(14, 79, 32, 0.92) 0%, rgba(19, 106, 43, 0.86) 38%,
                    rgba(87, 168, 40, 0.82) 72%, rgba(140, 198, 63, 0.78) 100%),
    url('/assets/scs-diamond-bg.svg') center / cover no-repeat,
    var(--green-deep);
  overflow: hidden;
}

.hero__brands {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

.hero__logo {
  height: 52px;
  width: auto;
  color: #fff;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.hero__divider {
  width: 1px;
  align-self: stretch;
  min-height: 40px;
  background: rgba(255, 255, 255, 0.32);
}

.lockup--sf {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.lockup--sf .sf-a {
  color: #ffffff;
}

.lockup--sf .sf-bar {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

.lockup--sf .sf-b {
  color: #ffffff;
  font-weight: 400;
}

.hero__prepared {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(4px);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #fff;
  margin-bottom: 18px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(32px, 4.6vw, 48px);
  max-width: 19ch;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.hero__recap {
  margin-top: 24px;
  padding: 18px 22px;
  border-left: 3px solid rgba(255, 255, 255, 0.65);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  max-width: 64ch;
  color: rgba(255, 255, 255, 0.95);
  font-size: 18px;
}

.hero__recap p:last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------------------------- nav */

.subnav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.subnav__inner {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.subnav__inner::-webkit-scrollbar {
  display: none;
}

.subnav a {
  flex: 0 0 auto;
  padding: 15px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.subnav a:hover {
  color: var(--navy);
}

.subnav a.is-active {
  color: var(--green-deep);
  border-bottom-color: var(--green);
}

/* --------------------------------------------------------------- section */

.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 76px;
}

.section:last-of-type {
  border-bottom: 0;
}

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green-deep);
  margin-bottom: 8px;
}

.section h2 {
  font-size: clamp(24px, 3vw, 31px);
  max-width: 24ch;
}

.lead {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 68ch;
  margin: 16px 0 0;
}

/* -------------------------------------------------------------- download */

.dl {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  box-shadow: var(--shadow);
  flex: 0 0 auto;
}

.dl:hover {
  border-color: var(--green);
  color: var(--green-deep);
}

.dl__meta {
  font-weight: 400;
  color: var(--ink-faint);
}

/* ----------------------------------------------------------------- stats */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 34px;
}

.stat {
  background: var(--paper);
  padding: 22px 20px;
}

.stat__value {
  font-size: 27px;
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1.1;
}

.stat__label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin-top: 6px;
}

.stat__note {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 8px;
  line-height: 1.5;
}

/* -------------------------------------------------------------- featured */

.featured {
  margin-top: 34px;
  padding: 26px 28px;
  background: var(--green-tint);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.featured + .featured {
  margin-top: 16px;
}

.featured h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.featured p {
  color: var(--ink-soft);
  margin: 0;
  max-width: 70ch;
}

.featured__figure {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(26, 107, 74, 0.2);
}

.featured__figure strong {
  font-size: 26px;
  color: var(--green-deep);
}

.featured__figure span {
  font-size: 14px;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------- columns */

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
  margin-top: 34px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green-deep);
  margin-bottom: 14px;
}

.card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.card li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 11px;
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.card li:last-child {
  margin-bottom: 0;
}

.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

/* ----------------------------------------------------------- performance */

.perf {
  margin-top: 34px;
  padding: 24px 26px;
  border: 1px dashed var(--rule);
  border-radius: var(--radius);
  background: var(--navy-tint);
}

.perf h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.perf__note {
  font-size: 14px;
  color: var(--ink-faint);
  margin: 6px 0 18px;
}

.perf__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.perf__value {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
}

.perf__label {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}

/* Placeholder chip — makes an unfilled figure unmistakable, so no invented
   number ever reaches a prospect. */
.tbc {
  display: inline-block;
  padding: 2px 9px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8a6100;
  background: #fdf3d8;
  border: 1px dashed #d9ae4a;
  border-radius: 5px;
  vertical-align: middle;
}

/* -------------------------------------------------------------- timeline */

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 36px;
}

.stage {
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--rule);
  border-radius: var(--radius);
  padding: 18px 18px 20px;
  cursor: pointer;
  font: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stage:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.stage.is-active {
  box-shadow: var(--shadow);
}

.stage[data-brand="provider"] { border-top-color: #8c93a8; }
.stage[data-brand="sf"]         { border-top-color: var(--green); }
.stage[data-brand="transition"] { border-top-color: #d9ae4a; }
.stage[data-brand="scs"]        { border-top-color: var(--navy); }

.stage__marker {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

.stage__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 7px;
  line-height: 1.35;
}

.stage__more {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-deep);
  margin-top: 12px;
}

.stage.is-active .stage__more {
  color: var(--ink-faint);
}

.stage__detail {
  margin-top: 18px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
}

.stage__detail h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.stage__detail p {
  color: var(--ink-soft);
  max-width: 70ch;
}

.stage__detail ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px 24px;
}

.stage__detail li {
  position: relative;
  padding-left: 18px;
  font-size: 15.5px;
  color: var(--ink-soft);
}

.stage__detail li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

/* ------------------------------------------------------------ compliance */

.standards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.standard {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.standard__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.standard__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

.standard p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------------ gate */

.gate {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 34px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  margin-top: 30px;
}

.gate__icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--navy-tint);
  color: var(--navy);
  display: grid;
  place-items: center;
}

.gate p {
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 auto 18px;
}

.gate__form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.gate__form input {
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 11px 15px;
  width: 190px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  text-align: center;
}

.gate__form input:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  border-color: transparent;
}

.gate__error {
  color: #b3261e;
  font-size: 14px;
  margin: 14px 0 0;
  min-height: 20px;
}

/* --------------------------------------------------------------- buttons */

.btn {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 24px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--green-deep);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.btn:hover {
  background: var(--green-deepest);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* On the green CTA band, the primary action inverts to white. */
.cta .btn {
  background: #fff;
  color: var(--green-deepest);
}

.cta .btn:hover {
  background: #fff;
  color: var(--green-deepest);
}

.btn--navy {
  background: var(--navy);
}

.btn--navy:hover {
  background: var(--navy-deep);
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--navy);
}

.btn--ghost:hover {
  background: var(--ground);
  border-color: var(--navy);
}

.btn[disabled] {
  opacity: 0.55;
  cursor: default;
}

/* ------------------------------------------------------------------- cta */

.cta {
  position: relative;
  color: #fff;
  padding: 58px 0;
  background:
    linear-gradient(135deg, rgba(14, 79, 32, 0.94) 0%, rgba(19, 106, 43, 0.88) 45%,
                    rgba(87, 168, 40, 0.84) 100%),
    url('/assets/scs-diamond-bg.svg') center / cover no-repeat,
    var(--green-deep);
}

.cta__logo {
  height: 38px;
  width: auto;
  color: #fff;
  opacity: 0.9;
  margin-bottom: 22px;
}

.cta h2 {
  color: #fff;
  font-size: clamp(24px, 3vw, 31px);
}

.cta p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 56ch;
  margin-top: 12px;
}

.cta__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 26px;
}

.cta__contact {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
}

.cta__contact strong {
  color: #fff;
  display: block;
  margin-bottom: 3px;
}

.cta__contact a {
  color: #D6F0B4;
}

/* ---------------------------------------------------------------- footer */

.foot {
  padding: 26px 0 40px;
  font-size: 13.5px;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------------- states */

.state {
  max-width: 460px;
  margin: 18vh auto;
  text-align: center;
  padding: 0 24px;
}

.state h1 {
  font-size: 24px;
  margin-bottom: 10px;
}

.state p {
  color: var(--ink-soft);
}

/* --------------------------------------------------------------- mobile */

@media (max-width: 900px) {
  .timeline {
    grid-template-columns: 1fr;
  }

  .stage {
    border-top-width: 1px;
    border-left: 4px solid var(--rule);
  }

  .stage[data-brand="provider"] { border-left-color: #8c93a8; border-top-color: var(--rule); }
  .stage[data-brand="sf"]         { border-left-color: var(--green); border-top-color: var(--rule); }
  .stage[data-brand="transition"] { border-left-color: #d9ae4a; border-top-color: var(--rule); }
  .stage[data-brand="scs"]        { border-left-color: var(--navy); border-top-color: var(--rule); }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding: 30px 0 36px;
  }

  .section {
    padding: 42px 0;
  }

  .section__head {
    flex-direction: column;
  }
}

/* ---------------------------------------------------------------- print */

@media print {
  body {
    background: #fff;
    font-size: 11pt;
  }

  .subnav,
  .gate__form,
  .stage__more,
  .cta__actions,
  .no-print {
    display: none !important;
  }

  .hero,
  .cta {
    background: #fff !important;
    color: var(--ink) !important;
    padding: 18pt 0;
  }

  .hero h1,
  .cta h2 {
    color: var(--navy) !important;
  }

  .hero__recap,
  .cta p,
  .cta__contact {
    color: var(--ink-soft) !important;
  }

  .lockup,
  .lockup__mark {
    color: var(--navy) !important;
  }

  .lockup__name {
    color: var(--ink-soft) !important;
  }

  .section {
    page-break-inside: avoid;
    padding: 16pt 0;
  }

  .card,
  .stat,
  .standard,
  .stage__detail {
    box-shadow: none;
  }

  /* Every stage detail prints, since nothing is clickable on paper. */
  .stage__detail {
    display: block !important;
  }
}

/* ============================================================== login screen
   Full-bleed brand background with a floating card, rather than a bare
   password box. */

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--ground);
}

.login-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 52px 56px;
  color: #fff;
  background:
    linear-gradient(140deg, rgba(14, 79, 32, 0.93) 0%, rgba(19, 106, 43, 0.88) 40%,
                    rgba(87, 168, 40, 0.84) 74%, rgba(140, 198, 63, 0.8) 100%),
    url('/assets/scs-diamond-bg.svg') center / cover no-repeat,
    var(--green-deep);
}

.login-brand__logo {
  height: 60px;
  width: auto;
  color: #fff;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));
}

.login-brand__pitch {
  max-width: 22ch;
  font-family: var(--font-head);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.2);
}

.login-brand__sub {
  margin-top: 16px;
  max-width: 34ch;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.92);
}

.login-brand__foot {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.02em;
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 38px 34px;
}

.login-card h2 {
  font-size: 25px;
  color: var(--navy);
}

.login-card .panel__note {
  margin-bottom: 26px;
}

.login-card .btn {
  width: 100%;
  padding: 13px 24px;
  font-size: 16px;
}

@media (max-width: 860px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-brand {
    padding: 34px 28px;
    gap: 22px;
  }

  .login-brand__foot {
    display: none;
  }
}

/* ================================================================= uploads */

.drop {
  border: 2px dashed var(--rule);
  border-radius: var(--radius);
  background: var(--ground);
  padding: 26px 22px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.drop:hover,
.drop.is-over {
  border-color: var(--green-mid);
  background: var(--green-tint);
}

.drop__icon {
  font-size: 26px;
  line-height: 1;
  margin-bottom: 8px;
}

.drop__label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
}

.drop__hint {
  font-size: 13.5px;
  color: var(--ink-faint);
  margin-top: 4px;
}

.drop input[type="file"] {
  display: none;
}

.filelist {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.fileitem {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
}

.fileitem__icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--green-tint-2);
  color: var(--green-deepest);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-head);
}

.fileitem__name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--navy);
  font-weight: 600;
}

.fileitem__size {
  font-size: 13px;
  color: var(--ink-faint);
  flex: 0 0 auto;
}

.fileitem__remove {
  flex: 0 0 auto;
  font: inherit;
  font-size: 13px;
  padding: 4px 10px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
}

.fileitem__remove:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.fileitem__bar {
  flex: 0 0 70px;
  height: 5px;
  border-radius: 3px;
  background: var(--rule-soft);
  overflow: hidden;
}

.fileitem__bar span {
  display: block;
  height: 100%;
  background: var(--green-mid);
  transition: width 0.2s ease;
}

/* ============================================================== document list
   Per-client uploaded documents on the prospect page. */

.docs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.doc {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.doc:hover {
  border-color: var(--green-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.doc__icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--green-tint-2);
  color: var(--green-deepest);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.doc__body {
  flex: 1 1 auto;
  min-width: 0;
}

.doc__name {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doc__meta {
  display: block;
  font-size: 13.5px;
  color: var(--ink-faint);
  margin-top: 2px;
}

.doc__dl {
  flex: 0 0 auto;
  color: var(--green-mid);
  font-size: 18px;
}

/* Outlined action for use on the green CTA band, where a ghost button would
   otherwise be white on white. */
.btn--outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  box-shadow: none;
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
  color: #fff;
}

.cta .btn--outline {
  background: transparent;
  color: #fff;
}

.cta .btn--outline:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* The next-step tab is an action, not a section — pushed to the right and
   given the brand green so it reads differently from the content tabs. */
.subnav__cta {
  margin-left: auto;
  color: var(--green-deep) !important;
  font-weight: 700 !important;
}

.subnav__cta::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-mid);
  margin-right: 7px;
  vertical-align: middle;
}

.subnav__cta.is-active {
  border-bottom-color: var(--green) !important;
}

@media (max-width: 760px) {
  /* No room to push it right once the bar scrolls horizontally. */
  .subnav__cta {
    margin-left: 0;
  }
}

/* The CTA band is a jump target now, so it must clear the sticky bar too. */
.cta {
  scroll-margin-top: 60px;
}

/* ---------------------------------------------- document include/exclude */

.fileitem__use {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.fileitem__use input {
  width: 17px;
  height: 17px;
  cursor: pointer;
  accent-color: var(--green);
}

/* An excluded document stays listed but reads as inactive — it is kept on
   file, just not published to the page. */
.fileitem.is-excluded {
  background: var(--ground);
  border-style: dashed;
}

.fileitem.is-excluded .fileitem__name,
.fileitem.is-excluded .fileitem__icon,
.fileitem.is-excluded .fileitem__size {
  opacity: 0.5;
}

.fileitem.is-excluded .fileitem__name {
  text-decoration: line-through;
}

/* ------------------------------------------------------- destructive row */

.rowbtns button.is-danger {
  color: var(--danger);
  border-color: #edd3d1;
}

.rowbtns button.is-danger:hover {
  background: #fdecea;
  border-color: var(--danger);
}
