/* ==========================================================================
   Threat Modeler (TMT) pages. The differentiator cards come from
   docs/.snippets/tmt-differentiators.html and sit at the top of all 4 pages.
   Colors use Material variables, so light and dark mode both work.
   ========================================================================== */

.md-typeset .tmt-diff {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 1rem 0 0.8rem;
}

@media screen and (min-width: 45em) {
  .md-typeset .tmt-diff {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.md-typeset .tmt-diff__card {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 10px;
  padding: 0.8rem 0.8rem 0.7rem;
  background: var(--md-default-bg-color);
}

.md-typeset .tmt-diff__icon {
  width: 1.6rem;
  height: 1.6rem;
  fill: none;
  stroke: var(--md-primary-fg-color);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[data-md-color-scheme="slate"] .md-typeset .tmt-diff__icon {
  stroke: var(--md-accent-fg-color);
}

.md-typeset .tmt-diff__title {
  margin: 0.4rem 0 0.2rem;
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.3;
}

.md-typeset .tmt-diff__body {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.45;
  color: var(--md-default-fg-color--light);
}

.md-typeset .tmt-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.8rem;
  margin: 0 0 1.4rem;
}

.md-typeset .tmt-cta .tmt-btn {
  display: inline-block;
  padding: 0.45rem 1rem;
  border-radius: 0.2rem;
  font-weight: 700;
  font-size: 0.75rem;
  background: var(--md-primary-fg-color);
  color: var(--md-primary-bg-color);
}

.md-typeset .tmt-cta .tmt-btn:hover,
.md-typeset .tmt-cta .tmt-btn:focus {
  background: var(--md-accent-fg-color);
  color: var(--md-accent-bg-color);
}

.md-typeset .tmt-cta span {
  font-size: 0.7rem;
  color: var(--md-default-fg-color--light);
}

/* Annotated screenshots get a thin frame so white UI does not melt into the page. */
.md-typeset img.tmt-shot {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 6px;
}
