
/*
 * Ashby Job Board — validator‑safe CSS (v6)
 * - Force logo left alignment by overriding generic <img> centering
 * - Keeps prior fixes for plain "N Positions"
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --fontFamily: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --pageBg: #ffffff;
  --cardBg: #f6f6f6;
  --textPrimary: #111111;
  --textSecondary: #6b6b6b;
  --border: #e9e9e9;
  --link: #111111;
  --linkHover: #000000;
  --radiusCard: 10px;
  --gap: 16px;
}

/* Base */
html, body {
  background: var(--pageBg);
  color: var(--textSecondary);
  font-family: var(--fontFamily);
  line-height: 1.6;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Force images (logo) to align left if they were centered via margin auto */
img {
  display: block;
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* Heading row */
.ashby-job-board-heading {
  color: var(--textPrimary);
  font-weight: 700;
  font-size: 2.25rem;
  margin: 0;
  padding: 18px 0;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

/* Count — plain "N Positions" */
.ashby-job-board-heading-count {
  font-size: 1rem;
  font-weight: 500;
  color: var(--textSecondary);
  background: none !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.ashby-job-board-heading-count::before { content: ""; }
.ashby-job-board-heading-count::after { content: " Positions"; }

/* Filters */
.ashby-job-board-filter select {
  -webkit-appearance: none;
  appearance: none;
  background: #ffffff;
  color: var(--textPrimary);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 8px 34px 8px 12px;
  font-size: 0.95rem;
  line-height: 1.2;
  background-image:
    linear-gradient(45deg, transparent 50%, #888 50%),
    linear-gradient(135deg, #888 50%, transparent 50%),
    linear-gradient(#888, #888);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%,
    calc(100% - 1.7rem) 50%;
  background-size: 6px 6px, 6px 6px, 1px 14px;
  background-repeat: no-repeat;
  cursor: pointer;
  margin: 10px 0 20px 0;
}

/* Department headings */
.ashby-department-heading {
  margin-top: 28px;
  margin-bottom: 10px;
  padding-top: 8px;
  color: var(--textPrimary);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.006em;
}

.ashby-department-heading-level {
  margin: 2px 0 14px 0;
  color: var(--textPrimary);
  font-weight: 600;
  font-size: 1rem;
}

/* Cards */
.ashby-job-posting-brief {
  display: inline-block;
  width: calc(33.333% - var(--gap));
  background: var(--cardBg);
  border: 1px solid var(--border);
  border-radius: var(--radiusCard);
  padding: 14px 16px;
  margin: 0 var(--gap) var(--gap) 0;
  box-shadow: none;
  vertical-align: top;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ashby-job-posting-brief:nth-child(3n) { margin-right: 0; }

.ashby-job-posting-brief:hover {
  background: #f3f3f3;
  border-color: #e2e2e2;
}

/* Titles */
.ashby-job-posting-brief-title,
.ashby-job-posting-brief-title a {
  color: var(--textPrimary);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  margin: 0 0 6px 0;
  display: inline-block;
  line-height: 1.35;
}

.ashby-job-posting-brief-title a:hover { text-decoration: underline; }

/* Labels inside card */
.ashby-job-posting-brief-department-heading,
.ashby-job-posting-brief-department-heading-level {
  color: var(--textSecondary);
  font-weight: 500;
  font-size: 0.93rem;
  margin: 0 0 2px 0;
}

/* Links */
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--linkHover); text-decoration: underline; }

/* Application form */
.ashby-application-form-container {
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-top: 24px;
}

/* Responsive */
@media (max-width: 1024px) {
  .ashby-job-posting-brief { width: calc(50% - var(--gap)); }
  .ashby-job-posting-brief:nth-child(3n) { margin-right: var(--gap); }
  .ashby-job-posting-brief:nth-child(2n) { margin-right: 0; }
}

@media (max-width: 640px) {
  .ashby-job-board-heading { font-size: 1.9rem; padding: 14px 0; }
  .ashby-department-heading { font-size: 1.125rem; }
  .ashby-job-posting-brief { width: 100%; margin-right: 0; }
}
