/*
 * CRAZY24-BRAND-044
 * Black / red / white editorial design.
 * Independent override layer; original CSS remains intact.
 */

:root {
    color-scheme: light;

    --c24-black: #171717;
    --c24-black-soft: #292929;
    --c24-red: #d71920;
    --c24-red-hover: #b81219;
    --c24-red-pale: #fff1f2;
    --c24-white: #ffffff;
    --c24-border: #dedede;
    --c24-text-muted: #626262;

    --c24-radius: 9px;
    --c24-shadow: 0 3px 18px rgba(0, 0, 0, .045);
}

/* GLOBAL */

html {
    background: var(--c24-white) !important;
}

body {
    background: var(--c24-white) !important;
    color: var(--c24-black) !important;
}

main {
    color: var(--c24-black);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--c24-black);
}

p,
li,
dt,
dd {
    overflow-wrap: break-word;
}

small,
.muted,
.text-muted {
    color: var(--c24-text-muted) !important;
}

/* LINKS */

a {
    color: var(--c24-red);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--c24-red-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--c24-red) !important;
    outline-offset: 3px;
}

/* HEADER: WHITE BACKGROUND, BLACK LINKS, RED DETAIL */

body > header,
header.site-header,
.site-header,
.site-topbar,
.topbar {
    background-color: var(--c24-white) !important;
    color: var(--c24-black) !important;
    border-bottom-color: var(--c24-red) !important;
}

body > header,
header.site-header,
.site-header {
    border-bottom: 3px solid var(--c24-red) !important;
}

body > header a,
header.site-header a,
.site-header a,
.site-topbar a,
.topbar a {
    color: var(--c24-black);
}

body > header a:hover,
header.site-header a:hover,
.site-header a:hover,
.site-topbar a:hover,
.topbar a:hover {
    color: var(--c24-red) !important;
}

header nav a,
.site-nav a,
.main-nav a,
.primary-nav a,
.navbar a {
    font-weight: 650;
    text-decoration: none;
}

header nav a:hover,
.site-nav a:hover,
.main-nav a:hover,
.primary-nav a:hover,
.navbar a:hover {
    color: var(--c24-red) !important;
}

header nav a[aria-current="page"],
.site-nav a[aria-current="page"],
.main-nav a[aria-current="page"],
.navbar a.active,
.site-nav a.active,
.main-nav a.active {
    color: var(--c24-red) !important;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

/* ROLE BADGE */

.c24-current-user-role {
    background: var(--c24-white) !important;
    border-color: var(--c24-black) !important;
    color: var(--c24-black) !important;
    font-weight: 500;
}

.c24-current-user-role strong {
    color: var(--c24-red) !important;
}

/* PANELS, CARDS, ARTICLE BOXES */

.panel,
.card,
.article-card,
.news-card,
.story-card {
    background: var(--c24-white) !important;
    color: var(--c24-black);
    border-color: var(--c24-border);
    border-radius: var(--c24-radius);
}

.panel {
    box-shadow: var(--c24-shadow);
}

.panel > h1:first-child,
.panel > h2:first-child,
.section-head h1,
.section-head h2 {
    letter-spacing: -.025em;
}

.section-head {
    border-bottom-color: var(--c24-border);
}

.article-card,
.news-card,
.story-card {
    transition: border-color .15s ease, box-shadow .15s ease;
}

.article-card:hover,
.news-card:hover,
.story-card:hover {
    border-color: var(--c24-red);
    box-shadow: var(--c24-shadow);
}

/* MAIN BUTTONS */

.button,
button[type="submit"],
input[type="submit"],
.btn-primary {
    background: var(--c24-red) !important;
    background-image: none !important;
    border-color: var(--c24-red) !important;
    color: var(--c24-white) !important;
    border-radius: 7px;
    font-weight: 650;
    cursor: pointer;
}

.button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover,
.btn-primary:hover {
    background: var(--c24-red-hover) !important;
    border-color: var(--c24-red-hover) !important;
    color: var(--c24-white) !important;
}

.button.secondary,
.button.is-secondary,
.btn-secondary,
button.secondary {
    background: var(--c24-white) !important;
    color: var(--c24-black) !important;
    border: 1px solid var(--c24-black) !important;
}

.button.secondary:hover,
.button.is-secondary:hover,
.btn-secondary:hover,
button.secondary:hover {
    background: var(--c24-black) !important;
    color: var(--c24-white) !important;
}

button:disabled,
input[type="submit"]:disabled,
.button[aria-disabled="true"] {
    opacity: .55;
    cursor: not-allowed;
}

/* FORM ELEMENTS */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="tel"],
textarea,
select:not(.ql-header):not(.ql-list):not(.ql-color):not(.ql-background) {
    background-color: var(--c24-white);
    color: var(--c24-black);
    border-color: #bdbdbd;
    border-radius: 6px;
}

