:root {
  --primary: #0077cc;
  --primary-dark: #005fa3;
  --bg: #f9fafb;
  --radius: 12px;
  --text-muted: #6b7280;
}

body {
  background: var(--bg);
}

.breadcrumb {
  font-size: 0.9rem;
  color: #4b5563;
  margin: 0 0 1rem;
}

.breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span[aria-hidden] {
  margin: 0 0.35rem;
  opacity: 0.65;
}

.job-detail-card {
  max-width: 760px;
  margin: 1.5rem auto;
  padding: 1.6rem 2rem 2rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.search-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.75rem 0.9rem;
  margin-bottom: 1.25rem;
  background: #f3f4f6;
  border-radius: 10px;
}

.search-box input[type="search"] {
  flex: 1;
  min-width: 200px;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #fff;
  font-size: 1rem;
}

.search-box__submit {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-box__submit:hover {
  background: var(--primary-dark);
}

.city-field {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.city-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
  z-index: 40;
  overflow: hidden;
}

.city-suggestions[hidden] {
  display: none;
}

.city-suggestions__header {
  padding: 0.65rem 0.85rem;
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 1px solid #f3f4f6;
}

.city-suggestions__scroll {
  max-height: 260px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.city-option {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 0.7rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  cursor: pointer;
  font-size: 1rem;
}

.city-option + .city-option {
  border-top: 1px solid #f1f5f9;
}

.city-option:hover,
.city-option:focus {
  background: #f8fafc;
}

.city-option__label {
  font-weight: 600;
  color: #0f172a;
}

.city-option__meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.city-empty {
  padding: 0.95rem 0.9rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.job-detail-progress {
  background: #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  height: 8px;
  margin-bottom: 1.2rem;
}

.progress__bar {
  width: 33%;
  height: 8px;
  background: var(--primary);
  transition: width 0.4s ease;
}

.job-hero {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.job-hero__title {
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 0 0 0.4rem;
  color: #0f172a;
}

.job-company {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.job-company a {
  color: inherit;
  text-decoration: none;
}

.job-company a:hover {
  text-decoration: underline;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  font-size: 0.95rem;
  color: #4b5563;
}

.job-hero__actions {
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.save-pill {
  display: inline-grid;
  grid-template-columns: 44px auto;
  grid-template-rows: auto auto;
  gap: 0.4rem 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(241, 245, 249, 0.8);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  font-size: 0.92rem;
  color: #0f172a;
}

.save-pill .save-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-row: 1 / span 2;
}

.save-pill .save-text {
  font-size: 0.95rem;
  font-weight: 600;
}

.save-pill small {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.save-pill.is-saved {
  background: #0f172a;
  color: #f8fafc;
  border-color: #0f172a;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
}

.save-pill.is-saved small {
  color: rgba(248, 250, 252, 0.78);
}

.save-pill.is-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

.save-pill:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.save-toast {
  font-size: 0.85rem;
  color: var(--primary);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.save-toast.is-visible {
  opacity: 1;
}

.job-note {
  font-size: 0.9rem;
  color: #475569;
  margin: 0 0 1rem;
}

.ad-block {
  background: #f9fafb;
  border: 1px dashed #d4d4d8;
  border-radius: 12px;
  padding: 1.1rem;
  margin: 1.2rem 0;
  text-align: center;
  color: #9ca3af;
  font-size: 0.85rem;
  position: relative;
}

.ad-block__placeholder {
  display: inline-block;
  width: 100%;
}

#ad-middle.has-ad .ad-block__placeholder {
  display: none;
}

#ad-top[data-zone-loaded="1"] {
  border: none;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.job-description {
  font-size: 1.02rem;
  color: #1f2937;
  line-height: 1.65;
}

.job-description h2,
.job-description h3,
.job-description h4 {
  margin: 1.4rem 0 0.6rem;
  line-height: 1.3;
  font-size: 1.12rem;
}

.job-description p {
  margin: 0 0 1rem;
}

.job-description ul,
.job-description ol {
  margin: 0.4rem 0 1rem 1.25rem;
}

.job-description li {
  margin: 0.25rem 0;
}

.job-description blockquote {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.08);
  border-radius: 10px;
}

.job-description a {
  color: var(--primary);
  text-decoration: underline;
}

.share {
  margin: 1.5rem 0 1.1rem;
}

.share__label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: #1f2937;
}

.share__actions {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.share__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-weight: 600;
  color: #1f2937;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.share__item:hover,
.share__item:focus {
  background: #e5e7eb;
  border-color: #cbd5f5;
}

.share__item--copy {
  width: 100%;
}

.share__item--copy:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 119, 204, 0.25);
}

.job-related {
  margin-top: 2rem;
}

.job-related h2 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: #0f172a;
}

.job-related__list {
  list-style: disc;
  margin: 0;
  padding-left: 1.2rem;
  color: #1f2937;
}

.job-related__list li {
  margin: 0.35rem 0;
}

.job-related__list a {
  color: var(--primary);
  text-decoration: none;
}

.job-related__list a:hover {
  text-decoration: underline;
}

.job-cta {
  display: grid;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(14, 165, 233, 0.35);
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.08), rgba(14, 165, 233, 0.03));
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.1);
  margin: 1.4rem 0;
}

