/* css styles */

body {
  text-align: justify;
  hyphens: auto;
}

.math.inline {
  text-align: left;
  hyphens: none;
}

.math.display,
mjx-container[display="true"] {
  text-align: center;
  hyphens: none;
}

.fig-three-panels {
  margin: 1.85rem 0 2.25rem;
}

.fig-small {
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}

.fig-three-panels img,
.quarto-float .fig-three-panels img,
.quarto-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.fig-panel-captions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 0.5rem;
  margin: 0.45rem 0 0;
  color: #222;
  font-family: "Computer Modern Serif", "Latin Modern Roman", "STIX Two Text", "Times New Roman", Times, serif;
  font-size: 0.88rem;
  font-style: italic;
  line-height: 1.35;
}

.fig-panel-captions-2x2 {
  grid-template-columns: 1fr 1fr;
  row-gap: 0.4rem;
}

.fig-panel-captions p {
  margin: 0;
  text-align: center;
  hyphens: none;
}

.fig-panel-label {
  font-style: normal;
}

.fig-label {
  font-weight: 700;
  font-style: normal;
}

.quarto-float figcaption,
.quarto-figure figcaption,
figure figcaption,
.fig-global-caption {
  font-family: "Computer Modern Serif", "Latin Modern Roman", "STIX Two Text", "Times New Roman", Times, serif;
  font-size: 0.95rem;
  text-align: center;
  hyphens: none;
  color: #222;
  margin-top: 0.65rem;
  line-height: 1.45;
}

.fig-global-caption p {
  margin: 0;
  text-align: center;
  hyphens: none;
}

figcaption.quarto-uncaptioned {
  display: none;
}

.navbar-brand {
  pointer-events: none;
  cursor: default;
}

.navbar,
.nav-footer,
#title-block-header,
.quarto-title-banner,
h1, h2, h3, h4, h5, h6,
.listing-title,
.listing-description,
.listing-categories,
.quarto-listing-default .metadata,
.article-feedback,
.listing-feedback,
.article-llm {
  text-align: left;
}

#title-block-header:not(.page-full) p.subtitle {
  background-color: #f2f3f5;
  color: #5c636a;
  padding: 1.1rem 1.25rem;
  border-radius: 8px;
  margin-top: 0.85rem;
}

/* Article banner: keep the deck under the title, never stacked on it */
#title-block-header .quarto-title .title {
  margin-bottom: 0.45rem;
}

#title-block-header .quarto-title p.subtitle,
#title-block-header .quarto-title .description {
  position: static;
  display: block;
  margin-top: 0.15rem;
  margin-bottom: 0.35rem;
  text-align: left;
  hyphens: none;
}

#title-block-header .quarto-title:has(p.subtitle) .description,
#title-block-header .quarto-title:has(p.subtitle) > div:has(> .description) {
  display: none;
}

/* Notes indexes — editorial deck under the title, no box */
.section-deck {
  max-width: 38rem;
  margin: 0.15rem 0 2.5rem;
  padding: 1rem 0 1.25rem;
  border-top: 1px solid #c5c9ce;
  border-bottom: 1px solid #c5c9ce;
  color: #5a6066;
}

.section-deck > p {
  margin: 0 0 0.65rem;
  text-align: left;
  font-size: 0.98rem;
  line-height: 1.6;
}

.section-deck > p:first-child {
  font-size: 1.05rem;
  color: #3d4248;
}

.section-deck > p:last-child {
  margin-bottom: 0;
}

.listing-coming-soon {
  margin: 0.35rem 0 0;
  color: #6c757d;
  font-size: 1.02rem;
}

.listing-coming-soon > p {
  margin: 0;
}

/* Full-width pages: no TOC column, but keep generous side margins */
#quarto-content.page-layout-full {
  padding-left: 15%;
  padding-right: 15%;
}

@media (max-width: 991.98px) {
  #quarto-content.page-layout-full {
    padding-left: 8%;
    padding-right: 8%;
  }
}

