/* JobNect documentation: brand layer on top of style.css.
   Brand: ink #0B1B2B, green #14C38E; #087F5B is the green used for text (AA on white). */
:root {
  --jn-ink: #0b1b2b;
  --jn-green: #14c38e;
  --jn-green-text: #087f5b;
  --jn-green-soft: #e7f8f1;
  --jn-line: #e3e8ee;
  --jn-muted: #55606d;
}

body { background: #f3f6f8; color: #2b3440; }
.main-content p, .main-content ul li, .main-content ol li { color: #3d4753; }
.main-content ol { padding-left: 1.4rem; }
.main-content ol li { font-size: 1.05rem; line-height: 1.6rem; margin-bottom: 4px; }
.main-content ul.dots { list-style: disc; padding-left: 1.4rem; }
.main-content ul.dots li { margin-bottom: 4px; }
.main-content a { color: var(--jn-green-text); text-decoration: underline; text-underline-offset: 2px; }
.main-content .doc-tabs a, .main-content .btn-link-plain { text-decoration: none; }
.main-content h5 { font-size: 18px; font-weight: 700; color: var(--jn-ink); margin-top: 22px; }

/* sidebar */
.left-menu { border-right: 1px solid var(--jn-line); z-index: 30; }
.navbar-brand { display: block; padding: 22px 20px 6px; }
.navbar-brand img { max-width: 170px; height: auto; }
.left-menu .version-chip { display: inline-block; margin: 0 20px 6px; font-size: 12px; font-weight: 700; color: var(--jn-green-text); background: var(--jn-green-soft); border-radius: 999px; padding: 2px 10px; }
.left-menu .left-menu-title h6 a { color: var(--jn-ink); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; padding-top: 20px; }
.left-menu ul li > a { font-size: 14.5px; padding: 8px 24px 8px 14px; color: #26313d; }
.left-menu ul li:hover > a,
.left-menu ul li.active > a { color: var(--jn-green-text); background-color: var(--jn-green-soft); border-left-color: var(--jn-green); }

/* top tabs */
.doc-tabs {
  position: sticky; top: 16px; z-index: 20; display: flex; gap: 8px;
  margin-bottom: 24px; padding: 6px; border-radius: 999px; background: #fff;
  box-shadow: 0 .2rem .5rem rgba(11, 27, 43, .08);
}
.doc-tabs a {
  flex: 1; text-align: center; padding: 11px 12px; border-radius: 999px;
  color: var(--jn-ink); font-weight: 700; font-size: 14px; transition: background .2s, color .2s;
}
.doc-tabs a.active, .doc-tabs a:hover { color: #fff; background: var(--jn-ink); }
.doc-tabs a.active { box-shadow: inset 0 -3px 0 var(--jn-green); }

/* page head */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; }
.first-title { color: var(--jn-ink); font-size: 38px; }
.page-meta { font-size: .9em; color: var(--jn-muted); }
.page-meta strong { color: var(--jn-ink); }

/* sections */
.intro1 { border-radius: 14px; border: 1px solid var(--jn-line); padding: 28px 30px; scroll-margin-top: 90px; }
.main-content .second-title { color: var(--jn-ink); position: relative; padding-left: 14px; margin-bottom: 14px; }
.main-content .second-title::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 4px; border-radius: 4px; background: var(--jn-green); }
[id] { scroll-margin-top: 90px; }

/* code */
.main-content code { background: #eef2f5; color: #0b3d2e; border-radius: 4px; padding: 1px 5px; font-size: .92em; }
.main-content pre { background: #0b1b2b; color: #d7f5e8; border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-size: 13.5px; line-height: 1.55; margin: 10px 0 16px; }
.main-content pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.main-content pre .c { color: #8aa0b4; }

/* notes, badges, tables */
.note { border-left: 4px solid var(--jn-green); border-radius: 8px; padding: 12px 16px; margin: 14px 0; background: #eefaf5; }
.note.warn { border-left-color: #d97706; background: #fff7e6; }
.note.info { border-left-color: #2563eb; background: #eef4ff; }
.note p { margin: 0; }
.note p + p { margin-top: 8px; }
.badge-soft { display: inline-block; font-size: 12px; font-weight: 700; color: var(--jn-green-text); background: var(--jn-green-soft); border-radius: 999px; padding: 3px 12px; margin: 0 6px 6px 0; }
.badge-soft.ink { color: #fff; background: var(--jn-ink); }
.menu-path { font-weight: 700; color: var(--jn-ink); background: #eef2f5; border-radius: 6px; padding: 1px 8px; display: inline-block; }
.mode-table { width: 100%; border-collapse: collapse; margin: 12px 0 16px; font-size: 14.5px; }
.mode-table th, .mode-table td { border: 1px solid var(--jn-line); padding: 8px 12px; text-align: left; vertical-align: top; color: #2b3440; }
.mode-table th { background: #f3f6f8; color: var(--jn-ink); }
.mode-table code { white-space: normal; overflow-wrap: anywhere; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; margin: 14px 0; }
.steps-grid > div { border: 1px solid var(--jn-line); border-radius: 12px; padding: 14px 16px; background: #fbfcfd; }
.steps-grid strong { color: var(--jn-ink); display: block; margin-bottom: 4px; }
.steps-grid span { color: #3d4753; font-size: 14.5px; }

/* screenshots */
.shot { margin: 14px 0 8px; }
.shot img { width: 100%; height: auto; display: block; border: 1px solid var(--jn-line); border-radius: 12px; box-shadow: 0 .3rem .9rem rgba(11, 27, 43, .07); cursor: zoom-in; background: #fff; }
.shot figcaption { font-size: 13px; color: var(--jn-muted); text-align: center; margin-top: 7px; }
.shot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; margin-top: 10px; }
.shot-grid .shot { margin: 0; }

/* lightbox */
#popup-slider { cursor: zoom-out; }
#popup-slider img { width: auto; max-width: 94vw; max-height: 86vh; border-radius: 8px; background: #fff; }
#popup-slider .close-btn { background: var(--jn-green); color: var(--jn-ink); }
#popup-caption { color: #e6edf3; margin-top: 10px; font-size: 14px; text-align: center; padding: 0 16px; }

/* footer */
.doc-footer { text-align: center; color: var(--jn-muted); font-size: 13.5px; padding: 18px 0 8px; }

/* phones and tablets */
.navbar-toggler.docs-toggle { display: none; }
@media (max-width: 991.98px) {
  .main-content { padding: 72px 16px 24px; }
  .navbar-toggler.docs-toggle {
    display: inline-flex; align-items: center; gap: 8px; position: fixed; top: 12px; left: 12px; z-index: 40;
    background: var(--jn-ink); color: #fff; border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 700;
    box-shadow: 0 .3rem .8rem rgba(11, 27, 43, .25);
  }
  .left-menu { z-index: 35; box-shadow: 0 0 30px rgba(11, 27, 43, .25); padding-top: 52px; }
  .doc-tabs { position: static; border-radius: 14px; flex-wrap: wrap; }
  .doc-tabs a { flex: 1 1 45%; padding: 9px 8px; font-size: 13px; }
  .first-title { font-size: 28px; }
  .intro1 { padding: 20px 16px; }
  .mode-table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .main-content pre { font-size: 12.5px; }
}

/* keep headings and menu labels as written */
.main-content .second-title, .left-menu ul li > a { text-transform: none; }
