/* RadHQ Jobs: shared styles. Plain CSS, tokens on :root, dark by default. */

:root {
  color-scheme: dark;
  --bg: #121519;
  --surface: #1f2937;
  --surface-2: #18212d;
  --border: #374151;
  --border-strong: #4b5563;
  --text: #e5e7eb;
  --text-strong: #f8fafc;
  --muted: #9ca3af;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, .16);
  --accent-text: #93b4fb;
  --brand: #438c74;
  --featured: #fbbf24;
  --featured-glow: rgba(251, 191, 36, .32);
  --danger: #f87171;
  --success: #34d399;
  --shadow: 0 2px 6px rgba(0, 0, 0, .25);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, .45);
  --radius: 14px;
  --radius-sm: 9px;

  /* chips: [bg, fg, border] */
  --telerad-bg: rgba(6, 182, 212, .12);  --telerad-fg: #a7f3d0; --telerad-bd: rgba(6, 182, 212, .35);
  --onsite-bg: rgba(96, 165, 250, .10);  --onsite-fg: #bfdbfe;  --onsite-bd: rgba(96, 165, 250, .32);
  --hybrid-bg: rgba(52, 211, 153, .08);  --hybrid-fg: #bbf7d0;  --hybrid-bd: rgba(52, 211, 153, .25);
  --own-rad-bg: rgba(16, 185, 129, .15); --own-rad-fg: #bbf7d0; --own-rad-bd: rgba(16, 185, 129, .45);
  --own-corp-bg: rgba(251, 113, 133, .14); --own-corp-fg: #fecaca; --own-corp-bd: rgba(251, 113, 133, .45);
  --own-hosp-bg: rgba(96, 165, 250, .14); --own-hosp-fg: #bfdbfe; --own-hosp-bd: rgba(96, 165, 250, .45);
  --own-acad-bg: rgba(167, 139, 250, .14); --own-acad-fg: #ddd6fe; --own-acad-bd: rgba(167, 139, 250, .45);
  --pill-bg: rgba(148, 163, 184, .2); --pill-fg: #f1f5f9; --pill-bd: rgba(148, 163, 184, .4);
  --tag-bg: rgba(255, 255, 255, .07); --tag-fg: #e2e8f0;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-strong: #020617;
  --muted: #526075;
  --accent-soft: rgba(37, 99, 235, .1);
  --accent-text: #1d4ed8;
  --brand: #2f6f5a;
  --featured: #f59e0b;
  --featured-glow: rgba(245, 158, 11, .25);
  --danger: #dc2626;
  --success: #059669;
  --shadow: 0 2px 8px rgba(15, 23, 42, .06);
  --shadow-lg: 0 14px 30px rgba(15, 23, 42, .12);

  --telerad-bg: #ecfeff; --telerad-fg: #0e5e57; --telerad-bd: #67e8f9;
  --onsite-bg: #eff6ff;  --onsite-fg: #1e3a8a;  --onsite-bd: #93c5fd;
  --hybrid-bg: #f0fdf4;  --hybrid-fg: #065f46;  --hybrid-bd: #6ee7b7;
  --own-rad-bg: #ecfdf5; --own-rad-fg: #065f46; --own-rad-bd: #34d399;
  --own-corp-bg: #fff1f2; --own-corp-fg: #881337; --own-corp-bd: #fb7185;
  --own-hosp-bg: #eff6ff; --own-hosp-fg: #1e3a8a; --own-hosp-bd: #60a5fa;
  --own-acad-bg: #f5f3ff; --own-acad-fg: #4c1d95; --own-acad-bd: #a78bfa;
  --pill-bg: #eef2ff; --pill-fg: #1e3a8a; --pill-bd: #c7d2fe;
  --tag-bg: #eef1f5; --tag-fg: #334155;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-text); }
