/* Public-facing blue identity. Admin retains its existing stylesheet. */
:root {
  --font-display: 'Inter Variable', ui-sans-serif, system-ui, sans-serif;
  --paper: #fff; --surface: #fff; --surface-2: #f3f7ff;
  --ink: #0b1532; --ink-soft: #53617b; --muted: #65738d;
  --line: #dce6f6; --line-strong: #c4d6f1;
  --accent: #0560f9; --accent-dark: #0349c3; --accent-tint: #ecf4ff; --accent-line: #c9ddff;
  --btn-bg: #0560f9; --btn-bg-hover: #0349c3; --btn-fg: #fff;
  --shadow: 0 6px 24px #1e5fb20a; --shadow-md: 0 12px 32px #1e5fb214;
}
html[data-theme="dark"] {
  --paper: #0b1222; --surface: #121e34; --surface-2: #192840;
  --ink: #f2f6ff; --ink-soft: #b7c6df; --muted: #a2b3cd;
  --line: #2c3d58; --line-strong: #405673;
  --accent: #83b4ff; --accent-dark: #a9caff; --accent-tint: #182d4e; --accent-line: #32557e;
  --btn-bg: #0560f9; --btn-bg-hover: #2376ff; --btn-fg: #fff;
}
.public-site { background: radial-gradient(ellipse at 95% 180px, var(--accent-tint), transparent 520px), var(--paper); }
.public-site .container { max-width: 1440px; padding-inline: clamp(20px, 5vw, 72px); }
.skip-link { position: absolute; top: -80px; left: 20px; z-index: 100; background: var(--surface); padding: 12px; }
.skip-link:focus { top: 8px; }
.top-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.top-header-inner { min-height: 88px; display: flex; align-items: center; gap: 40px; }
.public-site .brand { flex-shrink: 0; gap: 10px; }
.public-site .brand-name { display: inline; color: var(--accent); font-size: 29px; letter-spacing: -1.2px; }
.public-site .brand-logo { background: var(--btn-bg); color: #fff; width: 36px; height: 36px; border-radius: 12px; }
.public-site .brand-logo svg { stroke: #fff; }
.top-links { display: flex; gap: 30px; margin-left: 28px; }
.top-links a, .account-link { color: var(--ink); font-size: 14px; font-weight: 550; white-space: nowrap; }
.top-links a:hover, .account-link:hover { color: var(--accent); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 23px; }
.top-actions .btn { padding: 12px 23px; border-radius: 9px; }
.appearance-toggle { display: grid; place-items: center; width: 36px; height: 36px; color: var(--ink-soft); background: transparent; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.public-site :focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.discovery-hero { background: transparent; border: 0; padding: 52px 0 0; }
.discovery-hero .hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 38px; max-width: none; align-items: center; }
.discovery-hero .hero-copy { position: relative; z-index: 2; }
.discovery-hero .hero-eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .15em; font-size: 12px; font-weight: 700; margin-bottom: 20px; }
.discovery-hero .hero-eyebrow::before { display: none; }
.discovery-hero h1 { font-size: clamp(38px, 4.7vw, 66px); font-weight: 750; line-height: 1.09; letter-spacing: -.055em; max-width: none; margin-bottom: 22px; }
.discovery-hero h1 span { color: var(--accent); }
.discovery-hero .hero-copy > p { max-width: 530px; font-size: 18px; line-height: 1.65; margin: 0; }
.hero-visual { position: relative; height: 355px; padding: 6px 35px 0 24px; }
.hero-visual picture { display: contents; }
.hero-photo { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; border-radius: 26px 26px 80px 26px; transform: rotate(-2deg); }
.hero-shape { position: absolute; inset: 0 8px 20px 85px; border-radius: 65px 65px 80px 40px; background: #0560f9; transform: rotate(12deg); }
.hero-company-count { position: absolute; right: -8px; top: 16px; padding: 18px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-md); }
.hero-company-count strong { display: block; color: var(--accent); font-size: 28px; font-weight: 750; line-height: 1.15; }
.hero-company-count > span { font-size: 13px; color: var(--ink-soft); }
.hero-count-dots { display: flex; align-items: center; margin-top: 10px; padding-left: 4px; }
.hero-count-dots i, .hero-count-dots b { width: 24px; height: 24px; border-radius: 50%; background: #0560f9; border: 2px solid var(--surface); margin-left: -4px; }
.hero-count-dots i:nth-child(2) { background: #6aa8ff; }
.hero-count-dots i:nth-child(3) { background: #b2d2ff; }
.hero-count-dots b { display: grid; place-items: center; background: var(--accent-tint); color: var(--accent); font-size: 13px; }
.hero-remote-note { position: absolute; bottom: 3px; left: 0; padding: 12px 18px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); border-radius: 12px; font-size: 12px; font-weight: 600; }
.hero-remote-note span { color: var(--accent); margin-right: 8px; }
.hero-search { position: relative; z-index: 3; margin-top: 28px; }
.discovery-hero .search-bar { max-width: none; min-height: 80px; padding: 9px; flex-wrap: nowrap; border-color: var(--line-strong); border-radius: 14px; box-shadow: 0 6px 25px #1b65c00c; }
.discovery-hero .search-field:first-child { flex: 1.6 1 240px; }
.discovery-hero .search-field { min-width: 0; flex: 1 1 180px; }
.discovery-hero .search-field input { min-width: 0; padding-block: 15px; }
.discovery-hero .search-bar select { min-width: 0; flex: 0 1 150px; }
.discovery-hero .search-bar .btn { align-self: stretch; padding-inline: 30px; gap: 16px; border-radius: 9px; font-size: 16px; }
.popular-searches { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; font-size: 12px; }
.popular-searches > span { color: var(--ink-soft); margin-right: 6px; }
.popular-searches a { color: var(--ink); background: var(--accent-tint); border-radius: 24px; padding: 8px 17px; }
.popular-searches a:hover { background: var(--accent-line); text-decoration: none; }
.job-list .list-head { margin: 36px 0 20px; }
.job-list .list-head h2 { font-size: 24px; }
.jobs-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.jobs-grid .job-card { display: flex; flex-direction: column; padding: 23px; border-radius: 12px; margin: 0; min-width: 0; }
.jobs-grid .job-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.jobs-grid .job-card-head { display: flex; flex-direction: column; gap: 17px; }
.jobs-grid .job-avatar { width: 45px; height: 45px; border-radius: 11px; font-size: 18px; }
.jobs-grid .job-card-title { font-size: 17px; line-height: 1.4; letter-spacing: -.035em; overflow-wrap: anywhere; }
.jobs-grid .job-card-company { font-size: 13px; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink-soft); margin-top: 4px; overflow-wrap: anywhere; }
.jobs-grid .job-card-snippet { display: none; }
.jobs-grid .job-meta { gap: 8px; font-size: 12px; margin-block: 17px; align-items: flex-start; }
.jobs-grid .job-meta li { overflow-wrap: anywhere; display: block; }
.jobs-grid .job-meta li:first-child { color: var(--accent); background: var(--accent-tint); border-radius: 5px; padding: 1px 7px; }
.jobs-grid .job-meta li + li::before { display: none; }
.jobs-grid .job-meta li:nth-child(2) { flex-basis: 100%; }
.jobs-grid .job-card-foot { margin-top: auto; border-top: 0; padding-top: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.jobs-grid .job-salary { width: 100%; font-size: 13px; color: var(--ink-soft); }
.jobs-grid .job-posted { font-size: 11px; }
.jobs-grid .job-card-foot .btn { width: 100%; margin: 3px 0 0; padding: 10px; border-radius: 7px; }
.public-site .job-body { margin-top: 56px; }
.public-site .site-footer { margin-top: 60px; background: var(--surface-2); }
.footer-brand nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.public-site .footer-grid { grid-template-columns: 1fr; }
@media (max-width: 1150px) {
  .top-header-inner { gap: 22px; }
  .top-links { margin-left: 0; gap: 20px; }
  .top-actions { gap: 14px; }
  .hero-visual { height: 320px; padding-right: 15px; }
  .hero-company-count { right: -6px; padding: 15px; }
  .jobs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .top-header-inner { flex-wrap: wrap; padding-top: 18px; padding-bottom: 14px; row-gap: 16px; }
  .top-links { order: 3; flex-basis: 100%; justify-content: center; gap: 30px; }
  .discovery-hero .hero-grid { gap: 22px; grid-template-columns: 1.2fr 1fr; }
  .discovery-hero h1 { font-size: 42px; }
  .discovery-hero .hero-copy > p { font-size: 16px; }
  .hero-visual { height: 290px; }
  .hero-company-count { top: -12px; }
  .hero-remote-note { font-size: 10px; padding: 10px; }
  .discovery-hero .search-bar .btn { padding-inline: 18px; }
  .jobs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .public-site .brand-name { font-size: 24px; }
  .top-header-inner { gap: 14px; }
  .top-actions { gap: 12px; }
  .top-actions .btn { padding: 9px 13px; font-size: 12px; }
  .account-link { font-size: 12px; }
  .appearance-toggle { width: 28px; height: 28px; }
  .top-links { gap: 6px 10px; flex-wrap: wrap; justify-content: space-between; }
  .top-links a { font-size: 12px; }
  .discovery-hero { padding-top: 32px; }
  .discovery-hero .hero-grid { grid-template-columns: 1fr; gap: 25px; }
  .discovery-hero .hero-eyebrow { font-size: 10px; margin-bottom: 15px; }
  .discovery-hero h1 { font-size: clamp(35px, 8.5vw, 49px); }
  .hero-visual { max-width: 400px; width: 100%; height: 260px; margin: 0 auto; padding: 0 28px 0 15px; }
  .hero-company-count { right: 0; top: 10px; }
  .hero-search { margin-top: 24px; }
  .discovery-hero .search-bar { flex-wrap: wrap; gap: 8px; }
  .discovery-hero .search-field, .discovery-hero .search-field:first-child, .discovery-hero .search-bar select { flex: 1 1 100%; }
  .discovery-hero .search-bar select { border: 1px solid var(--line); }
  .discovery-hero .search-bar .btn { min-height: 48px; margin: 0; width: 100%; }
  .popular-searches { gap: 7px; font-size: 11px; }
  .popular-searches > span { width: 100%; }
  .popular-searches a { padding: 7px 12px; }
  .job-list .list-head h2 { font-size: 22px; }
  .list-head-meta { flex-wrap: wrap; }
  .jobs-grid { grid-template-columns: 1fr; gap: 14px; }
  .jobs-grid .job-card-head { flex-direction: row; }
  .jobs-grid .job-card { padding: 21px; }
  .jobs-grid .job-meta li:nth-child(2) { flex-basis: auto; }
  .jobs-grid .job-card-title { font-size: 18px; }
}
