/* Ashby public board layout (jobs.ashbyhq.com/kraken.com) */
:root {
  --ashby-text: #373e4d;
  --ashby-muted: #6b7280;
  --ashby-link: #5841d8;
  --ashby-border: #e5e7eb;
  --ashby-bg: #ffffff;
  --ashby-max: 720px;
  --ashby-tab: #5841d8;
}

body.ashby-board {
  margin: 0;
  font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ashby-text);
  background: var(--ashby-bg);
  -webkit-font-smoothing: antialiased;
}

.ashby-shell {
  max-width: var(--ashby-max);
  margin: 0 auto;
  padding: 32px 24px 64px;
}

body[data-ashby-page="job"] .ashby-shell,
body[data-ashby-page="application"] .ashby-shell {
  max-width: 960px;
}

.ashby-logo-wrap {
  text-align: center;
  margin-bottom: 20px;
}

.ashby-logo-wrap img {
  max-width: 240px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.ashby-posting-nav {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.ashby-logo-wrap--nav {
  text-align: center;
  margin-bottom: 0;
  min-width: 0;
  justify-self: center;
  display: block;
}

.ashby-logo-wrap--nav img {
  max-width: min(200px, 100%);
  width: auto;
  height: auto;
  max-height: 56px;
  object-fit: contain;
  margin: 0 auto;
}

.ashby-nav-spacer {
  width: 36px;
  flex-shrink: 0;
}

.ashby-disclaimer {
  text-align: center;
  font-size: 14px;
  font-style: italic;
  color: var(--ashby-muted);
  line-height: 1.55;
  margin: 0 0 28px;
}

.ashby-disclaimer a {
  color: var(--ashby-link);
  text-decoration: none;
}

.ashby-disclaimer a:hover {
  text-decoration: underline;
}

.ashby-list-head h1 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 16px;
}

.ashby-filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.ashby-reset {
  font-size: 13px;
  color: var(--ashby-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ashby-reset:disabled {
  opacity: 0.45;
  cursor: default;
}

.ashby-reset:not(:disabled):hover {
  color: var(--ashby-link);
}

.ashby-filters-label {
  font-size: 13px;
  color: var(--ashby-muted);
  margin: 0;
}

.ashby-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
}

@media (min-width: 560px) {
  .ashby-filters {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ashby-select {
  width: 100%;
  font: inherit;
  font-size: 14px;
  padding: 10px 32px 10px 12px;
  border: 1px solid var(--ashby-border);
  border-radius: 8px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  color: var(--ashby-text);
}

.ashby-group {
  margin-bottom: 28px;
}

.ashby-group-breadcrumb {
  font-size: 13px;
  color: var(--ashby-muted);
  margin: 0 0 4px;
}

.ashby-group-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 12px;
}

.ashby-posting {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--ashby-border);
  text-decoration: none;
  color: var(--ashby-text);
}

.ashby-posting:hover .ashby-posting-title {
  text-decoration: underline;
}

.ashby-posting-title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ashby-link);
  margin-bottom: 4px;
  line-height: 1.35;
}

.ashby-posting-meta {
  display: block;
  font-size: 13px;
  color: var(--ashby-muted);
}

.ashby-posting-comp {
  display: block;
  font-size: 13px;
  color: var(--ashby-muted);
  margin-top: 2px;
}

.ashby-empty {
  text-align: center;
  color: var(--ashby-muted);
  padding: 32px 0;
  font-size: 14px;
}

/* Job detail + application */
.ashby-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #fff;
  background: var(--ashby-link);
  text-decoration: none;
  flex-shrink: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.ashby-back svg {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.ashby-back:hover {
  filter: brightness(1.06);
  color: #fff;
}

.ashby-job-title {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  line-height: 1.2;
}

.ashby-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--ashby-border);
  margin-bottom: 28px;
}

.ashby-tab {
  font-size: 15px;
  font-weight: 500;
  color: var(--ashby-muted);
  text-decoration: none;
  padding: 0 0 12px;
  margin-bottom: -1px;
  border-bottom: 3px solid transparent;
}

.ashby-tab.is-active {
  color: var(--ashby-tab);
  border-bottom-color: var(--ashby-tab);
}

.ashby-job-layout {
  display: grid;
  gap: 32px;
}

@media (min-width: 768px) {
  .ashby-job-layout {
    grid-template-columns: minmax(200px, 34%) 1fr;
    align-items: start;
  }
}

.ashby-sidebar section {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--ashby-border);
}

.ashby-sidebar section:last-child {
  border-bottom: none;
}

.ashby-sidebar h2 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ashby-muted);
  margin: 0 0 6px;
}

.ashby-sidebar p,
.ashby-sidebar li {
  font-size: 14px;
  margin: 0;
  line-height: 1.45;
}

