/**
 * Unified public site theme (Joomla-inspired) – all menu sections.
 * Loaded last to override legacy inline page styles.
 */

 html.site-html {
    overflow-x: clip;
}

:root {
    --site-content-max: 1400px;
    --site-gutter: 20px;
    --site-shell-padding-y: 20px;
    --site-shell-padding-bottom: 32px;
    --site-panel-padding: 16px 20px 20px;
    --site-sidebar-width: 260px;
    --site-layout-gap: 20px;
    --site-page-bg: #f0f2f4;
    --site-card-bg: #fff;
    --site-border: #e2e6ea;
    --site-accent: #5eb4b8;
    --site-accent-hover: #4a9fa3;
}

body.site-public {
    margin: 0;
    line-height: 1.4;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #333;
    overflow-x: clip;
    background:
        linear-gradient(90deg, transparent 49%, rgba(52, 152, 219, 0.05) 49%, rgba(52, 152, 219, 0.05) 51%, transparent 51%),
        linear-gradient(0deg, transparent 49%, rgba(231, 76, 60, 0.05) 49%, rgba(231, 76, 60, 0.05) 51%, transparent 51%),
        linear-gradient(45deg, transparent 49%, rgba(46, 204, 113, 0.05) 49%, rgba(46, 204, 113, 0.05) 51%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, rgba(155, 89, 182, 0.05) 49%, rgba(155, 89, 182, 0.05) 51%, transparent 51%),
        var(--site-page-bg);
    background-size:
        100px 100px,
        100px 100px,
        100px 100px,
        100px 100px,
        100% 100%;
    background-attachment: fixed;
    animation: siteSportBg 30s ease-in-out infinite;
}

@keyframes siteSportBg {
    0%, 100% {
        background-position:
            0% 0%,
            0% 0%,
            0% 0%,
            0% 0%,
            0% 0%;
    }
    50% {
        background-position:
            50% 50%,
            50% 50%,
            50% 50%,
            50% 50%,
            0% 0%;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.site-public {
        animation: none;
    }
}

body.site-public.page-gallery-list {
    --gallery-mosaic-gap: 18px;
    --gallery-album-inset: var(--gallery-mosaic-gap);
}

@media (max-width: 999px) {
    body.site-public.page-gallery-list {
        --gallery-mosaic-gap: 14px;
    }
}

@media (max-width: 800px) {
    body.site-public.page-gallery-list {
        --gallery-mosaic-gap: 12px;
    }
}

@media (max-width: 768px) {
    body.site-public.page-gallery-list {
        --gallery-mosaic-gap: 10px;
    }
}

/* —— Header (all pages) —— */
body.site-public header {
    display: block;
    width: 100%;
    padding: 12px 0 10px;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: none;
    background: #fff;
}

/* Full-width header bar – logo at viewport left, nav/search at viewport right */
body.site-public .header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 clamp(12px, 2vw, 28px);
    box-sizing: border-box;
}

body.site-public header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 1 auto;
    margin-right: auto;
    text-decoration: none;
    color: inherit;
    justify-content: flex-start;
    min-width: 0;
}

body.site-public header .right-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 16px 20px;
    flex: 0 1 auto;
    margin-left: auto;
}

body.site-public header nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 14px 18px;
}

body.site-public .logo-image {
    height: 56px;
    width: auto;
    flex-shrink: 0;
}

body.site-public .logo h1 {
    font-size: 22px;
    letter-spacing: 0.02em;
    background: none;
    -webkit-text-fill-color: currentColor;
    color: #2c3e50;
}

body.site-public .tagline {
    font-size: 12px;
    color: #888;
    font-style: italic;
}

body.site-public header nav a {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #555;
    text-decoration: none;
}

body.site-public header nav a:hover,
body.site-public header nav a.active {
    color: #333;
}

body.site-public header nav a.active::after {
    bottom: -8px;
    height: 2px;
    background: #7eb8d8;
}

body.site-public .search-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

body.site-public .search-form {
    display: flex;
    align-items: center;
    margin: 0;
}

body.site-public .search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

body.site-public .search-input {
    width: 220px;
    max-width: 100%;
    padding: 9px 42px 9px 14px;
    border: 1px solid var(--site-border);
    border-radius: 999px;
    outline: none;
    font-size: 13px;
    line-height: 1.3;
    color: #333;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, width 0.2s ease;
}

body.site-public .search-input::placeholder {
    color: #9aa3ab;
}

body.site-public .search-input:focus {
    width: 260px;
    border-color: var(--site-accent);
    box-shadow: 0 0 0 3px rgba(94, 180, 184, 0.18);
}

body.site-public .search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    background: var(--site-accent);
    transition: background 0.2s ease;
}

body.site-public .search-btn:hover {
    background: var(--site-accent-hover);
    transform: translateY(-50%);
}

body.site-public .site-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: min(420px, calc(100vw - 32px));
    max-height: min(420px, 60vh);
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
    z-index: 1200;
    padding: 6px 0;
}

body.site-public .site-search-dropdown__state {
    padding: 14px 16px;
    font-size: 13px;
    color: #666;
}

body.site-public .site-search-dropdown__state--empty {
    color: #888;
}

body.site-public .site-search-dropdown__state--error {
    color: #c0392b;
}

body.site-public .site-search-dropdown__view-all {
    display: block;
    padding: 12px 16px;
    border-top: 1px solid var(--site-border);
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--site-accent-hover);
    text-decoration: none;
}

body.site-public .site-search-dropdown__view-all:hover {
    background: #f4f9fa;
    color: var(--site-accent);
}

body.site-public .site-search-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

body.site-public .site-search-result:hover,
body.site-public .site-search-result.is-active {
    background: #f4f8fb;
}

body.site-public .site-search-result__thumb {
    position: relative;
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
}

body.site-public .site-search-result__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.site-public .site-search-result__stats {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 2px 4px;
    background: rgba(0, 0, 0, 0.55);
    font-size: 10px;
    color: #fff;
}

body.site-public .site-search-result__stat {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

body.site-public .site-search-result__stat--likes {
    color: #ffb3b3;
}

body.site-public .site-search-result__body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

body.site-public .site-search-result__title {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.site-public .site-search-result__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #777;
}

body.site-public .site-search-result__type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eef4f8;
    color: #4a7a96;
    font-weight: 600;
}

body.site-public .site-search-result__subtitle {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.35;
    color: #5f6f7a;
}

body.site-public .site-search-result--participant .site-search-result__type {
    background: #eef8f0;
    color: #2d7a46;
}

body.site-public .site-search-result__date {
    color: #888;
}

/* —— Search results page (panel styles in unified layout above) —— */
body.site-public.page-search .site-search-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

body.site-public.page-search .site-search-page__hero {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0 0 4px;
    box-shadow: none;
}

body.site-public.page-search .site-search-page__title {
    margin: 0 0 6px;
    font-size: clamp(1.45rem, 2.5vw, 1.85rem);
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: -0.01em;
}

body.site-public.page-search .site-search-page__lead {
    margin: 0 0 20px;
    font-size: 14px;
    color: #6b7785;
}

body.site-public.page-search .site-search-page__form {
    margin: 0;
}

body.site-public.page-search .site-search-page__form-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.site-public.page-search .site-search-page__form-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--site-border);
    border-radius: 12px;
    background: #f8fafb;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.site-public.page-search .site-search-page__form-row:focus-within {
    border-color: var(--site-accent);
    box-shadow: 0 0 0 3px rgba(94, 180, 184, 0.16);
    background: #fff;
}

body.site-public.page-search .site-search-page__form-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    flex-shrink: 0;
    color: #8a96a3;
    font-size: 15px;
}

body.site-public.page-search .site-search-page__input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 14px 8px 14px 0;
    font-size: 16px;
    line-height: 1.3;
    color: #2c3e50;
    outline: none;
}

body.site-public.page-search .site-search-page__input::placeholder {
    color: #9aa3ab;
}

