body {
    color: #121212;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.25;
    font-weight: 400;
}


/* Links */

main a {
    color: rgb(60, 44, 89);
    text-decoration: none;
}

main a:hover {
    color: rgba(60, 44, 89, .6);
    text-decoration: underline;
}


/* Typography */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #E4251B;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.2;
}

h1,
h2 {
    font-weight: 700;
    letter-spacing: -.015em;
}

h1 {
    font-size: clamp(2.25rem, 3vw, 3rem);
    line-height: 1.125;
}

h2 {
    font-size: clamp(1.875rem, 2.25vw, 2.25rem);
}

h3 {
    font-size: 1.5rem;
    font-weight: 500;
}

h4,
h5,
h6 {
    font-weight: 500;
}

p,
li,
label,
input,
select,
textarea,
button {
    line-height: 1.333333;
}


/* Environment banners */

#uat {
    color: #fff;
    background-color: #ffc107;
}

#dev {
    color: #fff;
    background-color: #E4251B;
}


/* Primary application colour */

.btn-primary {
    color: #fff;
    background-color: rgb(60, 44, 89);
    border-color: rgb(60, 44, 89);
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
    color: #fff;
    background-color: rgb(67, 60, 99);
    border-color: rgb(60, 44, 89);
}

.list-group-item.active {
    color: #fff;
    background-color: rgb(60, 44, 89);
    border-color: rgb(60, 44, 89);
}

li .page-link,
li .page-link:hover {
    color: rgb(60, 44, 89);
}

.page-item.active .page-link {
    color: #fff;
    background-color: rgb(60, 44, 89);
    border-color: rgb(60, 44, 89);
}


/* Top navigation */

.phoenix-nav {
    background-color: #121212;
    font-size: .875rem;
}

.phoenix-nav .nav-link,
.phoenix-nav .dropdown-toggle {
    color: #fff;
    font-weight: 400;
}

.phoenix-nav .nav-link:hover,
.phoenix-nav .nav-link:focus {
    color: #fff;
    text-decoration: underline;
}

.phoenix-brand-bar {
    background-color: #fff;
}


/* Page masthead */

.page-masthead {
    color: #fff;
    background-color: #E4251B;
}

.page-masthead-accent {
    height: 7px;
    background-color: #E4251B;
}

.page-title {
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(2.25rem, 2.75vw, 2.75rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.02em;
}

.page-title i {
    font-size: .9em;
}

.page-user {
    color: #fff;
}


/* Page content */

.page-subtitle {
    color: #121212;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -.01em;
}

.page-content h2 {
    color: #121212;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.page-content h3 {
    color: #121212;
    font-size: 1.25rem;
    font-weight: 600;
}

.page-content :is(h4, h5, h6) {
    color: #121212;
    font-size: 1.125rem;
    font-weight: 500;
}

.sidebar :is(h1, h2, h3, h4, h5, h6) {
    color: rgb(60, 44, 89);
}


/* Cards */

.card {
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}

.card .card-body h5.card-title {
    color: rgb(60, 44, 89);
}

.card-form {
    border-color: rgb(60, 44, 89);
}

.subject-header-card {
    color: rgb(60, 44, 89);
    border-top: 4px solid rgb(60, 44, 89) !important;
}

.dashboard-cards > [class*="col"] > .card {
    border: 0;
}

.dashboard-cards .card-header {
    color: rgb(60, 44, 89);
    background: transparent;
    border-bottom: 0;
    font-size: 1.25rem;
    font-weight: 500;
}

.card-form-header {
    color: #fff;
    background-color: rgb(60, 44, 89);
}


/* Form sections */

.form-section-card {
    border-top: 4px solid #E4251B !important;
}

.form-section-heading {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(228, 37, 27, .18);
    background: rgba(228, 37, 27, .035);
    color: #E4251B;
}

.form-section-heading :is(h1, h2, h3, h4, h5, h6) {
    margin: 0;
    padding: 0;
    color: inherit;
}

.page-content .form-section-heading h2 {
    margin: 0;
    padding: 0;
    color: #E4251B;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0;
}

/* Form controls */

input[type="range"]::-webkit-slider-thumb {
    background-color: rgb(60, 44, 89);
}

input[type="range"]::-moz-range-thumb {
    background-color: rgb(60, 44, 89);
}


/* Ignored validation */

input.is-invalid.ignore {
    color: #333333;
    border-color: #333333;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23333333'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23333333' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size:
            calc(.75em + .375rem)
            calc(.75em + .375rem);
}

select.is-invalid.ignore {
    --select-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23333333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    --select-error: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23333333'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23333333' stroke='none'/%3e%3c/svg%3e");

    color: #333333;
    border-color: #333333;
    background-image: var(--select-icon), var(--select-error, none);
    background-position:
            right .75rem center,
            center right 2.25rem;
    background-size:
            16px 12px,
            calc(.75em + .375rem) calc(.75em + .375rem);
}

.is-invalid:focus.ignore {
    border-color: #333333;
    box-shadow: 0 0 0 .25rem #CCCCCC;
}

input.is-invalid.ignore + .invalid-feedback {
    color: #333333;
}


/* Redaction */

.redacted {
    color: #fff;
    background-color: #333333;
    border: 2px solid #333333;
}


/* Miscellaneous */

.icon-square {
    width: 3rem;
    height: 3rem;
    border-radius: .75rem;
}

.nav-item .icon {
    width: 18px;
}

#features .icon {
    width: 50%;
    height: 50%;
}

