/* The editorial layout applies only after the standard article is enhanced. */
body.ls-public-ui.ls-topic-article {
  --article-ink: #132c46;
  --article-navy: #0d2440;
  --article-pearl: #fbf8f1;
  --article-brass: #9b6839;
  --article-bright: #f8da9f;
  --article-rust: #9b3c2c;
  --article-rule: #b89060;
  --article-metal: linear-gradient(105deg, #8e5931 0%, #bc8750 36%, #f8da9f 61%, #a16837 86%);
  --public-ink: var(--article-ink);
  --public-deep: var(--article-navy);
  --public-accent: var(--article-brass);
  --public-gold: var(--article-brass);
  --public-line: #dfcdb4;
  --page-ink: var(--article-ink);
  --page-green: var(--article-ink);
  --page-gold: var(--article-brass);
  --lk-teal: var(--article-ink);
  background: var(--article-pearl) !important;
}

body.ls-public-ui.ls-topic-article #ls-page-heading.ls-heading-compact {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: space-between;
  min-height: 40px !important;
  margin-block: 10px !important;
  gap: 6px 14px !important;
}

.ls-topic-article #ls-page-heading > :is(#ls-page-title, .ls-public-description) {
  display: none !important;
}

body.ls-public-ui.ls-topic-article #ls-page-heading .ls-reading-switch {
  order: 1;
  width: auto;
  margin: 0;
  border-color: var(--article-rule);
  background: #fffaf1;
}

body.ls-public-ui.ls-topic-article #ls-page-heading .ls-reading-switch button {
  min-width: 0;
  padding-inline: 12px !important;
  color: var(--article-ink) !important;
}

body.ls-public-ui.ls-topic-article #ls-page-heading .ls-reading-switch button[aria-pressed=true] {
  background: linear-gradient(120deg, #254763, var(--article-navy)) !important;
  color: #fff8e7 !important;
  box-shadow: inset 0 1px #e9c89080 !important;
}

.ls-topic-article #ls-page-heading .ls-search-bar {
  order: 2;
  flex-basis: 100%;
}

.ls-topic-article #ls-site-header {
  overflow: visible;
}

body.ls-public-ui.ls-topic-article #ls-site-header .ls-unified-nav a[data-active] {
  background: #eee1ce !important;
  color: var(--article-ink) !important;
}

body.ls-public-ui.ls-topic-article #ls-site-header .ls-header-subscribe {
  border-color: var(--article-navy) !important;
  background: var(--article-navy) !important;
  color: #fff2da !important;
}

.ls-topic-progress {
  position: absolute;
  z-index: 2;
  inset: auto 0 -2px;
  display: block;
  width: 100%;
  max-width: none;
  height: 3px;
  appearance: none;
  border: 0;
  color: #a76d34;
  background: #d9c4a6;
  pointer-events: none;
}

.ls-topic-progress::-webkit-progress-bar { background: #d9c4a6; }
.ls-topic-progress::-webkit-progress-value { background: var(--article-metal); }
.ls-topic-progress::-moz-progress-bar { background: var(--article-metal); }

body.ls-public-ui.ls-topic-article main:is(.well-main, .lk-article-shell) {
  --well-ink: var(--article-ink);
  --well-gold: var(--article-brass);
  --well-accent: var(--article-brass) !important;
  --well-paper: #fffdf9;
  color: var(--article-ink);
  padding-inline: 0;
  background: none;
}

.ls-topic-article .lk-breadcrumb {
  margin: 0 0 10px;
  color: #5c4935;
}

.ls-topic-article :is(.well-hero, .ls-topic-knowledge-hero) {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: stretch;
  gap: 0;
  position: relative;
  min-height: clamp(280px, 26vw, 380px);
  margin: 0 0 clamp(20px, 3vw, 38px);
  border: 1px solid var(--article-rule);
  border-bottom: 3px solid transparent;
  border-image: var(--article-metal) 1;
  border-radius: 0;
  overflow: hidden;
  background: var(--article-navy);
  box-shadow: 0 12px 28px #0d244026;
}

.ls-topic-article .ls-topic-hero > :is(.well-hero-copy, .lk-article-heading) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: auto;
  max-width: none;
  min-height: 0;
  min-width: 0;
  margin: 0;
  padding: clamp(23px, 3.4vw, 46px);
  border: 0;
  color: #fff8e7;
  background: linear-gradient(135deg, #22425c, var(--article-navy) 70%);
}

body.ls-public-ui.ls-topic-article .ls-topic-hero h1 {
  margin: .36em 0 .46em;
  color: #fff8e7;
  font: 600 clamp(29px, 3.65vw, 52px)/1.2 "Noto Serif SC", "Songti SC", "SimSun", serif;
  letter-spacing: .015em;
  text-wrap: balance;
}

.ls-topic-article .ls-topic-hero :is(.well-kicker, .well-subject, .lk-kicker) {
  margin-block: 0;
  color: var(--article-bright);
  font-weight: 600;
}

.ls-topic-article .ls-topic-hero :is(.well-hero-copy > p, .lk-article-summary) {
  margin: 0;
  color: #f5e8d3;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.75;
}

.ls-topic-article .ls-topic-hero :is(.well-meta, .lk-article-meta) {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid #b48b52;
  color: #e8d2ad;
  font-size: 12px;
}

.ls-topic-article .ls-topic-cover-media {
  position: relative;
  min-width: 0;
  min-height: 0;
}

.ls-topic-article .ls-topic-cover-media > .lk-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #142a43;
  box-shadow: none;
}

