/* VirMolAnalyte V2.0 docs - scientific interface styling */
:root {
  --vma-ink: #18282f;
  --vma-muted: #65747c;
  --vma-panel: #f7fafb;
  --vma-line: #d7e2e5;
  --vma-accent: #2f6f6a;
  --vma-accent-2: #345f8c;
  --vma-accent-3: #b4822b;
  --vma-header: #244e57;
  --vma-grid: rgba(47, 111, 106, 0.08);
  --vma-shadow: 0 12px 34px rgba(25, 45, 52, 0.11);
}

[data-md-color-scheme="slate"] {
  --vma-ink: #e7eff1;
  --vma-muted: #a9bbc1;
  --vma-panel: #18252c;
  --vma-line: rgba(188, 211, 218, 0.18);
  --vma-accent: #6fc4ba;
  --vma-accent-2: #8fb7e7;
  --vma-accent-3: #d4ae67;
  --vma-header: #15323a;
  --vma-grid: rgba(111, 196, 186, 0.08);
  --vma-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}

body {
  background:
    linear-gradient(var(--vma-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--vma-grid) 1px, transparent 1px);
  background-size: 28px 28px;
}

.md-header,
.md-tabs {
  background: var(--vma-header);
}

.md-header {
  box-shadow: 0 2px 18px rgba(18, 42, 48, 0.22);
}

.md-header__inner {
  min-height: 6.6rem;
}

.md-header__button.md-logo {
  display: flex;
  align-items: center;
  width: auto;
  height: 6.6rem;
  margin: 0 1rem 0 0.2rem;
  padding: 0.3rem 0;
}

.md-header__button.md-logo img {
  width: auto;
  height: 5.7rem;
}

.md-header__title {
  display: none;
}

.md-nav__button.md-logo img {
  width: auto;
  height: 4.5rem;
}

.md-tabs {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.md-main__inner {
  margin-top: 1rem;
}

.md-content__inner {
  color: var(--vma-ink);
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
  font-weight: 720;
  letter-spacing: 0;
}

.md-typeset h1 {
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--vma-line);
}

.md-typeset h2 {
  margin-top: 2rem;
}

.md-typeset h2::before {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.45rem;
  border: 2px solid var(--vma-accent);
  border-radius: 50%;
  content: "";
  transform: translateY(-0.05rem);
}

.md-typeset a {
  color: var(--vma-accent-2);
}

.md-typeset .md-button {
  border-radius: 0.25rem;
  border-color: var(--vma-accent);
  color: var(--vma-accent);
  font-weight: 700;
}

.md-typeset .md-button:hover,
.md-typeset .md-button:focus {
  border-color: var(--vma-accent-2);
  background: rgba(52, 95, 140, 0.08);
  color: var(--vma-accent-2);
}

.md-typeset .md-button--primary {
  border-color: var(--vma-accent);
  background: var(--vma-accent);
  color: #fff;
}

.md-typeset table:not([class]) {
  border: 1px solid var(--vma-line);
  box-shadow: 0 5px 18px rgba(25, 45, 52, 0.06);
}

.md-typeset table:not([class]) th {
  background: rgba(47, 111, 106, 0.1);
  color: var(--vma-ink);
  font-weight: 720;
}

.md-typeset table:not([class]) td,
.md-typeset table:not([class]) th {
  border-top: 1px solid var(--vma-line);
}

.md-typeset code {
  border: 1px solid rgba(47, 111, 106, 0.18);
  border-radius: 0.22rem;
}

.md-typeset .admonition,
.md-typeset details {
  border-radius: 0.35rem;
  border-color: var(--vma-line);
  box-shadow: 0 6px 20px rgba(25, 45, 52, 0.07);
}

/* Home page hero */
.vma-doc-hero {
  position: relative;
  min-height: clamp(420px, 58vh, 620px);
  margin: 0.35rem 0 1.4rem;
  overflow: hidden;
  border: 1px solid var(--vma-line);
  border-radius: 0.6rem;
  background: #101b20;
  box-shadow: var(--vma-shadow);
}

.vma-doc-hero > p {
  height: 100%;
  margin: 0;
}

.vma-doc-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  filter: saturate(0.92) contrast(1.08);
}

.vma-doc-hero::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 24, 28, 0.92), rgba(10, 24, 28, 0.66) 44%, rgba(10, 24, 28, 0.2)),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
  content: "";
}

.vma-doc-hero__copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: clamp(2rem, 5vw, 4rem);
  color: #eef7f7;
}

.vma-doc-hero__copy h2 {
  margin: 0 0 0.8rem;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
}

.vma-doc-hero__copy h2::before {
  display: none;
}

.vma-doc-hero__copy p {
  max-width: 620px;
  margin: 0 0 1.25rem;
  color: rgba(238, 247, 247, 0.9);
  font-size: 1.02rem;
  line-height: 1.65;
}

.vma-doc-hero__copy .md-button {
  margin-right: 0.45rem;
  margin-bottom: 0.45rem;
  color: #e9fbf8;
}

.vma-doc-hero__copy .md-button:not(.md-button--primary) {
  border-color: rgba(255, 255, 255, 0.72);
}

.vma-doc-hero--quick {
  min-height: clamp(520px, 66vh, 720px);
}

.vma-doc-hero--modules {
  min-height: clamp(360px, 46vh, 500px);
}

