/* Usabilidade (heurísticas de Nielsen), ciclo 2. */

/* Trilha "Você está aqui" e dados da matéria */
.tvc-crumbs { background: var(--tvc-paper); border-bottom: 1px solid var(--tvc-line); }
.tvc-crumbs__inner {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px;
	max-width: var(--tvc-wrap); margin: 0 auto; padding: 12px 24px;
	font: 400 14px/1.4 var(--tvc-font); color: var(--tvc-muted);
}
.tvc-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.tvc-crumbs li { display: flex; align-items: center; gap: 4px; min-width: 0; }
.tvc-crumbs li + li::before {
	content: ""; width: 7px; height: 7px; margin: 0 6px 0 2px;
	border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6;
}
.tvc-crumbs a { color: var(--tvc-ink); text-decoration: underline; text-decoration-color: var(--tvc-line); text-underline-offset: 3px; }
.tvc-crumbs a:hover, .tvc-crumbs a:focus-visible { color: var(--tvc-red-strong); text-decoration-color: currentColor; }
.tvc-crumbs [aria-current="page"] { color: var(--tvc-muted); max-width: 52ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tvc-crumbs__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; }

/* Barra de progresso de leitura */
.tvc-progress {
	position: fixed; left: 0; top: 0; z-index: 10000; height: 3px; width: 100%;
	background: var(--tvc-red-strong); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none;
}
.admin-bar .tvc-progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .tvc-progress { top: 46px; } }
@media (prefers-reduced-motion: no-preference) { .tvc-progress { transition: transform .1s linear; } }

/* Fim da matéria */
.tvc-post-end { max-width: 1100px; margin: 56px auto 0; padding: 0 24px 24px; font-family: var(--tvc-font); }
.tvc-postnav { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 48px; }
.tvc-postnav__link {
	display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1px solid var(--tvc-line); border-radius: var(--tvc-radius);
	color: var(--tvc-ink); text-decoration: none; background: var(--tvc-paper);
}
.tvc-postnav__link--next { text-align: right; }
.tvc-postnav__link:hover, .tvc-postnav__link:focus-visible { border-color: var(--tvc-red-strong); }
.tvc-postnav__label { font-size: 13px; color: var(--tvc-muted); }
.tvc-postnav__title { font-size: 17px; font-weight: 600; line-height: 1.35; }
.tvc-related__title, .tvc-ux-latest__title, .tvc-chips__title { font: 600 22px/1.3 var(--tvc-font); color: var(--tvc-ink); margin: 0 0 20px; }

/* Temas como atalhos */
.tvc-chips { margin: 40px 0; }
.tvc-chips ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.tvc-chip {
	display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 1px solid var(--tvc-line); border-radius: 999px;
	color: var(--tvc-wine); text-decoration: none; font: 500 15px/1.2 var(--tvc-font); background: var(--tvc-paper);
}
.tvc-chip:hover, .tvc-chip:focus-visible { border-color: var(--tvc-red-strong); color: var(--tvc-red-strong); }
.tvc-ux-latest { margin: 40px 0 64px; }

/* Aviso de nova aba em links de texto */
.tvc-ext::after {
	content: ""; display: inline-block; width: .7em; height: .7em; margin-left: .3em; vertical-align: baseline;
	background: currentColor; opacity: .7;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4 1h7v7M11 1 4.5 7.5M9 7v4H1V3h4' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4 1h7v7M11 1 4.5 7.5M9 7v4H1V3h4' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Formulários: obrigatórios e orientação */
.tvc-req { color: var(--tvc-red-strong); margin-left: 2px; }
.tvc-form-help { margin: 0 0 16px; font: 400 14px/1.5 var(--tvc-font); color: var(--tvc-muted); }
.tvc-form-help--dark { color: #cfcac7; margin-bottom: 10px; }
.tvc-footer .tvc-req { color: var(--tvc-red-soft); }
.tvc-search-hint { margin: 8px 0 0; font: 400 14px/1.4 var(--tvc-font); color: var(--tvc-red-strong); }
.tvc-kbd { display: inline-block; min-width: 1.6em; padding: 0 5px; border: 1px solid var(--tvc-line); border-radius: 4px; font: 500 12px/1.6 var(--tvc-font); text-align: center; }

/* Rodapé: ajuda */
.tvc-footer__help { flex-basis: 100%; margin: 0; font-size: 14px; line-height: 1.5; color: #cfcac7; }
.tvc-footer__help a { color: #f1eeec; text-underline-offset: 3px; }
.tvc-footer__help a:hover, .tvc-footer__help a:focus-visible { color: var(--tvc-red-soft); }

@media (max-width: 760px) {
	.tvc-crumbs__inner { padding: 10px 20px; }
	.tvc-crumbs [aria-current="page"] { max-width: 28ch; }
	.tvc-post-end { padding: 0 20px 16px; }
	.tvc-postnav__link--next { text-align: left; }
}
