/* User Provided Stylesheet */

/* Theme */

.myst-fm-downloads-button,
.myst-made-with-myst {
  display: none;
}

.only-dark,
html.dark .only-light {
  display: none !important;
}

html.dark .only-dark {
  display: block !important;
}

/* Top bar */

.myst-search-bar {
  width: 7.5rem !important;
}

.myst-search-bar kbd {
  display: none !important;
}

/* Page titles */

.myst-fm-block-title {
  color: #023d6b;
}

html.dark .myst-fm-block-title {
  color: #6fb3e0;
}

/* Case study gallery */

.case-study-filter {
  margin: 1rem 0;
}

.case-study-filter input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background: transparent;
  color: inherit;
}

.case-study-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.625rem;
}

.case-study-tags button {
  padding: 0.125rem 0.625rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  font-size: 0.8rem;
}

.case-study-tags button.active {
  background: #023d6b;
  border-color: #023d6b;
  color: #ffffff;
}

.case-study-library .myst-card-body img {
  max-height: 160px;
  object-fit: contain;
}

.case-study-library .myst-card {
  margin: 0;
}

.case-study-library .myst-card-header {
  font-size: 0.95rem;
}

.case-study-library .myst-card-body p {
  font-size: 0.875rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-study-library .myst-card-footer {
  font-size: 0.8rem;
}

/* Tables */

/* Commands, names in the first column and links in the last column of tables stay on one line. */
table code,
table td:first-child,
table td:last-child .link-text {
  white-space: nowrap;
}

/* Installation page */

/* The Python versions badge sits on top of the install command, like a label. */
.install-badge p {
  margin: 0 0 -0.5rem;
}

.install-badge img {
  display: inline;
  margin: 0 !important;
}

/* Buttons */

a.button {
  display: inline-block;
  margin: 0.25rem 0.5rem 0.25rem 0;
  padding: 0.5rem 1.25rem !important;
  border-radius: 0.375rem !important;
  background: #023d6b !important;
  color: #ffffff !important;
  font-weight: 600;
  text-decoration: none !important;
}

a.button:hover {
  background: #0a5596 !important;
}

/* Landing page */

.landing-hero {
  grid-template-columns: 1fr !important;
  margin: 0;
  padding: 3rem 0 1rem;
}

.landing-hero > div:first-child {
  grid-area: 1 / 1;
  align-self: start;
  position: relative;
  z-index: 1;
  max-width: 28rem;
}

.landing-hero > div:first-child > :last-child {
  margin-bottom: 0;
}

.landing-hero a.button {
  margin-bottom: 0;
  vertical-align: top;
  font-size: 1.125rem;
}

.landing-hero h1,
.landing-hero h2 {
  font-size: 2.5rem !important;
  line-height: 1.15 !important;
  color: #023d6b !important;
  margin: 0 0 1rem !important;
}

.landing-hero p {
  font-size: 1rem;
}

html.dark .landing-hero h1,
html.dark .landing-hero h2 {
  color: #6fb3e0 !important;
}

.landing-hero > div:first-child > * {
  animation: landing-rise 0.9s ease-out 0.5s both;
}

.landing-hero > div:first-child > :nth-child(2) {
  animation-delay: 0.6s;
}

.landing-hero > div:first-child > :nth-child(3) {
  animation-delay: 0.7s;
}

@keyframes landing-rise {
  from { opacity: 0; transform: translateX(-12px); }
}

@media (prefers-reduced-motion: reduce) {
  .landing-hero * { animation: none !important; }
}

.landing-hero > .landing-chromatogram {
  grid-area: 1 / 1;
  align-self: end;
  justify-self: end;
  aspect-ratio: 69 / 18.45;
  width: calc(100% - 11.5rem);
  /* Center the band on the button: half the button height up, minus half the band
     thickness (0.65 of the 18.45 units the graphic is tall). */
  transform: translateY(calc(0.65 / 18.45 * 100% - 23.75px));
  pointer-events: none;
}

@media (max-width: 900px) {
  .landing-hero > div:first-child,
  .landing-hero > .landing-chromatogram {
    grid-area: auto;
  }

  .landing-hero > div:first-child {
    max-width: none;
  }

  .landing-hero > .landing-chromatogram {
    justify-self: stretch;
    width: 100%;
    margin: 2rem 0 0;
    transform: none;
  }
}

.landing-section {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid #e2e8f0;
}

.landing-section h3 {
  margin: 0 0 1.5rem !important;
  font-size: 1.5rem !important;
  color: #023d6b !important;
}

.landing-section > .myst-grid {
  margin: 0 !important;
}

html.dark .landing-section {
  border-top-color: #2a3441;
}

html.dark .landing-section h3 {
  color: #6fb3e0 !important;
}

.landing-intro {
  align-items: start;
  column-gap: 3rem;
  margin: 0 !important;
}

.landing-intro p:first-child {
  margin-top: 0;
}

.landing-platform {
  aspect-ratio: 1000 / 412;
  width: 100%;
  max-width: 1000px;
  margin: 3rem auto 2rem;
}

.landing-about {
  align-items: stretch;
  column-gap: 3rem;
}

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

.landing-about > div:first-child > p:last-child {
  margin-bottom: 0;
}

.landing-facts {
  grid-auto-rows: 1fr;
  gap: 0.75rem;
  /* Line up with the first and last line of the text, not with its line spacing. */
  margin: 0.2rem 0 0.2rem !important;
}

.landing-facts > div {
  padding: 0.6rem 0.9rem;
  border-left: 3px solid #9fbcd6;
  border-radius: 0 0.5rem 0.5rem 0;
  background: #f4f7fa;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #475569;
}

.landing-facts p {
  margin: 0;
}

.landing-facts strong {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 1.05rem;
  color: #023d6b;
}

html.dark .landing-facts > div {
  border-left-color: #46617e;
  background: #1a2230;
  color: #94a3b8;
}

html.dark .landing-facts strong {
  color: #6fb3e0;
}

.landing-timeline {
  aspect-ratio: 1000 / 608;
  width: 100%;
  max-width: 1000px;
  margin: 1.5rem auto 0;
}

.landing-fair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
}

