/* Cloudflare-inspired Theme Customizations for MkDocs Material */

:root {
  --md-primary-fg-color: #f48120; /* Cloudflare Orange */
  --md-primary-fg-color--dark: #d96e14;
}

/* Sharp modern headings and typography matching developer portals */
.md-typeset h1 {
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Clean sidebar vertical navigation sizing */
.md-nav__item .md-nav__link {
  font-size: 0.85rem;
}

/* Active navigation highlight */
.md-nav__item--active > .md-nav__link {
  font-weight: 600;
}

/* Fluid, readable tables across the whole site */
.md-typeset table:not([class]) {
  font-size: 0.75rem;
  line-height: 1.4;
}

.md-typeset table:not([class]) td,
.md-typeset table:not([class]) th {
  padding: 0.6em 0.8em;
  word-break: break-word;
}

/* Slightly smaller on narrow screens, still fits more before scrolling */
@media screen and (max-width: 480px) {
  .md-typeset table:not([class]) {
    font-size: 0.7rem;
  }
  .md-typeset table:not([class]) td,
  .md-typeset table:not([class]) th {
    padding: 0.5em 0.6em;
  }


  /* "View as Markdown" link styling */
.md-typeset > p:has(> a[href^="/raw/"]) {
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
}

.md-typeset a[href^="/raw/"] {
  font-size: 0.7rem;
  border: 1px solid var(--md-default-fg-color--lighter);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  text-decoration: none;
  color: var(--md-default-fg-color--light);
}

.md-typeset a[href^="/raw/"]:hover {
  border-color: var(--md-primary-fg-color);
  color: var(--md-primary-fg-color);
}

/* Remove right-side table of contents entirely */
.md-sidebar--secondary {
  display: none;
}

/* Let content use the reclaimed width */
.md-content {
  max-width: 100%;
}