@media (max-width: 767.98px) {
  body {
    hyphens: none;
    text-align: left;
  }

  #quarto-content.page-layout-full {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  #quarto-content.page-layout-full p,
  #quarto-content.page-layout-full li,
  #title-block-header p.subtitle {
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
  }

  .about-photo img {
    max-width: 100%;
  }

  .quarto-listing-default .quarto-post.image-right,
  .quarto-listing-default .quarto-post.image-left {
    grid-template-columns: 1fr;
    grid-template-areas:
      "thumbnail"
      "body"
      "metadata";
  }
}

/* About Me — framed photo card beside the intro */
.about-wrapper {
  display: flex;
  gap: 2.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.75rem;
  margin-bottom: 1rem;
}

.about-bio {
  flex: 1 1 300px;
  min-width: 0;
}

.about-bio > p:first-child {
  margin-top: 0;
}

.about-photo {
  flex: 0 1 360px;
  min-width: 0;
  text-align: center;
}

.about-photo img {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 16px;
  border: 2px solid #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-photo img:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.24);
}

.about-caption {
  display: block;
  margin-top: 0.75rem;
  color: #6c757d;
  font-size: 0.9rem;
  font-style: italic;
}

#contact p {
  text-align: left;
  hyphens: none;
}

.entry-list {
  margin: 1.1rem 0 1.85rem;
}

.entry + .entry {
  margin-top: 1.35rem;
}

.entry {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  column-gap: 1.15rem;
  align-items: start;
  text-align: left;
}

.entry > p {
  margin: 0;
}

.entry-year {
  color: #6c757d;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1.55;
}

.entry-body {
  border-left: 1px solid #d8dce0;
  padding-left: 1.15rem;
  hyphens: none;
}

.entry-body > p {
  margin: 0;
  text-wrap: pretty;
}

.entry-body > p + p {
  margin-top: 0.22rem;
}

.entry-body > p:first-child {
  color: #222;
}

.entry-body > p:first-child a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #b8bdc3;
  text-underline-offset: 0.16em;
}

.entry-body > p:first-child a:hover,
.entry-body > p:first-child a:focus-visible {
  color: #3d4248;
  text-decoration-color: #6c757d;
}

.entry-body > p:not(:first-child) {
  color: #6c757d;
}

.entry-body .entry-topic {
  color: #222;
}

.entry-body .entry-aside,
.entry-body > p:last-child:not(:has(.entry-topic)) {
  color: #8a9096;
  font-size: 0.95em;
}

@media (max-width: 480px) {
  .entry {
    grid-template-columns: 1fr;
    row-gap: 0.2rem;
  }

  .entry-body {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 768px) {
  .about-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 1.75rem;
  }

  .about-photo {
    flex: 1 1 auto;
    order: -1;
  }

  .about-photo img {
    max-width: 320px;
  }
}

