/*
 * AUTOOL component skin — applies the Dongchedi-derived tokens (tokens.css)
 * to the pieces Blocksy's own CSS variables don't reach: cards, form
 * fields, tags/code chips, pagination, selection and scrollbar treatment.
 * Keep this file additive; do not redeclare Blocksy's structural CSS.
 */

::selection {
	background: var(--dcd-yellow);
	color: var(--dcd-text);
}

/* Hover-reveal scrollbar, matching the reference's side-nav scroll areas */
.dcd-scroll {
	scrollbar-width: thin;
	scrollbar-color: transparent transparent;
}

.dcd-scroll:hover {
	scrollbar-color: var(--dcd-border-strong) transparent;
}

.dcd-scroll::-webkit-scrollbar {
	width: 6px;
	height: 6px;
}

.dcd-scroll::-webkit-scrollbar-thumb {
	background: transparent;
	border-radius: var(--dcd-radius-sm);
}

.dcd-scroll:hover::-webkit-scrollbar-thumb {
	background: var(--dcd-border-strong);
}

/* Form fields: 2px hairline border, small radius, yellow focus */
input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
textarea,
select {
	border: 1px solid var(--dcd-border);
	border-radius: var(--dcd-radius-sm);
	color: var(--dcd-text);
	background-color: var(--dcd-surface);
}

input[type="text"]:focus,
input[type="search"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
	border-color: var(--dcd-yellow);
	box-shadow: 0 0 0 3px var(--dcd-hover-tint);
	outline: none;
}

/* Card surfaces (archive/directory cards, related-content cards, etc.) */
.ct-media-container,
article.type-post,
.entry-card,
.ct-panel {
	border-radius: var(--dcd-radius-md);
}

/* Code / DTC identifier chips — dense technical identifiers keep a
   monospace-leaning, high-contrast treatment distinct from prose links */
.dcd-code-chip {
	display: inline-flex;
	align-items: center;
	gap: var(--dcd-space-2);
	padding: var(--dcd-space-1) var(--dcd-space-4);
	font-size: var(--dcd-fs-meta);
	line-height: var(--dcd-lh-meta);
	font-weight: 600;
	color: var(--dcd-text);
	background: var(--dcd-page);
	border: 1px solid var(--dcd-border);
	border-radius: var(--dcd-radius-sm);
}

.dcd-code-chip:hover {
	border-color: var(--dcd-yellow);
	background: var(--dcd-hover-tint);
	color: var(--dcd-orange-hover-text);
}

/* Status tags (severity / verified-repair labels) — colour is always
   paired with a label, never the only signal (accessibility rule kept
   from the existing baseline). */
.dcd-tag {
	display: inline-flex;
	align-items: center;
	padding: var(--dcd-space-1) var(--dcd-space-4);
	border-radius: var(--dcd-radius-sm);
	font-size: var(--dcd-fs-meta);
	line-height: var(--dcd-lh-meta);
	font-weight: 500;
}

.dcd-tag--verified {
	color: var(--dcd-green);
	background: rgba(0, 168, 96, 0.1);
}

.dcd-tag--warning {
	color: var(--dcd-red);
	background: rgba(176, 36, 37, 0.1);
}

/* Pagination */
.wp-pagenavi,
.pagination {
	display: flex;
	gap: var(--dcd-space-4);
}

.wp-pagenavi a,
.wp-pagenavi span,
.pagination a,
.pagination span {
	border-radius: var(--dcd-radius-sm);
}

.wp-pagenavi .current,
.pagination .current {
	background: var(--dcd-yellow-active-gradient);
	color: var(--dcd-text);
}

/* Long-form reading column (editorial / repair-guide body copy) uses the
   larger, more legible article scale — see tokens.css comment. */
.entry-content,
.dcd-article-body {
	font-size: var(--dcd-fs-article-body);
	line-height: var(--dcd-lh-article-body);
	color: var(--dcd-text);
}
