/*! Strand UI | MIT License | dillingerstaffing.com */

/* cf: surface-tokens */

.strand-detail-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 360px;
  max-width: 100%;
  height: 100%;
  z-index: 20;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.98) 0%, rgba(241, 245, 249, 0.97) 100%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-left: 1px solid rgba(59, 142, 246, 0.1);
  box-shadow: -4px 0 32px rgba(0, 0, 0, 0.25), inset 1px 0 0 rgba(255, 255, 255, 0.4);
  padding: 120px var(--strand-space-6) var(--strand-space-8);
  transform: translateX(100%);
  transition: transform var(--strand-duration-slow) var(--strand-ease-out-expo);
  overflow-y: auto;
}

.strand-detail-panel[hidden] {
  display: none;
}

.strand-detail-panel.is-open,
.strand-detail-panel.open {
  transform: translateX(0);
}

.strand-detail-panel.is-open > .strand-overline,
.strand-detail-panel.open > .strand-overline {
  animation: strand-detail-fade var(--strand-duration-slow) var(--strand-ease-out-expo) 0.1s both;
}

.strand-detail-panel.is-open .strand-detail-panel__title,
.strand-detail-panel.open .strand-detail-panel__title {
  animation: strand-detail-fade var(--strand-duration-slow) var(--strand-ease-out-expo) 0.18s both;
}

.strand-detail-panel.is-open .strand-detail-panel__meta,
.strand-detail-panel.open .strand-detail-panel__meta {
  animation: strand-detail-fade var(--strand-duration-slow) var(--strand-ease-out-expo) 0.26s both;
}

.strand-detail-panel.is-open .strand-detail-panel__salary,
.strand-detail-panel.open .strand-detail-panel__salary {
  animation: strand-detail-fade var(--strand-duration-slow) var(--strand-ease-out-expo) 0.34s both;
}

.strand-detail-panel.is-open .strand-detail-panel__cta,
.strand-detail-panel.open .strand-detail-panel__cta {
  animation: strand-detail-fade var(--strand-duration-slow) var(--strand-ease-out-expo) 0.42s both;
}

.strand-detail-panel.is-open .strand-detail-panel__source,
.strand-detail-panel.open .strand-detail-panel__source {
  animation: strand-detail-fade var(--strand-duration-slow) var(--strand-ease-out-expo) 0.48s both;
}

@keyframes strand-detail-fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.strand-detail-panel__close {
  position: absolute;
  top: 80px;
  right: var(--strand-space-4);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--strand-gray-200);
  border-radius: var(--strand-radius-md);
  font-size: var(--strand-text-lg);
  color: var(--strand-gray-500);
  cursor: pointer;
  transition:
    color var(--strand-duration-fast) ease,
    border-color var(--strand-duration-fast) ease,
    background var(--strand-duration-fast) ease;
}

.strand-detail-panel__close:hover {
  color: var(--strand-blue-primary);
  border-color: rgba(59, 142, 246, 0.3);
  background: rgba(59, 142, 246, 0.05);
}

.strand-detail-panel__close-text {
  display: none;
}

.strand-detail-panel__close-icon {
  display: inline;
}

.strand-detail-panel__title {
  font-size: 1.375rem;
  font-weight: var(--strand-weight-medium);
  letter-spacing: var(--strand-tracking-tight);
  color: var(--strand-gray-900);
  margin: 0 0 var(--strand-space-4);
  line-height: 1.3;
}

.strand-detail-panel__meta {
  display: flex;
  flex-direction: column;
  gap: var(--strand-space-1);
  padding-bottom: var(--strand-space-4);
  border-bottom: 1px solid rgba(59, 142, 246, 0.08);
  margin-bottom: var(--strand-space-5);
}

.strand-detail-panel__company,
.strand-detail-panel__location {
  font-size: var(--strand-text-sm);
  color: var(--strand-gray-700);
  line-height: 1.4;
}

.strand-detail-panel__salary {
  font-family: var(--strand-font-mono);
  font-size: var(--strand-text-lg);
  font-weight: var(--strand-weight-light);
  letter-spacing: var(--strand-tracking-tight);
  color: var(--strand-blue-midnight);
  margin-bottom: var(--strand-space-6);
}

.strand-detail-panel__cta {
  display: block;
  text-align: center;
  text-decoration: none;
  margin-bottom: var(--strand-space-3);
  transition:
    box-shadow var(--strand-duration-fast) ease,
    transform var(--strand-duration-fast) var(--strand-ease-out-expo);
}

.strand-detail-panel__cta:hover {
  box-shadow: 0 8px 24px rgba(29, 90, 216, 0.25);
}