img, svg { display: block; }
h1, h2, h3 { color: var(--text-strong); line-height: 1.2; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
/* RadHQ site menu: same links, labels and order as the other radhq.com pages and the forum. */
.site-bar { background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: .8125rem; }
.site-bar .container { display: flex; flex-wrap: wrap; align-items: center; gap: 0 2px; min-height: 34px; }
.site-bar a { color: var(--muted); text-decoration: none; font-weight: 500; padding: 7px 8px; white-space: nowrap; }
.site-bar a:first-child { margin-left: -8px; }
.site-bar a:hover, .site-bar a.current { color: var(--text-strong); }
.site-bar a.current { box-shadow: inset 0 -2px 0 var(--brand); }
@media (max-width: 560px) {  /* one swipeable line on phones; the fade hints at more */
  .site-bar .container { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); }
  .site-bar .container::-webkit-scrollbar { display: none; }
  .site-bar a:last-child { margin-right: 48px; }
}
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.site-header .container { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-strong); font-weight: 700; font-size: 1.05rem; margin-right: auto; }
.brand img { width: 32px; height: 32px; }
.brand span b { color: var(--brand); font-weight: 800; }
.nav-link { color: var(--text); text-decoration: none; font-weight: 500; padding: 6px 8px; border-radius: 8px; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--text-strong); background: var(--surface); }
.theme-toggle { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: transparent; cursor: pointer; color: var(--text); }
.theme-toggle:hover { background: var(--surface); }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }
@media (max-width: 560px) {
  .brand span { display: none; }
  .nav-link.hide-sm { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 16px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { border-color: var(--border-strong); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--surface); }
.btn-sm { min-height: 32px; padding: 4px 12px; font-size: .875rem; border-radius: 8px; }
.btn-lg { min-height: 48px; padding: 10px 22px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[aria-expanded="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); }

/* ---------- Form controls ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: .8rem; font-weight: 600; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 40px; padding: 8px 12px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.select { appearance: none; padding-right: 32px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 14px; }
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: .8; }
.select.is-set { border-color: var(--accent); color: var(--accent-text); }
.hint { font-size: .8rem; color: var(--muted); }
.search { position: relative; }
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search .input { padding-left: 40px; min-height: 44px; font-size: 1rem; }

/* ---------- Chips, badges, pills ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.badge, .own, .pill, .tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .76rem; line-height: 1; padding: 5px 9px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
}
.badge { font-weight: 700; }
.badge svg { width: 13px; height: 13px; fill: currentColor; }
.badge--telerad { background: var(--telerad-bg); color: var(--telerad-fg); border-color: var(--telerad-bd); }
.badge--onsite  { background: var(--onsite-bg);  color: var(--onsite-fg);  border-color: var(--onsite-bd); }
.badge--hybrid  { background: var(--hybrid-bg);  color: var(--hybrid-fg);  border-color: var(--hybrid-bd); }
.own { font-weight: 700; }
.own--radiologist { background: var(--own-rad-bg); color: var(--own-rad-fg); border-color: var(--own-rad-bd); }
.own--corporate   { background: var(--own-corp-bg); color: var(--own-corp-fg); border-color: var(--own-corp-bd); }
.own--hospital    { background: var(--own-hosp-bg); color: var(--own-hosp-fg); border-color: var(--own-hosp-bd); }
.own--academic    { background: var(--own-acad-bg); color: var(--own-acad-fg); border-color: var(--own-acad-bd); }
.pill { font-weight: 700; background: var(--pill-bg); color: var(--pill-fg); border-color: var(--pill-bd); border-radius: 7px; }
.tag { background: var(--tag-bg); color: var(--tag-fg); border-radius: 7px; }

.filter-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--accent);
  font-size: .85rem; font-weight: 600; cursor: pointer;
}
.filter-chip .icon { width: 15px; height: 15px; }

/* ---------- Page heading ---------- */
.page-head { padding: 28px 0 18px; }
.page-head h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.01em; }
.page-head p { margin: 6px 0 0; color: var(--muted); }
@media (max-width: 560px) { .page-head { padding: 20px 0 14px; } .page-head h1 { font-size: 1.4rem; } }

/* ---------- Board: filters ---------- */
.toolbar { display: flex; gap: 10px; align-items: stretch; }
.toolbar .search { flex: 1; }
.filters-toggle { display: none; }
.filters {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px;
  margin-top: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.filters .select { font-size: .9rem; }
@media (min-width: 960px) { .filters { grid-template-columns: repeat(7, 1fr); } }
@media (max-width: 720px) {
  .filters-toggle { display: inline-flex; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters:not(.is-open) { display: none; }
}

.results-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0 12px; }
.results-bar .count { font-weight: 600; margin-right: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.results-bar .select { width: auto; min-height: 36px; padding-top: 4px; padding-bottom: 4px; font-size: .9rem; }

/* ---------- Board: map panel (collapsed by default) ---------- */
.map-panel { margin-bottom: 14px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.map-panel #map { height: 300px; background: var(--surface-2); }
.map-panel .map-foot { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: space-between; padding: 8px 12px; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--border); }
@media (max-width: 560px) { .map-panel #map { height: 240px; } }
.map-pin {
  display: grid; place-items: center; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; font-size: .8rem;
  border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .45); cursor: pointer;
  transition: transform .15s;
}
.map-pin:hover { transform: scale(1.12); }
.map-pin.is-active { background: var(--featured); color: #3a2600; transform: scale(1.18); }
.map-pin.is-dim { opacity: .55; }
.leaflet-container { font: inherit; }
.leaflet-bar a, .leaflet-bar a:hover { background: var(--surface); color: var(--text); border-color: var(--border); }
.leaflet-control-attribution.leaflet-control { background: color-mix(in srgb, var(--surface) 85%, transparent); color: var(--muted); }
.leaflet-tooltip { font-weight: 600; }
.leaflet-control-attribution { font-size: 10px; }

/* ---------- Job cards ---------- */
.job-list { display: grid; gap: 12px; }
.job-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; gap: 6px 20px;
  padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s, border-color .18s;
}
.job-card:hover { transform: translateY(-1px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.job-card__title { font-size: 1.2rem; font-weight: 800; }
.job-card__title a { color: var(--text-strong); text-decoration: none; }
.job-card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card is the link */
.job-card__title a:focus-visible { outline: none; }
.job-card:has(a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.job-card__meta { color: var(--muted); margin-top: 4px; }
.job-card .chips { margin-top: 10px; }
.job-card__side { text-align: right; }
.job-card__desc { grid-column: 1 / -1; margin: 8px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.comp { font-weight: 700; color: var(--text-strong); white-space: nowrap; }
.comp.is-undisclosed { color: var(--muted); font-weight: 600; font-style: italic; }

/* Featured (highlighted): corner ribbon + glowing border, as on the current board */
.is-featured { border: 2px solid var(--featured); box-shadow: 0 0 0 3px var(--featured-glow), 0 0 22px var(--featured-glow), var(--shadow); }
.job-card.is-featured:hover { box-shadow: 0 0 0 4px var(--featured-glow), 0 0 28px var(--featured-glow), var(--shadow-lg); }
.ribbon::after {
  content: "FEATURED"; position: absolute; top: 16px; right: -40px; transform: rotate(45deg);
  background: linear-gradient(135deg, #f59e0b, #fcd34d); color: #3a2600;
  font-size: .62rem; font-weight: 800; letter-spacing: .1em; padding: 4px 48px;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .35); pointer-events: none;
}
.job-card.ribbon .job-card__side { margin-top: 22px; padding-right: 30px; } /* clear the ribbon */
.job-card.ribbon .job-card__main { padding-right: 18px; }

@media (max-width: 640px) {
  .job-card { grid-template-columns: 1fr; padding: 16px; }
  .job-card__side { text-align: left; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; order: -1; margin-bottom: 2px; }
  .job-card.ribbon .job-card__side { margin-top: 0; padding-right: 60px; }
  .job-card__title { font-size: 1.08rem; }
}

.empty { padding: 32px 20px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius); }

/* ---------- Detail page ---------- */
.back-link { display: inline-flex; align-items: center; gap: 6px; margin: 20px 0 4px; color: var(--muted); text-decoration: none; font-weight: 500; }
.back-link:hover { color: var(--text); }
.detail-head { position: relative; overflow: hidden; padding: 22px; margin: 10px 0 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.detail-head h1 { font-size: 1.6rem; font-weight: 800; padding-right: 40px; }
.detail-head .job-card__meta { font-size: 1rem; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; padding-bottom: 40px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.facts { position: sticky; top: 16px; display: grid; gap: 14px; }
.facts .comp { font-size: 1.35rem; white-space: normal; }
.facts dl { margin: 0; display: grid; gap: 8px; font-size: .92rem; }
.facts .fact { display: flex; justify-content: space-between; gap: 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; font-weight: 600; }
.apply-bar { display: none; }
@media (max-width: 820px) {
  .detail-grid { grid-template-columns: 1fr; }
  .facts { position: static; order: -1; padding: 16px; }
  .facts dl { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; }
  .facts .fact { flex-direction: column; gap: 2px; }
  .facts dt { font-size: .78rem; }
  .facts dd { text-align: left; }
  .facts [data-apply] { display: none; } /* the sticky bar below does this job on phones */
  .detail-head h1 { font-size: 1.3rem; }
  .apply-bar {
    display: flex; gap: 10px; position: sticky; bottom: 0; z-index: 500;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--border);
  }
  .apply-bar .btn { flex: 1; }
}

.prose { overflow-wrap: anywhere; font-size: 1rem; line-height: 1.65; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h1, .prose h2, .prose h3, .prose h4 { font-weight: 800; margin: 1.3em 0 .5em; }
.prose h1 { font-size: 1.3rem; } .prose h2 { font-size: 1.18rem; } .prose h3, .prose h4 { font-size: 1.05rem; }
.prose p { margin: 0 0 .9em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--muted); }
.prose strong { color: var(--text-strong); }
.prose a { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--border); margin-top: 48px; padding: 20px 0 32px; color: var(--muted); font-size: .85rem; }
.proto-note { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--featured); border: 1px dashed var(--featured); border-radius: 6px; padding: 2px 8px; }

/* ---------- Post flow ---------- */
.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; counter-reset: step; overflow-x: auto; }
.steps li { counter-increment: step; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border-strong); font-size: .78rem; }
.steps li.is-done { color: var(--text); }
.steps li.is-done::before { content: "✓"; background: var(--brand); border-color: var(--brand); color: #fff; }
.steps li.is-current { color: var(--text-strong); background: var(--surface); }
.steps li.is-current::before { background: var(--accent); border-color: var(--accent); color: #fff; }

.notice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); font-size: .9rem; margin-bottom: 16px; }
.notice.is-warn { background: color-mix(in srgb, var(--featured) 12%, transparent); border-color: color-mix(in srgb, var(--featured) 50%, transparent); }
.notice .spacer { margin-left: auto; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent-text); font-weight: 600; cursor: pointer; text-decoration: underline; }

.form-section { padding: 20px; margin-bottom: 14px; }
.form-section h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 640px) { .form-grid, .form-grid.cols-4 { grid-template-columns: 1fr 1fr; } .form-grid > .field:not(.half) { grid-column: 1 / -1; } .form-grid > .field:empty { display: none; } }
.req { color: var(--danger); }
.field-foot { display: flex; justify-content: space-between; gap: 10px; }
.input:user-invalid, .select:user-invalid, .textarea:user-invalid { border-color: var(--danger); }
.textarea.md { min-height: 220px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88rem; }

.check-chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.check-chips label { position: relative; }
.check-chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.check-chips span { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); font-size: .88rem; font-weight: 500; }
.check-chips input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); font-weight: 700; }
.check-chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.form-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin: 18px 0 8px; }
.form-actions .right { display: flex; gap: 10px; margin-left: auto; align-items: center; }
@media (max-width: 560px) { .form-actions .right { width: 100%; } .form-actions .right .btn { flex: 1; } }