.ls-topic-article .ls-topic-cover-media figcaption {
  padding: 10px 16px;
  color: #fff2d8;
  background: #142a43;
}

.ls-topic-article .ls-topic-cover-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: 66% center;
  opacity: 1;
}

.ls-topic-article .ls-topic-cover-media > img {
  position: absolute;
  inset: 0;
}

.ls-topic-article .ls-topic-cover-media > .lk-cover > img {
  flex: 1;
  height: 0;
}

.ls-topic-article .ls-topic-reading-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(220px, 20%, 268px);
  grid-template-areas: "body contents";
  align-items: start;
  gap: clamp(18px, 2.5vw, 40px);
}

.ls-topic-article .ls-topic-reading-aside {
  grid-area: contents;
  position: sticky;
  top: var(--desktop-header-offset, 100px);
  max-height: calc(100vh - var(--desktop-header-offset, 100px) - 20px);
  overflow-y: auto;
  min-width: 0;
}

.ls-topic-article .ls-topic-reading-body {
  grid-area: body;
  min-width: 0;
  width: 100%;
}

/* Align the cards with the cover while keeping long passages easy to scan. */
.ls-topic-article .ls-topic-reading-body :is(section, article) > p {
  max-inline-size: 52em;
  max-inline-size: 52ic;
}

.ls-topic-article :is(.ls-topic-contents, .ls-topic-tool) {
  min-width: 0;
  border: 1px solid var(--article-rule);
  border-top: 3px solid var(--article-brass);
  background: #fffaf0;
}

.ls-topic-article :is(.ls-topic-contents, .ls-topic-tool) > summary {
  padding: 11px 15px;
  color: var(--article-navy);
  font-weight: 700;
  cursor: pointer;
}

.ls-topic-article .ls-topic-contents nav {
  display: grid;
  min-width: 0;
  padding: 0 15px 12px;
}

.ls-topic-article .ls-topic-contents a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 6px 0;
  border-top: 1px solid #dfc9aa;
  color: var(--article-ink);
  font-size: 14px;
  line-height: 1.55;
  text-decoration: none;
}

.ls-topic-article .ls-topic-contents a:hover,
.ls-topic-article .ls-topic-contents a:focus-visible {
  color: var(--article-rust);
  text-decoration: underline;
}

.ls-topic-article .ls-topic-tool-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 10px;
  padding: 8px 16px;
  border: 1px solid var(--article-brass);
  color: #fff8e7;
  background: var(--article-navy);
  box-shadow: inset 0 1px #f8da9f80;
  font-size: 14px;
  text-decoration: none;
}

.ls-topic-article .ls-topic-reading-aside > .ls-topic-tool-link {
  width: 100%;
}

.ls-topic-article .ls-topic-tool {
  margin-block: 28px;
}

.ls-topic-article .ls-topic-tool > .wellness-workbench {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--article-rule);
  border-radius: 0;
}

.ls-topic-article .ls-topic-reading-body > :is(.well-reader, .lk-reader) {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--article-ink);
  line-height: 1.9;
}

.ls-topic-article .ls-topic-reading-body > #ls-topic-reading,
.ls-topic-article .ls-topic-reading-body .lk-reader > #ls-topic-reading {
  width: 100% !important;
  margin: 12px 0 20px !important;
  border-color: var(--article-rule);
}

.ls-topic-article :is(.ls-topic-lead, .lk-takeaway) {
  display: grid;
  grid-template-columns: minmax(110px, .35fr) minmax(0, 1fr);
  align-items: start;
  gap: 12px 24px;
  margin: 0 0 26px;
  padding: 22px;
  border: 1px solid #c7a375;
  border-left: 4px solid var(--article-brass);
  border-radius: 0;
  background: #f7eddc;
}

body.ls-public-ui.ls-topic-article .ls-topic-lead h2,
.ls-topic-article .lk-takeaway > span {
  margin: 0;
  color: var(--article-rust);
  font: 600 clamp(20px, 2vw, 29px)/1.45 "Noto Serif SC", "Songti SC", "SimSun", serif;
  letter-spacing: normal;
}

