:where(.sjl-card, .sjl-band, .sjl-panel, .sjl-sticky, .sjl-related-card, .sjl-receipt, .sjl-native-topic) {
  --sjl-font: var(--font-sans, "Swell Geist", Arial, system-ui, sans-serif);
  --sjl-ink: var(--ink, #07133f);
  --sjl-violet: var(--foundation-purple, #512888);
  --sjl-muted: #465670;
  --sjl-border: #d9dfef;
  box-sizing: border-box;
  font-family: var(--sjl-font);
  text-align: left;
  color: var(--sjl-ink);
}

/* Match the journal's care sidebar. Scope text rules to the component because
   the article's editorial styles also target paragraphs and links inside it. */
:is(#swell-journal .sjl-card, .sjl-card, #swell-journal .sjl-band, .sjl-band) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 1rem;
  margin: clamp(1.75rem, 3vw, 2.5rem) 0;
  padding: clamp(1.125rem, .8rem + 1.8vw, 2rem);
  border: 1px solid var(--sjl-border);
  border-radius: 20px;
  background: #fffdf2;
  text-align: start;
}

:is(#swell-journal .sjl-band, .sjl-band) {
  gap: .75rem;
  background: #f6f3fb;
}

/* The standard editorial CTA also appears outside the monetized pilot. */
#swell-journal .sj-readeraside .sj-care-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  align-content: start;
  width: 100%;
  min-width: 0;
  margin: 1.375rem 0 0;
  padding: clamp(1.125rem, .9rem + 1vw, 1.5rem);
  border: 1px solid #d9dfef;
  border-radius: 20px;
  background: #fffdf2;
  color: var(--ink, #07133f);
  font-family: var(--font-sans, "Swell Geist", Arial, sans-serif);
  text-align: start;
}
#swell-journal .sj-readeraside .sj-care-note h3 {
  margin: 0 0 .45rem;
  color: var(--ink, #07133f);
  font-size: clamp(1.25rem, 1.1rem + .4vw, 1.4375rem);
  font-weight: 750;
  line-height: 1.24;
  letter-spacing: -.025em;
  text-wrap: pretty;
}
#swell-journal .sj-readeraside .sj-care-note p {
  margin: 0 0 1rem;
  color: #152440;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
}
#swell-journal .sj-readeraside .sj-care-note .sj-read {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: .125rem 0 0;
  padding: .25rem 0;
  color: var(--foundation-purple, #512888);
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: .18em;
}
#swell-journal .sj-readeraside .sj-care-note small {
  width: 100%;
  margin: .375rem 0 0;
  padding-top: .8rem;
  border-top: 1px solid #d9dfef;
  color: #465670;
  font-size: .8125rem;
  line-height: 1.55;
}
#swell-journal .sj-care-note a:focus-visible,
#swell-journal .sj-source-copy a.sj-cta-link:focus-visible {
  outline: 3px solid #1648b2;
  outline-offset: 3px;
}

@media (max-width: 800px) {
  /* The contents list stays above the article. Its existing care card follows
     the article in the same column, using a single set of real links. */
  #swell-journal .sj-readerbody > .sj-readeraside { display: contents; }
  #swell-journal .sj-readeraside > .sj-contents { order: -1; width: 100%; }
  #swell-journal .sj-readeraside > .sj-care-note { order: 1; margin-top: 1.5rem; }
  #swell-journal .sj-readerbody:has(.sjl-card) .sj-readeraside .sj-care-note { display: none; }
}

@media (max-width: 480px) {
  #swell-journal .sj-readeraside .sj-care-note .sj-btn { width: 100%; }
}

.sjl-card-copy {
  display: grid;
  gap: .45rem;
  min-width: 0;
}

:is(#swell-journal .sjl-card, .sjl-card, #swell-journal .sjl-band, .sjl-band) .sjl-title,
.sjl-panel .sjl-heading {
  margin: 0;
  color: var(--sjl-ink);
  font: 750 clamp(1.25rem, 1.1rem + .5vw, 1.5rem)/1.24 var(--sjl-font);
  letter-spacing: -.025em;
  text-align: start;
  text-transform: none;
  text-wrap: pretty;
}

:is(#swell-journal .sjl-band, .sjl-band) .sjl-title {
  font-size: clamp(1.4rem, 1.15rem + .85vw, 2rem);
}

:is(#swell-journal .sjl-card, .sjl-card, #swell-journal .sjl-band, .sjl-band) .sjl-body,
.sjl-panel .sjl-body {
  max-width: 64ch;
  margin: 0;
  font: 400 1rem/1.55 var(--sjl-font);
  color: #152440;
}

.sjl-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
}

.sjl-panel .sjl-actions { margin-top: .8rem; }

#swell-journal .sj-readeraside .sj-care-note a.sj-btn,
#swell-journal .sj-readerbody .sj-source-copy a.sj-cta-link,
#swell-journal :is(.sjl-actions, .sj-care-note) a.sjl-btn[data-cta-unit],
a.sjl-btn, .sjl-receipt a.sjl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  max-width: 100%;
  padding: .72rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 16px;
  background: var(--foundation-purple, #512888);
  color: white;
  font: 700 .9375rem/1.35 var(--font-sans, "Swell Geist", Arial, system-ui, sans-serif);
  text-decoration: none;
  text-align: center;
  text-transform: none;
  letter-spacing: 0;
  white-space: normal;
  box-shadow: none;
}

#swell-journal .sj-readeraside .sj-care-note a.sj-btn:hover,
#swell-journal .sj-readerbody .sj-source-copy a.sj-cta-link:hover,
#swell-journal :is(.sjl-actions, .sj-care-note) a.sjl-btn[data-cta-unit]:hover,
a.sjl-btn:hover {
  background: #3d1e68;
  color: white;
}

.sjl-card-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(.625rem, 2vw, 1rem);
  padding-top: .8rem;
  border-top: 1px solid var(--sjl-border);
}