.preview-label { font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 6px 12px; font-size: .85rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-text); }
.preview-frame { border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 0 16px; }
.preview-frame .detail-grid { padding-bottom: 16px; }
.preview-frame .apply-bar { display: none; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; display: block; padding: 20px; border-radius: var(--radius); border: 2px solid var(--border); background: var(--surface); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.plan input { position: absolute; opacity: 0; }
.plan:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.plan:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.plan.is-featured-plan:has(input:checked) { border-color: var(--featured); box-shadow: 0 0 0 3px var(--featured-glow); }
.plan h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.plan .price { font-size: 1.8rem; font-weight: 800; color: var(--text-strong); margin: 8px 0 2px; }
.plan .price small { font-size: .85rem; font-weight: 500; color: var(--muted); }
.plan ul { margin: 12px 0 0; padding-left: 1.1em; font-size: .92rem; }
.plan li { margin: 4px 0; }

.addon { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 14px; padding: 16px 20px; }
.addon .grow { flex: 1; min-width: 220px; }
.addon.is-disabled { opacity: .55; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.stepper button { width: 40px; height: 40px; border: 0; background: var(--surface-2); font-size: 1.2rem; cursor: pointer; color: var(--text); }
.stepper button:disabled { opacity: .4; cursor: not-allowed; }
.stepper output { min-width: 44px; text-align: center; font-weight: 700; }

.timeline { margin-top: 14px; padding: 16px 20px; }
.tl-bar { position: relative; height: 26px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; margin: 10px 0 6px; }
.tl-bar .hl { position: absolute; inset: 0; background: color-mix(in srgb, var(--featured) 22%, transparent); }
.tl-bar .pin { position: absolute; top: 0; bottom: 0; left: 0; background: var(--featured); transition: width .25s; }
.tl-ticks { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); }
.tl-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .85rem; margin-top: 8px; }
.tl-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }

