/* «Úsalo en tu asistente» en la página de asistentes (/taric/asistentes, /ca/taric/assistents, /en/taric/assistants):
   selector de asistente y de web o escritorio, pasos, descargas, recuadro del fabricante y prompt para copiar.
   Solo tokens de styles-burdeos.css: ningún color nuevo. Cada caja es una tarjeta con borde completo de 1 px, sin
   barras de acento, sin sombras ni degradados. Espacio de nombres .ta- dentro de body.taric-page. */

.taric-page .ta-use {
  box-sizing: border-box;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 8px var(--page-gutter) clamp(28px, 4vw, 44px);
}

.taric-page .ta-use h2 {
  margin: 0 0 8px;
  color: var(--graphite);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 600;
  line-height: 1.25;
}

.taric-page .ta-intro {
  max-width: 68ch;
  margin: 0 0 20px;
  line-height: 1.6;
}

/* Sin programa todo se ve seguido: el selector y los botones de copiar llevan hidden y el programa los muestra. */
.taric-page .ta-use [hidden] {
  display: none;
}

.taric-page .ta-label {
  margin: 0 0 6px;
  color: var(--gray);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Las líneas entre botones son el fondo del grupo que asoma por el hueco de 1 px: sirven igual en una fila que en
   dos (móvil), sin bordes dobles. */
.taric-page .ta-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 18px;
  border: 1px solid var(--wine);
  border-radius: var(--radius);
  background: var(--wine);
  overflow: hidden;
}

.taric-page .ta-picker button {
  appearance: none;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  background: var(--paper);
  color: var(--wine);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.taric-page .ta-picker button[aria-pressed="true"] {
  background: var(--wine);
  color: var(--paper);
}

/* El contorno va por dentro: el grupo recorta lo que sale (overflow) para redondear las esquinas. */
.taric-page .ta-picker button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -6px;
}

.taric-page .ta-panel,
.taric-page .ta-prompt {
  box-sizing: border-box;
  max-width: 900px;
  margin: 0 0 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  scroll-margin-top: 112px;
}

.taric-page .ta-panel h3,
.taric-page .ta-prompt h3 {
  margin: 0 0 6px;
  color: var(--graphite);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.35;
}

.taric-page .ta-state {
  max-width: 68ch;
  margin: 0 0 18px;
  color: var(--gray);
  line-height: 1.55;
}

.taric-page .ta-steps {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ta-step;
}

.taric-page .ta-steps > li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 0 12px;
  counter-increment: ta-step;
}

.taric-page .ta-steps > li::before {
  content: counter(ta-step, decimal-leading-zero);
  color: var(--wine);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.taric-page .ta-steps h4 {
  margin: 0 0 4px;
  color: var(--graphite);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.5;
}

.taric-page .ta-steps p,
.taric-page .ta-prompt p,
.taric-page .ta-current p {
  max-width: 68ch;
  margin: 0 0 10px;
  line-height: 1.55;
}

.taric-page .ta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 6px;
}

/* Los botones de copiar son <button>: sin font: inherit tomarían la letra pequeña del navegador y no la de los
   enlaces con la misma clase. */
.taric-page .ta-buttons .button {
  min-height: 48px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.taric-page .ta-buttons .button.outline {
  color: var(--wine);
  background: var(--paper);
  border: 1px solid var(--wine);
}

.taric-page .ta-buttons .button.outline:hover,
.taric-page .ta-buttons .button.outline:focus-visible {
  color: var(--paper);
  background: var(--wine);
}

.taric-page .ta-buttons .button:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 2px;
}

.taric-page .ta-path {
  font-weight: 700;
}

.taric-page .ta-use code {
  overflow-wrap: anywhere;
}

.taric-page .ta-example {
  display: block;
  margin: 6px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  font-style: italic;
}

.taric-page .ta-alt {
  max-width: 68ch;
  margin: 22px 0 10px;
  line-height: 1.55;
}

.taric-page .ta-current {
  box-sizing: border-box;
  margin: 22px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--border-editorial);
  border-radius: var(--radius);
}

.taric-page .ta-current p:last-child {
  margin-bottom: 0;
}

.taric-page .ta-prompt summary {
  width: fit-content;
  padding: 4px 0;
  color: var(--wine);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.taric-page .ta-prompt summary:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 2px;
}

.taric-page .ta-prompt pre {
  box-sizing: border-box;
  max-height: 420px;
  margin: 10px 0 0;
  padding: 14px 16px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  font-family: Consolas, Menlo, monospace;
  font-size: 0.86rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.taric-page .ta-version {
  margin: 4px 0 0;
  color: var(--gray);
  font-size: 0.86rem;
}

.taric-page .ta-status {
  margin: 6px 0 0;
  min-height: 1.5em;
  color: var(--graphite);
  font-weight: 600;
}

@media (pointer: coarse), (max-width: 767px) {
  .taric-page .ta-prompt summary {
    box-sizing: border-box;
    min-height: 44px;
    padding: 12px 0;
    line-height: 20px;
  }
}

@media (max-width: 767px) {
  .taric-page .ta-picker {
    width: 100%;
  }

  .taric-page .ta-picker button {
    flex: 1 1 calc(50% - 1px);
    padding: 8px 10px;
    line-height: 1.3;
  }

  .taric-page .ta-panel,
  .taric-page .ta-prompt {
    padding: 18px 16px;
  }

  .taric-page .ta-steps > li {
    grid-template-columns: 34px minmax(0, 1fr);
  }
}
