:root {
  --md-primary-fg-color: #111418;
  --md-primary-fg-color--light: #1a1e23;
  --md-primary-fg-color--dark: #0b0d0f;

  --md-accent-fg-color: #f28a3a;
  --md-accent-fg-color--transparent: rgba(242, 138, 58, 0.10);

  /* Darker copper keeps brand character with readable contrast on white. */
  --md-typeset-a-color: #b35e24;
}

[data-md-color-scheme="default"] {
  --md-default-bg-color: #ffffff;
  --md-default-fg-color: #17191c;
  --md-default-fg-color--light: #5f6368;
  --md-default-fg-color--lighter: #8a8e93;
}

/* Dark brand header: visual bridge to the MyOwnProxy landing page. */
.md-header {
  background-color: #111418;
}

/* Horizontal MyOwnProxy wordmark. */
.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  width: auto;
  height: 2rem;
}

/* The wordmark already carries the product name. */
.md-header__topic {
  display: none;
}

/* Branded navigation without Material's default blue. */
.md-nav__link--active {
  color: #b35e24 !important;
  font-weight: 600;
}

.md-nav__link:hover,
.md-nav__link:focus {
  color: #a84f14;
}

/* Avoid repeating "MyOwnProxy Documentation" in the desktop sidebar. */
@media screen and (min-width: 76.25em) {
  .md-sidebar--primary .md-nav--primary > .md-nav__title {
    display: none;
  }
}

/* Product-like headings: dark, restrained, slightly stronger than Material defaults. */
.md-typeset h1 {
  color: #202124;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.md-typeset h2 {
  color: #202124;
  font-weight: 500;
}

/* Copper links with accessible contrast on white. */
.md-typeset a {
  color: #b35e24;
}

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

/* Integrate search into the charcoal header without creating another strong color. */
.md-search__form {
  background-color: rgba(255, 255, 255, 0.08);
}

.md-search__form:hover,
.md-search__form:focus-within {
  background-color: rgba(255, 255, 255, 0.12);
}

/* Echo the application's quiet selected-navigation treatment. */
.md-nav__link--active {
  background-color: #f5f5f5;
  border-radius: 0.3rem;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
  margin-left: -0.45rem;
  width: fit-content;
}

/* Documentation home: restrained product-style entry cards. */
.docs-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.docs-home-card {
  border: 1px solid #e5e7eb;
  border-radius: 0.65rem;
  padding: 1.25rem 1.35rem;
  background: #ffffff;
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease,
    transform 120ms ease;
}

.docs-home-card:hover {
  border-color: #d6d8dc;
  box-shadow: 0 2px 8px rgba(17, 20, 24, 0.05);
  transform: translateY(-1px);
}

.docs-home-card h3 {
  margin-top: 0;
  margin-bottom: 0.55rem;
  color: #202124;
  font-size: 1rem;
  font-weight: 600;
}

.docs-home-card p {
  margin: 0 0 0.85rem;
  color: #5f6368;
  line-height: 1.55;
}

.docs-home-card p:last-child {
  margin-bottom: 0;
  font-size: 0.85rem;
}

@media screen and (max-width: 60em) {
  .docs-home-grid {
    grid-template-columns: 1fr;
  }
}

/* Keep every home-card link in the MyOwnProxy copper palette,
   including visited and keyboard-focus states. */
.docs-home-card a,
.docs-home-card a:visited {
  color: #b35e24;
}

.docs-home-card a:hover,
.docs-home-card a:focus {
  color: #a84f14;
}

/* A very subtle brand cue when exploring the home cards. */
.docs-home-card:hover {
  border-color: rgba(242, 138, 58, 0.35);
}

/* Mobile navigation drawer: override Material's default primary blue. */
.md-nav--primary .md-nav__title[for="__drawer"] {
  background-color: #111418;
  color: #f5f5f3;
}

/* Keep the drawer brand area consistent with the desktop header. */
.md-nav--primary .md-nav__title[for="__drawer"] .md-logo {
  color: #f5f5f3;
}
