/* ============================================================
   Globebyte docs — clean, professional styling.
   Font stack matches documentation.globebyte.com (GitBook default Inter).
   Links use the browser/Material default blue; headings are black.
   ============================================================ */

/* Body typography — GitBook reference uses Inter at 16px. */
:root {
  --md-text-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --md-code-font: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
}

.md-typeset {
  font-size: 0.85rem;          /* Material default rem == 16px body */
  line-height: 1.6;
}

/* Headings: default black, Inter, tight tracking. No serif override. */
.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset h5,
.md-typeset h6 {
  color: #1a1a1a;
  font-family: var(--md-text-font);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.md-typeset h1 { font-size: 2.25rem; margin: 0 0 1rem; }
.md-typeset h2 { font-size: 1.625rem; margin: 2rem 0 0.75rem; }
.md-typeset h3 { font-size: 1.25rem; margin: 1.75rem 0 0.5rem; }
.md-typeset h4 { font-size: 1.05rem; }

/* Links: standard link blue (close to Google's #1a73e8), darker on hover.
   Material's palette default on a white scheme can render links too pale
   or pick up the accent colour; force a concrete value here. */
.md-typeset a {
  color: #1a73e8;
}
.md-typeset a:hover,
.md-typeset a:focus {
  color: #0b57d0;
}
.md-typeset a:visited {
  color: #1a73e8;
}

/* Header bar: white background with subtle bottom border.
   Material's `primary: white` palette already sets fg to white; we tweak
   the logo/title to dark so it reads on the white header. */
.md-header {
  background-color: #ffffff;
  color: #1a1a1a;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: none;
}
.md-header__title,
.md-header__button {
  color: #1a1a1a;
}
.md-header__topic .md-ellipsis {
  color: #1a1a1a;
}
.md-search__input {
  color: #1a1a1a;
  background-color: #f3f4f6;
}
.md-search__input::placeholder {
  color: #6b7280;
}

/* Tabs in header (top-level sections) — neutral grey, blue on hover/active */
.md-tabs {
  background-color: #ffffff;
  color: #1a1a1a;
  border-bottom: 1px solid #e5e7eb;
}
.md-tabs__link {
  color: #4b5563;
  opacity: 1;
  font-weight: 500;
}
.md-tabs__link:hover,
.md-tabs__link--active {
  color: #1a1a1a;
}

/* Admonitions: keep clean neutral styling (no brand blue tint) */
/* leave Material defaults in place */

/* Tables: neutral header row (not brand blue) */
.md-typeset table:not([class]) {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
}
.md-typeset table:not([class]) th {
  background-color: #f3f4f6;
  color: #1a1a1a;
  font-weight: 600;
}
.md-typeset table:not([class]) tr:nth-child(even) {
  background-color: #fafafa;
}

/* Footer: dark, matches marketing site */
.md-footer {
  background-color: #1a1a1a;
}
.md-footer-meta {
  background-color: #1a1a1a;
}

/* "Get in touch" block — appears in the copyright area (set via mkdocs.yml `copyright:`). */
.gb-footer-contact {
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}
.gb-footer-contact strong {
  display: inline-block;
  margin-right: 0.75rem;
  color: #ffffff;
  font-weight: 600;
}
.gb-footer-contact a {
  color: #d1d5db !important;
  text-decoration: none;
  margin-right: 1rem;
}
.gb-footer-contact a:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

/* Copyright line: smaller, muted */
.gb-footer-copyright {
  font-size: 0.72rem;
  color: #9ca3af;
}

/* Figure captions */
.md-typeset figure figcaption {
  font-size: 0.8rem;
  color: #6b7280;
  font-style: italic;
  margin-top: 0.5rem;
}

/* ============================================================
   Home page product cards grid
   ============================================================ */
.product-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}
.product-cards .card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.product-cards .card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.product-cards .card a {
  display: block;
  color: inherit;
  text-decoration: none !important;
}
.product-cards .card img {
  width: 100%;
  height: auto;
  display: block;
}
.product-cards .card .card-body {
  padding: 0.9rem 1rem 1rem;
}
.product-cards .card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.product-cards .card p {
  margin: 0;
  font-size: 0.85rem;
  color: #4b5563;
  line-height: 1.5;
}
