/*
 * InFlux Home page presentation.
 *
 * The shared site.css remains authoritative for typography, link colors,
 * buttons, and public-page spacing. Home-specific rules are limited to the
 * reviewed title panel, responsive videos, publication layout, citations,
 * and changelog.
 */

.ifx-home-hero {
  margin: 10px 0 24px;
  padding: 38px 42px 40px;
  border: 1px solid #cfcdc8;
  border-top: 5px solid var(--ifx-orange);
  border-radius: 6px;
  background: linear-gradient(135deg, #f3f3f1 0%, #e6e6e3 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.ifx-page .ifx-home-hero h1 {
  max-width: 1050px;
  margin: 0;
  color: var(--ifx-black);
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.ifx-home-media {
  max-width: 960px;
  margin: 24px auto 30px;
}

.ifx-home-media video,
.ifx-home-embed,
.ifx-home-embed iframe {
  display: block;
  width: 100%;
  max-width: 100%;
}

.ifx-home-media video {
  height: auto;
  border-radius: 4px;
  background: #111;
}

.ifx-home-embed {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  background: #111;
}

.ifx-home-embed iframe {
  position: absolute;
  inset: 0;
  height: 100%;
  border: 0;
}

/* Bootstrap's existing .well class supplies the gray box, border, and padding. */
.ifx-paper-preview {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin: 22px 0 28px;
}

.ifx-paper-preview-thumb {
  flex: 0 0 180px;
}

.ifx-paper-preview-thumb img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--ifx-line);
  background: var(--ifx-surface);
}

.ifx-paper-preview-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.ifx-paper-preview-copy h3 {
  margin-top: 0;
}

.ifx-paper-preview-copy p:last-of-type {
  margin-bottom: 0;
}

.ifx-home-page pre {
  max-width: 100%;
  overflow-x: auto;
}

.ifx-home-page .changelog-wrap {
  max-width: none;
  margin: 0;
}

.ifx-home-page ul.changelog {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ifx-line-light);
  list-style: none;
}

.ifx-home-page ul.changelog li {
  position: relative;
  margin: 0;
  padding: 12px 16px 12px 28px;
  border-bottom: 1px solid var(--ifx-line-light);
  line-height: 1.3;
}

.ifx-home-page ul.changelog li::before {
  position: absolute;
  top: 18px;
  left: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ifx-muted);
  content: "";
}

.ifx-home-page .changelog .version {
  font-weight: 700;
}

.ifx-home-page .changelog .date {
  float: right;
  color: var(--ifx-muted);
  font-size: 90%;
}

@media (max-width: 979px) {
  .ifx-page .ifx-home-hero h1 {
    font-size: 40px;
  }
}

@media (max-width: 767px) {
  .ifx-home-hero {
    padding: 26px 24px 28px;
  }

  .ifx-page .ifx-home-hero h1 {
    font-size: 32px;
    line-height: 1.12;
  }

  .ifx-paper-preview {
    display: block;
  }

  .ifx-paper-preview-thumb {
    display: block;
    width: 150px;
    margin: 0 auto 16px;
  }

  .ifx-home-page .changelog .date {
    float: none;
    display: block;
    margin-top: 4px;
  }
}

@media (max-width: 480px) {
  .ifx-page .ifx-home-hero h1 {
    font-size: 28px;
  }
}
