/* The article inherits the site's reading layout. The diagrams, task films,
   comparison timelines and explanatory notes below are specific to HiNT. */
.hint-page .article-opening .title-phrase { display: inline-block; }

.hint-page .natura-article .article-section-body>:is(p,.rl-popover)+p {
  margin-top: 1em;
}

.hint-page .rl-research-note {
  font-size: 15px;
  line-height: 1.8;
  color: #737871;
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #d7d8ce;
}

.hint-page .natura-article .rl-basemodel-note {
  font-size: 15px;
  line-height: 1.8;
  color: #737871;
  padding-bottom: 18px;
  border-bottom: 1px solid #d7d8ce;
}

.hint-page .rl-overview {
  margin: 0 0 40px;
}

.hint-page video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
  background: #0f1010;
  border-radius: 2px;
}

.hint-page :is(.rl-figure,.rl-task-carousel,.rl-recovery) {
  margin: 28px 0 28px;
}

.hint-page .rl-task-carousel {
  margin-bottom: 0;
}

.hint-page .rl-figure img {
  display: block;
  width: 100%;
  height: auto;
  background: #fcfcfc;
}

.hint-page .rl-figure>a {
  display: block;
}

.hint-page .rl-embedded-figure {
  position: relative;
}

.hint-page .rl-embedded-figure iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 850/506;
  border: 0;
  background: #fcfcfc;
}

.hint-page #figure-results iframe {
  aspect-ratio: 850/1197;
}

.hint-page #figure-components iframe {
  aspect-ratio: 850/444;
}

.hint-page #figure-method iframe {
  aspect-ratio: 1600/1300;
}

.hint-page figcaption {
  font: 400 12px/1.8 "Source Han Sans CN",sans-serif;
  color: #737871;
  margin-top: 12px;
}

.hint-page .rl-task-carousel>.rl-carousel-heading {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.8;
  color: #626862;
}

.hint-page .rl-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 8px 0 0;
  font-size: 12px;
  color: #6f726b;
  font-family: 'Instrument Sans',sans-serif;
  font-variant-numeric: tabular-nums;
}

.hint-page .rl-carousel-controls button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #caccbf;
  border-radius: 50%;
  font-size: 20px;
  background: transparent;
  color: #242525;
  cursor: pointer;
  transition: background .15s;
}

.hint-page .rl-carousel-controls button:hover {
  background: #e9eae2;
}

.hint-page .rl-carousel-controls button:disabled {
  opacity: .3;
  cursor: default;
}

.hint-page .rl-carousel-controls button:focus-visible,
.hint-page .rl-carousel-track:focus-visible,
.hint-page .rl-term:focus-visible {
  outline: 2px solid #8872a4;
  outline-offset: 4px;
}

.hint-page .rl-carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0;
  overscroll-behavior-x: contain;
}

.hint-page .rl-carousel-track::-webkit-scrollbar {
  display: none;
}

.hint-page .rl-task-slide {
  flex: 0 0 92%;
  min-width: 0;
  scroll-snap-align: start;
}

.hint-page .rl-task-carousel.is-ready .rl-task-slide {
  transition: opacity .35s ease;
}

.hint-page .rl-task-carousel.is-ready .rl-task-slide:not(.is-current) {
  opacity: .42;
  cursor: pointer;
}

.hint-page .rl-task-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.75;
  color: #626862;
}

.hint-page .rl-task-caption strong {
  font-size: 18px;
  font-weight: 500;
  color: #242525;
}

.hint-page .rl-recovery-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px;
}

.hint-page .rl-recovery-grid>div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  container-type: inline-size;
}

.hint-page .rl-recovery-frame {
  position: relative;
  flex: none;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 2px;
}

.hint-page .rl-recovery-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hint-page .rl-video-label {
  flex: 1;
  font-size: min(16px,3.6cqw);
  white-space: nowrap;
  line-height: 1.6;
  margin-bottom: 12px;
  color: #6f726b;
}

.hint-page .rl-results-list {
  padding-left: 1.35em;
  margin: 22px 0;
}

.hint-page .rl-results-list li {
  padding-left: .25em;
  margin: 12px 0;
}

.hint-page .rl-equation {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  padding: 12px 0;
  margin: 14px 0;
  font-size: .96em;
}

.hint-page .rl-equation .katex-display {
  margin: .4em 0;
}

.hint-page .rl-equation .katex-display>.katex {
  text-align: center;
}

.hint-page .rl-math .katex {
  font-size: 1.05em;
}

