/* Notas de estudo vindas do GitHub (/notas/). Usa os tokens de theme.css. */

/* ---------- Trilha ---------- */
.notes-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 0;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
	font-size: 0.9rem;
}

.notes-crumbs li {
	display: inline-flex;
	align-items: center;
	color: var(--muted);
}

.notes-crumbs li + li::before {
	content: "›";
	margin: 0 8px;
	color: var(--border-strong);
}

.notes-crumbs a {
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--accent);
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
}

.notes-crumbs a:hover {
	background: var(--accent);
	color: var(--on-accent);
}

/* ---------- Filtro ---------- */
.notes-filter {
	position: relative;
	display: block;
	max-width: 520px;
	margin-top: 24px;
}

.notes-filter .icon {
	position: absolute;
	top: 50%;
	left: 16px;
	color: var(--muted);
	transform: translateY(-50%);
	pointer-events: none;
}

.notes-filter input {
	width: 100%;
	height: 48px;
	padding: 0 16px 0 46px;
	border: 1px solid var(--border-strong);
	border-radius: 14px;
	background: var(--surface);
	color: var(--text);
	font: inherit;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.notes-filter input:focus {
	border-color: var(--accent);
	outline: none;
	box-shadow: 0 0 0 4px var(--glow);
}

.page-head .chips + .notes-filter {
	margin-top: 20px;
}

.page-head__count + .chips {
	margin-top: 16px;
}

/* ---------- Listas ---------- */
.notes-recent .section-title,
.notes-recent + .section-title {
	margin-bottom: 8px;
}

.notes-recent + .section-title {
	margin-top: 8px;
}

.row__date--icon {
	color: var(--muted);
}

.notes-group {
	margin: 32px 0 40px;
}

.notes-group__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 8px;
	font-size: 1.15rem;
}

.notes-group__title a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--text);
	text-decoration: none;
}

.notes-group__title a:hover {
	color: var(--accent);
}

.notes-group__title .icon {
	color: var(--accent);
}

.notes-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.notes-list li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 10px 0;
	border-bottom: 1px solid var(--border);
}

.notes-list a {
	color: var(--text);
	font-weight: 500;
	text-decoration: none;
}

.notes-list a:hover {
	color: var(--accent);
}

.notes-list__path {
	color: var(--muted);
	font-weight: 400;
}

.notes-list time {
	flex-shrink: 0;
	color: var(--muted);
	font-size: 0.85rem;
	font-variant-numeric: tabular-nums;
}

.related .notes-list {
	max-width: var(--narrow);
}

.related .section-title a {
	color: var(--accent);
	text-decoration: none;
}

[hidden] {
	display: none !important;
}

/* ---------- Nota ---------- */
.article__info a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--border-strong);
	text-underline-offset: 3px;
}

.article__info a:hover {
	color: var(--accent);
}

.note-source {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.note-missing {
	color: var(--muted);
	text-decoration: underline dotted;
	cursor: help;
}

.entry-content mark {
	padding: 0.05em 0.25em;
	border-radius: 4px;
	background: rgba(250, 204, 21, 0.35);
	color: inherit;
}

.table-wrap {
	margin-bottom: 1.4em;
	overflow-x: auto;
}

.table-wrap table {
	margin: 0;
}

.entry-content .mermaid {
	margin: 0 0 1.4em;
	padding: 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--surface);
	overflow-x: auto;
	text-align: center;
	white-space: pre;
	font-family: var(--font-mono);
	font-size: 0.85rem;
}

.entry-content .mermaid[data-processed] {
	white-space: normal;
}

.entry-content li.task {
	list-style: none;
	margin-left: -1.4em;
}

.task__box {
	display: inline-block;
	width: 1em;
	height: 1em;
	margin-right: 0.5em;
	border: 2px solid var(--border-strong);
	border-radius: 4px;
	vertical-align: -0.12em;
}

.task.is-done .task__box {
	border-color: var(--accent);
	background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 80% no-repeat;
}

/* ---------- Callouts do Obsidian ---------- */
.entry-content blockquote.callout {
	--callout: #3b82f6;
	padding: 14px 18px;
	border-left: 4px solid var(--callout);
	border-radius: var(--radius-sm);
	background: color-mix(in srgb, var(--callout) 9%, transparent);
	font-size: 1em;
	font-style: normal;
}

.callout__title {
	margin: 0 0 6px;
	color: var(--callout);
	font-weight: 700;
}

.callout > :last-child {
	margin-bottom: 0;
}

.callout--tip,
.callout--hint,
.callout--success,
.callout--check,
.callout--done {
	--callout: #10b981;
}

.callout--warning,
.callout--caution,
.callout--attention,
.callout--important,
.callout--question,
.callout--faq {
	--callout: #f59e0b;
}

.callout--danger,
.callout--error,
.callout--bug,
.callout--failure {
	--callout: #ef4444;
}

.callout--example,
.callout--abstract,
.callout--summary,
.callout--tldr {
	--callout: #8b5cf6;
}

.callout--quote {
	--callout: var(--muted);
}
