/* Existing hero styles for profile.nmsu.edu. */

@media (min-width: 48em) {
    .homepage-hero-content__container:after {
        content: none !important;
    }
}

@media (min-width: 64em) {
    .homepage-hero-content__container:after {
        content: "" !important;
        right: -90px !important;
        width: 200px !important;
        z-index: -1;
    }
}

@media (min-width: 48em) {
    .hero .heading--hero__subtitle {
        font-size: 2.5rem;
    }
}

.hero-content__container {
    background-color: #8c0b42;
    padding-left: 12px;
    position: absolute;
    width: 100%;
    z-index: 1;
    bottom: 0;
}

@media (min-width: 768px) {
    .hero-content__container {
        padding-left: calc(-348px + 50vw);
    }
}

@media (min-width: 1024px) {
    .hero-content__container {
        padding-left: calc(-476px + 50vw);
    }
}

@media (min-width: 1280px) {
    .hero-content__container {
        padding-left: calc(-570px + 50vw);
    }
}

@media (min-width: 1440px) {
    .hero-content__container {
        padding-left: calc(-660px + 50vw);
    }
}

@media (min-width: 48em) {
    .hero-content__container {
        margin-right: 20%;
        width: 80%;
    }

    .hero-content__container:after {
        background-color: #8c0b42;
        content: "";
        height: 100%;
        position: absolute;
        right: -40px;
        top: 0;
        transform: skew(20deg);
        width: 100px;
        bottom: 0;
    }
}

@media (min-width: 64em) {
    .hero-content__container {
        margin-right: 40%;
        width: 60%;
    }

    .hero-content__container:after {
        right: -50px;
        width: 150px;
    }
}

@media (min-width: 90em) {
    .hero-content__container {
        margin-right: 45%;
        width: 55%;
    }
}

.bg--violet-red {
    background-color: #8c0b42 !important;
}

.align-self-md-end {
    align-self: flex-end !important;
}

.align-items-end {
    align-items: flex-end !important;
}

.heading--hero {
    font-size: 3.4375rem;
    line-height: 4.125rem;
}

@media (min-width: 64em) {
    .heading--hero {
        font-size: 3.75rem;
    }

    .align-items-end {
        align-items: flex-end !important;
        bottom: 0;
        position: absolute !important;
    }

    .align-self-md-end {
        align-self: flex-end !important;
    }

    .focusable-span:focus {
        outline: 4px dashed #ffffff;
        outline-offset: 4px;
        box-shadow: 0 0 0 4px #00b9f2;
    }
}

/* Faculty Success content sections */

