/* ===================================
   Clove x Ashby Custom Theme
   Based on Ashby-provided CSS scaffold
   =================================== */

/* Load Inter inside the Ashby iframe */
@import url("https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,100..900&display=swap");

:root {
  --fontFamily:
    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Clove palette */
  --color-off-white: #f7f4f0;
  --color-off-black: #140e00;
  --color-sand: #eae5de;

  --color-c-900: #150d03;
  --color-c-800: #261807;
  --color-c-700: #655a4e;
  --color-c-500: #9a8f82;
  --color-c-400: #cfc9c1;
  --color-c-300: #eae5de;
  --color-c-200: #f2eee8;
  --color-c-100: #f7f4f0;
  --color-c-50: #fffefc;

  /* Map to Ashby tokens */
  --colorAppBackground: var(--color-c-50);
  --colorPrimary900: var(--color-c-800);
  --colorPrimary600: var(--color-c-500);
  --colorNegative200: #fce8e8;
  --colorPositive200: #eafcec;
  --colorWarning800: #8c6d1f;
  --colorWarning600: #f4ca64;
  --colorNegative600: #dc3030;
  --colorPositive600: #29b458;
  --colorWarning900: #5c4813;

  --borderRadiusContainer: 12px;
  --borderRadiusControl: 8px;
  --borderRadiusButton: 10px;
  --borderWidthBold: 1px;
  --widthMaxJobBoard: 1024px;
}

/* -------------------
   Global
   ------------------- */
[data-ashby-root] {
  font-family: var(--fontFamily);
  color: var(--color-off-black);
  background: var(--color-off-white);
  -webkit-font-smoothing: antialiased;
}

/* Headings & text */
[data-ashby-root] h1,
[data-ashby-root] h2,
[data-ashby-root] h3 {
  font-weight: 600;
  color: var(--color-c-900);
  margin: 0 0 0.5rem;
}
[data-ashby-root] p {
  color: var(--color-c-700);
  line-height: 1.6;
}
[data-ashby-root] a {
  color: var(--color-c-800);
  text-decoration: none;
}
[data-ashby-root] a:hover {
  text-decoration: underline;
}

body {
  font-family: var(--fontFamily);
  color: var(--color-off-black);
  background: var(--color-off-white);
  -webkit-font-smoothing: antialiased;
}
/* -------------------
   Header + Logo
   ------------------- */
.ashby-job-posting-header {
  padding: 1.5rem 1rem;
  background: var(--color-off-white);
}
.ashby-job-posting-header img {
  max-height: 36px; /* shrink logo */
  width: auto;
}

/* -------------------
   Job List
   ------------------- */
.ashby-job-posting-brief {
  border: 1px solid var(--color-c-300);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  transition: box-shadow 0.2s ease;
}
.ashby-job-posting-brief:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}
.ashby-job-posting-brief-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-c-900);
}
.ashby-job-posting-brief-department-heading,
.ashby-job-posting-brief-department-heading-level {
  font-size: 0.9rem;
  color: var(--color-c-700);
}

/* -------------------
   Left Pane
   ------------------- */
.ashby-job-posting-left-pane {
  background: var(--color-off-white);
}

/* -------------------
   Right Pane
   ------------------- */
.ashby-job-posting-right-pane {
  background: var(--color-off-white) !important;
}

.ashby-job-posting-right-pane div {
  background: var(--color-off-white) !important;
}

.ashby-application-form-success-container p {
  color: var(--color-off-black) !important;
}

.ashby-application-form-success-container h2 {
  color: var(--color-off-black) !important;
}

/* -------------------
   Buttons
   ------------------- */
.ashby-application-form-submit-button,
[data-ashby-root] button,
[data-ashby-root] [role="button"] {
  appearance: none;
  border: 1px solid var(--color-c-800);
  background: var(--color-c-800);
  color: var(--color-c-50);
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.02s ease;
}
[data-ashby-root] button:hover,
[data-ashby-root] [role="button"]:hover {
  background: var(--color-c-900);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}
[data-ashby-root] button:active,
[data-ashby-root] [role="button"]:active {
  transform: translateY(1px);
}
[data-ashby-root] button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Secondary */
[data-ashby-root] [data-variant="secondary"] {
  background: transparent;
  border: 1px solid var(--color-c-300);
  color: var(--color-off-black);
}

/* -------------------
   Form controls
   ------------------- */
[data-ashby-root] input,
[data-ashby-root] select,
[data-ashby-root] textarea {
  border: 1px solid var(--color-c-300);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  font: inherit;
  background: var(--color-c-50);
  color: var(--color-off-black);
}
[data-ashby-root] input:focus,
[data-ashby-root] select:focus,
[data-ashby-root] textarea:focus {
  outline: 2px solid var(--color-c-500);
  outline-offset: 1px;
}

/* -------------------
   Badges
   ------------------- */
[data-ashby-root] [data-badge],
[data-ashby-root] small {
  display: inline-block;
  background: var(--color-c-200);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
  color: var(--color-c-700);
}