/* Listing cards — summary on the left, image on the right */
.quarto-listing-default .quarto-post {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "body"
    "metadata";
  column-gap: 2rem;
  row-gap: 0.55rem;
  align-items: center;
  padding: 1.35rem 1.1rem;
  margin: 0 -1.1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.quarto-listing-default .quarto-post:hover {
  background-color: #eef0f2;
  border-bottom-color: transparent;
}

.quarto-listing-default .quarto-post.image-right,
.quarto-listing-default .quarto-post.image-left {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  grid-template-areas:
    "body thumbnail"
    "metadata thumbnail";
}

.quarto-listing-default .quarto-post .body {
  grid-area: body;
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: unset;
}

.quarto-listing-default .quarto-post .metadata {
  grid-area: metadata;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.85rem;
  flex: unset;
  text-align: left;
  margin: 0;
  color: #6c757d;
  font-size: 0.92rem;
}

.quarto-listing-default .quarto-post .metadata a {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.85rem;
  color: inherit;
}

.quarto-listing-default .quarto-post .listing-date,
.quarto-listing-default .quarto-post .listing-reading-time {
  flex: 0 0 auto;
  width: auto;
  white-space: nowrap;
}

.quarto-listing-default .quarto-post .listing-feedback {
  flex: 1 1 auto;
  width: auto;
}

.quarto-listing-default .quarto-post .thumbnail {
  grid-area: thumbnail;
  flex: unset;
  width: 100%;
  margin: 0;
}

.quarto-listing-default .quarto-post .thumbnail img,
.quarto-listing-default .quarto-post .thumbnail-image {
  width: 100%;
  height: auto !important;
  max-height: 190px;
  margin-top: 0;
  object-fit: contain;
  background: transparent;
}

.quarto-listing-default .listing-title {
  order: 1;
  margin: 0 0 0.45rem 0;
}

.quarto-listing-default .listing-description {
  order: 2;
  margin: 0;
  color: #4a4f55;
  line-height: 1.5;
  font-size: 0.95rem;
}

.quarto-listing-default .listing-description p {
  margin: 0;
}

.quarto-listing-default .listing-categories {
  order: 3;
  margin-top: 0.7rem;
}

.quarto-listing-default .listing-subtitle:empty,
.quarto-listing-default .listing-subtitle:has(a:empty) {
  display: none;
}

@media (max-width: 768px) {
  .quarto-listing-default .quarto-post.image-right,
  .quarto-listing-default .quarto-post.image-left {
    grid-template-columns: 1fr;
    grid-template-areas:
      "thumbnail"
      "body"
      "metadata";
    align-items: stretch;
    row-gap: 0.85rem;
  }

  .quarto-listing-default .quarto-post .thumbnail img,
  .quarto-listing-default .quarto-post .thumbnail-image {
    max-height: 160px;
  }
}

/* Article feedback */
.article-feedback {
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  max-width: 100%;
  min-width: 0;
  border-top: 1px solid #c5c9ce;
}

.article-poll {
  margin: 0 0 2.3rem;
  max-width: 100%;
  min-width: 0;
  color: #6c757d;
  font-size: 0.88rem;
}

.article-poll-question {
  margin: 0 0 0.18rem;
  color: #3d4248;
}

.article-poll-question-hint {
  color: #8a9096;
}

.article-poll-options {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.15rem;
  width: 100%;
  max-width: min(100%, 28rem);
  min-width: 0;
  box-sizing: border-box;
  padding-bottom: 1.55rem;
}

.article-poll-choice {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: inline-flex;
  flex: 0 0 2.35rem;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 2.35rem;
  min-width: 0;
  margin: 0;
  padding: 0.15rem 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #fff;
  color: inherit;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}

.article-poll-reaction {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  min-width: 0;
}

.article-poll-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2em;
  font-size: 1.15rem;
  line-height: 1;
  text-align: center;
  transition: transform 0.15s ease;
}

.article-poll-choice:hover .article-poll-emoji,
.article-poll-choice:focus-visible .article-poll-emoji {
  transform: scale(1.22);
}

.article-poll-tooltip {
  position: absolute;
  top: calc(100% + 0.12rem);
  left: 50%;
  bottom: auto;
  transform: translateX(-50%);
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
  background: #3d4248;
  color: #fff;
  font-size: 0.75rem;
  line-height: 1.3;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}

.article-poll-choice.is-tooltip-on {
  z-index: 4;
}

.article-poll-choice.is-tooltip-on .article-poll-tooltip {
  opacity: 1;
}

.article-poll-choice:hover,
.article-poll-choice.is-selected,
.article-poll-choice:focus,
.article-poll-choice:focus-visible,
.article-poll-choice:active {
  outline: none;
  box-shadow: none;
  background: #fff;
}

.article-poll-count {
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: #8a9096;
}

.article-poll-count[hidden] {
  display: none;
}

.article-poll-hint {
  margin: 0.5rem 0 0;
  color: #6c757d;
  font-size: 0.82rem;
  line-height: 1.4;
  text-align: left;
}

.article-poll-hint[hidden] {
  display: none;
}

