/* BetterWay Devs · candidates.betterway.dev restyle
   Load AFTER the app's Tailwind build (index.css) and after ds/colors_and_type.css.
   Only colours, type, spacing and shapes change. No content or behaviour changes. */

/* 1 · shadcn theme tokens → BetterWay Devs Design System */
:root {
  --background: 0 0% 100%;
  --foreground: 240 28% 14%;            /* gray-900 #1A1A2E */
  --card: 0 0% 100%;
  --card-foreground: 240 28% 14%;
  --popover: 0 0% 100%;
  --popover-foreground: 240 28% 14%;
  --primary: 214 68% 14%;               /* navy-900 #0B1F3A */
  --primary-foreground: 0 0% 100%;
  --secondary: 210 70% 95%;             /* navy-50 */
  --secondary-foreground: 214 68% 14%;
  --muted: 240 20% 96%;                 /* gray-100 */
  --muted-foreground: 240 13% 48%;      /* gray-600 */
  --accent: 210 70% 95%;
  --accent-foreground: 214 68% 14%;
  --destructive: 9 66% 46%;             /* coral-dark */
  --border: 240 23% 93%;                /* gray-200 */
  --input: 240 23% 86%;                 /* gray-300 */
  --ring: 8 78% 58%;                    /* coral-500 */
  --radius: .75rem;
}

/* 2 · Type */
body { font-family: var(--font-body); color: var(--color-gray-900); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.01em; }
.min-h-screen.bg-gray-50 { background: var(--color-gray-100); }
.text-gray-900 { color: var(--color-gray-900); }
.text-gray-700 { color: var(--color-gray-800); }
.text-gray-600 { color: var(--color-gray-700); }
.text-gray-500 { color: var(--color-gray-600); }

/* 3 · Hero header: full-width navy band like betterway.dev */
.min-h-screen.bg-gray-50 > .container { padding-top: 0; }
.min-h-screen.bg-gray-50 > .container > .mb-8:first-child { margin-bottom: 40px; }
.bw-public-hero.bg-white.rounded-lg {
  background: #060F1F; border: 0; border-radius: 0; margin-bottom: 0;
  padding: 48px 0 52px;
  box-shadow: 0 0 0 100vmax #060F1F; clip-path: inset(0 -100vmax);
  gap: 32px;
}
.bw-public-hero.bg-white.rounded-lg > div { gap: 48px; }
.bw-public-hero.bg-white.rounded-lg img { height: 52px; }
.bw-public-hero.bg-white.rounded-lg h1 {
  color: #fff; font-weight: 700; font-size: 40px; line-height: 1.15; margin-bottom: 12px; max-width: 820px;
}
.bw-hl { color: var(--color-coral-500); }
.bw-public-hero.bg-white.rounded-lg p { color: var(--color-navy-100); font-size: 18px; line-height: 1.5; }

/* 4 · Cards & panels */
.rounded-lg.border.bg-card, .bg-white.rounded-lg { border-radius: var(--radius-lg); border-color: var(--color-gray-200); box-shadow: var(--shadow-xs); }
.rounded-lg.border.bg-card.hover\:shadow-lg:hover { box-shadow: var(--shadow-md); }
.gap-6 { gap: 24px; }

