/*
Theme Name: Marketing Skills Directory 2026
Theme URI: https://marketingskills.directory
Author: Thrivemattic
Author URI: https://thrivemattic.com
Description: A modern theme for showcasing Claude Skills and AI marketing tools.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mkt-skills-2026
Tags: portfolio, custom-post-types, ai, skills
*/

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-50: #eef2ff;
    --primary-100: #e0e7ff;
    --secondary: #10b981;
    --dark: #1f2937;
    --light: #f9fafb;
    --gray: #6b7280;
    --border: #e5e7eb;
    --radius: 12px;
    --surface: #ffffff;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.03);
    --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Header ─────────────────────────────────────────────── */

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-logo {
    flex-shrink: 0;
}

.site-logo--dark {
    display: none !important;
}

[data-theme="dark"] .site-logo--light {
    display: none !important;
}

[data-theme="dark"] .site-logo--dark {
    display: inline !important;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.main-nav__link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.main-nav__link:hover {
    color: var(--text-primary);
}

.header-rss {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    transition: all var(--transition);
    flex-shrink: 0;
}

.header-rss:hover {
    border-color: #f97316;
    color: #f97316;
    background: #fff7ed;
}

[data-theme="dark"] .header-rss:hover {
    background: rgba(249, 115, 22, 0.1);
}

/* ── Hero ────────────────────────────────────────────────── */

.hero {
    text-align: center;
    padding: 48px 0 32px;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
}

/* ── Toolbar Panel ───────────────────────────────────────── */

.skills-toolbar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: var(--shadow-sm);
}

/* Search */
.skills-search {
    position: relative;
}

.skills-search__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

.skills-search input {
    width: 100%;
    height: 44px;
    padding: 0 16px 0 42px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--surface);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.skills-search input::placeholder {
    color: var(--text-muted);
}

.skills-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08);
}

/* Filters */
.skills-filters {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skills-filters__section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skills-filters__label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.skills-filters__group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skills-filters__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
}

/* Filter pills */
.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 32px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    font-size: 0.8125rem;
    font-family: inherit;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    line-height: 1;
}

.filter-pill:hover {
    background: var(--primary-50);
    border-color: var(--primary-100);
    color: var(--primary);
}

.filter-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    font-weight: 500;
}

.filter-pill__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 10px;
    font-size: 0.6875rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.06);
    line-height: 1;
}

.filter-pill.active .filter-pill__count {
    background: rgba(255, 255, 255, 0.25);
}

/* Sort */
.skills-sort {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
}

.skills-sort__label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-right: 4px;
}

.skills-sort__sep {
    color: var(--border);
    user-select: none;
}

.skills-sort__option {
    color: var(--text-muted);
    text-decoration: none;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
}

.skills-sort__option:hover {
    color: var(--primary);
}

.skills-sort__option.active {
    color: var(--primary);
    font-weight: 600;
    border-bottom-color: var(--primary);
}

/* Skills count */
.skills-count {
    font-size: 0.8125rem;
    color: var(--text-muted);
    padding: 12px 0 4px;
}

/* ── Skills Grid ─────────────────────────────────────────── */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding: 8px 0 48px;
}

.skill-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    display: flex;
    flex-direction: column;
}

.skill-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-100);
}

/* Card header */
.skill-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.skill-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.skill-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

.skill-card__title a:hover {
    color: var(--primary);
}

.skill-card__badge {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 3px;
    line-height: 1;
}

