/* ============================================
   TUTORIALE AUTO — Design System v2
   Modern Swiss + Content-First Reading
   ============================================ */

/* === DESIGN TOKENS === */
:root {
    /* Colors — Refined slate palette with emerald accent */
    --c-text: #0f172a;
    --c-body: #334155;
    --c-secondary: #64748b;
    --c-tertiary: #94a3b8;
    --c-ghost: #cbd5e1;
    --c-accent: #059669;
    --c-accent-light: #10b981;
    --c-accent-bg: #ecfdf5;
    --c-accent-hover: #047857;
    --c-warn: #d97706;
    --c-warn-bg: #fffbeb;
    --c-info-bg: #f0fdf4;
    --c-border: #e2e8f0;
    --c-border-light: #f1f5f9;
    --c-bg: #f8fafc;
    --c-surface: #ffffff;
    --c-surface-raised: #ffffff;

    /* Typography */
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.8125rem;  /* 13px */
    --text-base: 1rem;     /* 16px */
    --text-md: 1.0625rem;  /* 17px */
    --text-lg: 1.125rem;   /* 18px */
    --text-xl: 1.25rem;    /* 20px */
    --text-2xl: 1.5rem;    /* 24px */
    --text-3xl: 1.875rem;  /* 30px */
    --text-4xl: 2.25rem;   /* 36px */

    /* Spacing — 4px base */
    --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;
    --sp-4: 1rem;     --sp-5: 1.25rem;  --sp-6: 1.5rem;
    --sp-8: 2rem;     --sp-10: 2.5rem;  --sp-12: 3rem;
    --sp-16: 4rem;    --sp-20: 5rem;    --sp-24: 6rem;

    /* Radius */
    --r-sm: 6px;   --r-md: 10px;  --r-lg: 14px;
    --r-xl: 18px;  --r-full: 999px;

    /* Shadows — layered for depth */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);

    /* Transitions */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --t-fast: 150ms var(--ease);
    --t-base: 250ms var(--ease);
    --t-slow: 400ms var(--ease);
}

/* === ACCESSIBILITY === */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 10000;
    padding: 8px 16px;
    background: var(--c-accent);
    color: #fff;
    font-weight: 600;
    font-size: var(--text-sm);
    border-radius: var(--r-md);
    text-decoration: none;
}
.skip-link:focus {
    top: 8px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
}
body {
    font-family: var(--font);
    font-size: var(--text-base);
    line-height: 1.65;
    color: var(--c-body);
    background: linear-gradient(180deg, var(--c-bg) 0%, #eef2f7 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a {
    color: var(--c-accent);
    text-decoration: none;
    transition: color var(--t-fast);
}
a:hover { color: var(--c-accent-hover); }
h1, h2, h3, h4 { color: var(--c-text); line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: var(--text-3xl); font-weight: 800; }
h2 { font-size: var(--text-2xl); font-weight: 700; }
h3 { font-size: var(--text-lg); font-weight: 600; }
ul, ol { padding-left: 1.5em; }

/* Focus & accessibility */
:focus-visible {
    outline: 2px solid var(--c-accent);
    outline-offset: 3px;
    border-radius: var(--r-sm);
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) { outline: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* === ANIMATION SYSTEM === */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Elements start invisible, animate when .is-visible added by JS */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.anim-fade-up,
.anim-fade-in,
.anim-scale-in,
.anim-slide-up { opacity: 0; }

.anim-fade-up.is-visible   { animation: fadeUp 600ms var(--ease) forwards; }
.anim-fade-in.is-visible   { animation: fadeIn 500ms var(--ease) forwards; }
.anim-scale-in.is-visible  { animation: scaleIn 500ms var(--ease) forwards; }
.anim-slide-up.is-visible  { animation: slideUp 700ms var(--ease) forwards; }

/* Stagger delays */
.anim-delay-1 { animation-delay: 100ms !important; }
.anim-delay-2 { animation-delay: 200ms !important; }
.anim-delay-3 { animation-delay: 300ms !important; }
.anim-delay-4 { animation-delay: 400ms !important; }
.anim-delay-5 { animation-delay: 500ms !important; }

/* Hero auto-plays on load (always above fold) */
.hero--home .anim-fade-up { animation: fadeUp 700ms var(--ease) forwards; }
.hero--home .anim-delay-1 { animation-delay: 150ms; }
.hero--home .anim-delay-2 { animation-delay: 300ms; }

/* === LAYOUT === */
.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 var(--sp-6); }

/* === HEADER === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.72);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--c-border-light);
    padding: var(--sp-3) 0;
    transition: background var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.site-header.is-scrolled {
    background: rgba(34, 54, 64, 0.88);
    border-bottom-color: rgba(0,0,0,0.2);
    box-shadow: 0 2px 12px rgba(34, 54, 64, 0.4);
}
.site-header.is-scrolled .site-logo,
.site-header.is-scrolled .site-logo:hover { color: #fff; }
.site-header.is-scrolled .site-logo span { color: var(--c-accent-light); }
.site-header.is-scrolled .site-nav a { color: rgba(255,255,255,0.8); }
.site-header.is-scrolled .site-nav a:hover,
.site-header.is-scrolled .site-nav a.is-active { color: #fff; background: rgba(255,255,255,0.1); }
.site-header.is-scrolled .site-nav a::after { background: var(--c-accent-light); }
.site-header.is-scrolled .site-search { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); }
.site-header.is-scrolled .site-search input { color: #fff; }
.site-header.is-scrolled .site-search input::placeholder { color: rgba(255,255,255,0.6); }
.site-header.is-scrolled .site-search svg { color: rgba(255,255,255,0.7); }
.site-header.is-scrolled .menu-toggle svg { color: #fff; }
.site-header.is-scrolled .menu-toggle:hover { background: rgba(255,255,255,0.15); }
.site-header .container {
    display: flex;
    align-items: center;
    gap: var(--sp-8);
}
.site-logo {
    font-weight: 800;
    font-size: var(--text-lg);
    color: var(--c-text);
    letter-spacing: -0.03em;
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--t-base);
}
.site-logo:hover { text-decoration: none; color: var(--c-text); }
.site-logo span { color: var(--c-accent-light); transition: color var(--t-base); }

.site-nav { display: flex; gap: var(--sp-1); }
.site-nav a {
    position: relative;
    color: var(--c-secondary);
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none;
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--r-sm);
    transition: all var(--t-fast);
}
.site-nav a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--c-accent);
    border-radius: 1px;
    transition: all var(--t-base);
    transform: translateX(-50%);
}
.site-nav a:hover {
    color: var(--c-text);
    background: var(--c-border-light);
    text-decoration: none;
}
.site-nav a:hover::after,
.site-nav a.is-active::after {
    width: 60%;
}
.site-nav a.is-active {
    color: var(--c-accent);
    background: var(--c-accent-bg);
}

.site-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--r-full);
    padding: var(--sp-2) var(--sp-4);
    transition: all var(--t-base);
}
.site-search:focus-within {
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px rgba(5,150,105,0.08);
    background: var(--c-surface);
}
.site-search input {
    border: none;
    background: none;
    font-size: var(--text-sm);
    color: var(--c-body);
    outline: none;
    width: 160px;
    font-family: var(--font);
    transition: width var(--t-base);
}
.site-search:focus-within input {
    width: 220px;
}
.site-search input::placeholder { color: var(--c-tertiary); }
.site-search svg { width: 15px; height: 15px; color: var(--c-tertiary); flex-shrink: 0; }

/* Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--sp-2);
    margin-left: auto;
    border-radius: var(--r-sm);
    transition: background var(--t-fast);
}
.menu-toggle:hover { background: var(--c-border-light); }
.menu-toggle svg { width: 22px; height: 22px; color: var(--c-text); }

/* === HERO === */
.hero {
    background: var(--c-surface);
    padding: var(--sp-16) 0 var(--sp-12);
    text-align: center;
    border-bottom: 1px solid var(--c-border-light);
}
.hero h1 {
    font-size: var(--text-4xl);
    margin-bottom: var(--sp-4);
    background: linear-gradient(135deg, var(--c-text) 0%, var(--c-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: var(--text-md);
    color: var(--c-secondary);
    max-width: 480px;
    margin: 0 auto var(--sp-10);
    line-height: 1.6;
}

/* Homepage hero: dark with background image */
.hero--home {
    position: relative;
    background: #0f172a url('../images/hero-bg.webp') center/cover no-repeat;
    padding: var(--sp-24) 0 var(--sp-16);
    border-bottom: none;
    overflow: hidden;
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            135deg,
            rgba(15, 23, 42, 0.92) 0%,
            rgba(5, 150, 105, 0.12) 50%,
            rgba(15, 23, 42, 0.95) 100%
        ),
        linear-gradient(
            180deg,
            rgba(15, 23, 42, 0.6) 0%,
            rgba(15, 23, 42, 0.4) 50%,
            rgba(15, 23, 42, 0.7) 100%
        );
    z-index: 1;
}
.hero__content {
    position: relative;
    z-index: 2;
}
.hero--home h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    background: linear-gradient(135deg, #ffffff 0%, #a7f3d0 70%, var(--c-accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--sp-4);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    letter-spacing: -0.03em;
}
.hero--home p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 520px;
    margin: 0 auto var(--sp-10);
    font-size: var(--text-lg);
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Brand cards on dark hero */
.hero--home .brand-card {
    background: rgba(14, 26, 42, 0.55);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}
.hero--home .brand-card .brand-card__name {
    color: #ffffff;
    font-size: var(--text-xl);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.hero--home .brand-card .brand-card__count {
    color: var(--c-accent-light);
    font-weight: 600;
}
.hero--home .brand-card:hover {
    background: rgba(5, 150, 105, 0.45);
    border-color: var(--c-accent-light);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 24px rgba(5, 150, 105, 0.25);
    transform: translateY(-3px);
}
.hero--home .brand-card:hover .brand-card__name {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.hero--home .brand-card:hover .brand-card__count {
    color: #d1fae5;
}
.hero--home .brand-card::before {
    display: none;
}

/* Brand grid — Bento-style */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-4);
    max-width: 640px;
    margin: 0 auto;
}
.brand-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: var(--sp-6) var(--sp-4);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--t-base);
}
.brand-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--c-accent-bg) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--t-base);
}
.brand-card:hover {
    border-color: var(--c-accent-light);
    box-shadow: var(--shadow-md), 0 4px 16px rgba(5, 150, 105, 0.12);
    transform: translateY(-2px);
    text-decoration: none;
}
.brand-card:hover::before { opacity: 1; }
.brand-card:active { transform: scale(0.97); transition-duration: 80ms; }
.brand-card__name {
    font-weight: 700;
    color: var(--c-text);
    font-size: var(--text-lg);
    position: relative;
}
.brand-card__count {
    color: var(--c-tertiary);
    font-size: var(--text-xs);
    margin-top: var(--sp-1);
    position: relative;
    font-weight: 500;
}

