/* Base Styles - Self-Host.it Hugo Theme */
/* CSS Variables, Reset, and Base Typography */

/* CSS Variables for theming */
:root {
    /* Light theme (default) */
    --bg-primary: #f9f9f9;
    --bg-secondary: #f1f1f1;
    --bg-card: #ffffff;
    --text-primary: #212121;
    --text-secondary: #666666;
    --text-muted: #999999;
    --accent-color: #45a278;
    --accent-hover: #3d8f6a;
    --border-color: #e8e8e8;
    --header-bg: #f9f9f9;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    /* Code block colors */
    --code-bg: #1e1e1e;
    --code-text: #d4d4d4;
    --code-header-bg: #2d2d2d;
    --inline-code-bg: rgba(69, 162, 120, 0.1);
    --inline-code-text: #45a278;
    /* Admonition colors */
    --note-bg: rgba(59, 130, 246, 0.08);
    --note-border: #3b82f6;
    --note-icon: #3b82f6;
    --warning-bg: rgba(245, 158, 11, 0.08);
    --warning-border: #f59e0b;
    --warning-icon: #f59e0b;
    --tip-bg: rgba(16, 185, 129, 0.08);
    --tip-border: #10b981;
    --tip-icon: #10b981;
    --danger-bg: rgba(239, 68, 68, 0.08);
    --danger-border: #ef4444;
    --danger-icon: #ef4444;
    /* Search highlight */
    --highlight-bg: rgba(69, 162, 120, 0.2);
}

[data-theme="dark"] {
    --bg-primary: #1f1f24;
    --bg-secondary: #27272d;
    --bg-card: #2c2c32;
    --text-primary: #e8e8e8;
    --text-secondary: #a8a8a8;
    --text-muted: #707070;
    --accent-color: #45a278;
    --accent-hover: #52b586;
    --border-color: #3a3a40;
    --header-bg: #1f1f24;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    /* Code block colors */
    --code-bg: #0d0d0d;
    --code-text: #d4d4d4;
    --code-header-bg: #1a1a1a;
    --inline-code-bg: rgba(69, 162, 120, 0.15);
    --inline-code-text: #52b586;
    /* Admonition colors */
    --note-bg: rgba(59, 130, 246, 0.12);
    --note-border: #3b82f6;
    --note-icon: #60a5fa;
    --warning-bg: rgba(245, 158, 11, 0.12);
    --warning-border: #f59e0b;
    --warning-icon: #fbbf24;
    --tip-bg: rgba(16, 185, 129, 0.12);
    --tip-border: #10b981;
    --tip-icon: #34d399;
    --danger-bg: rgba(239, 68, 68, 0.12);
    --danger-border: #ef4444;
    --danger-icon: #f87171;
    /* Search highlight */
    --highlight-bg: rgba(69, 162, 120, 0.3);
}

/* Reset and base styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

/* Main Content */
.main {
    flex: 1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #ffffff;
}

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

.btn-secondary {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-card);
    border-color: var(--text-muted);
}

/* Tags */
.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    background-color: var(--bg-secondary);
    border-radius: 0.25rem;
    border: 1px solid var(--border-color);
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }
}
/* Shared Components - Self-Host.it Hugo Theme */
/* Header, Footer, Breadcrumb, Cards, Search Box, Theme Toggle */

/* Skip Link (Accessibility) */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 200;
    padding: 0.5rem 1rem;
    background-color: #2c6e4f;
    color: #fff;
    border-radius: 0 0 0.5rem 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--header-bg);
    padding: 0.75rem 1.5rem;
}

[data-theme="dark"] .header {
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
}

.logo-icon {
    font-size: 1.25rem;
}

