/* Mereden boxes in the QuantCrest gradient style, in Mereden teal.
   QuantCrest's boxes are quiet: nearly white, fading to a pale tint, with one soft glow that eases in
   from an edge or corner at about 30% strength (16 eased stops, so there is no visible band), a hairline
   ring, no grain and no heavy shadow. Hover only lifts the ring and brightens the glow; nothing jumps.
   Only boxes change here. Page backgrounds, layout, nav and type stay as they are. */

:root {
  --qb-ring: 0 0 0 .5px rgba(7, 22, 21, .14), 0 1px 1px rgba(7, 22, 21, .04), 0 2px 4px rgba(7, 22, 21, .04);
  --qb-ring-hover: 0 0 0 .5px rgba(7, 22, 21, .22), 0 2px 3px rgba(7, 22, 21, .05), 0 8px 18px -8px rgba(7, 22, 21, .16);
  --qb-r: 16px;
  --qb-r-lg: 20px;
  --qb-ease: cubic-bezier(.4, 0, .2, 1);

  /* base: white fading to a pale teal-grey (QuantCrest: #FFFFFF to #EEF1F5) */
  --qb-base: linear-gradient(160deg, #ffffff 0%, #eef4f3 100%);
  /* base for big panels (QuantCrest --grad-soft: #F4F6F9 to #EEF1F5) */
  --qb-soft: linear-gradient(135deg, #f5f8f8 0%, #eef4f3 100%);

  /* the soft glow from the right edge (QuantCrest: rgba(160,187,220,.30), here a pale teal) */
  --qb-glow-edge: linear-gradient(to left,
    rgba(150,210,200,.30) 0%, rgba(150,210,200,.296) 4.8%, rgba(150,210,200,.285) 9.6%, rgba(150,210,200,.269) 14.4%,
    rgba(150,210,200,.247) 19.2%, rgba(150,210,200,.222) 24%, rgba(150,210,200,.194) 28.8%, rgba(150,210,200,.165) 33.6%,
    rgba(150,210,200,.135) 38.4%, rgba(150,210,200,.106) 43.2%, rgba(150,210,200,.078) 48%, rgba(150,210,200,.053) 52.8%,
    rgba(150,210,200,.031) 57.6%, rgba(150,210,200,.015) 62.4%, rgba(150,210,200,.004) 67.2%, rgba(150,210,200,0) 72%);

  /* the soft glow from the top-right corner, for big panels */
  --qb-glow-corner: radial-gradient(110% 90% at 100% 0%,
    rgba(150,210,200,.30) 0%, rgba(150,210,200,.296) 3.9%, rgba(150,210,200,.285) 7.7%, rgba(150,210,200,.269) 11.6%,
    rgba(150,210,200,.247) 15.5%, rgba(150,210,200,.222) 19.3%, rgba(150,210,200,.194) 23.2%, rgba(150,210,200,.165) 27.1%,
    rgba(150,210,200,.135) 30.9%, rgba(150,210,200,.106) 34.8%, rgba(150,210,200,.078) 38.7%, rgba(150,210,200,.053) 42.5%,
    rgba(150,210,200,.031) 46.4%, rgba(150,210,200,.015) 50.3%, rgba(150,210,200,.004) 54.1%, rgba(150,210,200,0) 58%);

  /* a faint top glow for form boxes */
  --qb-glow-top: radial-gradient(90% 60% at 100% 0%, rgba(150,210,200,.16) 0%, rgba(150,210,200,.08) 30%, rgba(150,210,200,0) 60%);
}

/* =====================================================================
   1. Cards across the site: white to pale, soft glow from the right edge
   ===================================================================== */
a.role-card, .role-card,
.opp-list-card, .opp-card,
.hp-card, .card, .task-card, .site-expert-card, .entry-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--qb-base) !important;
  border: 0 !important;
  border-radius: var(--qb-r) !important;
  box-shadow: var(--qb-ring) !important;
  transform: none !important;
  transition: box-shadow .3s var(--qb-ease) !important;
}
/* the glow sits on its own layer so hover can brighten it smoothly */
a.role-card::before, .role-card::before,
.opp-list-card::before, .opp-card::before,
.hp-card::before, .card::before, .task-card::before, .site-expert-card::before, .entry-card::before {
  content: "";
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--qb-glow-edge);
  opacity: .85;
  transition: opacity .3s var(--qb-ease);
}
a.role-card:hover, .role-card:hover,
.opp-list-card:hover, .opp-card:hover,
.hp-card:hover, .card:hover, .task-card:hover, .site-expert-card:hover, .entry-card:hover {
  box-shadow: var(--qb-ring-hover) !important;
  border: 0 !important;
}
a.role-card:hover::before, .role-card:hover::before,
.opp-list-card:hover::before, .opp-card:hover::before,
.hp-card:hover::before, .card:hover::before, .task-card:hover::before, .site-expert-card:hover::before {
  opacity: 1;
}
.opp-list-card.selected { box-shadow: inset 0 0 0 1px #0D9488, var(--qb-ring-hover) !important; }
.opp-list-card.selected::before { opacity: 1; }

/* lines and figures inside cards */
.role-card-foot, .opp-card-foot { border-top: .5px solid rgba(7, 22, 21, .1) !important; }
.role-card-rate, .opp-rate { color: #0F766E !important; font-weight: 500 !important; }
.seal-panel-row { border-bottom-color: rgba(7, 22, 21, .1) !important; }

/* avatars: a 10-colour palette that rotates from card to card, so
   neighbouring cards never show the same set of colours */
.role-card-avatars span, .opp-avatars span { border-color: #ffffff !important; color: #ffffff !important; }
:is(.role-card, .opp-list-card, .opp-card):nth-child(5n+1) :is(.role-card-avatars, .opp-avatars) span:nth-child(1) { background: #E5484D !important; }
:is(.role-card, .opp-list-card, .opp-card):nth-child(5n+1) :is(.role-card-avatars, .opp-avatars) span:nth-child(2) { background: #7C3AED !important; }
:is(.role-card, .opp-list-card, .opp-card):nth-child(5n+1) :is(.role-card-avatars, .opp-avatars) span:nth-child(3) { background: #0284C7 !important; }
:is(.role-card, .opp-list-card, .opp-card):nth-child(5n+2) :is(.role-card-avatars, .opp-avatars) span:nth-child(1) { background: #F76B15 !important; }
:is(.role-card, .opp-list-card, .opp-card):nth-child(5n+2) :is(.role-card-avatars, .opp-avatars) span:nth-child(2) { background: #DB2777 !important; }
:is(.role-card, .opp-list-card, .opp-card):nth-child(5n+2) :is(.role-card-avatars, .opp-avatars) span:nth-child(3) { background: #0D9488 !important; }
:is(.role-card, .opp-list-card, .opp-card):nth-child(5n+3) :is(.role-card-avatars, .opp-avatars) span:nth-child(1) { background: #16A34A !important; }
:is(.role-card, .opp-list-card, .opp-card):nth-child(5n+3) :is(.role-card-avatars, .opp-avatars) span:nth-child(2) { background: #D97706 !important; }
:is(.role-card, .opp-list-card, .opp-card):nth-child(5n+3) :is(.role-card-avatars, .opp-avatars) span:nth-child(3) { background: #E5484D !important; }
:is(.role-card, .opp-list-card, .opp-card):nth-child(5n+4) :is(.role-card-avatars, .opp-avatars) span:nth-child(1) { background: #0284C7 !important; }
:is(.role-card, .opp-list-card, .opp-card):nth-child(5n+4) :is(.role-card-avatars, .opp-avatars) span:nth-child(2) { background: #4F46E5 !important; }
:is(.role-card, .opp-list-card, .opp-card):nth-child(5n+4) :is(.role-card-avatars, .opp-avatars) span:nth-child(3) { background: #F76B15 !important; }
:is(.role-card, .opp-list-card, .opp-card):nth-child(5n+5) :is(.role-card-avatars, .opp-avatars) span:nth-child(1) { background: #0D9488 !important; }
:is(.role-card, .opp-list-card, .opp-card):nth-child(5n+5) :is(.role-card-avatars, .opp-avatars) span:nth-child(2) { background: #2563EB !important; }
:is(.role-card, .opp-list-card, .opp-card):nth-child(5n+5) :is(.role-card-avatars, .opp-avatars) span:nth-child(3) { background: #16A34A !important; }

/* icons: a small white tile with the ring */
.hp-icon {
  width: 40px !important; height: 40px !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #0F766E !important;
  box-shadow: var(--qb-ring);
  animation: none !important;
}

/* =====================================================================
   2. Big panels: soft base with a glow from the top-right corner
   ===================================================================== */
/* the "How it works" panel (clip, not hidden, so its side column stays sticky) */
.hl-process {
  background: var(--qb-glow-corner), var(--qb-soft) !important;
  box-shadow: var(--qb-ring);
  border-radius: 28px !important;
  overflow: clip;
}

/* the two "Two ways in" boxes: light, like QuantCrest's feature panels */
.hl-way, .hl-way.is-live, .hl-way.is-live.alt {
  border: 0 !important;
  border-radius: var(--qb-r-lg) !important;
  box-shadow: var(--qb-ring) !important;
  transform: none !important;
  transition: box-shadow .3s var(--qb-ease) !important;
}
.hl-way.is-live { background: var(--qb-glow-corner), var(--qb-soft) !important; }
.hl-way.is-live.alt {
  background:
    radial-gradient(110% 90% at 0% 0%,
      rgba(150,210,200,.30) 0%, rgba(150,210,200,.296) 3.9%, rgba(150,210,200,.285) 7.7%, rgba(150,210,200,.269) 11.6%,
      rgba(150,210,200,.247) 15.5%, rgba(150,210,200,.222) 19.3%, rgba(150,210,200,.194) 23.2%, rgba(150,210,200,.165) 27.1%,
      rgba(150,210,200,.135) 30.9%, rgba(150,210,200,.106) 34.8%, rgba(150,210,200,.078) 38.7%, rgba(150,210,200,.053) 42.5%,
      rgba(150,210,200,.031) 46.4%, rgba(150,210,200,.015) 50.3%, rgba(150,210,200,.004) 54.1%, rgba(150,210,200,0) 58%),
    var(--qb-soft) !important;
}
.hl-way.is-live:hover { box-shadow: var(--qb-ring-hover) !important; }
.hl-way.is-live .hl-grain { display: none; }
.hl-way.is-live .hl-silk { opacity: .55; }

/* the closing band: QuantCrest's dark surface, a soft light in the top-right corner */
.hl-cta {
  background:
    radial-gradient(110% 90% at 100% 0%, rgba(150,210,200,.17), rgba(150,210,200,0) 58%),
    linear-gradient(180deg, #0f1f1e 0%, #08110f 100%) !important;
}
.hl-cta::before { display: none !important; }

/* =====================================================================
   3. Form and sign-in boxes: white with the ring and a faint top glow
   ===================================================================== */
.auth-card, .apply-form-card, .apply-roadmap, .seal-panel {
  border: 0 !important;
  border-radius: var(--qb-r) !important;
  box-shadow: var(--qb-ring), 0 24px 48px -36px rgba(2, 7, 8, .2) !important;
  background: var(--qb-glow-top), #ffffff !important;
}
.auth-card { border-radius: var(--qb-r-lg) !important; }

/* =====================================================================
   4. Small pills and badges inside boxes
   ===================================================================== */
.apply-pill { background: #EEF4F3 !important; color: #36443F !important; }
.apply-pill.muted, .badge-verified, .record-verified { background: #F0FDFA !important; color: #0F766E !important; }

/* =====================================================================
   5. The domain chips in the homepage hero: bigger and easier to read.
      (They share the .hl-chip class with the tiny tags inside the "Two ways in"
      boxes, which made them 11.5px; this scopes a proper size to the hero only.)
   ===================================================================== */
.hl-hero .hl-chips { gap: 9px; }
.hl-hero .hl-chip {
  font-size: 14px !important;
  font-weight: 500;
  line-height: 1;
  padding: 9px 17px !important;
  letter-spacing: -0.005em;
  color: #0b1514;
  background: #ffffff;
  border: 0;
  box-shadow: 0 0 0 .5px rgba(255, 255, 255, .7), 0 8px 20px -10px rgba(0, 0, 0, .55);
}
@media (max-width: 720px) {
  .hl-hero .hl-chips { gap: 8px; }
  .hl-hero .hl-chip { font-size: 13px !important; padding: 8px 13px !important; }
}

/* =====================================================================
   6. Every other box on the site gets the same quiet gradient:
      expert cards, the role detail panel, upload boxes, success notes,
      and the admin and infra panels.
   ===================================================================== */
/* boxes that read like cards: same base, ring and edge glow as section 1 */
.expert-card, .crm-stat, .crm-platform, .crm-resume-card {
  border: 0 !important;
  border-radius: var(--qb-r) !important;
  box-shadow: var(--qb-ring) !important;
  background: var(--qb-glow-edge), var(--qb-base) !important;
}
.crm-stat, .crm-platform, .crm-resume-card { border-radius: 12px !important; }
.crm-platform:hover { box-shadow: var(--qb-ring-hover) !important; }

/* bigger reading panels: white with the faint top glow, so text stays crisp */
.opp-detail, .admin-new-role, .crm-section, .crm-table-wrap, .eval-trace {
  border: 0 !important;
  border-radius: var(--qb-r) !important;
  box-shadow: var(--qb-ring), 0 24px 48px -36px rgba(2, 7, 8, .16) !important;
  background: var(--qb-glow-top), #ffffff !important;
}
.crm-section, .eval-trace { border-radius: 14px !important; }

/* the chat window on the infra page: the soft panel base */
.eval-chat {
  border: 0 !important;
  box-shadow: var(--qb-ring) !important;
  background: var(--qb-glow-top), var(--qb-soft) !important;
}

/* upload boxes keep their dashed outline (and the red one on error) */
.upload-box { background: var(--qb-glow-top), var(--qb-soft); }
.upload-box-resume {
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(150, 210, 200, .30) 0%, rgba(150, 210, 200, 0) 62%),
    linear-gradient(160deg, #f4fdfb 0%, #e8f6f3 100%) !important;
}
.upload-box-resume:hover, .upload-box-resume:focus {
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(150, 210, 200, .42) 0%, rgba(150, 210, 200, 0) 62%),
    linear-gradient(160deg, #ecfbf7 0%, #d9f3ed 100%) !important;
}

/* the "thanks, we got it" note after a form is sent: a pale teal version */
.form-success {
  border: 0 !important;
  border-radius: var(--qb-r) !important;
  box-shadow: 0 0 0 .5px rgba(13, 148, 136, .35), 0 24px 48px -36px rgba(2, 7, 8, .16) !important;
  background:
    radial-gradient(110% 90% at 100% 0%, rgba(150, 210, 200, .34) 0%, rgba(150, 210, 200, 0) 58%),
    linear-gradient(160deg, #f4fdfb 0%, #e6f5f2 100%) !important;
}