/* === POST CARDS === */
.post-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-bottom: var(--sp-3);
    display: flex;
    cursor: pointer;
    transition: all var(--t-base);
}
.post-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg), 0 4px 20px rgba(5, 150, 105, 0.08);
    transform: translateY(-2px);
    border-left: 3px solid var(--c-accent);
}
.post-card:active {
    transform: scale(0.98);
    transition-duration: 80ms;
}
.post-card__thumb {
    width: 180px;
    min-height: 120px;
    flex-shrink: 0;
    background: var(--c-border-light);
    object-fit: cover;
    overflow: hidden;
}
.post-card__thumb img { transition: transform var(--t-slow); aspect-ratio: 3/2; object-fit: cover; }
.post-card:hover .post-card__thumb img { transform: scale(1.05); }
.post-card__body {
    padding: var(--sp-5) var(--sp-6);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--sp-2);
}
.post-card__title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--c-text);
    line-height: 1.4;
    letter-spacing: -0.01em;
}
.post-card__title a { color: inherit; text-decoration: none; }
.post-card__title a:hover { color: var(--c-accent); }
.post-card__meta { font-size: var(--text-xs); color: var(--c-tertiary); font-weight: 500; }

/* === META PILLS === */
.meta-pills { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.pill {
    font-size: var(--text-xs);
    padding: var(--sp-1) var(--sp-3);
    border-radius: var(--r-full);
    font-weight: 600;
    letter-spacing: 0.01em;
}
.pill--category {
    background: var(--c-accent-bg);
    color: var(--c-accent);
}
a.pill--category {
    transition: all var(--t-fast);
}
a.pill--category:hover {
    background: #d1fae5;
    text-decoration: none;
    transform: translateY(-1px);
}
a.pill--category:active { transform: translateY(0); }
.pill--meta {
    background: var(--c-border-light);
    color: var(--c-secondary);
}

/* === CATEGORY HERO === */
.category-hero {
    background: linear-gradient(180deg, var(--c-surface) 0%, var(--c-bg) 100%);
    border-bottom: 1px solid var(--c-border-light);
    padding-bottom: var(--sp-8);
}
.category-hero .breadcrumbs {
    border-bottom: none;
    background: transparent;
    padding: var(--sp-3) 0;
    margin-bottom: var(--sp-2);
}
.category-hero__content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--sp-8);
}
.category-hero__title {
    font-size: var(--text-4xl);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: var(--sp-3);
    background: linear-gradient(135deg, var(--c-text) 0%, var(--c-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}
.category-hero__desc {
    font-size: var(--text-base);
    color: var(--c-secondary);
    line-height: 1.6;
    max-width: 600px;
}
.category-hero__stats {
    display: flex;
    gap: var(--sp-6);
    flex-shrink: 0;
    padding-top: var(--sp-2);
}
.category-hero__stat {
    text-align: center;
}
.category-hero__stat-number {
    display: block;
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--c-accent);
    line-height: 1;
}
.category-hero__stat-label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--c-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: var(--sp-1);
}

/* === CATEGORY CONTAINER === */
.category-container {
    padding-top: var(--sp-8);
    padding-bottom: var(--sp-12);
}
.category-section-gap {
    margin-top: var(--sp-10);
}
.category-empty {
    color: var(--c-secondary);
    font-size: var(--text-base);
}

/* === MODEL GRID === */
.model-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-3);
    margin-bottom: var(--sp-2);
}
.model-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    padding: var(--sp-4) var(--sp-5);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--t-base);
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}
.model-card:hover {
    border-color: var(--c-accent-light);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
    text-decoration: none;
}
.model-card__icon {
    width: 36px;
    height: 36px;
    border-radius: var(--r-md);
    background: var(--c-accent-bg);
    color: var(--c-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--t-fast);
}
.model-card__icon svg { width: 18px; height: 18px; }
.model-card:hover .model-card__icon {
    background: var(--c-accent);
    color: white;
}
.model-card__name { font-weight: 600; color: var(--c-text); font-size: var(--text-sm); }
.model-card__count { color: var(--c-tertiary); font-size: var(--text-xs); margin-top: 2px; }
.model-card__arrow {
    margin-left: auto;
    color: var(--c-ghost);
    flex-shrink: 0;
    transition: all var(--t-fast);
}
.model-card__arrow svg { width: 16px; height: 16px; }
.model-card:hover .model-card__arrow { color: var(--c-accent); transform: translateX(2px); }
.model-card--empty {
    opacity: 0.55;
}
.model-card--empty:hover {
    opacity: 0.75;
}