/* Talent CTA card ("Ready to find the right talent?") → navy card, coral CTA */
.bg-primary\/5.border-primary\/20 { background: var(--color-navy-900); border-color: var(--color-navy-900); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.bg-primary\/5.border-primary\/20 h3 { color: #fff; font-size: 20px; font-weight: 700; }
.bg-primary\/5.border-primary\/20 .text-primary { color: #fff; }
.bg-primary\/5.border-primary\/20 .text-primary\/70 { color: var(--color-navy-100); }
.bg-primary\/5.border-primary\/20 .text-primary\/80 { color: var(--color-navy-100); line-height: 1.55; }
.bg-primary\/5.border-primary\/20 img { border-color: var(--color-coral-500); }
.bg-primary\/5.border-primary\/20 button.bg-primary { background: var(--color-coral-500); color: #fff; border-radius: var(--radius-full); font-weight: 600; height: 44px; }
.bg-primary\/5.border-primary\/20 button.bg-primary:hover { background: var(--color-coral-dark); }
.bg-primary\/5.border-primary\/20 button.border-primary { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; border-radius: var(--radius-full); font-weight: 600; height: 44px; }
.bg-primary\/5.border-primary\/20 button.border-primary:hover { background: rgba(255,255,255,.08); border-color: #fff; }

/* 5 · Buttons & form controls */
button.bg-primary, a.bg-primary { border-radius: var(--radius-full); font-weight: 600; padding-left: 16px; padding-right: 16px; }
button.bg-primary:hover { background: var(--color-navy-700); }
button.border.bg-background, button.border-input { border-radius: var(--radius-full); border-color: var(--color-gray-300); }
button.border.bg-background:hover { border-color: var(--color-navy-900); background: var(--color-navy-50); color: var(--color-navy-900); }
button.border-primary\/30 { border-color: var(--color-navy-900); color: var(--color-navy-900); font-weight: 600; }
button.border-primary\/30:hover { background: var(--color-navy-900); color: #fff; }
input, [role="combobox"], select, textarea { border-radius: var(--radius-md) !important; border-color: var(--color-gray-300); }
input:focus-visible, [role="combobox"]:focus { outline: none; box-shadow: 0 0 0 3px rgba(232,85,62,.25) !important; border-color: var(--color-coral-500) !important; }
label, .text-sm.font-medium.text-foreground { color: var(--color-gray-900); font-weight: 600; }

/* Pagination: current page */
.bg-primary\/10:not(.rounded-full) { background: var(--color-navy-50); border-color: var(--color-navy-100); color: var(--color-navy-900); font-weight: 600; }

/* 6 · Badges */
.rounded-full.border { font-weight: 600; }
/* Proficient (3+ years) + native/advanced languages → teal */
.bg-green-50.text-green-700, .bg-green-100.text-green-800 { background: var(--color-teal-100); color: var(--color-teal-dark); border-color: var(--color-teal-300); }
.text-green-700.uppercase { color: var(--color-teal-dark); }
.bg-green-500 { background: var(--color-teal-500); }
/* Competent (1-3 years) → navy */
.bg-blue-50.text-blue-700 { background: var(--color-navy-50); color: var(--color-navy-500); border-color: var(--color-navy-100); }
.text-blue-700.uppercase { color: var(--color-navy-500); }
.bg-blue-500 { background: var(--color-navy-500); }
/* Learning (<1 year) → coral tint */
.rounded-full.bg-primary\/10 { background: var(--color-coral-100); color: var(--color-coral-dark); border-color: var(--color-coral-300); }
.text-primary.uppercase.tracking-wide { color: var(--color-coral-dark); }
.text-primary.uppercase.tracking-wide .bg-primary { background: var(--color-coral-500); }
/* Intermediate English → amber, basic English → coral */
.bg-yellow-100.text-yellow-800 { background: var(--color-amber-100); color: #8A5E00; border-color: var(--color-amber-300); }
.bg-red-100.text-red-800 { background: var(--color-error-bg); color: var(--color-error); border-color: #F5C2C2; }
/* Neutral (country, GMT) */
.rounded-full.border.text-foreground, .rounded-full.border.text-gray-600 { border-color: var(--color-gray-300); background: #fff; }

/* 7 · Candidate cards */
.text-lg.font-semibold.text-gray-900.mb-1 { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--color-navy-900); }
.text-xs.font-semibold.text-gray-500.uppercase { color: var(--color-gray-600); letter-spacing: .08em; }

/* 8 · Footer */
footer { background-color: #060F1F !important; font-family: var(--font-display) !important; border-top: 4px solid var(--color-coral-500); }
footer h3, footer h4 { letter-spacing: .06em; font-weight: 700; color: #fff; }
footer h3::after { content: ""; display: block; width: 24px; height: 3px; background: var(--color-coral-500); margin-top: 10px; }
footer a { transition: color var(--transition-fast); }
footer a:hover { color: var(--color-coral-400); }
footer p, footer li { color: var(--color-navy-100); }
footer img[alt="BetterWay Devs"] { height: 48px; }

/* 9 · Stats & charts */
.text-\[\#2B5752\] { color: var(--color-navy-900); font-family: var(--font-display); font-size: 34px; letter-spacing: -0.01em; }
.stats-container h3 { font-size: 20px; font-weight: 700; color: var(--color-navy-900); }
/* Seniority legend dots = chart bar colours */
.bg-\[\#2B5752\] { background-color: #0B1F3A; }
.bg-\[\#B0BEB4\] { background-color: #94AAC6; }
.bg-\[\#CB6750\] { background-color: #E8553E; }
.bg-\[\#7CA69B\] { background-color: #3F7A6E; }

/* 10 · Mobile */
@media (max-width: 640px) {
  .bw-public-hero.bg-white.rounded-lg { padding: 32px 0 36px; gap: 24px; }
  .bw-public-hero.bg-white.rounded-lg > div { gap: 24px; }
  .bw-public-hero.bg-white.rounded-lg img { height: 40px; }
  .bw-public-hero.bg-white.rounded-lg h1 { font-size: 28px; }
  .bw-public-hero.bg-white.rounded-lg p { font-size: 16px; }
  .min-h-screen.bg-gray-50 > .container > .mb-8:first-child { margin-bottom: 24px; }
  .text-\[\#2B5752\] { font-size: 26px; }
}


/* 11 · Inc. 5000 banner — same component as www.betterway.dev, full width above the hero.
   Markup: inc-banner.html. Close hides it for the session (sessionStorage "bw-inc-banner-closed"), like the home page. */
.inc-closed .inc-banner { display: none !important; }
.inc-banner { width: 100%; position: relative; overflow: hidden; background: linear-gradient(90deg, rgb(8, 22, 43) 0%, var(--color-navy-900) 35%, rgb(194, 69, 47) 100%); }
.inc-banner-inner { max-width: 1280px; margin: 0px auto; padding: 14px 16px; display: flex; align-items: center; gap: 28px; flex-wrap: nowrap; position: relative; z-index: 1; }
.inc-medallion { width: 52px; height: 52px; flex-shrink: 0; border-radius: var(--radius-full, 999px); background: #fff; padding: 3px; box-shadow: rgba(0, 0, 0, 0.15) 0px 4px 12px; display: flex; align-items: center; justify-content: center; }
.inc-medallion img { width: 100%; height: 100%; border-radius: var(--radius-full, 999px); object-fit: contain; display: block; }
.inc-lede { display: flex; align-items: center; gap: 12px; flex-shrink: 0; flex-wrap: wrap; padding-right: 24px; border-right: 1px solid rgba(255, 255, 255, 0.16); }
.inc-lede-text { display: flex; align-items: baseline; gap: 10px; }
.inc-eyebrow { font: 600 12px var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; color: rgb(94, 234, 212); white-space: nowrap; }
.inc-rank { font-style: normal; font-variant: tabular-nums; font-size-adjust: none; font-kerning: auto; font-optical-sizing: auto; font-feature-settings: normal; font-variation-settings: normal; font-weight: 800; font-stretch: normal; font-size: 26px; line-height: 1; font-family: var(--font-display); color: #fff; white-space: nowrap; }
.inc-rank em { font-style: normal; color: var(--color-coral-500); }
.inc-year-chip { background: rgb(251, 191, 36); color: var(--color-navy-900); font: 700 12px var(--font-display); letter-spacing: 0.04em; padding: 5px 12px; border-radius: var(--radius-full, 999px); white-space: nowrap; flex-shrink: 0; }
.inc-stats { display: flex; align-items: center; gap: 28px; flex: 1 1 0%; min-width: 0px; }
.inc-stat { display: flex; flex-direction: column; gap: 2px; min-width: 0px; flex: 1 1 0%; }
.inc-stat-label { font: 600 11px var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-gray-500); white-space: nowrap; }
.inc-stat-value { font: 600 14px / 1.3 var(--font-display); color: #fff; white-space: normal; }
.inc-stat-value b { color: rgb(251, 191, 36); font-variant-numeric: tabular-nums; font-weight: 700; }
.inc-divider { width: 1px; height: 28px; background: rgba(255, 255, 255, 0.14); flex-shrink: 0; }
@media (max-width: 1100px){.inc-stats { overflow-x: auto; }}
@media (max-width: 1023px){.inc-banner-inner { padding: 18px 16px; }}
@media (max-width: 680px){.inc-banner-inner { padding: 20px 16px; flex-wrap: wrap; gap: 12px 16px; }}
@media (max-width: 680px){.inc-medallion { width: 38px; height: 38px; }}
@media (max-width: 680px){.inc-lede { border-right: 0px; padding-right: 0px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }}
@media (max-width: 680px){.inc-eyebrow { font-size: 10px; }}
@media (max-width: 680px){.inc-rank { font-size: 20px; }}
@media (max-width: 680px){.inc-year-chip { font-size: 10px; padding: 4px 10px; }}
@media (max-width: 680px){.inc-stats { flex: 1 1 100%; flex-wrap: wrap; overflow-x: visible; gap: 14px 20px; order: 3; }}
@media (max-width: 680px){.inc-stat { flex: 1 1 auto; }}
@media (max-width: 680px){.inc-stat-value { font-size: 13px; }}
@media (max-width: 680px){.inc-divider { display: none; }}
.inc-banner { max-height: 400px; transition: max-height 0.35s, opacity 0.25s; }
.inc-banner.is-closed { max-height: 0px !important; opacity: 0 !important; overflow: hidden !important; }
@media (prefers-reduced-motion: reduce){.inc-banner { transition: none !important; }}
.inc-close { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0; margin-left: 4px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.75); cursor: pointer; transition: background 150ms, color 150ms, border-color 150ms; }
.inc-close:hover { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.inc-close:focus { outline: rgb(251, 191, 36) solid 2px; outline-offset: 2px; }
@media (max-width: 680px){.inc-banner-inner { padding-right: 64px !important; position: relative; }}
@media (max-width: 680px){.inc-close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; margin: 0px; }}
@media (max-width: 680px){.inc-close svg { width: 16px; height: 16px; }}
@media (max-width: 479px){.inc-stats { display: none !important; }}
@media (max-width: 479px){.inc-lede { border-right: 0px !important; padding-right: 0px !important; }}
@media (max-width: 479px){.inc-banner-inner { padding: 12px 16px !important; gap: 10px !important; }}
@media (max-width: 479px){.inc-medallion { width: 32px !important; height: 32px !important; }}
@media (max-width: 479px){.inc-rank { font-size: 18px !important; }}
/* Tablet (681–1100px): stats move to their own row so the long metro name doesn't squeeze */
@media (min-width: 681px) and (max-width: 1100px) {
  .inc-banner-inner { flex-wrap: wrap; row-gap: 14px; }
  .inc-lede { border-right: 0; padding-right: 0; }
  .inc-close { margin-left: auto; }
  .inc-stats { flex: 1 1 100%; order: 3; overflow-x: visible; }
  .inc-stat { flex: 0 1 auto; }
}
