:root > * {
  --md-primary-fg-color: #9169D1;
  --md-primary-fg-color--light: #a887db;
  --md-primary-fg-color--dark: #7a4eb3;

  /* FIX 1: Accent color alinhado ao roxo do projeto */
  --md-accent-fg-color: #7a4eb3;
  --md-accent-fg-color--transparent: rgba(122, 78, 179, 0.1);
}

/* --- LOGO --- */
.md-header__button.md-logo img {
  height: 4rem;
  width: auto;
}

.md-nav__button.md-logo img {
  height: 3rem;
  margin-bottom: 10px;
}

/* --- HEADER & BUSCA --- */
.md-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.md-search {
    flex: 1;
    display: flex;
    justify-content: center;
}

.md-search__inner {
    width: 30rem;
    margin: 0 auto;
}

.md-search__form {
    background-color: rgba(0, 0, 0, 0.1) !important;
    border-radius: 20px !important;
    border: 1px solid rgba(145, 105, 209, 0.3);
    transition: none !important;
}

.md-search__input:focus + .md-search__form {
    background-color: #ffffff !important;
    width: 100% !important;
    box-shadow: 0 4px 12px rgba(145, 105, 209, 0.25);
    border-color: #9169D1;
}

.md-header__title, .md-header__source {
    flex: 0 0 12rem;
}

/* --- TEMA (SUNNY) --- */
.md-header__option {
    order: 1;
    margin-left: auto;
}

.md-header__source {
    order: 2;
}

.md-header__button.md-icon[for="__palette"] {
    color: white;
}

.md-header__button.md-icon[for="__palette"] svg {
    width: 1.25rem;
    height: 1.25rem;
    transform: scale(1.1);
}

.md-header__button.md-icon[for="__palette"]:hover {
    color: #ffcc00;
    filter: drop-shadow(0 0 5px rgba(255, 204, 0, 0.4));
}

/* --- TABELAS --- */
.md-typeset table:not([class]) {
    border-radius: 0.4rem;
    overflow: hidden;
    border: 1px solid rgba(145, 105, 209, 0.1);
}

.md-typeset table:not([class]) th {
    background-color: #9169D1;
    color: white;
}

.md-typeset table:not([class]) tr:nth-child(2n) {
    background-color: rgba(145, 105, 209, 0.05);
}

.md-typeset table:not([class]) tr:hover {
    background-color: rgba(145, 105, 209, 0.15);
}

/* Esconde o código bruto das extensões (os seletores que aparecem na imagem) */
.md-typeset .grid.cards > ul > li > p:first-child {
    display: none;
}

/* Garante que a lista não tenha marcadores (bolinhas) */
.md-typeset .grid.cards > ul {
    list-style: none !important;
}

/* Ajuste dos ícones dentro dos cards */
.md-typeset .grid.cards li .twemoji, 
.md-typeset .grid.cards li .ot-icon {
    display: block;
    margin-bottom: 0.5rem;
    color: #9169D1;
}

/* Remove a linha horizontal padrão se ela estiver quebrando o layout */
.md-typeset .grid.cards li hr {
    margin: 0.5rem 0;
    border-bottom: 1px solid rgba(145, 105, 209, 0.1);
}