/* === MANUAL GRID === */
.manual-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-3);
}
.manual-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    padding: var(--sp-4) var(--sp-5);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--t-base);
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}
.manual-card:hover {
    border-color: rgba(34, 54, 64, 0.3);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
    text-decoration: none;
}
.manual-card__icon {
    width: 36px;
    height: 36px;
    border-radius: var(--r-md);
    background: rgba(34, 54, 64, 0.08);
    color: #223640;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--t-fast);
}
.manual-card__icon svg { width: 18px; height: 18px; }
.manual-card:hover .manual-card__icon {
    background: rgba(34, 54, 64, 0.88);
    color: white;
}
.manual-card__name { font-weight: 600; color: var(--c-text); font-size: var(--text-sm); flex: 1; }
.manual-card__arrow {
    color: var(--c-ghost);
    flex-shrink: 0;
    transition: all var(--t-fast);
}
.manual-card__arrow svg { width: 16px; height: 16px; }
.manual-card:hover .manual-card__arrow { color: #223640; transform: translateX(2px); }

/* === TUTORIAL LIST (category pages) === */
.post-card__excerpt {
    font-size: var(--text-xs);
    color: var(--c-secondary);
    line-height: 1.5;
    margin-top: var(--sp-1);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === MANUAL PAGE === */
.manual-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--text-xs);
    font-weight: 600;
    color: #223640;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--sp-3);
    background: rgba(34, 54, 64, 0.08);
    padding: var(--sp-1) var(--sp-3);
    border-radius: var(--r-full);
}
.manual-hero__badge-icon {
    display: inline-flex;
    color: #223640;
}
.manual-hero__badge-icon svg { width: 14px; height: 14px; }
.manual-container {
    padding-top: var(--sp-8);
    padding-bottom: var(--sp-12);
}
.manual-cover {
    margin-bottom: var(--sp-8);
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.manual-cover__img {
    width: 100%;
    display: block;
}
.manual-downloads {
    margin-bottom: var(--sp-10);
}
.manual-downloads__title {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: var(--sp-5);
}
.manual-downloads__title svg { width: 20px; height: 20px; color: var(--c-accent); }

/* Override Download Monitor plugin buttons */
.manual-downloads__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-3);
}
.manual-downloads__list figure {
    grid-column: 1 / -1;
}
.manual-downloads__list .download-link.download-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: var(--sp-1);
    width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
    background: var(--c-surface);
    color: var(--c-text);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: var(--sp-5) var(--sp-6);
    text-decoration: none;
    overflow: hidden;
    word-break: break-word;
    font-size: var(--text-base);
    font-weight: 600;
    transition: all var(--t-base);
    cursor: pointer;
    text-align: left;
    box-shadow: none;
    max-width: 100%;
}
.manual-downloads__list .download-link.download-button:hover {
    border-color: rgba(34, 54, 64, 0.3);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
    background: var(--c-surface);
    color: var(--c-text);
}
.manual-downloads__list .download-link.download-button small {
    font-size: var(--text-xs);
    font-weight: 400;
    color: var(--c-tertiary);
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.manual-downloads__list hr {
    display: none;
}
.manual-downloads__list img {
    margin-left: auto;
    margin-right: auto;
}
.manual-downloads__list figure,
.manual-downloads__list > .entry-content > figure {
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin: 0 auto var(--sp-8);
}
.manual-downloads__list figure img {
    width: 100%;
    display: block;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
}

@media (max-width: 767px) {
    .manual-downloads__list { grid-template-columns: 1fr; }
    .manual-downloads__list .download-link.download-button {
        padding: var(--sp-4) var(--sp-5);
    }
}

/* === SECTION TITLES === */
.section-title {
    display: inline-block;
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--sp-6);
    background: linear-gradient(135deg, var(--c-text) 0%, var(--c-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--c-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--sp-4);
}

/* === BREADCRUMBS === */
.breadcrumbs {
    padding: var(--sp-3) 0;
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border-light);
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.breadcrumbs::-webkit-scrollbar { display: none; }
.breadcrumbs a {
    color: var(--c-tertiary);
    font-size: var(--text-sm);
    text-decoration: none;
    transition: color var(--t-fast);
}
.breadcrumbs a:hover { color: var(--c-accent); }
.breadcrumbs .separator { color: var(--c-ghost); font-size: var(--text-sm); margin: 0 var(--sp-2); }
.breadcrumbs .current { color: var(--c-secondary); font-size: var(--text-sm); }

/* === READING PROGRESS BAR === */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--c-accent), var(--c-accent-light));
    transform: scaleX(0);
    transform-origin: left;
    z-index: 101;
    pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
    .reading-progress { display: none; }
}

/* === ARTICLE HERO === */
.article-hero {
    background: linear-gradient(180deg, var(--c-surface) 0%, var(--c-bg) 100%);
    border-bottom: 1px solid var(--c-border-light);
    padding: 0 0 var(--sp-8);
}
.article-hero .breadcrumbs {
    border-bottom: none;
    background: transparent;
    padding: var(--sp-3) 0;
    margin-bottom: var(--sp-2);
}
.article-hero__pills {
    display: flex;
    gap: var(--sp-2);
    flex-wrap: wrap;
    margin-bottom: var(--sp-4);
}
.article-hero__title {
    font-size: var(--text-4xl);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: var(--sp-6);
    background: linear-gradient(135deg, var(--c-text) 0%, var(--c-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}
.article-hero__meta {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-bottom: var(--sp-5);
}
.article-hero__avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--r-full);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}
.article-hero__meta-text {
    font-size: var(--text-sm);
    color: var(--c-secondary);
    line-height: 1.5;
}
.article-hero__meta-text strong {
    color: var(--c-text);
    font-weight: 600;
    display: block;
}
.article-hero__meta-icon {
    display: inline-flex;
    vertical-align: -2px;
    margin-right: 2px;
}
.article-hero__meta-icon svg {
    width: 14px;
    height: 14px;
}
.article-hero__meta-sep {
    margin: 0 var(--sp-1);
    color: var(--c-tertiary);
}
.article-hero .share-links {
    margin-bottom: 0;
}

/* === ARTICLE LAYOUT === */
.article-layout {
    display: flex;
    gap: 0;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 var(--sp-6);
}
.article-content {
    flex: 1;
    min-width: 0;
    padding: var(--sp-8) var(--sp-8) var(--sp-10);
    background: var(--c-surface);
    border: 1px solid var(--c-border-light);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-xs);
    margin-top: var(--sp-8);
    margin-bottom: var(--sp-8);
}

/* Article typography — optimized for reading */
.article-content .entry-content {
    font-size: var(--text-md);
    line-height: 1.75;
    color: var(--c-body);
}

.article-content .entry-content h2 {
    font-size: var(--text-2xl);
    margin: var(--sp-12) 0 var(--sp-4);
    padding-top: var(--sp-4);
    border-top: 1px solid var(--c-border-light);
    scroll-margin-top: 80px;
}
.article-content .entry-content h2:first-child { border-top: none; margin-top: 0; }
.article-content .entry-content h3 {
    font-size: var(--text-lg);
    margin: var(--sp-8) 0 var(--sp-3);
    scroll-margin-top: 80px;
}
.article-content .entry-content p {
    margin-bottom: var(--sp-6);
}
.article-content .entry-content img {
    border-radius: var(--r-lg);
    margin: var(--sp-8) auto;
    box-shadow: var(--shadow-sm);
}
.article-content .entry-content ul,
.article-content .entry-content ol { margin-bottom: var(--sp-6); }
.article-content .entry-content li {
    margin-bottom: var(--sp-2);
    padding-left: var(--sp-1);
}
.article-content .entry-content figure { margin: var(--sp-8) auto; }
.article-content .entry-content figcaption {
    font-size: var(--text-sm);
    color: var(--c-secondary);
    margin-top: var(--sp-3);
    text-align: center;
}
.article-content .entry-content a {
    color: var(--c-accent);
    text-decoration: underline;
    text-decoration-color: rgba(5,150,105,0.25);
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: all var(--t-fast);
}
.article-content .entry-content a:hover {
    text-decoration-color: var(--c-accent);
    color: var(--c-accent-hover);
}
.article-content .entry-content strong { color: var(--c-text); font-weight: 600; }


/* Blockquote — decorative quote mark */
.article-content .entry-content blockquote {
    border-left: 3px solid var(--c-accent-light);
    padding: var(--sp-5) var(--sp-6) var(--sp-5) var(--sp-8);
    margin: var(--sp-6) 0;
    color: var(--c-secondary);
    background: var(--c-border-light);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    font-style: italic;
    position: relative;
    overflow: hidden;
}
.article-content .entry-content blockquote::before {
    content: '\201C';
    font-size: 5rem;
    line-height: 1;
    color: var(--c-accent-light);
    opacity: 0.25;
    position: absolute;
    top: -0.15em;
    left: var(--sp-2);
    font-family: Georgia, serif;
    pointer-events: none;
}

/* HR separators — refined */
.article-content .entry-content hr {
    border: none;
    height: 1px;
    background: var(--c-border);
    margin: var(--sp-8) 0;
}

/* Disclaimer box (safety warning in tutorials) */
.disclaimer-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    border-radius: var(--r-lg);
    padding: var(--sp-5) var(--sp-6);
    margin: var(--sp-6) 0;
}
.disclaimer-box p {
    font-size: var(--text-sm) !important;
    color: #92400e !important;
    line-height: 1.6;
    margin-bottom: 0 !important;
}
.disclaimer-box strong {
    color: #b45309 !important;
}

/* Note/warning boxes (converted from PRE blocks) — dark teal scheme matching scrolled navbar */
.note-box {
    background: rgba(34, 54, 64, 0.06);
    border: 1px solid rgba(34, 54, 64, 0.15);
    border-left: 4px solid #223640;
    border-radius: var(--r-lg);
    padding: var(--sp-4) var(--sp-5) !important;
    margin: var(--sp-4) 0;
    font-size: var(--text-sm) !important;
    color: #223640 !important;
    line-height: 1.6;
}
.note-box strong {
    color: #1a2c35 !important;
}

/* Step headings (H3 "Pasul X") — numbered step cards */
.article-content .entry-content h3 {
    font-size: var(--text-lg);
    margin: var(--sp-10) 0 var(--sp-3);
    padding: var(--sp-3) 0 var(--sp-3) 0;
    position: relative;
    color: var(--c-text);
    border-bottom: 1px solid var(--c-border-light);
    padding-bottom: var(--sp-3);
}

