/* The club's own look, "Clubblauw", on top of Radzen's Material theme: a navy header, a light-blue page, white cards
   with a navy edge below them, and the club's blue for links and buttons. It is loaded after Radzen's theme, so what
   it sets here stands, and nearly all of it is said through the theme's own variables: every component, the
   backoffice included, follows without being told. The site has this one light look, whatever the device prefers. */

/* The text is set in Noto Sans, which the site serves itself; the headings in the Roboto that Radzen brings along. */
@font-face {
    font-family: "Noto Sans";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("fonts/noto-sans-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Noto Sans";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("fonts/noto-sans-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    /* The club's colours, for what the theme's variables have no name for. */
    --clubsite-navy: #2a2a6d;
    --clubsite-blue: #224faa;
    --clubsite-sky: #92ccff;
    --clubsite-page: #e6f2ff;
    --clubsite-amber: #cc7a00;
    --clubsite-heading-font: Roboto, "Noto Sans", sans-serif;
    --clubsite-text-font: "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

    --rz-primary: var(--clubsite-blue);
    --rz-primary-light: #4e72bb;
    --rz-primary-lighter: rgba(34, 79, 170, 0.12);
    --rz-primary-dark: #1b3f88;
    --rz-primary-darker: #153169;
    --rz-on-primary-lighter: var(--clubsite-blue);

    /* Radzen's second colour is a pink the club has no use for; the navy stands in for it. */
    --rz-secondary: var(--clubsite-navy);
    --rz-secondary-light: #55558a;
    --rz-secondary-lighter: rgba(42, 42, 109, 0.12);
    --rz-secondary-dark: #222257;
    --rz-secondary-darker: #1a1a45;
    --rz-on-secondary-lighter: var(--clubsite-navy);

    --rz-header-background-color: var(--clubsite-navy);
    --rz-profile-menu-top-item-background-color: transparent;
    --rz-body-background-color: var(--clubsite-page);
    --rz-link-color: var(--clubsite-blue);
    --rz-link-hover-color: var(--rz-primary-darker);
    --rz-text-font-family: var(--clubsite-text-font);

    --bs-body-font-family: var(--clubsite-text-font);
    --bs-link-color: var(--clubsite-blue);
    --bs-link-color-rgb: 34, 79, 170;
    --bs-link-hover-color: #153169;
    --bs-link-hover-color-rgb: 21, 49, 105;
    --bs-primary: var(--clubsite-blue);
    --bs-primary-rgb: 34, 79, 170;
}

html, body {
    font-family: var(--clubsite-text-font);
}

/* The page behind everything is the light blue; the sidebar and the cards stand on it in white. */
body:has(> .clubsite-layout),
.clubsite-layout.rz-layout {
    background-color: var(--clubsite-page);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--clubsite-heading-font);
    font-weight: 700;
    color: var(--rz-text-title-color);
}

a, .btn-link {
    color: var(--clubsite-blue);
}

a:hover, .btn-link:hover {
    color: var(--rz-primary-darker);
}

/* Bootstrap's own buttons, where a page uses them instead of Radzen's. */
.btn-primary {
    --bs-btn-bg: var(--clubsite-blue);
    --bs-btn-border-color: var(--clubsite-blue);
    --bs-btn-hover-bg: var(--rz-primary-dark);
    --bs-btn-hover-border-color: var(--rz-primary-dark);
    --bs-btn-active-bg: var(--rz-primary-darker);
    --bs-btn-active-border-color: var(--rz-primary-darker);
    --bs-btn-disabled-bg: var(--clubsite-blue);
    --bs-btn-disabled-border-color: var(--clubsite-blue);
    background-color: var(--bs-btn-bg);
    border-color: var(--bs-btn-border-color);
}

.btn-outline-primary {
    --bs-btn-color: var(--clubsite-blue);
    --bs-btn-border-color: var(--clubsite-blue);
    --bs-btn-hover-bg: var(--clubsite-blue);
    --bs-btn-hover-border-color: var(--clubsite-blue);
    --bs-btn-active-bg: var(--rz-primary-dark);
    --bs-btn-active-border-color: var(--rz-primary-dark);
    --bs-btn-disabled-color: var(--clubsite-blue);
    --bs-btn-disabled-border-color: var(--clubsite-blue);
}

/* A card is white with the navy edge below it, as the club's cards have always been. */
.clubsite-layout .card,
.clubsite-layout .rz-card {
    border: 0;
    border-bottom: 3px solid var(--clubsite-navy);
    box-shadow: 0 1px 3px rgba(20, 20, 60, 0.14);
}

/* In the menu the page a visitor is on is marked with the navy as well as the tint. */
.clubsite-layout .rz-navigation-item-wrapper-active {
    box-shadow: inset 3px 0 0 var(--clubsite-navy);
}

/* The day above the matches and events of that day, wherever they are listed a day at a time. */
.calendar-day + .calendar-day {
    margin-top: 1.25rem;
}

.calendar-day-title {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--rz-text-secondary-color);
}

/* The footer keeps no room around itself: the boarding of the sponsors runs from edge to edge, and what stands below
   it keeps its own distance. */
.clubsite-layout .rz-footer {
    padding: 0;
    background-color: var(--rz-base-background-color);
}
