/*
 * Brand theme. html[data-brand] is set before first paint by the script in
 * src/app.html (from the domain). Values follow the app (ivent-app
 * lib/style.dart): primary = fills, borders, icons; text = text on the page
 * background (the app's secondary colour); font = the brand's body font.
 * Tailwind's `brand`, `brandText` and `primary` colours and `font-sans` read
 * these variables (tailwind.config.js).
 */
:root,
:root[data-brand='ivent'] {
    --brand-primary-rgb: 0 70 107;   /* #00466B */
    --brand-text-rgb: 0 70 107;      /* #00466B */
    --brand-font: 'Roboto';
    --brand-logo: url('/brand/ivent/logo.png');
    --brand-logo-white: url('/brand/ivent/logo-white.png');
    --brand-logo-ratio: 408 / 140;
}

:root[data-brand='ventosan'] {
    --brand-primary-rgb: 0 129 193;  /* #0081C1 */
    --brand-text-rgb: 63 63 62;      /* #3F3F3E */
    --brand-font: 'Manrope';
    --brand-logo: url('/brand/ventosan/logo.png');
    /* No white Ventosan logo exists (same as in the app). */
    --brand-logo-white: url('/brand/ventosan/logo.png');
    --brand-logo-ratio: 356 / 156;
}

:root[data-brand='ventuva'] {
    --brand-primary-rgb: 24 63 118;  /* #183F76 */
    --brand-text-rgb: 24 63 118;     /* #183F76 */
    --brand-font: 'Noto Sans';
    --brand-logo: url('/brand/ventuva/logo.png');
    --brand-logo-white: url('/brand/ventuva/logo-white.png');
    --brand-logo-ratio: 1200 / 369;
}

:root {
    --blue: rgb(var(--brand-primary-rgb));
    --brand-text: rgb(var(--brand-text-rgb));
    --grey-bg: #ebeaea;
    --aside-bg: #fafafa;
    --green: #e5f1e9;
    --red: #f1e5e7;
    --hover-color: #d9d9d9;
    --divider-color: #f1f1f1;
    --selected-color: #f1f1f1;
    --disabled-color: #C9CDD0;
    --box-shadow: 0px 4px 5px rgba(0, 0, 0, 0.25);
    --input-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(69, 82, 98, 0.12) 100%), #fff;
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: local(''), url('/fonts/Roboto-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 800;
    src: local(''), url('/fonts/Roboto-Bold.ttf') format('truetype');
}

/* Ventosan: Manrope Light for body text, Bold for emphasis (as in the app). */
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 100 500;
    src: url('/fonts/Manrope-Light.ttf') format('truetype');
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 600 900;
    src: url('/fonts/Manrope-Bold.ttf') format('truetype');
}

/* Ventuva. Only downloaded on the Ventuva site (fonts load when used). */
@font-face {
    font-family: 'Noto Sans';
    font-style: normal;
    font-weight: 100 900;
    src: url('/fonts/NotoSans-VariableFont_wdth.ttf') format('truetype');
}

* {
    box-sizing: border-box;
    font-family: var(--brand-font), sans-serif;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

:focus {
    outline: none;
}

.text {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--brand-text);
}


.btn {
    background-color: var(--blue);
    padding: 0 30px;
    border: none;
    border-radius: 10px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 10px auto;
    box-shadow: var(--box-shadow);
}