/* Code blocks */
.article-content .entry-content code,
.article-content .entry-content pre {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    background: var(--c-border-light);
    border-radius: var(--r-sm);
}
.article-content .entry-content code {
    padding: 2px 6px;
}
.article-content .entry-content pre {
    padding: var(--sp-5);
    overflow-x: auto;
    margin: var(--sp-6) 0;
    border: 1px solid var(--c-border);
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Disclaimer / warning text (italic+bold patterns in content) */
.article-content .entry-content > div:not([class]) {
    background: var(--c-warn-bg);
    border-left: 4px solid var(--c-warn);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    padding: var(--sp-4) var(--sp-5);
    margin: var(--sp-6) 0;
    font-size: var(--text-sm);
    color: #78350f;
    line-height: 1.6;
}

/* Figures — consistent spacing and polish */
.article-content .entry-content figure {
    margin: var(--sp-6) auto;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--c-border-light);
}
.article-content .entry-content figure img {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
}
.article-content .entry-content figcaption {
    font-size: var(--text-sm);
    color: var(--c-secondary);
    margin-top: 0;
    padding: var(--sp-3) var(--sp-4);
    text-align: center;
    background: var(--c-border-light);
}

/* Standalone images (not in figures) */
.article-content .entry-content > p > img,
.article-content .entry-content > img {
    border-radius: var(--r-lg);
    margin: var(--sp-6) auto;
    box-shadow: var(--shadow-md);
}

/* WordPress alignment classes */
.aligncenter { margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: var(--sp-2) var(--sp-6) var(--sp-4) 0; }
.alignright { float: right; margin: var(--sp-2) 0 var(--sp-4) var(--sp-6); }
.alignnone { margin-left: auto; margin-right: auto; }
.wp-block-image { margin: var(--sp-6) auto; }
.wp-block-image img { margin: 0 auto; }
.article-content .entry-content .aligncenter,
.article-content .entry-content .alignnone,
.article-content .entry-content p:has(> img) {
    text-align: center;
}

/* Source attribution — normalized by JS */
.source-attribution {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    margin-top: var(--sp-8);
    padding-top: var(--sp-5);
    border-top: 1px solid var(--c-border);
}
.source-attribution__icon {
    width: 16px;
    height: 16px;
    color: var(--c-tertiary);
    flex-shrink: 0;
    margin-top: 2px;
}
.source-attribution__content {
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
    min-width: 0;
}
.source-attribution__label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--c-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.source-attribution__link {
    font-size: var(--text-sm);
    color: var(--c-secondary);
    word-break: break-all;
    text-decoration: none;
    transition: color var(--t-fast);
}
.source-attribution__link:hover {
    color: var(--c-accent);
}

/* Image inside link (clickable images) */
.article-content .entry-content a > img {
    transition: opacity var(--t-fast);
}
.article-content .entry-content a:hover > img {
    opacity: 0.9;
}

/* Two consecutive figures — grid layout */
.article-content .entry-content figure + figure {
    margin-top: calc(var(--sp-3) * -1);
}

/* Author + date */
.article-meta-line {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    margin-bottom: var(--sp-6);
    font-size: var(--text-sm);
    color: var(--c-secondary);
}
.article-meta-line strong { color: var(--c-body); font-weight: 600; }

/* Featured image */
.article-featured-img {
    border-radius: var(--r-xl);
    margin-bottom: var(--sp-8);
    width: 100%;
    aspect-ratio: 16/9;
    box-shadow: var(--shadow-md);
}

/* TL;DR box */
.tldr-box {
    background: var(--c-info-bg);
    border-left: 4px solid var(--c-accent-light);
    border-radius: 0 var(--r-lg) var(--r-lg) 0;
    padding: var(--sp-5) var(--sp-6);
    margin-bottom: var(--sp-8);
}
.tldr-box__label {
    font-weight: 700;
    color: var(--c-accent);
    font-size: var(--text-xs);
    margin-bottom: var(--sp-2);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.tldr-box__text { font-size: var(--text-base); color: var(--c-body); line-height: 1.65; }

/* Warning box */
.warning-box {
    background: var(--c-warn-bg);
    border-left: 4px solid var(--c-warn);
    border-radius: 0 var(--r-lg) var(--r-lg) 0;
    padding: var(--sp-5) var(--sp-6);
    margin-bottom: var(--sp-8);
}
.warning-box__label { font-weight: 700; color: #92400e; font-size: var(--text-sm); margin-bottom: var(--sp-1); }
.warning-box__text { font-size: var(--text-base); color: #78350f; line-height: 1.6; }

/* Share links */
.share-links { display: flex; gap: var(--sp-2); margin-bottom: var(--sp-6); }
.share-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    background: var(--c-border-light);
    color: var(--c-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--t-base);
}
.share-links a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.share-links a[aria-label*="Facebook"]:hover { background: #1877F2; color: white; }
.share-links a[aria-label*="WhatsApp"]:hover { background: #25D366; color: white; }
.share-links a[aria-label*="Copi"]:hover { background: var(--c-text); color: white; }
.share-links svg { width: 17px; height: 17px; transition: transform var(--t-base); }
.share-links a:hover svg { transform: rotate(-8deg) scale(1.1); }

/* TOC sidebar */
.article-toc {
    width: 260px;
    flex-shrink: 0;
    padding: var(--sp-8) 0 var(--sp-10) var(--sp-6);
}
.article-toc__inner {
    position: sticky;
    top: 80px;
    background: var(--c-surface);
    border: 1px solid var(--c-border-light);
    border-radius: var(--r-lg);
    padding: var(--sp-5);
    box-shadow: var(--shadow-xs);
}
.article-toc__label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--c-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--sp-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.article-toc__progress {
    font-variant-numeric: tabular-nums;
    font-size: var(--text-xs);
    color: var(--c-accent);
    font-weight: 600;
}
.article-toc__list {
    list-style: none;
    padding: 0;
    border-left: 2px solid var(--c-border);
}
.article-toc__list li {
    padding: var(--sp-2) 0 var(--sp-2) var(--sp-4);
    margin-left: -2px;
    border-left: 2px solid transparent;
    transition: all var(--t-fast);
}
.article-toc__list li.is-active {
    border-left-color: var(--c-accent-light);
    background: var(--c-accent-bg);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.article-toc__list a {
    font-size: var(--text-sm);
    color: var(--c-secondary);
    text-decoration: none;
    display: block;
    transition: color var(--t-fast);
    line-height: 1.4;
}
.article-toc__list a:hover { color: var(--c-accent); }
.article-toc__list li.is-active a { color: var(--c-accent); font-weight: 600; }
.article-toc__top {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    margin-top: var(--sp-4);
    padding: var(--sp-2) var(--sp-3);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--c-tertiary);
    background: none;
    border: 1px solid var(--c-border-light);
    border-radius: var(--r-sm);
    cursor: pointer;
    font-family: var(--font);
    transition: all var(--t-fast);
    width: 100%;
    justify-content: center;
}
.article-toc__top:hover {
    color: var(--c-accent);
    border-color: var(--c-accent-light);
    background: var(--c-accent-bg);
}
.article-toc__top svg { width: 14px; height: 14px; }

/* Mobile TOC */
.mobile-toc { display: none; margin-bottom: var(--sp-6); }
.mobile-toc__toggle {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    padding: var(--sp-3) var(--sp-4);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--c-text);
    cursor: pointer;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font);
    transition: all var(--t-fast);
}
.mobile-toc__toggle:hover { border-color: var(--c-accent-light); }
.mobile-toc__toggle svg { width: 16px; height: 16px; transition: transform var(--t-base); }
.mobile-toc.is-open .mobile-toc__toggle svg { transform: rotate(180deg); }
.mobile-toc__list {
    list-style: none;
    padding: 0 var(--sp-4);
    border: 1px solid var(--c-border);
    border-top: 0;
    border-radius: 0 0 var(--r-md) var(--r-md);
    background: var(--c-surface);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--t-slow) var(--ease), padding var(--t-slow) var(--ease);
}
.mobile-toc.is-open .mobile-toc__list {
    padding: var(--sp-3) var(--sp-4) var(--sp-4);
}
.mobile-toc__list a {
    display: block;
    padding: var(--sp-2) 0;
    font-size: var(--text-sm);
    color: var(--c-secondary);
    text-decoration: none;
    transition: color var(--t-fast);
}
.mobile-toc__list a:hover { color: var(--c-accent); }

/* Related tutorials */
.related-tutorials {
    border-top: 1px solid var(--c-border);
    padding-top: var(--sp-10);
    margin-top: var(--sp-12);
}
.related-tutorials h2 { font-size: var(--text-xl); margin-bottom: var(--sp-6); }
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-5);
}
.related-card {
    background: var(--c-bg);
    border: 1px solid var(--c-border-light);
    border-radius: var(--r-lg);
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--t-base);
    display: flex;
    flex-direction: column;
}
.related-card:hover {
    border-color: var(--c-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    text-decoration: none;
}
.related-card:active { transform: scale(0.97); transition-duration: 80ms; }
img.related-card__thumb {
    aspect-ratio: 16/9;
    object-fit: cover;
    width: 100%;
    display: block;
    transition: transform var(--t-slow);
}
div.related-card__thumb {
    aspect-ratio: 16/9;
    background: var(--c-border-light);
    width: 100%;
}
.related-card__thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
}
.related-card:hover img.related-card__thumb { transform: scale(1.05); }
.related-card__body { padding: var(--sp-4) var(--sp-5); flex: 1; display: flex; flex-direction: column; }
.related-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-2);
    margin-bottom: var(--sp-3);
}
.related-card__time {
    font-size: var(--text-xs);
    color: var(--c-tertiary);
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}
.pill--sm {
    font-size: 11px;
    padding: 2px var(--sp-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}
.related-card__title {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--c-text);
    line-height: 1.4;
    margin-bottom: var(--sp-2);
}
.related-card__excerpt {
    font-size: var(--text-xs);
    color: var(--c-secondary);
    line-height: 1.5;
    margin: 0;
}
.related-tutorials__more {
    text-align: center;
    margin-top: var(--sp-6);
}
.related-tutorials__more a {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--c-accent);
    text-decoration: none;
    transition: color var(--t-fast);
}
.related-tutorials__more a:hover { color: var(--c-accent-hover); }