.ls-topic-article .ls-topic-lead ul,
.ls-topic-article .lk-reader .lk-takeaway p {
  margin: 0;
  font-size: 16px;
}

.ls-topic-article .ls-topic-lead ul {
  padding-inline-start: 22px;
  line-height: 1.8;
}

.ls-topic-article .ls-topic-lead li + li {
  margin-top: 6px;
}

.ls-topic-article .ls-topic-lead li::marker {
  color: var(--article-brass);
}

.ls-topic-article .ls-topic-reading-body :is(.well-reader, .lk-reader, .ls-topic-split) > section {
  margin: 0 0 26px;
  padding-top: clamp(16px, 2.5vw, 26px);
  border-top: 2px solid var(--article-rule);
  scroll-margin-top: var(--desktop-header-offset, 24px);
}

body.ls-public-ui.ls-topic-article .ls-topic-reading-body :is(.well-reader, .lk-reader, .ls-topic-split) > section h2 {
  margin: 0 0 12px;
  color: var(--article-navy);
  font: 600 clamp(22px, 2.2vw, 34px)/1.4 "Noto Serif SC", "Songti SC", "SimSun", serif;
}

.ls-topic-article .ls-topic-reading-body article h2 > span {
  display: inline-block;
  width: auto;
  height: auto;
  margin: 0 .65em 0 0;
  border-radius: 0;
  background: none;
  color: var(--article-rust);
  font: 650 .56em/1.25 system-ui, sans-serif;
  letter-spacing: .04em;
}

.ls-topic-article :is(.well-section ul, .lk-example, .lk-boundary) {
  border-left: 4px solid var(--article-brass);
  border-color: var(--article-rule);
  border-radius: 0;
  background: #f7eddc;
}

.ls-topic-article :is(.well-figure, .lk-reader figure) {
  margin: 20px 0;
  border: 1px solid var(--article-rule);
  border-radius: 0;
  background: #fffdf8;
  box-shadow: none;
  overflow: hidden;
}

.ls-topic-article :is(.well-figure, .lk-reader figure) img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: #fffdf8;
}

.ls-topic-article :is(.well-figure, .lk-reader figure) figcaption {
  padding: 10px 14px;
  border-top: 1px solid #dfc9aa;
  color: #5c4935;
}

.ls-topic-article .well-interactive,
.ls-topic-article .well-related {
  border-color: var(--article-rule);
}

@media (min-width: 1240px) {
  .ls-topic-article .ls-topic-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 24px;
    margin: 26px 0;
    padding-block: 22px;
    border-block: 2px solid var(--article-rule);
  }

  .ls-topic-article .ls-topic-split > :is(section, figure) {
    margin: 0;
  }

  .ls-topic-article .ls-topic-reading-body .ls-topic-split > section {
    margin: 0;
    padding-top: 0;
    border-top: 0;
  }
}

@media (max-width: 899px) {
  .ls-topic-article .ls-topic-reading-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "contents" "body";
    gap: 14px;
  }

  .ls-topic-article .ls-topic-reading-aside {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .ls-topic-article .ls-topic-reading-aside > .ls-topic-tool-link {
    display: none;
  }
}

@media (max-width: 640px) {
  .ls-topic-article .ls-topic-progress {
    position: fixed;
    inset: 0 0 auto;
  }

  body.ls-public-ui.ls-topic-article #ls-page-heading #ls-back-v83 {
    gap: 10px !important;
  }

  body.ls-public-ui.ls-topic-article #ls-page-heading #ls-back-v83 > button {
    display: none;
  }

  body.ls-public-ui.ls-topic-article #ls-page-heading .ls-reading-switch button {
    padding-inline: 8px !important;
    font-size: 12px !important;
  }

  .ls-topic-article .ls-topic-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .ls-topic-article .ls-topic-hero > :is(.well-hero-copy, .lk-article-heading) {
    padding: 18px;
    background: none;
  }

  .ls-topic-article .ls-topic-cover-media > :is(.lk-cover, img) {
    position: static;
  }

  .ls-topic-article .ls-topic-cover-media img,
  .ls-topic-article .ls-topic-cover-media > .lk-cover > img {
    height: auto;
    max-height: 220px;
    aspect-ratio: 16 / 9;
  }

  .ls-topic-article :is(.ls-topic-lead, .lk-takeaway) {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 14px;
  }
}

@media print {
  .ls-topic-article :is(.ls-topic-progress, .ls-topic-reading-aside, .ls-topic-tool-link) {
    display: none;
  }

  .ls-topic-article .ls-topic-reading-layout {
    display: block;
  }
}