.hint-page .rl-math-boundary {
  white-space: nowrap;
}

.hint-page .natura-article .katex {
  text-align-last: auto;
}

.hint-page .rl-term {
  display: inline;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  color: #665478;
  font: inherit;
  line-height: inherit;
  text-decoration: underline dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: help;
}

.hint-page .rl-term:hover,
.hint-page .rl-term[aria-expanded="true"] {
  color: #483658;
  text-decoration-style: solid;
}

.hint-page .rl-popover[hidden] {
  display: none!important;
}

.hint-page .rl-popover {
  position: fixed;
  z-index: 50;
  box-sizing: border-box;
  width: min(620px,calc(100vw - 32px));
  max-height: min(65vh,520px);
  padding: 18px 22px;
  background: #fafaf6;
  border: 1px solid #d7d8ce;
  border-radius: 5px;
  box-shadow: 0 8px 28px #2425251c;
  overflow: auto;
  overscroll-behavior: contain;
  color: #424641;
  font: 400 15px/1.8 "Source Han Sans CN",sans-serif;
  outline-offset: 3px;
}

.hint-page .rl-popover {
  transition: opacity .16s ease,translate .16s ease,display .16s allow-discrete;
}

.hint-page .rl-popover[hidden] {
  opacity: 0;
  translate: 0 4px;
  pointer-events: none;
}

@starting-style {
  .hint-page .rl-popover:not([hidden]) {
    opacity: 0;
    translate: 0 4px;
  }
}

.hint-page .rl-popover p {
  margin: 0 0 12px!important;
}

.hint-page .rl-popover p:last-child {
  margin-bottom: 0!important;
}

.hint-page .rl-popover .rl-equation {
  font-size: .9em;
  margin: 10px 0;
  padding: 6px 0;
}

@media(max-width:600px) {
  .hint-page #figure-flow iframe {
    aspect-ratio: 350/486;
  }

  .hint-page #figure-results iframe {
    aspect-ratio: 350/1464;
  }

  .hint-page #figure-components iframe {
    aspect-ratio: 350/347;
  }
}

@media(max-width:600px) {
  .hint-page #figure-method {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: #b4b6a8 transparent;
    -webkit-overflow-scrolling: touch;
  }

  .hint-page #figure-method iframe {
    width: 760px;
    max-width: none;
  }
}

@media(max-width:600px) {
  .hint-page .rl-recovery-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hint-page .rl-task-slide {
    flex-basis: 95%;
  }

  .hint-page .rl-carousel-controls {
    gap: 10px;
  }

  .hint-page .rl-task-caption {
    display: block;
  }

  .hint-page .rl-task-caption span {
    display: block;
    margin-top: 5px;
  }

  .hint-page .rl-popover {
    padding: 14px;
    font-size: 14px;
  }

  .hint-page .rl-equation {
    font-size: .78em;
  }
}

@media(prefers-reduced-motion:reduce) {
  .hint-page .rl-carousel-track {
    scroll-behavior: auto;
  }
}

.hint-page .rl-video-progress {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  padding: 10px 14px 14px;
  pointer-events: none;
  color: #f4f6f4;
  background: linear-gradient(to bottom,rgba(13,25,26,.6),rgba(13,25,26,.32) 65%,transparent);
  font: 12px/1.5 'Instrument Sans','Source Han Sans CN',sans-serif;
}

.hint-page .rl-timeline {
  position: relative;
  height: 28px;
  margin: 0 14px;
}

.hint-page .rl-timeline-track {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 2px;
  background: rgba(245,248,246,.42);
  overflow: hidden;
}

.hint-page .rl-timeline-track>span {
  display: block;
  width: 0;
  height: 100%;
  background: #c6dfcf;
  transition: width .14s linear;
}

.hint-page .rl-timeline-node {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  pointer-events: none;
}

.hint-page .rl-node-symbol {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1.8px solid #e5eee8;
  border-radius: 50%;
  background: #223632bb;
  color: #edf4ef;
  font: 600 19px/1 Arial,sans-serif;
  transition: background .2s,color .2s;
}

.hint-page .rl-success-node {
  left: 100%;
}

.hint-page .rl-success-node .rl-node-caption {
  left: auto;
  right: -2px;
  transform: none;
}

.hint-page .rl-success-node.is-reached .rl-node-symbol {
  color: #234b32;
  background: #b8d9c1;
  border-color: #b8d9c1;
}

.hint-page .rl-recover-node .rl-node-symbol {
  color: #f2e7c4;
  border-color: #e6d7a9;
}