/* Copy link tooltip */
.share-copy-link {
    position: relative;
}
.share-copy-link__tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--c-text);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--r-sm);
    white-space: nowrap;
    pointer-events: none;
    animation: tooltipFadeIn var(--t-fast) var(--ease);
}
.share-copy-link__tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--c-text);
}
@keyframes tooltipFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(4px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Mobile Share FAB */
.share-fab {
    display: none;
    position: fixed;
    bottom: var(--sp-6);
    right: var(--sp-4);
    z-index: 100;
    transition: bottom var(--t-base);
}
.share-fab__trigger {
    width: 52px;
    height: 52px;
    border-radius: var(--r-full);
    background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-light) 100%);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: transform var(--t-fast) var(--ease);
}
.share-fab__trigger:active { transform: scale(0.9); }
.share-fab__trigger svg { width: 22px; height: 22px; }
.share-fab__menu {
    position: absolute;
    bottom: calc(100% + var(--sp-3));
    right: 0;
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    opacity: 0;
    transform: translateY(8px) scale(0.9);
    pointer-events: none;
    transition: all var(--t-base) var(--ease);
}
.share-fab.is-open .share-fab__menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.share-fab__item {
    width: 44px;
    height: 44px;
    border-radius: var(--r-full);
    background: var(--c-surface);
    color: var(--c-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: all var(--t-fast);
}
.share-fab__item:hover { color: var(--c-accent); }
.share-fab__item svg { width: 18px; height: 18px; }
@media (max-width: 767px) {
    .share-fab.is-visible { display: block; }
}

/* === AD SLOTS === */
.ad-slot {
    background: var(--c-border-light);
    border-radius: var(--r-md);
    padding: var(--sp-5);
    text-align: center;
    margin: var(--sp-8) 0;
    min-height: 100px;
}
.ad-slot--atf {
    margin: var(--sp-4) 0 var(--sp-6);
    min-height: 90px;
}
.ad-slot--sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    margin: 0;
    padding: var(--sp-2);
    min-height: 50px;
    border-radius: 0;
    background: var(--c-surface);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    transform: translateY(calc(100% + 12px));
    transition: transform var(--t-base), visibility var(--t-base);
    visibility: hidden;
    display: none;
}
.ad-slot--sticky.is-visible {
    transform: translateY(0);
    visibility: visible;
}
@media (max-width: 767px) {
    .ad-slot--sticky { display: block; }
    .ad-slot--atf { min-height: 100px; }
}
@media (min-width: 768px) {
    .ad-slot--atf { min-height: 90px; }
}
.ad-slot--sticky .ad-slot__close {
    position: absolute;
    top: -10px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-full);
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-secondary);
    box-shadow: var(--shadow-xs);
}
/* Sidebar ad below TOC — desktop only */
.ad-slot--sidebar {
    margin-top: var(--sp-5);
    min-height: 250px;
    padding: 0;
    background: none;
    border-radius: 0;
    overflow: hidden;
}
@media (max-width: 1024px) {
    .ad-slot--sidebar { display: none; }
}
/* CLS fix: in-content ads need taller min-height for 300x250 units */
.article-content > .ad-slot,
.entry-content .ad-slot {
    min-height: 280px;
}

/* === AFFILIATE DISCLOSURE === */
.affiliate-disclosure {
    font-size: var(--text-xs);
    color: var(--c-tertiary);
    line-height: 1.5;
    padding: var(--sp-2) 0;
    margin-bottom: var(--sp-4);
    border-bottom: 1px solid var(--c-border-light);
}
.affiliate-disclosure svg {
    width: 12px;
    height: 12px;
    vertical-align: -1px;
    margin-right: var(--sp-1);
    fill: currentColor;
}

/* === "CE AI NEVOIE" (What you'll need) BOX === */
.needs-box {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    padding: 0;
    margin: var(--sp-6) 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.needs-box__title {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--c-text);
    letter-spacing: 0.02em;
    padding: var(--sp-4) var(--sp-5) var(--sp-3);
    border-bottom: 1px solid var(--c-border);
    margin: 0 var(--sp-5);
    padding-left: 0;
    padding-right: 0;
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}
.needs-box__title svg {
    width: 18px;
    height: 18px;
    stroke: var(--c-accent);
    fill: none;
    flex-shrink: 0;
}
.needs-box__list {
    list-style: none;
    padding: var(--sp-1) var(--sp-5) var(--sp-2);
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.needs-box__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    padding: 10px 6px;
    margin: 0 -6px;
    border-bottom: 1px solid var(--c-border-light);
    border-radius: var(--r-sm);
    transition: background 180ms var(--ease);
}
.needs-box__item:hover {
    background: rgba(5, 150, 105, 0.04);
}
.needs-box__item:last-child {
    border-bottom: none;
    padding-bottom: 6px;
}
.needs-box__item::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--c-accent);
    border-radius: var(--r-full);
    flex-shrink: 0;
}
.needs-box__item-name {
    font-size: var(--text-sm);
    color: var(--c-text);
    font-weight: 500;
    flex: 1;
    line-height: 1.4;
}
@media (max-width: 767px) {
    .needs-box__list { padding: var(--sp-2) var(--sp-4) var(--sp-3); }
    .needs-box__item {
        flex-wrap: wrap;
        gap: var(--sp-2);
    }
    .needs-box__item .btn--affiliate {
        margin-left: 22px;
    }
}

/* === AFFILIATE CTA BUTTON === */
.btn--affiliate {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--c-accent-bg);
    color: var(--c-accent);
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--r-full);
    text-decoration: none;
    min-height: 32px;
    white-space: nowrap;
    cursor: pointer;
    border: 1.5px solid rgba(5, 150, 105, 0.25);
    letter-spacing: 0.01em;
    transition:
        background 200ms ease-out,
        color 200ms ease-out,
        border-color 200ms ease-out,
        box-shadow 200ms ease-out,
        transform 200ms ease-out;
}
.btn--affiliate:hover {
    background: rgba(5, 150, 105, 0.1);
    color: var(--c-accent-hover);
    border-color: var(--c-accent);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.15);
    transform: translateY(-1px);
    text-decoration: none;
}
.btn--affiliate:active {
    background: rgba(5, 150, 105, 0.18);
    transform: translateY(0) scale(0.96);
    box-shadow: none;
    transition-duration: 80ms;
}
.btn--affiliate:focus-visible {
    outline: 2px solid var(--c-accent);
    outline-offset: 2px;
}
.btn--affiliate svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
    transition: transform 200ms ease-out;
}
.btn--affiliate:hover svg {
    transform: translate(1px, -1px);
}
/* Solid variant for standalone/prominent CTAs */
.btn--affiliate-solid {
    background: var(--c-accent);
    color: white;
    border-color: var(--c-accent);
}
.btn--affiliate-solid:hover {
    background: var(--c-accent-hover);
    border-color: var(--c-accent-hover);
}
.affiliate-microcopy {
    display: block;
    font-size: 11px;
    color: var(--c-tertiary);
    margin-top: var(--sp-1);
    text-align: center;
}

/* === COMPARISON TABLE === */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--sp-6) 0;
    font-size: var(--text-sm);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    overflow: hidden;
}
.comparison-table thead {
    background: var(--c-border-light);
}
.comparison-table th {
    padding: var(--sp-3) var(--sp-4);
    font-weight: 600;
    color: var(--c-text);
    text-align: left;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid var(--c-border);
}
.comparison-table td {
    padding: var(--sp-3) var(--sp-4);
    color: var(--c-body);
    border-bottom: 1px solid var(--c-border-light);
    vertical-align: middle;
}
.comparison-table tbody tr:last-child td {
    border-bottom: none;
}
.comparison-table tbody tr:hover {
    background: rgba(5, 150, 105, 0.03);
}
.comparison-table tr.is-recommended {
    background: var(--c-accent-bg);
    border-left: 3px solid var(--c-accent);
}
.comparison-table .stars {
    color: #f59e0b;
    letter-spacing: 1px;
}
@media (max-width: 767px) {
    .comparison-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: var(--sp-6) calc(-1 * var(--sp-4));
        padding: 0 var(--sp-4);
    }
    .comparison-table { min-width: 480px; }
}