.skill-card__badge--premium {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.skill-card__badge--free {
    background: #ecfdf5;
    color: #059669;
}

.skill-card__badge--mcp {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.skill-card__badge--cli {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

/* Security level badges — card */
.skill-card__security {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.skill-card__security .security-icon {
    flex-shrink: 0;
}

.skill-card__security--safe {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.skill-card__security--caution {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.skill-card__security--unsafe {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Card tags */
.skill-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.skill-card__lines {
    display: inline-flex;
    align-items: center;
    font-size: 0.6875rem;
    font-weight: 500;
    background: var(--primary-50);
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 6px;
    line-height: 1.4;
}

.skill-card__cat {
    display: inline-flex;
    align-items: center;
    font-size: 0.6875rem;
    background: #f3f4f6;
    color: var(--text-secondary);
    padding: 2px 10px;
    border-radius: 6px;
    line-height: 1.4;
}

/* Card rating */
.skill-card .skill-rating--small {
    margin: 4px 0;
}

/* Card description */
.skill-card__description {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    line-height: 1.6;
    margin-bottom: 14px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card footer */
.skill-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: auto;
}

.skill-card__author {
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
}

.skill-card__author:hover {
    color: var(--primary);
}

.skill-card__source {
    color: var(--text-muted);
}

/* Empty state */
.skills-empty {
    text-align: center;
    padding: 48px 0;
    display: none;
}

.skills-empty__icon {
    font-size: 2rem;
    margin-bottom: 12px;
    opacity: 0.4;
}

.skills-empty__text {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 16px;
}

.skills-empty__reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
}

.skills-empty__reset:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ── Single Skill ────────────────────────────────────────── */

.skill-single {
    max-width: 800px;
    margin: 48px auto;
    background: var(--surface);
    padding: 48px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

/* Skill header */
.skill-header {
    margin-bottom: 28px;
}

.skill-header__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin: 12px 0 16px;
    line-height: 1.3;
}

.answer-capsule {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 16px;
    padding: 14px 18px;
    background: var(--primary-50);
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.skill-header__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* Skill badges (single page) */
.skill-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    line-height: 1.4;
    white-space: nowrap;
}

.skill-badge--free {
    background: #ecfdf5;
    color: #059669;
}

.skill-badge--premium {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.skill-badge--lines {
    background: var(--primary-50);
    color: var(--primary);
    font-weight: 500;
}

.skill-badge--neutral {
    background: var(--light);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    text-decoration: none;
}

.skill-badge--neutral:hover {
    background: var(--border);
}

.skill-badge--muted {
    background: #f3f4f6;
    color: var(--text-muted);
}

.skill-badge--category {
    background: var(--light);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all var(--transition);
}

.skill-badge--category:hover {
    background: var(--primary-50);
    border-color: var(--primary-100);
    color: var(--primary);
}

.skill-badge--mcp-type {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.skill-badge--cli-type {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.skill-badge--transport {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.skill-badge--github-stars {
    background: #fefce8;
    color: #a16207;
    border: 1px solid #fde68a;
    text-decoration: none;
}

.skill-badge--github-stars:hover {
    background: #fef9c3;
    border-color: #fcd34d;
}

/* Security level badges — single page */
.skill-badge--security {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.skill-badge--security .security-icon {
    flex-shrink: 0;
}

.skill-badge--security--safe {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.skill-badge--security--caution {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.skill-badge--security--unsafe {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Skill content sections */
.skill-section {
    margin-bottom: 28px;
}

.skill-section__heading {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.skill-section--description {
    padding: 20px 24px;
    background: var(--light);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.skill-section--visual {
    padding: 20px 24px;
    background: var(--light);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.skill-visual {
    overflow-x: auto;
    cursor: pointer;
    position: relative;
    transition: opacity 0.15s;
}

.skill-visual:hover {
    opacity: 0.85;
}

.skill-visual svg {
    max-width: 100%;
    height: auto;
}

.skill-visual__enlarge {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 8px;
    opacity: 0.6;
    transition: opacity 0.15s;
}

.skill-visual:hover .skill-visual__enlarge {
    opacity: 1;
}

/* Lightbox */
.skill-visual-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.skill-visual-lightbox.is-active {
    display: flex;
}

.skill-visual-lightbox__close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    z-index: 10000;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.skill-visual-lightbox__close:hover {
    opacity: 1;
}

.skill-visual-lightbox__content {
    width: 92vw;
    max-height: 88vh;
    overflow: auto;
    background: #fff;
    border-radius: 12px;
    padding: 40px 48px;
}

.skill-visual-lightbox__content svg {
    width: 100%;
    height: auto;
    display: block;
}

.skill-section--description .skill-section__heading {
    margin-bottom: 8px;
}

.skill-section__body {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.skill-section__body h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 20px 0 8px;
}

.skill-section__body h2:first-child {
    margin-top: 8px;
}

.skill-section__body h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 16px 0 6px;
}

.skill-section__body p {
    margin: 0 0 12px;
}

.skill-section__body p:last-child {
    margin-bottom: 0;
}

.skill-section__body ul,
.skill-section__body ol {
    padding-left: 1.4em;
    margin: 0 0 12px;
}

.skill-section__body li {
    margin-bottom: 6px;
}

.skill-section__body li:last-child {
    margin-bottom: 0;
}

/* What Claude Learns */
.skill-learns {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-learns__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.skill-learns__icon {
    color: var(--secondary);
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Installation code block */
.skill-code {
    background: var(--dark);
    color: #e5e7eb;
    padding: 16px 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.8125rem;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    line-height: 1.7;
    margin: 0;
}

.skill-code code {
    font-family: inherit;
}

/* Stack tags */
.skill-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-stack__tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    background: #dbeafe;
    color: #1e40af;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 500;
}

/* Actions / Download area */
.skill-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 32px 0;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.skill-actions__note {
    width: 100%;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
}

.skill-actions__cli {
    width: 100%;
}

.skill-actions__code {
    display: block;
    padding: 10px 16px;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: var(--text);
}

.access-code-form {
    width: 100%;
    margin-top: 4px;
}

.access-code-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text);
}

.access-code-form__row {
    display: flex;
    gap: 8px;
}

.access-code-form__row input {
    flex: 1;
    max-width: 260px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    background: var(--surface-1);
    color: var(--text);
}

.access-code-form__msg {
    font-size: 0.8125rem;
    margin: 6px 0 0;
}

.access-code-form__toggle {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 8px 0 0;
}

.access-code-form__toggle a {
    color: var(--accent);
    text-decoration: none;
}

.access-code-form__toggle a:hover {
    text-decoration: underline;
}

#acf-request .access-code-form__row input {
    font-family: inherit;
}

#acf-request .access-code-form__row input[type="email"] {
    max-width: 280px;
}

/* ── Buttons ─────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
    font-size: 0.875rem;
    font-family: inherit;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-50);
}

.btn-dark {
    background: var(--dark);
    color: white;
}

.btn-dark:hover {
    background: #374151;
}

.btn-disabled {
    background: #f3f4f6;
    color: var(--text-muted);
    border: 1px solid var(--border);
    cursor: not-allowed;
    font-size: 0.875rem;
    font-family: inherit;
}

.btn-cli-install {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.8125rem;
    border-style: dashed;
}

.btn-cli-install:hover {
    border-style: solid;
}

/* ── Star Ratings ────────────────────────────────────────── */

.skill-rating {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
}

.skill-rating--small {
    margin-top: 8px;
    margin-bottom: 8px;
    font-size: 1rem;
}

.skill-rating__stars {
    display: inline-flex;
    gap: 2px;
}

.skill-rating__stars--interactive .skill-rating__star {
    cursor: pointer;
    transition: transform 0.1s;
}

.skill-rating__stars--interactive .skill-rating__star:hover {
    transform: scale(1.2);
}

.skill-rating__star {
    color: #d1d5db;
}

.skill-rating__star.filled {
    color: #f59e0b;
}

.skill-rating__count {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ── Submit Skill Form ───────────────────────────────────── */

.submit-form {
    max-width: 720px;
    margin: 0 auto 64px;
    background: var(--surface);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.submit-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.submit-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.submit-form__row .submit-form__field {
    margin-bottom: 0;
}

.submit-form label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.submit-form .required {
    color: #ef4444;
}

.submit-form input[type="text"],
.submit-form input[type="email"],
.submit-form input[type="url"],
.submit-form select,
.submit-form textarea {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
    width: 100%;
}

.submit-form input:focus,
.submit-form select:focus,
.submit-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08);
}

.submit-form__message {
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
    display: none;
}

.submit-form__message--success {
    display: block;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.submit-form__message--error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ── Breadcrumbs ────────────────────────────────────────── */

.breadcrumbs {
    font-size: 0.8125rem;
    color: var(--text-muted);
    padding: 16px 0 0;
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs__sep {
    margin: 0 8px;
    color: var(--border);
}

/* ── Skill Page: Use Cases ──────────────────────────────── */

.skill-use-cases {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-use-case {
    padding: 14px 16px;
    background: #f0fdf4;
    border-radius: 8px;
    border-left: 3px solid #10b981;
}

.skill-use-case__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.skill-use-case__desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ── Skill Page: Related Skills ─────────────────────────── */

.skill-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.skill-related-card {
    background: var(--light);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
    display: block;
}

.skill-related-card:hover {
    border-color: var(--primary-100);
    box-shadow: var(--shadow-sm);
}

.skill-related-card__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.skill-related-card__lines {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 500;
}

.skill-related-card__desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ── Skill Page: FAQ ────────────────────────────────────── */

.skill-faq__item {
    margin-bottom: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.skill-faq__question {
    padding: 12px 16px;
    font-weight: 500;
    cursor: pointer;
    background: var(--light);
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.skill-faq__item[open] .skill-faq__question {
    border-bottom: 1px solid var(--border);
}

.skill-faq__answer {
    padding: 12px 16px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Skill Page: More in Category ───────────────────────── */

.skill-more-category {
    margin-top: 32px;
    padding: 24px;
    background: var(--primary-50);
    border-radius: 8px;
}

.skill-more-category__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.skill-more-category__header h2 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.skill-more-category__link {
    font-size: 0.8125rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.skill-more-category__link:hover {
    text-decoration: underline;
}

.skill-more-category__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.skill-more-category__card {
    background: var(--surface);
    padding: 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: border-color var(--transition);
}

.skill-more-category__card:hover {
    border-color: var(--primary-100);
}

.skill-more-category__name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.skill-more-category__excerpt {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ── Category Archive ───────────────────────────────────── */

.category-hero {
    text-align: center;
    padding: 32px 0 24px;
}

.category-hero h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.category-summary {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 640px;
    margin: 0 auto;
}

.category-stats {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.category-stats__item {
    text-align: center;
}

.category-stats__value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.category-stats__label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.category-stacks {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding: 0 4px;
}

.category-stacks__label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
}

.category-stacks__tag {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    background: #dbeafe;
    color: #1e40af;
    padding: 3px 10px;
    border-radius: 4px;
}

.category-faq {
    max-width: 800px;
    margin: 48px auto;
}

.category-faq h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.category-faq details {
    margin-bottom: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.category-faq summary {
    padding: 12px 16px;
    font-weight: 500;
    cursor: pointer;
    background: var(--light);
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.category-faq details[open] summary {
    border-bottom: 1px solid var(--border);
}

.category-faq details p {
    padding: 12px 16px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.category-related {
    margin: 48px 0;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.category-related h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.category-related__grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    .skills-toolbar {
        padding: 16px;
    }
    .skills-grid {
        grid-template-columns: 1fr;
    }
    .skills-filters__row {
        flex-direction: column;
        align-items: flex-start;
    }
    .skills-filters__group {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 32px 0 24px;
    }
    .hero h1 {
        font-size: 1.25rem;
    }
    .skill-card {
        padding: 16px;
    }
    .submit-form {
        padding: 24px;
    }
    .submit-form__row {
        grid-template-columns: 1fr;
    }
    .skills-sort {
        flex-wrap: wrap;
    }
    .skill-single {
        padding: 24px;
        margin: 24px auto;
    }
    .skill-header__title {
        font-size: 1.25rem;
    }
    .skill-section--description {
        padding: 16px;
    }
    .skill-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .skill-actions .btn {
        justify-content: center;
    }
    .skill-related-grid {
        grid-template-columns: 1fr;
    }
    .skill-more-category__grid {
        grid-template-columns: 1fr;
    }
    .category-hero h1 {
        font-size: 1.25rem;
    }
    .category-stats {
        gap: 20px;
        padding: 16px;
    }
}

/* ── Header Submit Dropdown ──────────────────────────────── */

.header-submit-dropdown {
    position: relative;
}

.header-submit-dropdown__menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    padding-top: 6px;
    min-width: 180px;
    z-index: 200;
}

.header-submit-dropdown__menu::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.header-submit-dropdown:hover .header-submit-dropdown__menu,
.header-submit-dropdown:focus-within .header-submit-dropdown__menu {
    display: block;
}

.header-submit-dropdown__menu a {
    display: block;
    position: relative;
    padding: 10px 16px;
    font-size: 0.875rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background var(--transition);
}

.header-submit-dropdown__menu a:hover {
    background: var(--primary-50);
    color: var(--primary);
}

.header-submit-dropdown__menu a + a {
    border-top: 1px solid var(--border);
}

/* ── Footer ──────────────────────────────────────────────── */

.site-footer {
    background: var(--dark);
    color: white;
    padding: 48px 0 32px;
    margin-top: 64px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 8px;
}

.footer-tagline {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

.footer-built {
    color: #9ca3af;
    font-size: 0.8125rem;
}

.footer-built a {
    color: #818cf8;
    text-decoration: none;
}

.footer-built a:hover {
    text-decoration: underline;
}

.footer-col__heading {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    margin-bottom: 16px;
}

.footer-col__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col__links a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-col__links a:hover {
    color: white;
}

.footer-badge-link {
    display: inline-block;
    margin-top: 12px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-badge-link:hover {
    opacity: 1;
}

.footer-badge--dark {
    display: none;
}

[data-theme="dark"] .footer-badge--light {
    display: none;
}

[data-theme="dark"] .footer-badge--dark {
    display: inline;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: #6b7280;
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .footer-col--brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* ── Theme Toggle Button ─────────────────────────────────── */

.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    width: 36px;
    height: 36px;
    font-size: 1.125rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-50);
}

/* ── Dark Markdown Mode ──────────────────────────────────── */

[data-theme="dark"] {
    --surface: #1a1b26;
    --bg: #13141c;
    --text-primary: #c0caf5;
    --text-secondary: #787c99;
    --text-muted: #565a6e;
    --border: #2a2b3d;
    --primary: #b5b342;
    --primary-dark: #8f8d35;
    --primary-50: #1f1f1a;
    --primary-100: #25251e;
    --secondary: #9ece6a;
    --dark: #0f1017;
    --light: #1e1f2e;
    --gray: #565a6e;
    --radius: 2px;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
}

/* Font switch to monospace */
[data-theme="dark"] body {
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.8125rem;
    letter-spacing: -0.01em;
    background: var(--bg);
}

/* Page background */
[data-theme="dark"] .site-main {
    background: var(--bg);
}

/* Header */
[data-theme="dark"] .site-header {
    background: var(--surface);
    border-bottom: 1px dashed var(--border);
}

[data-theme="dark"] .site-title {
    font-family: 'JetBrains Mono', monospace;
}

/* Hero — markdown heading style */
[data-theme="dark"] .hero h1 {
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

[data-theme="dark"] .hero h1::before {
    content: '# ';
    color: var(--text-muted);
    font-weight: 400;
}

[data-theme="dark"] .hero p {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-secondary);
}

/* Skill cards — flat dashed borders */
[data-theme="dark"] .skill-card {
    border: 1px dashed var(--border);
    background: var(--surface);
}

[data-theme="dark"] .skill-card:hover {
    transform: none;
    border-color: var(--primary);
    border-style: solid;
}

[data-theme="dark"] .skill-card__title a {
    text-decoration: underline;
    text-decoration-color: var(--border);
    text-underline-offset: 3px;
}

[data-theme="dark"] .skill-card__title a:hover {
    text-decoration-color: var(--primary);
}

/* Badges — minimal bordered tags */
[data-theme="dark"] .skill-card__badge {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 2px;
    font-family: 'JetBrains Mono', monospace;
}

[data-theme="dark"] .skill-card__badge--free {
    border-color: #2d4a3e;
    color: #9ece6a;
    background: transparent;
}

[data-theme="dark"] .skill-card__badge--premium {
    border-color: #4a3d2d;
    color: #e0af68;
    background: transparent;
}

[data-theme="dark"] .skill-card__badge--cli {
    border-color: #92400e;
    color: #fbbf24;
    background: transparent;
}

[data-theme="dark"] .skill-card__badge--mcp {
    border-color: #3a3a2a;
    color: #b5b342;
    background: transparent;
}

[data-theme="dark"] .skill-card__security--safe {
    background: transparent;
    border-color: #2d4a3e;
    color: #9ece6a;
}

[data-theme="dark"] .skill-card__security--caution {
    background: transparent;
    border-color: #4a3d2d;
    color: #e0af68;
}

[data-theme="dark"] .skill-card__security--unsafe {
    background: transparent;
    border-color: #4a2d2d;
    color: #f7768e;
}

/* Card metadata tags */
[data-theme="dark"] .skill-card__lines {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 2px;
    color: var(--primary);
}

[data-theme="dark"] .skill-card__cat {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 2px;
    color: var(--text-secondary);
}

/* Card footer — dashed separator */
[data-theme="dark"] .skill-card__footer {
    border-top-style: dashed;
}

/* Filter pills — dashed, square */
[data-theme="dark"] .filter-pill {
    border-radius: 2px;
    border-style: dashed;
    background: transparent;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
}

[data-theme="dark"] .filter-pill:hover {
    border-style: solid;
}

[data-theme="dark"] .filter-pill.active {
    border-style: solid;
    background: var(--primary-50);
    border-color: var(--primary);
    color: var(--primary);
}

[data-theme="dark"] .filter-pill__count {
    background: rgba(181, 179, 66, 0.15);
}

[data-theme="dark"] .filter-pill.active .filter-pill__count {
    background: rgba(181, 179, 66, 0.25);
}

/* Search input */
[data-theme="dark"] .skills-search input {
    background: var(--surface);
    border-style: dashed;
    border-radius: 2px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
}

[data-theme="dark"] .skills-search input:focus {
    border-style: solid;
    border-color: var(--primary);
    box-shadow: none;
}

/* Buttons — outlined in dark mode */
[data-theme="dark"] .btn {
    font-family: 'JetBrains Mono', monospace;
    border-radius: 2px;
}

[data-theme="dark"] .btn-primary {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

[data-theme="dark"] .btn-primary:hover {
    background: var(--primary-50);
}

[data-theme="dark"] .btn-secondary {
    border-style: dashed;
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

[data-theme="dark"] .btn-secondary:hover {
    border-style: solid;
}

[data-theme="dark"] .btn-dark {
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-primary);
}

[data-theme="dark"] .btn-dark:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Single skill/MCP page */
[data-theme="dark"] .skill-single {
    border-style: dashed;
}

[data-theme="dark"] .skill-section__heading,
[data-theme="dark"] .compare-content h2 {
    font-family: 'JetBrains Mono', monospace;
}

[data-theme="dark"] .skill-section__heading::before,
[data-theme="dark"] .compare-content h2::before {
    content: '## ';
    color: var(--text-muted);
    font-weight: 400;
}

[data-theme="dark"] .skill-section--description {
    border-style: dashed;
    background: var(--light);
}

[data-theme="dark"] .skill-section--visual {
    border-style: dashed;
    background: var(--light);
}

[data-theme="dark"] .skill-visual-lightbox__content {
    background: #1a1a2e;
}

[data-theme="dark"] .skill-code {
    background: #0f1017;
    border: 1px dashed var(--border);
    border-radius: 2px;
}

/* Badges on single pages */
[data-theme="dark"] .skill-badge {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 2px;
    font-family: 'JetBrains Mono', monospace;
}

[data-theme="dark"] .skill-badge--free {
    border-color: #2d4a3e;
    color: #9ece6a;
    background: transparent;
}

[data-theme="dark"] .skill-badge--premium {
    border-color: #4a3d2d;
    color: #e0af68;
    background: transparent;
}

[data-theme="dark"] .skill-badge--lines {
    background: transparent;
    border-color: var(--border);
    color: var(--primary);
}

[data-theme="dark"] .skill-badge--neutral,
[data-theme="dark"] .skill-badge--muted,
[data-theme="dark"] .skill-badge--category {
    background: transparent;
    border-color: var(--border);
}

[data-theme="dark"] .skill-badge--category:hover {
    border-color: var(--primary);
    background: var(--primary-50);
}

[data-theme="dark"] .skill-badge--cli-type {
    border-color: #92400e;
    color: #fbbf24;
    background: transparent;
}

[data-theme="dark"] .skill-badge--mcp-type {
    border-color: #3a3a2a;
    color: #b5b342;
    background: transparent;
}

[data-theme="dark"] .skill-badge--transport {
    border-color: #2d4a3e;
    color: #9ece6a;
    background: transparent;
}

[data-theme="dark"] .skill-badge--github-stars {
    background: transparent;
    border-color: #4a3d2d;
    color: #e2b340;
}

[data-theme="dark"] .skill-badge--github-stars:hover {
    border-color: #6b5a3a;
    background: rgba(226, 179, 64, 0.1);
}

[data-theme="dark"] .skill-badge--security--safe {
    background: transparent;
    border-color: #2d4a3e;
    color: #9ece6a;
}

[data-theme="dark"] .skill-badge--security--caution {
    background: transparent;
    border-color: #4a3d2d;
    color: #e0af68;
}

[data-theme="dark"] .skill-badge--security--unsafe {
    background: transparent;
    border-color: #4a2d2d;
    color: #f7768e;
}

/* Stack tags */
[data-theme="dark"] .skill-stack__tag {
    background: transparent;
    border: 1px solid #3a3a2a;
    color: #b5b342;
    border-radius: 2px;
}

/* Use cases */
[data-theme="dark"] .skill-use-case {
    background: var(--light);
    border-left-color: var(--secondary);
    border-radius: 2px;
}

/* FAQ */
[data-theme="dark"] .skill-faq__item {
    border-style: dashed;
    border-radius: 2px;
}

[data-theme="dark"] .skill-faq__question {
    background: var(--light);
}

[data-theme="dark"] .skill-faq__item[open] .skill-faq__question {
    border-bottom-style: dashed;
}

/* Related skills */
[data-theme="dark"] .skill-related-card {
    background: var(--surface);
    border-style: dashed;
    border-radius: 2px;
}

[data-theme="dark"] .skill-related-card:hover {
    border-style: solid;
    border-color: var(--primary);
}

/* More in category */
[data-theme="dark"] .skill-more-category {
    background: var(--light);
    border: 1px dashed var(--text-secondary);
    border-radius: 2px;
}

[data-theme="dark"] .skill-more-category__header h2 {
    color: var(--text-primary);
}

[data-theme="dark"] .skill-more-category__card {
    border-style: dashed;
    border-color: var(--text-secondary);
    border-radius: 2px;
}

[data-theme="dark"] .skill-more-category__card:hover {
    border-style: solid;
    border-color: var(--primary);
}

[data-theme="dark"] .skill-more-category__excerpt {
    color: var(--text-secondary);
}

/* Header submit dropdown */
[data-theme="dark"] .header-submit-dropdown__menu::before {
    background: var(--surface);
    border-style: dashed;
    border-radius: 2px;
}

[data-theme="dark"] .header-submit-dropdown__menu a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
}

/* Footer */
[data-theme="dark"] .site-footer {
    background: var(--surface);
    border-top: 1px dashed var(--border);
    color: var(--text-secondary);
}
[data-theme="dark"] .footer-tagline,
[data-theme="dark"] .footer-built,
[data-theme="dark"] .footer-col__heading {
    color: var(--text-muted);
}
[data-theme="dark"] .footer-built a {
    color: var(--primary);
}
[data-theme="dark"] .footer-col__links a {
    color: var(--text-secondary);
}
[data-theme="dark"] .footer-col__links a:hover {
    color: var(--text-primary);
}
[data-theme="dark"] .footer-bottom {
    border-top-color: var(--border);
}
[data-theme="dark"] .footer-bottom p {
    color: var(--text-muted);
}

/* Category archive page */
[data-theme="dark"] .breadcrumbs a {
    text-decoration: underline;
    text-decoration-color: var(--border);
}

/* Toolbar and filters sections */
[data-theme="dark"] .skills-toolbar {
    border-style: dashed;
}

[data-theme="dark"] .skills-filters__label {
    font-family: 'JetBrains Mono', monospace;
}

/* Rating stars */
[data-theme="dark"] .skill-rating .star {
    opacity: 0.6;
}

[data-theme="dark"] .skill-rating .star.filled {
    opacity: 1;
}

/* Mobile adjustments for monospace */
@media (max-width: 768px) {
    [data-theme="dark"] body {
        font-size: 0.75rem;
    }

    [data-theme="dark"] .hero h1 {
        font-size: 1.25rem;
    }

    [data-theme="dark"] .filter-pill {
        font-size: 0.6875rem;
        padding: 0 10px;
        height: 28px;
    }
}

/* ── Video Card ──────────────────────────────────────────── */

/* ── Video Cards ────────────────────────────────────────── */

.video-card .video-card__thumbnail {
    position: relative;
    margin: -24px -24px 16px -24px;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.video-card .video-card__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition);
}

.video-card:hover .video-card__thumbnail img {
    transform: scale(1.03);
}

.video-card__duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.02em;
}

.skill-card__badge--video {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* ── Video Player (Single Page) ──────────────────────────── */

.video-player {
    margin-bottom: 28px;
}

.video-player__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.video-player__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.skill-badge--video-type {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* ── Video Card — Dark Mode ──────────────────────────────── */

[data-theme="dark"] .video-card {
    border: 1px dashed var(--border);
}

[data-theme="dark"] .video-card:hover {
    border-style: solid;
    border-color: var(--primary);
}

[data-theme="dark"] .video-card .video-card__thumbnail {
    border-radius: 2px 2px 0 0;
}

[data-theme="dark"] .video-card:hover .video-card__thumbnail img {
    transform: none;
}

[data-theme="dark"] .video-card__duration {
    background: rgba(0, 0, 0, 0.9);
    border-radius: 2px;
    font-family: 'JetBrains Mono', monospace;
}

[data-theme="dark"] .skill-card__badge--video {
    background: transparent;
    border: 1px solid #4a2d2d;
    color: #f7768e;
}

[data-theme="dark"] .skill-badge--video-type {
    background: transparent;
    border: 1px solid #4a2d2d;
    color: #f7768e;
}

[data-theme="dark"] .video-player__wrapper {
    border-style: dashed;
    border-radius: 2px;
}

/* ── Video Card — Responsive ─────────────────────────────── */

@media (max-width: 480px) {
    .video-card .video-card__thumbnail {
        margin: -16px -16px 12px -16px;
    }
}

/* ── Newsletter Signup ─────────────────────────────────── */

.newsletter {
    max-width: 600px;
    margin: 16px auto 48px;
    padding: 40px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.newsletter__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.newsletter__desc {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 24px;
}

.newsletter__form {
    display: flex;
    gap: 10px;
    max-width: 440px;
    margin: 0 auto;
}

.newsletter__input {
    flex: 1;
    height: 44px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--surface);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.newsletter__input::placeholder {
    color: var(--text-muted);
}

.newsletter__input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08);
}

.newsletter__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 44px;
    padding: 0 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background var(--transition);
    white-space: nowrap;
}

.newsletter__btn:hover {
    background: var(--primary-dark);
}

.newsletter__spinner {
    animation: newsletter-spin 0.8s linear infinite;
}

@keyframes newsletter-spin {
    to { transform: rotate(360deg); }
}

.newsletter__message {
    display: none;
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    text-align: left;
}

.newsletter__message--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.newsletter__message--success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* Newsletter inside single pages — full width of the article */
.skill-single .newsletter {
    max-width: none;
    margin: 32px 0 0;
    box-shadow: none;
}

/* ── Newsletter — Dark Mode ────────────────────────────── */

[data-theme="dark"] .newsletter {
    border-style: dashed;
}

[data-theme="dark"] .newsletter__title {
    font-family: 'JetBrains Mono', monospace;
}

[data-theme="dark"] .newsletter__input {
    border-style: dashed;
    border-radius: 2px;
    background: var(--light);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8125rem;
}

[data-theme="dark"] .newsletter__input:focus {
    border-style: solid;
    box-shadow: none;
}

[data-theme="dark"] .newsletter__btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 2px;
    font-family: 'JetBrains Mono', monospace;
}

[data-theme="dark"] .newsletter__btn:hover {
    background: var(--primary-50);
}

[data-theme="dark"] .newsletter__message {
    border-radius: 2px;
}

[data-theme="dark"] .newsletter__message--error {
    background: rgba(247, 118, 142, 0.1);
    color: #f7768e;
    border-color: #4a2d2d;
}

[data-theme="dark"] .newsletter__message--success {
    background: rgba(158, 206, 106, 0.1);
    color: #9ece6a;
    border-color: #2d4a3e;
}

/* ── Newsletter — Responsive ───────────────────────────── */

@media (max-width: 480px) {
    .newsletter {
        padding: 24px;
    }
    .newsletter__form {
        flex-direction: column;
    }
    .newsletter__btn {
        justify-content: center;
    }
}

/* ── Learn Pages ──────────────────────────────────────── */

.skill-badge--learn {
    background: var(--primary-50);
    color: var(--primary);
    border: 1px solid var(--primary-100);
}

.skill-badge--difficulty-beginner {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #d1fae5;
}

.skill-badge--difficulty-intermediate {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fef3c7;
}

.skill-badge--difficulty-advanced {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Table of Contents */

.learn-toc {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 0 0 32px;
}

.learn-toc__title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin: 0 0 12px;
}

.learn-toc__list {
    margin: 0;
    padding: 0 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.learn-toc__list li {
    font-size: 0.9rem;
    line-height: 1.5;
}

.learn-toc__list a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition);
}

.learn-toc__list a:hover {
    color: var(--primary);
}

/* Learn content prose */

.learn-content .skill-section__body h2 {
    margin: 32px 0 12px;
    font-size: 1.4rem;
    scroll-margin-top: 80px;
}

.learn-content .skill-section__body h3 {
    margin: 24px 0 8px;
    font-size: 1.15rem;
}

.learn-content .skill-section__body p {
    margin: 0 0 16px;
    line-height: 1.8;
}

.learn-content .skill-section__body ul,
.learn-content .skill-section__body ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.learn-content .skill-section__body li {
    margin-bottom: 6px;
    line-height: 1.7;
}

.learn-content .skill-section__body a:not(.btn) {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.learn-content .skill-section__body a:not(.btn):hover {
    color: var(--primary-dark);
}

.learn-content .skill-section__body pre {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    overflow-x: auto;
    font-size: 0.95rem;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    line-height: 1.8;
    margin: 0 0 16px;
}

.learn-content .skill-section__body pre .copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--border);
    border: none;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

.learn-content .skill-section__body pre:hover .copy-btn {
    opacity: 1;
}

.learn-content .skill-section__body pre .copy-btn:hover {
    color: var(--text-primary);
}

.learn-content .skill-section__body code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.95em;
}

.learn-content .skill-section__body :not(pre) > code {
    background: var(--surface);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.learn-content .skill-section__body table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 0 0 16px;
    font-size: 0.9rem;
}

.learn-content .skill-section__body th {
    background: var(--border);
    font-weight: 600;
    text-align: left;
    padding: 10px 14px;
}

.learn-content .skill-section__body td {
    padding: 10px 14px;
    border-top: 1px solid var(--border);
}

/* Last reviewed date */

.learn-reviewed {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: center;
    margin: 24px 0;
    padding: 12px 0;
    border-top: 1px solid var(--border);
}

/* Learn archive grid */

.learn-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 32px 0;
}

.learn-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow var(--transition), border-color var(--transition);
}

.learn-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.learn-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.learn-card__time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.learn-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--text-primary);
}

.learn-card__excerpt {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Archive header */

.archive-header {
    text-align: center;
    margin: 40px 0 8px;
}

.archive-header__title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.archive-header__desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Learn — Dark Mode */

[data-theme="dark"] .learn-toc {
    background: var(--surface);
    border-color: var(--border);
}

[data-theme="dark"] .skill-badge--learn {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border-color: rgba(99, 102, 241, 0.25);
}

[data-theme="dark"] .skill-badge--difficulty-beginner {
    background: rgba(5, 150, 105, 0.15);
    color: #6ee7b7;
    border-color: rgba(5, 150, 105, 0.25);
}

[data-theme="dark"] .skill-badge--difficulty-intermediate {
    background: rgba(217, 119, 6, 0.15);
    color: #fcd34d;
    border-color: rgba(217, 119, 6, 0.25);
}

[data-theme="dark"] .skill-badge--difficulty-advanced {
    background: rgba(220, 38, 38, 0.15);
    color: #fca5a5;
    border-color: rgba(220, 38, 38, 0.25);
}

[data-theme="dark"] .learn-card {
    background: var(--surface);
    border-color: var(--border);
}

[data-theme="dark"] .learn-card:hover {
    border-color: var(--primary);
}

@media (max-width: 640px) {
    .learn-archive-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Roundup Pages ───────────────────────────────────────── */

/* Roundup cards */
.roundup-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    position: relative;
}

.roundup-card__rank {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    position: absolute;
    top: 24px;
    right: 24px;
    opacity: 0.3;
}

.roundup-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.roundup-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.roundup-card__title a {
    color: var(--text-primary);
    text-decoration: none;
}
.roundup-card__title a:hover {
    color: var(--primary);
}

.roundup-card__pick {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 4px;
}
.roundup-card__pick--our-pick {
    background: rgba(217, 119, 6, 0.12);
    color: #b45309;
}
.roundup-card__pick--best-free {
    background: rgba(22, 163, 74, 0.1);
    color: #15803d;
}
.roundup-card__pick--runner-up {
    background: rgba(30, 58, 95, 0.08);
    color: #1e3a5f;
}
.roundup-card__pick--best-beginners {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.roundup-card__why {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.roundup-card__stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.roundup-card__install {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 14px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.roundup-card__install code {
    background: none;
    padding: 0;
    border: none;
    color: var(--text-primary);
}

.roundup-card__install .copy-btn {
    background: var(--border);
    border: none;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color var(--transition);
}
.roundup-card__install .copy-btn:hover {
    color: var(--text-primary);
}

.roundup-card__link {
    font-size: 0.85rem;
    font-weight: 500;
}
.roundup-card__link a {
    color: var(--primary);
    text-decoration: none;
}
.roundup-card__link a:hover {
    text-decoration: underline;
}

/* Roundup comparison table */
.roundup-table-wrap {
    overflow-x: auto;
    margin-bottom: 16px;
}

.roundup-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.roundup-table th {
    text-align: left;
    padding: 10px 14px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.roundup-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.roundup-table td a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.roundup-table td a:hover {
    text-decoration: underline;
}

.roundup-table tr:hover td {
    background: var(--primary-50);
}

.roundup-table tr.roundup-table__highlight td {
    background: rgba(217, 119, 6, 0.05);
}

.roundup-table .roundup-table__rank {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-weight: 600;
    color: var(--primary);
}

.roundup-table .roundup-table__bestfor {
    color: var(--text-secondary);
    max-width: 200px;
}

/* Verdict cards */
.roundup-verdict-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.roundup-verdict-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    text-decoration: none;
    color: var(--text-primary);
    transition: border-color var(--transition);
    display: block;
}
.roundup-verdict-card:hover {
    border-color: var(--primary);
}

.roundup-verdict-card__label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.roundup-verdict-card--our-pick,
.roundup-verdict-card--our_pick {
    border-left: 3px solid #b45309;
}
.roundup-verdict-card--our-pick .roundup-verdict-card__label,
.roundup-verdict-card--our_pick .roundup-verdict-card__label {
    color: #b45309;
}
.roundup-verdict-card--best-free,
.roundup-verdict-card--best_free {
    border-left: 3px solid #15803d;
}
.roundup-verdict-card--best-free .roundup-verdict-card__label,
.roundup-verdict-card--best_free .roundup-verdict-card__label {
    color: #15803d;
}
.roundup-verdict-card--best-beginners,
.roundup-verdict-card--best_beginners {
    border-left: 3px solid #6366f1;
}
.roundup-verdict-card--best-beginners .roundup-verdict-card__label,
.roundup-verdict-card--best_beginners .roundup-verdict-card__label {
    color: #6366f1;
}

.roundup-verdict-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.roundup-verdict-card__reason {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Methodology section */
.roundup-methodology {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
}
.roundup-methodology p {
    margin-bottom: 10px;
    color: var(--text-secondary);
}
.roundup-methodology ul {
    padding-left: 20px;
    color: var(--text-secondary);
}
.roundup-methodology li {
    margin-bottom: 6px;
}
.roundup-methodology li strong {
    color: var(--text-primary);
}

/* Roundup — Dark Mode */
[data-theme="dark"] .roundup-card {
    background: var(--surface);
    border-color: var(--border);
}

[data-theme="dark"] .roundup-card__title a {
    color: var(--text-primary);
}

[data-theme="dark"] .roundup-card__pick--our-pick {
    background: rgba(217, 119, 6, 0.15);
    color: #e0af68;
}
[data-theme="dark"] .roundup-card__pick--best-free {
    background: rgba(22, 163, 74, 0.12);
    color: #9ece6a;
}
[data-theme="dark"] .roundup-card__pick--runner-up {
    background: rgba(125, 150, 200, 0.1);
    color: #7aa2f7;
}
[data-theme="dark"] .roundup-card__pick--best-beginners {
    background: rgba(99, 102, 241, 0.12);
    color: #a5b4fc;
}

[data-theme="dark"] .roundup-card__install {
    background: var(--surface);
    border-color: var(--border);
}

[data-theme="dark"] .roundup-table tr.roundup-table__highlight td {
    background: rgba(217, 119, 6, 0.08);
}

[data-theme="dark"] .roundup-verdict-card {
    background: var(--surface);
    border-color: var(--border);
}
[data-theme="dark"] .roundup-verdict-card--our-pick .roundup-verdict-card__label,
[data-theme="dark"] .roundup-verdict-card--our_pick .roundup-verdict-card__label {
    color: #e0af68;
}
[data-theme="dark"] .roundup-verdict-card--our-pick,
[data-theme="dark"] .roundup-verdict-card--our_pick {
    border-left-color: #e0af68;
}
[data-theme="dark"] .roundup-verdict-card--best-free .roundup-verdict-card__label,
[data-theme="dark"] .roundup-verdict-card--best_free .roundup-verdict-card__label {
    color: #9ece6a;
}
[data-theme="dark"] .roundup-verdict-card--best-free,
[data-theme="dark"] .roundup-verdict-card--best_free {
    border-left-color: #9ece6a;
}
[data-theme="dark"] .roundup-verdict-card--best-beginners .roundup-verdict-card__label,
[data-theme="dark"] .roundup-verdict-card--best_beginners .roundup-verdict-card__label {
    color: #a5b4fc;
}
[data-theme="dark"] .roundup-verdict-card--best-beginners,
[data-theme="dark"] .roundup-verdict-card--best_beginners {
    border-left-color: #a5b4fc;
}

[data-theme="dark"] .roundup-methodology {
    background: var(--surface);
    border-color: var(--border);
}

@media (max-width: 640px) {
    .roundup-verdict-grid {
        grid-template-columns: 1fr;
    }
    .roundup-card__rank {
        position: static;
        opacity: 0.5;
        font-size: 18px;
        margin-bottom: 8px;
        display: block;
    }
}

/* ── Comparison Pages ─────────────────────────────────────── */
.compare-table-wrap {
    overflow-x: auto;
    margin: 0 0 24px;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.compare-table th,
.compare-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.compare-table thead th {
    background: var(--surface);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.compare-table__label {
    width: 140px;
    color: var(--text-secondary);
    font-weight: 600;
}

.compare-table__skill {
    width: calc((100% - 140px) / 2);
}

.compare-table__skill a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.compare-table__skill a:hover {
    text-decoration: underline;
}

.compare-table tbody tr:hover {
    background: var(--primary-50);
}

.compare-descriptions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.compare-desc-card {
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.compare-desc-card h3 {
    margin: 0 0 10px;
    font-size: 1.05rem;
}

.compare-desc-card h3 a {
    color: var(--primary);
    text-decoration: none;
}

.compare-desc-card h3 a:hover {
    text-decoration: underline;
}

.compare-desc-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 12px;
}

.compare-desc-card ul {
    margin: 0;
    padding-left: 18px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.compare-desc-card li {
    margin-bottom: 4px;
}

.compare-verdict {
    padding: 20px;
    background: var(--primary-50);
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 0.95rem;
    line-height: 1.7;
}

.compare-verdict p:last-child {
    margin-bottom: 0;
}

.compare-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 24px 0;
}

@media (max-width: 640px) {
    .compare-descriptions {
        grid-template-columns: 1fr;
    }
    .compare-table__label {
        width: 100px;
    }
}

/* Compare editorial content — headings match section heading hierarchy */
.compare-content {
    margin-bottom: 28px;
}

.compare-content h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin: 28px 0 12px;
}

.compare-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 20px 0 8px;
}

.compare-content p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin: 0 0 14px;
    color: var(--text-secondary);
}

.compare-content p:last-child {
    margin-bottom: 0;
}

.compare-content ul,
.compare-content ol {
    margin: 0 0 14px;
    padding-left: 1.2em;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.compare-content li {
    margin-bottom: 6px;
    padding-left: 0.3em;
}

/* ── Compare Archive ─────────────────────────────────────── */
/* Compare archive: show full description without truncation */
.compare-card__description {
    -webkit-line-clamp: unset;
}
