/* ---- v55-fixes.css ---- */

/* JobStacc v55 final UI consistency fixes */

/* Standard footer across every surface, including homepage */
.global-footer {
  background: #06172d !important;
  color: #fff !important;
  padding: 38px 0 !important;
  margin-top: 56px !important;
}
.global-footer-inner {
  width: min(1180px, calc(100% - 48px)) !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 44px !important;
}
.global-footer-brand {
  display: flex !important;
  align-items: flex-start !important;
  gap: 18px !important;
  min-width: 280px !important;
}
.global-footer-brand img {
  width: 118px !important;
  height: auto !important;
  max-height: 36px !important;
  object-fit: contain !important;
  display: block !important;
}
.global-footer-brand p {
  margin: 0 0 6px !important;
  color: #fff !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}
.global-footer-brand small {
  color: #9fb0c5 !important;
  font-size: 10px !important;
  line-height: 1.45 !important;
}
.global-footer-links {
  display: flex !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: 11px 16px !important;
  max-width: 650px !important;
}
.global-footer-links a {
  color: #c7d1df !important;
  text-decoration: none !important;
  font-size: 10px !important;
  line-height: 1.35 !important;
  white-space: nowrap !important;
}
.global-footer-links a:hover,
.global-footer-links a:focus {
  color: #66e2c5 !important;
  text-decoration: underline !important;
}
@media (max-width: 760px) {
  .global-footer { padding: 30px 0 !important; }
  .global-footer-inner {
    width: min(100% - 32px, 1180px) !important;
    flex-direction: column !important;
    gap: 24px !important;
  }
  .global-footer-brand { min-width: 0 !important; }
  .global-footer-links {
    justify-content: flex-start !important;
    gap: 10px 14px !important;
  }
}

/* Signed-in Staccability state */
.premium-unlock.member-access {
  background: #00a884 !important;
  color: #fff !important;
}
.premium-tease.member-access {
  border-color: #bceee2 !important;
  background: #edf9f6 !important;
}
.premium-tease.member-access span:first-child {
  display: none !important;
}

/* Career Intelligence loading/error state should remain polished */
.ci-v55-warning {
  margin: 10px 0 0;
  font-size: 10px;
  color: #65788d;
}


/* ---- v56-fixes.css ---- */

/* JobStacc v56 — membership-aware shell, Career Intelligence actions, and polish */

.paid-plan-static {
  opacity: .52 !important;
  cursor: default !important;
  pointer-events: none !important;
  text-decoration: none !important;
}

.career-intelligence-module .apply-btn,
#ci-build-gate-button,
.ci-credit-action {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  padding: 12px 16px !important;
  border: 1px solid #00a884 !important;
  border-radius: 10px !important;
  background: #00a884 !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}
.career-intelligence-module .apply-btn:hover,
#ci-build-gate-button:hover,
.ci-credit-action:hover {
  background: #078e73 !important;
  border-color: #078e73 !important;
}

.ci-credit-note {
  margin-top: 10px !important;
  padding: 10px 12px !important;
  border: 1px solid #d7eee8 !important;
  border-radius: 10px !important;
  background: #f2fbf8 !important;
  color: #496276 !important;
  font-size: 10px !important;
  line-height: 1.45 !important;
}

.keepin-stacc-card {
  border: 1px solid #bfe8dd !important;
  background: linear-gradient(135deg, #f4fbf9 0%, #ecf8f5 100%) !important;
}
.keepin-stacc-card span {
  color: #008d72 !important;
}
.keepin-stacc-card h4,
.keepin-stacc-card h3 {
  color: #0b2340 !important;
}
.keepin-stacc-card p {
  color: #506579 !important;
}
.keepin-stacc-level {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 850;
  color: #008d72;
}
.keepin-stacc-level i {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 999px;
  background: #00a884;
}

#ci-build-gate {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid #bfe8dd;
  border-radius: 16px;
  background: #f3fbf9;
}
#ci-build-gate[hidden] { display: none !important; }
#ci-build-gate span {
  display: block;
  color: #008d72;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
}
#ci-build-gate h3 {
  margin: 5px 0 5px;
  color: #0b2340;
  font-size: 18px;
}
#ci-build-gate p {
  margin: 0;
  color: #53677a;
  font-size: 11px;
  line-height: 1.5;
}
#ci-build-gate .ci-gate-actions {
  min-width: 210px;
  text-align: right;
}
#ci-build-gate .ci-gate-actions small {
  display: block;
  margin-top: 7px;
  color: #75869a;
  font-size: 9px;
}

