/* ==========================================================================
   Coffee & teal theme for Material for MkDocs
   Single light palette (scheme: default, primary: custom, accent: custom)
   ========================================================================== */

:root {
  /* --- Primary: header, tabs bar, active sidebar item ------------------- */
  --md-primary-fg-color:        #1a635f;  /* teal */
  --md-primary-fg-color--light: #2d8580;
  --md-primary-fg-color--dark:  #114542;
  --md-primary-bg-color:        #f2ede3;  /* text sitting ON the teal */
  --md-primary-bg-color--light: #f2ede3bf;

  /* --- Accent: link hover, focused controls, search cursor -------------- */
  --md-accent-fg-color:              #a9744a;  /* caramel */
  --md-accent-fg-color--transparent: #a9744a1a;
  --md-accent-bg-color:              #fffaf2;
  --md-accent-bg-color--light:       #fffaf2b3;

  /* --- Page background and body text ------------------------------------ */
  --md-default-bg-color:           #faf6ef;  /* beige */
  --md-default-bg-color--light:    #faf6efb3;
  --md-default-fg-color:           #3b2f2a;
  --md-default-fg-color--light:    #3b2f2ab3;  /* muted text */
  --md-default-fg-color--lighter:  #3b2f2a52;  /* borders, dividers */
  --md-default-fg-color--lightest: #3b2f2a12;  /* hovers, table stripes */

  --md-typeset-color:   #3b2f2a;
  --md-typeset-a-color: #1a635f;  /* links match the header */

  --md-code-bg-color: #f0e8db;
  --md-code-fg-color: #4a3428;

  /* --- Footer ----------------------------------------------------------- */
  --md-footer-bg-color:          #b08d6f;  /* light coffee */
  --md-footer-bg-color--dark:    #9c7a5d;  /* the meta strip */
  --md-footer-fg-color:          #2e231b;
  --md-footer-fg-color--light:   #2e231bcc;
  --md-footer-fg-color--lighter: #2e231b8f;

  /* --- Admonitions ------------------------------------------------------ */
  --md-admonition-bg-color: #f5eee2;
  --md-admonition-fg-color: #3b2f2a;
}

/* ==========================================================================
   Component overrides — things Material has no variable for
   ========================================================================== */

/* Rounded search bar */
.md-search__form {
  border-radius: 0.2rem;
}

/* While the search overlay is open, the results panel attaches
   underneath — square off the bottom edge so they read as one unit */
[data-md-toggle="search"]:checked ~ .md-header .md-search__form {
  border-radius: 0.3rem 0.3rem 0 0;
}

.md-search__output {
  border-radius: 0 0 0.3rem 0.3rem;
}

/* Inline code — distinguish it without a harsh box */
.md-typeset code {
  border-radius: 3px;
  padding: 0.1em 0.35em;
}