body.site-public.page-search .site-search-page__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 6px;
    padding: 0 20px;
    border: none;
    border-radius: 8px;
    background: var(--site-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

body.site-public.page-search .site-search-page__submit:hover {
    background: var(--site-accent-hover);
}

body.site-public.page-search .site-search-page__hint {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px;
    border-radius: 12px;
    border: 1px dashed #cfd6dc;
    background: rgba(255, 255, 255, 0.75);
    color: #6b7785;
    font-size: 14px;
}

body.site-public.page-search .site-search-page__hint i {
    color: var(--site-accent);
    font-size: 18px;
    margin-top: 2px;
}

body.site-public.page-search .site-search-page__hint p {
    margin: 0;
}

body.site-public.page-search .site-search-page__panel {
    background: var(--site-card-bg);
    border: 1px solid var(--site-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(44, 62, 80, 0.06);
}

body.site-public.page-search .site-search-page__panel-head {
    padding: 18px 20px;
    border-bottom: 1px solid var(--site-border);
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

body.site-public.page-search .site-search-page__summary {
    margin: 0 0 14px;
    font-size: 15px;
    color: #5f6f7a;
    line-height: 1.45;
}

body.site-public.page-search .site-search-page__summary strong {
    color: #2c3e50;
    font-weight: 700;
}

body.site-public.page-search .site-search-page__query {
    color: #2c3e50;
    font-weight: 600;
}

body.site-public.page-search .site-search-page__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.site-public.page-search .site-search-page__filter {
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--site-border);
    background: #fff;
    color: #55616d;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body.site-public.page-search .site-search-page__filter.is-active,
body.site-public.page-search .site-search-page__filter:hover {
    background: var(--site-accent);
    border-color: var(--site-accent);
    color: #fff;
}

body.site-public.page-search .site-search-page__list {
    display: flex;
    flex-direction: column;
}

body.site-public.page-search .site-search-row {
    border-bottom: 1px solid var(--site-border);
}

body.site-public.page-search .site-search-row:last-child {
    border-bottom: none;
}

body.site-public.page-search .site-search-row__link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    color: inherit;
    text-decoration: none;
    transition: background 0.15s ease;
}

body.site-public.page-search .site-search-row__link:hover {
    background: #f4f9fa;
}

body.site-public.page-search .site-search-row__thumb {
    position: relative;
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    background: #eef1f4;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

body.site-public.page-search .site-search-row__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.site-public.page-search .site-search-row__stats {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 3px 4px;
    background: rgba(20, 30, 40, 0.62);
    color: #fff;
    font-size: 10px;
    line-height: 1;
}

body.site-public.page-search .site-search-row__stat {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

body.site-public.page-search .site-search-row__stat--likes {
    color: #ffc9c9;
}

body.site-public.page-search .site-search-row__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

body.site-public.page-search .site-search-row__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

body.site-public.page-search .site-search-row__type {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    background: #eef4f8;
    color: #4a7a96;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

body.site-public.page-search .site-search-row--participant .site-search-row__type {
    background: #eaf6ed;
    color: #2d7a46;
}

body.site-public.page-search .site-search-row__date {
    font-size: 12px;
    color: #8a96a3;
}

body.site-public.page-search .site-search-row__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: #222;
}

body.site-public.page-search .site-search-row__subtitle {
    font-size: 13px;
    line-height: 1.4;
    color: #5f6f7a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.site-public.page-search .site-search-row__chevron {
    flex: 0 0 auto;
    color: #c0c8d0;
    font-size: 13px;
    transition: color 0.15s ease, transform 0.15s ease;
}

body.site-public.page-search .site-search-row__link:hover .site-search-row__chevron {
    color: var(--site-accent);
    transform: translateX(2px);
}

body.site-public.page-search .site-search-page__pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 18px 20px;
    border-top: 1px solid var(--site-border);
    background: #fafbfc;
}

body.site-public.page-search .site-search-page__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid var(--site-border);
    background: #fff;
    color: #444;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body.site-public.page-search .site-search-page__page.is-active,
body.site-public.page-search .site-search-page__page:hover {
    background: var(--site-accent);
    border-color: var(--site-accent);
    color: #fff;
}

body.site-public.page-search .site-search-page__empty {
    text-align: center;
    padding: 52px 24px;
    color: #7a8794;
}

body.site-public.page-search .site-search-page__empty i {
    font-size: 2rem;
    margin-bottom: 14px;
    display: block;
    color: #c5ced6;
}

body.site-public.page-search .site-search-page__empty p {
    margin: 0;
    font-size: 15px;
    max-width: 36em;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 640px) {
    body.site-public.page-search .site-search-page__submit span {
        display: none;
    }

    body.site-public.page-search .site-search-page__submit {
        padding: 0 14px;
    }

    body.site-public.page-search .site-search-row__link {
        gap: 12px;
        padding: 12px 14px;
    }

    body.site-public.page-search .site-search-row__thumb {
        flex-basis: 60px;
        width: 60px;
        height: 60px;
    }

    body.site-public.page-search .site-search-row__title {
        font-size: 15px;
    }

    body.site-public.page-search .site-search-row__chevron {
        display: none;
    }
}

/* —— Footer (flexibletv layout) —— */
body.site-public footer.site-footer {
    width: 100%;
    max-width: 100%;
    margin-top: 40px;
    margin-bottom: 20px;
    margin-left: 0;
    margin-right: 0;
    padding: 30px var(--site-gutter) 24px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(94, 180, 184, 0.15);
    box-shadow: 0 -4px 24px rgba(0, 133, 199, 0.06);
    color: #475569;
}

body.site-public footer.site-footer .footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: var(--site-content-max);
    margin: 0 auto;
}

body.site-public footer.site-footer .footer-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 15px;
    padding-bottom: 8px;
    color: #1e293b;
    position: relative;
}

body.site-public footer.site-footer .footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--site-accent);
    border-radius: 1px;
}

body.site-public footer.site-footer .footer-section p {
    margin: 0 0 12px;
    line-height: 1.55;
    color: #475569;
    font-size: 0.9rem;
}

body.site-public footer.site-footer .footer-section a {
    color: #4f46e5;
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.site-public footer.site-footer .footer-section a:hover {
    color: #3730a3;
}

body.site-public footer.site-footer .contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

body.site-public footer.site-footer .contact-info i {
    color: var(--site-accent);
    width: 18px;
    text-align: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

body.site-public footer.site-footer .social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 0;
}

body.site-public footer.site-footer .social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475569;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 8px;
    transition: all 0.25s ease;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(94, 180, 184, 0.25);
    font-size: 0.9rem;
    width: auto;
    height: auto;
}

body.site-public footer.site-footer .social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 133, 199, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

body.site-public footer.site-footer .social-link.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: #fff;
}

body.site-public footer.site-footer .social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #e4405f;
    color: #fff;
}

body.site-public footer.site-footer .social-link i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

body.site-public footer.site-footer .social-link span {
    font-weight: 500;
}

body.site-public footer.site-footer .footer-bottom {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(94, 180, 184, 0.2);
    text-align: center;
    max-width: var(--site-content-max);
    margin-left: auto;
    margin-right: auto;
}

body.site-public footer.site-footer .footer-bottom p {
    margin: 5px 0;
    color: #64748b;
    font-size: 0.8rem;
}

body.site-public footer.site-footer .footer-bottom a {
    color: #4f46e5;
    text-decoration: none;
}

body.site-public footer.site-footer .footer-bottom a:hover {
    text-decoration: underline;
}

@media (max-width: 1024px) {
    body.site-public footer.site-footer .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 600px) {
    body.site-public footer.site-footer {
        padding: 24px var(--site-gutter) 20px;
    }

    body.site-public footer.site-footer .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* —— Category / filter bars (shared pattern) —— */
body.site-public .gallery-cat-nav,
body.site-public .site-cat-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 16px 12px;
    border-bottom: 1px solid #ebebeb;
    background: #fff;
}

body.site-public .gallery-cat-nav__link,
body.site-public .site-cat-nav__link {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    color: #777;
    text-decoration: none;
    white-space: nowrap;
    background: none;
    border: none;
    border-radius: 0;
}

body.site-public .gallery-cat-nav__link:hover,
body.site-public .site-cat-nav__link:hover {
    color: #333;
    transform: none;
}

body.site-public .gallery-cat-nav__link.is-active,
body.site-public .site-cat-nav__link.is-active {
    color: #222;
    font-weight: 600;
}