/* === STICKY MOBILE CTA BAR (for needs-box scroll) === */
.sticky-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 95;
    background: var(--c-surface);
    border-top: 1px solid var(--c-border);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    padding: var(--sp-3) var(--sp-4);
    display: none;
    align-items: center;
    justify-content: center;
    transform: translateY(calc(100% + 12px));
    transition: transform var(--t-base), visibility var(--t-base);
    visibility: hidden;
}
.sticky-cta-bar.is-visible {
    transform: translateY(0);
    visibility: visible;
}
.sticky-cta-bar .btn--affiliate {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    font-size: var(--text-sm);
}
@media (max-width: 767px) {
    .sticky-cta-bar { display: flex; }
}

/* === GREEN NUMBERED STEPS === */
.article-content .entry-content ol {
    counter-reset: step;
    list-style: none;
    padding-left: 0;
}
.article-content .entry-content ol > li {
    counter-increment: step;
    padding-left: 48px;
    position: relative;
    margin-bottom: var(--sp-5);
}
.article-content .entry-content ol > li::before {
    content: counter(step);
    background: var(--c-accent);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    font-weight: 700;
    position: absolute;
    left: 0;
    top: 0;
}

/* === PAGINATION === */
.nav-links {
    display: flex;
    gap: var(--sp-2);
    justify-content: center;
    margin-top: var(--sp-10);
}
.nav-links a, .nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--sp-3);
    border-radius: var(--r-md);
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none;
    color: var(--c-secondary);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    transition: all var(--t-fast);
}
.nav-links a:hover {
    border-color: var(--c-accent-light);
    color: var(--c-accent);
    box-shadow: var(--shadow-sm);
}
.nav-links .current {
    background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-light) 100%);
    color: white;
    border-color: transparent;
}

/* === FOOTER === */
/* --- Footer --- */
.site-footer {
    background: #1a2d36;
    color: rgba(255,255,255,0.7);
    margin-top: var(--sp-16);
    position: relative;
}
.footer-accent-line {
    height: 3px;
    background: linear-gradient(90deg, var(--c-accent), var(--c-accent-light), var(--c-accent));
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.8fr 1.1fr;
    gap: var(--sp-10);
    padding: var(--sp-12) 0 var(--sp-10);
}
.footer-logo {
    font-size: var(--text-xl);
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.02em;
    display: inline-block;
    margin-bottom: var(--sp-3);
}
.footer-logo span { color: var(--c-accent-light); }
.footer-logo:hover { color: #fff; }
.footer-logo:hover span { color: var(--c-accent); }
.footer-desc {
    font-size: var(--text-sm);
    line-height: 1.7;
    color: rgba(255,255,255,0.5);
    max-width: 300px;
    margin-bottom: var(--sp-5);
}
.footer-stat {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    background: rgba(255,255,255,0.06);
    border-radius: var(--r-md);
    border: 1px solid rgba(255,255,255,0.08);
    width: fit-content;
}
.footer-stat__number {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--c-accent-light);
}
.footer-stat__label {
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.footer-heading {
    font-size: var(--text-xs);
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--sp-4);
    padding-bottom: var(--sp-3);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--sp-1);
    padding: 0 0 0 4px;
    margin: 0;
}
.footer-links a {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color var(--t-fast);
    display: block;
    padding: 5px 0;
}
.footer-links a:hover {
    color: var(--c-accent-light);
}
.footer-links a:focus-visible {
    outline: 2px solid var(--c-accent-light);
    outline-offset: 2px;
    border-radius: var(--r-sm);
}
.footer-links--popular a {
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Bottom bar */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: var(--sp-5) 0;
    background: rgba(0,0,0,0.15);
}
.footer-bottom__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-copy {
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.35);
}
.footer-legal {
    display: flex;
    gap: var(--sp-5);
}
.footer-legal a {
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    transition: color var(--t-fast);
}
.footer-legal a:hover { color: rgba(255,255,255,0.7); }
.footer-legal a:focus-visible {
    outline: 2px solid var(--c-accent-light);
    outline-offset: 2px;
    border-radius: var(--r-sm);
}

/* === COMMENTS === */
.comments-area {
    margin-top: var(--sp-12);
    padding-top: var(--sp-10);
    border-top: 1px solid var(--c-border);
}
.comments-area h3 { font-size: var(--text-lg); margin-bottom: var(--sp-6); }
.comment-list {
    list-style: none;
    padding: 0;
    margin-bottom: var(--sp-8);
}
.comment-list .comment {
    background: var(--c-surface);
    border: 1px solid var(--c-border-light);
    border-radius: var(--r-lg);
    padding: var(--sp-5);
    margin-bottom: var(--sp-4);
}
.comment-list .comment .avatar {
    border-radius: var(--r-full);
    float: left;
    margin-right: var(--sp-3);
}
.comment-list .comment-author { font-size: var(--text-sm); font-weight: 600; color: var(--c-text); }
.comment-list .comment-metadata { font-size: var(--text-xs); color: var(--c-tertiary); margin-bottom: var(--sp-3); }
.comment-list .comment-metadata a { color: inherit; text-decoration: none; }
.comment-list .comment-content { font-size: var(--text-base); color: var(--c-body); line-height: 1.65; clear: both; }
.comment-list .comment-content p { margin-bottom: var(--sp-3); }
.comment-list .reply a {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--c-accent);
    text-decoration: none;
}
.comment-list .children {
    list-style: none;
    padding: 0;
    margin-left: var(--sp-8);
    border-left: 2px solid var(--c-accent-bg);
    padding-left: var(--sp-4);
}
.comment-form p { margin-bottom: var(--sp-4); }
.comment-form label,
.comment-form .comment-form-comment label,
.comment-form .comment-form-author label,
.comment-form .comment-form-email label,
.comment-form .comment-form-url label {
    display: block;
    font-size: var(--text-sm);
    color: var(--c-text);
    margin-bottom: var(--sp-2);
    font-weight: 600;
}
.comment-form input,
.comment-form textarea {
    width: 100%;
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    padding: var(--sp-3) var(--sp-4);
    font-size: var(--text-base);
    font-family: var(--font);
    color: var(--c-body);
    margin-bottom: var(--sp-4);
    transition: all var(--t-fast);
    background: var(--c-surface);
}
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px rgba(5,150,105,0.08);
}
.comment-form .submit {
    background: var(--c-accent);
    color: white;
    border: none;
    border-radius: var(--r-md);
    padding: var(--sp-3) var(--sp-8);
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
    transition: all var(--t-base);
}
.comment-form .submit:hover {
    background: var(--c-accent-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.comment-form .submit:active { transform: translateY(0); box-shadow: var(--shadow-xs); }

/* === SEARCH === */
.search-header { padding: var(--sp-8) 0 var(--sp-5); }
.search-header h1 { font-size: var(--text-2xl); }
.search-header p { color: var(--c-secondary); font-size: var(--text-base); margin-top: var(--sp-2); }

/* === 404 === */
.page-404 {
    text-align: center;
    padding: var(--sp-12) var(--sp-6) var(--sp-16);
}
.page-404__illustration {
    max-width: 460px;
    margin: 0 auto var(--sp-6);
}
.page-404__svg {
    width: 100%;
    height: auto;
}
/* Smoke animation */
@keyframes smokeRise {
    0% { opacity: 0.5; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-12px); }
}
.page-404__smoke { animation: smokeRise 2.5s ease-out infinite; }
.page-404__smoke--2 { animation-delay: 0.6s; }
.page-404__smoke--3 { animation-delay: 1.2s; }
@media (prefers-reduced-motion: reduce) {
    .page-404__smoke { animation: none; }
}

/* Content */
.page-404__code {
    display: block;
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    background: linear-gradient(135deg, var(--c-ghost) 0%, var(--c-border) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--sp-3);
}
.page-404__title {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--c-text);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: var(--sp-3);
}
.page-404__desc {
    color: var(--c-secondary);
    font-size: var(--text-base);
    line-height: 1.65;
    max-width: 480px;
    margin: 0 auto var(--sp-8);
}