.landing-fair p {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0;
  font-size: 1.05rem;
  color: #334155;
}

.landing-fair strong {
  width: 1.75rem;
  font-size: 2.25rem;
  line-height: 1;
  color: #7fa8d0;
}

html.dark .landing-fair p {
  color: #cbd5e1;
}

html.dark .landing-fair strong {
  color: #35648f;
}

.landing-pipeline {
  aspect-ratio: 1000 / 185;
  width: 100%;
  max-width: 1000px;
  margin: 2rem auto 3rem;
}

/* Cards on the landing page and news page */

.landing-cards .myst-card,
.news-list .myst-card {
  margin: 0;
  border-color: #dbe3ec;
  border-radius: 0.5rem;
  box-shadow: none !important;
}

.landing-cards .myst-card {
  position: relative;
}

.landing-cards .card-logo {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  width: 1.6rem;
  height: 1.6rem;
  margin: 0 !important;
}

.landing-cards .myst-card-title {
  padding-top: 0.75rem;
  color: #023d6b;
}

.landing-cards .myst-card-body p {
  font-size: 0.9rem;
}

.landing-cards a.myst-card:hover,
.news-list a.myst-card:hover {
  border-color: #9fbcd6;
}

html.dark .landing-cards .myst-card,
html.dark .news-list .myst-card {
  border-color: #2a3441;
}

html.dark .landing-cards .myst-card-title {
  color: #6fb3e0;
}

html.dark .landing-cards a.myst-card:hover,
html.dark .news-list a.myst-card:hover {
  border-color: #46617e;
}

.landing-footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.875rem;
  color: #64748b;
}

html.dark .landing-footer {
  border-top-color: #2a3441;
  color: #94a3b8;
}

.news-list .myst-card-body p {
  font-size: 0.875rem;
}

.news-list .myst-card-footer {
  font-size: 0.8rem;
}

/* Community page */

.community-involved h2 {
  margin: 0 0 1rem !important;
  font-size: 1.25rem !important;
  color: #023d6b !important;
}

html.dark .community-involved h2 {
  color: #6fb3e0 !important;
}

.community-steps {
  display: grid;
  gap: 1rem;
  padding-left: 1.75rem;
}

.community-steps p {
  position: relative;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #475569;
}

.community-steps p::before {
  content: "";
  position: absolute;
  left: -1.75rem;
  top: 0.3rem;
  width: 0.75rem;
  height: 0.75rem;
  border: 2px solid #9fbcd6;
  border-radius: 50%;
  background: #ffffff;
}

.community-steps p:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(-1.375rem - 1px);
  top: 1.05rem;
  bottom: -1.3rem;
  border-left: 2px dotted #9fbcd6;
}

.community-steps strong {
  display: block;
  font-size: 1.05rem;
  color: #023d6b;
}

.community-steps a {
  color: #0a5596;
  font-weight: 600;
  text-decoration: none;
}

.community-steps a:hover {
  text-decoration: underline;
}

.community-steps .link-icon {
  display: none !important;
}

html.dark .community-steps p::after {
  border-left-color: #46617e;
}

html.dark .community-steps p {
  color: #94a3b8;
}

html.dark .community-steps p::before {
  border-color: #46617e;
  background: #1a2230;
}

html.dark .community-steps strong {
  color: #9fcbef;
}

html.dark .community-steps a {
  color: #6fb3e0;
}

.community-ring {
  aspect-ratio: 840 / 640;
  width: 100%;
  max-width: 880px;
  margin: 1.5rem auto 0;
}

/* Notebook outputs */

.jupyter-output,
.myst-jp-safe-output-text {
  max-height: 24rem;
  padding: 0.75rem 1rem !important;
  border-left: 4px solid #94a3b8;
  border-radius: 0.25rem;
  background: #f3f6f9;
  overflow: auto;
  font-weight: 400 !important;
}

html.dark .jupyter-output,
html.dark .myst-jp-safe-output-text {
  border-left-color: #64748b;
  background: #1e293b;
}

html.dark .myst-jp-nb-block img {
  padding: 0.5rem;
  border-radius: 0.375rem;
  background: #ffffff;
}