body.site-public .gallery-list-meta,
body.site-public .filter-indicator,
body.site-public .tag-filter-info,
body.site-public .events-page-wrapper .tag-filter-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin: 0 0 12px;
    font-size: 12px;
    color: #666;
    background: var(--site-card-bg);
    border: 1px solid var(--site-border);
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.site-public .clear-filter {
    font-size: 12px;
    color: var(--site-accent);
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

body.site-public .events-page-wrapper .tag-filter-info {
    background: var(--site-card-bg) !important;
    color: #666 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

body.site-public .events-page-wrapper .tag-filter-info .clear-filter {
    color: var(--site-accent) !important;
}

/* =================================================================
   UNIFIED LAYOUT – всички страници освен gallery list (full bleed)
   site-content-shell  → ширина + отстояние от header
   site-content-panel  → бял панел със съдържание
   ================================================================= */
.site-content-shell,
body.site-public .articles-page-wrapper,
body.site-public .competitions-page-wrapper,
body.site-public .events-page-wrapper,
body.site-public .contacts-page-wrapper,
body.site-public .donations-page-wrapper,
body.site-public .video-page-wrapper,
body.site-public .streame-page-wrapper,
body.site-public .gallery-detail-page-wrapper,
body.site-public .site-account-page-wrapper,
body.site-public .site-search-page-wrapper,
body.site-public.page-publication-detail .articles-page-wrapper,
body.site-public.page-publication-detail .competitions-page-wrapper,
body.site-public.page-publication-detail .events-page-wrapper {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--site-content-max);
    min-height: auto;
    margin-left: auto;
    margin-right: auto;
    padding: var(--site-shell-padding-y) var(--site-gutter) var(--site-shell-padding-bottom);
    background: transparent !important;
}

.site-content-panel,
body.site-public .articles-layout,
body.site-public .competitions-page-wrapper .articles-layout,
body.site-public .articles-page-wrapper .articles-layout,
body.site-public .events-page-wrapper .articles-layout,
body.site-public .events-page-wrapper .events-list-wrapper,
body.site-public .events-page-wrapper .single-event-wrapper,
body.site-public .site-account-layout,
body.site-public .contacts-container,
body.site-public .donations-container,
body.site-public.page-gallery-detail .gallery-detail-layout,
body.site-public.page-publication-detail .publication-detail-layout,
body.site-public.page-video-list .video-page-layout,
body.site-public.page-video-detail .video-detail-layout,
body.site-public.page-streame .streame-page-layout,
body.site-public.page-search .site-search-page {
    box-sizing: border-box;
    margin: 0 !important;
    padding: var(--site-panel-padding) !important;
    background-color: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(3px);
    border: 1px solid var(--site-border);
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.site-content-panel--columns,
body.site-public .articles-layout,
body.site-public .competitions-page-wrapper .articles-layout,
body.site-public .articles-page-wrapper .articles-layout,
body.site-public .events-page-wrapper .articles-layout,
body.site-public .events-page-wrapper .events-list-wrapper,
body.site-public .events-page-wrapper .single-event-wrapper,
body.site-public .site-account-layout,
body.site-public.page-gallery-detail .gallery-detail-layout,
body.site-public.page-publication-detail .publication-detail-layout,
body.site-public.page-video-list .video-page-layout,
body.site-public.page-video-detail .video-detail-layout,
body.site-public.page-streame .streame-page-layout {
    display: grid !important;
    max-width: none !important;
    grid-template-columns: minmax(0, 1fr) var(--site-sidebar-width) !important;
    gap: var(--site-layout-gap) !important;
    align-items: start;
}

body.site-public .site-content-shell > .page-title,
body.site-public .site-content-shell > .filter-indicator,
body.site-public .site-content-shell > .tag-filter-info {
    margin-top: 0;
    margin-bottom: var(--site-layout-gap);
}

body.site-public .site-content-panel > .page-title {
    margin-top: 0;
    margin-bottom: var(--site-layout-gap);
    padding: 0;
}

/* Gallery list – full viewport width, 5 columns on desktop */
body.site-public.page-gallery-list .gallery-page--joomla {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 !important;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--site-border);
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

body.site-public.page-gallery-list .gallery-cat-nav,
body.site-public.page-gallery-list .gallery-list-meta {
    margin: 0;
    padding-left: var(--gallery-album-inset);
    padding-right: var(--gallery-album-inset);
    background: #fff;
    border-radius: 0;
    border-left: none;
    border-right: none;
}

body.site-public.page-gallery-list .gallery-container--joomla {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: var(--gallery-album-inset) !important;
    background: transparent;
    box-sizing: border-box;
}

body.site-public.page-gallery-list .gallery--joomla.gallery--mosaic {
    width: 100%;
}

body.site-public.page-gallery-list .gallery-pagination--joomla {
    margin-top: var(--gallery-mosaic-gap);
    padding: 0;
    justify-content: center;
}

body.site-public .page-title {
    padding: 14px 16px 10px;
    margin: 0 0 12px;
    text-align: left;
    background: var(--site-card-bg);
    border: 1px solid var(--site-border);
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.site-public .page-title h1 {
    margin: 0 0 4px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

body.site-public .page-title p {
    margin: 0;
    font-size: 12px;
    color: #888;
}

/* —— Two-column layout: sidebar sticky (grid in unified layout above) —— */
body.site-public .events-page-wrapper .events-grid {
    gap: 16px !important;
    margin-bottom: 16px !important;
}

body.site-public .articles-main,
body.site-public .publication-detail-main,
body.site-public .site-account-main {
    min-width: 0;
}

/* —— Unified sidebar: panel = stack без рамка, widget = card (като streame) —— */
body.site-public .streame-sidebar-panel,
body.site-public .publication-sidebar-panel,
body.site-public .gallery-sidebar-panel,
body.site-public .video-sidebar-panel,
body.site-public .site-account-sidebar-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    box-sizing: border-box;
}

body.site-public .streame-sidebar-widget,
body.site-public .publication-sidebar-widget,
body.site-public .gallery-sidebar-widget,
body.site-public .video-sidebar-widget,
body.site-public .site-account-sidebar-widget {
    padding: 10px 12px !important;
    margin: 0 !important;
    background: #fff !important;
    border: 1px solid var(--site-border) !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    box-sizing: border-box;
}

body.site-public .publication-sidebar-widget--categories,
body.site-public .gallery-sidebar-widget--categories,
body.site-public .video-sidebar-widget--categories,
body.site-public .publication-sidebar-widget:not(.publication-sidebar-widget--feed),
body.site-public .gallery-sidebar-widget--tags,
body.site-public .video-sidebar-widget--tags {
    padding: 10px 12px !important;
}

body.site-public .articles-sidebar,
body.site-public .publication-sidebar,
body.site-public .gallery-sidebar,
body.site-public .streame-sidebar,
body.site-public .video-sidebar,
body.site-public .site-account-sidebar {
    position: sticky !important;
    top: 72px !important;
    align-self: start !important;
    width: auto !important;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.site-public .streame-sidebar .widget-title,
body.site-public .publication-sidebar .widget-title,
body.site-public .gallery-sidebar .widget-title,
body.site-public .video-sidebar .widget-title,
body.site-public .site-account-sidebar .widget-title {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: #374151 !important;
    letter-spacing: 0.01em;
}

body.site-public .publication-sidebar .widget-title i,
body.site-public .gallery-sidebar .widget-title i,
body.site-public .video-sidebar .widget-title i {
    font-size: 0.78rem !important;
    color: var(--site-accent) !important;
    opacity: 0.95;
}

body.site-public .streame-sidebar .tag-actions,
body.site-public .publication-sidebar .tag-actions,
body.site-public .gallery-sidebar .tag-actions,
body.site-public .video-sidebar .tag-actions {
    padding: 0 !important;
    border-top: none !important;
    margin: 0 0 8px !important;
}

/* —— Sidebar: категории и тагове (компактни бутони) —— */
body.site-public .gallery-category-list,
body.site-public .video-category-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.site-public .gallery-category-link,
body.site-public .video-category-link {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    padding: 4px 8px !important;
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
    color: #4b5563 !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
}

body.site-public .gallery-category-link.is-child,
body.site-public .video-category-link.is-child {
    padding-left: 14px !important;
    font-size: 0.74rem !important;
    color: #6b7280 !important;
}

body.site-public .gallery-category-link:hover,
body.site-public .video-category-link:hover {
    background: #f3f4f6 !important;
    color: #1f2937 !important;
    border-color: #e5e7eb !important;
    transform: none !important;
    box-shadow: none !important;
}

body.site-public .gallery-category-link.active,
body.site-public .video-category-link.active {
    background: #e8f4f8 !important;
    color: #0d6b72 !important;
    border-color: #b8dde0 !important;
    font-weight: 600 !important;
}

body.site-public .video-category-count,
body.site-public .gallery-category-link .tag-count {
    flex-shrink: 0;
    font-size: 0.68rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    padding: 1px 5px !important;
    border-radius: 3px !important;
    background: #f1f3f5 !important;
    color: #6b7280 !important;
}

body.site-public .gallery-category-link.active .tag-count,
body.site-public .video-category-link.active .video-category-count {
    background: rgba(13, 107, 114, 0.12) !important;
    color: #0d6b72 !important;
}

body.site-public .tags-cloud {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.site-public .tag-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 3px 7px !important;
    font-size: 0.74rem !important;
    line-height: 1.35 !important;
    font-weight: 500 !important;
    color: #4b5563 !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    border: 1px solid #e5e7eb !important;
    background: #f9fafb !important;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
    transform: none !important;
    box-shadow: none !important;
}

body.site-public .tag-link:hover {
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
    color: #1f2937 !important;
    transform: none !important;
    box-shadow: none !important;
}

body.site-public .tag-link.active {
    background: var(--site-accent) !important;
    border-color: var(--site-accent) !important;
    color: #fff !important;
    font-weight: 600 !important;
}

body.site-public .tag-count {
    font-size: 0.65rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    padding: 1px 4px !important;
    border-radius: 3px !important;
    background: rgba(0, 0, 0, 0.06) !important;
    color: inherit !important;
    opacity: 0.9;
}

body.site-public .tag-link.active .tag-count {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #fff !important;
    opacity: 1;
}

body.site-public .all-tags-link {
    display: inline-flex !important;
    align-items: center !important;
    padding: 4px 8px !important;
    font-size: 0.74rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    color: #4b5563 !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    border: 1px solid #e5e7eb !important;
    background: #f9fafb !important;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
    transform: none !important;
    box-shadow: none !important;
}

body.site-public .all-tags-link:hover,
body.site-public .all-tags-link.active {
    background: var(--site-accent) !important;
    border-color: var(--site-accent) !important;
    color: #fff !important;
    transform: none !important;
    box-shadow: none !important;
}

body.site-public .publication-sidebar .no-tags,
body.site-public .gallery-sidebar .no-tags,
body.site-public .video-sidebar .no-tags {
    margin: 0 !important;
    padding: 6px 0 2px !important;
    font-size: 0.74rem !important;
    font-style: normal !important;
    text-align: left !important;
    color: #9ca3af !important;
}

/* —— List empty state (blog, events, video) —— */
body.site-public .publication-list-empty,
body.site-public .video-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: min(320px, 50vh);
    padding: 72px 24px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--site-border);
    border-radius: 4px;
}

body.site-public .publication-list-empty i,
body.site-public .video-empty i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 16px;
}

body.site-public .publication-list-empty h2,
body.site-public .video-empty h2 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #444;
}

body.site-public .publication-list-empty p,
body.site-public .video-empty p {
    margin: 0;
    max-width: 28em;
    color: #777;
    line-height: 1.5;
}

body.site-public .publication-list-empty__clear {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4f46e5;
    text-decoration: none;
    border: 1px solid rgba(79, 70, 229, 0.35);
    border-radius: 999px;
    background: #fff;
}

body.site-public .publication-list-empty__clear:hover {
    color: #fff;
    background: #4f46e5;
    text-decoration: none;
}

body.site-public .sidebar-widget:not(.competitions-sidebar-widget):not(.gallery-sidebar-widget):not(.publication-sidebar-widget):not(.video-sidebar-widget):not(.streame-sidebar-widget):not(.site-account-sidebar-widget),
body.site-public .sidebar-section {
    padding: 14px 16px !important;
    margin-bottom: 12px !important;
    border-radius: 4px !important;
    background: #fafbfc !important;
    border: 1px solid var(--site-border) !important;
    box-shadow: none !important;
}

body.site-public .widget-title,
body.site-public .sidebar-section h3 {
    font-size: 0.82rem !important;
    margin-bottom: 8px !important;
}

