@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

/* MT Brand Guidelines 2025 — Full palette & typography */
/* Primary:   MT Magenta #E6007E | MT Blue #36A9E1 | MT Black #000000 */
/* Secondary: MT Purple  #550F55 | MT Dark Blue #00386E               */
/* Magenta = hero/differentiator; Blue = supporting/heritage          */

:root {
  --mt-magenta:   #E6007E;
  --mt-blue:      #36A9E1;
  --mt-black:     #000000;
  --mt-purple:    #550F55;
  --mt-dark-blue: #00386E;
}

/* Light mode */
[data-md-color-scheme="default"] {
  --md-primary-fg-color:             var(--mt-magenta);
  --md-primary-fg-color--light:      #f04da5;
  --md-primary-fg-color--dark:       #c40068;
  --md-primary-bg-color:             #ffffff;
  --md-primary-bg-color--light:      hsla(0, 0%, 100%, 0.7);
  --md-accent-fg-color:              var(--mt-blue);
  --md-accent-fg-color--transparent: rgba(54, 169, 225, 0.1);
  --md-accent-bg-color:              #ffffff;
  --md-accent-bg-color--light:       hsla(0, 0%, 100%, 0.7);
  --md-typeset-a-color:              var(--mt-blue);
}

/* Dark mode */
[data-md-color-scheme="slate"] {
  --md-primary-fg-color:             var(--mt-magenta);
  --md-primary-fg-color--light:      #f04da5;
  --md-primary-fg-color--dark:       #c40068;
  --md-primary-bg-color:             #1a1a2e;
  --md-primary-bg-color--light:      hsla(240, 25%, 14%, 0.7);
  --md-accent-fg-color:              var(--mt-blue);
  --md-accent-fg-color--transparent: rgba(54, 169, 225, 0.1);
  --md-accent-bg-color:              #1a1a2e;
  --md-accent-bg-color--light:       hsla(240, 25%, 14%, 0.7);
  --md-typeset-a-color:              #5bbce8;
}

/* Headings — Montserrat (brand secondary typeface) */
.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset h5,
.md-typeset h6 {
  font-family: "Montserrat", "Barlow", sans-serif;
  font-weight: 700;
}

/* ── Readability overrides ──────────────────────────────────────────
   MkDocs Material defaults to small text (0.8rem body = ~12.8px).
   Bump key elements for comfortable reading on modern displays.    */

/* Body text — 18px instead of default 16px */
.md-typeset {
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Header site title — bold + larger for readability on magenta */
.md-header__topic .md-ellipsis {
  font-weight: 700;
  font-size: 1.2rem;
}

/* Navigation tabs — bold, readable on magenta */
.md-tabs__link {
  font-weight: 700;
  font-size: 0.82rem;
}

/* Sidebar navigation — MT Blue accent for active/hover states */
.md-nav__link {
  font-size: 0.75rem;
  font-weight: 500;
}
.md-nav__link--active,
.md-nav__item .md-nav__link--active {
  color: var(--mt-blue) !important;
  font-weight: 700;
}
.md-nav__link:hover {
  color: var(--mt-magenta);
}

/* TOC (right sidebar) — MT Blue for active indicator */
.md-nav--secondary .md-nav__link--active {
  color: var(--mt-blue) !important;
}
.md-nav--secondary .md-nav__link--active::before {
  background-color: var(--mt-blue);
}

/* ── Active tab — inverted: white chip with magenta text on magenta bar */
.md-tabs__link--active {
  color: var(--mt-magenta) !important;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 4px;
  padding: 0.4rem 0.8rem;
  margin: 0.2rem 0;
}

/* ── Header stays magenta in BOTH light and dark modes ───────────── */
.md-header,
.md-tabs {
  background-color: var(--mt-magenta);
}
[data-md-color-scheme="slate"] .md-header,
[data-md-color-scheme="slate"] .md-tabs {
  background-color: var(--mt-magenta);
}

/* ── Footer — branded, remove "Made with MkDocs" ────────────────── */
.md-footer-meta {
  background-color: var(--mt-dark-blue);
}
.md-footer-meta__inner {
  display: flex;
  justify-content: center;
  padding: 0.6rem;
}
/* Hide the default "Made with Material for MkDocs" text */
.md-footer-meta .md-copyright {
  display: none;
}

/* ── Hide "Table of contents" heading in right sidebar ────────────── */
.md-nav--secondary > .md-nav__title {
  display: none;
}

/* ── Sidebar backgrounds — subtle tint for left nav + right TOC ──── */
.md-sidebar--primary .md-sidebar__scrollwrap {
  background-color: rgba(0, 56, 110, 0.04);
  border-right: 1px solid rgba(0, 56, 110, 0.08);
}
.md-sidebar--secondary .md-sidebar__scrollwrap {
  background-color: rgba(54, 169, 225, 0.04);
  border-left: 1px solid rgba(54, 169, 225, 0.08);
}
[data-md-color-scheme="slate"] .md-sidebar--primary .md-sidebar__scrollwrap {
  background-color: rgba(54, 169, 225, 0.06);
  border-right: 1px solid rgba(54, 169, 225, 0.1);
}
[data-md-color-scheme="slate"] .md-sidebar--secondary .md-sidebar__scrollwrap {
  background-color: rgba(0, 56, 110, 0.15);
  border-left: 1px solid rgba(0, 56, 110, 0.2);
}

/* ── Homepage product cards ──────────────────────────────────────── */
/* Hide ghost <p> tags generated by md_in_html between card elements */
.product-grid > p {
  display: none;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0;
}
.product-card {
  border: 1px solid rgba(128, 128, 128, 0.2);
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.product-card:hover {
  border-color: var(--mt-magenta);
  box-shadow: 0 4px 12px rgba(230, 0, 126, 0.15);
  text-decoration: none;
  color: inherit;
}
.product-card h3 {
  margin: 0 0 0.5rem 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--mt-magenta);
}
.product-card p {
  margin: 0;
  opacity: 0.8;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Wide table utility */
.wide-table {
  width: 100%;
}
