/*******************************************
:--- Defaults ---:
*******************************************/

ul {
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
}

:root {
    /* Colors */
    --text: #000;
    --white: #fff;
    --ufl-blue: #0021A5;
    --ufl-orange: #FA4616;
    /* Secondary */
    --ufl-gray: #343741;
    --ufl-gray-light: #f4f6f6;
    --ufl-dark-blue: #002657;
    --ufl-green: #22884C;
    --ufl-purple: #6A2A60;
    --ufl-red: #D32737;
    --ufl-yellow: #F2A900;
    /* Gradients */
    --ufl-gradient-blue: linear-gradient(0deg, var(--ufl-dark-blue), var(--ufl-blue));
    --ufl-gradient-orange: linear-gradient(45deg, var(--ufl-yellow), var(--ufl-orange));
    /* Font */
    --ufl-ibm-sans: "IBM Plex Sans", sans-serif;
    --ufl-source-serif: "Source Serif 4", serif;
    --ufl-anybody: "Anybody", sans-serif;
}

::-moz-selection {
    background: var(--ufl-red);
    color: var(--white);
}

::selection {
    background: var(--ufl-red);
    color: var(--white);
}

* {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/*******************************************
:--- Accessibility ---:
*******************************************/

a:focus-visible {
    outline: 2px solid;
}

.skipnav {
    background: #fff;
    clip: rect(0 0 0 0);
    color: #000;
    display: block;
    left: 0;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    position: absolute;
    text-decoration: none;
    text-align: center;
    top: 0;
    width: auto;
}

.skipnav:focus {
    clip: auto;
    height: auto;
    margin: 0;
    outline: none;
    overflow: visible;
    position: absolute;
    width: 100%;
    z-index: 100;
}


/*******************************************
:--- Color ---:
*******************************************/


/* Backgrounds */

.bg-black {
    background-color: var(--text) !important;
}

.bg-blue {
    background-color: var(--ufl-blue) !important;
}

.bg-orange {
    background-color: var(--ufl-orange) !important;
}

.bg-purple {
    background-color: var(--ufl-purple) !important;
}

.bg-gray {
    background-color: var(--ufl-gray) !important;
}

.bg-gray-light {
    background-color: var(--ufl-gray-light) !important;
}

.bg-blue-gradient {
    background: var(--ufl-dark-blue);
    background-image: var(--ufl-gradient-blue);
}


/* Text */

.txt-black {
    color: var(--text) !important;
}

.txt-gray {
    color: var(--ufl-gray) !important;
}

.txt-white {
    color: var(--white) !important;
}

.txt-blue {
    color: var(--ufl-blue) !important;
}

.txt-orange {
    color: var(--ufl-orange) !important;
}

.fw-medium {
    font-weight: 500 !important;
}


/* Font */

.font-ibm-sans {
    font-family: var(--ufl-ibm-sans) !important;
}

.font-anybody {
    font-family: var(--ufl-anybody) !important;
}

.font-source-serif {
    font-family: var(--ufl-source-serif) !important;
}


/*******************************************
:--- Buttons ---:
*******************************************/

.button {
    display: inline-block;
    font-size: 1.3rem;
    font-weight: bold;
    line-height: 1;
    padding: 15px 30px 18px;
    position: relative;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    color: #000;
    border-radius: 0;
    /* default */
    border: 0;
}

.button-orange {
    background-color: var(--ufl-orange);
    color: var(--white);
}

.button-orange:hover {
    background: var(--ufl-dark-blue);
    color: var(--white);
}


/* UFL buttons */

.btn-ufl {
    display: inline-block;
    font-size: 1.3rem;
    font-weight: bold;
    line-height: 1;
    padding: 15px 30px 18px;
    position: relative;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    color: #000;
    border-radius: 0;
    /* default */
    border: 0;
    border-left: 1px solid;
    border-right: 1px solid;
}

.btn-ufl:hover {
    background: rgba(0, 0, 0, .05);
}

.btn-ufl::before,
.btn-ufl::after {
    content: '';
    position: absolute;
    height: 0;
    width: 87%;
    transition: all 0.3s;
}

.btn-ufl::before {
    top: 0;
    right: 0;
    border-top: 1px solid;
}

.btn-ufl::after {
    bottom: 0;
    left: 0;
    border-bottom: 1px solid;
}

.btn-ufl:hover::before,
.btn-ufl:hover::after,
.btn-ufl:focus::before,
.btn-ufl:focus::after {
    width: 100%;
}


/* Variants */

.btn-ufl.btn-small {
    font-size: 1rem;
}

.btn-ufl.btn-orange {
    --btn-color: var(--ufl-orange);
    border-color: var(--btn-color);
}

.btn-ufl.btn-orange:hover {
    background: rgba(255, 255, 255, .1);
}

.btn-ufl.btn-orange::before,
.btn-ufl.btn-orange::after {
    border-color: var(--btn-color);
}

.btn-ufl.btn-blue {
    --btn-color: var(--ufl-blue);
    border-color: var(--btn-color);
}

.btn-ufl.btn-blue::before,
.btn-ufl.btn-blue::after {
    border-color: var(--btn-color);
}

.btn-ufl.btn-white {
    --btn-color: var(--ufl-orange);
    color: #fff;
    border-color: var(--btn-color);
}

.btn-ufl.btn-white::before,
.btn-ufl.btn-white::after {
    border-color: var(--btn-color);
}

.btn-ufl.btn-white:hover {
    background: rgba(0, 0, 0, .25);
}

.btn-ufl.btn-link {
    padding: 0;
    display: inline-block;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    position: relative;
    padding-bottom: 7px;
    text-align: left !important;
    border-left: 0 !important;
    border-right: 0 !important;
    font-weight: normal !important;
    font-size: 1.2rem !important;
    font-style: italic !important;
    letter-spacing: -0.01em;
}

.btn-ufl.btn-link:hover,
.btn-ufl.btn-link:focus,
.btn-ufl.btn-link:active {
    background: transparent !important;
}

.btn-ufl.btn-link::before {
    content: none !important;
}

.btn-ufl.btn-link::after {
    transition: all 0.3s;
    content: "";
    height: 0;
    position: absolute;
    width: 100%;
    border-bottom: 2px solid var(--ufl-orange);
    bottom: 0;
    right: 0;
    left: unset;
}

.btn-ufl.btn-link:hover::after {
    width: 2rem;
}


/*******************************************
:--- Bootstrap Overrides ---:
*******************************************/


/* Alerts */

.alert {
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    padding-right: 1rem;
}

.alert-primary {
    --bs-alert-color: #fff;
    --bs-alert-bg: var(--ufl-green);
}

.alert-primary .alert-link {
    color: var(--white);
}

.alert .btn-close {
    border-radius: 0;
}

.alert .btn-close:focus {
    box-shadow: none;
    outline: 2px solid;
    outline-offset: -2px;
}


/*******************************************
:--- Structural and Helpers ---:
*******************************************/

.overflow-y {
    overflow-y: hidden;
}

.inner {
    position: relative;
}

.group:after {
    display: block;
    height: 0;
    clear: both;
    content: ".";
    visibility: hidden;
    /* For clearing */
}

.table-fixed {
    table-layout: fixed;
}