/* =============================================================================
   Popl — custom CSS for the Ashby-hosted job board
   https://jobs.ashbyhq.com/popl

   Upload this file in Ashby under:
     Admin > Job Boards > Theme (Job Board) > Custom CSS

   Also set Brand Colors in that same Theme page to:
     Darker / primary:  #211815
     Lighter / secondary (if a second field is shown):  #483B36
   Ashby applies those colors to buttons and links on the job board,
   booking pages, surveys, and consent pages. This file sets the same
   values on the CSS variables so the board stays consistent.

   Every color and font below is taken from popl.co (fetched 2026-12-03).
   Sources are cited in comments. Nothing here is invented.

   Supported variables and class names come from Ashby's example CSS:
     https://www.ashbyhq.com/job_board_example_css/full-job-board.css
     https://www.ashbyhq.com/job_board_example_css/application-form-only.css
   and the documented selector list:
     https://gist.github.com/nemo/84febd550da2e551a1842c909db14456
   ============================================================================= */

/* Figtree is Popl's UI / body font, loaded on popl.co from Google Fonts.
   See the homepage <link rel="preload" ... family=Figtree> and
   rebrand.css (.rbr-body-medium, .rbr-label-*, buttons: font-family: Figtree).
   Display headlines on popl.co use a licensed custom face named "nuckle",
   which cannot be redistributed here. Figtree is the legal, on-brand
   substitute for all job-board text. */
@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap");

:root {
  /* ----- Typography ----- */
  --fontFamily: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* ----- Surfaces ----- */
  /* Page background. rebrand.css: body { background: #f9f4ef }
     Design token --L-Neutral / Surfaces-Surface-Fill-1 (light).
     The sticky header uses this same variable, so it stays cream, not white. */
  --colorAppBackground: #F9F4EF;

  /* Do not change --colorNeutral000. Ashby uses it both as a surface
     and as the text/icon color on primary buttons. Setting it to
     cream or transparent would make button labels disappear. */

  /* ----- Brand / interactive colors -----
     WARNING: these two can also be set in Ashby admin under Brand Colors.
     Keep the admin values in sync with the hexes below. */
  /* Darker primary. rebrand.css token --Colors-Core-Dark-Neutral
     and --Surfaces-Surface-Fill-1 (dark): filled CTA background #211815.
     Primary body text is the same token, --Text-Text-Fill-1: #211815. */
  --colorPrimary900: #211815;

  /* Lighter primary. rebrand.css token --Text-Text-Fill-2: #483B36
     (secondary / supporting text). Used by Ashby for hover / lighter
     treatments of the brand color. */
  --colorPrimary600: #483B36;

  /* ----- Layout ----- */
  --widthMaxContent: 800px;
  --widthMaxJobBoard: 800px;
  --widthMaxSubscriptionPreferences: 600px;

  /* ----- Radii, matching Popl controls -----
     Filled and outline CTAs on popl.co use --Buttons-Button-Radius of
     24px or 72px on a ~48px-tall button (a pill). Inputs use ~8–12px. */
  --borderRadiusContainer: 16px;
  --borderRadiusControl: 12px;
  --borderRadiusButton: 72px;
}

/* -----------------------------------------------------------------------------
   Header / logo
   The header bar already uses --colorAppBackground, so it becomes cream
   with the variable above. The white rectangle around today's wordmark is
   in the uploaded image (a large white canvas). Upload popl-wordmark.png,
   which is already a transparent PNG, to remove it for good.

   As a fallback, multiply-blend the wordmark so opaque white pixels in
   the current file disappear into the cream page. Do not multiply the
   square / icon logo; that file is a sunrise gradient on purpose.
   ----------------------------------------------------------------------------- */

[class*="navLogoLink"],
[class*="navLogoWordmarkImage"],
[class*="navLogoIconImage"],
.ashby-job-posting-header img {
  background-color: transparent;
  background-image: none;
  border: 0;
  box-shadow: none;
  padding: 0;
}