input::placeholder,
textarea::placeholder {
    color: #747474;
    opacity: 1;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--c24-red);
}

label {
    color: var(--c24-black);
}

/* TABLES */

.table-wrap {
    border-radius: var(--c24-radius);
    border: 1px solid var(--c24-border);
}

table {
    color: var(--c24-black);
}

thead th {
    background: var(--c24-black) !important;
    color: var(--c24-white) !important;
    border-color: var(--c24-black-soft) !important;
    font-weight: 650;
}

tbody td {
    border-color: var(--c24-border);
}

tbody tr:nth-child(even) {
    background: #fafafa;
}

tbody tr:hover {
    background: #fff6f6;
}

tbody td a {
    color: var(--c24-red);
}

/* STATUS AND WARNINGS */

.notice {
    border-radius: 7px;
}

.notice.warning,
.notice.error,
.alert-warning,
.alert-danger {
    background: var(--c24-red-pale) !important;
    color: var(--c24-black) !important;
    border-color: var(--c24-red) !important;
}

.notice.warning strong,
.notice.error strong {
    color: var(--c24-red-hover);
}

/* PAGINATION */

.pagination a,
.pagination span {
    border-color: var(--c24-border);
}

.pagination .active,
.pagination [aria-current="page"] {
    background: var(--c24-red) !important;
    color: var(--c24-white) !important;
    border-color: var(--c24-red) !important;
}

/* FOOTER */

body > footer,
footer.site-footer,
.site-footer {
    background: var(--c24-black) !important;
    color: var(--c24-white) !important;
    border-top: 3px solid var(--c24-red);
}

body > footer a,
footer.site-footer a,
.site-footer a {
    color: var(--c24-white) !important;
}

body > footer a:hover,
footer.site-footer a:hover,
.site-footer a:hover {
    color: #ff777c !important;
}

/* EDITOR: KEEP QUILL TOOLBAR AND CONTENT READABLE */

.ql-toolbar,
.ql-container,
.article-editor,
.c24-article-preview {
    background: var(--c24-white);
    color: var(--c24-black);
    border-color: var(--c24-border);
}

.ql-editor {
    color: var(--c24-black);
}

.ql-snow .ql-stroke {
    stroke: var(--c24-black);
}

.ql-snow .ql-fill {
    fill: var(--c24-black);
}

.ql-snow .ql-picker {
    color: var(--c24-black);
}

.ql-snow .ql-active .ql-stroke {
    stroke: var(--c24-red);
}

.ql-snow .ql-active .ql-fill {
    fill: var(--c24-red);
}

/* ACCESSIBILITY */

::selection {
    background: #ffd8da;
    color: var(--c24-black);
}

