/* ─────────────────────────────────────────────────────────────────────────────
   FONT — TT Commons Pro
   Files live in public/fonts/ and are served at /fonts/*.otf
──────────────────────────────────────────────────────────────────────────────*/































/* Apply site-wide */
body,
html {
  font-family: 'TTCommonsPro', ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ─────────────────────────────────────────────────────────────────────────────
   TOP BAR — match goguardian.com header width
──────────────────────────────────────────────────────────────────────────────*/

header nav,
header > div,
nav[class*="navbar"],
div[class*="navbar"] {
  max-width: none !important;
  width: 100% !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   LOGO
──────────────────────────────────────────────────────────────────────────────*/

img.nav-logo {
  height: 2.5rem;
}

/* On desktop, shift the logo 32px right so it lands at the same x=80 offset
   as the logo on goguardian.com. Mobile and tablet are unaffected. */
@media (min-width: 1024px) {
  img.nav-logo {
    margin-left: 2rem;
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   TOP NAV TABS — prevent "Pear Deck Learning" from wrapping
──────────────────────────────────────────────────────────────────────────────*/

.nav-tabs-item {
  white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────────────────────────
   PAGINATION
   Override Mintlify linden theme's text-transform:uppercase on pagination
   article titles. Restores natural title case from each page's frontmatter.
──────────────────────────────────────────────────────────────────────────────*/

#pagination .uppercase {
  text-transform: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   KEYBOARD SHORTCUT KEYS (<kbd>)
   Mintlify's default kbd styling doesn't adapt to dark mode, leaving the
   text unreadable (dark text on a dark background) on pages like welcome.mdx
   that reference shortcuts (e.g. Ctrl/Cmd + K).
──────────────────────────────────────────────────────────────────────────────*/

kbd {
  background: #F0F0F0;
  border: 1px solid #D0D0D0;
  color: #262626;
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  font-size: 0.85em;
}

html.dark kbd {
  background: #2D2D2D;
  border: 1px solid #4A4A4A;
  color: #F0F0F0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   IMAGE SPACING
   In production, Mintlify wraps optimized images in a display:contents
   <picture>, and the typography plugin zeroes the margin on `picture > img`.
   Back-to-back screenshots end up touching, so restore the margin here.
   Local `mint dev` doesn't optimize images, so this only shows in production.
──────────────────────────────────────────────────────────────────────────────*/

.mdx-content .zoom-image-trigger img {
  margin-block: 2rem;
}
