/* --- Font Face Definitions --- */
@font-face {
    font-family: 'Suisse Intl';
    src: url('fonts/Suisse_Intl_Regular.woff2') format('woff2'),
         url('fonts/Suisse_Intl_Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Suisse Intl';
    src: url('fonts/Suisse_Intl_Medium.woff2') format('woff2'),
         url('fonts/Suisse_Intl_Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Suisse Intl';
    src: url('fonts/Suisse_Intl_Medium.woff2') format('woff2'),
         url('fonts/Suisse_Intl_Medium.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Suisse Intl';
    src: url('fonts/Suisse_Intl_Bold.woff2') format('woff2'),
         url('fonts/Suisse_Intl_Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Suisse Intl';
    src: url('fonts/Suisse_Intl_Bold.woff2') format('woff2'),
         url('fonts/Suisse_Intl_Bold.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
            --accent: #4DF9FF;
            --bg: #1a1a1a;
            --font-header: "Suisse Intl", Helvetica, Arial, sans-serif;
        }

        html {
            scroll-padding-top: 60px;
        }

        body {
            margin: 0; padding: 0;
            font-family: "Suisse Intl", Helvetica, Arial, sans-serif;
            background-color: var(--bg);
            color: #1a1a1a;
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
        }

        /* --- Navigace --- */
        nav {
            padding: 8px 5%;
            display: flex; align-items: center; justify-content: space-between;
            background: #1a1a1a;
            border-bottom: 1px solid #1a1a1a;
            position: sticky; top: 0; z-index: 1000;
            min-height: 56px;
        }

        .nav-logo {
            font-family: var(--font-header);
            font-weight: 700;
            font-size: 1.8rem;
            letter-spacing: 0;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .nav-logo-text {
            display: inline-flex;
            align-items: center;
        }

        .nav-logo-context {
            color: #fff;
        }

        .nav-logo-loop {
            color: #4df9ff;
        }

        .nav-logo .logo-mark {
            height: 1em;
            width: auto;
            display: inline-block;
        }

        .nav-logo .logo-mark-small {
            display: none;
        }

        .nav-links {
            display: flex;
            align-items: center;
            gap: 28px;
        }

        .nav-links a {
            color: #fff;
            text-decoration: none;
            font-weight: 600;
            font-size: 25px;
            text-transform: lowercase;
            letter-spacing: -1px;
            transition: color 0.2s ease;
            line-height: 32px;
            white-space: nowrap;
        }

        .nav-actions {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .nav-toggle {
            display: none;
            width: 40px;
            height: 40px;
            border-radius: 8px;
            border: none;
            background: transparent;
            color: #fff;
            cursor: pointer;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            padding: 0;
        }

        .nav-toggle-line {
            display: block;
            width: 26px;
            height: 3px;
            background: #fff;
            margin: 3px auto;
            border-radius: 2px;
        }

        .nav-drawer {
            position: absolute;
            top: 100%;
            right: 0;
            left: auto;
            width: fit-content;
            min-width: 0;
            max-width: calc(100vw - 16px);
            background: #2e2f34;
            border-bottom: 1px solid #1a1a1a;
            display: none;
            flex-direction: column;
            align-items: flex-start;
            gap: 8px;
            padding: 12px 12px 14px;
            border-radius: 12px;
            box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
            white-space: nowrap;
        }

        .nav-drawer a {
            color: #1a1a1a;
            text-decoration: none;
            font-weight: 600;
            font-size: 1rem;
            text-transform: lowercase;
        }

        .nav-drawer.is-open {
            display: flex;
        }

        .nav-links a:hover,
        .nav-links a:focus-visible {
            color: var(--accent);
        }

        

        /* --- Hero Photo --- */
        .hero-photo {
            position: relative;
            padding: 140px 5% 120px;
            background: url('../img/CL_main_photo.jpg') center/cover no-repeat;
            overflow: hidden;
            min-height: 60vh;
        }

        @media (min-width: 901px) {
            .hero-photo {
                padding: 140px 5% 120px;
                background: url('../img/CL_main_photo.jpg') center/cover no-repeat;
                min-height: 60vh;
            }
        }


        /* --- Highlights --- */
        .highlights {
            background: #fff;
            color: #1a1a1a;
            padding: 60px 5%;
        }

        .highlights h2 {
            font-family: var(--font-header);
            font-size: clamp(2.1rem, 5.2vw, 3.4rem);
            color: #9aa6b2;
            margin: 40px 0;
        }

        .highlights-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 50px 70px;
            max-width: 1100px;
        }

        .highlight-item h3 {
            font-size: 1.6rem;
            margin: 0 0 10px 0;
        }

        .intro-highlight-text {
            color: #585f63;
        }

        .highlight-item p {
            color: #444;
            margin: 0;
        }

        /* --- Social CTA --- */
        .social-cta {
            background: #1a1a1a;
            color: #fff;
            padding: 90px 5%;
            text-align: center;
            scroll-margin-top: 0;
        }

        .social-cta h2 {
            font-family: var(--font-header);
            font-size: clamp(2rem, 5vw, 3.2rem);
            margin: 0 0 30px 0;
            word-spacing: 0.12em;
        }

        .social-icons {
            display: grid;
            grid-template-columns: repeat(5, 102px);
            justify-content: center;
            justify-content: center;
            column-gap: 38px;
            row-gap: 22px;
            margin-bottom: 35px;
        }

        .social-icons a {
            color: var(--accent);
            font-size: 4.8rem;
            text-decoration: none;
            width: 102px;
            height: 102px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
            transition: color 0.2s ease;
        }

        .social-icons a i,
        .social-icons a svg {
            color: inherit;
            fill: currentColor;
            width: 0.9em;
            height: 0.9em;
        }

        .social-icons a.icon-x svg {
            width: 0.75em;
            height: 0.75em;
        }

        .social-icons a:hover,
        .social-icons a:focus-visible {
            color: #1a1a1a;
        }

        /* --- Feature Sections --- */
        .feature-section {
            padding: 60px 5%;
        }

        .feature-section.light {
            background: #fff;
            color: #1a1a1a;
        }

        .feature-section.dark {
            background: #1a1a1a;
            color: #fff;
        }

        .highlights a:not(.btn-primary),
        .feature-section.light a:not(.btn-primary),
        .event-page a:not(.btn-primary),
        .event-summary a:not(.btn-primary),
        .contact-area a:not(.btn-primary) {
            color: #1a1a1a;
            font-weight: 700;
            text-decoration-line: underline;
            text-decoration-color: var(--accent);
            text-decoration-thickness: 2px;
            text-underline-offset: 0.24em;
        }

        .highlights a.btn-secondary,
        .feature-section.light a.btn-secondary,
        .event-page a.btn-secondary,
        .event-summary a.btn-secondary,
        .contact-area a.btn-secondary {
            text-decoration: none;
            font-weight: 600;
        }

        .meta-source-link {
            color: #6f6f6f !important;
            font-size: 1em;
            font-weight: 400 !important;
            text-decoration-line: underline;
            text-decoration-color: var(--accent);
            text-decoration-thickness: 1px;
            text-underline-offset: 0.2em;
        }

        .tips-source-link {
            margin: 8px 0 0;
            text-align: right;
        }

        .feature-section.dark a:not(.btn-primary),
        .event-media-section a:not(.btn-primary),
        footer a:not(.btn-primary) {
            color: var(--accent);
            text-decoration: none;
        }

        

        .section-heading {
            font-family: var(--font-header);
            font-size: clamp(2.1rem, 5.2vw, 3.4rem);
            margin: 0 0 16px 0;
        }

        .section-heading-light {
            color: #9aa6b2;
        }

        .section-heading-dark {
            color: #fff;
        }

        .feature-subtitle {
            margin: 0 0 40px 0;
            font-size: 1.5rem;
            font-weight: 600;
            color: #8f8f8f;
        }

        .feature-section.dark .feature-subtitle {
            color: #cfcfcf;
        }

        .event-page {
            background: #fff;
            color: #1a1a1a;
        }

        .event-hero {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
            gap: 60px;
            align-items: center;
            padding: 90px 5% 60px;
        }

        .event-hero-media img {
            width: 100%;
            height: auto;
            display: block;
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
        }

        .event-hero-info h1 {
            font-family: var(--font-header);
            font-size: clamp(1.6rem, 3vw, 2.6rem);
            font-weight: 900;
            margin: 0 0 18px 0;
        }

    .event-hero-meta {
        display: flex;
        flex-direction: column;
        gap: 8px;
        color: #666;
            font-weight: 600;
            margin-bottom: 16px;
        }

        .event-hero-lead {
            font-size: 1.05rem;
            max-width: 560px;
            margin: 0;
        }

        .event-summary-body {
            max-width: 1100px;
            margin: 0 auto;
            padding: 10px 5% 80px;
        }

    .event-summary-body h2,
    .event-summary-body h3 {
        font-family: var(--font-header);
        font-weight: 900;
        margin: 50px 0 14px;
    }

    .event-summary-body h2 {
        font-family: var(--font-header);
        font-weight: 900;
        margin: 30px 0 12px;
    }

        .library-page .event-hero-info h1 {
            font-size: clamp(2.3rem, 4.8vw, 3.1rem);
        }

        .library-page .event-summary-body {
            padding: 10px 5% 40px;
        }

        .library-page .event-summary-body h2 {
            margin: 20px 0 12px;
        }

        @media (min-width: 901px) {
            .library-page .event-hero {
                max-width: 1100px;
                margin: 0 auto;
                padding: 90px 5% 60px;
            }
        }

        .event-summary-body h2 {
            font-size: clamp(1.8rem, 2.6vw, 2.4rem);
        }

        .event-summary-body h3 {
            font-size: 1.4rem;
        }

        .event-summary-body ul,
        .event-summary-body ol {
            padding-left: 22px;
            margin: 0 0 20px;
        }

        .event-summary-body a {
            color: var(--accent);
            font-weight: 700;
        }

        .event-summary-body li {
            margin-bottom: 10px;
        }

    .event-highlight-grid,
    .event-topic-grid,
    .event-insight-grid,
    .event-next-grid {
        display: grid;
        gap: 56px;
        margin: 0 0 30px;
    }

        .event-highlight-card,
        .event-topic-card,
        .event-insight-card,
        .event-next-card {
            border-top: 1px solid #d9d9e6;
            border-radius: 0;
            padding: 18px 0;
            background: transparent;
        }

        .event-highlight-grid > .event-highlight-card:first-child,
        .event-topic-grid > .event-topic-card:first-child,
        .event-insight-grid > .event-insight-card:first-child,
        .event-next-grid > .event-next-card:first-child {
            border-top: none;
            padding-top: 0;
        }

        .event-highlight-card h4,
        .event-topic-card h4,
        .event-insight-card h4 {
            font-family: var(--font-header);
            font-size: 1.05rem;
            margin: 0 0 8px;
        }


        .event-card-block {
            margin: 8px 0 0;
        }

        .event-insight-index {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: #050514;
            color: #fff;
            font-weight: 800;
            margin-bottom: 10px;
        }

        .event-next-icons {
            display: inline-flex;
            align-items: center;
            gap: 14px;
            flex-wrap: wrap;
            margin-top: 10px;
        }

        .event-next-icons a {
            width: 36px;
            height: 36px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: var(--accent);
            text-decoration: none;
        }

        .event-next-icons svg {
            width: 22px;
            height: 22px;
            fill: currentColor;
        }

        @media (min-width: 900px) {
            .event-highlight-grid,
            .event-topic-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .event-insight-grid {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }

            .event-next-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        .event-media-section {
            background: #1a1a1a;
            color: #fff;
            padding: 80px 5%;
        }

        .event-media-inner {
            max-width: 1100px;
            margin: 0 auto;
        }


    .event-media-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin: 10px 0 30px;
        max-width: 100%;
    }

        .event-media-nav a {
            font-size: 0.85rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            text-decoration: none;
        }

        

        .event-cta-note {
            margin-left: 14px;
            font-size: 0.95rem;
            color: #8f8f8f;
        }

        .event-cta-group {
            display: inline-flex;
            align-items: center;
            gap: 16px;
            flex-wrap: wrap;
        }

        .event-cta-success {
            font-weight: 700;
            color: #1b1b1b;
        }

        .interest-form {
            margin-top: 14px;
            max-width: 100%;
            overflow: hidden;
        }

        .interest-note {
            margin: 0 0 10px 0;
            color: #5a5a5a;
        }

        .interest-form-row {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
            width: 100%;
            box-sizing: border-box;
        }

        .interest-input {
            flex: 1 1 260px;
            min-width: 220px;
            padding: 10px 14px;
            border: 1px solid #1a1a1a;
            border-radius: 999px;
            font-size: 1rem;
            line-height: 1.1;
            box-sizing: border-box;
        }
        .event-media-section h2 {
            font-family: var(--font-header);
            font-size: clamp(1.8rem, 3vw, 2.6rem);
            font-weight: 900;
            margin: 0 0 30px 0;
        }

        .event-media-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 18px;
        }

        .event-media-grid img {
            width: 100%;
            height: 180px;
            object-fit: cover;
            display: block;
            background: #111;
        }

        .event-media-link {
            display: block;
            text-decoration: none;
        }

        .lightbox-open {
            overflow: hidden;
        }

        .lightbox-overlay {
            position: fixed;
            inset: 0;
            background: rgba(5, 5, 20, 0.92);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 24px;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s ease;
            z-index: 2000;
        }

        .lightbox-overlay.is-active {
            opacity: 1;
            pointer-events: auto;
        }

        .lightbox-loader {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 54px;
            height: 54px;
            border-radius: 50%;
            border: 4px solid rgba(255, 255, 255, 0.2);
            border-top-color: #ffffff;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s ease;
            transform: translate(-50%, -50%);
            animation: lightbox-spin 0.8s linear infinite;
            z-index: 2002;
        }

        .lightbox-loader.is-active {
            opacity: 1;
        }

        .lightbox-image.is-loading {
            opacity: 0;
            visibility: hidden;
        }

        .lightbox-image {
            max-width: min(92vw, 1200px);
            max-height: 82vh;
            object-fit: contain;
            box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
            border-radius: 10px;
            background: #0d0d1a;
            transition: opacity 0.2s ease;
        }

        .lightbox-close {
            position: absolute;
            top: 24px;
            right: 24px;
            width: 44px;
            height: 44px;
            border-radius: 999px;
            border: none;
            background: #ffffff;
            color: #1a1a1a;
            font-size: 1.4rem;
            font-weight: 900;
            cursor: pointer;
        }

        .lightbox-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            z-index: 2001;
            width: 52px;
            height: 52px;
            border-radius: 999px;
            border: none;
            background: #ffffff;
            color: #1a1a1a;
            font-size: 1.5rem;
            font-weight: 900;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            touch-action: manipulation;
        }

        .lightbox-prev {
            left: 16px;
        }

        .lightbox-next {
            right: 16px;
        }

        @keyframes lightbox-spin {
            to {
                transform: translate(-50%, -50%) rotate(360deg);
            }
        }

        @media (max-width: 700px) {
            .lightbox-arrow {
                width: 44px;
                height: 44px;
            }

            .lightbox-prev {
                left: 8px;
            }

            .lightbox-next {
                right: 8px;
            }

            .lightbox-close {
                top: 16px;
                right: 16px;
            }
        }

        section[id] {
            scroll-margin-top: 60px;
        }

        .events-list {
            max-width: 1100px;
            margin: 0 auto;
            display: grid;
            gap: 60px;
        }

        .event-item {
            display: grid;
            grid-template-columns: 1fr 1.2fr;
            gap: 60px;
            align-items: center;
        }

        .event-media img {
            width: 100%;
            height: auto;
            display: block;
            border: 1px solid #1a1a1a;
        }

        .event-content h3 {
            font-size: 2.2rem;
            margin: 0 0 15px 0;
        }

        .event-content p {
            color: #666;
            margin: 0 0 20px 0;
        }

        .feature-section.dark .event-content p {
            color: #cfcfcf;
        }

        .event-summary {
            background: #fff;
            color: #1a1a1a;
            padding: 60px 5%;
        }

        .btn-primary {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: var(--accent);
            color: #1a1a1a;
            border: none;
            border-radius: 999px;
            padding: 10px 18px;
            font-weight: 600;
            cursor: pointer;
            text-decoration: none;
            line-height: 1.1;
            font-size: 1rem;
            transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
        }

        .btn-primary:visited {
            color: #1a1a1a;
        }

        .btn-primary:active,
        .btn-primary:focus,
        .btn-primary:focus-visible {
            color: #1a1a1a;
        }

        .btn-primary * {
            color: inherit;
        }

        .btn-primary:hover,
        .btn-primary:focus-visible {
            background: #7afcff;
            color: #1a1a1a;
        }

        .btn-label-mobile {
            display: none;
        }

        /* --- Kontakt (Bílá sekce) --- */
        .contact-area {
            background: #fff; color: #1a1a1a; padding: 100px 5%;
        }

        .contact-grid {
            max-width: 1100px; margin: 0 auto;
            display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
        }

        .form-field {
            width: 100%; padding: 15px 0; margin-bottom: 15px;
            border: none; border-bottom: 2px solid #1a1a1a; background: transparent;
            font-size: 1rem; outline: none;
        }

        .contact-form-success-only {
            margin: 0;
            align-self: center;
            font-weight: 600;
            color: #0f5132;
        }

        .contact-form-actions {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }

        .contact-form-inline-error {
            color: #b00020;
            font-weight: 600;
        }

        /* --- Feedback --- */
        .feedback-page {
            padding: 80px 5%;
        }

        .feedback-card {
            max-width: 820px;
            margin: 0 auto;
            padding: 10px 0;
        }

        .feedback-form {
            display: grid;
            gap: 18px;
        }

        .feedback-block {
            display: grid;
            gap: 8px;
        }

        .feedback-label {
            font-weight: 600;
            color: #111;
        }

        .feedback-field {
            padding: 10px 0;
        }

        .feedback-hint {
            font-size: 0.9rem;
            color: #555;
        }

        .required-hidden {
            display: none;
        }

        .feedback-stars {
            display: flex;
            gap: 10px;
            font-size: 2rem;
        }

        .feedback-stars .star {
            cursor: pointer;
            color: #c7c7c7;
            transition: color 0.2s ease;
            user-select: none;
        }

        .feedback-stars .star.active,
        .feedback-stars .star:hover {
            color: #f2a200;
        }

        .feedback-actions {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            margin-top: 10px;
        }

        .btn-secondary {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 999px;
            padding: 10px 18px;
            font-weight: 600;
            text-decoration: none;
            border: 1px solid #1a1a1a;
            background: transparent;
            color: #1a1a1a;
            cursor: pointer;
            line-height: 1.1;
            font-size: 1rem;
            transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
        }

        .btn-secondary:hover,
        .btn-secondary:focus-visible {
            background: #1a1a1a;
            color: #fff;
        }

        .feedback-success {
            text-align: center;
        }

        .feedback-lead {
            color: #444;
            font-size: 1.1rem;
        }

        .feedback-login {
            max-width: 520px;
        }

        .feedback-error {
            color: #b00020;
            margin: 10px 0;
            font-weight: 600;
        }

        .feedback-list {
            max-width: 1200px;
        }

        .feedback-list-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            flex-wrap: wrap;
            margin-bottom: 20px;
        }

        .feedback-stats {
            background: #f2f4f6;
            padding: 10px 16px;
            border-radius: 999px;
            font-weight: 600;
            color: #333;
        }

        .feedback-table-wrap {
            overflow-x: auto;
            margin-top: 16px;
        }

        .feedback-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.95rem;
        }

        .feedback-table th,
        .feedback-table td {
            padding: 12px 14px;
            text-align: left;
            border-bottom: 1px solid #e1e4e8;
        }

        .feedback-table th {
            background: #f6f7f9;
            font-weight: 600;
        }

        .feedback-table tr:hover {
            background: #f9fafb;
        }

        .feedback-date {
            white-space: nowrap;
        }

        .feedback-text {
            max-width: 300px;
        }

        .stars {
            color: #f2a200;
        }

        .contact-yes {
            color: #1a7f37;
            font-weight: 600;
        }

        .contact-no {
            color: #777;
        }

        .feedback-empty {
            text-align: center;
            padding: 40px 20px;
            color: #666;
        }

        /* --- Footer & Socials --- */
        footer {
            padding: 80px 5%; text-align: center; background: #050514;
            border-top: 1px solid #1a1a1a;
        }

        .social-links { margin-bottom: 30px; }
        .social-links a {
            color: var(--accent); font-size: 1.5rem; margin: 0 15px; text-decoration: none;
            transition: color 0.3s;
        }

        .social-links a i,
        .social-links a svg {
            color: inherit;
            fill: currentColor;
            width: 1em;
            height: 1em;
            vertical-align: -0.1em;
        }
        .social-links a:hover { color: var(--accent); }

        @media (max-width: 900px) {
            html {
                scroll-padding-top: 60px;
            }

            body {
                font-size: 120%;
            }

            .highlights {
                padding: 28px 5%;
            }

            section[id] {
                scroll-margin-top: 60px;
            }

            .highlights h2 {
                margin: 0 0 18px 0;
            }

            .highlights-grid,
            .event-item,
            .contact-grid {
                grid-template-columns: 1fr;
            }

            .hero-photo {
                padding: 0;
                min-height: 260px;
                height: 58vw;
                max-height: 420px;
                background-position: center center;
            }

            .event-hero {
                grid-template-columns: 1fr;
                padding: 70px 6% 50px;
            }

            .nav-logo-text {
                display: none;
            }

            .nav-logo .logo-mark-large {
                display: none;
            }

            .nav-logo .logo-mark-small {
                display: inline-block;
                height: 1.6em;
            }

            nav {
                display: grid;
                grid-template-columns: auto 1fr 1fr auto;
                gap: 10px;
                position: sticky;
                align-items: center;
            }

            .nav-links {
                grid-column: 2;
                justify-content: center;
                gap: 12px;
                justify-self: center;
            }

            .nav-links a {
                font-size: 1.15rem;
                line-height: 1.2;
            }

            .nav-link-secondary {
                display: none;
            }

            .nav-actions {
                display: contents;
            }

            .nav-toggle {
                display: inline-flex;
                grid-column: 4;
                justify-self: end;
            }

            .nav-actions .btn-primary {
                grid-column: 3;
                justify-self: center;
                padding: 7px 10px;
                font-size: 0.72rem;
            }

            .event-cta-group {
                flex-direction: column;
                align-items: flex-start;
            }

            .interest-form-row {
                flex-direction: column;
                align-items: stretch;
                max-width: 100%;
            }

            .interest-input {
                width: 100%;
                font-size: 0.95rem;
                line-height: 1.1;
                padding: 6px 10px;
                min-height: 38px;
                max-height: 40px;
            }

            .interest-form-row .btn-primary {
                width: 100%;
                max-width: 100%;
            }

            .btn-label-desktop {
                display: none;
            }

            .btn-label-mobile {
                display: inline;
            }

            .social-icons {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                max-width: 260px;
                margin-left: auto;
                margin-right: auto;
                column-gap: 14px;
                row-gap: 14px;
            }

            .social-icons a {
                width: 102px;
                height: 102px;
                font-size: 4.2rem;
                margin: 0 auto;
            }

            .event-content h3 {
                font-size: 1.35rem;
            }

            .library-page table,
            .library-page tbody,
            .library-page tr,
            .library-page td {
                display: block;
                width: 100% !important;
            }

            .library-page tr {
                margin-bottom: 14px;
                padding-bottom: 14px;
                border-bottom: 1px solid #e3e3e3;
            }

            .library-page td {
                text-align: left !important;
                margin: 0 0 8px 0;
            }

        .library-page td:last-child {
            margin: 0;
            font-size: 0.78rem;
            text-align: right !important;
            color: #7f7f7f !important;
        }
    }

    /* --- Minihackathon --- */
    .minihackathon-page .event-hero-info {
        max-width: 1100px;
    }

    .minihackathon-page .event-hero {
        padding-left: 5%;
        padding-right: 5%;
    }

    .minihackathon-hero {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 30px;
        width: 100%;
    }

    .minihackathon-hero-actions {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
    }

    .minihackathon-admin-footer {
        display: flex;
        justify-content: flex-end;
        margin-top: 28px;
    }

    .minihackathon-hero-info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .minihackathon-hero-info .minihackathon-hero-actions {
        align-self: flex-end;
    }

    .admin-panel {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .admin-login {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .admin-login input {
        width: 140px;
        padding: 4px 8px;
        border: 1px solid #c9c9c9;
        border-radius: 6px;
        font-size: 0.85rem;
    }

    .admin-login button {
        width: 28px;
        height: 28px;
        border-radius: 6px;
        border: 1px solid #c9c9c9;
        background: #fff;
        color: #1a1a1a;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        padding: 0;
    }

    .admin-login button:hover {
        background: #f2f2f2;
    }

    .admin-error {
        font-size: 0.75rem;
        color: #d11;
    }

    .qr-code {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        background: #fff;
        padding: 10px;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    .qr-code img {
        display: block;
        width: 120px;
        height: 120px;
    }

    .mini-upload-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }

    .mini-upload .btn-primary {
        color: #1a1a1a;
    }

    .mini-message {
        padding: 8px 12px;
        border-radius: 10px;
        font-weight: 600;
        background: #e6f7f7;
        color: #144d4d;
        border: 1px solid #bfeaea;
    }

    .mini-toolbar {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }

    .mini-date-form {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .mini-date-label {
        font-weight: 600;
    }

    .mini-date-controls {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .mini-date-select {
        padding: 8px 12px;
        min-width: 220px;
    }

    .mini-date-submit {
        margin-left: 0;
    }

    .mini-rules {
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .mini-rules-link {
        font-weight: 600;
        text-decoration: underline;
        color: #1a1a1a;
    }

    .toggle-row {
        display: flex;
        flex-wrap: wrap;
        gap: 14px;
        margin-bottom: 20px;
    }

    .toggle-card {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 14px;
        border-radius: 14px;
        background: #f4f6f8;
        font-size: 0.9rem;
    }

    .toggle-switch {
        position: relative;
        display: inline-block;
        width: 38px;
        height: 20px;
    }

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

    .toggle-slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #c5c9ce;
        transition: .3s;
        border-radius: 999px;
    }

    .toggle-slider:before {
        position: absolute;
        content: "";
        height: 14px;
        width: 14px;
        left: 3px;
        bottom: 3px;
        background-color: #fff;
        transition: .3s;
        border-radius: 50%;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    }

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

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

    .vote-button {
        padding: 0;
        background: transparent;
        color: #9aa0a6;
        border: none;
        cursor: pointer;
        transition: color 0.2s ease;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 47px;
        height: 47px;
        flex-shrink: 0;
        font-size: 20px;
        line-height: 1;
        position: relative;
    }

    .vote-icon {
        width: 40px;
        height: 40px;
        display: inline-block;
        fill: currentColor;
    }

    .vote-button.voted {
        color: #4dd9d9;
    }

    .vote-count {
        position: absolute;
        top: 56%;
        left: 54%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 15px;
        font-weight: 900;
        line-height: 1;
        color: #1a1a1a;
        text-shadow: 0 0 3px #fff, 0 0 6px #fff;
        pointer-events: none;
    }

    .votes-wrapper[data-show-vote-count="0"] .vote-count {
        display: none;
    }

    .mini-table {
        width: 100%;
        border-collapse: collapse;
    }

    .mini-cell {
        padding: 10px 8px;
        vertical-align: middle;
    }

    .mini-cell-vote {
        width: 62px;
    }

    .mini-cell-game {
        width: 40%;
    }

    .mini-cell-date,
    .mini-cell-size {
        text-align: right;
        font-size: 0.85rem;
        color: #666;
    }

    .mini-cell-size {
        white-space: nowrap;
    }

    .mini-cell-delete {
        width: 34px;
        text-align: right;
    }

    .minihackathon-page .mini-cell-delete {
        color: inherit !important;
        font-size: inherit !important;
        text-align: right !important;
    }

    .mini-delete-btn {
        width: 28px;
        height: 28px;
        border-radius: 6px;
        border: 1px solid #ddd;
        background: #fff;
        color: #444;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .mini-delete-btn:hover {
        background: #f2f2f2;
        color: #1a1a1a;
    }

    .mini-delete-btn svg {
        width: 14px;
        height: 14px;
        fill: currentColor;
    }

    .mini-date {
        text-align: right;
        font-variant-numeric: tabular-nums;
        min-width: 150px;
    }

    .rules-overlay {
        position: fixed;
        inset: 0;
        z-index: 10000;
        display: none;
        align-items: center;
        justify-content: center;
    }

    .rules-overlay.is-open {
        display: flex;
    }

    .rules-overlay-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
    }

    .rules-overlay-panel {
        position: relative;
        background: #fff;
        width: min(760px, 92vw);
        max-height: 85vh;
        overflow: auto;
        border-radius: 16px;
        padding: 24px;
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
        z-index: 1;
    }

    .rules-overlay-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 12px;
    }

    .rules-overlay-title {
        margin: 0;
        font-family: var(--font-header);
        font-size: clamp(1.8rem, 4vw, 2.5rem);
        font-weight: 900;
        color: #1a1a1a;
    }

    .rules-overlay-close {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        border: 1px solid #ddd;
        background: #f4f4f4;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .rules-overlay-close svg {
        width: 14px;
        height: 14px;
        fill: currentColor;
    }

    .rules-overlay-content {
        color: #111;
    }

    .campaign-overlay {
        position: fixed;
        inset: 0;
        z-index: 10000;
        display: none;
        align-items: center;
        justify-content: center;
    }

    .campaign-overlay.is-open {
        display: flex;
    }

    .campaign-overlay-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
    }

    .campaign-overlay-panel {
        position: relative;
        background: #fff;
        width: min(920px, 94vw);
        max-height: 85vh;
        overflow: auto;
        border-radius: 16px;
        padding: 24px;
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
        z-index: 1;
    }

    .campaign-overlay-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 10px;
    }

    .campaign-overlay-title {
        margin: 0;
        font-family: var(--font-header);
        font-size: clamp(1.4rem, 3.2vw, 2.1rem);
        font-weight: 900;
        color: #1a1a1a;
    }

    .campaign-overlay-close {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        border: 1px solid #ddd;
        background: #f4f4f4;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 1.2rem;
        line-height: 1;
    }

    .campaign-overlay-summary {
        font-weight: 700;
        margin-bottom: 14px;
    }

    .campaign-overlay-empty {
        margin: 0;
        color: #444;
    }

    .campaign-overlay-table-wrap {
        overflow: auto;
        max-height: 62vh;
    }

    .campaign-overlay-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.95rem;
    }

    .campaign-overlay-table th,
    .campaign-overlay-table td {
        padding: 10px 12px;
        border-bottom: 1px solid #e1e4e8;
        text-align: left;
    }

    .campaign-overlay-table th {
        background: #f6f7f9;
        font-weight: 700;
    }

    .campaign-overlay-table td.is-sent {
        color: #1a7f37;
        font-weight: 600;
    }

    .campaign-overlay-table td.is-pending {
        color: #8a1c1c;
        font-weight: 600;
    }

    .campaign-overlay-pagination {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin-top: 12px;
    }

    body.campaign-overlay-open {
        overflow: hidden;
    }

    body.campaign-run-overlay-open {
        overflow: hidden;
    }

    body.campaign-config-overlay-open {
        overflow: hidden;
    }

    .campaigns-page {
        padding: 8px 0 12px;
    }

    .campaigns-card {
        max-width: none;
        width: calc(100vw - 16px);
        margin: 0 auto;
        padding: 10px;
    }

    .campaigns-table {
        font-size: 0.78rem;
    }

    .campaigns-table th,
    .campaigns-table td {
        white-space: nowrap;
        padding: 7px 8px;
        vertical-align: middle;
    }

    .campaigns-table th {
        white-space: normal;
    }

    .campaign-name-cell {
        font-weight: 700;
    }

    .campaign-subject-cell {
        white-space: normal;
        min-width: 220px;
    }

    .campaign-status {
        font-weight: 700;
    }

    .campaign-status-planned {
        color: #1f5fbf;
    }

    .campaign-status-running {
        color: #a14d00;
    }

    .campaign-status-done {
        color: #1a7f37;
    }

    .campaign-status-failed {
        color: #b00020;
    }

    .campaign-actions-cell {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .campaign-action-icon {
        width: 26px;
        height: 26px;
        border-radius: 6px;
        border: 1px solid #d0d0d0;
        background: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        font-size: 0.95rem;
        line-height: 1;
        color: #1a1a1a;
        cursor: pointer;
        padding: 0;
    }

    .feature-section.light a.campaign-action-icon {
        text-decoration: none;
        font-weight: 600;
    }

    .campaign-action-icon:hover,
    .campaign-action-icon:focus-visible {
        background: #f2f2f2;
        color: #1a1a1a;
    }

    .campaign-action-icon:disabled,
    .campaign-action-icon[disabled] {
        opacity: 0.45;
        cursor: not-allowed;
        background: #f3f3f3;
        color: #777;
        border-color: #d6d6d6;
    }

    .campaign-action-play {
        color: #14532d;
    }

    .campaign-action-delete {
        color: #c62828;
        border-color: #e2b8b8;
    }

    .campaign-config-trigger {
        min-width: 42px;
        padding: 10px 12px;
        font-size: 1.15rem;
        line-height: 1;
    }

    .campaign-run-overlay-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .campaign-run-overlay-icons {
        margin-top: 8px;
        align-items: center;
    }

    .campaign-overlay-panel-small {
        width: min(420px, 92vw);
    }

    .campaign-run-config-form {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .campaign-form-columns {
        display: flex;
        gap: 24px;
        align-items: flex-start;
        width: 100%;
    }

    .campaign-form-col {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 20px;
        border: 1px solid #e3e3e3;
        border-radius: 12px;
        background: #fafbfc;
    }

    .campaign-form-col-left {
        width: 260px;
        flex-shrink: 0;
    }

    .campaign-form-col-right {
        width: 440px;
        flex-shrink: 0;
    }

    .campaign-form-col .mini-form {
        width: 100%;
    }

    .campaign-form-col .mini-form-input {
        width: 100%;
        box-sizing: border-box;
    }

    .campaign-form-col-left .campaign-role-picker {
        flex-wrap: wrap;
    }

    .campaigns-page + footer {
        padding: 36px 5% 24px;
    }

    .campaigns-page + footer .social-links {
        margin-bottom: 14px;
    }

    .campaigns-page + footer .social-links a {
        margin: 0 10px;
        font-size: 1.35rem;
    }

    .campaigns-page + footer div[style*="margin-bottom: 10px"] {
        margin-bottom: 6px !important;
    }

    .campaign-image-thumb {
        height: 30px !important;
        object-fit: cover;
        border-radius: 4px;
        border: 1px solid #dadada;
        background: #fff;
        display: block;
    }

    .campaign-file-link {
        text-decoration: underline;
    }

    .rules-fragment {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .rules-fragment h3.section-heading {
        font-size: clamp(1.4rem, 3.5vw, 2rem);
        margin-top: 24px;
        margin-bottom: 4px;
    }

    .rules-fragment h3.section-heading:first-of-type {
        margin-top: 20px;
    }

    .rules-lead {
        font-weight: 600;
        margin: 0;
    }

    .rules-list {
        padding-left: 20px;
    }

    body.rules-open {
        overflow: hidden;
    }

    .mini-upload-form {
        max-width: 520px;
    }

    .mini-upload-message {
        margin-bottom: 16px;
    }

    .mini-form-row {
        margin-bottom: 16px;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .mini-form-label {
        font-weight: 600;
    }

    .campaign-form .mini-form-label {
        display: block;
    }

    .mini-form-value {
        font-weight: 600;
    }

    .mini-form-input {
        width: 100%;
        padding: 10px;
    }

    .mini-form-file {
        width: 100%;
    }

    .mini-form-actions {
        display: flex;
        gap: 10px;
    }

    .mini-form-actions .btn-secondary {
        color: #1a1a1a;
    }

    .mini-form-actions .btn-secondary:visited,
    .mini-form-actions .btn-secondary:active,
    .mini-form-actions .btn-secondary:focus,
    .mini-form-actions .btn-secondary:focus-visible {
        color: #1a1a1a;
    }

    .campaign-role-picker {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .campaign-role-picker .mini-form-input {
        flex: 1;
    }

    .campaign-preview-button {
        white-space: nowrap;
    }

    .btn-secondary {
        background: #ddd;
        color: #1a1a1a;
    }

    .btn-secondary:visited,
    .btn-secondary:active,
    .btn-secondary:focus,
    .btn-secondary:focus-visible {
        color: #1a1a1a;
    }

    .btn-secondary:hover,
    .btn-secondary:focus-visible {
        background: #cfcfcf;
        color: #1a1a1a;
    }

    .btn-primary-small {
        padding: 7px 14px;
        font-size: 0.88rem;
        border-width: 1px;
    }

    .btn-secondary-small {
        padding: 7px 14px;
        font-size: 0.88rem;
        border-width: 1px;
    }

    .mini-rules-link {
        color: #1a1a1a;
        font-family: var(--font-header);
    }

    @media (max-width: 900px) {
        .minihackathon-hero {
            flex-direction: column;
            align-items: flex-start;
        }

        .minihackathon-hero-actions {
            align-items: flex-start;
        }

        .mini-toolbar {
            align-items: flex-start;
        }

        .campaign-form-columns {
            flex-direction: column;
        }

        .campaign-form-col-left,
        .campaign-form-col-right {
            width: 100%;
        }
    }
