/* Company detail — clean modern layout */
.jw-cd-page {
  padding: 20px 0 44px;
  background: #f8fafc;
  min-height: calc(100vh - 72px);
}

.jw-cd-container {
  max-width: 1140px;
}

/* Icons */
.jw-cd-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #0a65cc;
}

.jw-cd-icon svg {
  display: block;
}

.jw-cd-icon--inline {
  color: #64748b;
}

.jw-cd-icon--muted {
  color: #94a3b8;
}

.jw-cd-icon--link {
  color: #0a65cc;
}

/* Hero card */
.jw-cd-hero {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 16px;
  overflow: hidden;
}

.jw-cd-hero__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 0;
}

.jw-cd-hero__identity {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1 1 280px;
}

.jw-cd-hero__logo-wrap {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  position: relative;
}

.jw-cd-hero__logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.jw-cd-hero__title-block {
  min-width: 0;
}

.jw-cd-hero__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

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

.jw-cd-hero__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 8px;
}

.jw-cd-hero__stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
}

.jw-cd-hero__title-row .jb-verified {
  margin-top: 2px;
}

.jw-cd-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

/* Meta grid — icon + label + value */
.jw-cd-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 22px 0;
}

.jw-cd-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  min-width: 0;
}

.jw-cd-meta-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 9px;
  background: #eff6ff;
  color: #0a65cc;
}

.jw-cd-meta-item__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.jw-cd-meta-item__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  line-height: 1.2;
}

.jw-cd-meta-item__value {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.35;
  word-break: break-word;
}

/* Location — full-width row */
.jw-cd-hero__location {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 12px 22px 0;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 10px;
}

.jw-cd-hero__location-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 9px;
  background: #eff6ff;
  color: #0a65cc;
}

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

.jw-cd-hero__location-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  line-height: 1.2;
  margin-bottom: 4px;
}

.jw-cd-hero__location-text {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: #334155;
  word-break: break-word;
}

/* About strip */
.jw-cd-hero__about {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 22px 0;
  padding: 10px 12px;
  background: #fafbfc;
  border-radius: 10px;
  border: 1px solid #f1f5f9;
}

.jw-cd-hero__about-text {
  margin: 0;
  flex: 1;
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
}

.jw-cd-hero__about-more {
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: #0a65cc;
  cursor: pointer;
  white-space: nowrap;
}

.jw-cd-hero__about-more:hover {
  text-decoration: underline;
}

/* Contact + social footer */
.jw-cd-hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 22px 0;
  padding: 12px 0 16px;
  border-top: 1px solid #f1f5f9;
}

.jw-cd-contact-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.jw-cd-contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  border-radius: 9px;
  border: 1px solid #e2e8f0;
  background: #fff;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
  max-width: 100%;
}

.jw-cd-contact-pill:hover {
  border-color: #bfdbfe;
  background: #f8fbff;
  text-decoration: none;
}

.jw-cd-contact-pill__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #eff6ff;
  flex-shrink: 0;
}

.jw-cd-contact-pill__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.jw-cd-contact-pill__label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  line-height: 1.1;
}

.jw-cd-contact-pill__value {
  font-size: 12px;
  font-weight: 600;
  color: #0a65cc;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jw-cd-social-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
}

.jw-cd-social-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.jw-cd-social-pill i {
  font-size: 14px;
  color: #0a65cc;
}

.jw-cd-social-pill:hover {
  border-color: #bfdbfe;
  color: #0a65cc;
  text-decoration: none;
}

/* Tabs */
.jw-cd-tabs {
  display: flex;
  gap: 0;
  padding: 0 14px;
  border-top: 1px solid #f1f5f9;
  background: #fafbfc;
}

.jw-cd-tabs__btn {
  appearance: none;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
}

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

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

/* Buttons */
.jw-cd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

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

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

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

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

/* Layout */
.jw-cd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

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

/* Panels */
.jw-cd-panel {
  display: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
}

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

.jw-cd-panel__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.jw-cd-panel__heading {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.jw-cd-panel__heading--inline {
  margin: 0;
}

.jw-cd-panel__count {
  font-weight: 500;
  color: #94a3b8;
  font-size: 14px;
}

.jw-cd-panel__sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
}

.jw-cd-panel__sort-label {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
}