.top.member-state,
.topline.member-state {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
}
.top.member-state a,
.topline.member-state a {
  display: none !important;
}

@media (max-width: 720px) {
  #ci-build-gate {
    grid-template-columns: 1fr;
  }
  #ci-build-gate .ci-gate-actions {
    min-width: 0;
    text-align: left;
  }
  #ci-build-gate-button {
    width: 100%;
  }
}


/* ---- v59-fixes.css ---- */

/* JobStacc v59 — member-aware offers / homepage hero */
.member-community-proof {
  min-width: 158px;
}
.member-community-proof .member-proof-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
}
.member-community-proof .member-proof-copy span {
  color: #617489;
  font-size: 10px;
  font-weight: 700;
}
.member-community-proof .member-proof-copy strong {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #00a884;
  color: white;
  font-size: 14px;
}
#dash-upgrade-options[hidden] {
  display: none !important;
}
#dash-paid-actions:not([hidden]) {
  display: block !important;
}


/* ---- v60-fixes.css ---- */

/* JobStacc v60 — live usage balances */
.ci-opportunity-note {
  display: block;
  margin-top: 7px;
  color: #6c7f92;
  font-size: 9px;
  line-height: 1.4;
  text-align: right;
}
#ci-build-gate-button:disabled {
  opacity: .55;
  cursor: not-allowed;
}


/* ---- v61-fixes.css ---- */

/* JobStacc v61 — paid account lock indicator */
.paid-lock-badge {
  position: relative !important;
  padding-left: 28px !important;
}
.paid-lock-badge::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 8px;
  height: 7px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  transform: translateY(-25%);
  opacity: .88;
}
.paid-lock-badge::after {
  content: "";
  position: absolute;
  left: 11.5px;
  top: 50%;
  width: 5px;
  height: 5px;
  border: 1.5px solid currentColor;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  transform: translateY(-115%);
  opacity: .88;
}


/* ---- v62-shell.css ---- */

/* JobStacc v62 — consistent site shell without changing the visual identity */
.site-nav,
.member-nav,
.onboard-nav {
  min-height: 76px !important;
  height: 76px !important;
  padding-left: clamp(24px, 3vw, 46px) !important;
  padding-right: clamp(24px, 3vw, 46px) !important;
  display: grid !important;
  grid-template-columns: 160px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 22px !important;
}

.site-nav > a,
.member-nav > a,
.onboard-nav > a {
  display: flex !important;
  align-items: center !important;
  min-width: 0 !important;
}

.site-nav img,
.member-nav img,
.onboard-nav img {
  width: 145px !important;
  max-width: 145px !important;
  height: auto !important;
}

.navlinks,
.member-links {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(12px, 1.35vw, 23px) !important;
  flex-wrap: nowrap !important;
  min-width: 0 !important;
}

.navlinks a,
.member-links a {
  white-space: nowrap !important;
  line-height: 1.15 !important;
  font-size: clamp(10.5px, .9vw, 12.5px) !important;
}

.nav-actions,
.member-profile {
  justify-self: end !important;
  flex: 0 0 auto !important;
}

.global-footer {
  margin-top: 58px !important;
}

.global-footer-inner {
  width: min(1240px, calc(100% - 64px)) !important;
  display: grid !important;
  grid-template-columns: minmax(300px, 430px) minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 54px !important;
}

.global-footer-brand {
  min-width: 0 !important;
}

.global-footer-links {
  width: 100% !important;
  max-width: none !important;
  display: grid !important;
  grid-template-columns: repeat(6, max-content) !important;
  justify-content: end !important;
  align-items: start !important;
  gap: 13px 19px !important;
}

.global-footer-links a {
  white-space: nowrap !important;
}

.ci-data-locked {
  position: relative;
  user-select: none;
}

.ci-data-locked > * {
  opacity: .42 !important;
}

.ci-data-locked::after {
  content: "Locked until a Career Intelligence snapshot or Opportunity Brief is built";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: #496176;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .01em;
  background: rgba(248, 252, 251, .56);
  backdrop-filter: blur(3px);
  border-radius: inherit;
  pointer-events: none;
}

body[data-plan="visitor"] #staccability-plan-access {
  background: #f4f7f9 !important;
  color: #67798c !important;
}