/* Search */
.page-404__search {
    max-width: 480px;
    margin: 0 auto var(--sp-10);
}
.page-404__search-wrap {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-full);
    padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-5);
    box-shadow: var(--shadow-sm);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.page-404__search-wrap:focus-within {
    border-color: var(--c-accent);
    box-shadow: var(--shadow-md), 0 0 0 3px rgba(5, 150, 105, 0.1);
}
.page-404__search-wrap svg {
    width: 18px;
    height: 18px;
    color: var(--c-tertiary);
    flex-shrink: 0;
}
.page-404__search-wrap input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: var(--text-base);
    color: var(--c-text);
    font-family: var(--font);
    min-width: 0;
}
.page-404__search-wrap input::placeholder {
    color: var(--c-tertiary);
}
.page-404__search-btn {
    background: var(--c-accent);
    color: #fff;
    border: none;
    border-radius: var(--r-full);
    padding: var(--sp-2) var(--sp-5);
    font-size: var(--text-sm);
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: background var(--t-fast);
    white-space: nowrap;
}
.page-404__search-btn:hover { background: var(--c-accent-hover); }
.page-404__search-btn:active { transform: scale(0.97); }

/* Brand quick nav */
.page-404__brands {
    margin-bottom: var(--sp-10);
}
.page-404__brands-label {
    font-size: var(--text-sm);
    color: var(--c-tertiary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: var(--sp-4);
}
.page-404__brand-grid {
    display: flex;
    justify-content: center;
    gap: var(--sp-3);
    flex-wrap: wrap;
}
.page-404__brand-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-1);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: var(--sp-4) var(--sp-6);
    text-decoration: none;
    transition: all var(--t-base);
    min-width: 100px;
}
.page-404__brand-link:hover {
    border-color: var(--c-accent-light);
    box-shadow: var(--shadow-md), 0 4px 16px rgba(5, 150, 105, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
}
.page-404__brand-link:active { transform: scale(0.97); transition-duration: 80ms; }
.page-404__brand-name {
    font-weight: 700;
    color: var(--c-text);
    font-size: var(--text-lg);
}
.page-404__brand-count {
    font-size: var(--text-xs);
    color: var(--c-tertiary);
    font-weight: 500;
}

/* Popular tutorials */
.page-404__popular {
    max-width: 560px;
    margin: 0 auto var(--sp-10);
    text-align: left;
}
.page-404__popular-label {
    font-size: var(--text-sm);
    color: var(--c-tertiary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: var(--sp-3);
    text-align: center;
}
.page-404__popular-grid {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}
.page-404__popular-card {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    padding: var(--sp-3) var(--sp-4);
    text-decoration: none;
    transition: all var(--t-fast);
}
.page-404__popular-card:hover {
    border-color: var(--c-accent-light);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}
.page-404__popular-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--c-accent-bg);
    border-radius: var(--r-sm);
    color: var(--c-accent);
    flex-shrink: 0;
}
.page-404__popular-icon svg { width: 18px; height: 18px; }
.page-404__popular-title {
    flex: 1;
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--c-text);
    line-height: 1.4;
    min-width: 0;
}
.page-404__popular-meta {
    font-size: var(--text-xs);
    color: var(--c-tertiary);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Home button */
.page-404__home {
    margin-top: var(--sp-2);
}
.page-404__home-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    color: var(--c-accent);
    font-weight: 600;
    font-size: var(--text-base);
    text-decoration: none;
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--r-md);
    transition: all var(--t-fast);
}
.page-404__home-btn svg { width: 18px; height: 18px; }
.page-404__home-btn:hover {
    background: var(--c-accent-bg);
    text-decoration: none;
}

/* 404 mobile */
@media (max-width: 767px) {
    .page-404 { padding: var(--sp-8) var(--sp-4) var(--sp-12); }
    .page-404__illustration { max-width: 340px; }
    .page-404__code { font-size: 3.5rem; }
    .page-404__title { font-size: var(--text-2xl); }
    .page-404__brand-grid { gap: var(--sp-2); }
    .page-404__brand-link { padding: var(--sp-3) var(--sp-4); min-width: 80px; }
    .page-404__brand-name { font-size: var(--text-base); }
    .page-404__popular-meta { display: none; }
}

/* === PAGE HERO === */
.page-hero {
    background: linear-gradient(180deg, var(--c-surface) 0%, var(--c-bg) 100%);
    border-bottom: 1px solid var(--c-border-light);
    padding-bottom: var(--sp-8);
}
.page-hero .breadcrumbs {
    border-bottom: none;
    background: transparent;
    padding: var(--sp-3) 0;
    margin-bottom: var(--sp-2);
}
.page-hero__content {
    max-width: 640px;
}
.page-hero__title {
    font-size: var(--text-4xl);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: var(--sp-3);
    background: linear-gradient(135deg, var(--c-text) 0%, var(--c-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}
.page-hero__desc {
    font-size: var(--text-base);
    color: var(--c-secondary);
    line-height: 1.6;
    max-width: 600px;
}

/* === TERMS PAGE === */
.terms-updated {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    margin-top: var(--sp-3);
    font-size: var(--text-sm);
    color: var(--c-secondary);
    background: rgba(5, 150, 105, 0.08);
    padding: var(--sp-1) var(--sp-3);
    border-radius: var(--r-full);
}
.terms-updated svg {
    width: 14px;
    height: 14px;
    color: var(--c-accent);
}

/* === PAGE CONTAINER === */
.page-container {
    padding-top: var(--sp-8);
    padding-bottom: var(--sp-12);
}

/* === ABOUT PAGE HERO === */
.page-hero--about .page-hero__content {
    max-width: 720px;
}
.about-hero-stats {
    display: flex;
    gap: var(--sp-8);
    margin-top: var(--sp-6);
    padding-top: var(--sp-5);
    border-top: 1px solid var(--c-border-light);
}

/* === ABOUT PAGE SECTIONS === */
.about-section {
    display: flex;
    gap: var(--sp-6);
    padding: var(--sp-8) 0;
    border-bottom: 1px solid var(--c-border-light);
}
.about-section:first-of-type {
    padding-top: 0;
}
.about-section__icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: var(--r-lg);
    background: var(--c-accent-bg);
    color: var(--c-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.about-section__icon-wrap svg { width: 22px; height: 22px; }
.about-section__icon-wrap--warning {
    background: #fef3c7;
    color: #b45309;
}
.about-section__title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: var(--sp-3);
}
.about-section__body p {
    font-size: var(--text-md);
    color: var(--c-body);
    line-height: 1.7;
    margin-bottom: var(--sp-3);
}
.about-section__body p:last-child { margin-bottom: 0; }

/* About section -- notice (warning) */
.about-section--notice {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--r-xl);
    padding: var(--sp-6);
    margin-top: var(--sp-2);
    margin-bottom: var(--sp-2);
    border-bottom: 1px solid #fde68a;
}

/* About section -- legal */
.about-section--legal {
    border-bottom: none;
}
.about-section--legal .about-section__body p {
    font-size: var(--text-sm);
    color: var(--c-tertiary);
}

/* About features grid */
.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-4);
    margin-top: var(--sp-4);
}
.about-feature {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: var(--sp-5);
}
.about-feature h3 {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: var(--sp-2);
}
.about-feature p {
    font-size: var(--text-sm) !important;
    color: var(--c-secondary) !important;
    line-height: 1.6;
    margin-bottom: 0 !important;
}

/* About CTA */
.about-cta {
    text-align: center;
    padding: var(--sp-10) var(--sp-8);
    margin-top: var(--sp-4);
    background: linear-gradient(135deg, rgba(34, 54, 64, 0.04) 0%, rgba(5, 150, 105, 0.06) 100%);
    border: 1px solid var(--c-border-light);
    border-radius: var(--r-xl);
}
.about-cta h2 {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--c-text);
    margin-bottom: var(--sp-3);
}
.about-cta p {
    font-size: var(--text-md);
    color: var(--c-secondary);
    margin-bottom: var(--sp-6);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.about-cta__buttons {
    display: flex;
    gap: var(--sp-3);
    justify-content: center;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-3) var(--sp-6);
    border-radius: var(--r-md);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--t-base);
    min-height: 44px;
    cursor: pointer;
}
.btn--primary {
    background: var(--c-accent);
    color: white;
}
.btn--primary:hover {
    background: var(--c-accent-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}
.btn--outline {
    background: var(--c-surface);
    color: var(--c-text);
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-xs);
}
.btn--outline:hover {
    border-color: var(--c-accent);
    color: var(--c-accent);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
    text-decoration: none;
}

/* === PAGE CONTENT (generic pages) === */
.page-content {
    max-width: 640px;
    margin: 0 auto;
}
.page-content .entry-content {
    font-size: var(--text-md);
    line-height: 1.7;
    color: var(--c-body);
}
.page-content .entry-content p { margin-bottom: var(--sp-5); }
.page-content .entry-content hr {
    border: none;
    height: 1px;
    background: var(--c-border);
    margin: var(--sp-8) 0;
}
.page-content .entry-content a {
    color: var(--c-accent);
    text-decoration: underline;
    text-decoration-color: rgba(5,150,105,0.25);
    text-underline-offset: 3px;
}
.page-content .entry-content a:hover {
    text-decoration-color: var(--c-accent);
}