img[src*="org-theme-wordmark"],
img[class*="navLogoWordmarkImage"] {
  background-color: transparent;
  mix-blend-mode: multiply;
}

/* -----------------------------------------------------------------------------
   Job board listing
   ----------------------------------------------------------------------------- */

/* Heading above the list of open roles. */
.ashby-job-board-heading {
  color: #211815; /* --Text-Text-Fill-1 */
  letter-spacing: -0.02em; /* Popl heading tracking on popl.co */
}

.ashby-job-board-heading-count {
  color: #70615C; /* --Text-Text-Fill-3 */
}

/* Department / team headings. */
.ashby-department-heading,
.ashby-department-heading-level,
.ashby-job-posting-brief-department-heading,
.ashby-job-posting-brief-department-heading-level {
  color: #211815; /* --Text-Text-Fill-1 */
  letter-spacing: -0.02em;
}

/* Each opening sits directly on the cream page, separated by a taupe
   divider. No white card, radius, or shadow. Ashby's default container
   style uses --colorNeutral000 (white) plus a drop shadow; this overrides
   that for job rows only. */
.ashby-job-posting-brief {
  margin-bottom: 0;
  padding-top: 16px;
  padding-bottom: 16px;
  background-color: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid #D2C7C1 !important; /* divider on popl.co */
  border-radius: 0 !important;
  box-shadow: none !important;
}

.ashby-job-posting-brief:hover {
  /* Light ink wash, same recipe as popl.co --shadow-sm (ink at low alpha). */
  background-color: rgb(33 24 21 / 0.05);
  cursor: pointer;
}

.ashby-job-posting-brief:hover .ashby-job-posting-brief-title {
  color: #483B36; /* --Text-Text-Fill-2 */
}

.ashby-job-posting-brief-title {
  color: #211815; /* --Text-Text-Fill-1 */
  letter-spacing: -0.02em;
}

.ashby-job-posting-brief-details {
  color: #70615C; /* --Text-Text-Fill-3 */
}

/* Filter dropdowns: cream field, taupe border, no white chip.
   The open menu still uses Ashby's default surface so options stay readable. */
.ashby-job-board-filter {
  background-color: transparent !important;
  border-color: #AA9D96 !important; /* --Borders-Border-Color */
  color: #211815;
  box-shadow: none;
}

/* -----------------------------------------------------------------------------
   Individual job posting
   Left rail, description, and form wrappers are also Ashby "container"
   surfaces (white + shadow by default). Flatten them onto the cream page.
   ----------------------------------------------------------------------------- */

.ashby-job-posting-heading {
  color: #211815; /* --Text-Text-Fill-1 */
  letter-spacing: -0.02em;
}

.ashby-job-posting-left-pane,
.ashby-job-posting-description-container,
.ashby-application-form-container,
.ashby-application-form-autofill-pane {
  background-color: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* -----------------------------------------------------------------------------
   Application form
   Keep inputs clearly fillable: white field, taupe border. That is a
   control surface, not a page card.
   ----------------------------------------------------------------------------- */

.ashby-application-form-section-header-title {
  color: #211815;
  letter-spacing: -0.02em;
}

.ashby-application-form-question-title {
  color: #211815;
}

.ashby-application-form-question-description {
  color: #70615C; /* --Text-Text-Fill-3 */
}

.ashby-application-form-input-text,
.ashby-application-form-input-textarea,
.ashby-application-form-input-autocomplete,
.ashby-application-form-input-file-dropzone,
.ashby-application-form-autofill-input-root {
  background-color: #FFFFFF; /* theme --shades-white */
  border-color: #AA9D96; /* --Borders-Border-Color */
  border-radius: var(--borderRadiusControl);
}

/* Submit button: color comes from --colorPrimary900 / Brand Colors.
   Weight 500 matches Popl's .rbr-label-medium CTAs (Figtree, 500). */
.ashby-application-form-submit-button {
  font-weight: 500;
  letter-spacing: 0;
}

.ashby-application-form-success-container,
.ashby-application-form-failure-container {
  border-radius: var(--borderRadiusContainer);
}
