/* Blog article pages — layout, rich text, and shared figure utilities */

/* Webflow rich-text figure baseline (used by article bodies) */
.w-richtext:before,
.w-richtext:after {
  content: " ";
  display: table;
  grid-area: 1/1/2/2;
}
.w-richtext:after {
  clear: both;
}
.w-richtext figure {
  max-width: 60%;
  position: relative;
}
.w-richtext figure img {
  width: 100%;
}
.w-richtext figure.w-richtext-figure-type-image,
.w-richtext figure[data-rt-type=image] {
  display: table;
}
.w-richtext figure.w-richtext-figure-type-image > div,
.w-richtext figure[data-rt-type=image] > div {
  display: inline-block;
}
.w-richtext figure.w-richtext-align-fullwidth {
  text-align: center;
  clear: both;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  display: block;
}
.w-richtext figure.w-richtext-align-fullwidth > div {
  padding-bottom: inherit;
  display: inline-block;
}
.w-richtext figure.w-richtext-align-center {
  clear: both;
  margin-left: auto;
  margin-right: auto;
}

.main-wrapper {
  background-color: var(--bone-100, #f0eae2);
  font-family: var(--font-serif, "Plus Jakarta Sans", Arial, sans-serif);
}

.padding-global {
  width: 100%;
  padding-left: clamp(1.25rem, 5vw, 5rem);
  padding-right: clamp(1.25rem, 5vw, 5rem);
}

.container-large {
  width: 100%;
  max-width: 90rem;
  margin-left: auto;
  margin-right: auto;
}

.section-blog-template {
  padding-top: 13.75rem;
  padding-bottom: 8.19rem;
}

.blog-back {
  margin: 0 0 1.5rem;
}

.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono, "Manrope", sans-serif);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-600, #35636e);
  text-decoration: none;
  transition: color 160ms ease;
}

