/* ─── Custom styles for RayON documentation ─── */

/* Hero image on the home page */
.hero-image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 8px;
  margin: 1.5rem 0;
  display: block;
}

/* Full-width hero banner */
.hero-banner {
  text-align: center;
  margin: 0 -1.2rem 2rem;
  overflow: hidden;
  border-radius: 0 0 8px 8px;
}

.hero-banner .hero-svg {
  width: 100%;
  max-width: 900px;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
}

.hero-tagline {
  font-size: 1.1rem;
  font-weight: 600;
  opacity: 0.85;
  margin: 0.8rem auto 0;
  max-width: 600px;
  color: #ffffff;
}

[data-md-color-scheme="default"] .hero-tagline {
  color: #1a1a2e;
}

/* Larger site title in the top nav bar */
.md-header__title .md-header__topic:first-child {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Hide the logo/home icon in the header */
.md-header__button.md-logo {
  display: none;
}

/* Align title left edge with nav tabs content (no logo present) */
.md-header__title {
  margin-left: 0.6rem !important;
}

/* Subtle header: near-black on dark, near-white on light */
[data-md-color-scheme="slate"] .md-header {
  background-color: #0d0f14;
}
[data-md-color-scheme="default"] .md-header {
  background-color: #f0f0f2;
  color: #1a1a2e;
}
[data-md-color-scheme="default"] .md-header .md-header__title {
  color: #1a1a2e;
}
[data-md-color-scheme="default"] .md-tabs {
  background-color: #f0f0f2;
}
[data-md-color-scheme="default"] .md-tabs__link {
  color: #1a1a2e;
}


.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.feature-card {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 8px;
  padding: 1.2rem 1.4rem;
  background: var(--md-code-bg-color);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: var(--md-accent-fg-color);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.8;
  line-height: 1.5;
}

/* Comparison image grid */
.img-grid {
  display: grid;
  gap: 6px;
  margin: 1.5rem 0;
}

.img-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.img-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.img-grid.cols-6 { grid-template-columns: repeat(6, 1fr); }

.img-grid figure {
  margin: 0;
}

.img-grid figure img {
  width: 100%;
  border-radius: 4px;
  display: block;
}

.img-grid figure figcaption {
  font-size: 0.72rem;
  text-align: center;
  opacity: 0.7;
  margin-top: 4px;
  padding: 0 4px;
}

/* Progression strip (horizontal) */
.progression-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  margin: 1.5rem 0;
}

.progression-strip figure {
  margin: 0;
}

.progression-strip figure img {
  width: 100%;
  border-radius: 3px;
}

.progression-strip figcaption {
  font-size: 0.68rem;
  text-align: center;
  opacity: 0.65;
  margin-top: 3px;
}

/* Render showcase image */
.render-img {
  border-radius: 6px;
  display: block;
  width: 100%;
  max-width: 800px;
  margin: 1rem auto;
}

/* Inline formula highlight */
.formula-block {
  background: var(--md-code-bg-color);
  border-left: 4px solid var(--md-accent-fg-color);
  border-radius: 0 4px 4px 0;
  padding: 0.8rem 1.2rem;
  margin: 1rem 0;
  font-size: 1.05rem;
}

/* Wide tables */
.wide-table {
  overflow-x: auto;
  font-size: 0.85rem;
}

/* Material swatch preview */
.material-swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Badge chips */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-done  { background: #1b3a2d; color: #80cbc4; }
.badge-wip   { background: #1a2a3a; color: #90caf9; }
.badge-plan  { background: #1a237e; color: #90caf9; }

/* Responsive: stack image grids on mobile */
@media (max-width: 640px) {
  .img-grid.cols-3,
  .img-grid.cols-6,
  .progression-strip {
    grid-template-columns: 1fr 1fr;
  }
  .img-grid.cols-2 {
    grid-template-columns: 1fr;
  }
  .hero-banner .hero-svg {
    border-radius: 6px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
}