@media (max-width: 1180px) {
  .site-nav,
  .member-nav,
  .onboard-nav {
    grid-template-columns: 142px minmax(0, 1fr) auto !important;
    gap: 14px !important;
    padding-left: 22px !important;
    padding-right: 22px !important;
  }
  .site-nav img,
  .member-nav img,
  .onboard-nav img {
    width: 132px !important;
  }
  .navlinks,
  .member-links {
    gap: 11px !important;
  }
  .navlinks a,
  .member-links a {
    font-size: 10.5px !important;
  }
  .global-footer-links {
    grid-template-columns: repeat(4, max-content) !important;
  }
}

@media (max-width: 860px) {
  .site-nav,
  .member-nav,
  .onboard-nav {
    height: auto !important;
    min-height: 70px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    padding-top: 13px !important;
    padding-bottom: 13px !important;
  }
  .navlinks,
  .member-links {
    order: 3;
    width: 100%;
    justify-content: flex-start !important;
    overflow-x: auto;
    padding-bottom: 3px;
  }
  .global-footer-inner {
    width: min(100% - 34px, 1240px) !important;
    grid-template-columns: 1fr !important;
  }
  .global-footer-links {
    grid-template-columns: repeat(2, max-content) !important;
    justify-content: start !important;
  }
}


/* ---- v63-fixes.css ---- */

/* JobStacc v63 — footer logo visibility + direct CI gate polish */
.global-footer-brand img {
  filter: brightness(0) invert(1) !important;
  opacity: .98 !important;
  width: 145px !important;
  max-width: 145px !important;
}

#ci-build-gate .ci-gate-actions button {
  min-width: 230px;
}


/* ---- v67-fixes.css ---- */

/* v67 — visitor/member status consistency */
body[data-plan="visitor"] .nav-plan-chip,
body[data-plan="visitor"] .member-plan-chip {
  display: none !important;
}