/* === CONTACT PAGE LAYOUT === */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--sp-8);
    align-items: start;
}
.contact-form-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    padding: var(--sp-8);
}
.contact-form-card__title {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: var(--sp-6);
    padding-bottom: var(--sp-5);
    border-bottom: 1px solid var(--c-border-light);
}
.contact-form-card__title svg { width: 20px; height: 20px; color: var(--c-accent); }
.contact-form-content .wp-block-separator { display: none; }
.contact-form-content .wpcf7 { margin-top: 0; }
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}
.contact-info-card {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    padding: var(--sp-5) var(--sp-5);
}
.contact-info-card__icon {
    width: 36px;
    height: 36px;
    border-radius: var(--r-md);
    background: var(--c-accent-bg);
    color: var(--c-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--sp-3);
}
.contact-info-card__icon svg { width: 18px; height: 18px; }
.contact-info-card__title {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: var(--sp-2);
}
.contact-info-card__text {
    font-size: var(--text-sm);
    color: var(--c-secondary);
    line-height: 1.6;
}
.contact-info-card__text a {
    color: var(--c-accent);
    text-decoration: underline;
    text-decoration-color: rgba(5,150,105,0.25);
    text-underline-offset: 3px;
}
.contact-info-card__text a:hover {
    text-decoration-color: var(--c-accent);
}

/* === CONTACT FORM 7 === */
.wpcf7 { margin-top: var(--sp-6); }
.wpcf7-form p {
    margin-bottom: var(--sp-5);
}
.wpcf7-form label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: var(--sp-2);
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    padding: var(--sp-3) var(--sp-4);
    font-size: var(--text-base);
    font-family: var(--font);
    color: var(--c-body);
    background: var(--c-surface);
    transition: all var(--t-fast);
    -webkit-appearance: none;
    appearance: none;
}
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px rgba(5,150,105,0.08);
}
.wpcf7-form textarea {
    min-height: 160px;
    resize: vertical;
}
.wpcf7-form input[type="submit"],
.wpcf7-form .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--c-accent);
    color: white;
    border: none;
    border-radius: var(--r-md);
    padding: var(--sp-3) var(--sp-8);
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
    transition: all var(--t-base);
    min-height: 48px;
    -webkit-appearance: none;
    appearance: none;
}
.wpcf7-form input[type="submit"]:hover,
.wpcf7-form .wpcf7-submit:hover {
    background: var(--c-accent-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.wpcf7-form input[type="submit"]:active,
.wpcf7-form .wpcf7-submit:active {
    transform: translateY(0);
    box-shadow: var(--shadow-xs);
}
/* CF7 validation */
.wpcf7-not-valid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.08) !important;
}
.wpcf7-not-valid-tip {
    color: #dc2626;
    font-size: var(--text-sm);
    margin-top: var(--sp-1);
    display: block;
}
.wpcf7-response-output {
    border: none !important;
    padding: var(--sp-4) var(--sp-5) !important;
    margin: var(--sp-6) 0 0 !important;
    border-radius: var(--r-md) !important;
    font-size: var(--text-sm) !important;
}
.wpcf7-mail-sent-ok,
.wpcf7 form.sent .wpcf7-response-output {
    background: var(--c-accent-bg) !important;
    color: var(--c-accent) !important;
}
.wpcf7-validation-errors,
.wpcf7 form.invalid .wpcf7-response-output {
    background: #fef2f2 !important;
    color: #dc2626 !important;
}
.wpcf7-spinner {
    margin-left: var(--sp-3);
}

/* === MOBILE MENU === */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100dvh;
    background: var(--c-surface);
    box-shadow: var(--shadow-xl);
    z-index: 200;
    padding: var(--sp-6);
    transition: right 0.3s var(--ease);
    overflow-y: auto;
}
.mobile-menu.is-open { right: 0; }
.mobile-menu__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--sp-2);
    margin-bottom: var(--sp-6);
    border-radius: var(--r-sm);
    transition: background var(--t-fast);
}
.mobile-menu__close:hover { background: var(--c-border-light); }
.mobile-menu__close svg { width: 22px; height: 22px; color: var(--c-text); }
.mobile-menu a {
    display: block;
    padding: var(--sp-3) var(--sp-4);
    margin-bottom: var(--sp-1);
    font-size: var(--text-base);
    color: var(--c-text);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--r-sm);
    transition: all var(--t-fast);
    opacity: 0;
    transform: translateX(20px);
}
.mobile-menu.is-open a {
    opacity: 1;
    transform: translateX(0);
    transition: all 300ms var(--ease);
}
.mobile-menu.is-open a:nth-child(1) { transition-delay: 50ms; }
.mobile-menu.is-open a:nth-child(2) { transition-delay: 100ms; }
.mobile-menu.is-open a:nth-child(3) { transition-delay: 150ms; }
.mobile-menu.is-open a:nth-child(4) { transition-delay: 200ms; }
.mobile-menu.is-open a:nth-child(5) { transition-delay: 250ms; }
.mobile-menu.is-open a:nth-child(6) { transition-delay: 300ms; }
.mobile-menu a:hover {
    color: var(--c-accent);
    background: var(--c-accent-bg);
}
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.4);
    backdrop-filter: blur(4px);
    z-index: 199;
}
.mobile-overlay.is-open { display: block; }

/* === RESPONSIVE === */
@media (max-width: 767px) {
    :root {
        --text-3xl: 1.625rem;
        --text-4xl: 1.875rem;
    }

    .site-nav, .site-search { display: none; }
    .menu-toggle { display: block; }
    .mobile-menu { display: block; }

    .article-toc { display: none; }
    .mobile-toc { display: block; }
    .article-layout { padding: 0 var(--sp-4); }
    .article-content { padding: var(--sp-5); margin-top: var(--sp-5); margin-bottom: var(--sp-5); }
    .article-content .entry-content { max-width: 100%; font-size: var(--text-base); }

    .article-hero { padding: 0 0 var(--sp-6); }
    .article-hero__title { font-size: var(--text-3xl); margin-bottom: var(--sp-4); }
    .article-hero__meta-sep { display: none; }
    .article-hero__meta-text span { display: block; margin-top: 2px; }

    .share-links { margin-bottom: var(--sp-4); }

    .related-card__excerpt { display: none; }

    .comment-list .children { margin-left: var(--sp-4); padding-left: var(--sp-3); }

    .brand-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
    .brand-card { padding: var(--sp-5) var(--sp-4); }

    .category-hero__content { flex-direction: column; gap: var(--sp-4); }
    .category-hero__title { font-size: var(--text-3xl); }
    .category-hero__stats { gap: var(--sp-5); }
    .category-hero__stat-number { font-size: var(--text-2xl); }

    .page-hero__title { font-size: var(--text-3xl); }

    .contact-layout { grid-template-columns: 1fr; }
    .contact-form-card { padding: var(--sp-5) var(--sp-4); }
    .contact-sidebar { flex-direction: row; }
    .contact-info-card { flex: 1; }

    .about-hero-stats { gap: var(--sp-5); }
    .about-section { flex-direction: column; gap: var(--sp-4); }
    .about-features { grid-template-columns: 1fr; }
    .about-section--notice { padding: var(--sp-5); }
    .about-cta__buttons { flex-direction: column; align-items: center; }

    .model-grid { grid-template-columns: 1fr; }
    .manual-grid { grid-template-columns: 1fr; }
    .model-card__icon { width: 32px; height: 32px; }
    .model-card__icon svg { width: 16px; height: 16px; }

    .related-grid { grid-template-columns: 1fr; gap: var(--sp-3); }

    .post-card__thumb { width: 110px; min-height: 90px; }
    .post-card__body { padding: var(--sp-3) var(--sp-4); }
    .post-card__title { font-size: var(--text-sm); }
    .post-card__excerpt { display: none; }

    .hero { padding: var(--sp-10) 0 var(--sp-8); }
    .hero--home { padding: var(--sp-12) 0 var(--sp-10); }
    .hero h1 { font-size: var(--text-3xl); }
    .hero p { font-size: var(--text-base); margin-bottom: var(--sp-6); }

    .container { padding: 0 var(--sp-4); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6) var(--sp-8); padding: var(--sp-8) 0 var(--sp-6); }
    .footer-col--brand,
    .footer-col--popular { grid-column: 1 / -1; }
    .footer-desc { max-width: none; }
    .footer-bottom__inner { flex-direction: column; gap: var(--sp-3); text-align: center; }
    .site-footer { margin-top: var(--sp-10); }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .brand-grid { max-width: 560px; }
    .brand-card { padding: var(--sp-5) var(--sp-3); }
    .article-toc { width: 200px; padding-left: var(--sp-5); }
    .model-grid { grid-template-columns: repeat(2, 1fr); }
    .manual-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6) var(--sp-8); }
    .footer-col--brand { grid-column: 1 / -1; }
}