@media (max-width: 700px) {
    .panel {
        box-shadow: none;
    }

    .c24-current-user-role {
        font-size: 11px !important;
        padding: 4px 8px !important;
    }

    .table-wrap {
        overflow-x: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .article-card,
    .news-card,
    .story-card {
        transition: none;
    }
}

/*
 * CRAZY24-NAV-CONTRAST-044A
 *
 * Czech tricolor:
 * blue navigation, white labels, red active highlights.
 */

:root {
    --c24-nav-blue: #17345c;
    --c24-nav-blue-hover: #244a7d;
    --c24-nav-red: #d71920;
    --c24-nav-white: #ffffff;
    --c24-header-gray: #f4f6f8;
}

/* Header surrounding the navigation */

body > header,
header.site-header,
.site-header,
.site-topbar,
.topbar {
    background-color: var(--c24-header-gray) !important;
    color: #171717 !important;
}

/*
 * Navigation gets an explicitly dark background.
 * This prevents white links from disappearing.
 */

body > header nav,
header.site-header nav,
.site-header nav,
.site-nav,
.main-nav,
.primary-nav,
.header-nav,
.navbar,
nav.site-nav,
nav.main-nav,
nav.primary-nav {
    background-color: var(--c24-nav-blue) !important;
    background-image: none !important;
    color: var(--c24-nav-white) !important;
    border-color: var(--c24-nav-blue) !important;
}

/* White text for ordinary navigation links */

body > header nav a,
header.site-header nav a,
.site-header nav a,
.site-nav > a,
.site-nav > ul > li > a,
.main-nav > a,
.main-nav > ul > li > a,
.primary-nav > a,
.primary-nav > ul > li > a,
.header-nav > a,
.header-nav > ul > li > a,
.navbar > a,
.navbar > ul > li > a,
nav.site-nav a,
nav.main-nav a,
nav.primary-nav a {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
    text-decoration: none;
    opacity: 1 !important;
    text-shadow: none !important;
}

/* Hover and active menu item */

body > header nav a:hover,
header.site-header nav a:hover,
.site-header nav a:hover,
.site-nav > a:hover,
.site-nav > ul > li > a:hover,
.main-nav > a:hover,
.main-nav > ul > li > a:hover,
.primary-nav > a:hover,
.primary-nav > ul > li > a:hover,
.header-nav > a:hover,
.header-nav > ul > li > a:hover,
.navbar > a:hover,
.navbar > ul > li > a:hover,
nav.site-nav a:hover,
nav.main-nav a:hover,
nav.primary-nav a:hover {
    background-color: var(--c24-nav-blue-hover) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
}

body > header nav a[aria-current="page"],
.site-nav a[aria-current="page"],
.main-nav a[aria-current="page"],
.primary-nav a[aria-current="page"],
.header-nav a[aria-current="page"],
.navbar a[aria-current="page"],
.site-nav a.active,
.main-nav a.active,
.primary-nav a.active,
.header-nav a.active,
.navbar a.active {
    background-color: var(--c24-nav-blue-hover) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
    box-shadow: inset 0 -3px 0 var(--c24-nav-red);
}

/* Dropdown menus use light background with dark text */

body > header nav ul ul,
.site-nav ul ul,
.main-nav ul ul,
.primary-nav ul ul,
.header-nav ul ul,
.navbar ul ul,
header .dropdown-menu {
    background: #ffffff !important;
    color: #171717 !important;
    border: 1px solid #d6dce3 !important;
}

body > header nav ul ul a,
.site-nav ul ul a,
.main-nav ul ul a,
.primary-nav ul ul a,
.header-nav ul ul a,
.navbar ul ul a,
header .dropdown-menu a {
    color: #171717 !important;
    -webkit-text-fill-color: #171717;
}

body > header nav ul ul a:hover,
.site-nav ul ul a:hover,
.main-nav ul ul a:hover,
.primary-nav ul ul a:hover,
.header-nav ul ul a:hover,
.navbar ul ul a:hover,
header .dropdown-menu a:hover {
    background-color: #eef2f7 !important;
    color: #b81219 !important;
    -webkit-text-fill-color: #b81219;
}

/* Preserve readable user-role badge */

.c24-current-user-role {
    background: #ffffff !important;
    color: #171717 !important;
    border-color: #17345c !important;
    -webkit-text-fill-color: #171717;
}

.c24-current-user-role strong {
    color: #d71920 !important;
    -webkit-text-fill-color: #d71920;
}

/* Visible keyboard focus */

body > header nav a:focus-visible,
.site-nav a:focus-visible,
.main-nav a:focus-visible,
.primary-nav a:focus-visible,
.navbar a:focus-visible {
    outline: 3px solid #ffffff !important;
    outline-offset: -3px;
}

/* Narrow screens */

@media (max-width: 700px) {
    body > header nav,
    .site-header nav,
    .site-nav,
    .main-nav,
    .primary-nav,
    .header-nav,
    .navbar {
        background-color: var(--c24-nav-blue) !important;
    }
}


/* CRAZY24-GRAY-HEADER-044C */

:root {
    --crazy24-header-gray: #e9ecef;
    --crazy24-header-dark: #17191d;
    --crazy24-header-red: #cf202b;
}

/* Whole header and the main navigation */

html body > header,
html body .site-header,
html body .site-topbar,
html body .topbar,
html body header nav,
html body .site-nav,
html body .main-nav,
html body .primary-nav,
html body .header-nav,
html body .navbar,
html body header nav > ul,
html body header nav > ul > li {
    background: var(--crazy24-header-gray) !important;
    background-image: none !important;
    color: var(--crazy24-header-dark) !important;
}

/* Readable dark navigation labels */

html body header nav a,
html body .site-nav a,
html body .main-nav a,
html body .primary-nav a,
html body .header-nav a,
html body .navbar a,
html body .site-topbar a,
html body .topbar a {
    color: var(--crazy24-header-dark) !important;
    -webkit-text-fill-color: var(--crazy24-header-dark) !important;
    opacity: 1 !important;
    text-shadow: none !important;
}

/* Red highlight */

html body header nav a:hover,
html body .site-nav a:hover,
html body .main-nav a:hover,
html body .primary-nav a:hover,
html body .header-nav a:hover,
html body .navbar a:hover,
html body header nav a[aria-current="page"],
html body .site-nav a.active,
html body .main-nav a.active,
html body .navbar a.active {
    background: #dce0e4 !important;
    color: var(--crazy24-header-red) !important;
    -webkit-text-fill-color: var(--crazy24-header-red) !important;
}

/* Dropdowns */

html body header nav ul ul,
html body .site-nav ul ul,
html body .main-nav ul ul,
html body .navbar ul ul {
    background: #ffffff !important;
    color: #17191d !important;
}

/* Bigger site logo */

html body header .logo img,
html body header .site-logo img,
html body header .brand img,
html body header .site-brand img,
html body header .site-branding img,
html body header .brand-logo img,
html body header .navbar-brand img,
html body header a[href="/"] > img,
html body header img[alt*="Crazy24"],
html body header img[alt*="crazy24"] {
    height: 84px !important;
    max-height: 84px !important;
    width: auto !important;
    max-width: min(100%, 290px) !important;
    object-fit: contain !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    mix-blend-mode: multiply;
}

/* Transparent surroundings */

html body header .logo,
html body header .site-logo,
html body header .brand,
html body header .site-brand,
html body header .site-branding,
html body header .navbar-brand {
    background: transparent !important;
}

/* Keep user role readable */

html body .c24-current-user-role {
    background: #ffffff !important;
    color: #17191d !important;
    -webkit-text-fill-color: #17191d !important;
}

html body .c24-current-user-role strong {
    color: #cf202b !important;
    -webkit-text-fill-color: #cf202b !important;
}

/* Mobile */

@media (max-width: 700px) {
    html body header .logo img,
    html body header .site-logo img,
    html body header .brand img,
    html body header .site-brand img,
    html body header .site-branding img,
    html body header .navbar-brand img,
    html body header a[href="/"] > img,
    html body header img[alt*="Crazy24"],
    html body header img[alt*="crazy24"] {
        height: 58px !important;
        max-height: 58px !important;
    }
}


/* CRAZY24-BIG-LOGO-044D */

/*
 * Logo: 2.5 times the previously configured size.
 * Keep its aspect ratio and transparent appearance.
 */

html body header .logo img,
html body header .site-logo img,
html body header .brand img,
html body header .site-brand img,
html body header .site-branding img,
html body header .brand-logo img,
html body header .navbar-brand img,
html body header .site-identity img,
html body header a[href="/"] > img,
html body header img.site-logo,
html body header img.brand-logo,
html body header img[alt*="Crazy24"],
html body header img[alt*="crazy24"],
html body header img[src*="site-brand"],
html body header img[src*="logo"] {
    height: 210px !important;
    max-height: 210px !important;
    width: auto !important;
    max-width: min(100%, 725px) !important;
    min-height: 0 !important;
    object-fit: contain !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    mix-blend-mode: multiply;
}

/* Remove restrictive dimensions from common logo wrappers. */

html body header .logo,
html body header .site-logo,
html body header .brand,
html body header .site-brand,
html body header .site-branding,
html body header .brand-logo,
html body header .navbar-brand,
html body header .site-identity,
html body header a:has(> img[src*="site-brand"]),
html body header a:has(> img[src*="logo"]),
html body header a:has(> img[alt*="Crazy24"]),
html body header a:has(> img[alt*="crazy24"]) {
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 0 !important;
    flex-shrink: 0 !important;
    overflow: visible !important;
    background: transparent !important;
}

/* Keep navigation readable when the logo occupies more space. */

html body header nav,
html body .site-nav,
html body .main-nav,
html body .primary-nav,
html body .navbar {
    background: #e9ecef !important;
    color: #17191d !important;
}

/* Smaller screens: still 2.5 times the former mobile size. */

@media (max-width: 700px) {
    html body header .logo img,
    html body header .site-logo img,
    html body header .brand img,
    html body header .site-brand img,
    html body header .site-branding img,
    html body header .brand-logo img,
    html body header .navbar-brand img,
    html body header .site-identity img,
    html body header a[href="/"] > img,
    html body header img.site-logo,
    html body header img.brand-logo,
    html body header img[alt*="Crazy24"],
    html body header img[alt*="crazy24"],
    html body header img[src*="site-brand"],
    html body header img[src*="logo"] {
        height: 145px !important;
        max-height: 145px !important;
        max-width: min(100%, 525px) !important;
    }

    html body header .logo,
    html body header .site-logo,
    html body header .brand,
    html body header .site-brand,
    html body header .site-branding,
    html body header .navbar-brand {
        flex-shrink: 1 !important;
    }
}

/*
 * CRAZY24-HEADER-CENTER-044E
 * Desktop logo: 180px.
 * Centered navigation and user role.
 */

/* Logo */

html body header .logo img,
html body header .site-logo img,
html body header .brand img,
html body header .site-brand img,
html body header .site-branding img,
html body header .brand-logo img,
html body header .navbar-brand img,
html body header .site-identity img,
html body header a[href="/"] > img,
html body header img.site-logo,
html body header img.brand-logo,
html body header img[alt*="Crazy24"],
html body header img[alt*="crazy24"],
html body header img[src*="site-brand"],
html body header img[src*="logo"] {
    height: 180px !important;
    max-height: 180px !important;
    width: auto !important;
    max-width: min(100%, 625px) !important;
    object-fit: contain !important;
}

/* Center navigation container */

html body header nav,
html body .site-nav,
html body .main-nav,
html body .primary-nav,
html body .header-nav,
html body .navbar {
    text-align: center !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Center navigation links if the menu uses a list */

html body header nav > ul,
html body .site-nav > ul,
html body .main-nav > ul,
html body .primary-nav > ul,
html body .header-nav > ul,
html body .navbar > ul {
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Center top-level items */

html body header nav > ul > li,
html body .site-nav > ul > li,
html body .main-nav > ul > li,
html body .primary-nav > ul > li,
html body .navbar > ul > li {
    text-align: center !important;
}

/* Center current role badge */

html body .c24-current-user-role {
    display: flex !important;
    width: max-content !important;
    max-width: calc(100% - 20px) !important;
    justify-content: center !important;
    align-items: center !important;
    align-self: center !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Keep the role label and role name together */

html body .c24-current-user-role span,
html body .c24-current-user-role strong {
    text-align: center !important;
}

/* Mobile */

@media (max-width: 700px) {
    html body header .logo img,
    html body header .site-logo img,
    html body header .brand img,
    html body header .site-brand img,
    html body header .site-branding img,
    html body header .brand-logo img,
    html body header .navbar-brand img,
    html body header .site-identity img,
    html body header a[href="/"] > img,
    html body header img.site-logo,
    html body header img.brand-logo,
    html body header img[alt*="Crazy24"],
    html body header img[alt*="crazy24"],
    html body header img[src*="site-brand"],
    html body header img[src*="logo"] {
        height: 125px !important;
        max-height: 125px !important;
        max-width: min(100%, 440px) !important;
    }

    html body header nav > ul,
    html body .site-nav > ul,
    html body .main-nav > ul,
    html body .primary-nav > ul,
    html body .navbar > ul {
        justify-content: center !important;
    }
}


/* CRAZY24-ROLE-LOGOUT-044F */

.c24-role-logout-stack {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 8px !important;
    margin: 8px auto !important;
    width: fit-content !important;
    max-width: 100% !important;
    background: transparent !important;
}

.c24-role-logout-stack .c24-current-user-role {
    margin: 0 auto !important;
    justify-content: center !important;
    text-align: center !important;
}

.c24-role-logout-stack .c24-logout-control {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto !important;
    width: auto !important;
    max-width: 100% !important;
    background: transparent !important;
}

.c24-role-logout-stack .c24-logout-control button,
.c24-role-logout-stack .c24-logout-control a {
    margin: 0 auto !important;
    text-align: center !important;
}


/* CRAZY24-USER-NAME-044G */

html body .c24-current-user-role {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 3px !important;
    padding: 9px 18px !important;
    width: max-content !important;
    max-width: min(100%, 270px) !important;
    border-radius: 15px !important;
}

html body .c24-current-user-role .c24-user-name {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    margin-top: 5px !important;
    padding-top: 6px !important;
    border-top: 1px solid #d9dee3 !important;
    color: #17191d !important;
    -webkit-text-fill-color: #17191d !important;
    font-size: 12px !important;
    font-weight: 650 !important;
    line-height: 1.4 !important;
    overflow-wrap: anywhere !important;
}

html body .c24-role-logout-stack {
    align-items: center !important;
    text-align: center !important;
}