/* (tags-cloud / tag-link / all-tags-link: виж блока „Sidebar: категории и тагове“ по-горе) */

/* —— List cards (articles, competitions, events list) —— */
body.site-public .articles-main {
    display: flex;
    flex-direction: column;
    gap: 0;
}

body.site-public .publication-list-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eceff1;
}

body.site-public .publication-list-header .article-title {
    flex: 1 1 auto;
    min-width: min(100%, 220px);
    margin: 0 !important;
    font-family: Georgia, "Times New Roman", "Segoe UI", serif;
    font-size: clamp(1.1rem, 2vw, 1.35rem) !important;
    font-weight: 700 !important;
    line-height: 1.25;
    color: #1a2a3a !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

body.site-public .publication-list-header .article-title a {
    text-transform: none !important;
    letter-spacing: normal !important;
    color: inherit !important;
}

body.site-public .publication-list-meta {
    flex: 0 1 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 14px;
    margin-bottom: 0 !important;
}

body.site-public .publication-list-meta .article-date,
body.site-public .publication-list-meta .article-location,
body.site-public .publication-list-meta .article-author {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

body.site-public .article-excerpt {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.5;
    color: #555;
}

body.site-public .article-card,
body.site-public .competition-card,
body.site-public .event-card {
    background: var(--site-card-bg) !important;
    border: 1px solid var(--site-border) !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06) !important;
    margin-bottom: 20px !important;
    overflow: hidden;
}

body.site-public .article-card:last-child,
body.site-public .competition-card:last-child,
body.site-public .event-card:last-child {
    margin-bottom: 0 !important;
}

body.site-public .article-card:hover,
body.site-public .competition-card:hover,
body.site-public .event-card:hover {
    transform: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    border-color: #cfd6dc !important;
}

body.site-public .article-image {
    width: 100%;
    height: auto;
    max-height: 320px;
    overflow: hidden;
    border-bottom: 1px solid var(--site-border);
}

body.site-public .article-image img {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: cover;
    display: block;
    transform: none !important;
}

body.site-public .article-card:hover .article-image img {
    transform: none !important;
}

body.site-public .article-title a,
body.site-public .competition-title a,
body.site-public .event-title a {
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #333 !important;
}

body.site-public .article-content,
body.site-public .competition-content,
body.site-public .event-content {
    padding: 16px 18px !important;
}

body.site-public .article-meta,
body.site-public .competition-meta,
body.site-public .event-meta {
    font-size: 11px !important;
    color: #888 !important;
}

body.site-public .read-more-btn,
body.site-public .event-card-footer .read-more-btn {
    display: inline-block;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 8px 14px !important;
    color: #fff !important;
    background: var(--site-accent) !important;
    border-radius: 2px;
    text-decoration: none;
    transition: background 0.15s;
}

body.site-public .read-more-btn:hover {
    background: var(--site-accent-hover) !important;
    color: #fff !important;
}

body.site-public .category-tag,
body.site-public .event-category {
    background: var(--site-accent) !important;
    color: #fff !important;
    padding: 3px 10px !important;
    border-radius: 2px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
}

body.site-public .article-footer,
body.site-public .event-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

/* —— Single post / detail —— */
body.site-public .standard-button {
    padding: 6px 14px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    border: 1px solid #7eb8d8 !important;
    border-radius: 4px !important;
    color: #555 !important;
    background: #fff !important;
    box-shadow: none !important;
    transform: none !important;
}

body.site-public .standard-button:hover {
    background: #7eb8d8 !important;
    color: #fff !important;
    border-color: #7eb8d8 !important;
    transform: none !important;
    box-shadow: none !important;
}

body.site-public .single-article,
body.site-public .single-event {
    padding: 12px 14px !important;
    border-radius: 6px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
    margin-bottom: 8px;
}

body.site-public .single-article-title,
body.site-public .event-title {
    font-size: 1.35rem !important;
}

body.site-public .related-articles,
body.site-public .related-competitions {
    margin-top: 12px !important;
    padding: 12px !important;
    border-radius: 6px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
}

body.site-public .related-title {
    font-size: 0.95rem !important;
    margin-bottom: 10px !important;
}

body.site-public .related-grid {
    gap: 8px !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

/* —— Contacts & donations —— */
body.site-public .contacts-container {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: var(--site-card-bg);
    border: 1px solid var(--site-border);
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

body.site-public .donations-container {
    max-width: none !important;
    margin: 0 !important;
    padding: 28px 32px !important;
    background: var(--site-card-bg);
    border: 1px solid var(--site-border);
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

body.site-public .contact-info-card,
body.site-public .social-card {
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none;
    border-bottom: 1px solid var(--site-border);
}

/* —— Video embed container (не streame .video-container – виж streame-player.css) —— */
body.site-public .streame-container {
    padding: 16px 18px !important;
    max-width: none !important;
    background: var(--site-card-bg);
    border: 1px solid var(--site-border);
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

body.site-public .video-sidebar,
body.site-public .sidebar-section {
    border-radius: 6px !important;
}

/* —— Pagination (blog, events, competitions, video) —— */
body.site-public .articles-pagination,
body.site-public .gallery-pagination--joomla {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 24px;
    padding: 0;
}

body.site-public .pagination-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #fff;
    color: #4f46e5;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.75rem;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    border: 1px solid var(--site-border, #e5e7eb);
    flex-shrink: 0;
}

body.site-public .pagination-arrow:hover {
    background: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
    text-decoration: none;
}

body.site-public .pagination-arrow.disabled {
    background: #f9fafb;
    color: #d1d5db;
    cursor: default;
    border-color: #eef0f2;
}

body.site-public .pagination-arrow.disabled:hover {
    background: #f9fafb;
    color: #d1d5db;
    border-color: #eef0f2;
}

body.site-public .pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    background: #fff;
    color: #374151;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8125rem;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    border: 1px solid var(--site-border, #e5e7eb);
    box-shadow: none;
    flex-shrink: 0;
}

body.site-public .pagination-number:hover {
    background: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
    text-decoration: none;
}

body.site-public .pagination-number.active {
    background: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
}

body.site-public .pagination-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 32px;
    color: #9ca3af;
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 0 2px;
    flex-shrink: 0;
}

body.site-public .pagination:not(.articles-pagination) {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

body.site-public .pagination:not(.articles-pagination) .page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--site-border, #e5e7eb);
    border-radius: 6px;
    background: #fff;
    color: #374151;
    font-weight: 600;
    cursor: pointer;
}

body.site-public .pagination:not(.articles-pagination) .page-btn.active,
body.site-public .pagination:not(.articles-pagination) .page-btn:hover:not(.disabled) {
    background: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
}

body.site-public .pagination:not(.articles-pagination) .page-btn.disabled {
    opacity: 0.45;
    cursor: default;
}

body.site-public .gallery-pagination--joomla a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    background: #fff;
    color: #374151;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8125rem;
    border: 1px solid var(--site-border, #e5e7eb);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body.site-public .gallery-pagination--joomla a:hover,
body.site-public .gallery-pagination--joomla a.active {
    background: #4f46e5;
    color: #fff;
    border-color: #4f46e5;
    text-decoration: none;
}

/* —— Gallery detail (shell/panel: unified layout) —— */
body.site-public.page-gallery-detail header {
    padding: 8px 0;
}

body.site-public.page-gallery-detail .gallery-detail-main {
    min-width: 0;
}

/* gallery sidebar: unified panel/widget above */

/* —— Streame (детайл grid placement; shell/panel: unified layout) —— */
body.site-public.page-streame .streame-page-wrapper > .streame-page-layout {
    width: 100%;
    max-width: 100% !important;
    margin: 0 !important;
}

body.site-public.page-streame .streame-page-main {
    min-width: 0;
    margin: 0;
    padding: 0;
}

body.site-public.page-streame .streame-page-main > :first-child {
    margin-top: 0 !important;
}

body.site-public.page-streame .streame-page-wrapper .main-container,
body.site-public.page-streame .streame-page-wrapper .video-container,
body.site-public.page-streame .streame-page-wrapper .tab-container,
body.site-public.page-streame .streame-page-wrapper .event-header,
body.site-public.page-streame .streame-page-wrapper .stream-notice,
body.site-public.page-streame .streame-page-wrapper .competitions-landing,
body.site-public.page-streame .streame-page-wrapper .competitions-list,
body.site-public.page-streame .streame-page-wrapper #programBlock,
body.site-public.page-streame .streame-page-wrapper #startListContainer,
body.site-public.page-streame .streame-page-wrapper .owncast-stream-frame {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
}

body.site-public.page-streame .streame-page-wrapper .competitions-landing,
body.site-public.page-streame .streame-page-wrapper .main-container,
body.site-public.page-streame .streame-page-wrapper #programBlock,
body.site-public.page-streame .streame-page-wrapper #rankingContainer,
body.site-public.page-streame .streame-page-wrapper #startListContainer {
    margin-top: 0 !important;
    margin-bottom: 12px;
}

/* Детайл: sidebar първи в DOM (мобилен ред), визуално вдясно на десктоп */
body.site-public.page-streame .streame-page-layout--detail {
    grid-template-columns: minmax(0, 1fr) var(--site-sidebar-width) !important;
}

body.site-public.page-streame .streame-page-layout--detail > .streame-page-main {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
}

body.site-public.page-streame .streame-page-layout--detail > .streame-sidebar {
    grid-column: 2;
    grid-row: 1;
}

body.site-public.page-streame .streame-sidebar {
    margin-top: 0 !important;
}

/* streame sidebar panel/widget: unified rules above */

body.site-public.page-streame .streame-sidebar-logo {
    display: block;
    max-width: 120px;
    max-height: 48px;
    width: auto;
    height: auto;
    margin-bottom: 10px;
    object-fit: contain;
}

body.site-public.page-streame .streame-sidebar-logo--competition {
    max-width: 100%;
    max-height: 72px;
    width: auto;
    height: auto;
    margin: 0 auto 12px;
    object-fit: contain;
}

body.site-public.page-streame .streame-sidebar-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
    border-radius: 8px;
    background: #eef2f6;
    color: #7a8699;
    font-size: 1.6rem;
}

body.site-public.page-streame .streame-sidebar-title,
body.site-public.page-streame .streame-sidebar-event-name {
    margin: 0 0 8px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #222 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1.35 !important;
    text-align: center;
}

body.site-public.page-streame .streame-sidebar-tagline,
body.site-public.page-streame .streame-sidebar-meta,
body.site-public.page-streame .streame-sidebar-country,
body.site-public.page-streame .streame-sidebar-organizer {
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.45;
    color: #666;
}

body.site-public.page-streame .streame-sidebar-country {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
}

body.site-public.page-streame .streame-sidebar-country .flag-icon {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
}

body.site-public.page-streame .streame-sidebar-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 12px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    border: 1px solid rgba(79, 70, 229, 0.35);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.28);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

