/* ===========================================================
   Skills page — extracted from inline <style> and re-aligned
   on the canonical design tokens. No gradients on icons, no
   playful rotate+scale hovers, no --vs-* aliases.
   =========================================================== */

.skills-intro-card,
.detail-card,
.architecture-card,
.category-card {
    border: 1px solid var(--border);
    background: var(--panel);
}

.section-intro,
.skills-intro-card {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-lg);
    background: var(--panel-alt);
    border: 1px solid var(--border);
    color: var(--text);
}

.curation-pill-row,
.file-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.curation-pill,
.file-pill,
.architecture-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: color-mix(in oklab, var(--token-keyword) 12%, transparent);
    border: 1px solid color-mix(in oklab, var(--token-keyword) 35%, transparent);
    color: var(--token-keyword);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.detail-card .card-header,
.architecture-card .card-header,
.category-card .card-header {
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--border);
    background: var(--panel-alt);
}

.detail-card .card-body,
.architecture-card .card-body {
    padding: var(--space-5);
}

.detail-text,
.architecture-description,
.architecture-notes {
    color: var(--text-soft);
    line-height: 1.6;
}

.lifecycle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
}

.lifecycle-step {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--panel-alt);
}

.lifecycle-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: color-mix(in oklab, var(--token-type) 18%, transparent);
    border: 1px solid color-mix(in oklab, var(--token-type) 40%, transparent);
    color: var(--token-type);
    flex-shrink: 0;
    font-size: 1.1rem;
}

.lifecycle-title,
.detail-subtitle {
    color: var(--text);
    font-weight: 600;
}

.lifecycle-title {
    font-family: var(--font-ui);
    font-size: 1rem;
    margin-bottom: var(--space-2);
}

.lifecycle-text,
.detail-list,
.ordered-list,
.adoption-signal {
    color: var(--text-soft);
    margin-bottom: 0;
}

.detail-subtitle {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin: var(--space-4) 0 var(--space-2);
}

.refresh-cadence {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--panel-alt);
}

.refresh-label {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 600;
}

.refresh-value {
    color: var(--token-type);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 600;
    text-align: right;
}

.source-list,
.architecture-links,
.tool-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.source-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--panel-alt);
    color: var(--text);
    text-decoration: none;
    transition: border-color var(--motion-base), color var(--motion-base);
}

.source-link:hover {
    border-color: var(--token-type);
    color: var(--text);
}

.source-type {
    color: var(--token-type);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: right;
}

.architecture-header,
.category-header-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-3);
}

.skill-tree {
    margin: 0 0 var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text-soft);
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    line-height: 1.6;
    white-space: pre-wrap;
}

.category-description,
.category-card .card-header h2 {
    color: inherit;
}

.category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text-soft);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 600;
    white-space: nowrap;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.skill-card {
    padding: var(--space-5);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--panel-alt);
    transition: background var(--motion-base), border-color var(--motion-base);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--token-type);
    opacity: 0;
    transition: opacity var(--motion-base);
}

.skill-card:hover {
    background: var(--panel-hover);
    border-color: var(--border-strong);
}

.skill-card:hover::before {
    opacity: 0.85;
}

.tool-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--border);
    margin-bottom: var(--space-3);
    transition: border-color var(--motion-base), color var(--motion-base);
}

.skill-card:hover .tool-icon-wrapper {
    border-color: var(--token-type);
}

.tool-icon {
    font-size: 1.5rem;
    color: var(--token-type);
}

.tool-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tool-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.badge-trust,
.badge-access {
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-trust {
    background: color-mix(in oklab, var(--token-keyword) 14%, transparent);
    color: var(--token-keyword);
    border: 1px solid color-mix(in oklab, var(--token-keyword) 35%, transparent);
}

.badge-access {
    background: color-mix(in oklab, var(--token-function) 14%, transparent);
    color: var(--token-function);
    border: 1px solid color-mix(in oklab, var(--token-function) 35%, transparent);
}

.tool-name {
    font-family: var(--font-ui);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-2);
    line-height: 1.3;
}

.tool-description {
    font-size: var(--text-sm);
    color: var(--text-soft);
    line-height: 1.55;
    margin-bottom: var(--space-3);
}

.tool-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: var(--space-3);
    padding: var(--space-3);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--panel);
}

.tool-details-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 600;
}

.tool-details-value {
    font-size: var(--text-sm);
    color: var(--text);
    font-weight: 600;
}

.adoption-signal {
    font-size: var(--text-sm);
    color: var(--text-soft);
    line-height: 1.5;
    margin-bottom: var(--space-3);
    flex: 1;
}

.tool-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    background: transparent;
    border: 1px solid var(--token-keyword);
    border-radius: var(--radius-sm);
    color: var(--token-keyword);
    text-decoration: none;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: var(--text-sm);
    transition: background var(--motion-fast), color var(--motion-fast);
}

.tool-link:hover {
    background: color-mix(in oklab, var(--token-keyword) 16%, transparent);
    color: var(--token-keyword);
}

.secondary-link {
    border-color: var(--border-strong);
    color: var(--text-soft);
}

.secondary-link:hover {
    background: var(--panel-hover);
    color: var(--text);
}

@media (max-width: 1199px) {
    .col-xl-4:nth-child(3n) .skill-card { border-right: none; }
}

@media (max-width: 991px) {
    .lifecycle-grid { grid-template-columns: 1fr; }
    .col-lg-6:nth-child(2n) .skill-card { border-right: none; }
}

@media (max-width: 767px) {
    .architecture-header,
    .category-header-content,
    .refresh-cadence {
        flex-direction: column;
    }
    .skill-card { border-right: none; }
    .tool-icon-wrapper { width: 42px; height: 42px; }
    .tool-icon { font-size: 1.3rem; }
}