.article-poll-choice.is-pending {
  border-color: #c5c9ce;
}

@media (max-width: 640px) {
  .article-poll-options {
    max-width: 100%;
    gap: 0;
    padding-bottom: 1.45rem;
  }

  .article-poll-choice {
    flex: 1 1 0;
    width: auto;
    max-width: 2.1rem;
    padding: 0.1rem 0;
  }

  .article-poll-emoji {
    width: 1em;
    font-size: 0.95rem;
  }

  .article-poll-count {
    font-size: 0.62rem;
  }
}

.article-comment-form {
  position: relative;
  margin-top: 0;
  text-align: left;
  hyphens: none;
}

.article-comment-composer {
  display: block;
}

.article-comment-composer-box {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 28px;
  background: #fff;
  padding: 0.15rem 0.85rem;
  cursor: text;
}

.article-comment-form.is-expanded .article-comment-composer-box {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-radius: 8px;
  padding: 0.55rem 0.75rem 0.4rem;
  cursor: default;
}

.article-comment-name-field {
  display: none;
  margin: 0 0 0.35rem;
}

.article-comment-form.is-expanded .article-comment-name-field {
  display: block;
}

.article-comment-name-field input,
.article-comment-composer-box textarea,
.article-comment-edit-name,
.article-comment-edit-body {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(0, 0, 0, 0.9);
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.45;
}

.article-comment-name-field input {
  font-weight: 600;
}

.article-comment-name-field input:focus,
.article-comment-composer-box textarea:focus,
.article-comment-edit-name:focus,
.article-comment-edit-body:focus {
  outline: none;
}

.article-comment-name-field input::placeholder,
.article-comment-composer-box textarea::placeholder,
.article-comment-edit-name::placeholder,
.article-comment-edit-body::placeholder {
  color: rgba(0, 0, 0, 0.55);
}

.article-comment-composer-box textarea {
  flex: 1;
  resize: none;
  min-height: 1.45rem;
  max-height: 1.45rem;
  overflow: hidden;
}

.article-comment-form.is-expanded .article-comment-composer-box textarea {
  min-height: 2.6rem;
  max-height: none;
  overflow: hidden;
  resize: none;
  margin: 0;
}

.article-comment-guide {
  display: none;
  margin: 0 0 0.4rem;
  color: rgba(0, 0, 0, 0.6);
  font-size: 0.82rem;
  line-height: 1.45;
}

.article-comment-form.is-expanded .article-comment-guide:not([hidden]) {
  display: block;
}

.article-comment-guide p {
  margin: 0;
  text-align: left;
}

.article-comment-composer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  margin: 0 0 0 auto;
  padding: 0;
}

.article-comment-form.is-expanded .article-comment-composer-bar,
.article-comment.is-editing .article-comment-composer-bar {
  margin: 0;
  width: 100%;
}

.article-comment-form:not(.is-expanded) .article-comment-submit {
  display: none;
}

.article-comment-emoji-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.article-comment-emoji-toggle:hover,
.article-comment-emoji-toggle[aria-expanded="true"] {
  background: rgba(0, 0, 0, 0.08);
  color: rgba(0, 0, 0, 0.9);
}

.article-comment-emoji-icon {
  width: 22px;
  height: 22px;
}

.article-comment-emoji-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.05rem;
  max-height: 8.5rem;
  margin-top: 0.35rem;
  padding: 0.35rem;
  overflow-y: auto;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  background: #fff;
}

.article-comment-emoji-panel[hidden] {
  display: none;
}

.article-comment-emojis {
  display: flex;
  flex-wrap: wrap;
  gap: 0.05rem 0.1rem;
}

.article-comment-emoji {
  margin: 0;
  padding: 0.12rem;
  border: 0;
  border-radius: 4px;
  background: none;
  font-size: 1.15rem;
  line-height: 1.2;
  cursor: pointer;
}

.article-comment-emoji:hover {
  background: rgba(0, 0, 0, 0.08);
}