body.site-public.page-streame .streame-sidebar-back:hover {
    color: #fff;
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
    transform: translateY(-1px);
}

body.site-public.page-streame .streame-sidebar-back i {
    font-size: 0.9em;
}

body.site-public.page-streame .streame-sidebar-status {
    display: inline-block;
    margin: 0 0 10px;
}

body.site-public.page-streame .streame-sidebar-widget--event {
    text-align: center;
}

body.site-public.page-streame .streame-sidebar-widget--event .streame-sidebar-back {
    display: flex;
    margin-bottom: 16px;
    text-align: center;
}

body.site-public.page-streame .streame-sidebar-widget--event .streame-sidebar-meta,
body.site-public.page-streame .streame-sidebar-widget--event .streame-sidebar-organizer {
    text-align: center;
}

body.site-public.page-streame .streame-sidebar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.site-public.page-streame .streame-sidebar-actions .btn-header {
    margin: 0;
}

body.site-public .sidebar-media-feed .streame-sidebar-feed-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px !important;
    font-size: 0.92rem !important;
}

body.site-public .sidebar-media-feed .streame-sidebar-feed-title i {
    color: #64748b;
    font-size: 0.85rem;
}

body.site-public .sidebar-media-feed .streame-sidebar-feed-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

body.site-public .sidebar-media-feed .streame-sidebar-feed-item {
    display: flex;
    gap: 8px;
    padding: 6px;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

body.site-public .sidebar-media-feed .streame-sidebar-feed-item:hover {
    background: #f1f5f9;
}

body.site-public .sidebar-media-feed .streame-sidebar-feed-item__thumb {
    width: 72px;
    min-width: 72px;
    aspect-ratio: 16 / 9;
    border-radius: 4px;
    overflow: hidden;
    background: #0f172a;
}

body.site-public .sidebar-media-feed .streame-sidebar-feed-item__thumb img,
body.site-public .sidebar-media-feed .streame-sidebar-feed-item__thumb-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.site-public .sidebar-media-feed .streame-sidebar-feed-item__thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #334155;
    font-size: 0.85rem;
}

body.site-public .sidebar-media-feed .streame-sidebar-feed-item__info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

body.site-public .sidebar-media-feed .streame-sidebar-feed-item__title {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.35;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.site-public.page-streame .streame-sidebar-feed-item--competition .streame-sidebar-feed-item__title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    -webkit-line-clamp: unset;
    overflow: visible;
}

body.site-public.page-streame .streame-sidebar-feed-item__flag .flag-icon {
    width: 16px;
    height: 12px;
}

body.site-public.page-streame .streame-sidebar-feed-item__live {
    display: inline-block;
    padding: 1px 5px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

body.site-public .sidebar-media-feed .streame-sidebar-feed-item__meta {
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.3;
}

body.site-public .sidebar-media-feed .streame-sidebar-feed-more {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

body.site-public .sidebar-media-feed .streame-sidebar-feed-more:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

body.site-public.page-streame .streame-sidebar-cms-link,
body.site-public.page-streame .streame-sidebar-feed-cms-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

body.site-public.page-streame .streame-sidebar-feed-item-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

body.site-public.page-streame .streame-sidebar-feed-cms-link {
    align-self: flex-end;
    margin-top: 0;
    margin-bottom: 6px;
    padding-right: 4px;
    font-size: 0.72rem;
}

body.site-public.page-streame .streame-sidebar-cms-link:hover,
body.site-public.page-streame .streame-sidebar-feed-cms-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

@media (max-width: 900px) {
    body.site-public.page-streame .streame-page-layout {
        grid-template-columns: 1fr !important;
    }

    body.site-public.page-streame .streame-page-layout--detail > .streame-page-main,
    body.site-public.page-streame .streame-page-layout--detail > .streame-sidebar {
        grid-column: 1;
    }

    body.site-public.page-streame .streame-sidebar {
        position: static !important;
        top: auto !important;
    }

    body.site-public.page-streame .streame-sidebar-panel {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    body.site-public .sidebar-media-feed .streame-sidebar-feed-item__thumb {
        width: 56px;
        min-width: 56px;
        height: 40px;
    }
}

body.site-public.page-streame-detail .streame-page-layout {
    overflow-x: clip;
}

/* —— Video list (sidebar grid) —— */
body.site-public.page-video-list .video-page-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) var(--site-sidebar-width) !important;
    gap: var(--site-layout-gap) !important;
    align-items: start;
}

/* video sidebar: unified panel/widget rules above */

/* —— Unified publication detail (competitions / blog / events) —— */
body.site-public.page-publication-detail .publication-detail-page-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

body.site-public.page-publication-detail .publication-detail-main {
    min-width: 0;
}

body.site-public.page-publication-detail .publication-detail {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
    overflow: visible;
}

body.site-public .publication-streame-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 4px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

body.site-public .publication-streame-link:hover {
    background: #1d4ed8;
    color: #fff;
    text-decoration: none;
}

body.site-public .publication-streame-embed {
    margin: 0 0 20px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--site-border, #e2e6ea);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

body.site-public .publication-streame-embed__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

body.site-public .publication-streame-embed__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.site-public .publication-streame-embed__full-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    white-space: nowrap;
}

body.site-public .publication-streame-embed__full-link:hover {
    text-decoration: underline;
}

body.site-public .publication-streame-embed__player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0f172a;
    border-radius: 8px;
    overflow: hidden;
}

body.site-public .publication-streame-embed__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

body.site-public .publication-streame-embed__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
}

body.site-public .publication-streame-embed__overlay[hidden] {
    display: none !important;
}

