/**
 * Norse Node
 * Copyright (c) 2026 Marwan Abdelrahman.
 * All rights reserved.
 *
 * Original source code is proprietary.
 * No permission is granted to copy, modify,
 * redistribute, sublicense, or commercially
 * exploit this software without prior written
 * authorization from the copyright holder.
 *
 * Project: Norse Node
 * Author: Marwan Abdelrahman
 */

* {
    box-sizing: border-box;
}

body.login-page {
    display: grid;
    min-height: 100vh;
    margin: 0;
    padding: 32px 20px;
    place-items: center;
    background:
        linear-gradient(rgb(0 0 0 / 58%), rgb(0 0 0 / 72%)),
        url("https://www.acentech.com/wp-content/uploads/2015/10/nku-infomatics-exterior-acentech-scaled.jpg")
        center / cover fixed,
        #080808;
    color: #f2bd45;
    font-family: Arial, Helvetica, sans-serif;
}

.login-layout {
    display: grid;
    width: min(100%, 560px);
    gap: 16px;
}

.login-card {
    width: min(100%, 480px);
    margin: 0 auto;
    padding: 48px;
    border: 1px solid rgb(242 189 69 / 55%);
    border-radius: 30px;
    background: linear-gradient(145deg, rgb(24 22 17 / 90%), rgb(8 10 13 / 88%));
    box-shadow:
        0 24px 70px rgb(0 0 0 / 55%),
        0 0 35px rgb(242 189 69 / 12%),
        inset 0 1px rgb(255 255 255 / 8%);
    backdrop-filter: blur(16px);
}

.login-header {
    margin-bottom: 36px;
    text-align: center;
}

.login-header:hover .login-eyebrow,
.login-header:hover .login-logo,
.login-header:hover .login-subtitle {
    animation: norse-node-color-shift 6s linear infinite;
}

@keyframes norse-node-color-shift {
    0% {
        color: #c05c62;
    }

    20% {
        color: #ae67a7;
    }

    40% {
        color: #696bc0;
    }

    60% {
        color: #428c9b;
    }

    80% {
        color: #639a6b;
    }

    100% {
        color: #b28a45;
    }
}

.login-eyebrow,
.login-subtitle {
    margin: 0;
    color: #c99a36;
}

.login-eyebrow {
    font-size: 0.875rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.login-logo {
    margin: 10px 0;
    color: #f2bd45;
    font-size: clamp(2.5rem, 10vw, 3.5rem);
    letter-spacing: 0.03em;
    line-height: 1.1;
}

.login-subtitle {
    font-size: 1rem;
}

.login-disclaimer {
    margin: 0;
    padding: 12px 20px;
    border: 1px solid rgb(200 50 62 / 70%);
    border-radius: 14px;
    background: rgb(74 17 22 / 86%);
    color: #ffb7b2;
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: center;
}

.login-clock {
    width: fit-content;
    margin: 0 auto;
    padding: 13px 22px 15px;
    border: 1px solid rgb(242 189 69 / 28%);
    border-radius: 18px;
    background: rgb(5 7 9 / 58%);
    box-shadow: inset 0 1px rgb(255 255 255 / 5%), 0 8px 24px rgb(0 0 0 / 22%);
    text-align: center;
}

.login-clock-label {
    margin: 0 0 4px;
    color: #e5b442;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.login-clock-location {
    margin: 0 0 9px;
    color: #d0b66f;
    font-size: 0.76rem;
    letter-spacing: 0.04em;
}

.flip-clock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #f2bd45;
    font-variant-numeric: tabular-nums;
}

