/* Website mode (admin > Site settings).
   /site-mode.js runs in <head>, before the page is drawn, and sets <html data-site-mode="services|blog">.
   Mark elements with:
     data-svc   shown only in services mode (Request Help, service navigation, pricing, service CTAs)
     data-blog  shown only in blog mode (Resource Center navigation that takes their place)
   If the script can't load, pages show services mode, the default. */
html:not([data-site-mode="blog"]) [data-blog] {
  display: none !important;
}
html[data-site-mode="blog"] [data-svc] {
  display: none !important;
}
/* Safety net for a Request Help link someone forgot to mark (tests/site-mode.test.mjs requires marking). */
html[data-site-mode="blog"] a[href^="/request-help"],
html[data-site-mode="blog"] a[href^="request-help"] {
  display: none !important;
}

.je-mode-wrap {
  padding-top: 48px;
}
/* "Requests are paused" note on /request-help and the service pages (blog mode only) */
.je-mode-note {
  margin: 0 0 32px;
  padding: 20px 24px;
  border: 1px solid #c9d1d1;
  border-left: 4px solid var(--ns-teal-ink, #146666);
  border-radius: 10px;
  background: #f4f8f8;
  color: #0c1e21;
  font-size: 17px;
  line-height: 1.6;
}
.je-mode-note p {
  margin: 0;
}
.je-mode-note p + p {
  margin-top: 10px;
}
.je-mode-note a {
  color: var(--ns-teal-ink, #146666);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Homepage "From the Resource Center" cards (blog mode only; generated by scripts/build-site.mjs) */
.je-home-resource {
  height: 100%;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}
.je-home-resource-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.je-home-resource .title {
  margin-bottom: 12px;
}
.je-home-resource .title a {
  color: #fff;
}
.je-home-resource .title a:hover,
.je-home-resource .title a:focus-visible {
  color: var(--tj-accent-pale, #7fd6cc);
}
.je-home-resource .desc {
  flex: 1;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.78);
}
.je-home-resource .text-btn,
.je-home-resource .text-btn .btn-text {
  color: #fff;
}
.je-home-resource-kind {
  margin: 0 0 8px;
  color: var(--tj-accent-pale, #7fd6cc);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.je-home-resource-more {
  margin-top: 40px;
  text-align: center;
}
.je-home-resource .text-btn {
  align-self: flex-start;
}

/* Blog-mode topic hubs on the service pages (generated by scripts/build-site.mjs) */
.je-hub-intro {
  max-width: 760px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.6;
}
.je-hub-links {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
}
.je-hub-links-title {
  margin: 0 0 14px;
  color: var(--tj-accent-pale, #7fd6cc);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.je-hub-links ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.je-hub-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.je-hub-links a:hover,
.je-hub-links a:focus-visible {
  border-color: var(--tj-accent-pale, #7fd6cc);
  color: var(--tj-accent-pale, #7fd6cc);
}