.hint-page .rl-recover-node.is-reached .rl-node-symbol {
  background: #d9cc91;
  border-color: #c6b877;
  color: #685827;
}

.hint-page .rl-recover-node.is-current .rl-node-symbol {
  box-shadow: 0 0 0 4px #d9cc9140;
}

@media(prefers-reduced-motion:reduce) {
  .hint-page .rl-timeline-track>span,
  .hint-page .rl-node-symbol {
    transition: none;
  }
}

.hint-page .rl-start-node {
  left: 0;
}

.hint-page .rl-start-node .rl-node-symbol {
  background: #c6dfcf;
  border-color: #c6dfcf;
  color: #365444;
}

.hint-page .rl-beta-values {
  white-space: nowrap;
}

.hint-page .rl-beta-values .katex {
  font-size: 1em;
}

.hint-page .rl-para-break {
  white-space: pre;
}

.hint-page .rl-para-break::after {
  content: "\A\A";
}

.hint-page .rl-cite {
  font-size: .7em;
  vertical-align: super;
  line-height: 0;
  margin: 0 .12em;
}

.hint-page .rl-cite a {
  color: #3d709f;
  text-decoration: none;
  transition: color .15s;
}

.hint-page .rl-cite a:hover {
  color: #295276;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hint-page .rl-flow-card {
  border-top: 2.5px solid #242525;
  width: min(650px,calc(100vw - 32px));
  font-size: 14px;
}

.hint-page .rl-flow-card h4 {
  font-size: 17px;
  line-height: 1.5;
  margin: 4px 0 14px;
  font-weight: 500;
  color: #242525;
}

.hint-page .rl-card-eyebrow {
  font: 500 10px/1.6 "Source Han Sans CN",sans-serif;
  letter-spacing: .1em;
  color: #6f726b;
  margin-bottom: 6px;
}

.hint-page .rl-flow-card a {
  color: #3d709f;
  text-decoration: underline;
  text-decoration-color: rgba(61,112,159,.4);
  text-underline-offset: 3px;
}

.hint-page .rl-flow-card a:hover {
  color: #295276;
  text-decoration-color: currentColor;
}

.hint-page .rl-flow-card .rl-equation {
  font-size: .86em;
}

.hint-page .rl-references {
  margin: 50px 0 42px;
  padding: 22px 24px;
  border: 1px solid #d7d8ce;
  border-left: 2.5px solid #242525;
  border-radius: 2px;
  background: #f7f7f4;
  font-size: 13px;
  line-height: 1.9;
  color: #424641;
}

.hint-page .rl-references h2 {
  font: 500 20px/1.5 "Source Han Sans CN",sans-serif;
  margin: 0 0 16px;
  color: #242525;
}

.hint-page .rl-references ol {
  padding-left: 22px;
  margin: 0;
}

.hint-page .rl-references li {
  margin: 12px 0;
  overflow-wrap: anywhere;
}

.hint-page .rl-references li::marker {
  color: #6f726b;
}

.hint-page .rl-references a {
  color: #3d709f;
  text-decoration: underline;
  text-decoration-color: rgba(61,112,159,.36);
  text-underline-offset: 3px;
  transition: color .15s,text-decoration-color .15s;
}

.hint-page .rl-references a:hover {
  color: #295276;
  text-decoration-color: currentColor;
}

.hint-page .rl-references li:target {
  animation: rl-reference-mark 2.6s ease-out;
}

@keyframes rl-reference-mark {0%,30%{background:#e8e6d8;box-shadow:0 0 0 6px #e8e6d8}100%{background:transparent;box-shadow:0 0 0 6px transparent}}

@media(prefers-reduced-motion:reduce) {
  .hint-page .rl-references li:target {
    animation: none;
  }
}

.hint-page :is(.natura-subsection-heading,.rl-references,.rl-references li) {
  scroll-margin-top: 110px;
}

@media(max-width:600px) {
  .hint-page .rl-references {
    padding: 17px 18px;
    font-size: 12px;
  }

  .hint-page .rl-flow-card {
    font-size: 13px;
  }

  .hint-page .rl-flow-card h4 {
    font-size: 16px;
  }

  .hint-page .rl-flow-card .rl-equation {
    font-size: .77em;
  }
}

html[lang="en"] .hint-page :is(.rl-popover, .rl-card-eyebrow, .rl-task-caption, .rl-carousel-heading, .rl-video-label, figcaption) {
  font-family: var(--sans, 'Instrument Sans', Arial, sans-serif);
}