.logo-text {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo:hover .logo-text {
    color: var(--accent-hover);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Search Box */
.search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.search-box:hover {
    border-color: var(--text-muted);
}

.search-box-wide {
    min-width: 300px;
}

.search-icon {
    font-size: 0.875rem;
    opacity: 0.6;
}

.search-text {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.search-shortcut {
    padding: 0.125rem 0.375rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Theme Toggle */
.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.toggle-track {
    display: block;
    width: 3rem;
    height: 1.5rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    position: relative;
    transition: background-color 0.3s ease;
}

.toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1.125rem;
    height: 1.125rem;
    background-color: var(--text-muted);
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

[data-theme="dark"] .toggle-thumb {
    transform: translateX(1.5rem);
    background-color: var(--accent-color);
}

/* Social Links */
.social-link {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.social-link:hover {
    color: var(--text-primary);
}

.social-icon {
    width: 1.5rem;
    height: 1.5rem;
}

/* Breadcrumb */
.breadcrumb {
    background-color: var(--bg-secondary);
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb-link {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: var(--accent-color);
}

.breadcrumb-separator {
    color: var(--text-muted);
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 500;
}

/* Footer */
.footer {
    padding: 3rem 1.5rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    padding-right: 1rem;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 0.75rem;
}

.footer-logo .logo-text {
    font-size: 1.125rem;
}

.footer-description {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-heading {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.footer-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--accent-color);
}

.footer-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 0.15rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-social-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

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

.footer-copyright a {
    color: var(--accent-color);
}

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

/* Article Card */
.article-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.article-card:hover {
    box-shadow: var(--card-shadow);
    transform: translateY(-3px);
}

.article-link {
    display: block;
    padding: 1.25rem;
    height: 100%;
}

.article-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.article-card:hover .article-title {
    color: var(--accent-color);
}

.article-excerpt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.article-card:hover .tag {
    background-color: rgba(69, 162, 120, 0.15);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.article-date {
    color: var(--text-secondary);
}

.article-author {
    color: var(--accent-color);
    font-weight: 500;
}

/* Environment/Category Card */
.environment-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.environment-card:hover {
    box-shadow: var(--card-shadow);
    transform: translateY(-3px);
}

.environment-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
    text-align: center;
}

.environment-icon {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.environment-icon svg,
.environment-icon img {
    width: 64px;
    height: 64px;
}

.environment-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.environment-card:hover .environment-title {
    color: var(--accent-color);
}

.environment-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Disabled Environment Card */
.environment-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.environment-card.disabled:hover {
    box-shadow: none;
    transform: none;
}

.environment-card.disabled .environment-icon img,
.environment-card.disabled .environment-icon svg {
    filter: grayscale(100%);
    opacity: 0.5;
}

.environment-card.disabled .environment-title {
    color: var(--text-secondary);
}

.environment-card.disabled:hover .environment-title {
    color: var(--text-secondary);
}

/* Feature Card */
.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
    box-shadow: var(--card-shadow);
    transform: translateY(-2px);
}

.feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.feature-icon-yellow {
    background-color: rgba(234, 179, 8, 0.15);
    color: #eab308;
}

.feature-icon-orange {
    background-color: rgba(249, 115, 22, 0.15);
    color: #f97316;
}

.feature-icon-blue {
    background-color: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.feature-icon-red {
    background-color: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.feature-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive Design for Components */
@media (max-width: 768px) {
    .header {
        padding: 0.5rem 1rem;
    }

    .header-container {
        gap: 1rem;
    }

    .search-box {
        display: none;
    }

    .breadcrumb {
        padding: 0.5rem 1rem;
    }

    .breadcrumb-container {
        font-size: 0.8125rem;
    }

    .footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
        padding-right: 0;
    }

    .footer-bottom {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.125rem;
    }

    .theme-toggle-btn {
        transform: scale(0.85);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-copyright {
        font-size: 0.75rem;
    }
}

@media print {
    .header,
    .footer,
    .theme-toggle {
        display: none;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem;
}

.cookie-banner-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-banner-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.cookie-banner-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Cookie Categories */
.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0.5rem 0;
}

.cookie-category {
    padding: 1rem;
    background-color: var(--bg-secondary);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.cookie-category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cookie-category-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cookie-category-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.cookie-category-link {
    text-decoration: none;
    transition: color 0.2s ease;
}

.cookie-category-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.cookie-category-badge {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    background-color: var(--accent-color);
    color: white;
    border-radius: 1rem;
}

.cookie-category-description {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0.5rem 0 0 0;
    line-height: 1.4;
}

/* Cookie Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--text-muted);
    transition: 0.3s;
    border-radius: 24px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: var(--accent-color);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(20px);
}

.cookie-toggle-slider.disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Cookie Banner Actions */
.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.cookie-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

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

.cookie-btn-primary:hover {
    background-color: var(--accent-hover);
}

.cookie-btn-secondary {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.cookie-btn-secondary:hover {
    background-color: var(--bg-primary);
    border-color: var(--text-muted);
}

/* Cookie Banner Footer */
.cookie-banner-footer {
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.cookie-policy-link {
    font-size: 0.8125rem;
    color: var(--accent-color);
}

.cookie-policy-link:hover {
    text-decoration: underline;
}

/* Cookie Settings Button */
.cookie-settings-btn {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    z-index: 9998;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.cookie-settings-btn:hover {
    background-color: var(--bg-secondary);
    color: #d4a574;
    transform: scale(1.1);
}

/* Cookie Banner Responsive */
@media (max-width: 768px) {
    .cookie-banner-container {
        padding: 1rem;
    }

    .cookie-banner-title {
        font-size: 1.125rem;
    }

    .cookie-banner-description {
        font-size: 0.875rem;
    }

    .cookie-category {
        padding: 0.75rem;
    }

    .cookie-banner-actions {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cookie-category-header {
        flex-wrap: wrap;
    }

    .cookie-settings-btn {
        width: 40px;
        height: 40px;
        bottom: 0.75rem;
        left: 0.75rem;
    }
}

@media print {
    .cookie-banner,
    .cookie-settings-btn {
        display: none !important;
    }
}

/* Guide Card (shared component used on homepage, category, search, related articles) */
.guide-card {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.guide-card:hover {
    box-shadow: var(--card-shadow);
    transform: translateY(-3px);
}

.guide-link {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    padding: 1.5rem;
    flex: 1;
}

.guide-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    width: 100%;
}

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

.guide-logo img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.guide-header .guide-date {
    font-size: 0.8125rem;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-left: auto;
}

.guide-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.guide-card:hover .guide-title {
    color: var(--category-color, var(--accent-color));
}

.guide-excerpt {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.guide-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.guide-tag {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    background-color: var(--bg-secondary);
    border-radius: 0.25rem;
    border: 1px solid var(--border-color);
}

.guide-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    width: 100%;
}

.guide-category {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--category-color, var(--accent-color));
    background-color: rgba(69, 162, 120, 0.15);
    border: 1px solid var(--category-color, var(--accent-color));
    border-radius: 0.25rem;
}

.guide-level {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.guide-level .level-icon {
    display: inline-flex;
    gap: 2px;
    align-items: flex-end;
}

.guide-level .level-bar {
    width: 4px;
    background: var(--border-color);
    border-radius: 1px;
}

.guide-level .level-bar:nth-child(1) { height: 8px; }
.guide-level .level-bar:nth-child(2) { height: 12px; }
.guide-level .level-bar:nth-child(3) { height: 16px; }

.guide-level.level-beginner .level-bar:nth-child(1) { background: #22c55e; }
.guide-level.level-beginner .level-text { color: #22c55e; }

.guide-level.level-intermediate .level-bar:nth-child(1),
.guide-level.level-intermediate .level-bar:nth-child(2) { background: #f59e0b; }
.guide-level.level-intermediate .level-text { color: #f59e0b; }

.guide-level.level-advanced .level-bar:nth-child(1),
.guide-level.level-advanced .level-bar:nth-child(2),
.guide-level.level-advanced .level-bar:nth-child(3) { background: #ef4444; }
.guide-level.level-advanced .level-text { color: #ef4444; }

@media (max-width: 480px) {
    .guide-link {
        padding: 1.25rem;
    }

    .guide-title {
        font-size: 1rem;
    }

    .guide-excerpt {
        font-size: 0.875rem;
        -webkit-line-clamp: 2;
    }
}

/* Asciinema player */
.asciinema-container {
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--accent-color);
}