body.site-public .publication-streame-embed__banner {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

body.site-public .publication-streame-embed__notice {
    margin: 10px 0 0;
    font-size: 0.78rem;
    color: #64748b;
}

body.site-public .publication-sidebar .publication-sidebar-widget {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

body.site-public .gallery-sidebar-widget--tags,
body.site-public .video-sidebar-widget--tags {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

body.site-public.page-publication-detail .publication-sidebar .publication-sidebar-widget {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

body.site-public.page-publication-detail .publication-sidebar .tags-cloud {
    flex: 1 1 auto;
    min-height: 0;
}

body.site-public.page-competitions .article-meta .article-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: #666;
}

/* —— Mobile —— */
@media (max-width: 992px) {
    .site-content-panel--columns,
    body.site-public .articles-layout,
    body.site-public .competitions-page-wrapper .articles-layout,
    body.site-public .events-page-wrapper .articles-layout,
    body.site-public .site-account-layout,
    body.site-public.page-streame .streame-page-layout,
    body.site-public.page-gallery-detail .gallery-detail-layout,
    body.site-public.page-publication-detail .publication-detail-layout,
    body.site-public.page-video-list .video-page-layout,
    body.site-public.page-video-detail .video-detail-layout {
        grid-template-columns: 1fr !important;
    }

    body.site-public .publication-list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    body.site-public .publication-list-meta {
        justify-content: flex-start;
        width: 100%;
    }

    body.site-public .articles-main,
    body.site-public .publication-detail-main,
    body.site-public .site-account-main,
    body.site-public .gallery-detail-main,
    body.site-public .video-page-main,
    body.site-public .streame-page-main {
        order: 1;
    }

    body.site-public .articles-sidebar,
    body.site-public .events-sidebar,
    body.site-public .publication-sidebar,
    body.site-public .gallery-sidebar,
    body.site-public .video-sidebar,
    body.site-public .streame-sidebar,
    body.site-public .site-account-sidebar {
        position: static !important;
        top: auto !important;
        order: 2;
    }

    body.site-public.page-publication-detail .publication-detail-layout {
        grid-template-columns: 1fr !important;
    }

    body.site-public .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* —— Mobile header (hamburger) —— */
body.site-public .site-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 1px solid #e2e6ea;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-size: 1.15rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.site-public .site-nav-toggle:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

body.site-public .site-nav-toggle__icon--close {
    display: none;
}

body.site-public.site-nav-open .site-nav-toggle__icon--open {
    display: none;
}

body.site-public.site-nav-open .site-nav-toggle__icon--close {
    display: inline;
}

@media (max-width: 900px) {
    :root {
        --site-gutter: 14px;
        --site-shell-padding-y: 14px;
        --site-shell-padding-bottom: 24px;
        --site-panel-padding: 12px;
    }

    body.site-public header {
        padding: 8px 0;
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    body.site-public.site-nav-open header {
        position: relative;
        top: auto;
        z-index: auto;
    }

    body.site-public .header-inner {
        gap: 8px 12px;
        align-items: center;
        flex-wrap: wrap;
    }

    body.site-public header .logo {
        order: 1;
        margin-right: 0;
        min-width: 0;
        flex: 1 1 auto;
    }

    body.site-public .site-nav-toggle {
        display: inline-flex;
        order: 2;
        position: relative;
        z-index: 1;
    }

    body.site-public header .right-section {
        order: 3;
        display: none;
        flex-basis: 100%;
        width: 100%;
        margin-left: 0 !important;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding-top: 10px;
        border-top: 1px solid #ebebeb;
        background: #fff;
        box-sizing: border-box;
    }

    body.site-public.site-nav-open header .right-section {
        display: flex;
    }

    body.site-public .logo-image {
        height: 44px;
    }

    body.site-public .logo h1 {
        font-size: 18px;
    }

    body.site-public .tagline {
        display: none;
    }

    body.site-public header nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }

    body.site-public header nav a {
        padding: 11px 4px;
        font-size: 13px;
        letter-spacing: 0.04em;
        border-bottom: 1px solid #f1f3f5;
    }

    body.site-public header nav a:last-child {
        border-bottom: none;
    }

    body.site-public header nav a.active::after {
        display: none;
    }

    body.site-public header nav a.active {
        color: var(--site-accent-hover);
        font-weight: 700;
    }

    body.site-public .search-container {
        width: 100%;
        justify-content: stretch;
    }

    body.site-public .search-form,
    body.site-public .search-input-wrapper {
        width: 100%;
    }

    body.site-public .search-input {
        width: 100%;
        min-width: 0;
        flex: 1;
    }

    body.site-public .search-input:focus {
        width: 100%;
    }

    body.site-public .site-content-shell,
    body.site-public .articles-page-wrapper,
    body.site-public .competitions-page-wrapper,
    body.site-public .events-page-wrapper,
    body.site-public .contacts-page-wrapper,
    body.site-public .donations-page-wrapper,
    body.site-public .video-page-wrapper,
    body.site-public .streame-page-wrapper,
    body.site-public .gallery-detail-page-wrapper,
    body.site-public .site-search-page-wrapper,
    body.site-public .site-account-page-wrapper {
        padding: var(--site-shell-padding-y) var(--site-gutter) var(--site-shell-padding-bottom);
    }

    body.site-public .site-content-panel,
    body.site-public.page-streame .streame-page-layout,
    body.site-public.page-video-list .video-page-layout,
    body.site-public.page-video-detail .video-detail-layout {
        padding: var(--site-panel-padding) !important;
    }

    body.site-public.page-streame .streame-page-layout {
        gap: 12px !important;
    }

    body.site-public.page-streame .streame-page-layout--list > .streame-sidebar {
        order: -1;
    }

    body.site-public.page-streame-detail .streame-sidebar {
        display: none !important;
    }

    body.site-public.page-streame-detail .streame-page-layout {
        padding: var(--site-panel-padding) !important;
        gap: 0 !important;
    }
}

@media (max-width: 480px) {
    :root {
        --site-gutter: 12px;
        --site-panel-padding: 10px;
    }

    body.site-public .related-grid {
        grid-template-columns: 1fr !important;
    }
}

.multi-media-section {
    margin: 2rem 0;
    clear: both;
}

.multi-media-section-title {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    color: #2c3e50;
    font-weight: 700;
    border-bottom: 2px solid #e8edf2;
    padding-bottom: 0.5rem;
}

.multi-media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.multi-media-grid .multi-media-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 14px;
    background: #fff;
    border: 2px solid #3498db;
    border-radius: 8px;
    color: #2980b9;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    word-break: break-word;
    transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.08);
}

.multi-media-grid .multi-media-btn:hover {
    background: #3498db;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.25);
}

@media (max-width: 900px) {
    .multi-media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .multi-media-grid {
        grid-template-columns: 1fr;
    }
}

/* Multi публикации — компактни имена (без рамки), плътна таблица */
.publication-content--multi .multi-media-section {
    margin: 0.35rem 0 0.55rem;
    clear: both;
}

.publication-content--multi .multi-media-section:first-child {
    margin-top: 0.1rem;
}

.publication-content--multi .multi-media-section:last-child {
    margin-bottom: 0.1rem;
}

.publication-content--multi .multi-media-section-title {
    margin: 0 0 0.2rem;
    padding-bottom: 0.15rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #2c3e50;
    border-bottom: 1px solid #e3e8ee;
}

.publication-content--multi .multi-media-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem 1.25rem;
    margin: 0 0 0.35rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #e3e8ee;
}

.publication-content--multi .multi-media-section-head--search-only {
    justify-content: flex-end;
}

.publication-content--multi .multi-media-section-head .multi-media-section-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: none;
}

.publication-content--multi .multi-media-section-head .multi-media-participant-search-field {
    flex: 0 1 min(100%, 300px);
    width: min(100%, 300px);
    min-width: 11rem;
}

.publication-content--multi > p,
.publication-content--multi .multi-media-section + p {
    margin: 0.25rem 0;
    line-height: 1.4;
}

.publication-content--multi .multi-media-table-wrap {
    margin: 0.65rem 0 1rem;
    padding: 0;
    border: 1px solid #d5dee8;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 14px rgba(44, 62, 80, 0.07);
    overflow: hidden;
}

.publication-content--multi .multi-media-participant-search-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.publication-content--multi .multi-media-participant-search-field {
    position: relative;
    display: flex;
    align-items: center;
}

.publication-content--multi .multi-media-participant-search-icon {
    position: absolute;
    left: 0.7rem;
    z-index: 1;
    color: #94a3b8;
    font-size: 0.8rem;
    pointer-events: none;
}

.publication-content--multi .multi-media-participant-search-input {
    width: 100%;
    padding: 0.5rem 2.1rem 0.5rem 2rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #1e293b;
    font-size: 0.8125rem;
    line-height: 1.35;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.publication-content--multi .multi-media-participant-search-input:focus {
    outline: none;
    border-color: #7eb8d8;
    box-shadow: 0 0 0 3px rgba(126, 184, 216, 0.25);
}

.publication-content--multi .multi-media-participant-search-input::placeholder {
    color: #94a3b8;
}

.publication-content--multi .multi-media-participant-search-clear {
    position: absolute;
    right: 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
}

.publication-content--multi .multi-media-participant-search-clear:hover {
    background: #e2e8f0;
    color: #334155;
}

.publication-content--multi .multi-media-participant-search-status {
    margin: -0.15rem 0 0.45rem;
    min-height: 1rem;
    font-size: 0.75rem;
    color: #64748b;
}

.publication-content--multi .multi-media-participant-search-status.is-empty {
    color: #b45309;
    font-weight: 600;
}

.publication-content--multi .multi-media-table--links td.is-participant-filter-hidden {
    display: none;
}

.publication-content--multi .multi-media-table--links tr.is-participant-filter-hidden {
    display: none;
}

.publication-content--multi .multi-media-table--links {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 12.5px;
    line-height: 1.35;
}

.publication-content--multi .multi-media-table--links td {
    padding: 0;
    border: 1px solid #e6ecf2;
    vertical-align: middle;
    width: 20%;
    background: #fff;
    transition: background 0.15s ease;
}

.publication-content--multi .multi-media-table--links tbody tr:nth-child(even) td {
    background: #f8fafc;
}

.publication-content--multi .multi-media-table--links tbody tr:hover td {
    background: #f0f6fc;
}

.publication-content--multi .multi-media-table--links td:empty {
    background: #fafbfc;
}

.publication-content--multi .multi-media-name-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem;
    min-height: 2.75rem;
    padding: 0.5rem 0.65rem;
    color: #2563a8;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    text-decoration: none;
    word-break: break-word;
    hyphens: auto;
    transition: color 0.15s ease, background 0.15s ease;
}

.publication-content--multi .multi-media-name-link--with-thumb {
    min-height: 3rem;
    padding: 0.35rem 0.5rem;
}

.publication-content--multi .multi-media-table-wrap.is-thumbs-loading {
    position: relative;
}

