/* Brand palette
   - Cobalt    #008cc8  primary
   - Cyan      #19c6d6  accent / hover
   - Deep navy #0b4a6e  dark mode primary
*/

:root {
  --md-primary-fg-color:        #008cc8;
  --md-primary-fg-color--light:  #19c6d6;
  --md-primary-fg-color--dark:   #0b4a6e;
  --md-accent-fg-color:          #19c6d6;
  --md-accent-fg-color--transparent: rgba(25, 198, 214, 0.1);

  --md-typeset-a-color: #008cc8;
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color:        #0b4a6e;
  --md-primary-fg-color--light:  #19c6d6;
  --md-primary-fg-color--dark:   #06324a;
  --md-accent-fg-color:          #19c6d6;
  --md-accent-fg-color--transparent: rgba(25, 198, 214, 0.15);

  --md-typeset-a-color: #19c6d6;

  --md-default-bg-color:        hsl(206, 28%, 12%);
  --md-default-bg-color--light: hsl(206, 28%, 16%);
}

.md-header {
  background-color: var(--md-primary-fg-color);
}

/* The wordmark already says "Patent Client Agents" — hide the duplicate
   site_name text and let the logo stand alone. */
.md-header__title {
  display: none;
}

/* White matte behind the wordmark so it reads against the cobalt header */
.md-header__button.md-logo {
  background: #ffffff;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  margin-right: 0.5rem;
}

.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  height: 1.8rem;
  width: auto;
  display: block;
}

/* Suppress the auto-rendered "Home" H1 above the README hero on the index. */
.md-typeset h1.home-h1-suppress {
  display: none;
}

.md-tabs {
  background-color: var(--md-primary-fg-color--dark);
}

.md-typeset code {
  background-color: rgba(0, 140, 200, 0.08);
  color: var(--md-primary-fg-color--dark);
}

[data-md-color-scheme="slate"] .md-typeset code {
  background-color: rgba(25, 198, 214, 0.12);
  color: var(--md-primary-fg-color--light);
}

.md-typeset table:not([class]) th {
  background-color: var(--md-primary-fg-color);
  color: #fff;
}

/* ─── Patent Client Index — synopsis frontmatter table ─────────────── */
/* The first table on a synopsis page is the metadata k:v block emitted
   by docs_hooks/sync_patent_client_index.py. Style as a compact infobox
   instead of the default full-width table. */
.md-typeset article > table:first-of-type {
  margin: 0 0 1.5rem;
  font-size: 0.88rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 6px;
  overflow: hidden;
  width: auto;
}
.md-typeset article > table:first-of-type thead { display: none; }
.md-typeset article > table:first-of-type td:first-child {
  width: 1%;
  white-space: nowrap;
  color: var(--md-default-fg-color--light);
  background: color-mix(in srgb, var(--md-default-fg-color) 4%, transparent);
  font-weight: 600;
}
.md-typeset article > table:first-of-type td {
  padding: 0.35rem 0.85rem;
  border: none;
}
.md-typeset article > table:first-of-type tr:not(:last-child) td {
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
}