.ashby-sidebar ul {
  margin: 0;
  padding-left: 1.1rem;
}

.ashby-sidebar .fine {
  font-size: 11px;
  color: var(--ashby-muted);
  line-height: 1.45;
  margin-top: 8px;
}

.ashby-dept-path {
  font-size: 14px;
}

.ashby-dept-path span {
  color: var(--ashby-muted);
}

.ashby-prose {
  max-width: 42rem;
}

.ashby-prose h1 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 28px 0 12px;
}

.ashby-prose h1:first-child {
  margin-top: 0;
}

.ashby-prose h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 24px 0 10px;
}

.ashby-prose p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.6;
}

.ashby-prose ul {
  margin: 0 0 16px;
  padding-left: 1.25rem;
}

.ashby-prose li {
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.55;
}

.ashby-prose a {
  color: var(--ashby-link);
}

.ashby-apply-bar {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--ashby-border);
}

.ashby-btn-primary {
  display: inline-block;
  background: var(--ashby-link);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.ashby-btn-primary:hover {
  filter: brightness(1.05);
  color: #fff;
}

.ashby-autofill {
  background: #f3f0ff;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  line-height: 1.45;
}

.ashby-autofill-btn {
  cursor: pointer;
  font-weight: 500;
  padding: 8px 14px;
  background: #fff;
  color: var(--ashby-link);
  border: 1px solid var(--ashby-link);
  border-radius: 8px;
  font-size: 14px;
}

.ashby-autofill strong {
  display: block;
  font-weight: 600;
}

.ashby-form h3,
.ashby-form-fields h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 24px 0 12px;
}

.ashby-form h3:first-of-type,
.ashby-form-fields h3:first-of-type {
  margin-top: 0;
}

.ashby-form-section {
  margin-top: 28px;
  padding-top: 4px;
}

.ashby-field {
  margin-bottom: 16px;
}

.ashby-field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.ashby-field label .req {
  color: #dc2626;
}

.ashby-field-hint {
  font-size: 13px;
  color: var(--ashby-muted);
  margin: 0 0 8px;
  line-height: 1.45;
}

.ashby-input,
.ashby-textarea,
.ashby-form select {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid var(--ashby-border);
  border-radius: 8px;
  box-sizing: border-box;
}

.ashby-textarea {
  min-height: 120px;
  resize: vertical;
}

.ashby-file-zone {
  border: 2px dashed #d1d5db;
  border-radius: 10px;
  padding: 28px 20px;
  text-align: center;
  font-size: 14px;
  color: var(--ashby-muted);
  transition: border-color 0.15s, background 0.15s;
}

.ashby-file-label {
  cursor: pointer;
  display: block;
}

.ashby-btn-upload {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 14px;
  padding: 8px 16px;
  pointer-events: none;
}

.ashby-file-or {
  display: block;
  font-size: 14px;
  color: var(--ashby-muted);
}

.ashby-file-name {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--ashby-text);
  word-break: break-all;
}

.ashby-file-zone.is-dragover {
  border-color: var(--ashby-link);
  background: #faf8ff;
}

.ashby-file-zone.has-file {
  border-style: solid;
}

.ashby-form-fields .form-error,
.ashby-form .form-error {
  color: #dc2626;
  font-size: 14px;
  margin-bottom: 12px;
}

.ashby-form-fields .form-success,
.ashby-form .form-success {
  display: none;
  text-align: center;
  padding: 24px 0;
}

.ashby-form-fields .form-success.show,
.ashby-form .form-success.show {
  display: block;
}

.ashby-form-fields#lead-form.is-hidden,
.ashby-form #lead-form.is-hidden {
  display: none;
}

.ashby-form-fields .btn-block,
.ashby-form .btn-block {
  width: 100%;
  margin-top: 8px;
}

.ashby-form-fields .consent,
.ashby-form .consent {
  font-size: 12px;
  color: var(--ashby-muted);
  margin-top: 12px;
  line-height: 1.45;
}

.ashby-yesno {
  display: flex;
  gap: 10px;
}

.ashby-yesno label {
  flex: 1;
  text-align: center;
  padding: 10px;
  border: 1px solid var(--ashby-border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.ashby-yesno input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ashby-yesno input:checked + span {
  font-weight: 600;
  color: var(--ashby-link);
}

.ashby-yesno label:has(input:checked) {
  border-color: var(--ashby-link);
  background: #f9f7ff;
}

.ashby-footer-links {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--ashby-border);
  font-size: 12px;
  color: var(--ashby-muted);
  text-align: center;
}

.ashby-footer-links a {
  color: var(--ashby-muted);
  margin: 0 8px;
}

html.page-embed .ashby-disclaimer,
html.page-embed .ashby-footer-links {
  display: none;
}