pre {
    white-space: pre-wrap;
    word-wrap: break-word;
}


/* Footer */
.phoenix-footer-intro {
    color: #121212;
    background-color: #f2f2f2;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 300;
}

.phoenix-footer-intro p {
    font-weight: 300;
}

.phoenix-footer-title {
    color: #121212;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.2;
}

.phoenix-footer-main {
    color: #fff;
    background-color: #121212;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 300;
}

.phoenix-footer-heading {
    color: #fff;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.2;
}

.phoenix-footer-main li,
.phoenix-footer-main p,
.phoenix-footer-main a {
    color: #fff;
    font-weight: 300;
}

.phoenix-footer-main a {
    text-decoration: none;
}

.phoenix-footer-main a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-logos {
    min-height: 100px;
}

.footer-cardiff-logo {
    width: auto;
    height: 100px;
    object-fit: contain;
}

.footer-sponsors {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.footer-sponsors img {
    width: auto !important;
    height: 100px !important;
    object-fit: contain;
}

.phoenix-footer-main hr {
    border-color: rgba(255, 255, 255, .35);
    opacity: 1;
}

.phoenix-footer-copyright {
    font-size: .875rem;
    font-weight: 300;
}

.phoenix-container {
    padding-inline: 8rem;
}

@media (max-width: 991.98px) {
    .phoenix-container {
        padding-inline: 3rem;
    }
}

@media (max-width: 767.98px) {
    .phoenix-container {
        padding-inline: 1.5rem;
    }
}

/* Dashboard tiles */
/* Dashboard / application workspaces */

.dashboard-workspace {
    max-width: 76rem;
    margin-inline: auto;
}


/* Primary search */

.dashboard-search {
    margin-bottom: 4rem;
}

.dashboard-search-title {
    margin: 0 0 1rem;
    color: rgb(60, 44, 89) !important;
    font-size: 1.5rem !important;
    font-weight: 500 !important;
}

.dashboard-search .form-control {
    min-height: 3.75rem;
    padding-inline: 1.25rem;
    font-size: 1.125rem;
}

.dashboard-search .input-group {
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}


/* Black grouping headings */

.dashboard-section {
    margin-bottom: 3.5rem;
}

.dashboard-section-title {
    margin: 0 0 1.5rem;
    color: #121212 !important;
    font-size: 1.5rem !important;
    font-weight: 500 !important;
    line-height: 1.25;
}


/* Individual dashboard actions */

.dashboard-action {
    height: 100%;
    padding: 1.5rem;
    border: 1px solid #dddddd;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}

.dashboard-action-title {
    margin: 0 0 1rem;
    padding: 0 !important;
    color: rgb(60, 44, 89) !important;
    font-size: 1.25rem !important;
    font-weight: 500 !important;
    line-height: 1.3;
}

.dashboard-action-title i {
    margin-right: .4rem;
}

.dashboard-action p {
    color: #333333;
    font-size: 1rem;
    line-height: 1.45;
}

.dashboard-action-link {
    display: flex;
    min-height: 9rem;
    flex-direction: column;
    justify-content: space-between;
    color: rgb(60, 44, 89);
}

.dashboard-action-link:hover {
    color: rgb(60, 44, 89);
    text-decoration: none;
    border-color: rgba(60, 44, 89, .5);
    box-shadow: 0 .2rem .4rem rgba(0, 0, 0, .1);
}

.dashboard-action-link .dashboard-action-arrow {
    align-self: flex-end;
    color: #777777;
}

.dashboard-action .form-label {
    color: #121212;
    font-weight: 500;
}


/* Reports */

.dashboard-report-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.dashboard-report-link:first-of-type {
    border-top: 1px solid #e5e5e5;
}

.dashboard-report-link:hover {
    text-decoration: none;
}

.dashboard-report-link i:last-child {
    color: #777777;
}


/* Custom report/export lists */

.dashboard-link-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dashboard-link-list li {
    padding: .85rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.dashboard-link-list li:first-child {
    border-top: 1px solid #e5e5e5;
}
/* Sidebars */
.sidebar {
    color: #333333;
}

.sidebar > h2 {
    margin-bottom: 1.5rem;
    color: rgb(60, 44, 89);
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.2;
}

.sidebar h3,
.sidebar h4,
.sidebar h5,
.sidebar h6 {
    color: rgb(60, 44, 89);
    font-weight: 400;
}


/* Tools navigation */

.sidebar .list-group {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    border: 0;
    border-radius: 0;
}

.sidebar .list-group-item {
    padding: .9rem .75rem;
    border: 0;
    border-bottom: 1px solid #dddddd;
    border-radius: 0 !important;
    background: transparent;
    color: #333333;
}

.sidebar .list-group-item:first-child {
    border-top: 1px solid #dddddd;
}

.sidebar .list-group-item:hover,
.sidebar .list-group-item:focus {
    background: rgba(60, 44, 89, .035);
    color: rgb(60, 44, 89);
}

.sidebar .list-group-item.active {
    padding-left: .75rem;
    border-left: 4px solid rgb(60, 44, 89);
    background: rgba(60, 44, 89, .06);
    color: rgb(60, 44, 89);
    font-weight: 500;
}


/* Key / informational sidebar cards */

.sidebar .card {
    margin-top: 1.5rem;
    border: 1px solid #dddddd;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}

.sidebar .card-body {
    padding: 1.25rem;
}

.sidebar .card-title {
    margin-bottom: 1rem;
    color: rgb(60, 44, 89);
    font-size: 1.25rem;
    font-weight: 400;
}

/* Equal dashboard/report/export boxes */

.dashboard-workspace .row > .col {
    display: flex;
}

.dashboard-workspace .row > .col > .dashboard-action,
.dashboard-workspace .row > .col > .dashboard-section {
    width: 100%;
}

.dashboard-section {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.dashboard-section > .dashboard-action {
    flex: 1 1 auto;
}


/* Forms stay normal vertical forms */

.dashboard-action form {
    display: block !important;
    height: auto !important;
}


/* Buttons stay normal button size */

.dashboard-action .btn {
    width: auto !important;
    height: auto !important;
}


/* Sidebars */

.sidebar {
    color: #333333;
}

.sidebar > h2 {
    margin-bottom: 1.5rem;
    color: rgb(60, 44, 89);
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.2;
}

.sidebar h3,
.sidebar h4,
.sidebar h5,
.sidebar h6 {
    color: rgb(60, 44, 89);
    font-weight: 400;
}


/* Tools navigation */

.sidebar .list-group {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    border: 0;
    border-radius: 0;
}

.sidebar .list-group-item {
    padding: .9rem .75rem;
    border: 0;
    border-bottom: 1px solid #dddddd;
    border-radius: 0 !important;
    background: transparent;
    color: #333333;
}

.sidebar .list-group-item:first-child {
    border-top: 1px solid #dddddd;
}

.sidebar .list-group-item:hover,
.sidebar .list-group-item:focus {
    background: rgba(60, 44, 89, .035);
    color: rgb(60, 44, 89);
}

.sidebar .list-group-item.active {
    padding-left: .75rem;
    border-left: 4px solid rgb(60, 44, 89);
    background: rgba(60, 44, 89, .06);
    color: rgb(60, 44, 89);
    font-weight: 500;
}


/* Key / informational sidebar cards */

.sidebar .card {
    margin-top: 1.5rem;
    border: 1px solid #dddddd;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}

.sidebar .card-body {
    padding: 1.25rem;
}

.sidebar .card-title {
    margin-bottom: 1rem;
    color: rgb(60, 44, 89);
    font-size: 1.25rem;
    font-weight: 400;
}

/* Public landing page */

#features > h2,
#features h3,
#features .fa-solid {
    color: rgb(60, 44, 89) !important;
}

#features > h2 small {
    color: #5f6368 !important;
}

/* Login / System Alerts column */
#features + * {
    /* nothing - deliberately not used */
}

.page-content > .row > .col-md-3 h3,
.page-content > .row > .col-md-3 h3 i {
    color: rgb(60, 44, 89) !important;
}