/* Company detail — Vercel-style tabbed layout */
.jw-cd-page {
  position: relative;
  padding: 0 0 56px;
  background: #f4f6f9;
  min-height: calc(100vh - 72px);
}

.jw-cd-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(135deg, #0c2d6b 0%, #0a65cc 55%, #1e7fe8 100%);
  z-index: 0;
}

.jw-cd-container {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  padding-top: 48px;
}

.jw-cd-hero {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  margin-bottom: 24px;
  overflow: hidden;
}

.jw-cd-hero__top {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 8px;
}

.jw-cd-hero__brand {
  display: flex;
  gap: 20px;
  flex: 1 1 480px;
  min-width: 0;
}

.jw-cd-hero__logo-wrap {
  position: relative;
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  min-width: 96px;
  min-height: 96px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
  background: #f1f5f9;
  line-height: 0;
}

.jw-cd-hero__logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  border: none;
  display: block;
}

.jw-cd-hero__avatar {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
}

.jw-cd-hero__meta {
  min-width: 0;
  flex: 1;
}

.jw-cd-hero__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.jw-cd-hero__name {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.jw-cd-hero__jobs-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.jw-cd-hero__summary {
  margin: 4px 0 0;
  font-size: 14px;
  color: #64748b;
  line-height: 1.45;
}

.jw-cd-hero__social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.jw-cd-hero__social a {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.15s ease, color 0.15s ease;
}

.jw-cd-hero__social a:hover {
  background: #eff6ff;
  color: #0a65cc;
  text-decoration: none;
}

.jw-cd-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.jw-cd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  background: transparent;
}

.jw-cd-btn--ghost {
  color: #0a65cc;
  border-color: #cfe0ff;
  background: #fff;
}

.jw-cd-btn--ghost:hover {
  background: #eff6ff;
  color: #084fa3;
  text-decoration: none;
}

.jw-cd-btn--primary {
  background: #0a65cc;
  color: #fff;
  border-color: #0a65cc;
}

.jw-cd-btn--primary:hover {
  background: #084fa3;
  color: #fff;
}

.jw-cd-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0 12px;
  margin: 0;
  border-top: 1px solid #f1f5f9;
}

.jw-cd-tabs__btn {
  appearance: none;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.jw-cd-tabs__btn:hover {
  color: #111827;
}

.jw-cd-tabs__btn.is-active {
  color: #0a65cc;
  border-bottom-color: #0a65cc;
}

.jw-cd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 24px;
  align-items: start;
}

.jw-cd-layout__sidebar {
  position: sticky;
  top: calc(var(--jw-employer-header-h, 91px) + 16px);
}

.jw-cd-panel {
  display: none;
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
}

.jw-cd-panel.is-active {
  display: block;
}