.article-comment-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.article-comment-submit {
  margin: 0;
  padding: 0.28rem 0.85rem;
  border: 0;
  border-radius: 16px;
  background: #5c636a;
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  white-space: nowrap;
}

.article-comment-submit:hover {
  background: #3d4248;
  color: #fff;
}

.article-comment-submit:disabled {
  background: transparent;
  color: rgba(0, 0, 0, 0.3);
  cursor: not-allowed;
}

.article-comment-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
  text-align: left;
  hyphens: none;
}

.article-comment {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.article-comment-main {
  flex: 1;
  min-width: 0;
}

.article-comment-row {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.article-comment-bubble {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.75rem 0.65rem;
  border-radius: 12px;
  background: #f2f2f2;
  text-align: left;
}

.article-comment-head {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.article-comment-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: rgba(0, 0, 0, 0.9);
  line-height: 1.3;
}

.article-comment-aside {
  flex: 0 0 auto;
  padding-top: 0.1rem;
  color: rgba(0, 0, 0, 0.6);
  font-size: 0.75rem;
  line-height: 1.3;
  white-space: nowrap;
}

.article-comment-body {
  margin: 0.2rem 0 0;
  color: rgba(0, 0, 0, 0.9);
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.article-comment-foot {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.15rem 0 0 0.15rem;
  color: rgba(0, 0, 0, 0.6);
  font-size: 0.75rem;
  font-weight: 600;
}

.article-comment-action {
  margin: 0;
  padding: 0.15rem 0.2rem;
  border: 0;
  border-radius: 4px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: inherit;
  font-weight: 600;
  line-height: inherit;
  cursor: pointer;
}

.article-comment-action:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #3d4248;
  text-decoration: underline;
}

.article-comment-dot {
  color: rgba(0, 0, 0, 0.6);
}

.article-comment.is-editing .article-comment-bubble {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 0.7rem 0.85rem 0.55rem;
}

.article-comment-edit-name {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.article-comment-edit-body {
  resize: vertical;
  min-height: 4.5rem;
  margin-bottom: 0.35rem;
}

.listing-feedback {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  font-size: inherit;
  line-height: inherit;
}

.listing-feedback-item {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.listing-feedback-emoji {
  font-size: 1rem;
  line-height: 1;
}

.listing-feedback-count {
  font-variant-numeric: tabular-nums;
  color: #8a9096;
  font-size: 0.82rem;
}

.article-llm {
  --llm-size: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #c5c9ce;
  font-size: var(--llm-size);
}

.article-llm-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.article-llm-toggle:hover .article-llm-heading {
  color: #222;
}

.article-llm-heading {
  margin: 0;
  color: #3d4248;
  font-size: 0.9rem;
  font-weight: 600;
}

.article-llm-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.article-llm-body[hidden] {
  display: none;
}

.article-llm-pair {
  display: grid;
  grid-template-columns: minmax(0, 40fr) minmax(0, 58fr);
  gap: 1.5rem;
  align-items: stretch;
}

.article-llm-pair[hidden] {
  display: none;
}

.article-llm-block {
  min-width: 0;
  padding-top: 24px;
}

.article-llm-chart {
  min-width: 0;
  min-height: 100%;
}

.article-llm-chart .article-llm-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.article-llm-chart.is-blurred {
  overflow: hidden;
  border-radius: 18px;
}

.article-llm-chart.is-blurred .article-llm-panel {
  filter: blur(9px);
  transform: scale(1.03);
  pointer-events: none;
  user-select: none;
}

.article-llm-question {
  margin: 0 0 0.55rem;
  color: #6c757d;
  font-size: 0.88rem;
}

.article-llm-hint {
  margin: -0.25rem 0 0.55rem;
  color: #8a9096;
  font-size: inherit;
}

.article-llm-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.35rem 0.15rem 0;
}

.article-llm-slider-readout {
  margin: 0 0 0.15rem;
  color: #3d4248;
  font-size: inherit;
  font-weight: 600;
  min-height: 1.3rem;
}

.article-llm-slider {
  --pct: 0%;
  width: 100%;
  height: 1.35rem;
  margin: 0;
  padding: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.article-llm-slider:focus-visible {
  outline: none;
}

.article-llm-slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, #5c636a var(--pct), #d8dce0 var(--pct));
}

.article-llm-slider::-moz-range-track {
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: #d8dce0;
}

.article-llm-slider::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: #5c636a;
}

.article-llm-slider::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #5c636a;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.article-llm-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #5c636a;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.article-llm-slider-ticks {
  position: relative;
  height: 0.45rem;
  margin: 0 9px;
}

.article-llm-slider-ticks span {
  position: absolute;
  top: 0;
  width: 1px;
  height: 0.45rem;
  background: #c5c9ce;
  transform: translateX(-50%);
}

.article-llm-slider-bands {
  display: grid;
  grid-template-columns: 10% 20% 20% 20% 20% 10%;
  margin: 0 9px;
  color: #8a9096;
  font-size: inherit;
  line-height: 1.2;
  text-align: center;
}

.article-llm-slider-band.is-active {
  color: #3d4248;
  font-weight: 600;
}

.article-llm-scale-labels {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  column-gap: 0.4rem;
  margin: 0.15rem 9px 0;
  color: #8a9096;
  font-size: inherit;
  line-height: 1.25;
}

.article-llm-scale-min {
  text-align: left;
}

.article-llm-scale-arrow {
  text-align: center;
  letter-spacing: 0.18em;
}

.article-llm-scale-max {
  text-align: right;
}

.article-llm-where-picks {
  --where-gap: 0.45rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--where-gap);
}

