/* SEO / catalog pages — aligned with the main Jobify board */

.catalog-page {
  margin: 0;
  min-height: 100%;
  overflow: auto;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 320px at 8% -8%, rgba(226, 75, 26, 0.12), transparent 55%),
    radial-gradient(700px 380px at 100% 0%, rgba(31, 122, 108, 0.1), transparent 50%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font);
}

.catalog-page .cat-shell a:not([class*="btn"]),
.catalog-page .cat-foot a {
  color: var(--accent);
  text-decoration: none;
}

.catalog-page .cat-shell a:not([class*="btn"]):hover,
.catalog-page .cat-foot a:hover {
  color: var(--accent-hover);
}

.catalog-page .global-nav {
  flex: 0 0 var(--nav-h);
  position: sticky;
  top: 0;
}

.salary-stats article {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.salary-stats em {
  font-style: normal;
  color: var(--ink-soft);
  font-size: 13px;
}

.match-card {
  margin: 8px 0 0;
  font-size: 14px;
}

.match-card a {
  font-weight: 650;
}

.install-steps {
  margin: 0;
  padding-inline-start: 1.25rem;
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: 15px;
}

.install-steps li + li {
  margin-top: 10px;
}

.install-steps code {
  font-size: 0.92em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: var(--sand);
}

.catalog-page .brand {
  text-decoration: none;
}

.cat-shell {
  flex: 1;
  width: min(100%, var(--shell-max));
  margin: 16px auto 28px;
  padding: 0 16px;
}

.cat-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cat-top {
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--line);
}

.cat-about {
  padding: 22px 28px 32px;
}

.crumb {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.crumb a {
  color: var(--muted);
  font-weight: 600;
}

.crumb a:hover {
  color: var(--accent);
}

.cat-top h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(26px, 4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.cat-top h1 .pill.featured {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.detail-sub {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.detail-sub span,
.detail-sub .muted {
  color: var(--muted);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.detail-actions .btn-primary,
.detail-actions .btn-secondary {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}

.detail-actions .btn-primary {
  background: var(--accent);
  color: #fff;
}

.detail-actions .btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.detail-actions .btn-secondary {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}

.detail-actions .btn-secondary:hover {
  background: var(--sand);
  color: var(--ink);
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.share-row > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.share-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(20, 34, 31, 0.16);
}

.share-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.share-copy .share-copy-done { display: none; }
.share-copy.is-copied .share-copy-idle { display: none; }
.share-copy.is-copied .share-copy-done { display: block; }
.share-copy { background: #14221f; }

.share-whatsapp { background: #25d366; }
.share-facebook { background: #1877f2; }
.share-x { background: #111; }
.share-linkedin { background: #0a66c2; }
.share-telegram { background: #26a5e4; }

.share-icon:hover {
  color: #fff;
  filter: brightness(0.92);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}

.pill,
.skill-pill {
  background: var(--sand);
  color: var(--ink);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 700;
}

.pill.featured {
  background: #fff4e8;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(226, 75, 26, 0.22);
}

.notice {
  margin: 14px 0 0;
  background: #fff4e8;
  border: 1px solid rgba(226, 75, 26, 0.18);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--ink-soft);
  font-size: 14px;
}

.cat-about h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cat-about > p,
.cat-lead {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.similar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.similar-list li {
  border-bottom: 1px solid var(--line);
}

.similar-list li:last-child {
  border-bottom: 0;
}

.similar-list a {
  display: block;
  padding: 12px 14px;
  color: inherit;
  text-decoration: none;
}

.similar-list a:hover {
  background: var(--sand);
}

.similar-list strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.similar-list a:hover strong {
  color: var(--accent);
}

.similar-list .course-ad a {
  padding: 0;
}

.similar-list .course-ad img {
  display: block;
  width: 100%;
  height: auto;
}

.similar-list span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 4px 0 20px;
}

.stats article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}

.stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.stats strong {
  display: block;
  margin-top: 4px;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.cat-table th,
.cat-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.cat-table th {
  background: var(--sand);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.cat-table tr:last-child td {
  border-bottom: 0;
}

.cat-foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: var(--shell-max);
  margin: 0 auto 28px;
  padding: 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.cat-foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cat-foot a {
  color: var(--muted);
  font-weight: 600;
}

.ad-slot {
  min-height: 40px;
  margin: 18px 0 0;
}

@media (max-width: 859px) {
  .catalog-page .nav-signin,
  .catalog-page .nav-user:not([hidden]) {
    display: inline-flex !important;
  }

  .catalog-page .nav-crawl-counter {
    display: none !important;
  }

  .catalog-page .nav-get-app span {
    display: none !important;
  }

  .catalog-page .nav-get-app {
    min-width: 36px;
    padding: 0 9px;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .cat-top,
  .cat-about {
    padding: 18px 16px 16px;
  }

  .detail-actions .btn-primary,
  .detail-actions .btn-secondary {
    flex: 1 1 auto;
  }
}

.job-description p { margin: 0 0 0.75em; }
.job-description p:last-child { margin-bottom: 0; }