.blog-back-link:hover {
  color: var(--sienna, #eb684c);
}

.blog-back-link:focus-visible {
  outline: 2px solid var(--sienna, #eb684c);
  outline-offset: 4px;
  border-radius: 2px;
}

.section-blog-template .blog-template-heading.heading-1 {
  font-size: 3.5rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  font-weight: 400;
  font-synthesis: none;
  margin: 0;
}

.section-blog-template .blog-template-heading-wrap {
  display: flex;
  flex-flow: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 2rem;
  max-width: 56rem;
}

.section-blog-template .blog-date-author-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: baseline;
  column-gap: 1.5rem;
  row-gap: 0.63rem;
}

.section-blog-template .blog-byline {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7d9597;
}

.section-blog-template .blog-by {
  opacity: 0.75;
  margin-right: 6px;
}

.section-blog-template .blog-date-created {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline;
  color: var(--sienna-deep);
}

.section-blog-template .blog-main-image-wrap {
  width: 100%;
  height: 32.5rem;
  margin-top: 2.56rem;
  margin-bottom: 3.5rem;
  overflow: hidden;
  border-radius: 0.25rem;
}

.section-blog-template .blog-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-blog-template .blog-body-container {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  column-gap: 1.25rem;
  row-gap: 1.25rem;
  width: 100%;
}

.section-blog-template .blog-body {
  grid-column: 5 / 12;
  grid-row: 1;
}

.section-blog-template .blog-body.w-richtext {
  overflow-x: clip;
  overflow-y: visible;
  overflow-anchor: none;
}

.section-blog-template .blog-body.w-richtext p {
  overflow-anchor: none;
  margin: 0 0 1rem;
  font-size: 17px;
  line-height: 1.58;
  letter-spacing: -0.01em;
  color: var(--ink-soft, #3d4a4c);
}

.section-blog-template .blog-body.w-richtext p.blog-subheading {
  margin-top: 2.1rem;
  margin-bottom: 0.45rem;
  color: var(--ink, #161616);
  font-weight: 600;
}

.section-blog-template .blog-body.w-richtext p.blog-subheading + p {
  margin-top: 0;
}

/* Orange highlighter — use .highlight (weight unchanged) or .bold-highlight (+ semibold) */
.section-blog-template .blog-body.w-richtext .highlight {
  font-weight: inherit;
  color: inherit;
  background: linear-gradient(transparent 60%, rgba(235, 104, 76, 0.18) 60%);
  padding: 0 2px;
}

.section-blog-template .blog-body.w-richtext .bold-highlight {
  font-weight: 600;
  color: var(--ink);
  background: linear-gradient(transparent 60%, rgba(235, 104, 76, 0.18) 60%);
  padding: 0 2px;
}

/* Orange text — semibold, no highlight background */
.section-blog-template .blog-body.w-richtext .orange {
  font-weight: 600;
  font-style: inherit;
  color: var(--sienna, #eb684c);
}

.section-blog-template .blog-body.w-richtext b {
  font-weight: 600;
}

/* Inline footnote / reference — clickable, no default link chrome */
.section-blog-template .blog-body.w-richtext a.blog-ref {
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
  border-bottom: none;
}

.section-blog-template .blog-body.w-richtext a.blog-ref sup {
  font-size: 0.72em;
  line-height: 0;
  vertical-align: super;
  color: var(--sienna-deep);
  font-weight: 600;
  letter-spacing: 0;
}

.section-blog-template .blog-body.w-richtext a.blog-ref:hover sup {
  color: var(--sienna);
}

.section-blog-template .blog-body.w-richtext .blog-refs {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(53, 99, 110, 0.12);
}

.section-blog-template .blog-body.w-richtext .blog-ref-note {
  margin: 0 0 0.65rem;
  font-size: 14px;
  line-height: 1.55;
  color: var(--teal-600);
}

.section-blog-template .blog-body.w-richtext .blog-ref-note:last-child {
  margin-bottom: 0;
}

.section-blog-template .blog-body.w-richtext .blog-ref-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  text-decoration-color: rgba(53, 99, 110, 0.35);
}

.section-blog-template .blog-body.w-richtext .blog-ref-note a:hover {
  color: var(--teal-700);
  text-decoration-color: currentColor;
}

.section-blog-template .blog-body.w-richtext code {
  display: block;
  width: 100%;
  background-color: #eae8e2;
  color: #749697;
  font-family: monospace;
  padding: 24px;
  border: 1px solid rgba(116, 150, 151, 0.2);
  border-radius: 4px;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* BibTeX: indent field lines only; closing "}" stays flush (wrap fields in .blog-bibtex-line) */
.section-blog-template .blog-body.w-richtext code.blog-bibtex .blog-bibtex-line {
  display: inline-block;
  padding-left: 2em;
  width: calc(100% - 2em);
}

.section-blog-template .blog-body.w-richtext a[href*="arxiv.org"] {
  text-transform: none;
  font-variant: normal;
  letter-spacing: normal;
  font-family: inherit;
  font-size: inherit;
  font-weight: 500;
  color: #35636e;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.section-blog-template .blog-body.w-richtext a[href*="arxiv.org"]:hover {
  color: var(--teal-700);
}

.section-blog-template .blog-body figure {
  border-radius: 0.25rem;
  margin: 1.1rem 0 1.25rem;
  display: block;
  overflow: hidden;
}

/* Shared figure layout modifiers (all blog articles) */
.section-blog-template .blog-body.w-richtext figure.blog-figure-full,
.section-blog-template .blog-body.w-richtext figure.blog-figure-wide {
  max-width: 100%;
  width: 100%;
}

.section-blog-template .blog-body.w-richtext figure.blog-figure-center {
  max-width: 72%;
  margin-left: auto;
  margin-right: auto;
}

.section-blog-template .blog-body.w-richtext figure.blog-figure-transparent,
.section-blog-template .blog-body.w-richtext figure.blog-figure-transparent > div,
.section-blog-template .blog-body.w-richtext figure.blog-figure-transparent img {
  background: transparent !important;
}

.section-blog-template .blog-body.w-richtext figure.blog-figure-transparent {
  margin-top: 1.1rem;
  margin-bottom: 1.25rem;
  border-radius: 0;
  overflow: visible;
}

.section-blog-template .blog-body.w-richtext p.blog-citation-label {
  margin-top: 1.35rem;
  margin-bottom: 0.6rem;
}

.section-blog-template .blog-body.w-richtext p.blog-bibtex-label {
  margin-top: 1.05rem;
  margin-bottom: 0.55rem;
}

/* Block indent — wrap a paragraph or <p><code>…</code> citation/BibTeX block */
.section-blog-template .blog-body.w-richtext p.blog-indent {
  padding-left: 1.5rem;
}

.section-blog-template .blog-body.w-richtext ol.blog-numbered-list {
  list-style: none;
  counter-reset: blog-list;
  margin: 0 0 1rem;
  padding: 0 0 0 2.25rem;
}

.section-blog-template .blog-body.w-richtext ol.blog-numbered-list li {
  position: relative;
  counter-increment: blog-list;
  margin: 0 0 1rem;
  padding-left: 1.75rem;
  font-size: 17px;
  line-height: 1.58;
  letter-spacing: -0.01em;
  color: var(--ink-soft, #3d4a4c);
}

.section-blog-template .blog-body.w-richtext ol.blog-numbered-list li::before {
  content: counter(blog-list) ".";
  position: absolute;
  left: 0;
  font-weight: 500;
  color: var(--ink-soft, #3d4a4c);
}

.section-blog-template .blog-body.w-richtext ol.blog-numbered-list li:last-child {
  margin-bottom: 0;
}

.section-blog-template .blog-body.w-richtext .blog-figure-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.1rem 0 1.25rem;
  background: transparent;
}

.section-blog-template .blog-body.w-richtext .blog-figure-table td {
  vertical-align: top;
  padding: 0 0.375rem;
  background: transparent;
}

.section-blog-template .blog-body.w-richtext .blog-figure-table tr:first-child td:first-child {
  width: 65%;
}

.section-blog-template .blog-body.w-richtext .blog-figure-table tr:first-child td:last-child {
  width: 35%;
}

.section-blog-template .blog-body.w-richtext .blog-figure-table td:first-child {
  padding-left: 0;
}

.section-blog-template .blog-body.w-richtext .blog-figure-table td:last-child {
  padding-right: 0;
}

.section-blog-template .blog-body.w-richtext .blog-figure-table-row--bottom td {
  width: 100%;
  padding: 0.75rem 0 0;
  text-align: center;
}

.section-blog-template .blog-body.w-richtext .blog-figure-table figure {
  max-width: none;
  margin: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.section-blog-template .blog-body.w-richtext .blog-figure-table-row--bottom figure {
  max-width: 72%;
  margin-left: auto;
  margin-right: auto;
}

.section-blog-template .blog-body.w-richtext .blog-figure-table img {
  width: 100%;
  height: auto;
  display: block;
  background: transparent;
}

@media (max-width: 767px) {
  .section-blog-template .blog-body.w-richtext .blog-figure-table,
  .section-blog-template .blog-body.w-richtext .blog-figure-table tbody,
  .section-blog-template .blog-body.w-richtext .blog-figure-table tr,
  .section-blog-template .blog-body.w-richtext .blog-figure-table td {
    display: block;
    width: 100%;
  }

  .section-blog-template .blog-body.w-richtext .blog-figure-table td {
    padding: 0 0 0.75rem;
  }

  .section-blog-template .blog-body.w-richtext .blog-figure-table-row--bottom td {
    padding-top: 0;
  }

  .section-blog-template .blog-body.w-richtext .blog-figure-table-row--bottom figure {
    max-width: 100%;
  }
}

@media (max-width: 1200px) {
  .section-blog-template .blog-body {
    grid-column: 4 / 13;
  }
}

@media (max-width: 991px) {
  .section-blog-template {
    padding-top: 7.5rem;
    padding-bottom: 4.19rem;
  }

  .section-blog-template .blog-template-heading.heading-1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
  }

  .section-blog-template .blog-template-heading-wrap {
    gap: 1.5rem;
  }

  .section-blog-template .blog-main-image-wrap {
    height: 13.75rem;
    margin-top: 1.75rem;
    margin-bottom: 1.5rem;
  }

  .section-blog-template .blog-body {
    grid-column: 3 / 13;
  }

  .section-blog-template .blog-body.w-richtext p,
  .section-blog-template .blog-body.w-richtext ol.blog-numbered-list li {
    font-size: 17px;
  }
}

@media (max-width: 640px) {
  .section-blog-template .blog-body {
    grid-column: 1 / -1;
  }
}
