/* ==========================================================================
   Jobreeze — long-form content pages (About Us, Terms, etc.)
   Requires css-site-modern.css to be linked first (tokens + shared
   primitives: .jb-eyebrow, .jb-link-underline, .jb-alert).
   Scoped under .jb-article so it only applies where a page opts in.
   ========================================================================== */

.jb-article-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
.jb-article-shell::after {
  content: "";
  display: table;
  clear: both;
}
.jb-article-shell--wide {
  max-width: 1080px;
}

.jb-article-topper {
  margin: 48px 0 8px;
}

.jb-article-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 8px 0 40px;
}

/* .mainsection.jb-article: two classes beats css1.css's single-class
   .mainsection rule, overriding safely regardless of load order. */
.mainsection.jb-article {
  display: block;
  width: 100%;
  margin: 0 0 64px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--ink);
  font-family: var(--font-body);
}

/* Utility "Home" link row — mirrors the pattern used on form pages */
.jb-article .flexrow:first-child .csslabel a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.jb-article .flexrow:first-child .csslabel a:hover {
  color: var(--bronze-dark);
  border-color: var(--bronze);
}

/* css1.css's .css2 is a flex/min-height layout box — neutralize it here */
.jb-article .css2 {
  display: block;
  background: none;
  width: auto;
  min-height: auto;
  padding: 0;
}

/* Section headings ("Our Vision:", "Our Mission:", etc.) */
.jb-article .cssmaintext_3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
  margin-top: 40px;
  margin-bottom: 12px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.jb-article .cssmaintext_3:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* Body paragraphs */
.jb-article .cssmaintext_4 {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.jb-article .cssmaintext_4 a.underline {
  color: var(--bronze-dark);
  text-decoration: underline;
}

/* Inline photos (e.g. team bio image) */
.jb-article .cssmaintext_4 img {
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  max-width: 200px;
  height: auto;
}
@media (max-width: 640px) {
  .jb-article .cssmaintext_4 img {
    float: none !important;
    display: block;
    margin: 0 auto 20px !important;
    max-width: 160px;
  }
}

/* ---------- Legal / long-list pages (Terms, Privacy, etc.) ---------- */

/* Neutralize css1.css's old 3-column scaffold (.css-main-content /
   .css-col-left / .css-col-center / .css-col-right) */
.jb-article .css-main-content {
  display: block;
  padding: 0;
  background: none;
  height: auto;
}
.jb-article .css-col-left,
.jb-article .css-col-right {
  display: none;
}
.jb-article .css-col-center {
  width: 100%;
}

/* Account for the sticky header when jumping to #terms / #privacy */
.jb-article section {
  scroll-margin-top: 96px;
}

.jb-article .jb-panel + .jb-panel {
  margin-top: 24px;
}

.jb-article .csssections h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  color: var(--ink);
  margin-bottom: 20px;
}

.jb-article .csssections li {
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 15px;
  margin-bottom: 14px;
}

.jb-article li::marker {
  color: var(--bronze);
}

/* ---------- Marketing / feature-detail pages (job-search-*.php) ---------- */

.jb-article .cssmaintext_center {
  text-align: center;
  margin: 8px 0 32px;
  padding: 0;
}
.jb-article .cssmaintext_center h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}

.jb-article .cssmainsub_center {
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
  text-align: left;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.jb-article .cssmainsub_center h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
  margin: 32px 0 4px;
}
.jb-article .cssmainsub_center h2:first-child {
  margin-top: 0;
}

.jb-article .subscribenow {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.jb-article .subscribenow:hover {
  background: var(--breeze-dark);
  color: #fff;
  transform: translateY(-1px);
}

.jb-article .cssmainsub_center a.underline {
  color: var(--bronze-dark);
  text-decoration: underline;
}

.jb-article div.cssmsgalert {
  display: block;
  background: #FBEEE9;
  border: 1px solid #E7C3B8;
  color: #7A2E22;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}

.jb-article .jb-bottom-bar {
  float: none;
  width: 100%;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.jb-article .jb-bottom-bar .flexrow {
  justify-content: flex-start;
  gap: 24px;
}
.jb-article .jb-bottom-bar .bottom-links {
  float: none;
  padding: 0;
}
.jb-article .jb-bottom-bar .bottom-links a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.jb-article .jb-bottom-bar .bottom-links a:hover {
  color: var(--bronze-dark);
  border-color: var(--bronze);
}

/* Top utility nav (Home / Create Profile / Read Next) — explicit wrapper
   class rather than a :first-child trick, so it doesn't silently break
   if an alert renders above it. */
.jb-article .jb-utility-nav {
  margin-bottom: 24px;
}
.jb-article .jb-utility-nav .csslabel a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-right: 20px;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.jb-article .jb-utility-nav .csslabel a:hover {
  color: var(--bronze-dark);
  border-color: var(--bronze);
}