/* ==========================================================================
   research.html — page-specific styles (extends tokens from mytheme.css)
   ========================================================================== */

/* Tab switcher: only one of "what"/"how" is shown at a time */
.vl-subnav {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  padding: 1.1rem 0;
  background: var(--vl-surface);
  border-bottom: 1px solid var(--vl-border);
}

.vl-subnav a {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vl-text-dim);
  text-decoration: none;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.vl-subnav a:hover {
  color: var(--vl-text);
  border-color: var(--vl-signal);
}

.vl-subnav a.active {
  color: var(--vl-text);
  border-color: var(--vl-signal);
}

.vl-tab-panel {
  display: none;
}

.vl-tab-panel.is-active {
  display: block;
}

/* Framing statement beneath the subnav */
.vl-intro-statement {
  font-family: 'DM Serif Display', 'Georgia', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.55;
  color: var(--vl-text);
  text-align: center;
  max-width: 740px;
  margin: 0 auto;
}

/* Small uppercase category tag above a topic heading */
.vl-kicker {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vl-signal);
  margin-bottom: 0.6rem;
}

/* The page's one recurring pattern — a thumbnail, a kicker, a title,
   a paragraph, divided by hairlines. Used for both "what" and "how"
   so the two lenses read as one system rather than two templates. */
.vl-method-list {
  max-width: 960px;
  margin: 0 auto;
  border-top: 1px solid var(--vl-border);
}

.vl-method-row {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--vl-border);
}

.vl-method-media {
  flex: 0 0 120px;
  width: 120px;
  height: 120px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--vl-void);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vl-method-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vl-method-media svg {
  width: 60%;
  height: 60%;
  color: var(--vl-signal);
}

.vl-method-body {
  flex: 1 1 auto;
}

.vl-method-body .vl-kicker {
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.vl-method-title {
  font-family: 'DM Serif Display', 'Georgia', serif;
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--vl-text);
  margin: 0 0 0.6rem;
}

.vl-method-body p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--vl-text);
  text-align: left;
}

/* Supplementary media nested inside a row's body (e.g. the Autism
   demonstration video) — sits below the main paragraph, not squeezed
   into the fixed thumbnail slot. */
.vl-method-extra {
  margin-top: 1.5rem;
  max-width: 420px;
}

.vl-method-extra video {
  display: block;
  width: 100%;
  border-radius: 4px;
}

.vl-method-extra-caption {
  margin-top: 0.75rem !important;
  font-size: 0.9rem !important;
  color: var(--vl-text-dim);
}

@media (min-width: 992px) {
  .vl-method-list {
    max-width: 1040px;
  }

  .vl-method-row {
    gap: 3rem;
    padding: 3rem 0;
  }

  .vl-method-media {
    flex-basis: 180px;
    width: 180px;
    height: 180px;
  }

  .vl-method-body .vl-kicker {
    font-size: 0.85rem;
  }

  .vl-method-title {
    font-size: 1.75rem;
  }

  .vl-method-body p {
    font-size: 1.08rem;
  }

  .vl-method-extra {
    max-width: 480px;
  }
}

@media (max-width: 640px) {
  .vl-method-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .vl-method-media {
    width: 96px;
    height: 96px;
    flex-basis: 96px;
  }

  .vl-method-extra {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .vl-subnav {
    gap: 1.5rem;
  }
}
