/* SSG-only styles (parallel prerendered site). Loaded in addition to the
   shared style.css so frontend/ is never modified. */

html { scroll-behavior: smooth; }

/* Browse-by-category nav: turn bare links into tidy chips */
.browse-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.browse-links a {
  display: inline-block;
  padding: 5px 11px;
  background: #eef2f9;
  color: var(--blue, #14387f);
  border: 1px solid #d8e0ee;
  border-radius: 999px;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
}
.browse-links a:hover { background: #e1e8f5; }

/* Data-derived overview block (landing + home) */
.page-overview {
  background: #fff;
  border: 1px solid #e6e9f0;
  border-radius: 12px;
  padding: 18px 20px;
  margin: 0 0 18px;
}
.page-overview h2 {
  color: var(--blue, #14387f);
  font-size: 1.1rem;
  margin: 0 0 8px;
}
.page-overview p { font-size: 0.92rem; color: var(--text, #222); margin: 0 0 12px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 0 0 6px;
}
.stat {
  background: #f6f8fc;
  border: 1px solid #e6ebf4;
  border-radius: 9px;
  padding: 9px 12px;
}
.stat .stat-num { display: block; font-size: 1.15rem; font-weight: 700; color: var(--blue, #14387f); }
.stat .stat-label { font-size: 0.76rem; color: var(--text-muted, #667); text-transform: uppercase; letter-spacing: .02em; }
.overview-tags { margin-top: 10px; font-size: 0.86rem; color: var(--text-muted, #667); }
.overview-tags strong { color: var(--text, #222); }

/* all-jobs.html mega page */
.alljobs-wrap { max-width: 1100px; margin: 0 auto; padding: 24px 20px 80px; }
.alljobs-wrap > h1 { color: var(--blue, #14387f); font-size: 1.5rem; margin: 0 0 6px; }
.alljobs-wrap > .lede { color: var(--text-muted, #667); font-size: 0.95rem; margin: 0 0 18px; }
.jump-nav {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid #e6e9f0;
  padding: 10px 0;
  margin-bottom: 18px;
  z-index: 5;
}
.jobs-group { margin: 0 0 14px; border: 1px solid #e6e9f0; border-radius: 12px; overflow: hidden; }
.jobs-group > summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 18px;
  background: #f6f8fc;
  font-weight: 700;
  color: var(--blue, #14387f);
  font-size: 1.05rem;
}
.jobs-group > summary::-webkit-details-marker { display: none; }
.jobs-group > summary::after { content: " ▾"; color: var(--text-muted, #889); font-weight: 400; }
.jobs-group:not([open]) > summary::after { content: " ▸"; }
.jobs-group .group-body { padding: 14px 18px; }

/* Editorial / article pages (About, guides) */
.article { max-width: 760px; margin: 0 auto; padding: 32px 20px 64px; }
.article h1 { color: var(--blue, #14387f); font-size: 1.7rem; margin: 0 0 8px; }
.article .subtitle { color: var(--text-muted, #667); font-size: 1.02rem; margin: 0 0 26px; }
.article h2 { color: var(--blue, #14387f); font-size: 1.22rem; margin: 30px 0 8px; }
.article h3 { font-size: 1.03rem; margin: 18px 0 6px; }
.article p, .article li { font-size: 0.97rem; line-height: 1.62; color: var(--text, #222); margin: 0 0 12px; }
.article ul, .article ol { padding-left: 22px; margin: 0 0 14px; }
.article a { color: var(--blue, #14387f); }
.article .callout {
  background: #f6f8fc;
  border: 1px solid #e6ebf4;
  border-left: 4px solid var(--blue, #14387f);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 20px 0;
  font-size: 0.92rem;
}
.article .cta {
  display: inline-block;
  margin: 6px 8px 6px 0;
  padding: 10px 18px;
  background: var(--blue, #14387f);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.article .cta:hover { background: #0f2c63; }
.article .guide-list { list-style: none; padding: 0; }
.article .guide-list li { margin: 0 0 16px; }
.article .guide-list a { font-weight: 600; font-size: 1.03rem; }
.article .meta-note { color: var(--text-muted, #667); font-size: 0.85rem; margin-top: 28px; }

/* Modern floating "Back to top" button */
#back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  background: var(--blue, #14387f);
  color: #fff;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(20,56,127,0.32);
  transition: transform .12s ease, background .12s ease;
}
#back-to-top:hover { background: #0f2c63; transform: translateY(-2px); }