.clock-digit {
    position: relative;
    display: grid;
    width: 31px;
    height: 42px;
    overflow: hidden;
    place-items: center;
    border: 1px solid rgb(242 189 69 / 32%);
    border-radius: 7px;
    background: linear-gradient(180deg, #252117 0 49%, #17150f 50% 100%);
    box-shadow: 0 3px 8px rgb(0 0 0 / 38%);
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1;
    transform-origin: center;
}

.clock-digit::after {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 1px;
    background: rgb(0 0 0 / 50%);
    content: "";
}

.clock-digit.is-flipping {
    animation: clock-digit-flip 480ms ease-in-out;
}

@keyframes clock-digit-flip {
    0% {
        transform: perspective(120px) rotateX(0);
    }

    45% {
        filter: brightness(0.72);
        transform: perspective(120px) rotateX(-82deg);
    }

    55% {
        filter: brightness(0.72);
        transform: perspective(120px) rotateX(82deg);
    }

    100% {
        transform: perspective(120px) rotateX(0);
    }
}

.clock-separator {
    padding: 0 1px;
    color: #c99a36;
    font-size: 1.35rem;
    font-weight: 700;
}

.clock-period {
    align-self: end;
    padding: 0 0 4px 5px;
    color: #c99a36;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.login-form {
    display: grid;
    gap: 20px;
}

.login-field {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

.login-field label {
    color: #f2bd45;
    font-size: 0.95rem;
}

.login-field input {
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid rgb(242 189 69 / 45%);
    border-radius: 14px;
    outline: none;
    background: rgb(5 7 9 / 78%);
    color: #fff2cf;
    font: inherit;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.login-field input:focus {
    border-color: #f2bd45;
    box-shadow: 0 0 0 3px rgb(242 189 69 / 18%), 0 0 16px rgb(242 189 69 / 15%);
}

.login-submit {
    margin-top: 8px;
    padding: 13px 18px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(100deg, #e9ad32, #f6cf69);
    color: #15100a;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    transition: box-shadow 160ms ease, transform 160ms ease;
}

.login-card > .login-submit {
    display: block;
    width: fit-content;
    margin: 8px auto 0;
}

.login-submit:hover {
    background: #f6c75b;
    box-shadow: 0 0 22px rgb(242 189 69 / 35%);
    transform: translateY(-1px);
}

.login-submit:focus-visible {
    outline: 3px solid #fff2cf;
    outline-offset: 3px;
}

.demo-access {
    margin-top: 24px;
    padding: 18px 20px;
    border: 1px solid rgb(242 189 69 / 30%);
    border-radius: 18px;
    background: rgb(5 7 9 / 48%);
}

.demo-access h2 {
    margin: 0;
    color: #f2bd45;
    font-size: 1rem;
    text-align: center;
}

.demo-credentials {
    display: grid;
    gap: 7px;
    margin: 14px 0;
    color: #e3d8c0;
    font-size: 0.9rem;
}

.demo-credentials div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.demo-credentials dt {
    color: #c99a36;
    font-weight: 700;
}

.demo-credentials dd {
    margin: 0;
}

.demo-fill-button {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid rgb(242 189 69 / 55%);
    border-radius: 999px;
    background: rgb(242 189 69 / 8%);
    color: #f2bd45;
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    transition: background-color 160ms ease, box-shadow 160ms ease;
}

.demo-fill-button:hover,
.demo-fill-button:focus-visible {
    background: rgb(242 189 69 / 16%);
    box-shadow: 0 0 18px rgb(242 189 69 / 18%);
}

.demo-fill-button:focus-visible {
    outline: 2px solid #fff2cf;
    outline-offset: 3px;
}

.login-error {
    width: min(calc(100% - 32px), 440px);
    padding: 0;
    border: 1px solid #773d37;
    border-radius: 24px;
    background: #11100f;
    color: #e15d52;
    box-shadow: 0 24px 80px rgb(0 0 0 / 70%);
}

.login-error::backdrop {
    background: rgb(0 0 0 / 78%);
    backdrop-filter: blur(5px);
}

.login-error-content {
    padding: 32px;
    text-align: center;
}

.login-error-icon {
    display: block;
    color: #88847f;
    font-size: 5.5rem;
    font-weight: 300;
    line-height: 1;
}

.login-error h2 {
    margin: 12px 0;
    color: #e15d52;
}

.login-error p {
    margin: 0;
    color: #e15d52;
    line-height: 1.6;
}

.login-error-close {
    margin-top: 24px;
    padding: 11px 24px;
    border: 1px solid #a8463e;
    border-radius: 999px;
    background: #321b19;
    color: #f0786e;
    cursor: pointer;
    font: inherit;
}

.login-direction-page {
    display: grid;
    min-height: 100vh;
    margin: 0;
    padding: 24px;
    place-items: center;
    background:
        radial-gradient(ellipse at 50% 40%, rgb(91 64 20 / 25%), transparent 55%),
        #080808;
    color: #f2bd45;
    font-family: Arial, Helvetica, sans-serif;
}

.welcome-card {
    width: min(100%, 560px);
    padding: clamp(32px, 7vw, 58px);
    border: 1px solid rgb(242 189 69 / 45%);
    border-radius: 30px;
    background: linear-gradient(145deg, rgb(24 22 17 / 94%), rgb(8 10 13 / 96%));
    box-shadow: 0 24px 70px rgb(0 0 0 / 50%), 0 0 35px rgb(242 189 69 / 10%);
    text-align: center;
}

.welcome-eyebrow {
    margin: 0 0 30px;
    color: #c99a36;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.welcome-greeting {
    margin: 0;
    color: #d9c89f;
    font-size: 1.25rem;
}

.welcome-name {
    margin: 8px 0 28px;
    color: #f2bd45;
    font-size: clamp(2rem, 7vw, 3.4rem);
    line-height: 1.1;
}

.welcome-profile {
    display: grid;
    gap: 10px;
    width: fit-content;
    margin: 0 auto;
    color: #d9c89f;
    text-align: left;
}

.welcome-profile p {
    margin: 0;
}

.welcome-profile strong {
    margin-left: 6px;
    color: #f2bd45;
}

.welcome-redirect {
    margin: 36px 0 12px;
    color: #b8a576;
    font-size: 0.92rem;
}

.welcome-redirect strong {
    color: #f2bd45;
    font-variant-numeric: tabular-nums;
}

.welcome-progress {
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: rgb(242 189 69 / 16%);
}

.welcome-progress span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #bd8125, #f2bd45);
    transform: scaleX(0);
    transform-origin: left;
    animation: welcome-progress-fill 3s linear forwards;
}

@keyframes welcome-progress-fill {
    to {
        transform: scaleX(1);
    }
}

.buildings-page {
    min-height: 100vh;
    margin: 0;
    padding: 48px 24px;
    background: #080808;
    color: #f2bd45;
    font-family: Arial, Helvetica, sans-serif;
}

.buildings-main {
    width: min(100%, 900px);
    margin: 0 auto;
}

.buildings-login-link {
    display: inline-block;
    margin-bottom: 24px;
    padding: 10px 16px;
    border: 1px solid rgb(242 189 69 / 55%);
    border-radius: 999px;
    color: #f2bd45;
    text-decoration: none;
}

.buildings-login-link:hover,
.buildings-login-link:focus-visible {
    border-color: #f2bd45;
    background: rgb(242 189 69 / 10%);
}

.site-copyright {
    position: fixed;
    right: 16px;
    bottom: 12px;
    z-index: 1;
    color: rgb(201 154 54 / 72%);
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    pointer-events: none;
}

.buildings-header {
    margin: 0 auto 28px;
    text-align: center;
}

.buildings-eyebrow {
    margin: 0 0 8px;
    color: #c99a36;
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.buildings-header h1 {
    margin: 0 0 28px;
    color: #f2bd45;
    font-size: clamp(2rem, 6vw, 3.25rem);
}

.building-search-label {
    display: block;
    margin: 0 auto 9px;
    color: #e5b442;
    text-align: left;
    width: min(100%, 680px);
}

.building-search {
    display: block;
    width: min(100%, 680px);
    margin: 0 auto;
    padding: 14px 18px;
    border: 1px solid rgb(242 189 69 / 55%);
    border-radius: 999px;
    outline: none;
    background: #11100e;
    color: #fff2cf;
    font: inherit;
}

.building-search:focus {
    border-color: #f2bd45;
    box-shadow: 0 0 0 3px rgb(242 189 69 / 18%);
}

.building-list-toolbar {
    width: min(100%, 680px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 auto 12px;
}

.building-count {
    margin: 0;
    color: #c99a36;
    font-size: 0.875rem;
}

.building-category-filter {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #e5b442;
    font-size: 0.88rem;
}

.building-category-filter select {
    max-width: 190px;
    padding: 9px 34px 9px 12px;
    border: 1px solid rgb(242 189 69 / 45%);
    border-radius: 10px;
    outline: none;
    background: #11100e;
    color: #f2bd45;
    font: inherit;
}

.building-category-filter select:focus-visible {
    border-color: #f2bd45;
    box-shadow: 0 0 0 3px rgb(242 189 69 / 18%);
}

.building-list {
    display: grid;
    width: min(100%, 680px);
    margin: 0 auto;
    gap: 12px;
}

.building-item {
    overflow: hidden;
    border: 1px solid rgb(242 189 69 / 45%);
    border-radius: 18px;
    background: linear-gradient(120deg, #17140e, #0e0f10);
    box-shadow: 0 8px 24px rgb(0 0 0 / 28%);
}

.building-link {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 22px;
    color: #f2bd45;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.building-link:hover {
    border-color: #e9ad32;
    background: linear-gradient(120deg, #241d10, #131619);
    transform: translateY(-1px);
}

.building-link:focus-visible {
    outline: 2px solid #f2bd45;
    outline-offset: 3px;
}

.building-link-arrow {
    color: #e9ad32;
    font-size: 1.7rem;
    font-weight: 400;
    line-height: 1;
}

.building-summary {
    position: relative;
    padding: 18px 56px 18px 22px;
    color: #f2bd45;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 700;
    list-style: none;
}

.building-summary::-webkit-details-marker {
    display: none;
}

.building-summary::after {
    position: absolute;
    top: 50%;
    right: 22px;
    color: #f2bd45;
    content: "+";
    font-size: 1.5rem;
    font-weight: 400;
    transform: translateY(-50%);
}

.building-item[open] .building-summary::after {
    content: "−";
}

.building-summary:focus-visible,
.building-info-link:focus-visible {
    outline: 2px solid #f2bd45;
    outline-offset: -3px;
}

.building-details {
    padding: 0 22px 22px;
    border-top: 1px solid rgb(242 189 69 / 20%);
}

.building-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
}

.building-feature {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid rgb(255 255 255 / 7%);
    color: #f3ead5;
    font-size: 0.93rem;
}

.feature-status {
    flex: 0 0 auto;
    color: #e9ad32;
    font-size: 0.82rem;
    text-align: right;
}

.feature-status-unknown {
    color: #b8a576;
}

.building-info-link {
    display: inline-block;
    margin-top: 16px;
    color: #f2bd45;
    text-decoration-color: rgb(242 189 69 / 55%);
    text-underline-offset: 4px;
}

.building-empty {
    padding: 28px;
    border: 1px dashed rgb(242 189 69 / 40%);
    border-radius: 18px;
    color: #d9c89f;
    text-align: center;
}

.building-note {
    margin: 24px 0 0;
    color: #b8a576;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
}

.building-detail-main {
    max-width: 820px;
}

.building-back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 9px 14px;
    border: 1px solid rgb(242 189 69 / 45%);
    border-radius: 999px;
    background: rgb(5 7 9 / 45%);
    color: #f2bd45;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.building-back-link:hover,
.building-back-link:focus-visible {
    border-color: #f2bd45;
    background: rgb(242 189 69 / 10%);
    outline: 2px solid #f2bd45;
    outline-offset: 2px;
}

.building-detail-header {
    margin-bottom: 32px;
    text-align: center;
}

.building-detail-header h1 {
    margin: 0 0 12px;
    color: #f2bd45;
    font-size: clamp(2rem, 6vw, 3rem);
}

.building-detail-header > p:last-child {
    margin: 0;
    color: #d9c89f;
}

.floor-placeholder {
    padding: 36px 28px;
    border: 1px solid rgb(242 189 69 / 40%);
    border-radius: 24px;
    background: linear-gradient(145deg, #17140e, #0e0f10);
    box-shadow: 0 18px 50px rgb(0 0 0 / 35%), 0 0 28px rgb(242 189 69 / 8%);
    text-align: center;
}

.floor-placeholder-icon {
    color: #e9ad32;
    font-size: 3rem;
}

.floor-placeholder h2 {
    margin: 12px 0;
    color: #f2bd45;
}

.floor-placeholder p {
    margin: 10px auto 0;
    color: #d9c89f;
    line-height: 1.6;
}

.floor-placeholder .building-info-link {
    margin-top: 22px;
}

.griffin-main {
    max-width: 1040px;
}

.griffin-header {
    margin-bottom: 24px;
    text-align: center;
}

.griffin-header h1 {
    margin: 0;
    color: #f2bd45;
    font-size: clamp(2.5rem, 7vw, 4rem);
}

.griffin-description {
    margin-bottom: 16px;
    padding: 24px 28px;
    border: 1px solid rgb(242 189 69 / 28%);
    border-radius: 20px;
    background: linear-gradient(120deg, #17140e, #0e0f10);
}

.griffin-description h2,
.griffin-floors-section h2,
.griffin-floor-card h2 {
    margin: 0 0 14px;
    color: #f2bd45;
}

.griffin-description p {
    margin: 0 0 12px;
    color: #e3d8c0;
    line-height: 1.7;
}

.griffin-description p:last-child {
    margin-bottom: 0;
}

.griffin-description h3 {
    margin: 20px 0 8px;
    color: #e9ad32;
    font-size: 1rem;
}

.albright-program-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 24px;
    margin: 0 0 18px;
    padding-left: 20px;
    color: #e3d8c0;
    line-height: 1.5;
}

.albright-recreation-notice {
    margin-bottom: 18px;
    padding: 16px 20px;
    border: 1px solid rgb(224 113 104 / 55%);
    border-left: 5px solid #df5b52;
    border-radius: 12px;
    background: rgb(71 25 23 / 42%);
    color: #f08b80;
    line-height: 1.6;
}

.albright-recreation-notice strong {
    color: #ffaaa0;
}

.griffin-description .griffin-floor-count {
    color: #e9ad32;
    font-weight: 700;
}

.griffin-overview {
    width: 100%;
}

.griffin-image {
    display: block;
    width: 100%;
    height: clamp(220px, 32vw, 340px);
    border: 1px solid rgb(242 189 69 / 30%);
    border-radius: 20px;
    background: #111;
    object-fit: cover;
}



.griffin-floor-card {
    padding: 24px;
    border: 1px solid rgb(242 189 69 / 35%);
    border-radius: 20px;
    background: linear-gradient(145deg, #17140e, #0e0f10);
    box-shadow: 0 12px 32px rgb(0 0 0 / 25%);
}

.griffin-data-note {
    margin: 0 0 16px;
    color: #b8a576;
    font-size: 0.85rem;
    line-height: 1.55;
}

.griffin-feature-list {
    display: grid;
    gap: 9px;
}

.griffin-feature {
    overflow: hidden;
    border: 1px solid rgb(242 189 69 / 25%);
    border-radius: 12px;
    background: rgb(5 7 9 / 45%);
}

.griffin-feature summary {
    position: relative;
    padding: 13px 40px 13px 15px;
    color: #f2bd45;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.griffin-feature summary::-webkit-details-marker {
    display: none;
}

.griffin-feature summary::after {
    position: absolute;
    top: 50%;
    right: 15px;
    color: #e9ad32;
    content: "+";
    font-size: 1.25rem;
    font-weight: 400;
    transform: translateY(-50%);
}

.griffin-feature[open] summary::after {
    content: "−";
}

.griffin-feature summary:focus-visible,
.griffin-floor-link:focus-visible,
.floor-restriction-close:focus-visible {
    outline: 2px solid #f2bd45;
    outline-offset: 2px;
}

.griffin-feature-description {
    margin: 0;
    padding: 0 15px 10px;
    color: #c9bea5;
    font-size: 0.86rem;
    line-height: 1.5;
}

.griffin-availability-list,
.griffin-floor-feature-list {
    margin: 0;
    padding: 0 15px 10px;
    list-style: none;
}

.griffin-availability-row,
.griffin-floor-feature {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid rgb(255 255 255 / 7%);
    color: #e3d8c0;
    font-size: 0.88rem;
}

.griffin-feature-status {
    flex: 0 0 auto;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: right;
}

.griffin-feature-status.is-available {
    color: #72c58a;
}

.griffin-feature-status.is-unavailable {
    color: #e07168;
}

.griffin-feature-status.is-unknown {
    color: #b8a576;
}

.griffin-feature-status.is-restricted {
    color: #dc8171;
}

.griffin-floors-section {
    margin-top: 16px;
}

.griffin-floors-section > h2 {
    text-align: center;
}

.griffin-floors-section > p {
    color: #d9c89f;
    text-align: center;
}

.griffin-floor-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.griffin-floor-link {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 4px 12px;
    min-height: 76px;
    padding: 15px 18px;
    border: 1px solid rgb(242 189 69 / 35%);
    border-radius: 15px;
    background: linear-gradient(120deg, #17140e, #0e0f10);
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
    text-decoration: none;
    transition: border-color 160ms ease, transform 160ms ease;
}

.griffin-floor-link:hover {
    border-color: #e9ad32;
    transform: translateY(-1px);
}

.griffin-floor-number {
    color: #f2bd45;
    font-weight: 700;
}

.griffin-floor-description {
    color: #b8a576;
    font-size: 0.82rem;
    grid-column: 1;
}

.griffin-floor-arrow {
    grid-column: 2;
    grid-row: 1 / span 2;
    color: #e9ad32;
    font-size: 1.4rem;
}

.griffin-floor-link.is-restricted-floor {
    border-color: rgb(224 113 104 / 50%);
}

.griffin-floor-link.is-restricted-floor .griffin-floor-number,
.griffin-floor-link.is-restricted-floor .griffin-floor-arrow {
    color: #e07168;
}

.griffin-floor-link.is-recreation-floor {
    border-color: rgb(224 113 104 / 48%);
}

.griffin-floor-link.is-recreation-floor .griffin-floor-number,
.griffin-floor-link.is-recreation-floor .griffin-floor-arrow {
    color: #e07168;
}

.griffin-floor-link.is-recreation-floor .griffin-floor-description {
    color: #e08a80;
}

.floor-restriction-dialog {
    width: min(calc(100% - 32px), 440px);
    padding: 0;
    border: 1px solid rgb(224 113 104 / 55%);
    border-radius: 22px;
    background: #11100f;
    color: #e07168;
    box-shadow: 0 24px 80px rgb(0 0 0 / 70%);
}

.floor-restriction-dialog::backdrop {
    background: rgb(0 0 0 / 78%);
    backdrop-filter: blur(5px);
}

.floor-restriction-content {
    padding: 30px;
    text-align: center;
}

.floor-restriction-icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    place-items: center;
    border: 2px solid #dc8171;
    border-radius: 50%;
    color: #dc8171;
    font-size: 1.6rem;
    font-weight: 700;
}

.floor-restriction-content h2 {
    margin: 0 0 10px;
    color: #e07168;
}

.floor-restriction-content p {
    margin: 0;
    color: #e8b1a7;
    line-height: 1.6;
}

.floor-restriction-close {
    margin-top: 22px;
    padding: 10px 24px;
    border: 1px solid #a8463e;
    border-radius: 999px;
    background: #321b19;
    color: #f0786e;
    cursor: pointer;
    font: inherit;
}

.griffin-floor-main {
    width: min(100%, 1200px);
    max-width: 1200px;
}

.griffin-floor-card {
    padding: 28px;
}

.room-selection-panel {
    margin-top: 16px;
}

.griffin-floor-card h2 {
    margin-top: 24px;
}

.griffin-capacity-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.griffin-capacity-grid p {
    margin: 0;
    padding: 15px;
    border: 1px solid rgb(242 189 69 / 22%);
    border-radius: 12px;
    color: #d9c89f;
    background: rgb(5 7 9 / 45%);
}

.griffin-capacity-grid strong {
    display: block;
    margin-top: 6px;
    color: #f2bd45;
}

.griffin-floor-feature-list {
    padding: 0;
}

.griffin-floor-feature {
    min-height: 48px;
}

.griffin-floor-card .griffin-data-note {
    margin: 18px 0 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

.study-servers-section {
    margin-top: 44px;
    padding-top: 30px;
    border-top: 1px solid rgb(242 189 69 / 22%);
}

.study-servers-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.study-servers-heading h2 {
    margin: 6px 0;
    color: #f2bd45;
    font-size: clamp(1.7rem, 5vw, 2.35rem);
}

.study-servers-heading p:last-child {
    margin: 0;
    color: #b8a576;
    line-height: 1.5;
}

.study-server-controls {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.create-server-button {
    flex: 0 0 auto;
    padding: 12px 18px;
    border: 1px solid rgb(242 189 69 / 55%);
    border-radius: 999px;
    background: linear-gradient(100deg, #e9ad32, #f6cf69);
    color: #15100a;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    transition: box-shadow 160ms ease, transform 160ms ease;
}

.create-server-button:hover:not(:disabled) {
    box-shadow: 0 0 20px rgb(242 189 69 / 30%);
    transform: translateY(-1px);
}

.create-server-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.create-server-button:focus-visible,
.server-search-row input:focus-visible,
.server-dialog input:focus-visible,
.server-dialog textarea:focus-visible {
    outline: 2px solid #f2bd45;
    outline-offset: 2px;
}

.server-search-row {
    margin-bottom: 14px;
}

.server-search-row input {
    width: 100%;
    padding: 13px 17px;
    border: 1px solid rgb(242 189 69 / 35%);
    border-radius: 14px;
    background: #10100f;
    color: #fff2cf;
    font: inherit;
}

.server-status {
    min-height: 24px;
    margin: 0 0 12px;
    color: #c9ad65;
    font-size: 0.9rem;
}

.server-status.is-error,
.server-form-error {
    color: #ef887d;
}

.study-server-list {
    display: grid;
    gap: 14px;
}

.study-server-card {
    display: grid;
    gap: 12px;
    padding: 20px;
    border: 1px solid rgb(242 189 69 / 30%);
    border-radius: 18px;
    background: linear-gradient(145deg, #17140e, #0e0f10);
}

.study-server-card-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.study-server-title {
    margin: 0;
    color: #f2bd45;
    font-size: 1.25rem;
}

.study-server-occupancy {
    flex: 0 0 auto;
    padding: 6px 10px;
    border: 1px solid rgb(242 189 69 / 25%);
    border-radius: 999px;
    color: #e5b442;
    font-size: 0.78rem;
}

.study-server-description,
.study-server-meta {
    margin: 0;
    color: #d9c89f;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.study-server-meta {
    color: #b8a576;
    font-size: 0.88rem;
}

.study-server-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.delete-server-button {
    border-color: rgb(239 136 125 / 65%);
    color: #ef887d;
}

.demo-reset-button {
    border-color: rgb(242 189 69 / 40%);
    background: transparent;
    color: #e5b442;
}

.demo-reset-button:hover:not(:disabled) {
    background: rgb(242 189 69 / 10%);
}

.delete-server-button:hover,
.delete-server-button:focus-visible {
    background: rgb(239 136 125 / 12%);
}

.leave-server-button {
    border-color: rgb(229 180 66 / 45%);
}

.server-dialog {
    width: min(calc(100% - 32px), 580px);
    max-height: min(88vh, 820px);
    overflow: auto;
    padding: 0;
    border: 1px solid rgb(242 189 69 / 45%);
    border-radius: 24px;
    background: #11100f;
    color: #f2bd45;
    box-shadow: 0 24px 80px rgb(0 0 0 / 75%);
}

.server-dialog::backdrop {
    background: rgb(0 0 0 / 80%);
    backdrop-filter: blur(5px);
}

.server-dialog-content {
    position: relative;
    display: grid;
    gap: 11px;
    padding: 30px;
}

.server-dialog-x {
    position: absolute;
    top: 12px;
    right: 15px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #b8a576;
    cursor: pointer;
    font-size: 1.7rem;
}

.server-dialog-content h2 {
    margin: 0;
    color: #f2bd45;
    font-size: 1.8rem;
}

.server-dialog-intro {
    margin: 0 0 5px;
    color: #b8a576;
    font-size: 0.9rem;
    line-height: 1.5;
}

.server-dialog-content label {
    color: #e5b442;
    font-size: 0.9rem;
    font-weight: 700;
}

.server-dialog input,
.server-dialog textarea {
    width: 100%;
    min-width: 0;
    padding: 11px 13px;
    border: 1px solid rgb(242 189 69 / 36%);
    border-radius: 10px;
    background: #080808;
    color: #fff2cf;
    font: inherit;
}

.server-dialog textarea {
    resize: vertical;
}

.server-time-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 4px;
}

.server-time-fields > div {
    display: grid;
    gap: 8px;
}

.server-form-error {
    min-height: 20px;
    margin: 0;
    font-size: 0.88rem;
}

.server-form-submit {
    justify-self: end;
    margin-top: 3px;
}

.study-chat-content {
    min-height: 480px;
    grid-template-rows: auto auto 1fr auto auto;
}

.study-chat-content .buildings-eyebrow {
    margin: 0;
}

.study-chat-messages {
    display: flex;
    min-height: 180px;
    max-height: 48vh;
    flex-direction: column;
    gap: 10px;
    overflow: auto;
    padding: 14px;
    border: 1px solid rgb(242 189 69 / 20%);
    border-radius: 12px;
    background: #080808;
}

.study-chat-message {
    align-self: flex-start;
    max-width: 90%;
    padding: 10px 12px;
    border: 1px solid rgb(242 189 69 / 20%);
    border-radius: 12px;
    background: #17140e;
    overflow-wrap: anywhere;
}

.study-chat-message.is-own-message {
    align-self: flex-end;
    border-color: rgb(242 189 69 / 55%);
    background: #29200e;
}

.study-chat-author {
    color: #f2bd45;
    font-size: 0.85rem;
}

.study-chat-text {
    margin: 5px 0;
    color: #f2ead8;
    white-space: pre-wrap;
}

.study-chat-time {
    color: #b8a576;
    font-size: 0.74rem;
}

.study-chat-form {
    display: flex;
    gap: 9px;
}

.study-chat-form input {
    flex: 1 1 auto;
}

@media (max-width: 420px) {
    .login-card {
        padding: 36px 24px;
    }

    .login-clock {
        padding: 12px 14px;
    }

    .clock-digit {
        width: 28px;
        height: 38px;
        font-size: 1.45rem;
    }

    .login-field {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .buildings-page {
        padding: 32px 16px;
    }

    .building-features {
        grid-template-columns: 1fr;
    }

    .building-list-toolbar {
        align-items: flex-start;
    }

    .building-category-filter {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .building-feature {
        gap: 10px;
    }

    .floor-placeholder {
        padding: 28px 20px;
    }

    .griffin-description {
        padding: 20px;
    }

    .albright-program-list {
        grid-template-columns: 1fr;
    }

    .griffin-floor-list,
    .griffin-capacity-grid {
        grid-template-columns: 1fr;
    }

    .griffin-image {
        height: 220px;
    }

    .griffin-floor-card {
        padding: 20px;
    }

    .study-servers-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .study-servers-heading .create-server-button {
        align-self: flex-start;
    }

    .study-server-controls {
        justify-content: flex-start;
    }

    .study-server-card-heading {
        flex-direction: column;
    }

    .server-time-fields {
        grid-template-columns: 1fr;
    }

    .server-dialog-content {
        padding: 26px 20px;
    }

    .study-chat-form {
        align-items: stretch;
        flex-direction: column;
    }

    .study-chat-form .create-server-button {
        align-self: flex-end;
    }
}

.building-detail-main,
.griffin-main {
    position: relative;
    width: min(100%, 1056px);
    max-width: 1056px;
}

.wide-building-detail {
    width: min(100%, 1200px);
    max-width: 1200px;
}

.large-building-detail,
.health-innovation-detail {
    width: min(100%, 1320px);
    max-width: 1320px;
}

body.building-detail-page {
    padding: 14px 24px 32px;
}

.building-detail-header,
.griffin-header {
    margin: 8px 0 12px;
    text-align: center;
}

.building-detail-header h1,
.griffin-header h1 {
    margin: 0;
    color: #ffc64e;
    font-size: clamp(2.2rem, 4.2vw, 3rem);
    line-height: 1.05;
}

.building-detail-header .buildings-eyebrow,
.griffin-header .buildings-eyebrow {
    margin-bottom: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.24em;
}

.building-about,
.griffin-description {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    margin: 0 0 14px;
    padding: 14px 28px;
    border: 1px solid rgb(242 189 69 / 35%);
    border-radius: 18px;
    background: linear-gradient(120deg, #12110d, #0e0e0e);
}

.building-about-copy {
    min-width: 0;
}

.building-about h2,
.griffin-description h2 {
    margin: 0 0 6px;
    color: #f2bd45;
    font-size: 1.4rem;
}

.building-about p,
.griffin-description p {
    margin: 0 0 6px;
    color: #e3d8c0;
    font-size: 1rem;
    line-height: 1.4;
}

.building-about p:last-child,
.griffin-description p:last-child {
    margin-bottom: 0;
}

.building-about h3 {
    margin: 14px 0 6px;
    color: #e9ad32;
    font-size: 1rem;
}

.building-facts {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 48px;
    padding-left: 22px;
    border-left: 1px solid rgb(242 189 69 / 20%);
}

.building-fact {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f2ead8;
    font-size: 0.95rem;
    white-space: nowrap;
}

.building-fact-icon {
    color: #ffb900;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.griffin-overview {
    width: 100%;
    margin-bottom: 16px;
}

.griffin-image {
    display: block;
    width: 100%;
    height: clamp(180px, 18.5vw, 212px);
    border: 1px solid rgb(242 189 69 / 50%);
    border-radius: 18px;
    background: #111;
    object-fit: cover;
}

.large-building-detail .griffin-image,
.health-innovation-detail .griffin-image {
    height: clamp(320px, 34vw, 460px);
}

.mep-building-detail .griffin-image {
    height: clamp(380px, 42vw, 520px);
}

.building-image-placeholder {
    display: grid;
    place-items: center;
    color: #b8a576;
    font-size: 1rem;
}

.building-features-section,
.griffin-floors-section {
    margin: 0 0 16px;
}

.building-features-section h2,
.griffin-floors-section > h2 {
    margin: 0 0 2px 6px;
    color: #f2bd45;
    font-size: 1.5rem;
    text-align: left;
}

.building-section-intro,
.griffin-floors-section > p {
    margin: 0 6px 10px;
    color: #e3d8c0;
    font-size: 0.94rem;
    line-height: 1.4;
    text-align: left;
}

.building-feature-list,
.griffin-feature-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 0 3px;
}

.building-feature-card {
    display: grid;
    min-height: 66px;
    grid-template-columns: 44px minmax(0, 1fr);
    align-content: center;
    align-items: center;
    gap: 3px 12px;
    padding: 10px 14px;
    border: 1px solid rgb(242 189 69 / 38%);
    border-radius: 15px;
    background: linear-gradient(120deg, #12110d, #0e0e0e);
}

.building-feature-card::before {
    grid-row: 1;
    color: #ffb900;
    content: "\25A3";
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
}

.building-feature-card:nth-child(2)::before {
    content: "\2667";
}

.building-feature-card:nth-child(3)::before {
    content: "\2301";
}

.building-feature-card:nth-child(4)::before {
    content: "\2668";
}

.building-feature-card h3 {
    margin: 0;
    color: #f2bd45;
    font-size: 0.95rem;
    line-height: 1.2;
}

.building-feature-card.is-unavailable {
    grid-column: 1 / -1;
    min-height: 54px;
}

.griffin-floor-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.griffin-floor-link {
    flex: 0 0 calc((100% - 24px) / 3);
    min-height: 72px;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 3px 12px;
    padding: 13px 18px;
    border-radius: 15px;
    background: linear-gradient(120deg, #12110d, #0e0e0e);
}

.griffin-floor-link::before {
    grid-column: 1;
    grid-row: 1 / span 2;
    color: #ffb900;
    content: "\25B1\A\25B1\A\25B1";
    font-size: 1.8rem;
    line-height: 0.45;
    text-align: center;
    white-space: pre;
}

.griffin-floor-number {
    grid-column: 2;
    font-size: 1.05rem;
}

.griffin-floor-description {
    grid-column: 2;
    font-size: 0.82rem;
}

.griffin-floor-arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
    font-size: 1.5rem;
}

.building-detail-main .floor-placeholder {
    padding: 14px 18px;
    border: 1px solid rgb(242 189 69 / 38%);
    border-radius: 15px;
    background: linear-gradient(120deg, #12110d, #0e0e0e);
    box-shadow: none;
    color: #e3d8c0;
    text-align: left;
}

.building-detail-main .floor-placeholder p {
    margin: 0;
    color: #e3d8c0;
    font-size: 0.9rem;
}

@media (max-width: 760px) {
    .large-building-detail .griffin-image,
    .health-innovation-detail .griffin-image {
        height: clamp(240px, 52vw, 340px);
    }

    .mep-building-detail .griffin-image {
        height: 280px;
    }

    .building-about,
    .griffin-description {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px 20px;
    }

    .building-facts {
        flex-wrap: wrap;
        padding: 12px 0 0;
        border-top: 1px solid rgb(242 189 69 / 20%);
        border-left: 0;
    }

    .building-feature-list,
    .griffin-feature-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .griffin-floor-link {
        flex-basis: calc((100% - 12px) / 2);
    }
}

@media (max-width: 480px) {
    body.building-detail-page {
        padding: 14px 16px 24px;
    }

    .building-detail-header h1,
    .griffin-header h1 {
        font-size: clamp(2rem, 9vw, 2.5rem);
    }

    .building-feature-list,
    .griffin-feature-list {
        grid-template-columns: 1fr;
    }

    .griffin-floor-link {
        flex-basis: 100%;
    }

    .building-feature-card {
        min-height: 62px;
    }

    .griffin-image {
        height: 190px;
    }
}

.griffin-image.full-building-image {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 560px;
    margin-inline: auto;
    object-fit: contain;
}

.buildings-page[data-floor] {
    padding: 20px 16px 40px;
}

.griffin-floor-main .building-detail-header {
    margin-bottom: 10px;
}

.griffin-floor-main .building-detail-header h1 {
    margin-bottom: 0;
    font-size: clamp(1.7rem, 4.5vw, 2.2rem);
}

.griffin-floor-main .griffin-floor-card {
    padding: 22px;
    border-radius: 18px;
}

.griffin-floor-main .griffin-floor-card > h2 {
    margin: 16px 0 8px;
    font-size: 1.2rem;
}

.griffin-floor-main .griffin-floor-feature {
    min-height: 38px;
}

.griffin-floor-main .griffin-floor-card .griffin-data-note {
    margin: 14px 0 0;
    font-size: 0.75rem;
}

.griffin-floor-main .study-servers-section {
    margin-top: 32px;
    padding-top: 22px;
}

.griffin-floor-main .study-servers-heading {
    align-items: center;
    margin-bottom: 16px;
}

.griffin-floor-main .study-servers-heading h2 {
    font-size: clamp(1.7rem, 4vw, 2rem);
}

@media (max-width: 560px) {
    .griffin-floor-main .study-servers-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .griffin-floor-main .study-servers-heading .create-server-button {
        align-self: flex-start;
    }
}