.article-llm-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--where-gap);
  width: 100%;
}

.article-llm-or {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  margin: 0;
  color: #8a9096;
  font-size: inherit;
  line-height: 1;
  text-align: center;
}

.article-llm-or::before,
.article-llm-or::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
}

.article-llm-chip,
.article-llm-effect-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-width: 0;
  margin: 0;
  padding: 0.5rem 0.55rem;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 999px;
  background: #fff;
  color: #3d4248;
  font: inherit;
  font-size: var(--llm-size);
  line-height: 1.25;
  cursor: pointer;
}

.article-llm-chip {
  justify-content: flex-start;
  padding: 0.42rem 0.7rem 0.42rem 0.55rem;
  border-radius: 12px;
}

.article-llm-chip[data-choice="none"] {
  width: calc((100% - var(--where-gap)) / 2);
}

.article-llm-chip-check {
  flex: 0 0 0.95em;
  width: 0.95em;
  color: #3d7a54;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.article-llm-chip.is-selected .article-llm-chip-check::before {
  content: "✓";
}

.article-llm-chip:focus-visible,
.article-llm-effect-choice:focus-visible {
  background: #f2f2f2;
  outline: none;
}

.article-llm-chip.is-selected {
  border-color: #b7c9b8;
  background: #f3f8f4;
}

.article-llm-chip.is-selected:focus-visible {
  background: #eaf4ed;
}

@media (hover: hover) {
  .article-llm-chip:hover,
  .article-llm-effect-choice:hover {
    background: #f2f2f2;
  }

  .article-llm-chip.is-selected:hover {
    background: #eaf4ed;
  }
}

.article-llm-effect-choice.is-selected {
  border-color: #5c636a;
  background: #eceef0;
}

.article-llm-where-picks.is-locked .article-llm-chip {
  cursor: default;
  pointer-events: none;
}

.article-llm-where-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin: 1.05rem 0 0;
}

.article-llm-where-submit {
  margin: 0;
  padding: 0.28rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 16px;
  background: #5c636a;
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  white-space: nowrap;
}

.article-llm-where-submit:hover {
  background: #3d4248;
  color: #fff;
}

.article-llm-where-submit.is-secondary {
  background: transparent;
  border-color: #c5c9ce;
  color: #6c757d;
}