.jw-cd-panel__sort-select {
  min-width: 168px;
  height: 36px;
  padding: 0 32px 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.jw-cd-panel__sort-select:focus {
  outline: none;
  border-color: #0a65cc;
  box-shadow: 0 0 0 3px rgba(10, 101, 204, 0.1);
}

.jw-cd-panel__subheading {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 18px 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #334155;
}

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

.jw-cd-about :is(h1, h2, h3, h4, h5, h6) {
  color: #1e293b;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.jw-cd-about h1 {
  font-size: 18px;
  margin: 0 0 12px;
}

.jw-cd-about h2 {
  font-size: 16px;
  margin: 18px 0 8px;
}

.jw-cd-about h3 {
  font-size: 15px;
  margin: 16px 0 8px;
}

.jw-cd-about h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 14px 0 6px;
}

.jw-cd-about h5 {
  font-size: 13px;
  font-weight: 600;
  margin: 12px 0 6px;
}

.jw-cd-about h6 {
  font-size: 12px;
  font-weight: 600;
  margin: 12px 0 6px;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.jw-cd-about :is(h1, h2, h3, h4, h5, h6):first-child {
  margin-top: 0;
}

.jw-cd-about p {
  margin: 0 0 12px;
}

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

.jw-cd-about :is(ul, ol) {
  margin: 0 0 12px;
  padding-left: 1.25rem;
}

.jw-cd-about li {
  margin-bottom: 4px;
}

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

.jw-cd-about a {
  color: #0a65cc;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.jw-cd-about img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 8px 0;
}

.jw-cd-about-preview {
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #eef2f7;
}

.jw-cd-about-preview-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
}

.jw-cd-about-more {
  margin-top: 8px;
  padding: 0;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: #0a65cc;
  cursor: pointer;
}

.jw-cd-location-text {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 14px;
  color: #475569;
}

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

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

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

.jw-cd-contact-inline li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 14px;
}

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

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

.jw-cd-empty {
  padding: 28px 16px;
  text-align: center;
  font-size: 14px;
  color: #64748b;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px dashed #cbd5e1;
}

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

.jw-cd-contact-form .form-control {
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  min-height: 40px;
  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.1);
}

.jw-cd-contact-form textarea.form-control {
  min-height: 100px;
}

/* Snapshot sidebar */
.jw-cd-widget {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

.jw-cd-widget__title {
  margin: 0;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  border-bottom: 1px solid #f1f5f9;
}

.jw-cd-snapshot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.jw-cd-snap-cell {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 9px;
  min-width: 0;
}

.jw-cd-snap-cell--full {
  grid-column: 1 / -1;
}

.jw-cd-snap-cell__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
  background: #eff6ff;
}

.jw-cd-snap-cell__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.jw-cd-snap-cell__label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  line-height: 1.2;
}

.jw-cd-snap-cell__value {
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.35;
  word-break: break-word;
}

.jw-cd-snap-cell__value a {
  color: #0a65cc;
  text-decoration: none;
}

.jw-cd-snap-cell__value a:hover {
  text-decoration: underline;
}

.jw-cd-snap-cell__email {
  display: inline-flex;
  margin-left: 4px;
  vertical-align: middle;
}

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

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

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

@media (max-width: 575.98px) {
  .jw-cd-page {
    padding: 12px 0 32px;
  }

  .jw-cd-hero__head {
    padding: 16px 14px 0;
  }

  .jw-cd-meta-grid {
    padding: 12px 14px 0;
    gap: 8px;
  }

  .jw-cd-hero__location {
    margin: 10px 14px 0;
    padding: 10px 12px;
  }

  .jw-cd-hero__about {
    margin: 12px 14px 0;
  }

  .jw-cd-hero__foot {
    margin: 12px 14px 0;
    flex-direction: column;
    align-items: stretch;
  }

  .jw-cd-hero__actions {
    width: 100%;
  }

  .jw-cd-hero__actions .jw-cd-btn {
    flex: 1;
    justify-content: center;
  }

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

  .jw-cd-tabs__btn {
    white-space: nowrap;
  }

  .jw-cd-snapshot {
    grid-template-columns: 1fr;
  }

  .jw-cd-panel {
    padding: 14px;
  }
}
