﻿@font-face {
    font-family: 'Open Sans';
    src: url('/fonts/OpenSans-VariableFont_wdth-wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('/fonts/OpenSans-Italic-VariableFont_wdth-wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

:root {
  --sage-navy: #001a69;  
  --sage-pale-blue: #d9eeff;
  --sage-link-blue: #046ff8;
  --mal-red: #892035;
  --mal-link-red: #a21a35;
}

html {
    position: relative;
    min-height: 100%;
}
body {
    margin-bottom: 100px;
    font-family: 'Open Sans', sans-serif;
}
.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
}
a {
    color: var(--sage-navy);
    text-decoration: underline;
}

a:hover {
    color: var(--sage-link-blue);
}

a:focus, a:focus-visible {
    outline: 3px solid var(--sage-link-blue);
    outline-offset: 2px;
}

p.intro {
    font-size: 18px;
    font-weight: 500;
}

.text-brand {
    color: var(--sage-navy);
}

h1 {
    font-size: 2rem !important;
    font: 600;
}

h2 {
    font-size: 1.5rem !important;
    font-weight: 600;
}

.bg-brand {
    background: var(--sage-navy);
}

.bg-gray {
    background: #f4f4f4;
}

.font-weight-bold {
    font-weight: 600 !important;
}

.btn {
    border-radius: 0;
    font-size: 0.8rem;
}

.btn-primary, .btn-brand {
    color: #fff;
    background-color: var(--sage-navy);
    border-color: var(--sage-navy);
}

.btn-primary:hover, .btn-brand:hover {
    color: #fff;
    background-color: var(--sage-link-blue);
    border-color: var(--sage-link-blue);

}

.jumbotron {
    background-color: var(--sage-pale-blue);
    color: white;
    background-image: url("/images/hero-img.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.card {
    border: 3px solid white;
}

.card:hover {
    border: 3px solid var(--sage-link-blue);
}

/* Skip-to-content link for keyboard accessibility */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-to-content:focus {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    background: var(--sage-navy);
    color: #fff;
    padding: 0.5rem 1rem;
    display: block;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    z-index: 9999;
}

/* Ensure buttons have visible focus state */
.btn:focus, .btn:focus-visible {
    outline: 3px solid var(--sage-link-blue);
    outline-offset: 2px;
    box-shadow: none;
}

/* Remove underline from buttons styled as links */
a.btn {
    text-decoration: none;
}

/* Responsive header logo */
.header-logo {
    height: 80px;
    padding: 0 1rem;
    max-width: 100%;
}

/* Prior-version picker modal (Index.cshtml) */
#priorVersionModal .modal-header,
#priorVersionModal .modal-body,
#priorVersionModal .modal-footer {
    padding: 25px;
}

#priorVersionModalLabel {
    font-weight: 700;
    font-size: 1.125rem;
}

/* .p-2's !important padding-left overrides .form-check's own padding-left,
   which the radio's -1.5em margin relies on to land back inside the box -
   without this, the radio renders outside the box's left edge. */
#priorVersionModal .form-check {
    padding-left: 1.5em !important;
}

@media (max-width: 576px) {
    .header-logo {
        height: auto;
        width: 70%;
        max-width: 280px;
    }

    .jumbotron h1 {
        font-size: 1.1rem !important;
    }

    .jumbotron .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .col-12.col-md-4 {
        margin-top: 0.5rem !important;
        margin-bottom: 0 !important;
        padding-bottom: 0.75rem !important;
    }
}