.sjl-micro > span { display: block; }

:is(#swell-journal .sjl-card, .sjl-card, #swell-journal .sjl-band, .sjl-band) :is(.sjl-micro, .sjl-safety),
.sjl-panel .sjl-micro {
  margin: 0;
  color: var(--sjl-muted);
  font: 450 .8125rem/1.55 var(--sjl-font);
  letter-spacing: normal;
  text-transform: none;
}

:is(#swell-journal .sjl-band, .sjl-band) .sjl-micro {
  border-top: 1px solid var(--sjl-border);
  padding-top: .8rem;
  margin-top: .25rem;
}

.sjl-panel .sjl-micro { margin-top: .68rem; }
.sjl-micro strong { font-weight: 700; }
.sjl-safety { color: #602e3b; }

.sjl-trust {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: 44px;
  min-height: 44px;
}

#swell-journal .sjl-card-footer > .sjl-trust { margin: 0; padding: 0; }

.sjl-trust img, #swell-journal .sjl-trust img {
  display: block;
  width: 56px;
  height: 46px;
  object-fit: contain;
  margin: 0;
}

@media (max-width: 480px) {
  :is(.sjl-card, .sjl-band) .sjl-actions > .sjl-btn { width: 100%; }
  #swell-journal .sjl-card-footer .sjl-trust img, .sjl-card-footer .sjl-trust img {
    width: 46px;
    height: 44px;
  }
}
.sjl-geo-credit {display:block; font-size:.75rem; margin-top:.5rem}
.sjl-geo-credit a {color:inherit; text-decoration:underline}
#swell-journal .sjl-related-card {display:flex; flex-direction:column; justify-content:center; padding:1.3rem; border:1px solid #d7cce7; border-radius:12px; background:#f7f4fb}
#swell-journal .sjl-related-card h3 {font-size:1.15rem; line-height:1.3; margin:0 0 .4rem}
#swell-journal .sjl-related-card a {display:inline-flex; align-items:center; min-height:44px; color:#512888; font-weight:750; text-decoration:underline; text-underline-offset:.18em}
#swell-journal .sjl-related-card p {margin:0; color:#414059; font-size:.95rem; line-height:1.5}
.utility-bar .sjl-topic,.sjl-native-topic .sjl-topic {
  display:inline-flex; align-items:center; min-height:44px; line-height:1.2; color:inherit; text-decoration:underline;
  text-underline-offset:.15em; font-weight:700;
}
.sjl-native-topic {background:#512888; color:white; padding:0 1rem}
.utility-bar a.sjl-topic {color:#fff !important}
.utility-bar:has(.sjl-topic) {height:auto; min-height:44px}
#swell-journal .sjl-text-action,.sjl-text-action,.sjl-close,.sjl-call {
  display:inline-flex; align-items:center; justify-content:center; border:0; padding:0 .45rem; min-height:44px; min-width:44px;
  cursor:pointer; font:650 .9rem/1.3 var(--sjl-font, "Swell Geist", Arial, system-ui, sans-serif); text-transform:none; color:#512888; background:transparent;
  border-radius:6px; text-decoration:underline; text-underline-offset:.2em;
}
.sjl-close,.sjl-call {font-size:1.6rem; text-decoration:none; color:#323147}
.sjl-close:hover,.sjl-text-action:hover,.sjl-call:hover {color:#38195e; background:#f1edf7}
:is(.sjl-card,.sjl-band,.sjl-panel,.sjl-sticky,.sjl-related-card,.sjl-receipt) :is(a,button):focus-visible,
a.sjl-topic:focus-visible {outline:3px solid #1648b2 !important; outline-offset:3px; box-shadow:0 0 0 3px white}
.sjl-us-only,#swell-journal .sjl-us-only,.sjl-sticky[hidden] {display:none !important}
body.sjl-confirmed-us #swell-journal .sjl-us-only,body.sjl-confirmed-us .sjl-us-only {display:inline-flex !important}
.sjl-sticky,.sjl-panel {box-sizing:border-box; z-index:9900; color:#252448; background:white; box-shadow:0 6px 36px #23133d20}
.sjl-sticky {
  position:fixed; inset:auto 0 0; align-items:center; gap:6px; padding:7px max(12px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));
  min-height:58px; border-top:1px solid #d7cce7;
}
.sjl-sticky-copy {flex:1; font:650 .85rem/1.2 var(--sjl-font, "Swell Geist", Arial, system-ui, sans-serif); max-width:28em; margin-right:auto}
.sjl-sticky .sjl-btn {white-space:normal; letter-spacing:-.01em; padding:.45rem .8rem}
.sjl-sticky .sjl-call,.sjl-sticky .sjl-close {flex:0 0 44px; padding:0}
.sjl-panel {position:fixed; padding:22px; border:1px solid #d7cce7; border-radius:16px; margin:0}
.sjl-panel[role="dialog"]:focus,.sjl-panel[open]:focus {outline:none}
.sjl-panel .sjl-heading {padding-right:40px; font-size:1.23rem}
.sjl-panel > .sjl-close {position:absolute; right:4px; top:4px}
.sjl-slide_in {right:max(1rem,env(safe-area-inset-right)); bottom:max(1rem,env(safe-area-inset-bottom)); width:min(420px,calc(100vw - 2rem)); max-height:75vh; overflow:auto; overscroll-behavior:contain}
.sjl-slide_in .sjl-trust {float:right; margin-top:.3rem}
.sjl-slide_in .sjl-trust img {width:50px; height:40px}
.sjl-exit,.sjl-form {inset:0; margin:auto; height:fit-content; width:min(520px,calc(100vw - 2rem)); max-height:85vh; overflow:auto}
.sjl-exit::backdrop,.sjl-form::backdrop {background:#16102e88}
.sjl-form .sjl-frame {display:block; width:100%; height:min(50vh,480px); border:1px solid #d7cce7; margin:1rem 0 .5rem; border-radius:8px}
.sjl-receipt-page {margin:0; padding:clamp(16px,5vw,60px); background:#f7f4fb}
.sjl-receipt {max-width:45rem; margin:auto; border-radius:16px; padding:clamp(1.2rem,4vw,3rem); background:white}
.sjl-receipt a {color:#512888}
@media (max-width:1024px) {
  .sjl-sticky:not([hidden]) {display:flex}
  .sjl-has-sticky::after {content:""; display:block; height:var(--sjl-bottom-offset,60px)}
  body.sjl-bottom-occupied .sw-a11y {bottom:calc(var(--sjl-bottom-offset,60px) + 10px) !important}
  .sjl-slide_in {right:0; bottom:0; left:0; width:100%; max-height:30vh; max-height:30dvh; padding:10px 14px calc(9px + env(safe-area-inset-bottom)); border-radius:14px 14px 0 0}
  .sjl-slide_in .sjl-heading {font-size:1.02rem; line-height:1.22; margin:0}
  .sjl-slide_in .sjl-actions {margin-top:4px}
  .sjl-slide_in .sjl-micro {margin-top:.25rem; font-size:.72rem; padding-right:54px}
  .sjl-slide_in .sjl-trust {position:absolute; right:8px; bottom:2px; margin:0; min-height:44px}
}
@media (min-width:1025px) {.sjl-sticky {display:none}}
@media (max-width:440px) {
  .sjl-sticky {gap:2px; padding-right:5px; padding-left:8px}
  .sjl-sticky .sjl-btn {font-size:.78rem; padding:.34rem .56rem}
  .sjl-sticky-copy {font-size:.75rem}
  .utility-bar__inner:has(.sjl-topic) {flex-wrap:wrap; column-gap:.4rem}
  .utility-bar__inner .sjl-topic {font-size:.79rem}
}
@media (max-width:359px) {.sjl-sticky-copy {display:none}.sjl-sticky .sjl-btn {flex:1}}
@media (prefers-reduced-motion:no-preference) {
  .sjl-slide_in {animation:sjl-arrive .2s ease-out}
  @keyframes sjl-arrive {from {transform:translateY(8px); opacity:0} to {transform:none; opacity:1}}
}
body.swell-motion-paused .sjl-slide_in,body.sw-a11y-reduce-motion .sjl-slide_in,body:has(.motion-paused) .sjl-slide_in {animation:none}
.sjl-panel .sjl-template-heading .sjl-heading {margin:0; padding-right:38px; font:700 1.18rem/1.25 var(--sjl-font, "Swell Geist", Arial, system-ui, sans-serif); color:#252448}
.sjl-panel .sjl-elementor-layout {--gap:4px; --padding-top:0; --padding-bottom:0; --padding-left:0; --padding-right:0; min-height:0}
.sjl-panel .sjl-template-note p {font:500 .79rem/1.4 var(--sjl-font, "Swell Geist", Arial, system-ui, sans-serif); margin:.4rem 0 0; color:#535169}
@media (max-width:1024px) {.sjl-slide_in .sjl-template-heading .sjl-heading {font-size:1.02rem}.sjl-slide_in .sjl-template-note {padding-right:54px}}
