:root {
    --ws-ink: #0f172a;
    --ws-mid: #1e293b;
    --ws-accent: #6366f1;
    --ws-accent-soft: #e0e7ff;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    background: #f1f5f9;
    color: var(--ws-ink);
}

.ws-navbar {
    background: var(--ws-ink);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ws-navbar .nav-link.active {
    font-weight: 600;
}

.ws-nav-featured {
    color: #c7d2fe !important;
}

.ws-badge {
    background: var(--ws-accent);
    font-weight: 600;
    font-size: 0.65rem;
    vertical-align: middle;
}

.ws-footer {
    background: var(--ws-ink);
    color: rgba(255, 255, 255, 0.72);
}

.ws-hero {
    background: linear-gradient(135deg, var(--ws-ink) 0%, var(--ws-mid) 100%);
    color: #fff;
    border-radius: 1rem;
    padding: 2rem 1.75rem;
    margin-bottom: 1.75rem;
}

.ws-hero-featured {
    background: linear-gradient(135deg, #312e81 0%, #1e1b4b 55%, #0f172a 100%);
}

.ws-hero-kicker {
    letter-spacing: 0.08em;
    color: #c7d2fe;
}

.ws-hero h1 {
    letter-spacing: -0.02em;
}

.ws-card {
    border: 0;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ws-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.12) !important;
}

.ws-card-featured {
    background: var(--ws-accent-soft);
    border: 1px solid #c7d2fe !important;
}

.ws-lang {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.ws-lang .nav-link {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.ws-prose p:last-child {
    margin-bottom: 0;
}

.ws-prose img,
.ibexa-field img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
}

.ws-related {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ws-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #c7d2fe;
    color: var(--ws-ink);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}

.ws-chip:hover {
    background: var(--ws-accent-soft);
    color: var(--ws-ink);
    transform: translateY(-1px);
    box-shadow: 0 0.5rem 1rem rgba(99, 102, 241, 0.16);
}

.ws-tech-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.ws-card .ws-tech-label {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ws-ink);
}

.ws-icon,
.ibexa-field img.ws-icon,
.ws-prose img.ws-icon {
    display: block;
    flex-shrink: 0;
    object-fit: contain;
    background: #fff;
    max-width: none;
    height: unset;
    border-radius: 0.28rem;
}

.ws-icon--nav,
.ibexa-field img.ws-icon--nav {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    border-radius: 0.28rem;
}

.ws-icon--sm,
.ibexa-field img.ws-icon--sm {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
}

.ws-icon--lg,
.ibexa-field img.ws-icon--lg {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    border-radius: 0.7rem;
}

.ws-prose ul,
.ibexa-field ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: grid;
    gap: 0.5rem;
}

.ws-prose li,
.ibexa-field ul > li {
    position: relative;
    margin: 0;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
}

.ws-prose li::before,
.ibexa-field ul > li::before {
    content: "";
    position: absolute;
    left: 0.95rem;
    top: 1.15rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--ws-accent);
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    display: none;
    margin-top: 0;
}

@media (min-width: 992px) {
    .dropdown-submenu > .dropdown-menu {
        top: 0;
        right: 100%;
        left: auto;
    }

    .dropdown-submenu:hover > .dropdown-menu,
    .dropdown-submenu.show > .dropdown-menu {
        display: block;
    }
}

@media (max-width: 991.98px) {
    .dropdown-submenu.show > .dropdown-menu {
        display: block;
        position: static;
        box-shadow: none;
        border: 0;
        padding-left: 0.75rem;
    }
}

.ws-crumb {
    margin-bottom: 1.25rem;
}

.ws-crumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0.3rem 0.4rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    font-size: 0.875rem;
    line-height: 1.3;
}

.ws-crumb li {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.ws-crumb li:not(:last-child)::after {
    content: "";
    width: 0.38rem;
    height: 0.38rem;
    margin: 0 0.35rem 0 0.45rem;
    border-right: 1.5px solid #94a3b8;
    border-top: 1.5px solid #94a3b8;
    transform: rotate(45deg);
    opacity: 0.75;
    flex-shrink: 0;
}

.ws-crumb a {
    color: #475569;
    text-decoration: none;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    transition: background 0.15s ease, color 0.15s ease;
}

.ws-crumb a:hover {
    color: var(--ws-accent);
    background: var(--ws-accent-soft);
}

.ws-crumb [aria-current="page"] {
    color: var(--ws-ink);
    font-weight: 600;
    padding: 0.25rem 0.65rem 0.25rem 0.45rem;
    max-width: 18rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