.vma-doc-hero--modules .vma-doc-hero__copy {
  max-width: 760px;
}

.vma-doc-hero--modules .vma-doc-hero__copy h2 {
  font-size: clamp(2rem, 3.2vw, 3rem);
}

.vma-signal-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.75rem;
}

.vma-signal-strip > div {
  position: relative;
  min-height: 5.3rem;
  padding: 0.85rem 0.95rem 0.8rem;
  border: 1px solid var(--vma-line);
  border-top: 3px solid var(--vma-accent);
  border-radius: 0.35rem;
  background: var(--md-default-bg-color);
  box-shadow: 0 6px 18px rgba(25, 45, 52, 0.07);
}

.vma-signal-strip > div:nth-child(2) {
  border-top-color: var(--vma-accent-2);
}

.vma-signal-strip > div:nth-child(3) {
  border-top-color: var(--vma-accent-3);
}

.vma-signal-strip strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--vma-ink);
  font-size: 0.92rem;
}

.vma-signal-strip p {
  margin: 0;
  color: var(--vma-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--vma-line);
  border-radius: 0.4rem;
  padding: 1.05rem 1.1rem;
  background: var(--md-default-bg-color);
  box-shadow: 0 8px 24px rgba(25, 45, 52, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.hero-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--vma-accent), var(--vma-accent-2), var(--vma-accent-3));
  content: "";
}

.hero-card:hover {
  border-color: rgba(47, 111, 106, 0.55);
  box-shadow: var(--vma-shadow);
  transform: translateY(-2px);
}

.hero-card h3 {
  margin-top: 0.25rem;
  font-size: 1.02rem;
}

.hero-card p {
  margin-bottom: 0.8rem;
  color: var(--vma-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.hero-card a.md-button {
  margin-top: 0.2rem;
}

/* About - technical roadmap figure */
.vma-roadmap-hero {
  margin: 1.25rem 0 1.5rem;
  padding: 1rem 1.25rem 1.25rem;
  border: 1px solid var(--vma-line);
  border-radius: 0.5rem;
  background: var(--md-default-bg-color);
  box-shadow: var(--vma-shadow);
  text-align: center;
}

.vma-roadmap-img {
  display: block;
  width: 100%;
  max-width: 960px;
  height: auto;
  margin: 0 auto;
  border-radius: 0.35rem;
}

.vma-roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 1rem;
}

.vma-roadmap-panel {
  border: 1px solid var(--vma-line);
  border-left: 4px solid var(--vma-accent);
  border-radius: 0.4rem;
  padding: 1rem 1.15rem;
  background: var(--md-default-bg-color);
  box-shadow: 0 6px 18px rgba(25, 45, 52, 0.07);
}

.vma-roadmap-panel h3 {
  margin-top: 0;
  color: var(--vma-accent);
  font-size: 1rem;
}

.vma-roadmap-panel p:last-child {
  margin-bottom: 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.vma-roadmap-panel--v1 {
  border-left-color: #5a7a94;
}

.vma-roadmap-panel--v2 {
  border-left-color: var(--vma-accent);
}

.vma-version-tag {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.15rem 0.55rem;
  border-radius: 0.18rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.vma-version-tag--v1 {
  color: #3d5a66;
  background: rgba(90, 122, 148, 0.15);
}

.vma-version-tag--v2 {
  color: #1e4a45;
  background: rgba(47, 111, 106, 0.18);
}

/* Module screenshot gallery */
.vma-screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.1rem;
  margin: 1.25rem 0 2rem;
}

.vma-screenshot-grid figure {
  margin: 0;
}

.vma-screenshot-grid img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--vma-line);
  border-radius: 0.35rem;
  background: var(--md-default-bg-color);
  box-shadow: var(--vma-shadow);
}

.vma-screenshot-grid figcaption {
  margin-top: 0.4rem;
  color: var(--vma-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.vma-tutorial-video {
  display: block;
  width: 100%;
  max-width: 960px;
  height: auto;
  margin: 1rem auto 1.25rem;
  border: 1px solid var(--vma-line);
  border-radius: 0.45rem;
  background: #000;
  box-shadow: var(--vma-shadow);
}

.vma-video-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

.vma-video-card {
  width: 100%;
  max-width: 960px;
  margin: 0;
  padding: 0.85rem;
  border: 1px solid var(--vma-line);
  border-radius: 0.45rem;
  background: var(--md-default-bg-color);
  box-shadow: 0 8px 24px rgba(25, 45, 52, 0.07);
}

.vma-video-card .vma-tutorial-video {
  margin: 0;
  box-shadow: none;
}

.vma-video-card figcaption {
  margin: 0.75rem 0 0;
  color: var(--vma-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.vma-video-card figcaption strong {
  color: var(--vma-ink);
}

@media screen and (max-width: 760px) {
  .vma-doc-hero {
    min-height: 520px;
  }

  .vma-doc-hero::after {
    background:
      linear-gradient(180deg, rgba(10, 24, 28, 0.94), rgba(10, 24, 28, 0.68) 68%, rgba(10, 24, 28, 0.26)),
      linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: auto, 30px 30px, 30px 30px;
  }

  .vma-doc-hero__copy {
    padding: 1.4rem;
  }

  .vma-doc-hero--quick {
    min-height: 560px;
  }

  .vma-doc-hero--modules {
    min-height: 460px;
  }
}