.summary { width: 100%; border-collapse: collapse; font-size: .95rem; }
.summary td { padding: 9px 0; border-bottom: 1px solid var(--border); }
.summary td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.summary tr.total td { border-bottom: 0; font-size: 1.1rem; font-weight: 800; color: var(--text-strong); padding-top: 14px; }
.mock-checkout { margin-top: 16px; padding: 18px; border-radius: var(--radius-sm); border: 2px dashed var(--border-strong); text-align: center; color: var(--muted); font-size: .9rem; }

.done { text-align: center; padding: 40px 22px; }
.done .big { font-size: 2.6rem; line-height: 1; }
.done h2 { font-size: 1.5rem; margin: 14px 0 8px; }
.done .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }

/* ---------- Dashboard (My listings) ---------- */
/* Chart series colours: dataviz reference slots 1–3 (views, clicks, board), validated on this site's card surfaces (light #fff, dark #1f2937). */
:root { --series-views: #338ced; --series-clicks: #e76624; --series-board: #00a888; }
:root[data-theme="light"] { --series-views: #257de0; --series-clicks: #f47230; --series-board: #00b894; }

.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.dash-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
@media (max-width: 760px) { .kpis { grid-template-columns: 1fr 1fr; } }
.kpi { padding: 16px 18px; }
.kpi .value { font-size: 1.8rem; font-weight: 700; color: var(--text-strong); line-height: 1.15; margin-top: 4px; }
.kpi .sub { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.delta { font-weight: 700; white-space: nowrap; }
.delta.up { color: var(--success); }
.delta.down { color: var(--danger); }
.section-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 10px; }

.listings { display: grid; gap: 12px; }
.listing { padding: 0; overflow: hidden; }
.listing-top { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-start; padding: 16px 18px 12px; }
.listing-top .main { flex: 1; min-width: 240px; }
.listing-top .t { font-weight: 700; color: var(--text-strong); font-size: 1.05rem; text-decoration: none; }
a.t:hover { text-decoration: underline; }
.listing-top .meta { font-size: .85rem; color: var(--muted); margin-top: 2px; }
.listing-top .chips { margin-top: 8px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.listing-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; padding: 12px 18px; border-top: 1px solid var(--border); }
.stat b { display: block; font-size: 1.05rem; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.stat span { font-size: .75rem; color: var(--muted); }
.listing-stats .spark { color: var(--muted); }
.listing-stats .toggle { margin-left: auto; }
@media (max-width: 640px) {
  .listing-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat b { font-size: .95rem; white-space: nowrap; }
  .listing-stats .spark { display: none; }
  .listing-stats .toggle { grid-column: 1 / -1; margin-left: 0; }
  .row-actions { width: 100%; }
  .row-actions .btn { flex: 1; }
}
.status, .plan-chip { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.status svg, .plan-chip svg { width: 13px; height: 13px; }
.status--live { color: var(--success); border-color: color-mix(in srgb, var(--success) 45%, transparent); background: color-mix(in srgb, var(--success) 12%, transparent); }
.status--expired, .status--draft { color: var(--muted); border-color: var(--border-strong); background: var(--surface-2); }
.plan-chip { color: var(--text); border-color: var(--border-strong); background: transparent; font-weight: 600; }
.plan-chip.is-featured-chip { border-color: var(--featured); }

.listing-analytics { border-top: 1px solid var(--border); padding: 16px 18px 18px; }
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 14px; margin-bottom: 10px; }
.chart-note { font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.chart-note i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; background: color-mix(in srgb, var(--featured) 25%, transparent); border: 1px solid color-mix(in srgb, var(--featured) 60%, transparent); }
.chart-title { font-size: .85rem; font-weight: 700; color: var(--text); margin: 6px 0 2px; }
.chart-title span { font-weight: 500; color: var(--muted); }
.chart-wrap { position: relative; border-radius: 8px; touch-action: pan-y; }
.chart-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.chart-wrap svg { display: block; width: 100%; overflow: visible; }
.chart-wrap .grid { stroke: var(--border); stroke-width: 1; shape-rendering: crispEdges; }
.chart-wrap text { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart-wrap .xhair { stroke: var(--muted); stroke-width: 1; opacity: 0; shape-rendering: crispEdges; }
.chart-wrap.is-hover .xhair, .chart-wrap.is-hover .hover-dot { opacity: 1; }
.chart-wrap .hover-dot { opacity: 0; fill: var(--series-views); stroke: var(--surface); stroke-width: 2; }
.chart-wrap .bar { fill: var(--series-clicks); transition: opacity .1s; }
.chart-wrap.is-hover .bar:not(.is-active) { opacity: .45; }
.chart-wrap .band { fill: var(--featured); opacity: .1; }
.chart-tip { position: absolute; top: 4px; pointer-events: none; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 8px; padding: 8px 10px; box-shadow: var(--shadow-lg); font-size: .82rem; white-space: nowrap; z-index: 5; }
.chart-tip .d { color: var(--muted); margin-bottom: 4px; }
.chart-tip .r { display: flex; align-items: center; gap: 8px; }
.chart-tip .r i { display: inline-block; width: 12px; height: 2px; border-radius: 1px; }
.chart-tip .r b { color: var(--text-strong); font-variant-numeric: tabular-nums; }
.chart-table { max-height: 260px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; margin-top: 12px; }
.chart-table table { width: 100%; border-collapse: collapse; font-size: .85rem; font-variant-numeric: tabular-nums; }
.chart-table th, .chart-table td { padding: 6px 12px; text-align: right; border-bottom: 1px solid var(--border); }
.chart-table th:first-child, .chart-table td:first-child { text-align: left; }
.chart-table th { position: sticky; top: 0; background: var(--surface); color: var(--muted); font-weight: 600; }

/* ---------- Production additions: form errors, notices, statuses, admin tables ---------- */
.field-error { color: var(--danger); font-size: .8rem; font-weight: 600; }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.notice.is-error { background: color-mix(in srgb, var(--danger) 12%, transparent); border-color: color-mix(in srgb, var(--danger) 50%, transparent); }
.notice.is-success { background: color-mix(in srgb, var(--success) 12%, transparent); border-color: color-mix(in srgb, var(--success) 45%, transparent); }
.status--scheduled, .status--hidden, .status--removed { color: var(--muted); border-color: var(--border-strong); background: var(--surface-2); }
.status--hidden, .status--removed { color: var(--danger); }
.row-actions form { display: contents; }
.site-foot a { color: inherit; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.table tr:last-child td { border-bottom: 0; }
.table a { color: var(--text-strong); text-decoration: none; }
.table a:hover { text-decoration: underline; }
.term-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 12px 0; border-top: 1px solid var(--border); }
.term-row label { display: grid; gap: 4px; font-size: .75rem; font-weight: 600; color: var(--muted); }
.term-row .input, .term-row .select { min-width: 0; width: auto; }
.term-row > .muted { flex-basis: 100%; }

/* ---------- Post a job: info page (pricing, reach, how it works) before the form ---------- */
.lp-hero { border-bottom: 1px solid var(--border);
  background: radial-gradient(900px 380px at 85% 0%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%),
              radial-gradient(700px 320px at 0% 100%, var(--accent-soft), transparent 70%), var(--bg); }
.lp-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.lp-eyebrow { margin: 0 0 10px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
:root:not([data-theme="light"]) .lp-eyebrow { color: #6fc3a6; }
.lp-hero h1 { font-size: 2.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.lp-lead { font-size: 1.08rem; color: var(--text); margin: 16px 0 0; max-width: 560px; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.lp-ticks { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 18px 0 0; font-size: .9rem; color: var(--muted); }
.lp-ticks li, .lp-list li, .lp-plan li { display: flex; gap: 8px; align-items: flex-start; }
.lp-ticks .icon, .lp-list .icon, .lp-plan li .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--success); stroke-width: 2.5; }
.lp-example { margin: 0; display: grid; gap: 12px; }
.lp-example .job-card { pointer-events: none; }
.lp-example figcaption { font-size: .8rem; color: var(--muted); text-align: center; }
.lp-example .job-card__title { font-size: 1.05rem; }

.lp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.lp-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.lp-stat b { display: block; font-size: 2rem; font-weight: 800; color: var(--text-strong); letter-spacing: -.01em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lp-stat span { font-size: .85rem; color: var(--muted); }
.lp-source { font-size: .78rem; color: var(--muted); margin: 8px 0 0; }

.lp-section { margin-top: 56px; }
.lp-h2 { font-size: 1.65rem; font-weight: 800; letter-spacing: -.01em; }
.lp-h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; }
.lp-sub { color: var(--muted); margin: 6px 0 0; }
.lp-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.lp-benefit { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.lp-benefit > .icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 12px; }
.lp-benefit h3 { font-size: 1.02rem; font-weight: 700; }
.lp-benefit p { margin: 6px 0 0; font-size: .92rem; color: var(--muted); }

.lp-split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; }
.lp-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.lp-quote { margin: 0; display: flex; flex-direction: column; justify-content: center; border-left: 4px solid var(--brand); }
.lp-quote p { margin: 0; font-size: 1.15rem; font-weight: 600; color: var(--text-strong); line-height: 1.45; }
.lp-quote footer { margin-top: 12px; color: var(--muted); font-size: .9rem; }

.lp-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; align-items: start; }
.lp-plan { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 22px; background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius); }
.lp-plan.is-featured { border-color: var(--featured); box-shadow: 0 0 0 3px var(--featured-glow), 0 0 22px var(--featured-glow); }
.lp-plan h3 { font-size: 1.1rem; }
.lp-price { font-size: 2.1rem; font-weight: 800; color: var(--text-strong); letter-spacing: -.01em; }
.lp-price small { font-size: .85rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.lp-plan ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; font-size: .92rem; }
.lp-plan .btn { margin-top: 16px; }
.lp-flag { position: absolute; top: -12px; right: 18px; background: linear-gradient(135deg, #f59e0b, #fcd34d); color: #3a2600; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.lp-plans-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 20px; }

.lp-steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: lpstep; }
.lp-steps li { counter-increment: lpstep; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.lp-steps li::before { content: counter(lpstep); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 12px; }
.lp-steps h3 { font-size: 1rem; font-weight: 700; }
.lp-steps p { margin: 6px 0 0; font-size: .9rem; color: var(--muted); }

.lp-faq { margin-top: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.lp-faq details + details { border-top: 1px solid var(--border); }
.lp-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 16px 20px; font-weight: 600; color: var(--text-strong); }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--muted); }
.lp-faq details[open] summary::after { content: "−"; }
.lp-faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--radius-sm); }
.lp-faq details p { margin: 0; padding: 0 20px 18px; color: var(--text); max-width: 760px; }

.lp-final { margin-top: 56px; text-align: center; padding: 36px 22px; }
.lp-final .lp-cta { justify-content: center; }

@media (max-width: 900px) {
  .lp-hero__grid { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; padding-bottom: 32px; }
  .lp-benefits, .lp-plans { grid-template-columns: 1fr 1fr; }
  .lp-steps { grid-template-columns: 1fr 1fr; }
  .lp-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .lp-hero h1 { font-size: 1.9rem; }
  .lp-benefits, .lp-plans, .lp-steps, .lp-split { grid-template-columns: 1fr; }
  .lp-plans { gap: 20px; }
  .lp-section { margin-top: 40px; }
  .lp-h2 { font-size: 1.35rem; }
  .lp-stats { gap: 8px; }
  .lp-stat { padding: 12px 14px; }
  .lp-stat b { font-size: 1.5rem; }
  .lp-stat span { font-size: .78rem; display: block; line-height: 1.35; margin-top: 2px; }
  .lp-cta .btn { flex: 1; }
}