/* v68 target-role deep links */
.dash-target-role-module{margin:14px 0 24px;padding:18px 20px;border:1px solid rgba(20,41,77,.12);border-radius:18px;background:#fff;display:flex;gap:18px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.dash-target-role-module>div:first-child{display:grid;gap:4px}.dash-target-role-module b{font-size:14px}
.target-role-links{display:flex;gap:8px;flex-wrap:wrap}.target-role-link,.target-role-inline-link{display:inline-flex;align-items:center;padding:7px 11px;border-radius:999px;border:1px solid rgba(30,101,223,.22);background:rgba(30,101,223,.06);color:#174fae;text-decoration:none;font-weight:700;font-size:12px}.target-role-link:hover,.target-role-inline-link:hover{background:rgba(30,101,223,.12);border-color:rgba(30,101,223,.4)}
.profile-target-role-links{grid-column:1/-1;margin-top:-4px;margin-bottom:6px}
#track[aria-pressed="true"]{border-color:rgba(8,116,95,.35);color:#08745f;background:rgba(8,116,95,.07)}


/* ---- v69-fixes.css ---- */
/* JobStacc v69 consolidated UI fixes
   IMPORTANT: responsive shell changes below are mobile-only. Desktop/tablet >= 761px is unchanged. */

/* Explore Flexible Work cards behave like actionable navigation cards. */
.category-wrap .category {
  cursor: pointer;
}
.category-wrap .category:focus-visible {
  outline: 3px solid rgba(0,159,124,.22);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  /* Public/member/onboarding header — two-row mobile shell. */
  .site-nav,
  .member-nav,
  .onboard-nav {
    position: sticky !important;
    top: 0 !important;
    z-index: 50 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 10px 14px 8px !important;
    display: grid !important;
    grid-template-columns: minmax(0,1fr) auto !important;
    grid-template-areas:
      "brand actions"
      "links links" !important;
    align-items: center !important;
    gap: 9px 12px !important;
    flex-wrap: nowrap !important;
    background: rgba(255,255,255,.985) !important;
  }

  .site-nav > a,
  .member-nav > a,
  .onboard-nav > a {
    grid-area: brand !important;
    min-width: 0 !important;
    width: max-content !important;
  }

  .site-nav img,
  .member-nav img,
  .onboard-nav img {
    width: 126px !important;
    max-width: 42vw !important;
    height: auto !important;
  }

  .nav-actions,
  .member-profile {
    grid-area: actions !important;
    justify-self: end !important;
    min-width: 0 !important;
    gap: 7px !important;
  }

  .nav-actions .btn {
    padding: 9px 11px !important;
    font-size: 10px !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
  }

  /* Keep both auth actions usable on mobile instead of hiding Sign in. */
  .nav-actions .btn:first-child {
    display: inline-flex !important;
  }

  .member-profile > span:not(.member-profile-avatar):not(.member-plan-chip),
  .member-profile .member-profile-name,
  .member-profile .member-profile-chevron,
  .member-profile > .icon-btn {
    display: none !important;
  }

  .navlinks,
  .member-links {
    grid-area: links !important;
    order: initial !important;
    width: calc(100% + 28px) !important;
    margin: 0 -14px !important;
    padding: 8px 14px 2px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 16px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    border-top: 1px solid var(--line) !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch;
  }

  .navlinks::-webkit-scrollbar,
  .member-links::-webkit-scrollbar {
    display: none !important;
  }

  .navlinks a,
  .member-links a {
    flex: 0 0 auto !important;
    font-size: 10.5px !important;
    line-height: 1.2 !important;
    padding: 4px 0 7px !important;
  }

  /* Top status bar must wrap instead of forcing horizontal overflow. */
  .topline,
  .top {
    height: auto !important;
    min-height: 32px !important;
    padding: 7px 12px !important;
    line-height: 1.35 !important;
    text-align: center !important;
  }

  /* Footer — mobile-only stacked layout with touch-friendly links. */
  .global-footer {
    margin-top: 42px !important;
    padding: 28px 16px !important;
  }

  .global-footer-inner {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    align-items: start !important;
  }

  .global-footer-brand {
    width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: 112px minmax(0,1fr) !important;
    gap: 12px !important;
    align-items: center !important;
  }

  .global-footer-brand img {
    width: 112px !important;
    max-width: 100% !important;
  }

  .global-footer-brand p {
    font-size: 10px !important;
    line-height: 1.45 !important;
  }

  .global-footer-brand small {
    font-size: 8.5px !important;
    line-height: 1.45 !important;
  }

  .global-footer-links {
    width: 100% !important;
    max-width: none !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    justify-content: stretch !important;
    gap: 0 !important;
    border-top: 1px solid rgba(255,255,255,.10) !important;
  }

  .global-footer-links a {
    min-width: 0 !important;
    white-space: normal !important;
    padding: 10px 8px 10px 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
    font-size: 9.5px !important;
    line-height: 1.35 !important;
  }
}

@media (max-width: 390px) {
  .site-nav,
  .member-nav,
  .onboard-nav {
    padding-left: 11px !important;
    padding-right: 11px !important;
  }
  .navlinks,
  .member-links {
    width: calc(100% + 22px) !important;
    margin-left: -11px !important;
    margin-right: -11px !important;
    padding-left: 11px !important;
    padding-right: 11px !important;
  }
  .site-nav img,
  .member-nav img,
  .onboard-nav img {
    width: 116px !important;
  }
  .nav-actions .btn {
    padding: 8px 9px !important;
    font-size: 9px !important;
  }
  .global-footer-brand {
    grid-template-columns: 1fr !important;
  }
}


/* ---- v71-mobile-shell-fix.css ---- */
/* JobStacc v71.1 — mobile-only shell cleanup
   Removes inherited divider/grid lines from the mobile header/footer.
   Desktop/tablet >= 761px intentionally unchanged. */
@media (max-width: 760px) {
  /* Header: retain the existing two-row mobile layout, but remove desktop/grid dividers. */
  .site-nav,
  .member-nav,
  .onboard-nav {
    border-bottom: 0 !important;
    box-shadow: 0 4px 18px rgba(7,20,38,.055) !important;
  }

  .navlinks,
  .member-links {
    border-top: 0 !important;
    border-bottom: 0 !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    background: transparent !important;
  }

  .navlinks a,
  .member-links a {
    border: 0 !important;
    text-decoration: none !important;
  }

  /* Keep public actions compact on narrow screens. */
  .nav-actions {
    gap: 6px !important;
  }

  .nav-actions .btn {
    min-height: 36px !important;
    padding: 8px 10px !important;
    line-height: 1.1 !important;
  }

  /* Footer: clean two-column link group; no table/grid-line appearance. */
  .global-footer {
    border-top: 0 !important;
    padding: 28px 18px 32px !important;
  }

  .global-footer-inner {
    gap: 24px !important;
  }

  .global-footer-brand {
    padding: 0 !important;
    border: 0 !important;
  }

  .global-footer-links {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 28px !important;
    row-gap: 13px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  .global-footer-links a {
    display: block !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    line-height: 1.45 !important;
  }
}

@media (max-width: 390px) {
  .site-nav img,
  .member-nav img,
  .onboard-nav img {
    width: 112px !important;
  }

  .global-footer-links {
    column-gap: 20px !important;
    row-gap: 12px !important;
  }
}