.strand-detail-panel__cta:active {
  transform: translateY(0) scale(0.98);
}

.strand-detail-panel__source {
  display: block;
  font-family: var(--strand-font-mono);
  font-size: var(--strand-text-xs);
  letter-spacing: var(--strand-tracking-wide);
  color: var(--strand-gray-500);
  text-align: center;
}

@media (max-width: 640px) {
  .strand-detail-panel {
    width: 100%;
    height: auto;
    max-height: 70vh;
    top: auto;
    bottom: 0;
    border-radius: var(--strand-radius-xl) var(--strand-radius-xl) 0 0;
    padding: 0 var(--strand-space-4) var(--strand-space-6);
    transform: translateY(100%);
    box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.2);
  }

  .strand-detail-panel.is-open,
  .strand-detail-panel.open {
    transform: translateY(0);
  }

  .strand-detail-panel__close {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 48px;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--strand-gray-200);
    background: transparent;
    font-family: var(--strand-font-mono);
    font-size: var(--strand-text-sm);
    font-weight: var(--strand-weight-medium);
    letter-spacing: var(--strand-tracking-wider);
    color: var(--strand-blue-primary);
    margin-bottom: var(--strand-space-4);
  }

  .strand-detail-panel__close:hover {
    background: var(--strand-blue-glow);
  }

  .strand-detail-panel__close-icon {
    display: none;
  }

  .strand-detail-panel__close-text {
    display: inline;
  }

  .strand-detail-panel > .strand-overline {
    margin-bottom: var(--strand-space-2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .strand-detail-panel.is-open > .strand-overline,
  .strand-detail-panel.open > .strand-overline,
  .strand-detail-panel.is-open .strand-detail-panel__title,
  .strand-detail-panel.open .strand-detail-panel__title,
  .strand-detail-panel.is-open .strand-detail-panel__meta,
  .strand-detail-panel.open .strand-detail-panel__meta,
  .strand-detail-panel.is-open .strand-detail-panel__salary,
  .strand-detail-panel.open .strand-detail-panel__salary,
  .strand-detail-panel.is-open .strand-detail-panel__cta,
  .strand-detail-panel.open .strand-detail-panel__cta,
  .strand-detail-panel.is-open .strand-detail-panel__source,
  .strand-detail-panel.open .strand-detail-panel__source {
    animation: none;
  }
}

.strand-detail-panel {
  --strand-alert-bg: initial;
  --strand-alert-color: var(--strand-gray-700);
  --strand-alert-dismiss-color: initial;
  --strand-alert-dismiss-hover-bg: initial;
  --strand-alert-dismiss-hover-color: var(--strand-gray-500);
  --strand-alert-error-status-color: initial;
  --strand-alert-info-status-color: initial;
  --strand-alert-success-status-color: initial;
  --strand-alert-warning-status-color: initial;
  --strand-bar-chart-amount-color: initial;
  --strand-bar-chart-label-color: initial;
  --strand-big-mono-time-color: initial;
  --strand-big-mono-time-sep-color: initial;
  --strand-btn-ghost-border-color: initial;
  --strand-btn-ghost-color: initial;
  --strand-checkbox-label-color: initial;
  --strand-data-readout-label-color: initial;
  --strand-data-readout-value-color: initial;
  --strand-form-field-hint-color: initial;
  --strand-form-field-label-color: initial;
  --strand-heading-sm-color: initial;
  --strand-headline-color: initial;
  --strand-kv-label-color: initial;
  --strand-kv-value-color: initial;
  --strand-kv-value-status-color: var(--strand-gray-700);
  --strand-lead-color: initial;
  --strand-link-color: initial;
  --strand-link-mono-color: var(--strand-blue-deep);
  --strand-link-mono-hover-color: initial;
  --strand-link-underline: initial;
  --strand-log-text-color: initial;
  --strand-log-text-strong-color: initial;
  --strand-log-time-color: initial;
  --strand-overline-accent-color: initial;
  --strand-overline-color: initial;
  --strand-progress-track-color: initial;
  --strand-radio-label-color: initial;
  --strand-stat-strip-border-color: initial;
  --strand-stat-strip-label-color: initial;
  --strand-stat-strip-value-color: initial;
  --strand-status-chip-committed-color: initial;
  --strand-status-chip-neutral-bg: initial;
  --strand-status-chip-neutral-border: initial;
  --strand-status-chip-neutral-color: initial;
  --strand-switch-label-color: initial;
  --strand-text-secondary-color: initial;
  --strand-text-secondary-xs-color: var(--strand-gray-500);
  --strand-title-color: initial;
  --strand-value-negative-color: initial;
  --strand-value-positive-color: initial;
}