.fs-section {
    box-sizing: border-box;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

.fs-section,
.fs-section p,
.fs-section li,
.fs-section td,
.fs-section th {
    color: #000;
}

.fs-section--muted {
    background-color: #f6f4f2;
}

.fs-section--hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fs-section--hover:hover,
.fs-section--hover:focus-within {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    
}

.fs-section--tutorial {
    padding: 0;
    margin-bottom: 0.75rem;
}

@media (hover: hover) and (pointer: fine) {
    .fs-section--hover:hover {
        transform: translateY(1px);
    }
}

/* Optional bordered boxes */

.fs-card {
    box-sizing: border-box;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    background-color: #fff;
    border: 1px solid #d8d3d0;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.fs-card__title {
    margin: 0 0 0.625rem;
    color: #8c0b42;
    font-size: 1.375rem;
    line-height: 1.35;
}

.fs-card__text {
    margin: 0;
    line-height: 1.6;
}

/* Raised buttons.
   The button stays stationary. Only the shadow layer moves.
   The face and shadow layers remain behind the button text. */

/* Raised buttons */
.fs-button,
.fs-button:visited {
    --fs-button-face: #8c0b42;
    --fs-button-shadow: #540727;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    isolation: isolate;
    min-height: 48px;
    max-width: 100%;
    padding: 0.75rem 1.25rem;
    margin: 0.25rem 0.75rem 0.75rem 0;
    background: transparent !important;
    color: #fff;
    border: none !important;
    border-radius: 8px;
    box-shadow: none !important;
    overflow: visible;
    font: inherit;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    touch-action: manipulation;
}

/* Shared sizing for the face and shadow */
.fs-button::before,
.fs-button::after {
    content: "";
    display: block;
    position: absolute;
    box-sizing: border-box;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: inherit;
    pointer-events: none;
}

/* Stationary front face */
.fs-button::before {
    background-color: var(--fs-button-face);
    z-index: -1;
    transition: background-color 0.2s ease;
}

/* Moving shadow, inset to prevent edges peeking through */
.fs-button::after {
    top: 1px;
    right: 1px;
    bottom: 1px;
    left: 1px;
    border-radius: 7px;
    background-color: var(--fs-button-shadow);
    z-index: -2;
    transform: translate(3px, 3px);
    transition: transform 0.2s ease-out;
}

.fs-button:hover,
.fs-button:focus,
.fs-button:active {
    --fs-button-face: #6d0833;
    color: #fff;
}

.fs-button:hover::after,
.fs-button:focus::after,
.fs-button:active::after {
    transform: translate(0, 0);
}

/* Secondary buttons */
.fs-button--secondary,
.fs-button--secondary:visited {
    --fs-button-face: #f8edf2;
    --fs-button-shadow: #8c0b42;
    color: #8c0b42;
}

.fs-button--secondary:hover,
.fs-button--secondary:focus,
.fs-button--secondary:active {
    --fs-button-face: #f2dce5;
    color: #8c0b42;
}

/* Standalone links with a fading underline.
   Keep ordinary paragraph links underlined by the template. */

a.fs-link,
a.fs-link:visited {
    display: inline-block;
    max-width: 100%;
    position: relative;
    padding-bottom: 0.15em;
    color: #8c0b42;
    border-bottom: none !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

a.fs-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: center;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

a.fs-link:hover,
a.fs-link:focus-visible {
    color: #6d0833;
}

a.fs-link:hover::after,
a.fs-link:focus-visible::after {
    transform: scaleX(1);
    opacity: 1;
}

/* Header navigation */

.navbar-expand-lg .navbar-nav .nav-link {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    border-radius: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.navbar-expand-lg .navbar-nav .nav-link:hover {
    background-color: #f8edf2;
    color: #8c0b42;
}

.navbar-expand-lg .navbar-nav .nav-link:active,
.navbar-expand-lg .navbar-nav .nav-link:focus {
    background-color: #f2dce5;
    color: #6d0833;
}

/* Submenu navigation */

.navbar-expand-lg .navbar-nav .dropdown-menu {
    padding: 0;
}

.navbar-expand-lg .navbar-nav .dropdown-menu li {
    margin: 0;
    padding: 0;
}

/* Make each link fill the entire horizontal row */
.navbar-expand-lg .navbar-nav .dropdown-menu a {
    box-sizing: border-box;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.75rem 1.25rem !important;
    border-radius: 0;
    background-color: transparent;
    color: #8c0b42;
    white-space: normal;
    text-decoration: none !important;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

/* Pale pink on hover */
.navbar-expand-lg .navbar-nav .dropdown-menu a:hover {
    background-color: #f8edf2;
    color: #8c0b42;
}

/* Darker pink on click or focus */
.navbar-expand-lg .navbar-nav .dropdown-menu a:active,
.navbar-expand-lg .navbar-nav .dropdown-menu a:focus-within {
    background-color: #f2dce5;
    color: #6d0833;
}

/* Remove the dotted outline after mouse clicks */
.navbar-expand-lg .navbar-nav .dropdown-menu a:focus:not(:focus-visible) {
    outline: none !important;
}

/* Keep a solid, inset outline for keyboard navigation */
.navbar-expand-lg .navbar-nav .dropdown-menu a:focus-visible {
    outline: 3px solid #8c0b42 !important;
    outline-offset: -4px;
}

/* Remove dotted outlines from mouse clicks */

.fs-button:focus:not(:focus-visible),
a.fs-link:focus:not(:focus-visible),
.navbar-expand-lg .navbar-nav .nav-link:focus:not(:focus-visible) {
    outline: none !important;
}

/* Solid outline for keyboard focus */

.fs-button:focus-visible,
a.fs-link:focus-visible,
.navbar-expand-lg .navbar-nav .nav-link:focus-visible {
    outline: 3px solid #8c0b42 !important;
    outline-offset: 4px;
}

/* FAQ accordion */
/* FAQ accordion */

.fs-faq details {
    margin-bottom: 1rem;
    background-color: #fff;
    border: 1px solid #8c0b42;
    border-radius: 8px;
    overflow: hidden;
}

/* Closed question bar */

.fs-faq summary {
    position: relative;
    padding: 1rem 3.25rem 1rem 1.25rem;
    background-color: #f8edf2;
    color: #8c0b42;
    font: inherit;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
    list-style: none;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

/* Hide the browser's default disclosure marker */

.fs-faq summary::-webkit-details-marker {
    display: none;
}

.fs-faq summary::marker {
    content: "";
}

/* Closed question hover */

.fs-faq summary:hover {
    background-color: #f2dce5;
}

/* Open question bar */

.fs-faq details[open] > summary {
    background-color: #6d0833;
    color: #fff;
}

/* Rotating chevron */

.fs-faq summary::after {
    content: "";
    position: absolute;
    right: 1.25rem;
    top: 50%;
    width: 0.6rem;
    height: 0.6rem;
    box-sizing: border-box;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.fs-faq details[open] > summary::after {
    transform: translateY(-50%) rotate(225deg);
}

/* White answer area with black text */

.fs-faq__answer {
    padding: 1rem 1.25rem;
    background-color: #fff;
}

.fs-faq__answer,
.fs-faq__answer p,
.fs-faq__answer li,
.fs-faq__answer td,
.fs-faq__answer th {
    color: #000;
}

/* Remove extra space below the final answer element */

.fs-faq__answer > :last-child {
    margin-bottom: 0;
}

/* Mouse and keyboard focus */

.fs-faq summary:focus:not(:focus-visible) {
    outline: none !important;
}

.fs-faq summary:focus-visible {
    outline: 3px solid currentColor !important;
    outline-offset: -5px;
}

/* Animate expansion in supporting browsers */

@supports (interpolate-size: allow-keywords)
    and (transition-behavior: allow-discrete)
    and selector(details::details-content) {

    .fs-faq details {
        interpolate-size: allow-keywords;
    }

    .fs-faq details::details-content {
        height: 0;
        overflow: hidden;
        transition:
            height 0.3s ease,
            content-visibility 0.3s allow-discrete;
    }

    .fs-faq details[open]::details-content {
        height: auto;
    }
}

/* Liaison and directory tables */

.fs-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid #d8d3d0;
    border-radius: 8px;
}

.fs-table {
    width: 100%;
    min-width: 40rem;
    margin: 0;
    border-collapse: collapse;
    font: inherit;
}

.fs-table caption {
    caption-side: top;
    padding: 1rem;
    color: #000;
    font-weight: 600;
    text-align: left;
}

.fs-table th,
.fs-table td {
    padding: 1rem;
    border: 0;
    border-bottom: 1px solid #d8d3d0;
    color: #000;
    line-height: 1.5;
    text-align: left;
    vertical-align: top;
}

.fs-table thead th {
    background-color: #8c0b42;
    color: #fff;
    font-weight: 600;
}

.fs-table tbody th {
    font-weight: 600;
}

.fs-table tbody tr {
    position: relative;
    background-color: #fff;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.fs-table tbody tr:nth-child(even) {
    background-color: #f6f4f2;
}

.fs-table tbody tr:hover,
.fs-table tbody tr:focus-within {
    background-color: #f8edf2;
}

/* Lift rows when using a mouse */
@media (hover: hover) and (pointer: fine) {
    .fs-table tbody tr:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
        z-index: 1;
    }
}

.fs-table tbody tr:last-child th,
.fs-table tbody tr:last-child td {
    border-bottom: 0;
}

/* Keep phone numbers and email addresses together */
.fs-table td:nth-child(3),
.fs-table td:nth-child(4) {
    white-space: nowrap;
}

/* Keyboard access to the scrolling area */
.fs-table-wrap:focus:not(:focus-visible) {
    outline: none !important;
}

.fs-table-wrap:focus-visible {
    outline: 3px solid #8c0b42 !important;
    outline-offset: 4px;
}

/* Reduced motion — keep at the end of the custom CSS file */

@media (prefers-reduced-motion: reduce) {

    /* Buttons, links, sections, navigation, and FAQ controls */
    .fs-button,
    .fs-button::before,
    .fs-button::after,
    a.fs-link,
    a.fs-link::after,
    .fs-section--hover,
    .fs-table tbody tr,
    .fs-table tbody tr:hover,
    .navbar-expand-lg .navbar-nav .dropdown-menu a,
    .navbar-expand-lg .navbar-nav .nav-link
    .fs-faq summary,
    .fs-faq summary::after {
        transition: none;
        animation: none;
    }

    /* Remove section movement */
    .fs-section--hover:hover,
    .fs-section--hover:focus-within {
        transform: none;
    }

    /* Open and close FAQ answers immediately */
    .fs-faq details::details-content {
        transition: none;
        animation: none;
    }
}