.publication-content--multi .multi-media-table-wrap.is-thumbs-loading::before {
    content: 'Зареждане на снимки...';
    display: block;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.publication-content--multi .multi-media-name-link__thumb-wrap {
    position: relative;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    background: #e8ecf0;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.publication-content--multi .multi-media-name-link__thumb-wrap.is-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #e8ecf0 0%, #f8fafc 45%, #e8ecf0 90%);
    background-size: 200% 100%;
    animation: multi-media-thumb-shimmer 1.1s ease-in-out infinite;
    pointer-events: none;
}

.publication-content--multi .multi-media-name-link__thumb-wrap.is-error::before {
    content: '\f03e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #94a3b8;
}

.publication-content--multi .multi-media-name-link__thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.publication-content--multi .multi-media-name-link__thumb-wrap.is-loaded .multi-media-name-link__thumb {
    opacity: 1;
}

@keyframes multi-media-thumb-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.publication-content--multi .multi-media-name-link__label {
    flex: 1;
    min-width: 0;
}

.publication-content--multi .multi-media-name-link:hover .multi-media-name-link__thumb-wrap {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.publication-content--multi .multi-media-name-link:hover {
    color: #fff;
    background: linear-gradient(135deg, #3b82c4 0%, #2563a8 100%);
    text-decoration: none;
}

.publication-content--multi .multi-media-name-link:focus-visible {
    outline: 2px solid #3b82c4;
    outline-offset: -2px;
}

@media (max-width: 768px) {
    .publication-content--multi .multi-media-section-head {
        flex-wrap: wrap;
        align-items: stretch;
    }

    .publication-content--multi .multi-media-section-head .multi-media-participant-search-field {
        flex: 1 1 100%;
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .publication-content--multi .multi-media-name-link {
        min-height: 2.5rem;
        padding: 0.45rem 0.4rem;
        font-size: 11.5px;
    }

    .publication-content--multi .multi-media-name-link__thumb-wrap {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 420px) {
    .publication-content--multi .multi-media-table--links td {
        display: block;
        width: 100%;
        border-left: none;
        border-right: none;
    }

    .publication-content--multi .multi-media-table--links tr {
        display: block;
    }

    .publication-content--multi .multi-media-table--links td:empty {
        display: none;
    }
}

body.site-public .site-not-found {
    max-width: 720px;
    margin: 3rem auto 4rem;
    padding: 0 1.25rem;
    text-align: center;
}

body.site-public .site-not-found__inner h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #1a1a1a;
}

body.site-public .site-not-found__inner p {
    margin: 0 0 1.5rem;
    color: #555;
    line-height: 1.6;
}

body.site-public .publication-stats {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 0.5rem;
    font-size: 0.875rem;
    color: #666;
}

body.site-public .publication-stats__likes {
    color: #d45c5c;
}

/* —— Site account, follows, notifications —— */
body.site-public .site-header-tools {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

body.site-public .site-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(135deg, #7eb8d8, #5a9fc4);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

body.site-public .site-user-avatar--lg {
    width: 3rem;
    height: 3rem;
    font-size: 1rem;
}

body.site-public .site-user-avatar--xl {
    width: 5.5rem;
    height: 5.5rem;
    font-size: 1.35rem;
}

body.site-public .site-user-avatar__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.site-public .site-user-avatar__initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

body.site-public .site-header-account {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

body.site-public .site-header-account__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

body.site-public .site-header-account__link:hover,
body.site-public .site-header-account__link.is-active {
    background: rgba(0, 0, 0, 0.06);
    color: #111;
}

body.site-public .site-header-account__link--register {
    background: #1a1a1a;
    color: #fff;
}

body.site-public .site-header-account__link--register:hover {
    background: #333;
    color: #fff;
}

body.site-public .site-notif-wrap {
    position: relative;
}

body.site-public .site-notif-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #333;
    cursor: pointer;
}

body.site-public .site-notif-bell:hover {
    background: rgba(0, 0, 0, 0.06);
}

body.site-public .site-notif-bell__badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: #d45c5c;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1.1rem;
    text-align: center;
}

body.site-public .site-notif-dropdown {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    z-index: 1200;
    width: min(22rem, calc(100vw - 2rem));
    max-height: 24rem;
    overflow: auto;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

body.site-public .site-notif-dropdown__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.875rem;
}

body.site-public .site-notif-dropdown__head a {
    color: #666;
    text-decoration: none;
    font-size: 0.8125rem;
}

body.site-public .site-notif-dropdown__item {
    display: block;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    text-decoration: none;
    color: inherit;
}

body.site-public .site-notif-dropdown__item.is-unread {
    background: rgba(52, 152, 219, 0.06);
}

body.site-public .site-notif-dropdown__item strong {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.15rem;
}

body.site-public .site-notif-dropdown__item span,
body.site-public .site-notif-dropdown__item time {
    display: block;
    font-size: 0.8125rem;
    color: #666;
}

body.site-public .site-notif-dropdown__empty {
    padding: 1rem;
    margin: 0;
    font-size: 0.875rem;
    color: #666;
    text-align: center;
}

body.site-public .site-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 999px;
    background: #fff;
    color: #333;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body.site-public .site-follow-btn:hover {
    border-color: rgba(0, 0, 0, 0.22);
    background: #fafafa;
}

body.site-public .site-follow-btn.is-following {
    background: rgba(52, 152, 219, 0.08);
    border-color: rgba(52, 152, 219, 0.35);
    color: #2471a3;
}

body.site-public .site-follow-btn--header {
    flex-shrink: 0;
}

body.site-public .site-follow-btn--compact {
    padding: 0.3rem 0.55rem;
    font-size: 0.75rem;
}

body.site-public .publication-detail-header__top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.75rem 1rem;
}

body.site-public .publication-detail-header__top .publication-detail-title {
    flex: 1 1 12rem;
    margin: 0;
}

body.site-public .site-search-row {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

body.site-public .site-search-row__link {
    flex: 1 1 auto;
    min-width: 0;
}

body.site-public .site-search-row__follows {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.35rem 0.5rem 0.35rem 0;
}

body.site-public.page-account:not(.site-auth-layout) .site-account-page-wrapper {
    position: relative;
    z-index: 1;
}

body.site-public .site-account-page-wrapper .site-account-alert {
    margin-bottom: 0.75rem;
}

body.site-public .site-account-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

body.site-public .site-account-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 0;
    border-bottom: 1px solid var(--site-border);
}

body.site-public .site-account-header__identity {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

body.site-public .site-account-header__text {
    min-width: 0;
}

body.site-public .site-account-header__name {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.25;
}

body.site-public .site-account-header__email {
    margin: 0.2rem 0 0;
    font-size: 0.8125rem;
    color: #666;
}

body.site-public .site-account-header__catalog {
    margin: 0.35rem 0 0;
    color: #2c3e50;
    font-size: 0.8125rem;
}

body.site-public .site-account-header__catalog-club {
    color: #7f8c8d;
}

body.site-public .site-account-header__actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

body.site-public .site-account-logout-form {
    margin: 0;
}

body.site-public .site-account-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 999px;
    background: #fff;
    color: #444;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body.site-public .site-account-icon-btn:hover,
body.site-public .site-account-icon-btn.is-active {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.18);
    color: #111;
}

body.site-public .site-account-icon-btn.is-active {
    background: rgba(52, 152, 219, 0.1);
    border-color: rgba(52, 152, 219, 0.35);
    color: #2471a3;
}

body.site-public .site-account-icon-btn--logout:hover {
    background: rgba(212, 92, 92, 0.08);
    border-color: rgba(212, 92, 92, 0.35);
    color: #a93226;
}

body.site-public .site-account-activity-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 0 0.85rem;
    border-bottom: 1px solid var(--site-border);
}

body.site-public .site-account-activity-nav__tab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    background: #fff;
    color: #444;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body.site-public .site-account-activity-nav__tab:hover {
    background: #fafafa;
    border-color: rgba(0, 0, 0, 0.16);
}

body.site-public .site-account-activity-nav__tab.is-active {
    background: rgba(52, 152, 219, 0.08);
    border-color: rgba(52, 152, 219, 0.35);
    color: #2471a3;
}

body.site-public .site-account-activity-nav__badge {
    min-width: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #d45c5c;
    color: #fff;
    font-size: 0.6875rem;
    line-height: 1.25rem;
    text-align: center;
}

body.site-public .site-account-activity-nav__count {
    min-width: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
    color: #555;
    font-size: 0.6875rem;
    line-height: 1.25rem;
    text-align: center;
}

body.site-public .site-account-content {
    padding-top: 1rem;
}

body.site-public .site-account-section + .site-account-section {
    margin-top: 1.5rem;
}

body.site-public .site-account-section--divider {
    padding-top: 1.5rem;
    border-top: 1px solid var(--site-border);
}

body.site-public .site-account-sidebar-widget .site-account-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem 0.75rem;
    border-radius: 0.5rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
}

body.site-public .site-account-stat-card__value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: #d45c5c;
}

body.site-public .site-account-stat-card__label {
    font-size: 0.8125rem;
    color: #666;
    line-height: 1.35;
}

body.site-public .site-account-form {
    display: grid;
    gap: 0.85rem;
}

body.site-public .site-account-form__intro {
    margin: 0;
    color: #555;
    line-height: 1.55;
    font-size: 0.9375rem;
}

body.site-public .site-account-field {
    display: grid;
    gap: 0.35rem;
    font-size: 0.875rem;
}

body.site-public .site-account-field input {
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0.5rem;
    font: inherit;
}

body.site-public .site-account-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

body.site-public .site-account-btn--primary {
    background: #1a1a1a;
    color: #fff;
}

body.site-public .site-account-btn--ghost {
    background: transparent;
    color: #555;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

body.site-public .site-account-alert {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

body.site-public .site-account-alert--error {
    background: rgba(212, 92, 92, 0.1);
    color: #a93226;
}

body.site-public .site-account-alert--success {
    background: rgba(46, 204, 113, 0.12);
    color: #1e8449;
}

body.site-public .site-account-empty {
    color: #666;
    line-height: 1.55;
}

body.site-public .site-account-follow-list,
body.site-public .site-account-gallery-list,
body.site-public .site-account-notif-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

body.site-public .site-account-follow-item,
body.site-public .site-account-notif-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    background: #fff;
}

body.site-public .site-account-follow-item__thumb {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    object-fit: cover;
    flex-shrink: 0;
}

body.site-public .site-account-follow-item__thumb--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.06);
    color: #999;
}

body.site-public .site-account-follow-item__body {
    flex: 1;
    min-width: 0;
}

