/* Texto das páginas de categoria (04/11/2026): abertura, guia de escolha, marcas e perguntas frequentes.
   Carregado só em categoria com texto (includes/categoria-conteudo.php); usa os tokens de loja.css. */

.ml-catlede {
  max-width: 70ch;
  margin-top: 12px;
  color: var(--ml-ink-2);
  font-size: 15.5px;
  line-height: 1.6;
  text-wrap: pretty;
}

.ml-catguide {
  margin-top: 56px;
  padding: 56px 0 60px;
  background: var(--ml-card);
  border-top: 1px solid var(--ml-line);
  border-bottom: 1px solid var(--ml-line);
}
.ml-catguide__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.ml-catguide h2 {
  font-family: var(--ml-serif);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--ml-navy);
  text-wrap: balance;
  margin-bottom: 22px;
}

/* passos: a ordem importa (monitor → tipo → extensão), por isso o número fica */
.ml-catguide__steps { list-style: none; margin: 0; padding: 0; counter-reset: passo; }
.ml-catguide__steps li {
  counter-increment: passo;
  position: relative;
  padding: 0 0 22px 52px;
}
.ml-catguide__steps li + li { padding-top: 22px; border-top: 1px solid var(--ml-line); }
.ml-catguide__steps li::before {
  content: counter(passo);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ml-sky);
  color: var(--ml-navy);
  font-family: var(--ml-serif);
  font-size: 17px;
  font-weight: 700;
}
.ml-catguide__steps li + li::before { top: 22px; }
.ml-catguide__steps h3 { font-size: 16px; font-weight: 700; color: var(--ml-navy); margin-bottom: 4px; }
.ml-catguide__steps p { color: var(--ml-ink-2); line-height: 1.6; max-width: 62ch; }

.ml-catguide__brands { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--ml-line); }
.ml-catguide__brands h3 { font-size: 14px; font-weight: 700; color: var(--ml-navy); margin-bottom: 12px; }
.ml-catguide__brands ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ml-catguide__brands a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--ml-line);
  border-radius: 999px;
  background: var(--ml-bg);
  color: var(--ml-navy);
  font-size: 14px;
  font-weight: 600;
  transition: border-color .2s cubic-bezier(.16, 1, .3, 1), background-color .2s cubic-bezier(.16, 1, .3, 1);
}
.ml-catguide__brands a:hover { border-color: var(--ml-sky-300); background: var(--ml-sky); }

/* perguntas: <details> nativo, teclado e leitor de tela de graça */
.ml-catguide__faq details { border-bottom: 1px solid var(--ml-line); }
.ml-catguide__faq details:first-of-type { border-top: 1px solid var(--ml-line); }
.ml-catguide__faq summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 16px 40px 16px 0;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ml-ink);
  line-height: 1.4;
}
.ml-catguide__faq summary::-webkit-details-marker { display: none; }
.ml-catguide__faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--ml-blue);
  border-bottom: 2px solid var(--ml-blue);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .25s cubic-bezier(.16, 1, .3, 1);
}
.ml-catguide__faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.ml-catguide__faq summary:hover { color: var(--ml-blue); }
.ml-catguide__faq summary:focus-visible { outline: 3px solid var(--ml-blue-500); outline-offset: 2px; border-radius: 6px; }
.ml-catguide__faq details p { padding: 0 32px 18px 0; color: var(--ml-ink-2); line-height: 1.6; max-width: 62ch; }

@media (max-width: 900px) {
  .ml-catguide { margin-top: 40px; padding: 40px 0 44px; }
  .ml-catguide__grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .ml-catlede { font-size: 15px; }
  .ml-catguide__steps li { padding-left: 46px; }
  .ml-catguide__faq summary { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .ml-catguide__faq summary::after, .ml-catguide__brands a { transition: none; }
}

/* link para o guia de compra da linha (includes/guias.php, 05/11/2026) */
.ml-catguide__guia { margin: 4px 0 18px; }
.ml-catguide__guia a { color: var(--ml-blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