.job-cta__info {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.job-cta__info .job-cta__content {
  flex: 1;
}

.job-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.job-cta__button--primary,
.cta {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.job-cta__button--primary:hover,
.cta:hover {
  background: var(--primary-dark);
  color: #fff;
}

.trust {
  background: #f3f4f6;
  border-radius: 10px;
  padding: 1rem;
  font-size: 0.9rem;
  color: #374151;
}

.trust ul {
  margin: 0.6rem 0 0;
  padding-left: 1.2rem;
}

.logo-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.logo-tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  background: #0f172a;
  color: #fff;
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.15);
}

.logo-tip::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 12px;
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent #0f172a transparent;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.logo-tip:hover::after,
.logo-tip:focus::after,
.logo-tip:hover::before,
.logo-tip:focus::before {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.job-ad-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 260px;
  box-sizing: border-box;
  overflow: hidden;
}

.job-ad-shell--has-ad .job-ad-fallback {
  opacity: 0;
  pointer-events: none;
}

.job-ad-fallback {
  position: absolute;
  inset: 0;
  margin: auto;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  border-radius: 12px;
  padding: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: #9ca3af;
  transition: opacity 0.18s ease;
}

.job-article-inline-ad {
  min-height: 320px;
  text-align: center;
  padding: 0;
}

.job-article-inline-ad[hidden] {
  display: none !important;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  z-index: 1000;
}

.modal.is-visible {
  display: flex;
}

.modal-content {
  background: #fff;
  padding: 2.4rem 2rem 2rem;
  border-radius: var(--radius);
  max-width: 420px;
  width: min(420px, 100%);
  text-align: center;
  position: relative;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
}

.modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  background: none;
  border: none;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
}

.modal-lead {
  margin: 0.75rem 0 1.2rem;
  color: #4b5563;
  line-height: 1.5;
}

.modal-benefits {
  list-style: disc;
  text-align: left;
  padding-left: 1.2rem;
  margin: 0 0 1.6rem;
  color: #1f2937;
}

.modal-primary,
.modal-secondary {
  display: block;
  width: 100%;
  padding: 0.9rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 0.75rem;
}

.modal-secondary {
  background: rgba(148, 163, 184, 0.18);
  color: #1f2937;
}

.modal-secondary:hover {
  background: rgba(148, 163, 184, 0.28);
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .job-detail-card {
    margin: 1rem;
    padding: 1.2rem 1.1rem 1.6rem;
  }

  .job-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .job-hero__actions {
    width: 100%;
    align-items: stretch;
  }

  .save-pill {
    width: 100%;
    grid-template-columns: 44px auto;
  }
}

@media (max-width: 600px) {
  .job-detail-card {
    margin: 1rem 0.6rem;
    padding: 1rem;
  }

  .search-box {
    flex-direction: column;
  }

  .search-box input[type="search"],
  .search-box__submit {
    width: 100%;
  }

  .job-hero__title {
    font-size: 1.42rem;
  }

  .modal-content {
    padding: 2.1rem 1.4rem 1.7rem;
  }
}