.jw-cd-panel__heading {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

.jw-cd-panel__count {
  font-weight: 600;
  color: #9ca3af;
  font-size: 16px;
}

.jw-cd-panel__subheading {
  margin: 28px 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: #374151;
}

.jw-cd-about {
  font-size: 15px;
  line-height: 1.75;
  color: #475569;
  max-width: 72ch;
}

.jw-cd-about p {
  margin: 0 0 1em;
}

.jw-cd-about p:last-child {
  margin-bottom: 0;
}

.jw-cd-about-preview {
  border: 1px solid #eef2f7;
  border-radius: 12px;
  padding: 16px 18px;
  background: #fafbfc;
}

.jw-cd-about-preview-text {
  margin: 0;
  color: #374151;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.jw-cd-about-more {
  display: inline-block;
  margin-top: 10px;
  padding: 0;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  cursor: pointer;
}

.jw-cd-about-more:hover,
.jw-cd-about-more:focus {
  color: #1d4ed8;
  text-decoration: underline;
  outline: none;
}

.jw-cd-about--full .jw-cd-about-less {
  margin-top: 14px;
}

.jw-cd-about img {
  max-width: 100%;
  height: auto;
}

.jw-cd-location-block {
  width: 100%;
}

.jw-cd-location-text {
  margin: 0 0 12px;
  font-size: 15px;
  color: #4b5563;
  line-height: 1.5;
}

.jw-cd-location-text .fa {
  color: #94a3b8;
  margin-right: 6px;
}

.jw-cd-map,
.jw-cd-map .jw-company-map-embed,
.jw-cd-map .jw-cd-map-embed {
  width: 100%;
  max-width: 100%;
  margin: 0;
  clear: both;
}

.jw-cd-map {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.jw-cd-map iframe {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: 420px;
  border: 0;
  margin: 0;
}

.jw-cd-contact-inline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.jw-cd-contact-inline li {
  margin: 0 0 8px;
  font-size: 14px;
  color: #374151;
}

.jw-cd-contact-inline a {
  color: #0a65cc;
}

/* Reuse shared job list cards inside company detail tab */
.jw-cd-joblist {
  margin-top: 4px;
}

.jw-cd-panel .jw-joblist-card {
  margin: 0;
}

.jw-cd-empty {
  text-align: center;
  padding: 40px 24px;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  color: #6b7280;
  font-size: 15px;
}

.jw-cd-contact-form .formrow {
  margin-bottom: 14px;
}

.jw-cd-contact-form .form-control {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  min-height: 44px;
  font-size: 14px;
  box-shadow: none;
}

.jw-cd-contact-form .form-control:focus {
  border-color: #0a65cc;
  box-shadow: 0 0 0 3px rgba(10, 101, 204, 0.12);
}

.jw-cd-contact-form textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.jw-cd-widget {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 16px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
}

.jw-cd-widget--snapshot {
  padding: 0;
  overflow: hidden;
}

.jw-cd-widget--snapshot .jw-cd-widget__title {
  margin: 0;
  padding: 16px 20px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-bottom: 1px solid #e2e8f0;
}

.jw-cd-widget--snapshot .jw-cd-snapshot {
  padding: 8px 20px 16px;
}

.jw-cd-widget:last-child {
  margin-bottom: 0;
}

.jw-cd-widget__title {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.jw-cd-widget__text {
  margin: 0;
  font-size: 14px;
  color: #374151;
}

.jw-cd-snapshot {
  margin: 0;
}

.jw-cd-snapshot__item {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
}

.jw-cd-snapshot__item:first-child {
  padding-top: 8px;
}

.jw-cd-snapshot__item:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

.jw-cd-snapshot__label {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: #64748b;
  letter-spacing: 0.02em;
}

.jw-cd-snapshot__value {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: #0f172a;
  text-align: left;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.jw-cd-snapshot__value a {
  color: #0a65cc;
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}

.jw-cd-snapshot__value a:hover {
  color: #084fa3;
  text-decoration: underline;
}

.jw-cd-snapshot__item--jobs {
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px dashed #e2e8f0;
  border-bottom: none;
}

.jw-cd-snapshot__item--jobs .jw-cd-snapshot__label {
  margin-bottom: 8px;
}

.jw-cd-snapshot__jobs-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.jw-cd-snapshot__item--jobs .jw-cd-snapshot__value {
  line-height: 1;
}

.jw-cd-social-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jw-cd-social-list__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px solid #e8ecf1;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.jw-cd-social-list__item:hover {
  background: #eff6ff;
  border-color: #93b4f7;
  color: #0a65cc;
  text-decoration: none;
}

.jw-cd-social-list__item .fa {
  width: 20px;
  text-align: center;
  color: #0a65cc;
}

@media (max-width: 991.98px) {
  .jw-cd-layout {
    grid-template-columns: 1fr;
  }

  .jw-cd-layout__sidebar {
    position: static;
  }

  .jw-cd-widget--snapshot .jw-cd-snapshot {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
    padding: 12px 18px 16px;
  }

  .jw-cd-snapshot__item {
    padding: 12px 0;
  }

  .jw-cd-snapshot__item--jobs {
    grid-column: 1 / -1;
    margin-top: 0;
    padding-top: 14px;
  }

  .jw-cd-hero__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .jw-cd-hero__brand {
    flex: 1 1 100%;
  }
}

@media (max-width: 575.98px) {
  .jw-cd-banner {
    height: 160px;
  }

  .jw-cd-container {
    padding-top: 32px;
  }

  .jw-cd-hero__top {
    padding: 20px 18px 16px;
  }

  .jw-cd-hero__brand {
    flex-direction: column;
  }

  .jw-cd-hero__name {
    font-size: 22px;
  }

  .jw-cd-tabs {
    padding: 0 4px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .jw-cd-tabs__btn {
    white-space: nowrap;
    padding: 12px 14px;
    font-size: 13px;
  }

  .jw-cd-panel {
    padding: 18px 16px;
  }

  .jw-cd-widget--snapshot .jw-cd-snapshot {
    grid-template-columns: 1fr;
    padding: 8px 16px 14px;
  }

  .jw-cd-about {
    max-width: none;
  }
}
