/* IT Resource Center: articles, cheatsheets, recommendations, and comparisons.
   Builds on main.css + northstar.css (brand colors, Mona Sans). Loaded only on generated pages. */

:root {
  --je-ink: var(--tj-color-heading-primary, #0c1e21);
  --je-body: var(--tj-color-text-body, #364e52);
  --je-muted: #5b6e70;
  --je-teal: var(--tj-color-theme-primary, #1e8a8a);
  --je-teal-dark: var(--ns-teal-ink, #146666);
  --je-surface: #ffffff;
  --je-line: var(--tj-color-border-1, #c9d1d1);
  --je-soft: #eef4f4;
  --je-dark: var(--tj-color-theme-dark, #0c1e21);
  --je-amber: #b7791f;
  --je-radius: 12px;
  --je-measure: 46rem;
}

/* ---------- accessibility helpers ---------- */
.je-skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--je-dark);
  color: #fff;
  font-weight: 600;
}
.je-skip:focus {
  top: 12px;
  color: #fff;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.je-res a:focus-visible,
.je-res button:focus-visible,
.je-res summary:focus-visible,
.je-res [tabindex]:focus-visible {
  outline: 3px solid var(--je-teal);
  outline-offset: 2px;
  border-radius: 4px;
}
.je-res main:focus {
  outline: none;
}

/* ---------- draft preview banner ---------- */
.je-draft-banner {
  position: relative;
  z-index: 1001;
  padding: 10px 16px;
  background: #fff1c9;
  border-bottom: 2px solid #d9a520;
  color: #4a3500;
  font-size: 14px;
  text-align: center;
}

/* ---------- page header (extends the compact strip) ---------- */
.je-page-header .tj-page-title {
  max-width: 22ch;
}
.je-kicker {
  margin: 0 0 8px;
  color: var(--je-teal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.je-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
/* breadcrumbs sit on the dark title strip */
.je-crumbs li {
  color: #c7d6d6;
}
.je-crumbs li + li::before {
  content: "/";
  margin: 0 8px;
  color: #5d7477;
}
.je-crumbs a {
  color: #a9b8b8;
}
.je-crumbs a:hover {
  color: #fff;
}
.je-kicker {
  color: var(--tj-accent-pale, #7fd6cc);
}
/* hand-built pages leave room for a CTA overlapping the footer; generated pages don't have one */
.je-res-page .tj-footer-section {
  padding-top: 0;
}

/* ---------- article layout ---------- */
.je-article-section {
  padding: 40px 0 70px;
}
.je-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}
@media (min-width: 1200px) {
  .je-article-layout {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }
}
.je-article {
  min-width: 0;
  max-width: 52rem;
  padding: clamp(22px, 4vw, 48px);
  background: var(--je-surface);
  border: 1px solid var(--je-line);
  border-radius: var(--je-radius);
  color: var(--je-body);
}
.je-article-narrow {
  margin: 0 auto;
}
.je-lede {
  margin-bottom: 14px;
  color: var(--je-ink);
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.55;
}
.je-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  color: var(--je-muted);
  font-size: 14px;
}
.je-meta a {
  color: var(--je-teal-dark);
  font-weight: 600;
}
.je-fit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px 24px;
  margin: 0 0 24px;
  padding: 18px 20px;
  background: var(--je-soft);
  border-radius: 10px;
  font-size: 15px;
}
.je-fit p,
.je-fit ul {
  margin: 0;
}
.je-fit ul {
  padding-left: 18px;
}
/* "Ask AI about this guide": a closed, quiet panel under the page summary */
.je-ask-ai {
  margin: 0 0 24px;
  border: 1px solid var(--je-line);
  border-radius: 10px;
  font-size: 15px;
}
.je-ask-ai summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  padding: 12px 44px 12px 18px;
  position: relative;
  cursor: pointer;
  list-style: none;
}
.je-ask-ai summary::-webkit-details-marker {
  display: none;
}
.je-ask-ai summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 9px;
  height: 9px;
  margin-top: -6px;
  border-right: 2px solid var(--je-ink);
  border-bottom: 2px solid var(--je-ink);
  transform: rotate(45deg);
  transition: transform 0.15s;
}
.je-ask-ai[open] summary::after {
  margin-top: -2px;
  transform: rotate(-135deg);
}
.je-ask-ai summary:focus-visible {
  outline: 2px solid var(--je-teal-dark);
  outline-offset: 2px;
  border-radius: 10px;
}
.je-ask-ai-title {
  color: var(--je-ink);
  font-weight: 700;
}
.je-ask-ai-hint {
  color: var(--je-muted);
  font-size: 14px;
}
.je-ask-ai-body {
  padding: 0 18px 16px;
}
.je-ask-ai-body p {
  margin: 0 0 12px;
}
.je-ask-ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 10px;
}
.je-ai-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--je-teal-dark);
  border-radius: 999px;
  background: var(--je-teal-dark);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.je-ai-btn:hover,
.je-ai-btn:focus-visible {
  border-color: var(--je-dark);
  background: var(--je-dark);
  color: #fff;
}
.je-ai-btn-alt {
  background: transparent;
  color: var(--je-teal-dark);
}
.je-ai-btn-alt:hover,
.je-ai-btn-alt:focus-visible {
  border-color: var(--je-teal-dark);
  background: var(--je-soft);
  color: var(--je-teal-dark);
}
.je-ai-btn[hidden] {
  display: none;
}
.je-ask-ai-status:empty {
  display: none;
}
.je-ask-ai-status {
  color: var(--je-teal-dark);
  font-weight: 600;
}
.je-ask-ai-note {
  color: var(--je-muted);
  font-size: 14px;
}
.je-rec-label {
  margin: 0 0 6px;
  color: var(--je-teal-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- table of contents ---------- */
.je-toc {
  font-size: 15px;
}
.je-toc-details {
  padding: 14px 18px;
  background: var(--je-surface);
  border: 1px solid var(--je-line);
  border-radius: var(--je-radius);
}
.je-toc-title {
  cursor: pointer;
  color: var(--je-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.je-toc ol {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}
.je-toc li {
  counter-increment: toc;
  border-left: 2px solid transparent;
}
.je-toc li a {
  display: block;
  padding: 5px 0 5px 10px;
  color: var(--je-body);
  line-height: 1.35;
}
.je-toc li a::before {
  content: counter(toc, decimal-leading-zero) "  ";
  color: var(--je-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.je-toc li a:hover,
.je-toc li.is-active a {
  color: var(--je-teal-dark);
}
.je-toc li.is-active {
  border-left-color: var(--je-teal);
}
@media (min-width: 1200px) {
  .je-toc-col {
    position: sticky;
    top: 110px;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
  }
  .je-toc-title {
    list-style: none;
  }
  /* Kept open in the sidebar once open (resources.js opens it here; without JS the reader does). */
  .je-toc-details[open] > .je-toc-title {
    pointer-events: none;
  }
  .je-toc-title::-webkit-details-marker {
    display: none;
  }
}

/* ---------- prose ---------- */
.je-prose {
  font-size: 17px;
  line-height: 1.75;
}
.je-prose > * {
  max-width: var(--je-measure);
}
.je-prose > .je-table-wrap,
.je-prose > .je-cmp,
.je-prose > .je-code,
.je-prose > .je-diagram {
  max-width: 100%;
}
.je-prose h2 {
  margin: 2.2em 0 0.6em;
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.2;
  scroll-margin-top: 110px;
}
.je-prose h3 {
  margin: 1.8em 0 0.5em;
  font-size: clamp(20px, 2.4vw, 23px);
  line-height: 1.3;
  scroll-margin-top: 110px;
}
.je-prose h4 {
  margin: 1.5em 0 0.4em;
  font-size: 18px;
  scroll-margin-top: 110px;
}
.je-anchor {
  margin-left: 8px;
  color: var(--je-line);
  font-weight: 400;
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.15s;
}
.je-prose h2:hover .je-anchor,
.je-prose h3:hover .je-anchor,
.je-prose h4:hover .je-anchor,
.je-anchor:focus {
  opacity: 1;
}
.je-prose p,
.je-prose ul,
.je-prose ol {
  margin-bottom: 1.1em;
}
.je-prose ul,
.je-prose ol {
  padding-left: 1.4em;
}
.je-prose li {
  margin-bottom: 0.35em;
}
.je-prose li > ul,
.je-prose li > ol {
  margin: 0.35em 0 0;
}
/* Task lists: printable checklists with an empty box per item */
.je-prose ul:has(> li > .je-check) {
  padding-left: 0;
  list-style: none;
}
.je-prose li:has(> .je-check) {
  position: relative;
  padding-left: 1.7em;
}
.je-check {
  position: absolute;
  top: 0.22em;
  left: 0;
  width: 1.05em;
  height: 1.05em;
  border: 2px solid var(--je-ink);
  border-radius: 3px;
}
.je-prose a {
  color: var(--je-teal-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.je-prose a:hover {
  color: var(--je-ink);
}
.je-prose strong {
  color: var(--je-ink);
}
.je-prose :not(pre) > code {
  padding: 0.12em 0.4em;
  background: var(--je-soft);
  border: 1px solid #dbe5e5;
  border-radius: 5px;
  color: var(--tj-accent-deep, #0b4f4f);
  font-size: 0.88em;
  word-break: break-word;
}
.je-prose blockquote {
  margin: 1.4em 0;
  padding: 0.2em 0 0.2em 1.2em;
  border-left: 3px solid var(--je-line);
  color: var(--je-muted);
}
.je-prose hr {
  margin: 2.5em 0;
  border-color: var(--je-line);
}
.je-unlinked {
  color: inherit;
}
/* Links inside running text must not rely on color alone (WCAG 1.4.1) */
.je-review-box a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.je-forthcoming {
  color: var(--je-muted);
  font-size: 0.9em;
}
.je-muted {
  color: var(--je-muted);
}

/* ---------- code blocks ---------- */
.je-code {
  margin: 1.4em 0 1.6em;
  overflow: hidden;
  background: #0c1e21;
  border: 1px solid #1d3236;
  border-radius: 10px;
}
.je-code-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 6px 8px 6px 14px;
  border-bottom: 1px solid #1d3236;
  background: #10272b;
  font-size: 12px;
}
.je-code-lang {
  color: var(--tj-accent-bright, #5fd3c6);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.je-code-title {
  overflow: hidden;
  color: #c7d6d6;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Phones would cut most of a title, including warnings such as "(changes the firewall configuration)" */
@media (max-width: 640px) {
  .je-code-title {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }
}
.je-copy {
  margin-left: auto;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid #2e4b50;
  border-radius: 6px;
  color: #c7d6d6;
  font-size: 12px;
  line-height: 1.4;
}
.je-copy:hover,
.je-copy:focus-visible {
  border-color: var(--tj-accent-bright, #5fd3c6);
  color: #fff;
}
.je-code pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  color: #e3ecec;
  font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.6;
  tab-size: 2;
}
.je-code pre code {
  background: none;
  border: 0;
  color: inherit;
  font-size: inherit;
}
.hljs-comment,
.hljs-quote {
  color: #8aa5a7;
  font-style: italic;
}
.hljs-keyword,
.hljs-selector-tag,
.hljs-section,
.hljs-built_in {
  color: var(--tj-accent-bright, #5fd3c6);
}
.hljs-string,
.hljs-attr,
.hljs-template-tag,
.hljs-symbol {
  color: #f2c879;
}
.hljs-number,
.hljs-literal {
  color: #f4a283;
}
.hljs-title,
.hljs-title.function_,
.hljs-type,
.hljs-name {
  color: #a8d4ff;
}
.hljs-variable,
.hljs-template-variable,
.hljs-params {
  color: #ffd98a;
}
.hljs-meta,
.hljs-meta .hljs-keyword {
  color: #a9b8b8;
}
.hljs-deletion {
  color: #ff9b9b;
}
.hljs-addition {
  color: #8fe3a5;
}
.hljs-emphasis {
  font-style: italic;
}
.hljs-strong {
  font-weight: 700;
}

/* ---------- callouts ---------- */
.je-callout {
  margin: 1.5em 0;
  padding: 14px 18px;
  border: 1px solid var(--je-line);
  border-left: 5px solid var(--je-teal);
  border-radius: 8px;
  background: #f6fafa;
}
.je-callout > :last-child {
  margin-bottom: 0;
}
.je-callout-label {
  margin: 0 0 4px !important;
  color: var(--je-ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.je-callout-label::before {
  margin-right: 8px;
  font-family: "Site Icons";
  font-weight: 900;
}
.je-callout-note .je-callout-label::before { content: "\f05a"; color: var(--je-teal); }
.je-callout-tip { border-left-color: #2f855a; background: #f3faf5; }
.je-callout-tip .je-callout-label::before { content: "\f0eb"; color: #2f855a; }
.je-callout-important { border-left-color: #6b46c1; background: #f7f5fd; }
.je-callout-important .je-callout-label::before { content: "\f06a"; color: #6b46c1; }
.je-callout-warning { border-left-color: #c47f00; background: #fffaf0; }
.je-callout-warning .je-callout-label::before { content: "\f071"; color: #b26b00; }
.je-callout-caution { border-left-color: #c53030; background: #fff5f5; }
.je-callout-caution .je-callout-label::before { content: "\f071"; color: #c53030; }

/* ---------- tables ---------- */
.je-table-wrap {
  margin: 1.4em 0 1.8em;
  overflow-x: auto;
  border: 1px solid var(--je-line);
  border-radius: 10px;
}
.je-table,
.je-specs,
.je-cmp-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}
.je-table th,
.je-table td,
.je-specs th,
.je-specs td,
.je-cmp-table th,
.je-cmp-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #e3eaea;
  vertical-align: top;
  text-align: left;
}
.je-table thead th,
.je-cmp-table thead th {
  background: var(--je-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.je-table tbody th,
.je-specs th {
  color: var(--je-ink);
  font-weight: 600;
}
.je-table tbody tr:last-child > *,
.je-specs tr:last-child > *,
.je-cmp-table tr:last-child > * {
  border-bottom: 0;
}
.je-table tbody tr:nth-child(even) {
  background: #f8fbfb;
}
.je-align-center { text-align: center !important; }
.je-align-right { text-align: right !important; }
.je-specs caption {
  padding: 10px 14px 0;
  caption-side: top;
  color: var(--je-ink);
  font-weight: 700;
}
.je-specs th {
  width: 34%;
}

/* ---------- comparison ---------- */
.je-cmp {
  margin: 2em 0;
}
.je-cmp figcaption {
  margin-bottom: 10px;
  color: var(--je-ink);
  font-size: 19px;
}
.je-cmp-method {
  margin-bottom: 12px;
  padding: 14px 18px;
  background: var(--je-soft);
  border-radius: 10px;
  font-size: 15px;
}
.je-cmp-method p:last-child {
  margin: 0;
}
.je-cmp-table {
  min-width: 640px;
}
.je-cmp-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 150px;
  background: #fff;
  color: var(--je-ink);
  font-weight: 700;
  box-shadow: 1px 0 0 #e3eaea;
}
.je-cmp-table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
}
.je-cmp-kind,
.je-cmp-help {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.je-cmp-kind {
  color: #9fd8d2;
}
.je-cmp-help {
  color: var(--je-muted);
}
.je-cmp-links td {
  background: #f8fbfb;
}

/* ---------- disclosure + paid link labels ---------- */
.je-disclosure {
  margin: 0 0 26px;
  padding: 14px 18px;
  border: 1px solid #ecd7a5;
  border-radius: 10px;
  background: #fffaf0;
  color: #4d3d17;
  font-size: 15px;
  line-height: 1.6;
}
.je-disclosure p {
  margin: 0;
}
.je-disclosure p + p {
  margin-top: 8px;
}
.je-disclosure a {
  color: #7a5200;
  font-weight: 600;
  text-decoration: underline;
}
.je-paid-badge,
.je-aff-label {
  display: inline-block;
  padding: 0 7px;
  border: 1px solid #d9a520;
  border-radius: 999px;
  background: #fff1c9;
  color: #5c4100;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.7;
  text-decoration: none;
  vertical-align: 0.12em;
  white-space: nowrap;
}
.je-aff-label {
  margin-left: 6px;
}
.je-rel {
  margin: 0 0 10px;
  color: var(--je-muted);
  font-size: 14px;
}
.je-rel-block {
  margin: 10px 0;
}
.je-rel a {
  color: var(--je-teal-dark);
}
.je-aff-omitted {
  color: var(--je-muted);
}
.je-aff-status ul {
  padding-left: 1.2em;
}

/* ---------- recommendation cards ---------- */
.je-rec {
  margin: 1.8em 0;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--je-line);
  border-top: 4px solid var(--je-teal);
  border-radius: var(--je-radius);
  font-size: 15.5px;
  line-height: 1.6;
}
.je-rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 20px;
}
.je-rec-grid .je-rec {
  margin: 0;
}
.je-rec-cat {
  margin: 0 0 4px;
  color: var(--je-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.je-rec-title {
  margin: 0;
  font-size: 21px;
}
.je-rec-maker {
  margin: 2px 0 10px;
  color: var(--je-muted);
}
.je-rec ul {
  padding-left: 1.2em;
}
.je-rec-specs {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 14px;
  margin: 0 0 14px;
  font-size: 14.5px;
}
.je-rec-specs dt {
  color: var(--je-ink);
  font-weight: 600;
}
.je-rec-specs dd {
  margin: 0;
}
.je-proscons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px 22px;
}
.je-proscons-block {
  margin: 1.4em 0;
  padding: 18px 20px;
  border: 1px solid var(--je-line);
  border-radius: 10px;
}
.je-pros li::marker {
  color: #2f855a;
}
.je-cons li::marker {
  color: #c05621;
}
.je-rec-foot {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e3eaea;
}
.je-rec-meta {
  margin: 0 0 8px;
  color: var(--je-muted);
  font-size: 13.5px;
}
.je-rec-cta {
  margin: 0;
}
.je-rec-cta a {
  font-weight: 700;
}

/* ---------- steps ---------- */
.je-steps {
  margin: 1.5em 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.je-step {
  position: relative;
  margin: 0 0 14px;
  padding: 16px 18px 6px 62px;
  border: 1px solid var(--je-line);
  border-radius: 10px;
  counter-increment: step;
}
.je-step::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--je-dark);
  color: #fff;
  font-weight: 700;
  line-height: 32px;
  text-align: center;
}
.je-step-title {
  margin: 4px 0 8px !important;
  color: var(--je-ink);
  font-size: 18px;
  font-weight: 700;
}

/* ---------- diagrams ---------- */
.je-diagram {
  margin: 1.8em 0;
  padding: 16px;
  border: 1px solid var(--je-line);
  border-radius: 10px;
  background: #fbfdfd;
}
.je-diagram img {
  display: block;
  width: 100%;
  height: auto;
}
.je-diagram figcaption {
  margin-top: 10px;
  color: var(--je-muted);
  font-size: 14px;
}

/* ---------- project photos, equipment and video (Projects & Builds) ---------- */
.je-photo,
.je-video {
  margin: 1.8em 0;
  padding: 16px;
  border: 1px solid var(--je-line);
  border-radius: 10px;
  background: #fbfdfd;
}
.je-photo img,
.je-video img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.je-photo figcaption,
.je-video-caption {
  margin-top: 10px;
  color: var(--je-muted);
  font-size: 14px;
}
.je-video figcaption p {
  margin: 10px 0 0;
}
.je-video-link a {
  font-weight: 600;
}
.je-video-url {
  display: none;
}
.je-equipment {
  margin: 0 0 24px;
}
.je-equipment h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

/* ---------- service CTA (paid services, deliberately unlike affiliate cards) ---------- */
.je-service-cta {
  margin: 2.4em 0;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--je-radius);
  background: var(--je-dark) url("../images/northstar/panel-soft.svg") center / cover no-repeat;
  color: rgba(255, 255, 255, 0.86);
}
.je-prose > .je-service-cta {
  max-width: 100%;
}
.je-service-cta-kicker {
  margin: 0 0 8px;
  color: var(--tj-accent-pale, #7fd6cc);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.je-service-cta-title,
.je-prose .je-service-cta-title {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(22px, 3vw, 28px);
}
.je-service-cta p {
  max-width: 40rem;
}
.je-service-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin: 18px 0 12px;
}
.je-prose .je-service-cta a.tj-primary-btn,
.je-service-cta a.tj-primary-btn {
  color: #fff;
  text-decoration: none;
}
.je-link-light,
.je-prose .je-link-light {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.je-link-light:hover {
  color: var(--tj-accent-pale, #7fd6cc);
}
.je-service-cta-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}
.je-cta-section {
  padding: 0 0 70px;
}

/* ---------- sources, review, author ---------- */
.je-sources,
.je-review-box,
.je-author {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--je-line);
  font-size: 15px;
}
.je-sources h2 {
  font-size: 20px;
}
.je-sources ul {
  padding-left: 1.2em;
}
.je-sources a {
  color: var(--je-teal-dark);
  overflow-wrap: anywhere;
}
.je-review-box ul,
.je-review-box ol {
  padding-left: 1.2em;
}
.je-review-pending {
  padding: 18px 20px;
  border: 2px dashed #d9a520;
  border-radius: 10px;
  background: #fffaf0;
}
.je-author {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.je-author img {
  flex: none;
  border-radius: 50%;
  background: var(--je-dark);
}
.je-author-name {
  margin-bottom: 4px;
  color: var(--je-ink);
  font-weight: 700;
}
.je-author-name a {
  color: var(--je-teal-dark);
}

/* ---------- downloads (cheatsheets) ---------- */
.je-download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.je-download .je-rec-meta {
  flex-basis: 100%;
  margin: 0;
}
.je-btn-outline {
  padding: 12px 20px;
  background: #fff;
  border: 1px solid var(--je-ink);
  border-radius: 999px;
  color: var(--je-ink);
  font-weight: 600;
}
.je-btn-outline:hover {
  background: var(--je-ink);
  color: #fff;
}
.je-cheat-head {
  display: grid;
  gap: 18px;
  margin-bottom: 20px;
}
@media (min-width: 992px) {
  .je-cheat-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
}
.je-cheatsheet {
  max-width: 64rem;
  margin: 0 auto;
}
.je-cheat-body > * {
  max-width: 100%;
}

/* ---------- listings, cards, topics ---------- */
.je-listing {
  padding: 40px 0 70px;
}
.je-listing-intro {
  max-width: 48rem;
  margin-bottom: 30px;
}
.je-block {
  margin: 0 0 48px;
}
.je-block-title {
  margin-bottom: 18px;
  font-size: clamp(24px, 3vw, 30px);
}
.je-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}
/* A lone card (for example the first published guide) spans the row instead of sitting in a
   narrow column, capped near the intro's width so its summary stays readable. */
.je-cards > .je-card:only-child {
  grid-column: 1 / -1;
  max-width: 48rem;
}
.je-card,
.je-topic {
  position: relative;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--je-line);
  border-radius: var(--je-radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.je-card:hover,
.je-topic:not(.is-empty):hover {
  border-color: var(--je-teal);
  box-shadow: 0 8px 24px rgba(12, 30, 33, 0.08);
}
.je-card p,
.je-topic p {
  margin-bottom: 8px;
  font-size: 15px;
}
.je-card-cat {
  color: var(--je-teal-dark);
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.je-card-flag {
  color: #7a5200; /* darker than --je-amber for 4.5:1 contrast on white */
}
.je-card-title,
.je-topic-title {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.3;
}
.je-card-title a::after,
.je-topic-title a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.je-card-meta {
  margin: 0 !important;
  color: var(--je-muted);
  font-size: 13.5px !important;
}
/* Curated external resources (IT Tools index): someone else's site, so a tinted panel with a dashed
   border and a text badge set it apart from the in-house tools. */
.je-card-external {
  background: var(--je-soft);
  border: 1px dashed var(--je-line);
}
/* Its two links are separate targets, so it doesn't take the whole-card hover. */
.je-card-external:hover {
  border-color: var(--je-line);
  box-shadow: none;
}
.je-ext-badge {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: #fff;
  color: var(--je-ink);
  letter-spacing: 0.06em;
}
.je-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-weight: 600;
}
.je-card-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.je-ext-icon {
  flex: none;
}
.je-topics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 16px;
}
.je-topic.is-empty {
  background: rgba(255, 255, 255, 0.55);
  border-style: dashed;
}
.je-topic.is-empty .je-topic-title {
  color: var(--je-muted);
}
.je-inprogress {
  padding: 20px 24px;
  background: #fff;
  border: 1px dashed var(--je-line);
  border-radius: var(--je-radius);
}
.je-cards + .je-inprogress {
  margin-top: 24px;
}
.je-inprogress ul {
  margin: 0;
  padding-left: 1.2em;
}
.je-inprogress .je-stage {
  color: var(--je-muted);
  font-size: 0.92em;
}
.je-promise {
  padding: 26px 28px;
  background: #fff;
  border: 1px solid var(--je-line);
  border-radius: var(--je-radius);
}
/* body links on listing pages use the darker teal (the brand teal is 4.15:1 on white, under WCAG AA) */
.je-listing-intro a,
.je-promise a,
.je-inprogress a,
.je-topic p a {
  color: var(--je-teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.je-promise-list {
  padding-left: 1.2em;
}
.je-promise-list li {
  margin-bottom: 8px;
}
.je-related {
  padding: 0 0 60px;
}
.je-related h2 {
  margin-bottom: 18px;
  font-size: 26px;
}

/* ---------- newsletter (shown only when configured) ---------- */
.je-newsletter {
  padding: 26px 28px;
  background: var(--je-soft);
  border-radius: var(--je-radius);
}
.je-newsletter form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.je-newsletter input[type="email"] {
  flex: 1 1 240px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--je-line);
  border-radius: 8px;
  background: #fff;
}
.je-newsletter label.je-consent {
  flex-basis: 100%;
  font-size: 14px;
}
.je-newsletter .je-newsletter-msg {
  flex-basis: 100%;
  margin: 0;
  font-size: 14px;
}

/* ---------- IT tools (/resources/it-tools) ---------- */
.je-block-more {
  margin: 14px 0 0;
  font-weight: 600;
}
.je-tool {
  max-width: 52rem;
  margin: 0 auto;
}
.je-tool [hidden] {
  display: none !important;
}
.je-tool-privacy,
.je-tool-noscript {
  padding: 12px 16px;
  border: 1px solid var(--je-line);
  border-left: 5px solid var(--je-teal);
  border-radius: 8px;
  background: #f6fafa;
  font-size: 15px;
}
.je-tool-form {
  margin: 24px 0;
}
.je-tool-label {
  display: block;
  margin-bottom: 4px;
  color: var(--je-ink);
  font-weight: 700;
}
.je-tool-hint {
  margin: 0 0 10px;
  color: var(--je-muted);
  font-size: 15px;
  overflow-wrap: anywhere;
}
.je-tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.je-tool-input,
.je-tool-select {
  flex: 1 1 14rem;
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--je-muted);
  border-radius: 8px;
  background: #fff;
  color: var(--je-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 17px;
}
.je-tool-select {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
}
.je-tool-input:focus-visible,
.je-tool-select:focus-visible {
  outline: 3px solid var(--je-teal);
  outline-offset: 2px;
}
.je-tool-input[aria-invalid="true"] {
  border-color: #c53030;
}
.je-tool .je-ai-btn {
  cursor: pointer;
}
/* The error stays in the DOM (an always-present alert region) and only shows a box when it has text. */
.je-tool-error {
  margin: 0;
}
.je-tool-error.is-active {
  margin: 10px 0 0;
  padding: 10px 14px;
  border-left: 5px solid #c53030;
  border-radius: 6px;
  background: #fff5f5;
  color: #8a1f1f;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.je-tool-results,
.je-tool-split {
  margin: 0 0 28px;
  padding: 20px 22px;
  border: 1px solid var(--je-line);
  border-radius: var(--je-radius);
  background: #fff;
}
.je-tool-subtitle {
  margin: 0 0 10px;
  font-size: 22px;
}
.je-tool-summary {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.je-tool-list {
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  margin: 0;
}
.je-tool-list dt,
.je-tool-list dd {
  margin: 0;
  padding: 8px 0;
  border-top: 1px solid var(--je-line);
}
.je-tool-list dt {
  padding-right: 14px;
  color: var(--je-muted);
  font-weight: 600;
}
.je-tool-list dd {
  color: var(--je-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}
.je-tool-notes {
  margin: 16px 0 0;
  padding-left: 1.2em;
}
.je-tool-notes li {
  margin-bottom: 6px;
}
.je-tool-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 16px;
}
.je-tool-status {
  margin: 0;
  font-size: 15px;
}
.je-tool-split .je-tool-status {
  margin-top: 10px;
}
.je-tool-table td {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  white-space: nowrap;
}
.je-tool-about {
  margin-top: 32px;
}
.je-tool-textarea {
  display: block;
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 18px;
  resize: vertical;
}
.je-tool-secret {
  margin: 0;
  font-size: 20px;
  overflow-wrap: anywhere;
}
.je-tool-secret code {
  white-space: pre-wrap;
}
.je-tool-example {
  margin: 0 0 1.2em;
  padding: 14px 16px;
  overflow-x: auto;
  border-radius: 8px;
  background: #10272b;
  color: #e3ecec;
  font-size: 14px;
  line-height: 1.6;
}
.je-tool-example code {
  background: none;
  border: 0;
  color: inherit;
  font-size: inherit;
}
.je-tool-method {
  margin-top: 20px;
  color: var(--je-muted);
  font-size: 15px;
}
.je-tool-method a,
.je-tool-intro a {
  text-decoration: underline;
}
.je-tool-more {
  margin-top: 20px;
  font-weight: 600;
}
.je-tool-label-next,
.je-tool-row-next {
  margin-top: 18px;
}
.je-tool-input-block {
  display: block;
  width: 100%;
}
.je-tool-minor {
  margin: 20px 0 6px;
  font-size: 18px;
}
/* Trainer steps (je-steps) take focus when the reveal buttons disappear, so focus stays visible. */
.je-tool-steps .je-step:focus-visible {
  outline: 3px solid var(--je-teal);
  outline-offset: 2px;
}
.je-tool-steps .je-step p {
  overflow-wrap: anywhere;
}
.je-tool-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  overflow-wrap: anywhere;
}
@media (max-width: 575px) {
  .je-tool-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .je-tool-list dd {
    padding-top: 0;
    border-top: 0;
  }
  .je-tool-results,
  .je-tool-split {
    padding: 16px 14px;
  }
  .je-tool-row .je-ai-btn {
    justify-content: center;
    width: 100%;
  }
}

/* ---------- small screens ---------- */
@media (max-width: 767px) {
  .je-article {
    padding: 20px 18px;
    border-radius: 10px;
  }
  .je-prose {
    font-size: 16.5px;
  }
  .je-code pre {
    font-size: 13px;
  }
  .je-rec {
    padding: 18px;
  }
  .je-author {
    flex-direction: column;
  }
  .je-article-section {
    padding-top: 24px;
  }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .je-card,
  .je-topic,
  .je-anchor {
    transition: none;
  }
  html {
    scroll-behavior: auto !important;
  }
}

/* ---------- print (cheatsheets and guides) ---------- */
@media print {
  @page {
    margin: 14mm 12mm;
  }
  body {
    background: #fff !important;
  }
  .header-area,
  .tj-offcanvas-area,
  .hamburger-area,
  .body-overlay,
  #tj-back-to-top,
  .tj-footer-section,
  .ns-call-bar,
  .je-toc-col,
  .je-related,
  .je-service-cta,
  .je-cta-section,
  .je-download,
  .je-copy,
  .je-anchor,
  .je-skip,
  .je-author,
  .je-draft-banner,
  .je-ask-ai,
  [data-newsletter] {
    display: none !important;
  }
  .tj-page-header {
    padding: 0 0 8px !important;
    background: none !important;
  }
  .tj-page-title {
    font-size: 22pt !important;
  }
  .tj-page-title::after {
    display: none !important;
  }
  .je-article-section {
    padding: 0 !important;
  }
  .je-article {
    max-width: none;
    padding: 0 !important;
    border: 0 !important;
  }
  .je-prose {
    font-size: 10.5pt;
    line-height: 1.45;
  }
  .je-prose > * {
    max-width: none;
  }
  .je-code {
    background: #f6f8f8 !important;
    border-color: #bbb !important;
    break-inside: avoid;
  }
  .je-code-bar {
    background: #eef2f2 !important;
  }
  .je-code pre {
    color: #111 !important;
    font-size: 9pt;
    white-space: pre-wrap;
    word-break: break-word;
  }
  .je-code [class^="hljs-"] {
    color: #111 !important;
  }
  .je-code .hljs-comment {
    color: #555 !important;
  }
  .je-code-lang {
    color: var(--tj-accent-deep, #0b4f4f) !important;
  }
  /* Block titles such as "Destructive: preview first" are light text on the dark screen bar */
  .je-code-title {
    overflow: visible;
    color: #333 !important;
    font-weight: 600;
    text-overflow: clip;
    white-space: normal;
  }
  .je-callout,
  .je-table-wrap,
  .je-rec {
    break-inside: avoid;
  }
  /* Project video: no button on paper; the watch URL prints as text beside the summary */
  .je-video-link a {
    display: none !important;
  }
  .je-video-url {
    display: inline;
    word-break: break-all;
  }
  .je-photo,
  .je-video {
    break-inside: avoid;
  }
  /* The Sources list and equipment table sit outside .je-prose; a printed copy needs their URLs */
  .je-prose a.je-ext::after,
  .je-sources a.je-ext::after,
  .je-equipment a.je-ext::after {
    content: " (" attr(href) ")";
    color: #555;
    font-size: 0.85em;
    word-break: break-all;
  }
  .je-prose h2,
  .je-prose h3 {
    break-after: avoid;
  }
  /* The title strip loses its dark background on paper, so its light text must turn dark */
  .tj-page-title {
    color: #111 !important;
  }
  .je-kicker {
    color: var(--tj-accent-deep, #0b4f4f) !important;
  }
  .je-crumbs {
    display: none !important;
  }
  .je-check {
    border-color: #111 !important;
  }
  /* Fill-in tables (an empty last column) get room to write by hand */
  .je-table td:empty {
    height: 2.2em;
  }
  /* Printable checklists (cheatsheets made of task lists) fit on one sheet: two columns */
  .je-cheat-body:has(.je-check) {
    columns: 2;
    column-gap: 9mm;
    font-size: 9pt;
    line-height: 1.3;
  }
  .je-cheat-body:has(.je-check) > h2 {
    margin: 0 0 4px;
    font-size: 13pt;
  }
  .je-cheat-body:has(.je-check) > p:first-child {
    column-span: all;
  }
  .je-cheat-body:has(.je-check) > ul,
  .je-cheat-body:has(.je-check) > p {
    margin-bottom: 8px;
  }
  .je-cheat-body:has(.je-check) li {
    margin-bottom: 2px;
    break-inside: avoid;
  }
  .je-cheat-body:has(.je-check) .je-table-wrap {
    overflow: visible;
    break-inside: avoid;
  }
  .je-cheat-body:has(.je-check) .je-table {
    width: 100%;
    font-size: 9pt;
  }
  .je-cheat-body:has(.je-check) .je-table th,
  .je-cheat-body:has(.je-check) .je-table td {
    padding: 4px 8px;
  }
  .je-cheat-body:has(.je-check) .je-table thead th {
    font-size: 7.5pt;
    white-space: normal;
  }
  .je-cheat-body:has(.je-check) .je-table th:first-child {
    width: 40%;
  }
  .je-cheatsheet:has(.je-check) .je-sources {
    margin-top: 10px;
    padding-top: 8px;
    font-size: 8pt;
  }
  .je-cheatsheet:has(.je-check) .je-sources h2 {
    margin-bottom: 2px;
    font-size: 10pt;
  }
  /* Review dates on one small line; the "email a correction" link is no use on paper */
  .je-cheatsheet:has(.je-check) .je-review-box {
    margin-top: 6px;
    padding-top: 6px;
    font-size: 8pt;
  }
  .je-cheatsheet:has(.je-check) .je-review-box > p:last-child {
    display: none;
  }
  .je-cheatsheet:has(.je-check) .je-review-box .je-rec-label,
  .je-cheatsheet:has(.je-check) .je-review-box ul,
  .je-cheatsheet:has(.je-check) .je-review-box li {
    display: inline;
    margin: 0 10px 0 0;
    padding: 0;
  }
  .je-print-page .tj-page-title {
    max-width: none;
  }
  .je-cheat-head {
    margin-bottom: 10px;
  }
  .je-cheat-head .je-lede {
    font-size: 10.5pt;
  }
  .je-cheat-head .je-meta {
    font-size: 8.5pt;
  }
}

/* ---------- third-party PDF collections (for example PacketLife cheat sheets) ---------- */
.je-lib-credit {
  max-width: var(--je-measure);
  padding: 18px 22px;
  border: 1px solid var(--je-line);
  border-left: 4px solid var(--je-teal);
  border-radius: var(--je-radius);
  background: var(--je-surface);
}
.je-lib-credit p + p {
  margin-top: 10px;
}
.je-lib-small {
  color: var(--je-muted);
  font-size: 0.92em;
}
.je-lib-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.je-lib-nav a {
  padding: 6px 14px;
  border: 1px solid var(--je-line);
  border-radius: 999px;
  background: var(--je-surface);
  color: var(--je-ink);
  font-size: 15px;
  text-decoration: none;
}
.je-lib-nav a:hover,
.je-lib-nav a:focus-visible {
  border-color: var(--je-teal);
  color: var(--je-teal-dark);
}
.je-lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.je-lib-item {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--je-line);
  border-radius: var(--je-radius);
  background: var(--je-surface);
}
.je-lib-title {
  margin: 0;
  font-size: 19px;
}
.je-lib-meta {
  margin: 4px 0 10px;
  color: var(--je-muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.je-lib-desc {
  flex: 1;
  margin: 0 0 16px;
}
.je-lib-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}
.je-lib-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--je-teal-dark);
  border-radius: 999px;
  background: var(--je-teal-dark);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.je-lib-btn:hover,
.je-lib-btn:focus-visible {
  background: var(--je-dark);
  border-color: var(--je-dark);
  color: #fff;
}
.je-lib-btn-alt {
  background: transparent;
  color: var(--je-teal-dark);
}
.je-lib-btn-alt:hover,
.je-lib-btn-alt:focus-visible {
  background: var(--je-soft);
  border-color: var(--je-teal-dark);
  color: var(--je-teal-dark);
}
/* Cards with a first-page preview (TR-010): the page image leads and the buttons get lighter. Every
   preview sits in the same Letter-shaped frame; a landscape sheet is letterboxed inside it, never cropped. */
.je-lib-thumb {
  display: block;
  margin: -4px -4px 16px;
  padding: 10px;
  border-radius: calc(var(--je-radius) - 2px);
  background: var(--je-soft);
}
.je-lib-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 612 / 792;
  object-fit: contain;
  border: 1px solid var(--je-line);
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.15s ease;
}
.je-lib-thumb:hover img {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.je-lib-item-thumb .je-lib-desc {
  font-size: 15px;
}
.je-lib-item-thumb .je-lib-btn {
  min-height: 44px;
  padding: 0 14px;
  font-size: 15px;
}
.je-lib-item-thumb .je-lib-btn:not(.je-lib-btn-alt) {
  background: transparent;
  color: var(--je-teal-dark);
}
.je-lib-item-thumb .je-lib-btn:not(.je-lib-btn-alt):hover,
.je-lib-item-thumb .je-lib-btn:not(.je-lib-btn-alt):focus-visible {
  background: var(--je-teal-dark);
  border-color: var(--je-teal-dark);
  color: #fff;
}
@media (min-width: 1100px) {
  .je-lib-grid:has(.je-lib-item-thumb) {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  }
}