.article-llm-where-submit.is-secondary:hover {
  background: #f4f5f6;
  border-color: #8a9096;
  color: #3d4248;
}

.article-llm-where-submit.is-editing {
  background: #3d7a54;
  color: #fff;
}

.article-llm-where-submit.is-editing:hover {
  background: #2f6042;
  color: #fff;
}

.article-llm-where-submit:disabled {
  background: transparent;
  color: rgba(0, 0, 0, 0.3);
  cursor: not-allowed;
}

.article-llm-where-submit.is-editing:disabled {
  background: transparent;
  color: rgba(0, 0, 0, 0.3);
}

.article-llm-where-revert {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.28rem 0.7rem 0.28rem 0.55rem;
  border: 0;
  border-radius: 16px;
  background: #eef0f2;
  color: #5c636a;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  white-space: nowrap;
}

.article-llm-where-revert:hover {
  background: #e2e5e8;
  color: #3d4248;
}

.article-llm-where-revert-icon {
  width: 0.95em;
  height: 0.95em;
  flex: 0 0 auto;
}

.article-llm-where-revert[hidden] {
  display: none;
}

.article-llm-chip-label,
.article-llm-effect-label {
  min-width: 0;
  text-align: center;
  font-size: var(--llm-size);
}

.article-llm-effect {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.article-llm-effect-head {
  color: #6c757d;
  font-size: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
}

.article-llm-effect-choice {
  flex-direction: column;
  border-radius: 10px;
  min-height: 4.6rem;
}

.article-llm-effect-label {
  text-align: center;
}

.article-llm-panel {
  min-width: 0;
  padding: 24px;
  border-radius: 18px;
  box-sizing: border-box;
}

.article-llm-panel.is-amount {
  background: #eef4fb;
  color: #3d5a80;
}

.article-llm-panel.is-where {
  background: #eef7f1;
  color: #3d5c47;
}

.article-llm-panel.is-impact {
  background: #f4eef8;
  color: #5a4570;
}

.article-llm-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
}

.article-llm-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  font-size: inherit;
  font-weight: 700;
  line-height: 1;
}

.is-amount .article-llm-num {
  background: #4d7cc8;
}

.is-where .article-llm-num {
  background: #3d7a54;
}

.is-impact .article-llm-num {
  background: #7a5ea0;
}

.article-llm-panel-title {
  margin: 0 0 12px;
  padding: 0;
  color: inherit;
  font-size: inherit;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
}

.article-llm-panel-head p {
  margin: 0.2rem 0 0;
  color: inherit;
  opacity: 0.78;
  font-size: inherit;
  line-height: 1.4;
  font-weight: 400;
}

.article-llm-amount-chart {
  display: grid;
  grid-template-columns: 1.15rem 2.35rem 1fr;
  grid-template-rows: 1.35rem minmax(8.5rem, 1fr) auto;
  column-gap: 0.3rem;
  row-gap: 0.2rem;
  flex: 1 1 auto;
  min-height: 12.5rem;
}

.article-llm-y-label {
  grid-column: 1;
  grid-row: 1 / -1;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  align-self: center;
  font-size: inherit;
  letter-spacing: 0.01em;
  opacity: 0.75;
  text-align: center;
}

.article-llm-y-ticks {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: inherit;
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
  text-align: right;
  line-height: 1;
}

.article-llm-bar-values,
.article-llm-bar-tracks,
.article-llm-bar-labels {
  grid-column: 3;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.28rem;
}

.article-llm-bar-values {
  grid-row: 1;
  align-items: end;
  font-size: inherit;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: #3d5a80;
}

.article-llm-bar-tracks {
  grid-row: 2;
  min-height: 8.5rem;
  align-items: stretch;
  background-image: repeating-linear-gradient(
    to top,
    rgba(77, 124, 200, 0.14) 0,
    rgba(77, 124, 200, 0.14) 1px,
    transparent 1px,
    transparent 20%
  );
  border-radius: 6px 6px 0 0;
}

