:root {
  /* Primary - white base with orange accents */
  --md-primary-fg-color: #ffffff;
  --md-primary-fg-color--light: #ffffff;
  --md-primary-fg-color--dark: #f9fafb;

  /* Accent - Anise orange */
  --md-accent-fg-color: #d97706;
  --md-accent-fg-color--transparent: rgba(217, 119, 6, 0.1);

  /* Typography - system font stack */
  --md-text-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  /* Body text */
  --md-default-fg-color: #1f2937;

  /* Footer */
  --md-footer-bg-color: #1f2937;
  --md-footer-fg-color: rgba(255, 255, 255, 0.85);
  --md-footer-fg-color--light: rgba(255, 255, 255, 0.65);
  --md-footer-fg-color--lighter: rgba(255, 255, 255, 0.45);
}

/* -------------------------------------------------------
   HEADER — white with orange bottom accent
   ------------------------------------------------------- */
.md-header {
  background-color: #fff;
  border-bottom: 3px solid #f9a826;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* Dark text for header on white background */
.md-header__title {
  color: #1f2937;
}

.md-header__button.md-logo img {
  filter: none;
}

/* Search icon and hamburger in dark */
.md-header .md-icon {
  color: #1f2937;
}

/* Search input on white header */
.md-search__input {
  background-color: #f3f4f6;
  color: #1f2937;
}

.md-search__input::placeholder {
  color: #6b7280;
}

.md-search__input:focus {
  background-color: #f3f4f6;
  box-shadow: 0 0 0 2px rgba(249, 168, 38, 0.4);
}

/* Search icon color */
.md-search__icon {
  color: #6b7280;
}

/* -------------------------------------------------------
   SIDEBAR — orange active states with left border
   ------------------------------------------------------- */
.md-nav__link--active {
  color: #d97706;
  font-weight: 600;
}

.md-nav__item--active > .md-nav__link {
  color: #d97706;
  border-left: 3px solid #d97706;
  padding-left: 0.5rem;
}

.md-nav__link:hover {
  color: #b45309;
}

/* -------------------------------------------------------
   LINKS — WCAG AA compliant orange
   ------------------------------------------------------- */
.md-typeset a {
  color: #b45309;
}

.md-typeset a:hover {
  color: #d97706;
}

.md-typeset a:focus {
  outline: 2px solid #d97706;
  outline-offset: 2px;
}

/* -------------------------------------------------------
   BUTTONS — orange with white text
   ------------------------------------------------------- */
.md-button--primary {
  background-color: #d97706;
  border-color: #d97706;
  color: #fff;
}

.md-button--primary:hover {
  background-color: #b45309;
  border-color: #b45309;
}

/* -------------------------------------------------------
   ADMONITIONS — orange accents
   ------------------------------------------------------- */
.md-typeset .admonition.note,
.md-typeset details.note {
  border-color: #f9a826;
}

.md-typeset .note > .admonition-title,
.md-typeset .note > summary {
  background-color: rgba(249, 168, 38, 0.1);
  border-color: #f9a826;
}

.md-typeset .note > .admonition-title::before,
.md-typeset .note > summary::before {
  color: #f9a826;
}

/* -------------------------------------------------------
   FOOTER — dark with orange accent
   ------------------------------------------------------- */
.md-footer {
  background-color: #1f2937;
  color: rgba(255, 255, 255, 0.85);
}

.md-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.md-footer a:hover {
  color: #f9a826;
}

.md-footer-meta {
  background-color: #111827;
}

.md-footer__link .md-icon svg {
  fill: rgba(255, 255, 255, 0.85);
}

/* -------------------------------------------------------
   TEXT SELECTION — orange highlight
   ------------------------------------------------------- */
::selection {
  background-color: rgba(249, 168, 38, 0.35);
  color: #1f2937;
}

::-moz-selection {
  background-color: rgba(249, 168, 38, 0.35);
  color: #1f2937;
}

/* -------------------------------------------------------
   CONTENT TABS — orange active indicator
   ------------------------------------------------------- */
.md-typeset .tabbed-labels > label:hover {
  color: #d97706;
}

.md-typeset .tabbed-set > input:checked + label {
  border-color: #d97706;
}

/* -------------------------------------------------------
   CODE BLOCKS — orange copy button hover
   ------------------------------------------------------- */
.md-clipboard:hover {
  color: #d97706;
}

/* -------------------------------------------------------
   TABLE OF CONTENTS
   ------------------------------------------------------- */
.md-nav__link[data-md-state="blur"] {
  color: rgba(31, 41, 55, 0.6);
}
