
/* Desktop/tablet: allarga il contenitore centrale */
@media (min-width: 1024px) {
  /* Contenitore principale del tema */
  .md-grid {
    max-width: 1360px;
  }

  /* Riduci il padding laterale dell'area contenuti */
  .md-content__inner {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Light theme */
:root {
  --md-primary-fg-color: #0074c1;          /* colore principale */
  --md-accent-fg-color: #0074c1;           /* (opz.) accent */
  --md-default-fg-color: #373C47;
}

/* wrapper delle tabelle in Material */
.md-typeset__table {
  border-radius: .5rem;
  overflow: hidden;                 /* arrotonda anche l'header */
}

/* tabella base */
.md-typeset__table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

/* header “chip” blu come nello screenshot */
.md-typeset__table thead th {
  background: var(--md-primary-fg-color);      /* usa il primary del tema */
  color: var(--md-primary-bg-color);           /* testo contrastato */
  font-weight: 700;
  padding: .7rem .9rem;
  border: 0;
}

/* celle body */
.md-typeset__table tbody th,
.md-typeset__table tbody td {
  padding: .6rem .9rem;
  border-top: 1px solid var(--md-default-fg-color--lightest);
  vertical-align: top;
}

/* zebra (chiaro) */
.md-typeset__table tbody tr:nth-child(2n) td,
.md-typeset__table tbody tr:nth-child(2n) th {
  background: rgba(0,0,0,.02);
}

/* prima colonna in grassetto, come “Field” nello screenshot */
.md-typeset__table tbody td:first-child,
.md-typeset__table tbody th:first-child {
  font-weight: 600;
}

/* i backtick restano “chip” leggibili dentro le celle */
.md-typeset__table code {
  padding: .15em .35em;
  border-radius: .25rem;
}

/* Badge base */
.http-badge{
  display:inline-block;
  font: 700 0.60rem/1.2 var(--md-text-font, system-ui, -apple-system, Segoe UI, Roboto, Arial);
  letter-spacing:.02em;
  padding:.28rem .5rem;
  border-radius:.375rem;
  vertical-align:middle;
  margin-right:.15rem;
  color:#fff;                 /* testo bianco */
}

/* Colori per metodi */
.http-badge.get    { background:#0074c1; }
.http-badge.post   { background:#0074c1; }
.http-badge.put    { background:#0074c1; }
.http-badge.delete { background:#0074c1; }

/* Migliora l’allineamento con il “chip” del path in backtick */
.md-typeset code {
  vertical-align:middle;
}

/* Nasconde del tutto il "topic" nel titolo dell'header */
.md-header__topic {
  display: none !important;
}