.article-llm-bar-track {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
  height: 100%;
}

.article-llm-bar {
  display: block;
  width: 62%;
  max-width: 2.2rem;
  border-radius: 5px 5px 0 0;
  background: #4d7cc8;
}

.article-llm-bar-track:nth-child(1) .article-llm-bar { background: #c3daf3; }
.article-llm-bar-track:nth-child(2) .article-llm-bar { background: #a4c3e8; }
.article-llm-bar-track:nth-child(3) .article-llm-bar { background: #7eabd9; }
.article-llm-bar-track:nth-child(4) .article-llm-bar { background: #588fca; }
.article-llm-bar-track:nth-child(5) .article-llm-bar { background: #356eb4; }
.article-llm-bar-track:nth-child(6) .article-llm-bar { background: #1a4a8c; }

.article-llm-bar-labels {
  grid-row: 3;
  padding-top: 0.3rem;
}

.article-llm-bar-labels > span {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
  text-align: center;
  line-height: 1.2;
}

.article-llm-bar-x {
  font-size: var(--llm-size);
  font-weight: 600;
}

.article-llm-bar-tone {
  font-size: var(--llm-size);
  opacity: 0.75;
}

.article-llm-stage-chart {
  width: 100%;
}

.article-llm-stage-row,
.article-llm-stage-xlabel {
  display: grid;
  grid-template-columns: 7.2rem minmax(0, 1fr) 2.4rem;
  align-items: center;
  gap: 0.5rem;
}

.article-llm-stage-row + .article-llm-stage-row {
  margin-top: 0.5rem;
}

.article-llm-stage-row.is-none {
  margin-top: 0.85rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(61, 122, 84, 0.18);
}

.article-llm-stage-label {
  font-size: var(--llm-size);
  line-height: 1.25;
}

.article-llm-stage-track {
  height: 0.7rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(61, 122, 84, 0.12);
}

.article-llm-stage-bar {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #3d7a54;
}

.article-llm-stage-pct {
  font-size: inherit;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.article-llm-stage-xlabel {
  margin: 0.55rem 0 0;
  color: inherit;
  font-size: inherit;
  opacity: 0.75;
  text-align: center;
}

.article-llm-impact-group + .article-llm-impact-group {
  margin-top: 1.1rem;
}

.article-llm-impact-title {
  margin: 0 0 0.55rem;
  font-size: inherit;
  font-weight: 700;
}

.article-llm-impact-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr 2.6rem;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.55rem;
}

.article-llm-impact-label {
  font-size: var(--llm-size);
  line-height: 1.3;
}

.article-llm-impact-track {
  height: 1rem;
  overflow: hidden;
  border-radius: 999px;
  background-image: repeating-linear-gradient(
    to right,
    rgba(122, 94, 160, 0.12) 0,
    rgba(122, 94, 160, 0.12) 1px,
    rgba(122, 94, 160, 0.08) 1px,
    rgba(122, 94, 160, 0.08) 25%
  );
}

.article-llm-impact-bar {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #7a5ea0;
}

.article-llm-impact-pct {
  font-size: inherit;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.article-llm-impact-axis {
  display: grid;
  grid-template-columns: 7.5rem 1fr 2.6rem;
  gap: 0.65rem;
  margin-top: 0.7rem;
}

.article-llm-impact-ticks {
  display: flex;
  justify-content: space-between;
  font-size: inherit;
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
}

.article-llm-impact-axis-label {
  margin: 0.25rem 0 0;
  text-align: center;
  font-size: inherit;
  opacity: 0.75;
}

@media (max-width: 700px) {
  .article-llm-pair {
    grid-template-columns: 1fr;
  }

  .article-llm-block {
    padding-top: 0;
  }

  .article-llm-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-llm-stage-row,
  .article-llm-stage-xlabel {
    grid-template-columns: 6.2rem minmax(0, 1fr) 2.2rem;
    gap: 0.4rem;
  }
}
