/*
 * SOAKJAM Knowledge Magazine Edition
 * Version 2.3.6
 * Loaded after style.css so this file is the authoritative visual layer.
 */

:root {
  --sj-mag-blue: #315ee8;
  --sj-mag-violet: #7548e7;
  --sj-mag-teal: #08a9b8;
  --sj-mag-coral: #ef536f;
  --sj-mag-gold: #f2a13b;
  --sj-mag-ink: #101a36;
  --sj-mag-night: #0a1330;
  --sj-mag-copy: #46516a;
  --sj-mag-muted: #7b8293;
  --sj-mag-line: #e4e6ed;
  --sj-mag-paper: #ffffff;
  --sj-mag-soft: #f5f7fb;
  --sj-mag-wide: 1240px;
  --sj-wide: 1240px;
}

/*
 * `overflow-x: hidden` makes the root page a scrolling container in Chromium.
 * That prevents every descendant `position: sticky` element—including the
 * masthead and both navigation rails—from attaching to the viewport. `clip`
 * keeps accidental horizontal paint out of view without changing the page's
 * vertical scrolling container.
 */
html { max-width: 100%; overflow-x: clip; scroll-padding-top: 92px; }
body {
  max-width: 100%;
  overflow-x: clip;
  color: var(--sj-mag-ink);
  background: var(--sj-mag-paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
}
body.sj-menu-open { overflow: hidden; }
a { transition: color .18s ease, background-color .18s ease, border-color .18s ease, opacity .18s ease, transform .18s ease; }
.sj-wrap { width: min(var(--sj-mag-wide), calc(100% - 48px)); }

/* Clean magazine masthead with a left-anchored SOAKJAM identity. */
.sj-utility-bar {
  position: relative;
  z-index: 102;
  min-height: 31px;
  color: rgba(255,255,255,.82);
  background: linear-gradient(90deg,#101632 0%,#1d2351 48%,#11182f 100%);
  border: 0;
}
.sj-utility-inner {
  width: min(var(--sj-mag-wide),calc(100% - 48px));
  min-height: 31px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 10px;
  letter-spacing: .03em;
}
.sj-utility-inner nav { display: flex; align-items: center; gap: 18px; }
.sj-utility-inner a { color: rgba(255,255,255,.76); }
.sj-utility-inner a:hover { color: #fff; }

.sj-site-header,
.sj-site-header.is-scrolled {
  position: sticky;
  z-index: 1000;
  top: 0;
  left: auto;
  width: 100%;
  min-height: 76px;
  padding: 0;
  transform: none;
  border: 0;
  border-bottom: 1px solid var(--sj-mag-line);
  border-radius: 0;
  color: var(--sj-mag-ink);
  background: rgba(255,255,255,.97);
  box-shadow: 0 5px 18px rgba(21,26,55,.06);
  backdrop-filter: blur(18px);
}
.sj-header-inner {
  position: relative;
  width: min(var(--sj-mag-wide),calc(100% - 48px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sj-brand-cluster {
  position: absolute;
  z-index: 6;
  top: 50%;
  left: 50%;
  min-width: 178px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transform: translate(-50%,-50%);
}
.sj-main-brand-link { display: flex; align-items: center; }
.sj-main-brand-link img,
.sj-main-brand-link .custom-logo { width: 142px; max-height: 45px; object-fit: contain; }
.sj-knowledge-menu { position: static; align-self: auto; }
.sj-knowledge-home-link {
  min-height: 0;
  padding: 4px 0 4px 8px;
  border: 0;
  border-left: 1px solid #d7dbe6;
  color: #687086;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.sj-knowledge-menu:hover .sj-knowledge-home-link,
.sj-knowledge-menu:focus-within .sj-knowledge-home-link { color: var(--sj-mag-blue); }

.sj-taxonomy-nav {
  position: static;
  width: 100%;
  min-height: 76px;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0,1fr) 185px minmax(0,1fr);
  align-items: stretch;
  gap: 0;
  font-size: 11px;
}
.sj-nav-wing {
  min-width: 0;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  gap: 4px;
  list-style: none;
}
.sj-nav-wing-left { justify-content: flex-end; }
.sj-nav-wing-right { justify-content: flex-start; }
.sj-nav-logo-space { display: block; }
.sj-taxonomy-item { position: relative; display: flex; align-items: stretch; }
.sj-taxonomy-row { min-height: 76px; display: flex; align-items: center; }
.sj-taxonomy-parent-link,
.sj-taxonomy-toggle {
  min-height: 38px;
  border: 0;
  border-radius: 0;
  color: #2e3344;
  background: transparent;
  box-shadow: none;
}
.sj-taxonomy-parent-link {
  position: relative;
  padding: 0 6px 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .045em;
  text-transform: uppercase;
  white-space: nowrap;
}
.sj-taxonomy-parent-link::before {
  content: "";
  position: absolute;
  right: 6px;
  bottom: 2px;
  left: 12px;
  height: 2px;
  background: linear-gradient(90deg,var(--sj-menu-tone),var(--sj-menu-tone-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.sj-taxonomy-nav .sj-taxonomy-parent-link::after { display: none; }
.sj-taxonomy-mark { display: none; }
.sj-taxonomy-toggle {
  width: 24px;
  padding: 0 7px 0 0;
  display: grid;
  place-items: center;
}
.sj-taxonomy-caret { color: #7f8494; font-size: 12px; transition: transform .18s ease,color .18s ease; }
.sj-taxonomy-parent-link:hover,
.sj-taxonomy-parent-link:focus-visible,
.sj-taxonomy-toggle:hover,
.sj-taxonomy-toggle:focus-visible,
.sj-taxonomy-item.is-current-domain .sj-taxonomy-parent-link,
.sj-taxonomy-item.is-current-domain .sj-taxonomy-toggle,
.sj-taxonomy-item.is-submenu-open .sj-taxonomy-parent-link,
.sj-taxonomy-item.is-submenu-open .sj-taxonomy-toggle {
  color: var(--sj-menu-tone);
  border: 0;
  background: transparent;
}
.sj-taxonomy-item:hover .sj-taxonomy-parent-link::before,
.sj-taxonomy-item.is-current-domain .sj-taxonomy-parent-link::before,
.sj-taxonomy-item.is-submenu-open .sj-taxonomy-parent-link::before { transform: scaleX(1); }
.sj-taxonomy-item.is-submenu-open .sj-taxonomy-caret { color: var(--sj-menu-tone); transform: rotate(180deg); }
.sj-taxonomy-parent-link:focus-visible,
.sj-taxonomy-toggle:focus-visible { outline: 2px solid var(--sj-menu-tone); outline-offset: 2px; }

.sj-taxonomy-nav .sj-taxonomy-panel {
  position: absolute;
  z-index: 1500;
  top: calc(100% - 2px);
  left: 0;
  width: 520px;
  max-width: calc(100vw - 32px);
  margin: 0;
  padding: 22px;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
  border: 1px solid #dde1ea;
  border-top: 4px solid var(--sj-menu-tone);
  border-radius: 2px;
  color: var(--sj-mag-ink);
  background: #fff;
  box-shadow: 0 24px 60px rgba(16,21,48,.17);
  transform: translateY(8px);
  transition: opacity .18s ease,transform .18s ease,visibility .18s ease;
}
.sj-taxonomy-nav .sj-taxonomy-item-humanity > .sj-taxonomy-panel,
.sj-taxonomy-nav .sj-taxonomy-item-essentials > .sj-taxonomy-panel { right: 0; left: auto; }
.sj-taxonomy-nav .sj-taxonomy-item:not(.is-submenu-open) > .sj-taxonomy-panel { visibility: hidden; pointer-events: none; opacity: 0; transform: translateY(8px); }
.sj-taxonomy-nav .sj-taxonomy-item.is-submenu-open > .sj-taxonomy-panel { visibility: visible; pointer-events: auto; opacity: 1; transform: translateY(0); }
.sj-taxonomy-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sj-taxonomy-panel-title { display: flex; align-items: center; gap: 11px; }
.sj-taxonomy-panel-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 2px;
  color: #fff;
  background: linear-gradient(135deg,var(--sj-menu-tone),var(--sj-menu-tone-2));
  font-family: Georgia,serif;
  font-size: 17px;
  font-weight: 800;
}
.sj-taxonomy-panel-title small { display: block; color: #858b9b; font-size: 8px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.sj-taxonomy-panel-title strong { display: block; margin-top: 2px; font-size: 22px; line-height: 1.1; }
.sj-taxonomy-view-all { padding: 8px 11px; border: 1px solid #dfe2e9; border-radius: 2px; color: #4c5366 !important; font-size: 9px; font-weight: 850; }
.sj-taxonomy-view-all:hover { color: #fff !important; border-color: var(--sj-menu-tone); background: var(--sj-menu-tone); }
.sj-taxonomy-description { margin: 14px 0 0; color: #666e82; font-size: 11px; line-height: 1.55; }
.sj-taxonomy-children { margin-top: 16px; padding-top: 15px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; border-top: 1px solid #e8eaf0; }
.sj-taxonomy-children a { padding: 10px 11px; display: flex; justify-content: space-between; gap: 9px; border: 1px solid #e6e8ee; border-radius: 2px; color: #3e4558; background: #fafbfe; font-size: 11px; font-weight: 750; }
.sj-taxonomy-children a::after { display: none !important; }
.sj-taxonomy-children a i { color: var(--sj-menu-tone); font-style: normal; }
.sj-taxonomy-children a:hover { color: var(--sj-menu-tone); border-color: color-mix(in srgb,var(--sj-menu-tone) 50%,#e6e8ee); background: #fff; transform: translateY(-1px); }
.sj-header-search-item,
.sj-header-tools-item { display: flex; align-items: center; }
.sj-taxonomy-search { min-height: 38px; padding: 0 9px; display: inline-flex; align-items: center; gap: 4px; color: #343a4c !important; font-size: 0; }
.sj-taxonomy-search span { font-size: 21px; }
.sj-taxonomy-nav .sj-nav-cta { min-height: 36px; margin-left: 3px; padding: 0 13px; border-radius: 2px; color: #fff !important; background: linear-gradient(135deg,var(--sj-mag-violet),var(--sj-mag-blue)); font-size: 9px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.sj-menu-button { display: none; }

/* Five-story editorial lead grid. */
.sj-mag-hero { padding: 18px 0 22px; background: var(--sj-mag-night); }
.sj-mag-hero-inner {
  width: min(var(--sj-mag-wide),calc(100% - 48px));
  min-height: 552px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0,1.06fr) minmax(0,1fr);
  gap: 4px;
}
.sj-mag-story { position: relative; min-width: 0; overflow: hidden; isolation: isolate; background: #171d35; }
.sj-mag-story::before { content: ""; position: absolute; z-index: -2; inset: 0; background-image: var(--sj-cover); background-position: center; background-size: cover; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.sj-mag-story::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg,rgba(4,7,17,.02) 25%,rgba(4,7,17,.88) 100%); }
.sj-mag-story:hover::before { transform: scale(1.035); }
.sj-mag-story-link { position: absolute; z-index: 2; inset: 0; }
.sj-mag-story-copy { position: absolute; z-index: 3; right: 0; bottom: 0; left: 0; padding: 28px; color: #fff; pointer-events: none; }
.sj-mag-story-copy a { pointer-events: auto; }
.sj-mag-primary-story { min-height: 552px; }
.sj-mag-primary-story h1 { max-width: 690px; margin: 13px 0 12px; font-size: clamp(34px,3.2vw,48px); line-height: 1.03; letter-spacing: -.04em; text-wrap: balance; }
.sj-mag-primary-story h1 a,
.sj-mag-secondary-story h2 a { color: #fff; }
.sj-mag-primary-story h1 a:hover,
.sj-mag-secondary-story h2 a:hover { color: #dce3ff; }
.sj-mag-secondary-grid { min-width: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(2,1fr); gap: 4px; }
.sj-mag-secondary-story { min-height: 274px; }
.sj-mag-secondary-story .sj-mag-story-copy { padding: 19px; }
.sj-mag-secondary-story h2 { margin: 9px 0 9px; font-size: clamp(16px,1.5vw,20px); line-height: 1.18; letter-spacing: -.025em; text-wrap: balance; }
.sj-mag-topic { display: inline-flex; padding: 5px 8px; border-radius: 2px; color: #fff; background: linear-gradient(135deg,var(--sj-mag-violet),var(--sj-mag-blue)); font-size: 8px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.sj-mag-topic:hover { color: #fff; background: var(--sj-mag-coral); }
.sj-mag-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: #7e8494; font-size: 9px; font-weight: 600; }
.sj-mag-story .sj-mag-meta { color: rgba(255,255,255,.78); }
.sj-mag-meta span + span::before { content: "•"; margin-right: 7px; opacity: .65; }

/* Latest-update ticker. */
.sj-mag-ticker { border-bottom: 1px solid var(--sj-mag-line); background: #fff; }
.sj-mag-ticker-inner { min-height: 48px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; }
.sj-mag-ticker-inner > strong {
  position: relative;
  align-self: stretch;
  min-width: 160px;
  padding: 0 30px 0 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  clip-path: polygon(0 0,calc(100% - 18px) 0,100% 50%,calc(100% - 18px) 100%,0 100%);
  color: #fff;
  background: linear-gradient(135deg,var(--sj-mag-violet),var(--sj-mag-blue));
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sj-mag-ticker-inner > strong span { color: #7ff2ea; font-size: 7px; }
.sj-mag-ticker-window { position: relative; min-width: 0; height: 48px; overflow: hidden; }
.sj-mag-ticker-item { position: absolute; inset: 0; padding: 0 20px; display: flex; align-items: center; gap: 13px; visibility: hidden; opacity: 0; transform: translateY(8px); color: #252a3a; font-size: 12px; font-weight: 750; transition: opacity .2s ease,transform .2s ease,visibility .2s ease; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sj-mag-ticker-item.is-active { visibility: visible; opacity: 1; transform: translateY(0); }
.sj-mag-ticker-item span { flex: 0 0 auto; color: #8a90a0; font-size: 9px; font-weight: 500; }
.sj-mag-ticker-controls { display: flex; align-items: center; }
.sj-mag-ticker-controls button { width: 34px; height: 34px; padding: 0; border: 0; color: #5d6475; background: transparent; font-size: 22px; }
.sj-mag-ticker-controls button:hover { color: var(--sj-mag-blue); background: #f2f4f9; }

/* Dynamic topic-image strip. */
.sj-mag-topic-strip { padding: 46px 0 24px; background: #fff; }
.sj-mag-section-intro { margin-bottom: 20px; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.sj-mag-section-intro span { color: var(--sj-mag-blue); font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.sj-mag-section-intro h2 { margin: 5px 0 0; font-size: clamp(25px,2.6vw,36px); line-height: 1.06; letter-spacing: -.04em; }
.sj-mag-section-intro p { max-width: 450px; margin: 0; color: var(--sj-mag-copy); font-size: 12px; line-height: 1.6; text-align: right; }
.sj-mag-topic-tiles { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.sj-mag-topic-tile { position: relative; min-height: 226px; overflow: hidden; isolation: isolate; color: #fff; background: #1a2037; }
.sj-mag-topic-tile::before { content: ""; position: absolute; z-index: -2; inset: 0; background-image: var(--sj-cover); background-position: center; background-size: cover; transition: transform .4s ease; }
.sj-mag-topic-tile::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg,rgba(6,9,20,.04),rgba(6,9,20,.78)); }
.sj-mag-topic-tile:hover::before { transform: scale(1.045); }
.sj-mag-topic-tile:hover { color: #fff; }
.sj-mag-topic-mark { position: absolute; top: 15px; left: 15px; width: 33px; height: 33px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.38); color: #fff; background: linear-gradient(135deg,var(--sj-tone),var(--sj-tone-2)); font-family: Georgia,serif; font-size: 13px; font-weight: 800; }
.sj-mag-topic-tile-copy { position: absolute; right: 17px; bottom: 17px; left: 17px; }
.sj-mag-topic-tile-copy strong { display: block; font-size: 22px; line-height: 1.08; letter-spacing: -.03em; }
.sj-mag-topic-tile-copy small { display: block; margin-top: 5px; color: rgba(255,255,255,.78); font-size: 9px; }

/* Main magazine column and sticky sidebar. */
.sj-mag-page-layout { padding: 48px 0 72px; display: grid; grid-template-columns: minmax(0,1fr) 330px; align-items: start; gap: 42px; }
.sj-mag-main-column { min-width: 0; }
.sj-mag-ribbon-head { min-height: 44px; margin-bottom: 24px; display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--sj-mag-line); }
.sj-mag-ribbon-head h2 {
  align-self: stretch;
  min-width: 175px;
  margin: 0;
  padding: 0 30px 0 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  clip-path: polygon(0 0,calc(100% - 17px) 0,100% 50%,calc(100% - 17px) 100%,0 100%);
  color: #fff;
  background: linear-gradient(135deg,var(--sj-mag-violet),var(--sj-mag-blue));
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.sj-mag-ribbon-head nav { min-width: 0; margin-left: auto; display: flex; align-items: center; gap: 18px; overflow: hidden; }
.sj-mag-ribbon-head nav a { color: #858b9a; font-size: 10px; white-space: nowrap; }
.sj-mag-ribbon-head nav a:hover { color: var(--sj-mag-blue); }
.sj-mag-view-all { flex: 0 0 auto; color: #545b6d; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.sj-mag-view-all:hover { color: var(--sj-tone); }

.sj-mag-latest-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.sj-mag-latest-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid #e0e3ea; background: #fff; }
.sj-mag-latest-media { position: relative; display: block; aspect-ratio: 1.52; overflow: hidden; background: #eef0f6; }
.sj-mag-latest-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.sj-mag-latest-card:hover .sj-mag-latest-media img { transform: scale(1.035); }
.sj-mag-latest-media > span,
.sj-mag-domain-feature-media > span { position: absolute; bottom: 12px; left: 12px; padding: 5px 8px; color: #fff; background: linear-gradient(135deg,var(--sj-mag-violet),var(--sj-mag-blue)); font-size: 8px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.sj-mag-latest-copy { flex: 1; padding: 19px; display: flex; flex-direction: column; align-items: flex-start; }
.sj-mag-latest-copy h3 { margin: 0; font-size: 19px; line-height: 1.28; letter-spacing: -.025em; }
.sj-mag-latest-copy h3 a:hover { color: var(--sj-mag-blue); }
.sj-mag-latest-copy .sj-mag-meta { margin-top: 10px; }
.sj-mag-latest-copy p { margin: 14px 0 0; color: var(--sj-mag-copy); font-size: 12px; line-height: 1.67; }
.sj-mag-read-button { margin-top: 17px; padding: 9px 11px; color: #fff; background: #505665; font-size: 9px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.sj-mag-read-button:hover { color: #fff; background: linear-gradient(135deg,var(--sj-mag-violet),var(--sj-mag-blue)); transform: translateY(-1px); }

.sj-mag-domain-section { margin-top: 54px; }
.sj-mag-domain-head h2 { background: linear-gradient(135deg,var(--sj-tone),var(--sj-tone-2)); }
.sj-mag-domain-layout { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(240px,.8fr); gap: 24px; }
.sj-mag-domain-layout.is-reversed { grid-template-columns: minmax(240px,.8fr) minmax(0,1.2fr); }
.sj-mag-domain-layout.is-reversed .sj-mag-domain-feature { order: 2; }
.sj-mag-domain-layout.is-reversed .sj-mag-domain-list { order: 1; }
.sj-mag-domain-feature { min-width: 0; }
.sj-mag-domain-feature-media { position: relative; display: block; aspect-ratio: 1.55; overflow: hidden; background: #eef0f6; }
.sj-mag-domain-feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.sj-mag-domain-feature:hover img { transform: scale(1.035); }
.sj-mag-domain-feature-media > span { background: linear-gradient(135deg,var(--sj-tone),var(--sj-tone-2)); }
.sj-mag-domain-feature h3 { margin: 17px 0 0; font-size: 23px; line-height: 1.2; letter-spacing: -.035em; }
.sj-mag-domain-feature h3 a:hover { color: var(--sj-tone); }
.sj-mag-domain-feature .sj-mag-meta { margin-top: 9px; }
.sj-mag-domain-feature p { margin: 13px 0 0; color: var(--sj-mag-copy); font-size: 12px; line-height: 1.68; }
.sj-mag-domain-list { border-top: 1px solid var(--sj-mag-line); }
.sj-mag-domain-list article { padding: 14px 0; display: grid; grid-template-columns: 104px minmax(0,1fr); align-items: center; gap: 14px; border-bottom: 1px solid var(--sj-mag-line); }
.sj-mag-domain-thumb { display: block; aspect-ratio: 1.35; overflow: hidden; background: #eef0f6; }
.sj-mag-domain-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sj-mag-domain-list h3 { margin: 0; font-size: 13px; line-height: 1.35; }
.sj-mag-domain-list h3 a:hover { color: var(--sj-tone); }
.sj-mag-domain-list small { display: block; margin-top: 7px; color: #8c92a1; font-size: 8px; }
.sj-mag-empty-domain { padding: 24px; border: 1px solid var(--sj-mag-line); background: #fafbfe; }
.sj-mag-empty-domain p { margin: 0; color: var(--sj-mag-copy); font-size: 13px; }
.sj-mag-empty-domain div { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.sj-mag-empty-domain a { padding: 7px 9px; border: 1px solid #e0e3ea; color: #555d70; background: #fff; font-size: 9px; font-weight: 800; }

.sj-mag-sidebar { position: sticky; top: 96px; display: grid; gap: 22px; }
.sj-mag-widget { padding: 18px; border: 1px solid #dfe2e9; background: #fff; }
.sj-mag-widget-title { min-height: 35px; margin: -1px -1px 18px; display: grid; grid-template-columns: 1fr 36px; color: #fff; background: #565b66; }
.sj-mag-widget-title span { padding: 0 12px; display: flex; align-items: center; font-size: 10px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.sj-mag-widget-title i { display: grid; place-items: center; color: #fff; background: var(--sj-mag-night); font-size: 17px; font-style: normal; }
.sj-mag-search-widget .sj-search-form { padding: 5px; border: 1px solid #dfe2e9; border-radius: 0; box-shadow: none; }
.sj-mag-search-widget .sj-search-form input[type="search"] { min-height: 38px; padding: 0 9px; font-size: 12px; }
.sj-mag-search-widget .sj-search-form button { min-height: 38px; padding: 0 12px; border-radius: 0; background: linear-gradient(135deg,var(--sj-mag-violet),var(--sj-mag-blue)); font-size: 9px; text-transform: uppercase; }
.sj-mag-connect-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.sj-mag-connect-grid a { min-width: 0; display: flex; align-items: center; gap: 8px; color: #303648; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.sj-mag-connect-grid b { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; color: #fff; background: #343a50; font-size: 12px; }
.sj-mag-connect-grid .is-youtube { background: #ff1744; }
.sj-mag-connect-grid .is-facebook { background: #1769d2; }
.sj-mag-connect-grid .is-tools { background: linear-gradient(135deg,var(--sj-mag-violet),var(--sj-mag-blue)); }
.sj-mag-connect-grid .is-contact { background: var(--sj-mag-teal); }
.sj-mag-connect-grid a:hover { color: var(--sj-mag-blue); transform: translateY(-1px); }
.sj-mag-popular-list { margin: 0; padding: 0; list-style: none; }
.sj-mag-popular-list li { position: relative; min-height: 78px; padding: 12px 0; display: grid; grid-template-columns: 82px minmax(0,1fr); align-items: center; gap: 13px; border-bottom: 1px solid var(--sj-mag-line); }
.sj-mag-popular-list li:last-child { border-bottom: 0; }
.sj-mag-popular-number { position: absolute; z-index: 2; top: 5px; left: -7px; width: 25px; height: 25px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; background: var(--sj-mag-night); font-size: 10px; font-weight: 900; }
.sj-mag-popular-thumb { display: block; height: 62px; overflow: hidden; background: #eef0f6; }
.sj-mag-popular-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sj-mag-popular-list h3 { margin: 0; font-size: 11px; line-height: 1.35; }
.sj-mag-popular-list h3 a:hover { color: var(--sj-mag-blue); }
.sj-mag-popular-list small { display: block; margin-top: 6px; color: #8d93a2; font-size: 7px; }
.sj-mag-sidebar > .sj-ad-slot { width: 100%; margin: 0; }

/* Ad widgets remain invisible until the owner adds a real widget. */
.sj-ad-slot { width: min(var(--sj-mag-wide),calc(100% - 48px)); margin: 28px auto; padding: 0; }
.sj-mag-main-column > .sj-ad-slot { width: 100%; margin: 36px 0; }
.sj-ad-slot .widget { padding: 12px; border: 1px solid #e3e5eb; background: #fafbfc; }

/* Archive, search and reusable cards. */
.sj-mag-archive-hero { padding: 58px 0 52px; color: #fff; background: radial-gradient(circle at 80% 10%,rgba(0,174,188,.3),transparent 32%),linear-gradient(125deg,#111735,#30265f 55%,#173d67); }
.sj-mag-archive-hero .sj-breadcrumbs { margin-bottom: 20px; color: rgba(255,255,255,.72); }
.sj-mag-archive-hero .sj-breadcrumbs a { color: #fff; }
.sj-mag-archive-hero > .sj-wrap > span { color: #8fece5; font-size: 9px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.sj-mag-archive-hero h1 { max-width: 850px; margin: 9px 0 0; font-size: clamp(38px,5vw,62px); line-height: 1; letter-spacing: -.05em; }
.sj-mag-archive-hero p,
.sj-mag-archive-description { max-width: 720px; margin: 17px 0 0; color: rgba(255,255,255,.8); font-size: 14px; line-height: 1.7; }
.sj-mag-archive-description p { margin: 0; }
.sj-mag-hero-search { max-width: 680px; margin-top: 25px; }
.sj-mag-hero-search .sj-search-form { border: 0; border-radius: 2px; background: #fff; box-shadow: none; }
.sj-mag-child-nav { margin-top: -20px; padding: 10px; position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 7px; border: 1px solid #e0e3ea; background: #fff; box-shadow: 0 12px 30px rgba(20,25,54,.09); }
.sj-mag-child-nav a { padding: 9px 11px; display: inline-flex; align-items: center; gap: 8px; color: #4a5163; background: #f6f7fa; font-size: 9px; font-weight: 800; }
.sj-mag-child-nav a:hover { color: #fff; background: linear-gradient(135deg,var(--sj-mag-violet),var(--sj-mag-blue)); }
.sj-mag-child-nav small { color: #8b91a1; }
.sj-mag-child-nav a:hover small { color: rgba(255,255,255,.72); }
.sj-mag-listing-layout { padding-top: 46px; }
.sj-mag-author-intro { max-width: 880px; margin-top: 24px; display: flex; align-items: center; gap: 22px; }
.sj-mag-author-initial { width: 78px; height: 78px; flex: 0 0 78px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); color: #fff; background: linear-gradient(135deg,var(--sj-mag-violet),var(--sj-mag-teal)); font-size: 28px; font-weight: 900; }
.sj-mag-author-intro h1 { margin-top: 0; }
.sj-mag-author-intro p { margin-top: 13px; }
.sj-mag-author-intro small { display: block; margin-top: 12px; color: #8fece5; font-size: 9px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.sj-mag-standard-page { padding-top: 56px; padding-bottom: 76px; }
.sj-mag-page-content { width: min(820px,100%); margin: 0 auto; }
.sj-mag-page-content > *:first-child { margin-top: 0; }
.sj-post-grid.sj-mag-archive-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.sj-post-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e0e3ea; border-radius: 0; background: #fff; box-shadow: none; }
.sj-post-card-media { display: block; aspect-ratio: 1.52; overflow: hidden; background: #eef0f6; }
.sj-post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.sj-post-card:hover .sj-post-card-media img { transform: scale(1.035); }
.sj-post-card-body { flex: 1; padding: 19px; display: flex; flex-direction: column; align-items: flex-start; }
.sj-category-pill { padding: 5px 8px; border-radius: 0; color: #fff; background: linear-gradient(135deg,var(--sj-mag-violet),var(--sj-mag-blue)); font-size: 8px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.sj-post-card h3 { margin: 12px 0 0; font-size: 19px; line-height: 1.28; letter-spacing: -.025em; }
.sj-post-card h3 a:hover { color: var(--sj-mag-blue); }
.sj-post-card-body > p { margin: 13px 0 0; color: var(--sj-mag-copy); font-size: 12px; line-height: 1.67; }
.sj-card-meta { margin-top: 12px; color: #8b91a1; font-size: 8px; }
.sj-card-action { margin-top: 17px; padding: 9px 11px; color: #fff; background: #535966; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.sj-card-action:hover { color: #fff; background: linear-gradient(135deg,var(--sj-mag-violet),var(--sj-mag-blue)); }
.sj-pagination { margin-top: 34px; }

/* Searchable, editorial 404 page. */
.sj-mag-404 { padding: 88px 0; overflow: hidden; color: #fff; background: radial-gradient(circle at 18% 18%,rgba(109,74,255,.38),transparent 33%),radial-gradient(circle at 84% 70%,rgba(0,174,188,.28),transparent 28%),var(--sj-mag-night); }
.sj-mag-404-inner { display: grid; grid-template-columns: minmax(260px,.75fr) minmax(0,1.25fr); align-items: center; gap: 70px; }
.sj-mag-404-number { color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.23); font-size: clamp(150px,22vw,300px); font-weight: 950; line-height: .75; letter-spacing: -.09em; }
.sj-mag-404-copy > span { color: #80ebe3; font-size: 9px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.sj-mag-404-copy h1 { max-width: 690px; margin: 10px 0 0; font-size: clamp(42px,5.4vw,72px); line-height: .98; letter-spacing: -.055em; }
.sj-mag-404-copy p { max-width: 650px; margin: 20px 0 0; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.72; }
.sj-mag-404-search { max-width: 620px; margin-top: 25px; }
.sj-mag-404-search .sj-search-form { border: 0; border-radius: 2px; background: #fff; box-shadow: none; }
.sj-mag-404-links { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.sj-mag-404-links .sj-button { min-height: 46px; border-radius: 2px; font-size: 10px; }
.sj-mag-404-links .sj-button-primary { background: linear-gradient(135deg,var(--sj-mag-violet),var(--sj-mag-blue)); }
.sj-mag-404-links .sj-button-secondary { color: #fff; border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.08); }
.sj-mag-404-domains { margin-top: -24px; margin-bottom: 68px; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid var(--sj-mag-line); background: #fff; box-shadow: 0 18px 45px rgba(18,23,52,.12); }
.sj-mag-404-domains a { min-width: 0; padding: 20px; display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: center; gap: 2px 12px; border-right: 1px solid var(--sj-mag-line); }
.sj-mag-404-domains a:last-child { border-right: 0; }
.sj-mag-404-domains a > span { grid-row: 1 / 3; width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg,var(--sj-tone),var(--sj-tone-2)); font-family: Georgia,serif; font-weight: 800; }
.sj-mag-404-domains strong { font-size: 13px; }
.sj-mag-404-domains small { color: #8b91a1; font-size: 8px; }
.sj-mag-404-domains a:hover strong { color: var(--sj-tone); }

/* SOAKJAM tools transition. */
.sj-mag-tools-band { padding: 52px 0; color: #fff; background: radial-gradient(circle at 84% 20%,rgba(0,200,216,.24),transparent 30%),linear-gradient(120deg,#161a42,#403084 58%,#175985); }
.sj-mag-tools-band-inner { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 50px; }
.sj-mag-tools-band span { color: #85f0e7; font-size: 9px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.sj-mag-tools-band h2 { max-width: 720px; margin: 7px 0 0; font-size: clamp(28px,3vw,42px); line-height: 1.06; letter-spacing: -.04em; }
.sj-mag-tools-band p { max-width: 650px; margin: 13px 0 0; color: rgba(255,255,255,.73); font-size: 13px; line-height: 1.65; }
.sj-mag-tools-band nav { min-width: 220px; display: grid; gap: 8px; }
.sj-mag-tools-band nav a { padding: 12px 14px; display: flex; justify-content: space-between; border: 1px solid rgba(255,255,255,.2); color: #fff; background: rgba(255,255,255,.06); font-size: 10px; font-weight: 850; }
.sj-mag-tools-band nav a:hover { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.12); transform: translateX(3px); }

/* Compact editorial footer. */
.sj-site-footer { padding: 0; color: #dce2f2; background: #0b1023; }
.sj-mag-footer-grid { padding-top: 54px; padding-bottom: 46px; display: grid; grid-template-columns: 1.25fr .78fr 1.18fr .78fr; gap: 46px; }
.sj-mag-footer-brand img { width: 165px; }
.sj-mag-footer-brand > strong { display: block; margin-top: 17px; color: #fff; font-size: 15px; }
.sj-mag-footer-brand p { max-width: 315px; margin: 11px 0 0; color: #929db9; font-size: 12px; line-height: 1.7; }
.sj-mag-footer-cta { display: inline-flex; margin-top: 18px; color: #7fe8df; font-size: 10px; font-weight: 850; }
.sj-mag-footer-cta:hover { color: #fff; }
.sj-mag-footer-column { min-width: 0; display: flex; flex-direction: column; align-items: stretch; }
.sj-mag-footer-column h2 { margin: 0 0 15px; color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.sj-mag-footer-column > a { padding: 8px 0; display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.075); color: #9fa9c0; font-size: 10px; line-height: 1.35; }
.sj-mag-footer-column > a:hover { color: #fff; padding-left: 3px; }
.sj-mag-footer-column > a small { color: #68738e; }
.sj-mag-footer-latest > a { display: block; }
.sj-mag-footer-latest strong { display: block; color: #cdd4e6; font-size: 10px; }
.sj-mag-footer-latest small { display: block; margin-top: 4px; color: #68738e; font-size: 8px; }
.sj-mag-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); background: #080c1a; }
.sj-mag-footer-bottom > div { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: #68738e; font-size: 9px; }
.sj-back-to-top { right: 22px; bottom: 22px; width: 42px; height: 42px; border-radius: 2px; background: linear-gradient(135deg,var(--sj-mag-violet),var(--sj-mag-blue)); }

@media (max-width: 1260px) and (min-width: 1181px) {
  .sj-taxonomy-nav { grid-template-columns: minmax(0,1fr) 150px minmax(0,1fr); }
  .sj-nav-wing { gap: 0; }
  .sj-taxonomy-parent-link { padding-left: 8px; font-size: 10px; }
  .sj-taxonomy-parent-link::before { left: 8px; }
  .sj-main-brand-link img,.sj-main-brand-link .custom-logo { width: 124px; }
  .sj-brand-cluster { min-width: 150px; }
}

@media (max-width: 1180px) {
  .sj-utility-inner nav a:nth-child(n+4) { display: none; }
  .sj-site-header,.sj-site-header.is-scrolled { min-height: 68px; }
  .sj-header-inner { min-height: 68px; justify-content: space-between; }
  .sj-brand-cluster { position: static; min-width: 0; justify-content: flex-start; transform: none; }
  .sj-main-brand-link img,.sj-main-brand-link .custom-logo { width: 132px; }
  .sj-knowledge-home-link { font-size: 7px; }
  .sj-menu-button { position: relative; z-index: 1701; width: 42px; height: 42px; display: flex; border-radius: 2px; background: linear-gradient(135deg,var(--sj-mag-violet),var(--sj-mag-blue)); }
  .sj-taxonomy-nav {
    position: absolute;
    z-index: 1600;
    top: calc(100% + 1px);
    right: -24px;
    left: -24px;
    width: auto;
    min-height: 0;
    max-height: calc(100vh - 100px);
    max-height: calc(100dvh - 100px);
    padding: 12px;
    display: none;
    overflow-y: auto;
    border: 0;
    border-bottom: 1px solid #dfe2e9;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15,20,48,.18);
  }
  .sj-taxonomy-nav.is-open { display: block; }
  .sj-nav-logo-space { display: none; }
  .sj-nav-wing { width: 100%; display: block; }
  .sj-nav-wing > .sj-taxonomy-item,
  .sj-nav-wing > .sj-header-search-item,
  .sj-nav-wing > .sj-header-tools-item { width: 100%; display: block; margin: 0; border-bottom: 1px solid #eceef3; }
  .sj-taxonomy-row { min-height: 0; display: grid; grid-template-columns: 1fr 46px; }
  .sj-taxonomy-parent-link { min-height: 50px; padding: 0 12px; font-size: 11px; }
  .sj-taxonomy-parent-link::before { display: none; }
  .sj-taxonomy-toggle { width: 46px; min-height: 50px; padding: 0; border-left: 1px solid #eceef3; }
  .sj-taxonomy-mark { width: 25px; height: 25px; margin-right: 9px; display: grid; place-items: center; border-radius: 2px; color: #fff; background: linear-gradient(135deg,var(--sj-menu-tone),var(--sj-menu-tone-2)); font-family: Georgia,serif; font-size: 10px; }
  .sj-taxonomy-nav .sj-taxonomy-panel,
  .sj-taxonomy-nav .sj-taxonomy-item-humanity > .sj-taxonomy-panel,
  .sj-taxonomy-nav .sj-taxonomy-item-essentials > .sj-taxonomy-panel {
    position: static;
    width: 100%;
    max-width: none;
    max-height: 0;
    padding: 0 12px;
    visibility: hidden;
    opacity: 0;
    overflow: hidden;
    border: 0;
    border-top: 0;
    box-shadow: none;
    transform: none;
  }
  .sj-taxonomy-nav .sj-taxonomy-item.is-submenu-open > .sj-taxonomy-panel { max-height: 620px; padding-top: 14px; padding-bottom: 16px; visibility: visible; opacity: 1; }
  .sj-taxonomy-children { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sj-taxonomy-search { min-height: 48px; padding: 0 12px; font-size: 10px; }
  .sj-taxonomy-nav .sj-nav-cta { min-height: 42px; margin: 8px 0; }
  .sj-mag-page-layout { grid-template-columns: minmax(0,1fr) 300px; gap: 28px; }
  .sj-mag-footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .sj-mag-hero-inner { grid-template-columns: 1fr; }
  .sj-mag-primary-story { min-height: 470px; }
  .sj-mag-secondary-grid { min-height: 500px; }
  .sj-mag-topic-tiles { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sj-mag-page-layout { grid-template-columns: 1fr; }
  .sj-mag-sidebar { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sj-mag-sidebar > .sj-ad-slot { grid-column: 1 / -1; }
  .sj-mag-tools-band-inner { grid-template-columns: 1fr; gap: 27px; }
  .sj-mag-404-inner { grid-template-columns: 1fr; gap: 35px; }
  .sj-mag-404-number { font-size: 150px; }
  .sj-mag-404-domains { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sj-mag-404-domains a:nth-child(2) { border-right: 0; }
  .sj-mag-404-domains a:nth-child(-n+2) { border-bottom: 1px solid var(--sj-mag-line); }
}

@media (max-width: 680px) {
  .sj-wrap,
  .sj-utility-inner,
  .sj-header-inner,
  .sj-mag-hero-inner,
  .sj-ad-slot { width: min(100% - 28px,var(--sj-mag-wide)); }
  .sj-utility-inner { min-height: 28px; }
  .sj-utility-inner > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sj-utility-inner nav { display: none; }
  .sj-header-inner { min-height: 62px; }
  .sj-site-header,.sj-site-header.is-scrolled { min-height: 62px; }
  .sj-main-brand-link img,.sj-main-brand-link .custom-logo { width: 116px; }
  .sj-knowledge-home-link { display: none; }
  .sj-taxonomy-nav { right: -14px; left: -14px; }
  .sj-taxonomy-children { grid-template-columns: 1fr; }
  .sj-taxonomy-panel-head { align-items: flex-start; }
  .sj-taxonomy-description { display: none; }
  .sj-mag-hero { padding: 7px 0 12px; }
  .sj-mag-hero-inner { gap: 3px; }
  .sj-mag-primary-story { min-height: 420px; }
  .sj-mag-primary-story .sj-mag-story-copy { padding: 21px; }
  .sj-mag-primary-story h1 { font-size: 31px; }
  .sj-mag-secondary-grid { min-height: 0; grid-template-columns: 1fr; grid-template-rows: none; gap: 3px; }
  .sj-mag-secondary-story { min-height: 230px; }
  .sj-mag-secondary-story h2 { font-size: 18px; }
  .sj-mag-secondary-story:nth-child(n+3) { display: none; }
  .sj-mag-ticker-inner { grid-template-columns: auto minmax(0,1fr); }
  .sj-mag-ticker-inner > strong { min-width: 115px; padding-right: 22px; font-size: 8px; }
  .sj-mag-ticker-item { padding: 0 10px; font-size: 10px; }
  .sj-mag-ticker-item span { display: none; }
  .sj-mag-ticker-controls { display: none; }
  .sj-mag-topic-strip { padding-top: 34px; }
  .sj-mag-section-intro { align-items: flex-start; flex-direction: column; gap: 10px; }
  .sj-mag-section-intro p { text-align: left; }
  .sj-mag-topic-tiles { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
  .sj-mag-topic-tile { min-height: 180px; }
  .sj-mag-topic-tile-copy strong { font-size: 18px; }
  .sj-mag-page-layout { padding-top: 36px; padding-bottom: 52px; }
  .sj-mag-ribbon-head { min-height: 42px; margin-bottom: 18px; overflow: hidden; }
  .sj-mag-ribbon-head h2 { min-width: 150px; font-size: 10px; }
  .sj-mag-ribbon-head nav { display: none; }
  .sj-mag-view-all { margin-left: auto; }
  .sj-mag-latest-grid { grid-template-columns: 1fr; gap: 16px; }
  .sj-mag-latest-copy h3 { font-size: 20px; }
  .sj-mag-domain-section { margin-top: 43px; }
  .sj-mag-domain-layout,
  .sj-mag-domain-layout.is-reversed { grid-template-columns: 1fr; }
  .sj-mag-domain-layout.is-reversed .sj-mag-domain-feature,
  .sj-mag-domain-layout.is-reversed .sj-mag-domain-list { order: initial; }
  .sj-mag-domain-feature h3 { font-size: 22px; }
  .sj-mag-sidebar { grid-template-columns: 1fr; }
  .sj-post-grid.sj-mag-archive-grid { grid-template-columns: 1fr; }
  .sj-mag-archive-hero { padding: 44px 0 40px; }
  .sj-mag-archive-hero h1 { font-size: 40px; }
  .sj-mag-author-intro { align-items: flex-start; }
  .sj-mag-author-initial { width: 60px; height: 60px; flex-basis: 60px; font-size: 22px; }
  .sj-mag-standard-page { padding-top: 42px; padding-bottom: 56px; }
  .sj-mag-child-nav { overflow-x: auto; flex-wrap: nowrap; }
  .sj-mag-child-nav a { flex: 0 0 auto; }
  .sj-mag-tools-band { padding: 42px 0; }
  .sj-mag-tools-band nav { min-width: 0; }
  .sj-mag-footer-grid { padding-top: 42px; grid-template-columns: 1fr; gap: 34px; }
  .sj-mag-footer-bottom > div { padding: 12px 0; min-height: 0; flex-direction: column; align-items: flex-start; gap: 5px; }
  .sj-mag-404 { padding: 62px 0 72px; }
  .sj-mag-404-number { font-size: 112px; }
  .sj-mag-404-copy h1 { font-size: 42px; }
  .sj-mag-404-domains { margin-bottom: 52px; grid-template-columns: 1fr; }
  .sj-mag-404-domains a,
  .sj-mag-404-domains a:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--sj-mag-line); }
  .sj-mag-404-domains a:last-child { border-bottom: 0; }
}

@media (max-width: 390px) {
  .sj-mag-topic-tiles { grid-template-columns: 1fr; }
  .sj-mag-topic-tile { min-height: 190px; }
  .sj-mag-domain-list article { grid-template-columns: 90px minmax(0,1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .sj-mag-story::before,
  .sj-mag-topic-tile::before,
  .sj-mag-latest-media img,
  .sj-mag-domain-feature-media img,
  .sj-post-card-media img,
  .sj-mag-ticker-item { transition: none !important; }
}

/* ========================================================================
   SOAKJAM Knowledge 2.2.1 — wide masthead and focused platform map.
   ======================================================================== */

#sj-main-content,
.sj-single-entry,
.sj-mag-main-column,
.sj-article-content,
.sj-article-aside { min-width: 0; }
#sj-main-content { overflow-x: clip; }
img,
svg,
video,
iframe { max-width: 100%; }

/* The brand is deliberately anchored to the left; live categories sit right. */
.sj-header-inner,
.sj-utility-inner { width: min(1560px,calc(100% - 48px)); }
.sj-header-inner {
  justify-content: flex-start;
  gap: clamp(24px,3vw,54px);
}
.sj-brand-cluster {
  position: static;
  z-index: 6;
  top: auto;
  left: auto;
  min-width: 0;
  flex: 0 0 auto;
  justify-content: flex-start;
  gap: 10px;
  transform: none;
}
.sj-main-brand-link img,
.sj-main-brand-link .custom-logo { width: 148px; max-height: 46px; }
.sj-knowledge-home-link {
  min-height: 28px;
  padding: 0 0 0 10px;
  display: inline-flex;
  align-items: center;
  border-left-color: #cbd2e3;
  color: #44506c;
  font-size: 8px;
  letter-spacing: .14em;
}
.sj-taxonomy-nav {
  position: static;
  width: auto;
  min-width: 0;
  min-height: 76px;
  flex: 1 1 auto;
  margin: 0 0 0 auto;
  display: block;
  font-size: 11px;
}
.sj-nav-logo-space,
.sj-nav-wing-left,
.sj-nav-wing-right { display: none; }
.sj-nav-wing-primary {
  width: 100%;
  min-height: 76px;
  justify-content: flex-end;
  align-items: stretch;
  gap: 5px;
}
.sj-taxonomy-nav .sj-taxonomy-parent-link { color: #27324d !important; }
.sj-taxonomy-nav .sj-taxonomy-toggle,
.sj-taxonomy-nav .sj-taxonomy-caret { color: #59647c !important; }
.sj-taxonomy-nav .sj-taxonomy-item:hover .sj-taxonomy-parent-link,
.sj-taxonomy-nav .sj-taxonomy-item:hover .sj-taxonomy-toggle,
.sj-taxonomy-nav .sj-taxonomy-item:hover .sj-taxonomy-caret,
.sj-taxonomy-nav .sj-taxonomy-item.is-current-domain .sj-taxonomy-parent-link,
.sj-taxonomy-nav .sj-taxonomy-item.is-current-domain .sj-taxonomy-toggle,
.sj-taxonomy-nav .sj-taxonomy-item.is-current-domain .sj-taxonomy-caret,
.sj-taxonomy-nav .sj-taxonomy-item.is-submenu-open .sj-taxonomy-parent-link,
.sj-taxonomy-nav .sj-taxonomy-item.is-submenu-open .sj-taxonomy-toggle,
.sj-taxonomy-nav .sj-taxonomy-item.is-submenu-open .sj-taxonomy-caret { color: var(--sj-menu-tone) !important; }
.sj-taxonomy-nav .sj-nav-cta {
  background: linear-gradient(135deg,var(--sj-mag-violet) 0%,var(--sj-mag-blue) 58%,var(--sj-mag-teal) 145%);
  box-shadow: 0 8px 18px rgba(66,75,205,.18);
}

/* Full-width landscape lead composition with controlled editorial colour. */
.sj-mag-hero {
  padding: 0;
  background: var(--sj-mag-night);
  border-bottom: 4px solid var(--sj-mag-violet);
}
.sj-mag-hero-inner {
  width: 100%;
  max-width: none;
  min-height: clamp(450px,29vw,570px);
  margin: 0;
  grid-template-columns: minmax(0,1.38fr) minmax(460px,.92fr);
  gap: 4px;
}
.sj-mag-story::before { filter: saturate(1.08) contrast(1.045); }
.sj-mag-story::after {
  background:
    linear-gradient(110deg,rgba(8,17,48,.36),rgba(88,54,188,.07) 58%,rgba(5,11,30,.14)),
    linear-gradient(180deg,rgba(4,8,23,.02) 18%,rgba(4,8,23,.88) 100%);
}
.sj-mag-primary-story { min-height: clamp(450px,29vw,570px); }
.sj-mag-primary-story::after {
  background:
    linear-gradient(90deg,rgba(6,13,38,.64) 0%,rgba(16,24,63,.15) 68%,rgba(84,45,180,.08) 100%),
    linear-gradient(180deg,rgba(4,8,23,.01) 24%,rgba(4,8,23,.9) 100%);
}
.sj-mag-primary-story h1 { max-width: 780px; font-size: clamp(36px,3vw,54px); }
.sj-mag-secondary-story { min-height: 0; }
.sj-mag-topic {
  background: linear-gradient(135deg,var(--sj-mag-coral),var(--sj-mag-violet) 52%,var(--sj-mag-blue));
  box-shadow: 0 7px 18px rgba(28,19,75,.22);
}

/* Brighter accents on a restrained editorial surface. */
.sj-mag-topic-strip {
  background:
    radial-gradient(circle at 8% 0%,rgba(117,72,231,.065),transparent 28%),
    radial-gradient(circle at 92% 10%,rgba(8,169,184,.07),transparent 27%),
    #fff;
}
.sj-mag-topic-tile { border-bottom: 3px solid var(--sj-tone); }
.sj-mag-topic-tile::after {
  background:
    linear-gradient(135deg,rgba(10,19,48,.05),color-mix(in srgb,var(--sj-tone) 20%,transparent)),
    linear-gradient(180deg,rgba(6,9,24,.02),rgba(6,9,24,.83));
}
.sj-mag-topic-tile-copy > span {
  margin-top: 8px;
  display: inline-flex;
  color: rgba(255,255,255,.78);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sj-mag-page-layout { background: #fff; }
.sj-mag-widget {
  border-color: #dce2ef;
  box-shadow: 0 12px 30px rgba(30,42,83,.045);
}
.sj-mag-widget-title {
  background: linear-gradient(90deg,#253150,#3e4968);
}
.sj-mag-widget-title i { background: linear-gradient(135deg,var(--sj-mag-violet),var(--sj-mag-blue)); }
.sj-mag-footer-column > a i,
.sj-mag-child-nav a i { color: currentColor; font-size: 10px; font-style: normal; }

/* One honest platform relationship: Knowledge and Tools. */
.sj-mag-platform-widget { padding: 20px; }
.sj-aside-orbit-card {
  overflow: hidden;
  border-color: #dce2f0;
  background:
    radial-gradient(circle at 82% 12%,rgba(8,169,184,.15),transparent 29%),
    radial-gradient(circle at 10% 90%,rgba(117,72,231,.11),transparent 34%),
    linear-gradient(150deg,#fff,#f2f5ff);
}
.sj-aside-orbit-heading span { color: var(--sj-mag-coral); }
.sj-aside-orbit-heading strong { color: var(--sj-mag-ink); font-family: inherit; }
.sj-aside-orbit {
  position: relative;
  width: 224px !important;
  max-width: 100%;
  height: 224px !important;
  aspect-ratio: 1;
  margin: 14px auto 8px;
}
.sj-aside-orbit-ring-outer {
  width: 194px !important;
  height: 194px !important;
  border: 1px solid rgba(66,91,190,.25);
  background: radial-gradient(circle,rgba(255,255,255,.58),rgba(80,93,204,.025));
}
.sj-aside-orbit-ring-inner {
  width: 132px !important;
  height: 132px !important;
  border-color: rgba(239,83,111,.48);
}
.sj-aside-orbit-core {
  width: 90px !important;
  height: 90px !important;
  padding: 12px !important;
  border: 1px solid rgba(255,255,255,.95);
  background: #fff;
  box-shadow: 0 16px 36px rgba(42,50,124,.18);
}
.sj-aside-orbit-core img { width: 36px; height: 36px; }
.sj-aside-orbit-core strong { color: #17234e; }
.sj-aside-orbit-tools {
  top: 1px !important;
  right: auto !important;
  bottom: auto !important;
  left: 50% !important;
  padding: 8px 13px !important;
  background: linear-gradient(110deg,var(--sj-mag-teal),var(--sj-mag-blue)) !important;
  transform: translateX(-50%) !important;
}
.sj-aside-orbit-tools:hover,
.sj-aside-orbit-tools:focus-visible { transform: translate(-50%,-2px) !important; }
.sj-aside-orbit-card > p {
  margin: 8px auto 0;
  max-width: 245px;
  color: #606c87;
  font-size: 10px;
  line-height: 1.65;
  text-align: center;
}

.sj-mag-404-domains a { grid-template-columns: 38px minmax(0,1fr) auto; gap: 12px; }
.sj-mag-404-domains a > span { grid-row: auto; }
.sj-mag-404-domains a > i { color: var(--sj-tone); font-style: normal; }

@media (min-width: 1181px) {
  .sj-taxonomy-nav { display: block !important; }
  .sj-menu-button { display: none !important; }
}

@media (max-width: 1180px) {
  .sj-header-inner { min-height: 68px; gap: 16px; }
  .sj-brand-cluster { flex: 0 1 auto; }
  .sj-main-brand-link img,
  .sj-main-brand-link .custom-logo { width: 132px; }
  .sj-menu-button {
    position: relative;
    z-index: 1701;
    width: 42px;
    height: 42px;
    margin-left: auto;
    flex: 0 0 42px;
    display: flex !important;
  }
  .sj-taxonomy-nav {
    position: absolute !important;
    z-index: 1600;
    top: calc(100% + 1px);
    right: -24px;
    left: -24px;
    width: auto !important;
    min-height: 0;
    max-height: calc(100dvh - 100px);
    margin: 0;
    padding: 12px;
    display: none !important;
    overflow-y: auto;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15,20,48,.18);
  }
  .sj-taxonomy-nav.is-open { display: block !important; }
  .sj-nav-wing-primary { width: 100%; min-height: 0; display: block; }
  .sj-taxonomy-nav .sj-taxonomy-parent-link { color: #27324d !important; }
}

@media (max-width: 980px) {
  .sj-mag-hero-inner { grid-template-columns: 1fr; }
  .sj-mag-primary-story { min-height: 430px; }
  .sj-mag-secondary-grid { min-height: 480px; }
}

@media (max-width: 680px) {
  .sj-header-inner,
  .sj-utility-inner { width: calc(100% - 28px); }
  .sj-main-brand-link img,
  .sj-main-brand-link .custom-logo { width: 112px; }
  .sj-knowledge-home-link {
    min-height: 24px;
    padding-left: 8px;
    display: inline-flex !important;
    font-size: 7px;
    letter-spacing: .09em;
  }
  .sj-taxonomy-nav { right: -14px; left: -14px; }
  .sj-mag-hero { padding: 0; }
  .sj-mag-hero-inner { width: 100%; gap: 3px; }
  .sj-mag-primary-story { min-height: 360px; }
  .sj-mag-primary-story h1 { font-size: 30px; }
  .sj-mag-secondary-grid { min-height: 0; }
  .sj-mag-secondary-story { min-height: 215px; }
  .sj-aside-orbit { width: 216px !important; height: 216px !important; }
}

@media (max-width: 390px) {
  .sj-main-brand-link img,
  .sj-main-brand-link .custom-logo { width: 102px; }
  .sj-brand-cluster { gap: 6px; }
  .sj-knowledge-home-link { padding-left: 6px; font-size: 6.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .sj-aside-orbit-ring-inner { animation: none !important; }
}

/* ========================================================================
   SOAKJAM Knowledge 2.3.0 — editorial home grid and colour modes.

   Article composition remains in style.css so the established reading
   system is not overridden by the magazine layer.
   ======================================================================== */

/* Compact theme control beside the desktop navigation and mobile menu. */
.sj-header-actions {
  margin-left: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
}
.sj-theme-toggle {
  width: 50px;
  height: 30px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid #d9deea;
  border-radius: 999px;
  color: #59647a;
  background: #edf0f5;
  box-shadow: none;
  cursor: pointer;
}
.sj-theme-toggle-track {
  position: relative;
  width: 44px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
  border-radius: inherit;
  font-size: 12px;
  line-height: 1;
}
.sj-theme-toggle-track i {
  position: absolute;
  z-index: 2;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(22,31,65,.22);
  transition: transform .22s ease,background-color .22s ease;
}
.sj-theme-toggle-track > span { position: relative; z-index: 1; }
.sj-theme-toggle[aria-pressed="true"] .sj-theme-toggle-track i { transform: translateX(20px); }
.sj-logo-dark { display: none; }

/* Wide editorial body: a readable main column and a proper right rail. */
.soakjam-knowledge-home .sj-mag-page-layout {
  width: min(1680px,calc(100% - 48px));
  max-width: none;
  grid-template-columns: minmax(0,1fr) 350px;
  gap: 36px;
}
.soakjam-knowledge-home .sj-mag-main-column { width: 100%; }
.soakjam-knowledge-home .sj-mag-sidebar {
  position: sticky;
  top: 96px;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0,1fr);
  align-items: start;
  gap: 22px;
}
.soakjam-knowledge-home .sj-mag-sidebar > .sj-ad-slot { width: 100%; }

/* Latest Knowledge: exactly two feature stories and two compact stories. */
.soakjam-knowledge-home .sj-mag-latest-grid {
  grid-template-columns: repeat(2,minmax(0,1fr));
  align-items: stretch;
  gap: 22px 28px;
}
.soakjam-knowledge-home .sj-mag-latest-card.is-feature .sj-mag-latest-media { aspect-ratio: 1.62; }
.soakjam-knowledge-home .sj-mag-latest-card.is-compact {
  min-height: 118px;
  display: grid;
  grid-template-columns: 155px minmax(0,1fr);
  align-items: stretch;
  border-width: 0 0 1px;
}
.soakjam-knowledge-home .sj-mag-latest-card.is-compact .sj-mag-latest-media {
  min-height: 118px;
  aspect-ratio: auto;
}
.soakjam-knowledge-home .sj-mag-latest-card.is-compact .sj-mag-latest-media > span { display: none; }
.soakjam-knowledge-home .sj-mag-latest-card.is-compact .sj-mag-latest-copy {
  padding: 13px 15px;
  justify-content: center;
}
.soakjam-knowledge-home .sj-mag-latest-card.is-compact h3 {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* Each domain is a magazine row of three suitably sized article cards. */
.sj-mag-domain-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 24px 20px;
}
.sj-mag-domain-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--sj-mag-line);
  background: #fff;
}
.sj-mag-domain-card-media {
  position: relative;
  display: block;
  aspect-ratio: 1.5;
  overflow: hidden;
  background: #eef0f6;
}
.sj-mag-domain-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.sj-mag-domain-card:hover .sj-mag-domain-card-media img { transform: scale(1.035); }
.sj-mag-domain-card-media > span {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 5px 8px;
  color: #fff;
  background: linear-gradient(135deg,var(--sj-tone),var(--sj-tone-2));
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.sj-mag-domain-card-copy { padding: 16px 16px 18px; }
.sj-mag-domain-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.32;
  letter-spacing: -.025em;
}
.sj-mag-domain-card h3 a:hover { color: var(--sj-tone); }
.sj-mag-domain-card .sj-mag-meta { margin-top: 10px; }

/* A real future ad position; activating its widget replaces this placeholder. */
.sj-mag-ad-reserve {
  min-height: 250px;
  margin: 0;
  padding: 22px;
  display: grid;
  place-items: center;
  border: 1px dashed #cbd2df;
  color: #7b8498;
  background:
    linear-gradient(135deg,rgba(117,72,231,.035),rgba(8,169,184,.04)),
    #f7f8fb;
  text-align: center;
}
.sj-mag-ad-reserve div { display: grid; justify-items: center; gap: 8px; }
.sj-mag-ad-reserve span {
  color: var(--sj-mag-violet);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.sj-mag-ad-reserve strong { color: #3d465b; font-size: 17px; }
.sj-mag-ad-reserve small { font-size: 9px; }

@media (max-width: 1180px) {
  .sj-header-actions { margin-left: auto; }
  .soakjam-knowledge-home .sj-mag-page-layout {
    width: calc(100% - 36px);
    grid-template-columns: minmax(0,1fr);
    gap: 46px;
  }
  .soakjam-knowledge-home .sj-mag-sidebar {
    position: static;
    top: auto;
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .soakjam-knowledge-home .sj-mag-search-widget { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .sj-mag-domain-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 680px) {
  .sj-theme-toggle { width: 46px; }
  .soakjam-knowledge-home .sj-mag-page-layout {
    width: calc(100% - 28px);
    gap: 36px;
  }
  .soakjam-knowledge-home .sj-mag-latest-grid,
  .soakjam-knowledge-home .sj-mag-sidebar,
  .sj-mag-domain-grid { grid-template-columns: minmax(0,1fr); }
  .soakjam-knowledge-home .sj-mag-search-widget { grid-column: auto; }
  .soakjam-knowledge-home .sj-mag-latest-card.is-feature .sj-mag-latest-media { aspect-ratio: 1.55; }
}

@media (max-width: 430px) {
  .soakjam-knowledge-home .sj-mag-latest-card.is-compact { grid-template-columns: 112px minmax(0,1fr); }
  .soakjam-knowledge-home .sj-mag-latest-card.is-compact .sj-mag-latest-media { min-height: 104px; }
  .soakjam-knowledge-home .sj-mag-latest-card.is-compact .sj-mag-latest-copy { padding: 11px 12px; }
}

/* Complete dark palette, selected by the visitor and remembered locally. */
html[data-sj-theme="dark"] {
  --sj-mag-ink: #f1f5ff;
  --sj-mag-copy: #b7c1d5;
  --sj-mag-muted: #8995ab;
  --sj-mag-line: #283248;
  --sj-mag-paper: #070b15;
  --sj-mag-soft: #0c1220;
  --sj-paper: #070b15;
  --sj-white: #0d1423;
  --sj-soft: #aeb8cc;
  --sj-muted: #8792aa;
  --sj-line: #2a344b;
  --sj-card: rgba(14,21,36,.96);
  color-scheme: dark;
}
html[data-sj-theme="dark"] body,
html[data-sj-theme="dark"] #sj-main-content {
  color: #eef3ff;
  background: #070b15;
}
html[data-sj-theme="dark"] .sj-logo-light { display: none; }
html[data-sj-theme="dark"] .sj-logo-dark { display: block; }
html[data-sj-theme="dark"] .sj-site-header,
html[data-sj-theme="dark"] .sj-site-header.is-scrolled {
  color: #eef3ff;
  border-color: #222c41;
  background: rgba(7,11,21,.97);
  box-shadow: 0 7px 24px rgba(0,0,0,.34);
}
html[data-sj-theme="dark"] .sj-knowledge-home-link {
  color: #9da9c0;
  border-left-color: #354058;
}
html[data-sj-theme="dark"] .sj-taxonomy-nav .sj-taxonomy-parent-link,
html[data-sj-theme="dark"] .sj-taxonomy-nav .sj-taxonomy-toggle,
html[data-sj-theme="dark"] .sj-taxonomy-nav .sj-taxonomy-caret,
html[data-sj-theme="dark"] .sj-taxonomy-search { color: #dce4f5 !important; }
html[data-sj-theme="dark"] .sj-taxonomy-nav .sj-taxonomy-panel {
  border-color: #303a50;
  background: #0e1524;
  box-shadow: 0 24px 64px rgba(0,0,0,.48);
}
html[data-sj-theme="dark"] .sj-taxonomy-panel-title small,
html[data-sj-theme="dark"] .sj-taxonomy-description { color: #929db2; }
html[data-sj-theme="dark"] .sj-taxonomy-panel-title strong { color: #f3f6ff; }
html[data-sj-theme="dark"] .sj-taxonomy-view-all {
  color: #dce4f5 !important;
  border-color: #374259;
  background: #131b2d;
}
html[data-sj-theme="dark"] .sj-taxonomy-children { border-color: #293349; }
html[data-sj-theme="dark"] .sj-taxonomy-children a {
  color: #d9e1f2;
  border-color: #303a50;
  background: #121a2a;
}
html[data-sj-theme="dark"] .sj-taxonomy-children a:hover { background: #182136; }
html[data-sj-theme="dark"] .sj-theme-toggle {
  color: #ced7e8;
  border-color: #353f55;
  background: #252d3d;
}
html[data-sj-theme="dark"] .sj-theme-toggle-track i { background: #0b1020; }
html[data-sj-theme="dark"] .sj-mag-ticker,
html[data-sj-theme="dark"] .sj-mag-topic-strip,
html[data-sj-theme="dark"] .sj-mag-page-layout,
html[data-sj-theme="dark"] .sj-mag-standard-page,
html[data-sj-theme="dark"] .sj-single-entry,
html[data-sj-theme="dark"] .sj-related-section { background: #070b15; }
html[data-sj-theme="dark"] .sj-mag-ticker { border-color: #222c40; }
html[data-sj-theme="dark"] .sj-mag-ticker-item,
html[data-sj-theme="dark"] .sj-mag-section-intro p,
html[data-sj-theme="dark"] .sj-mag-ribbon-head nav a,
html[data-sj-theme="dark"] .sj-mag-meta,
html[data-sj-theme="dark"] .sj-card-meta { color: #929eb4; }
html[data-sj-theme="dark"] .sj-mag-section-intro h2,
html[data-sj-theme="dark"] .sj-mag-latest-copy h3,
html[data-sj-theme="dark"] .sj-mag-domain-card h3,
html[data-sj-theme="dark"] .sj-post-card h3,
html[data-sj-theme="dark"] .sj-mag-popular-list h3 { color: #f2f6ff; }
html[data-sj-theme="dark"] .sj-mag-ribbon-head { border-color: #2a344a; }
html[data-sj-theme="dark"] .sj-mag-latest-card,
html[data-sj-theme="dark"] .sj-mag-domain-card,
html[data-sj-theme="dark"] .sj-post-card,
html[data-sj-theme="dark"] .sj-mag-widget,
html[data-sj-theme="dark"] .sj-mag-empty-domain {
  color: #edf2ff;
  border-color: #293349;
  background: #0d1423;
}
html[data-sj-theme="dark"] .sj-mag-latest-copy p,
html[data-sj-theme="dark"] .sj-post-card-body > p,
html[data-sj-theme="dark"] .sj-mag-empty-domain p { color: #b5bfd2; }
html[data-sj-theme="dark"] .sj-mag-child-nav,
html[data-sj-theme="dark"] .sj-mag-404-domains {
  border-color: #293349;
  background: #0d1423;
  box-shadow: 0 18px 45px rgba(0,0,0,.24);
}
html[data-sj-theme="dark"] .sj-mag-child-nav a {
  color: #cbd5e7;
  background: #151d2e;
}
html[data-sj-theme="dark"] .sj-mag-child-nav small,
html[data-sj-theme="dark"] .sj-mag-404-domains small { color: #8f9bb1; }
html[data-sj-theme="dark"] .sj-mag-404-domains a { border-color: #293349; }
html[data-sj-theme="dark"] .sj-pagination .page-numbers {
  color: #dbe4f5;
  border-color: #354158;
  background: #111929;
}
html[data-sj-theme="dark"] .sj-pagination .current {
  color: #fff;
  border-color: #7650ed;
  background: linear-gradient(135deg,#7548e7,#315cff);
}
html[data-sj-theme="dark"] .sj-mag-widget-title { background: linear-gradient(90deg,#202a3e,#313b52); }
html[data-sj-theme="dark"] .sj-mag-popular-list li { border-color: #293349; }
html[data-sj-theme="dark"] .sj-mag-search-widget .sj-search-form,
html[data-sj-theme="dark"] .sj-search-form {
  border-color: #323d55;
  background: #111929;
}
html[data-sj-theme="dark"] .sj-ad-slot .widget {
  border-color: #303b52;
  background: #0d1423;
}
html[data-sj-theme="dark"] input,
html[data-sj-theme="dark"] textarea,
html[data-sj-theme="dark"] select {
  color: #edf2ff;
  border-color: #354058;
  background: #101827;
}
html[data-sj-theme="dark"] input::placeholder,
html[data-sj-theme="dark"] textarea::placeholder { color: #7f8ba2; }
html[data-sj-theme="dark"] .sj-mag-ad-reserve {
  color: #8e9ab1;
  border-color: #3a455d;
  background:
    linear-gradient(135deg,rgba(117,72,231,.09),rgba(8,169,184,.075)),
    #0b1220;
}
html[data-sj-theme="dark"] .sj-mag-ad-reserve strong { color: #e7edfa; }
html[data-sj-theme="dark"] .sj-aside-orbit-card {
  border-color: #303b52;
  background:
    radial-gradient(circle at 82% 12%,rgba(8,169,184,.13),transparent 30%),
    radial-gradient(circle at 10% 90%,rgba(117,72,231,.13),transparent 35%),
    #0e1626;
}
html[data-sj-theme="dark"] .sj-aside-orbit-heading strong { color: #f3f6ff; }
html[data-sj-theme="dark"] .sj-aside-orbit-card > p { color: #9eabc1; }
html[data-sj-theme="dark"] .sj-mag-archive-hero,
html[data-sj-theme="dark"] .sj-mag-tools-band { border-color: #2c3650; }

/* Dark article and archive surfaces without changing their established widths. */
html[data-sj-theme="dark"] .sj-article-content,
html[data-sj-theme="dark"] .sj-toc-card,
html[data-sj-theme="dark"] .sj-aside-card,
html[data-sj-theme="dark"] .sj-source-box,
html[data-sj-theme="dark"] .sj-related-tool,
html[data-sj-theme="dark"] .sj-editorial-review,
html[data-sj-theme="dark"] .sj-author-box,
html[data-sj-theme="dark"] .sj-correction-box,
html[data-sj-theme="dark"] .sj-post-navigation a,
html[data-sj-theme="dark"] .sj-comments-list li {
  color: #eaf0fc;
  border-color: #2d3850;
  background: #0d1423;
  box-shadow: 0 18px 48px rgba(0,0,0,.2);
}
html[data-sj-theme="dark"] .sj-article-content p,
html[data-sj-theme="dark"] .sj-article-content li,
html[data-sj-theme="dark"] .sj-article-content h2,
html[data-sj-theme="dark"] .sj-article-content h3,
html[data-sj-theme="dark"] .sj-article-content h4 { color: #dce4f3; }
html[data-sj-theme="dark"] .sj-article-content h2,
html[data-sj-theme="dark"] .sj-article-content h3,
html[data-sj-theme="dark"] .sj-article-content h4,
html[data-sj-theme="dark"] .sj-aside-card > strong,
html[data-sj-theme="dark"] .sj-entry-facts > strong,
html[data-sj-theme="dark"] .sj-post-navigation strong,
html[data-sj-theme="dark"] .sj-author-box h2,
html[data-sj-theme="dark"] .sj-correction-box strong,
html[data-sj-theme="dark"] .sj-source-head h2,
html[data-sj-theme="dark"] .sj-editorial-review h2 { color: #f3f6ff; }
html[data-sj-theme="dark"] .sj-article-content > p:first-of-type::first-letter { color: #f2f6ff; }
html[data-sj-theme="dark"] .sj-article-content a,
html[data-sj-theme="dark"] .sj-source-list a,
html[data-sj-theme="dark"] .sj-author-box a { color: #8fb0ff; }
html[data-sj-theme="dark"] .sj-article-content figcaption,
html[data-sj-theme="dark"] .sj-entry-facts dt,
html[data-sj-theme="dark"] .sj-popular-mini-list small,
html[data-sj-theme="dark"] .sj-post-navigation span { color: #8e9ab1; }
html[data-sj-theme="dark"] .sj-entry-facts dd,
html[data-sj-theme="dark"] .sj-popular-mini-list > a,
html[data-sj-theme="dark"] .sj-source-list li,
html[data-sj-theme="dark"] .sj-review-facts span { color: #c7d1e4; }
html[data-sj-theme="dark"] .sj-review-facts b { color: #eef3ff; }
html[data-sj-theme="dark"] .sj-share > strong { color: #edf2ff; }
html[data-sj-theme="dark"] .sj-share-buttons a,
html[data-sj-theme="dark"] .sj-share-buttons button {
  color: #dce5f7;
  border-color: #3a465e;
  background: #141d2e;
}
html[data-sj-theme="dark"] .sj-share-status { color: #99a6bd; }
html[data-sj-theme="dark"] .sj-article-content blockquote {
  border-color: #f05c78;
  background: #121a29;
}
html[data-sj-theme="dark"] .sj-article-content blockquote p { color: #f0f3fa; }
html[data-sj-theme="dark"] .sj-article-content code { color: #d9e4ff; background: #1b2539; }
html[data-sj-theme="dark"] .sj-article-content pre { background: #030711; }
html[data-sj-theme="dark"] .sj-article-content th { background: #172033; }
html[data-sj-theme="dark"] .sj-article-content th,
html[data-sj-theme="dark"] .sj-article-content td { border-color: #344057; }
html[data-sj-theme="dark"] .sj-toc-card li a { color: #aebbd1; }
html[data-sj-theme="dark"] .sj-toc-card li a:hover { color: #f3f6ff; background: #182136; }
html[data-sj-theme="dark"] .sj-toc-card li a.is-active {
  color: #ff7890;
  background: linear-gradient(90deg,rgba(239,83,111,.15),rgba(117,72,231,.12));
}
html[data-sj-theme="dark"] .sj-toc-card .sj-toc-top {
  color: #cbd7ed;
  border-color: #303b52;
  background: #111929;
}
html[data-sj-theme="dark"] .sj-entry-facts dl div,
html[data-sj-theme="dark"] .sj-review-facts span,
html[data-sj-theme="dark"] .sj-article-tags,
html[data-sj-theme="dark"] .sj-comments,
html[data-sj-theme="dark"] .sj-popular-mini-list > a { border-color: #303b52; }
html[data-sj-theme="dark"] .sj-source-box,
html[data-sj-theme="dark"] .sj-editorial-review { background: linear-gradient(145deg,#0d1423,#111a2b); }
html[data-sj-theme="dark"] .sj-editorial-review > div > p:not(.sj-review-label),
html[data-sj-theme="dark"] .sj-author-box p,
html[data-sj-theme="dark"] .sj-correction-box p { color: #aab6cb; }
html[data-sj-theme="dark"] .sj-article-tags a {
  color: #b9c6dc;
  border-color: #354158;
  background: #121a2a;
}
html[data-sj-theme="dark"] .sj-post-navigation a:hover { background: #151f32; }
html[data-sj-theme="dark"] .sj-related-section .sj-section-heading h2 { color: #f2f6ff; }

@media (max-width: 1180px) {
  html[data-sj-theme="dark"] .sj-taxonomy-nav { background: #0b1220; }
  html[data-sj-theme="dark"] .sj-nav-wing > .sj-taxonomy-item,
  html[data-sj-theme="dark"] .sj-nav-wing > .sj-header-search-item,
  html[data-sj-theme="dark"] .sj-nav-wing > .sj-header-tools-item { border-color: #283349; }
  html[data-sj-theme="dark"] .sj-taxonomy-toggle { border-color: #2c374e; }
}

@media (prefers-reduced-motion: reduce) {
  .sj-theme-toggle-track i { transition: none; }
}

/* ========================================================================
   SOAKJAM Knowledge 2.3.1 — useful full-height editorial rails.
   ======================================================================== */

/* Compact utility links keep the end of the homepage rail useful. */
.sj-mag-quick-tools {
  display: grid;
  gap: 9px;
}
.sj-mag-quick-tools a {
  min-width: 0;
  padding: 11px;
  display: grid;
  grid-template-columns: 42px minmax(0,1fr);
  grid-template-rows: auto auto;
  column-gap: 11px;
  align-items: center;
  border: 1px solid #e0e5ef;
  background: linear-gradient(135deg,#fafbff,#f4f6fc);
}
.sj-mag-quick-tools a > span {
  grid-row: 1 / 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg,var(--sj-mag-violet),var(--sj-mag-blue));
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .04em;
}
.sj-mag-quick-tools a:nth-child(2) > span { background: linear-gradient(135deg,#ff4b65,#8b4fe7); }
.sj-mag-quick-tools a:nth-child(3) > span { background: linear-gradient(135deg,#08a9b8,#315cff); }
.sj-mag-quick-tools strong {
  align-self: end;
  color: #27324d;
  font-size: 11px;
  line-height: 1.2;
}
.sj-mag-quick-tools small {
  align-self: start;
  margin-top: 3px;
  color: #7b8497;
  font-size: 8px;
  line-height: 1.35;
}
.sj-mag-quick-tools a:hover,
.sj-mag-quick-tools a:focus-visible {
  border-color: #aab6dc;
  transform: translateY(-1px);
}

/* The homepage rail fills the visible page height and scrolls independently. */
@media (min-width: 1181px) {
  .soakjam-knowledge-home .sj-mag-sidebar {
    position: sticky;
    top: 96px;
    height: calc(100vh - 112px);
    height: calc(100svh - 112px);
    max-height: none;
    padding: 0 8px 10px 0;
    align-content: start;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(75,91,151,.4) transparent;
  }
  .admin-bar.soakjam-knowledge-home .sj-mag-sidebar {
    top: 128px;
    height: calc(100vh - 144px);
    height: calc(100svh - 144px);
  }
  .soakjam-knowledge-home .sj-mag-sidebar::-webkit-scrollbar { width: 6px; }
  .soakjam-knowledge-home .sj-mag-sidebar::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(75,91,151,.36);
  }
}

html[data-sj-theme="dark"] .sj-mag-quick-tools a {
  border-color: #303b52;
  background: linear-gradient(135deg,#111929,#0d1423);
}
html[data-sj-theme="dark"] .sj-mag-quick-tools strong { color: #eef3ff; }
html[data-sj-theme="dark"] .sj-mag-quick-tools small { color: #929eb4; }
html[data-sj-theme="dark"] .soakjam-knowledge-home .sj-mag-sidebar,
html[data-sj-theme="dark"] .sj-article-aside {
  scrollbar-color: rgba(132,148,207,.48) transparent;
}

/* ========================================================================
   SOAKJAM Knowledge 2.3.2 — focused, continuously useful homepage rail.
   The repeated category directory is intentionally removed from the rail.
   ======================================================================== */
.sj-mag-recent-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sj-mag-recent-list li {
  min-height: 78px;
  padding: 11px 0;
  display: grid;
  grid-template-columns: 88px minmax(0,1fr);
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--sj-mag-line);
}
.sj-mag-recent-list li:first-child { padding-top: 0; }
.sj-mag-recent-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.sj-mag-recent-thumb {
  height: 64px;
  display: block;
  overflow: hidden;
  background: #eef0f6;
}
.sj-mag-recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sj-mag-recent-list h3 { margin: 0; font-size: 11px; line-height: 1.36; }
.sj-mag-recent-list h3 a:hover { color: var(--sj-mag-blue); }
.sj-mag-recent-list small { display: block; margin-top: 6px; color: #8d93a2; font-size: 7px; }

.sj-mag-reader-actions { display: grid; gap: 8px; }
.sj-mag-reader-actions a {
  min-width: 0;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 28px;
  grid-template-rows: auto auto;
  column-gap: 10px;
  border: 1px solid #e0e5ef;
  background: linear-gradient(135deg,#fbfcff,#f3f6fc);
}
.sj-mag-reader-actions strong {
  color: #27324d;
  font-size: 11px;
  line-height: 1.25;
}
.sj-mag-reader-actions small {
  margin-top: 3px;
  color: #7b8497;
  font-size: 8px;
  line-height: 1.35;
}
.sj-mag-reader-actions span {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg,var(--sj-mag-violet),var(--sj-mag-blue));
  font-size: 13px;
  font-weight: 900;
}
.sj-mag-reader-actions a:nth-child(2) span { background: linear-gradient(135deg,#ff4b65,#8b4fe7); }
.sj-mag-reader-actions a:nth-child(3) span { background: linear-gradient(135deg,#08a9b8,#315cff); }
.sj-mag-reader-actions a:hover,
.sj-mag-reader-actions a:focus-visible { border-color: #9eadd7; transform: translateY(-1px); }

@media (min-width: 1181px) {
  .soakjam-knowledge-home .sj-mag-sidebar {
    box-sizing: border-box;
    padding: 10px 7px 12px 10px;
    border: 1px solid #e0e5ef;
    background:
      linear-gradient(rgba(76,91,162,.035) 1px,transparent 1px),
      linear-gradient(90deg,rgba(76,91,162,.035) 1px,transparent 1px),
      linear-gradient(145deg,#fbfcff,#f5f7fc);
    background-size: 30px 30px,30px 30px,auto;
    box-shadow: 0 18px 48px rgba(23,35,82,.07);
  }
}

html[data-sj-theme="dark"] .sj-mag-recent-list li { border-color: #303b52; }
html[data-sj-theme="dark"] .sj-mag-reader-actions a {
  border-color: #303b52;
  background: linear-gradient(135deg,#111929,#0d1423);
}
html[data-sj-theme="dark"] .sj-mag-reader-actions strong { color: #eef3ff; }
html[data-sj-theme="dark"] .sj-mag-reader-actions small,
html[data-sj-theme="dark"] .sj-mag-recent-list small { color: #929eb4; }
@media (min-width: 1181px) {
  html[data-sj-theme="dark"] .soakjam-knowledge-home .sj-mag-sidebar {
    border-color: #303b52;
    background:
      linear-gradient(rgba(112,128,192,.055) 1px,transparent 1px),
      linear-gradient(90deg,rgba(112,128,192,.055) 1px,transparent 1px),
      linear-gradient(145deg,#0b1220,#0d1423);
    background-size: 30px 30px,30px 30px,auto;
  }
}

/* ========================================================================
   SOAKJAM Knowledge 2.3.6 — dynamic lead, masthead search and safe rails.
   ======================================================================== */

/* Search sits immediately after the four category controls. */
.sj-header-search-toggle {
  min-width: 86px;
  height: 42px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #d9dfeb;
  border-radius: 999px;
  color: #26324f;
  background: #fff;
  box-shadow: 0 7px 18px rgba(24,37,83,.07);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.sj-header-search-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}
.sj-header-search-toggle:hover,
.sj-header-search-toggle:focus-visible,
.sj-header-search-toggle[aria-expanded="true"] {
  color: #fff;
  border-color: var(--sj-mag-blue);
  background: linear-gradient(135deg,var(--sj-mag-violet),var(--sj-mag-blue));
  box-shadow: 0 10px 24px rgba(66,75,205,.22);
}
.sj-header-search-toggle:focus-visible,
.sj-header-search-close:focus-visible { outline: 3px solid rgba(49,94,232,.28); outline-offset: 2px; }
.sj-header-actions { margin-left: 5px; gap: 7px; }

.sj-header-search-panel {
  position: absolute;
  z-index: 1490;
  top: 100%;
  right: 0;
  left: 0;
  border-top: 1px solid #e5e8f0;
  border-bottom: 1px solid #dce1ec;
  background:
    radial-gradient(circle at 88% 0%,rgba(8,169,184,.1),transparent 30%),
    radial-gradient(circle at 8% 100%,rgba(117,72,231,.08),transparent 32%),
    rgba(255,255,255,.985);
  box-shadow: 0 24px 50px rgba(15,25,62,.14);
  backdrop-filter: blur(18px);
}
.sj-header-search-panel[hidden] { display: none !important; }
.sj-header-search-panel-inner {
  width: min(1040px,calc(100% - 48px));
  min-height: 112px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px minmax(0,1fr) 42px;
  align-items: center;
  gap: 22px;
}
.sj-header-search-copy span {
  display: block;
  color: var(--sj-mag-coral);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.sj-header-search-copy strong {
  display: block;
  margin-top: 5px;
  color: var(--sj-mag-ink);
  font-size: 17px;
  line-height: 1.25;
}
.sj-header-search-panel .sj-search-form {
  padding: 5px;
  border-color: #dce2ed;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(26,38,84,.08);
}
.sj-header-search-panel .sj-search-form input[type="search"] { min-height: 45px; }
.sj-header-search-panel .sj-search-form button {
  min-height: 45px;
  border-radius: 7px;
  background: linear-gradient(135deg,var(--sj-mag-violet),var(--sj-mag-blue));
  font-size: 10px;
  text-transform: uppercase;
}
.sj-header-search-close {
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid #dce2ed;
  border-radius: 50%;
  color: #59647b;
  background: #fff;
  font-size: 24px;
  line-height: 1;
}
.sj-header-search-close:hover { color: #fff; border-color: var(--sj-mag-coral); background: var(--sj-mag-coral); }

/* The large recent-story panel is a contained, keyboard-operable slideshow. */
.sj-mag-primary-slider {
  position: relative;
  min-width: 0;
  min-height: clamp(500px,31.5vw,620px);
  overflow: hidden;
  isolation: isolate;
  background: #101831;
}
.sj-mag-hero-slide-stage { position: absolute; inset: 0; }
.sj-mag-hero-slide {
  position: absolute;
  inset: 0;
  min-height: 100% !important;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.012);
  transition: opacity .55s ease,transform .8s ease,visibility .55s ease;
}
.sj-mag-hero-slide.is-active {
  z-index: 1;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}
.sj-mag-primary-story h1,
.sj-mag-primary-story h2 {
  max-width: 780px;
  margin: 13px 0 12px;
  font-size: clamp(36px,3vw,56px);
  line-height: 1.03;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.sj-mag-primary-story h2 a { color: #fff; }
.sj-mag-primary-story h2 a:hover { color: #dce3ff; }
.sj-mag-hero-controls {
  position: absolute;
  z-index: 6;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sj-mag-hero-arrows { display: flex; gap: 4px; }
.sj-mag-hero-arrows button {
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.38);
  color: #fff;
  background: rgba(7,13,36,.55);
  backdrop-filter: blur(10px);
  font-size: 24px;
  line-height: 1;
}
.sj-mag-hero-arrows button:hover,
.sj-mag-hero-arrows button:focus-visible { border-color: transparent; background: var(--sj-mag-blue); }
.sj-mag-hero-dots {
  padding: 7px 9px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(7,13,36,.52);
  backdrop-filter: blur(10px);
}
.sj-mag-hero-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.52);
  transition: width .2s ease,background-color .2s ease;
}
.sj-mag-hero-dots button.is-active { width: 22px; background: linear-gradient(90deg,var(--sj-mag-coral),var(--sj-mag-blue)); }
.sj-mag-hero-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.sj-mag-domain-lead { border-bottom: 3px solid var(--sj-tone); }
.sj-mag-domain-lead .sj-mag-topic { background: linear-gradient(135deg,var(--sj-tone),var(--sj-tone-2)); }

/* Slightly taller masthead and lead image, with less unused page spacing. */
@media (min-width: 1181px) {
  .sj-site-header,
  .sj-site-header.is-scrolled,
  .sj-header-inner,
  .sj-taxonomy-nav,
  .sj-nav-wing-primary,
  .sj-taxonomy-row { min-height: 88px; }
  .sj-main-brand-link img,
  .sj-main-brand-link .custom-logo { width: 154px; max-height: 50px; }
  .sj-header-inner { gap: 17px; }
  .sj-taxonomy-nav { margin-left: auto; }
  .sj-nav-wing-primary { gap: 2px; }

  .sj-mag-hero-inner,
  .sj-mag-primary-story { min-height: clamp(500px,31.5vw,620px); }

  .soakjam-knowledge-home .sj-mag-page-layout {
    width: min(1740px,calc(100% - 24px));
    grid-template-columns: minmax(0,1fr) 330px;
    gap: 20px;
  }
  .soakjam-knowledge-home .sj-mag-sidebar {
    top: 108px;
    height: calc(100vh - 124px);
    height: calc(100dvh - 124px);
    grid-auto-rows: max-content;
    gap: 12px;
  }
  .admin-bar.soakjam-knowledge-home .sj-mag-sidebar {
    top: 140px;
    height: calc(100vh - 156px);
    height: calc(100dvh - 156px);
  }
}

.sj-mag-topic-strip { padding-top: 34px; padding-bottom: 18px; }
.sj-mag-section-intro { margin-bottom: 15px; }
.sj-mag-page-layout { padding-top: 32px; padding-bottom: 58px; }
.sj-mag-ribbon-head { margin-bottom: 18px; }
.sj-mag-latest-grid { gap: 17px; }
.sj-mag-domain-section { margin-top: 42px; }

/* Prevent fixed-height sidebar grids from compressing the diagram's row. */
.sj-mag-sidebar,
.sj-article-aside { grid-auto-rows: max-content; }
.sj-mag-sidebar > *,
.sj-article-aside > * { min-height: min-content; }
.sj-aside-orbit-card {
  position: relative;
  isolation: isolate;
  overflow: hidden !important;
}
.sj-mag-platform-widget { min-height: 292px; padding: 16px; }
.sj-mag-sidebar .sj-aside-orbit {
  width: min(176px,100%) !important;
  height: auto !important;
  margin: 9px auto 4px;
}
.sj-article-aside .sj-aside-orbit {
  width: min(158px,100%) !important;
  height: auto !important;
  margin: 9px auto 4px;
}
.sj-mag-sidebar .sj-aside-orbit-card > p,
.sj-article-aside .sj-aside-orbit-card > p { margin-top: 3px; line-height: 1.5; }

/* Wider article body with tighter, still-independent navigation rails. */
@media (min-width: 1320px) {
  .sj-reading-layout {
    width: min(1640px,calc(100% - 20px));
    margin-top: 36px;
    grid-template-columns: 140px minmax(0,1fr) 255px;
    gap: 10px;
  }
  .sj-toc-column,
  .sj-article-aside { top: 108px; height: calc(100vh - 124px); height: calc(100dvh - 124px); }
  .admin-bar .sj-toc-column,
  .admin-bar .sj-article-aside { top: 140px; height: calc(100vh - 156px); height: calc(100dvh - 156px); }
  .sj-article-aside { grid-auto-rows: max-content; gap: 10px; }
  .sj-article-aside .sj-aside-card { padding: 15px; }
  .sj-article-content { padding: 44px 48px 54px; }
  .sj-article-content h2,
  .sj-article-content h3 { scroll-margin-top: 122px; }
}
@media (min-width: 1600px) {
  .sj-reading-layout {
    grid-template-columns: 170px minmax(0,1120px) 286px;
    gap: 14px;
  }
}

html[data-sj-theme="dark"] .sj-header-search-toggle {
  color: #dce5f8;
  border-color: #34415a;
  background: #111a2b;
  box-shadow: none;
}
html[data-sj-theme="dark"] .sj-header-search-toggle:hover,
html[data-sj-theme="dark"] .sj-header-search-toggle:focus-visible,
html[data-sj-theme="dark"] .sj-header-search-toggle[aria-expanded="true"] {
  color: #fff;
  border-color: var(--sj-mag-blue);
  background: linear-gradient(135deg,var(--sj-mag-violet),var(--sj-mag-blue));
}
html[data-sj-theme="dark"] .sj-header-search-panel {
  border-color: #2d3950;
  background:
    radial-gradient(circle at 88% 0%,rgba(8,169,184,.12),transparent 30%),
    radial-gradient(circle at 8% 100%,rgba(117,72,231,.12),transparent 32%),
    rgba(9,15,27,.985);
  box-shadow: 0 24px 54px rgba(0,0,0,.4);
}
html[data-sj-theme="dark"] .sj-header-search-copy strong { color: #f2f5ff; }
html[data-sj-theme="dark"] .sj-header-search-panel .sj-search-form,
html[data-sj-theme="dark"] .sj-header-search-close {
  color: #dce5f8;
  border-color: #34415a;
  background: #111a2b;
}

@media (max-width: 1180px) {
  .sj-header-search-toggle { min-width: 42px; width: 42px; padding: 0; }
  .sj-header-search-toggle > span { display: none; }
  .sj-header-search-panel-inner { width: calc(100% - 36px); }
  .sj-mag-primary-slider { min-height: 430px; }
  .sj-mag-primary-story { min-height: 430px !important; }
  .sj-mag-secondary-grid { grid-template-rows: repeat(2,minmax(230px,1fr)); }
}

@media (max-width: 680px) {
  .sj-header-search-panel-inner {
    width: calc(100% - 28px);
    min-height: 0;
    padding: 16px 0;
    grid-template-columns: minmax(0,1fr) 38px;
    gap: 8px;
  }
  .sj-header-search-copy { display: none; }
  .sj-header-search-panel .sj-search-form { min-width: 0; }
  .sj-header-search-panel .sj-search-form input[type="search"] { min-width: 0; padding-right: 6px; padding-left: 9px; font-size: 12px; }
  .sj-header-search-panel .sj-search-form button { padding: 0 10px; font-size: 8px; }
  .sj-mag-primary-slider,
  .sj-mag-primary-story { min-height: 390px !important; }
  .sj-mag-primary-story h1,
  .sj-mag-primary-story h2 { font-size: 30px; }
  .sj-mag-hero-controls { top: 12px; right: 12px; }
  .sj-mag-hero-arrows button { width: 34px; height: 34px; }
  .sj-mag-hero-dots { display: none; }
  .sj-mag-secondary-story:nth-child(n+3) { display: block; }
  .sj-mag-secondary-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .sj-mag-secondary-story { min-height: 220px; }
  .sj-mag-topic-strip { padding-top: 28px; }
  .sj-mag-page-layout { padding-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .sj-mag-hero-slide,
  .sj-mag-hero-dots button { transition: none !important; }
}

/* ========================================================================
   SOAKJAM Knowledge 2.3.3 — natural homepage rail and safe orbit sizing.
   ======================================================================== */
@media (min-width: 1181px) {
  .soakjam-knowledge-home .sj-mag-sidebar {
    position: sticky;
    top: var(--sj-rail-sticky-top,96px);
    box-sizing: border-box;
    height: auto;
    max-height: none;
    padding: 0;
    align-self: start;
    align-content: start;
    overflow: visible;
    overscroll-behavior: auto;
    scrollbar-gutter: auto;
    border: 0;
    background: none;
    box-shadow: none;
  }
  .admin-bar.soakjam-knowledge-home .sj-mag-sidebar {
    top: var(--sj-rail-sticky-top,128px);
    height: auto;
    max-height: none;
  }
  html[data-sj-theme="dark"] .soakjam-knowledge-home .sj-mag-sidebar {
    border: 0;
    background: none;
    box-shadow: none;
  }
}

/* Keep both compact diagrams completely inside their cards at every rail size. */
.sj-mag-sidebar .sj-aside-orbit {
  width: min(216px,100%) !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  margin: 17px auto 8px;
}
.sj-article-aside .sj-aside-orbit {
  width: min(188px,100%) !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  margin: 16px auto 8px;
}
.sj-mag-sidebar .sj-aside-orbit-ring-outer,
.sj-article-aside .sj-aside-orbit-ring-outer {
  box-sizing: border-box;
  width: 88% !important;
  height: 88% !important;
}
.sj-mag-sidebar .sj-aside-orbit-ring-inner,
.sj-article-aside .sj-aside-orbit-ring-inner {
  box-sizing: border-box;
  width: 60% !important;
  height: 60% !important;
}
.sj-mag-sidebar .sj-aside-orbit-core,
.sj-article-aside .sj-aside-orbit-core {
  box-sizing: border-box;
  width: 40% !important;
  height: 40% !important;
  padding: 9px !important;
  grid-template-rows: minmax(0,1fr) auto;
  gap: 2px;
}
.sj-mag-sidebar .sj-aside-orbit-core img,
.sj-article-aside .sj-aside-orbit-core img {
  width: min(32px,46%);
  height: auto;
  max-height: 32px;
}
.sj-mag-sidebar .sj-aside-orbit-core strong,
.sj-article-aside .sj-aside-orbit-core strong {
  font-size: 7px;
  line-height: 1;
}
.sj-mag-sidebar .sj-aside-orbit-tools,
.sj-article-aside .sj-aside-orbit-tools {
  top: 2px !important;
  right: auto !important;
  bottom: auto !important;
  left: 50% !important;
  max-width: calc(100% - 24px);
  padding: 7px 11px !important;
  overflow: hidden;
  font-size: 7.5px;
  line-height: 1;
  text-overflow: ellipsis;
  transform: translateX(-50%) !important;
}
.sj-article-aside .sj-aside-orbit-card { overflow: hidden; }

@media (max-width: 1319px) {
  .sj-article-aside .sj-aside-orbit { width: min(216px,100%) !important; }
}

/* ========================================================================
   SOAKJAM Knowledge 2.3.4 — pinned homepage sidebar.

   The complete rail stays beside the homepage while the article grids move.
   Only the rail's own useful panels scroll when they exceed the viewport.
   ======================================================================== */
@media (min-width: 1181px) {
  .soakjam-knowledge-home .sj-mag-sidebar {
    position: sticky;
    top: 96px;
    box-sizing: border-box;
    height: calc(100vh - 112px);
    height: calc(100dvh - 112px);
    max-height: none;
    min-height: 0;
    padding: 10px 7px 12px 10px;
    align-self: start;
    align-content: start;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: auto;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(75,91,151,.4) transparent;
    border: 1px solid #e0e5ef;
    border-radius: 18px;
    background:
      linear-gradient(rgba(76,91,162,.035) 1px,transparent 1px),
      linear-gradient(90deg,rgba(76,91,162,.035) 1px,transparent 1px),
      linear-gradient(145deg,#fbfcff,#f5f7fc);
    background-size: 30px 30px,30px 30px,auto;
    box-shadow: 0 18px 48px rgba(23,35,82,.07);
  }
  .admin-bar.soakjam-knowledge-home .sj-mag-sidebar {
    top: 128px;
    height: calc(100vh - 144px);
    height: calc(100dvh - 144px);
  }
  .soakjam-knowledge-home .sj-mag-sidebar::-webkit-scrollbar { width: 6px; }
  .soakjam-knowledge-home .sj-mag-sidebar::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(75,91,151,.36);
  }
  html[data-sj-theme="dark"] .soakjam-knowledge-home .sj-mag-sidebar {
    border-color: #303b52;
    background:
      linear-gradient(rgba(112,128,192,.055) 1px,transparent 1px),
      linear-gradient(90deg,rgba(112,128,192,.055) 1px,transparent 1px),
      linear-gradient(145deg,#0b1220,#0d1423);
    background-size: 30px 30px,30px 30px,auto;
    box-shadow: 0 18px 52px rgba(0,0,0,.22);
    scrollbar-color: rgba(132,148,207,.48) transparent;
  }
}

/* 2.3.6 final rail guard: these declarations must follow legacy rail layers. */
.sj-mag-sidebar,
.sj-article-aside { grid-auto-rows: max-content; }
.sj-aside-orbit-card { position: relative; isolation: isolate; overflow: hidden !important; }
.sj-mag-platform-widget { min-height: 292px; padding: 16px; }
.sj-mag-sidebar .sj-aside-orbit {
  width: min(176px,100%) !important;
  height: auto !important;
  margin: 9px auto 4px;
}
.sj-article-aside .sj-aside-orbit {
  width: min(158px,100%) !important;
  height: auto !important;
  margin: 9px auto 4px;
}

@media (min-width: 1181px) {
  .soakjam-knowledge-home .sj-mag-sidebar {
    top: 108px;
    height: calc(100vh - 124px);
    height: calc(100dvh - 124px);
    grid-auto-rows: max-content;
    gap: 12px;
  }
  .admin-bar.soakjam-knowledge-home .sj-mag-sidebar {
    top: 140px;
    height: calc(100vh - 156px);
    height: calc(100dvh - 156px);
  }
}
