.tuh-tab-tutorials {
    background: var(--tuh-card-bg, #ffffff);
    border: 1px solid var(--tuh-card-border, #e5e7eb);
    border-radius: 16px;
    padding: 18px 20px;
    margin: 0 0 22px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

/* Keep tutorial cards readable when SPA is forced to light mode. */
.tuh-async-dashboard[data-theme="light"] .tuh-tab-tutorials,
.tuh-wc-content[data-theme="light"] .tuh-tab-tutorials,
body[data-theme="light"] .tuh-spa-wrapper .tuh-tab-tutorials {
    background: #ffffff;
    border-color: #e5e7eb;
}

.tuh-async-dashboard[data-theme="light"] .tuh-tab-tutorials__card,
.tuh-wc-content[data-theme="light"] .tuh-tab-tutorials__card,
body[data-theme="light"] .tuh-spa-wrapper .tuh-tab-tutorials__card {
    background: #f8fafc;
    border-color: #e5e7eb;
    color: #111827;
}

.tuh-async-dashboard[data-theme="light"] .tuh-tab-tutorials__card-desc,
.tuh-async-dashboard[data-theme="light"] .tuh-tab-tutorials__subtitle,
.tuh-async-dashboard[data-theme="light"] .tuh-tab-tutorials__meta,
.tuh-wc-content[data-theme="light"] .tuh-tab-tutorials__card-desc,
.tuh-wc-content[data-theme="light"] .tuh-tab-tutorials__subtitle,
.tuh-wc-content[data-theme="light"] .tuh-tab-tutorials__meta,
body[data-theme="light"] .tuh-spa-wrapper .tuh-tab-tutorials__card-desc,
body[data-theme="light"] .tuh-spa-wrapper .tuh-tab-tutorials__subtitle,
body[data-theme="light"] .tuh-spa-wrapper .tuh-tab-tutorials__meta {
    color: #4b5563;
}

.tuh-tab-tutorials__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.tuh-tab-tutorials__title {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tuh-tab-tutorials__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tuh-text-secondary, #4b5563);
    background: var(--tuh-primary-alpha-10, rgba(59, 130, 246, 0.08));
    border: 1px solid var(--tuh-primary-alpha-20, rgba(59, 130, 246, 0.2));
    border-radius: 999px;
    padding: 4px 10px;
    width: fit-content;
}

.tuh-tab-tutorials__heading {
    font-size: 18px;
    font-weight: 700;
    color: var(--tuh-text-primary, #111827);
    margin: 0;
}

.tuh-tab-tutorials__subtitle {
    font-size: 14px;
    color: var(--tuh-text-secondary, #4b5563);
    margin: 0;
}

.tuh-tab-tutorials__all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--tuh-primary, #3b82f6);
    text-decoration: none;
    border: 1px solid transparent;
    padding: 6px 10px;
    border-radius: 999px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tuh-tab-tutorials__all:hover {
    background: var(--tuh-primary-alpha-10, rgba(59, 130, 246, 0.08));
    border-color: var(--tuh-primary-alpha-20, rgba(59, 130, 246, 0.2));
    color: var(--tuh-primary, #3b82f6);
}

.tuh-tab-tutorials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.tuh-tab-tutorials__card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border-radius: 12px;
    background: var(--tuh-background-alt, #f8fafc);
    border: 1px solid var(--tuh-card-border, #e5e7eb);
    text-decoration: none;
    color: var(--tuh-text-primary, #111827);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tuh-tab-tutorials__card:hover {
    background: var(--tuh-primary-alpha-10, rgba(59, 130, 246, 0.08));
    border-color: var(--tuh-primary, #3b82f6);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.tuh-tab-tutorials__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: var(--tuh-primary, #3b82f6);
    background: var(--tuh-primary-alpha-10, rgba(59, 130, 246, 0.08));
    width: fit-content;
}

.tuh-tab-tutorials__card-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: var(--tuh-text-primary, #111827);
}

.tuh-tab-tutorials__card-desc {
    font-size: 13px;
    color: var(--tuh-text-secondary, #4b5563);
    margin: 0;
    line-height: 1.4;
}

.tuh-tab-tutorials__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: var(--tuh-text-muted, #6b7280);
}

.tuh-tab-tutorials__meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 640px) {
    .tuh-tab-tutorials {
        padding: 16px;
    }

    .tuh-tab-tutorials__header {
        flex-direction: column;
        align-items: flex-start;
    }
}