body.site-public .site-account-follow-item__type {
    display: block;
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

body.site-public .site-account-follow-item__label {
    display: block;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

body.site-public .site-account-gallery-item {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    background: #fff;
    overflow: hidden;
}

body.site-public .site-account-gallery-item__inner {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.75rem;
}

body.site-public .site-account-gallery-item__thumb-btn {
    display: block;
    flex-shrink: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 0.5rem;
    overflow: hidden;
}

body.site-public .site-account-gallery-item__thumb-btn:hover .site-account-gallery-item__thumb {
    opacity: 0.9;
}

body.site-public .site-account-gallery-item__thumb-btn:focus-visible {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

body.site-public .site-account-gallery-item__title-link {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: inherit;
    text-decoration: none;
}

body.site-public .site-account-gallery-item__title-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

body.site-public .site-account-gallery-item__link {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.75rem;
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

body.site-public .site-account-gallery-item__title {
    font-size: 1rem;
    line-height: 1.3;
}

body.site-public .site-account-gallery-item__link:hover .site-account-gallery-item__title {
    color: #2980b9;
}

body.site-public .site-account-gallery-item__thumb {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 0.5rem;
    object-fit: cover;
    flex-shrink: 0;
}

body.site-public .site-account-gallery-item__thumb--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.06);
    color: #999;
}

body.site-public .site-account-gallery-item__body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    justify-content: center;
}

body.site-public .site-account-gallery-item__type {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

body.site-public .site-account-gallery-item__title {
    font-size: 1rem;
    line-height: 1.3;
}

body.site-public .site-account-gallery-item__subtitle,
body.site-public .site-account-gallery-item__date {
    font-size: 0.8125rem;
    color: #666;
    line-height: 1.4;
}

body.site-public .site-account-notif-item.is-unread {
    border-color: rgba(52, 152, 219, 0.35);
    background: rgba(52, 152, 219, 0.04);
}

body.site-public .site-account-notif-item__link {
    display: grid;
    gap: 0.2rem;
    color: inherit;
    text-decoration: none;
}

body.site-public .site-account-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

body.site-public .site-account-field input[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.04);
}

body.site-public .site-account-field__hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    color: #888;
}

body.site-public .site-account-field--checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

body.site-public .site-account-field--checkbox input {
    width: auto;
    margin: 0;
}

body.site-public .site-account-profile-avatar {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 0.5rem;
}

body.site-public .site-account-profile-avatar__preview {
    flex-shrink: 0;
}

body.site-public .site-account-profile-avatar__fields {
    flex: 1;
    min-width: 0;
}

body.site-public .site-account-section__title {
    margin: 0 0 0.85rem;
    font-size: 1.125rem;
}

body.site-public .site-account-field textarea {
    width: 100%;
    min-height: 5rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0.5rem;
    font: inherit;
    resize: vertical;
}

body.site-public .site-account-field__required {
    color: #c0392b;
}

body.site-public .site-account-empty--compact {
    margin: 0;
    font-size: 0.9rem;
}

body.site-public .site-account-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

body.site-public .site-account-stat-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.85rem 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

body.site-public .site-account-stat-tile:hover {
    border-color: rgba(52, 152, 219, 0.35);
    background: rgba(52, 152, 219, 0.04);
}

body.site-public .site-account-stat-tile__value {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.1;
    color: #2c3e50;
}

body.site-public .site-account-stat-tile__label {
    font-size: 0.72rem;
    color: #666;
    text-align: center;
    line-height: 1.25;
}

body.site-public .site-account-dashboard-block__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

body.site-public .site-account-dashboard-block__head .site-account-section__title {
    margin: 0;
}

body.site-public .site-account-dashboard-block__more {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #2980b9;
    text-decoration: none;
}

body.site-public .site-account-dashboard-block__more:hover {
    text-decoration: underline;
}

body.site-public .site-account-notif-list--compact,
body.site-public .site-account-gallery-list--compact,
body.site-public .site-account-liked-list--compact {
    gap: 0.45rem;
}

body.site-public .site-account-gallery-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.15rem;
}

body.site-public .site-account-gallery-item__stat {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #888;
}

body.site-public .site-account-liked-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

body.site-public .site-account-liked-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    background: #fff;
}

body.site-public .site-account-liked-item__thumb {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    object-fit: cover;
    flex-shrink: 0;
}

body.site-public .site-account-liked-item__thumb--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(231, 76, 60, 0.08);
    color: #e74c3c;
}

body.site-public .site-account-liked-item__body {
    flex: 1;
    min-width: 0;
}

body.site-public .site-account-liked-item__type {
    display: block;
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

body.site-public .site-account-liked-item__title {
    display: block;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
}

body.site-public .site-account-liked-item__title:hover {
    color: #2980b9;
    text-decoration: underline;
}

body.site-public .site-account-liked-item__date {
    display: block;
    font-size: 0.8125rem;
    color: #666;
    margin-top: 0.1rem;
}

body.site-public .site-account-catalog-request {
    padding: 1rem;
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 0.75rem;
    background: rgba(52, 152, 219, 0.04);
}

body.site-public .site-account-catalog-request__title {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

body.site-public .site-account-catalog-request__intro {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

body.site-public .site-account-sidebar-stats {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

body.site-public .site-account-sidebar-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.65rem 0.4rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease;
}

body.site-public .site-account-sidebar-stat:hover,
body.site-public .site-account-sidebar-stat.is-active {
    border-color: rgba(52, 152, 219, 0.35);
    background: rgba(52, 152, 219, 0.04);
}

body.site-public .site-account-sidebar-stat__value {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.1;
}

body.site-public .site-account-sidebar-stat__label {
    font-size: 0.68rem;
    color: #666;
    text-align: center;
    margin-top: 0.15rem;
}

body.site-public .site-account-sidebar-catalog {
    display: grid;
    gap: 0.2rem;
    font-size: 0.875rem;
    line-height: 1.4;
}

body.site-public .site-account-sidebar-catalog span {
    color: #666;
}

body.site-public .site-account-sidebar-meta {
    margin: 0 0 0.35rem;
    font-size: 0.8125rem;
    color: #666;
    line-height: 1.4;
}

body.site-public .site-account-sidebar-meta:last-child {
    margin-bottom: 0;
}

body.site-public .site-account-catalog-search__results {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.65rem;
}

body.site-public .site-account-catalog-search__hint,
body.site-public .site-account-catalog-search__empty,
body.site-public .site-account-catalog-search__loading {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: #666;
}

body.site-public .site-account-catalog-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    background: #fff;
    text-align: left;
    cursor: pointer;
    color: inherit;
    font: inherit;
}

body.site-public .site-account-catalog-result:hover:not(:disabled) {
    border-color: rgba(13, 107, 114, 0.35);
    background: rgba(13, 107, 114, 0.04);
}

body.site-public .site-account-catalog-result.is-selected {
    border-color: #0d6b72;
    background: rgba(13, 107, 114, 0.08);
}

body.site-public .site-account-catalog-result:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

body.site-public .site-account-catalog-result__main {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

body.site-public .site-account-catalog-result__club,
body.site-public .site-account-catalog-result__meta {
    font-size: 0.8125rem;
    color: #666;
}

body.site-public .site-account-catalog-result__linked {
    font-size: 0.75rem;
    color: #c0392b;
}

body.site-public .site-account-catalog-result__count {
    white-space: nowrap;
    font-size: 0.75rem;
    color: #0d6b72;
    font-weight: 600;
}

body.site-public .site-account-catalog-link-form {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

body.site-public .site-account-catalog-link-form__selected {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
}

body.site-public .site-account-catalog-request__manual {
    margin-top: 1rem;
    font-size: 0.875rem;
}

body.site-public .site-account-catalog-request__manual summary {
    cursor: pointer;
    color: #2980b9;
    font-weight: 600;
}

body.site-public .site-account-catalog-request__manual .site-account-form {
    margin-top: 0.85rem;
}

body.site-public .site-account-gallery-filters {
    margin-bottom: 1rem;
}

body.site-public .site-account-gallery-filters__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: flex-end;
}

body.site-public .site-account-gallery-filters__search {
    flex: 1 1 220px;
}

body.site-public .site-account-gallery-filters__type {
    flex: 0 1 160px;
}

body.site-public .site-account-gallery-filters__label {
    font-size: 0.75rem;
    color: #666;
}

body.site-public .site-account-gallery-filters__type select {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0.5rem;
    font: inherit;
    background: #fff;
}

body.site-public .site-account-gallery-filters__meta {
    margin: 0.5rem 0 0;
    font-size: 0.8125rem;
    color: #666;
}

body.site-public .site-account-notification-prefs .site-account-field--checkbox {
    align-items: flex-start;
}

body.site-public .site-account-notification-prefs .site-account-field--checkbox span {
    line-height: 1.45;
}

body.site-public .site-account-message-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

body.site-public .site-account-message-item {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    background: #fff;
    padding: 0.85rem 0.95rem;
}

body.site-public .site-account-message-item.is-pending {
    border-color: rgba(52, 152, 219, 0.25);
    background: rgba(52, 152, 219, 0.03);
}

body.site-public .site-account-message-item__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.45rem;
    font-size: 0.8125rem;
    color: #666;
}

body.site-public .site-account-message-item__status {
    font-weight: 600;
    color: #888;
}

body.site-public .site-account-message-item.is-pending .site-account-message-item__status {
    color: #2980b9;
}

body.site-public .site-account-message-item.is-read .site-account-message-item__status {
    color: #27ae60;
}

body.site-public .site-account-message-item__body {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #333;
    white-space: normal;
    word-break: break-word;
}

@media (max-width: 900px) {
    body.site-public .site-header-tools {
        width: 100%;
        justify-content: space-between;
        padding-top: 0.5rem;
    }

    body.site-public .site-account-header {
        flex-wrap: wrap;
    }

    body.site-public .site-account-header__actions {
        margin-left: auto;
    }

    body.site-public .site-account-activity-nav {
        gap: 0.4rem;
    }

    body.site-public .site-account-activity-nav__tab {
        flex: 1 1 calc(50% - 0.25rem);
        justify-content: center;
    }

    body.site-public .site-account-dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.site-public .site-account-profile-avatar {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    body.site-public .site-account-profile-avatar__fields {
        width: 100%;
    }

    body.site-public .site-header-account {
        width: 100%;
        justify-content: flex-end;
        padding-top: 0.5rem;
    }
}
