@font-face {
    font-family: Gotham;
    src: url("../fonts/Gotham-Book.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: Gotham;
    src: url("../fonts/Gotham-Medium.ttf") format("truetype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: Gotham;
    src: url("../fonts/Gotham-Bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    --bg: #f7f3e9;
    --card: #fffefa;
    --ink: #173543;
    --accent: #004f71;
    /* UHMC teal-blue */
    --accent-ink: #ffffff;
    --muted: #617680;
    --route: #e4572e;
    --teal: #087c78;
    --line: #e5e0d4;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    margin: 0;
    height: 100%;
    background: var(--bg);
    color: var(--ink);
    font-family: Gotham, "Gotham Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    user-select: none;
    -webkit-user-select: none;
    overflow: hidden;
    /* cursor: none;  <- turn this back on for the real kiosk */
}

button,
input,
select,
textarea {
    font-family: inherit;
}

body {
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 104px;
    padding: 15px 32px;
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: 0 5px 18px rgba(0, 48, 69, .16);
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-mark {
    width: 58px;
    height: 58px;
    padding: 4px;
    border: 2px solid rgba(255, 255, 255, .7);
    border-radius: 18px;
    background: #fff;
    object-fit: contain;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .12);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.brand-copy strong {
    font-size: 23px;
    line-height: 1.1;
    letter-spacing: .3px;
}

.brand-copy span {
    color: #d8eaf0;
    font-size: 15px;
}

.topbar-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.open-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7aa575;
}

#clock {
    color: #d8eaf0;
    font-size: 20px;
    font-variant-numeric: tabular-nums;
}

main {
    flex: 1;
    overflow-y: auto;
    padding: 28px clamp(22px, 3vw, 52px);
    background:
        radial-gradient(ellipse at 92% 3%, rgba(196, 226, 214, .42), transparent 30%),
        var(--bg);
}

h2 {
    color: var(--accent);
    font-size: 40px;
    letter-spacing: -.5px;
    margin: 0 0 20px;
}

.home-screen {
    display: flex;
    width: min(100%, 1300px);
    min-height: 100%;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    margin: 0 auto;
    padding: 32px 0;
}

.home-heading {
    text-align: center;
}

.home-heading .home-kicker {
    margin: 0 0 8px;
    color: var(--teal);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .16em;
}

.home-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(32px, 3vw, 46px);
}

.home-heading > p:last-child {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 19px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-content: center;
    perspective: 1200px;
}

.menu-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 190px;
    flex-direction: column;
    grid-column: auto;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
    border: 2px solid #e3ded2;
    border-radius: 28px;
    background: linear-gradient(145deg, #fffefa 15%, var(--menu-wash) 180%);
    color: var(--ink);
    text-align: center;
    box-shadow: 0 8px 0 rgba(23, 53, 67, .045), 0 12px 24px rgba(23, 53, 67, .075);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    animation: menu-card-arrive .45s cubic-bezier(.2, .75, .3, 1.15) both;
    transition: transform .2s cubic-bezier(.2, .75, .3, 1.2), box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}

.menu-card::before {
    position: absolute;
    top: 0;
    right: 24px;
    left: 24px;
    height: 7px;
    border-radius: 0 0 8px 8px;
    background: var(--menu-ink);
    content: "";
    opacity: .8;
    transition: left .2s ease, right .2s ease, height .2s ease;
}

.menu-card::after {
    position: absolute;
    right: -45px;
    bottom: -74px;
    width: 170px;
    height: 170px;
    border: 18px solid rgba(255, 255, 255, .46);
    border-radius: 50%;
    background: var(--menu-tint);
    content: "";
    opacity: .68;
    transition: transform .35s cubic-bezier(.2, .75, .3, 1.2), opacity .2s ease;
}

.menu-card-map { --menu-tint: #bce8e1; --menu-wash: #f0fbf7; --menu-ink: #087c78; }
.menu-card-directory { --menu-tint: #ffd3c2; --menu-wash: #fff5ef; --menu-ink: #b94d35; }
.menu-card-schedule { --menu-tint: #cfddff; --menu-wash: #f2f5ff; --menu-ink: #315fb1; }
.menu-card-events { --menu-tint: #ffe3a2; --menu-wash: #fff9e9; --menu-ink: #9a6900; }
.menu-card-campus { --menu-tint: #d3e9bd; --menu-wash: #f5faed; --menu-ink: #47783a; }
.menu-card-feedback { --menu-tint: #bce7e6; --menu-wash: #effaf9; --menu-ink: #087c78; }
.menu-card-programs { --menu-tint: #d8c9f3; --menu-wash: #f7f3ff; --menu-ink: #6747a5; }
.menu-card-jobs { --menu-tint: #b8dcef; --menu-wash: #f0f8fc; --menu-ink: #28678a; }

.menu-card:nth-child(2) { animation-delay: 60ms; }
.menu-card:nth-child(3) { animation-delay: 120ms; }
.menu-card:nth-child(4) { animation-delay: 180ms; }
.menu-card:nth-child(5) { animation-delay: 240ms; }
.menu-card:nth-child(6) { animation-delay: 300ms; }
.menu-card:nth-child(7) { animation-delay: 360ms; }
.menu-card:nth-child(8) { animation-delay: 420ms; }

@keyframes menu-card-arrive {
    from { opacity: 0; transform: translateY(18px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.menu-card-map {
    min-height: 205px;
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-start;
    gap: 30px;
    padding: 30px 42px;
    text-align: left;
}

.menu-card-map::before {
    top: 28px;
    right: auto;
    bottom: 28px;
    left: 0;
    width: 8px;
    height: auto;
    border-radius: 0 8px 8px 0;
}

.menu-card.menu-card-map:hover::before {
    top: 20px;
    right: auto;
    bottom: 20px;
    left: 0;
    width: 10px;
    height: auto;
}

.menu-card-copy {
    position: relative;
    z-index: 1;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.menu-card-map .menu-card-copy {
    align-items: flex-start;
    text-align: left;
}

.menu-card-map .menu-icon {
    width: 96px;
    height: 96px;
    flex: 0 0 auto;
    margin: 0;
    border-radius: 30px;
}

.menu-card-map .menu-icon svg {
    width: 54px;
    height: 54px;
}

.menu-card-map .menu-card-title {
    font-size: 32px;
}

.menu-card-map .menu-card-description {
    max-width: 600px;
    font-size: 20px;
}

.menu-card:hover {
    z-index: 1;
    transform: translateY(-7px) rotateX(1deg);
    border-color: var(--menu-ink);
    box-shadow: 0 9px 0 rgba(23, 53, 67, .035), 0 20px 30px rgba(23, 53, 67, .15);
}

.menu-card:hover::before {
    right: 16px;
    left: 16px;
    height: 9px;
}

.menu-card:hover::after {
    transform: scale(1.18) translate(-7px, -7px);
    opacity: .9;
}

.menu-card:active {
    transform: translateY(3px) scale(.965);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--menu-ink) 18%, transparent), 0 2px 0 rgba(23, 53, 67, .05), inset 0 2px 5px rgba(23, 53, 67, .06);
}

.menu-card:active::after {
    transform: scale(1.25) translate(-10px, -10px);
    opacity: 1;
}

.menu-card:active .menu-icon {
    transform: translateY(2px) scale(.88) rotate(-7deg);
    box-shadow: 0 1px 3px rgba(23, 53, 67, .08);
}

.menu-card:focus-visible,
.home-button:focus-visible {
    outline: 4px solid #f2b36f;
    outline-offset: 3px;
}

.menu-icon,
.menu-card-title,
.menu-card-description,
.menu-card-copy {
    position: relative;
    z-index: 1;
}

.menu-icon {
    display: grid;
    width: 78px;
    height: 78px;
    margin-bottom: 19px;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, .8);
    border-radius: 24px;
    background: var(--menu-tint);
    color: var(--menu-ink);
    box-shadow: 0 5px 0 rgba(23, 53, 67, .055), 0 9px 14px rgba(23, 53, 67, .09);
    transition: transform .24s cubic-bezier(.2, .75, .3, 1.3), box-shadow .2s ease;
}

.menu-icon svg {
    width: 44px;
    height: 44px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    overflow: visible;
    transition: transform .24s cubic-bezier(.2, .75, .3, 1.3);
}

.menu-card:hover .menu-icon {
    transform: translateY(-3px) rotate(-5deg) scale(1.08);
    box-shadow: 0 7px 0 rgba(23, 53, 67, .055), 0 13px 18px rgba(23, 53, 67, .12);
}

.menu-card:hover .menu-icon svg {
    transform: scale(1.08);
}

.menu-card-title {
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.menu-card-description {
    max-width: 320px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.45;
}

.map-search {
    display: grid;
    grid-template-columns: minmax(220px, .7fr) minmax(320px, 1.3fr);
    align-items: center;
    column-gap: 28px;
    max-width: 1440px;
    margin: 0 auto 18px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--card);
    box-shadow: 0 5px 16px rgba(23, 53, 67, .055);
}

.map-search-copy .map-search-kicker {
    margin: 0 0 4px;
    color: var(--teal);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .13em;
}

.map-search-copy h2 {
    margin: 0;
    font-size: 30px;
}

.map-search-copy > p:last-child {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 16px;
}

.map-search input[type=search] {
    min-width: 0;
    min-height: 62px;
    margin: 0;
    padding: 14px 18px;
    font-size: 22px;
}

.map-search input[type=search]:focus-visible {
    outline: 4px solid rgba(8, 124, 120, .2);
    border-color: var(--teal);
}

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

.room-results {
    display: grid;
    grid-column: 2;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
    margin-top: 10px;
}

.room-result {
    display: flex;
    min-height: 56px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    touch-action: manipulation;
}

.room-result:hover,
.room-result:focus-visible {
    border-color: var(--teal);
    background: #f0fbf7;
}

.room-result:focus-visible {
    outline: 3px solid rgba(8, 124, 120, .25);
    outline-offset: 2px;
}

.room-result-title {
    font-size: 18px;
    font-weight: 700;
}

.room-result-sub,
.room-result-empty {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

.room-result-empty {
    padding: 10px 0;
}

.map-overview {
    max-width: 1440px;
    margin: 0 auto 12px;
}

.mapwrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 1440px;
    margin: 0 auto;
    overflow: hidden;
}

.map-frame-heading {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 2px 8px 8px;
    border-bottom: 1px solid var(--line);
}

.map-frame-title {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.map-floor-number {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 14px;
    background: #e4f3ef;
    color: var(--teal);
    font-size: 23px;
    font-weight: 700;
}

.map-frame-title > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.map-frame-title strong {
    color: var(--ink);
    font-size: 17px;
}

.map-frame-title small {
    color: var(--muted);
    font-size: 13px;
}

.map-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 16px;
    color: var(--muted);
    font-size: 13px;
}

.map-legend > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.map-legend i {
    display: inline-block;
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
    border: 1.5px solid #387a85;
    border-radius: 4px;
    background: #e4f3ef;
}

.map-legend .legend-selected {
    border-color: #b77812;
    background: #ffe4a8;
}

.map-legend .legend-route {
    width: 18px;
    height: 4px;
    border: 0;
    border-radius: 999px;
    background: var(--route);
}

.map-legend .legend-kiosk {
    border-color: #fff;
    border-radius: 50%;
    background: #087c78;
    box-shadow: 0 0 0 1px #087c78;
}

.floor-controls {
    justify-content: center;
    gap: 8px;
    width: fit-content;
    margin: 14px auto 18px;
    padding: 6px;
    border: 1px solid #dfe7e2;
    border-radius: 22px;
    background: rgba(255, 254, 250, .85);
}

.floor-controls .btn {
    min-width: 180px;
    border-radius: 16px;
}

.steps,
.detail {
    max-width: 1440px;
    margin-right: auto;
    margin-left: auto;
}

@media (hover: none) {
    .menu-card:active {
        border-color: var(--menu-ink);
        background: var(--menu-wash);
    }
}

.page-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1440px;
    margin: 0 auto 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(23, 53, 67, .12);
}

.home-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    gap: 9px;
    padding: 8px 15px 8px 9px;
    border: 1px solid #d5e0dd;
    border-radius: 16px;
    background: #fffefa;
    color: var(--accent);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(23, 53, 67, .05);
    transition: transform .16s cubic-bezier(.2, .8, .2, 1.2), box-shadow .16s ease, background-color .16s ease;
}

.home-button:hover {
    background: #eaf5f1;
}

.home-button:active {
    transform: translateY(2px) scale(.96);
    background: #eaf5f1;
    box-shadow: 0 0 0 4px rgba(8, 124, 120, .15), inset 0 2px 4px rgba(23, 53, 67, .12);
}

.home-button-icon {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 10px;
    background: #d9f1ef;
    color: var(--teal);
    font-size: 23px;
    line-height: 1;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--accent);
    font-size: 15px;
    font-weight: 700;
}

.page-breadcrumb span {
    color: #819198;
    font-weight: 500;
}

#view[data-section="map"] { --section-ink: #087c78; --section-wash: #e4f3ef; }
#view[data-section="directory"] { --section-ink: #a94732; --section-wash: #fbebe4; }
#view[data-section="schedule"] { --section-ink: #315fb1; --section-wash: #eaf0ff; }
#view[data-section="events"] { --section-ink: #8b5f00; --section-wash: #fff3d4; }
#view[data-section="campus"] { --section-ink: #47783a; --section-wash: #eaf3df; }
#view[data-section="jobs"] { --section-ink: #087c78; --section-wash: #e4f3ef; }

#view[data-section] {
    background:
        radial-gradient(ellipse at 96% 0, var(--section-wash), transparent 38%),
        transparent;
}

#view[data-section] .page-toolbar {
    border-bottom: 2px solid color-mix(in srgb, var(--section-ink) 24%, transparent);
}

#view[data-section] .section-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--section-ink) 15%, white);
    border-radius: 14px;
    background: var(--section-wash);
    color: var(--section-ink);
}

#view[data-section] .section-mark svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

#view[data-section] .page-breadcrumb {
    color: var(--section-ink);
}

#view[data-section] h2 {
    color: var(--section-ink);
}

#view[data-section] .btn:not(.alt) {
    background: var(--section-ink);
    box-shadow: 0 5px 12px color-mix(in srgb, var(--section-ink) 20%, transparent);
}

#view[data-section] .btn.alt {
    border-color: color-mix(in srgb, var(--section-ink) 20%, white);
    background: color-mix(in srgb, var(--section-wash) 56%, white);
    color: var(--section-ink);
}

#view[data-section] .card {
    border-left: 5px solid color-mix(in srgb, var(--section-ink) 54%, white);
}

#view[data-section] .mapwrap,
#view[data-section] .detail,
#view[data-section] .qrbox .qr {
    border-color: color-mix(in srgb, var(--section-ink) 22%, white);
}

#view[data-section] .mapwrap {
    border-top: 5px solid var(--section-ink);
}

#view[data-section] .detail {
    border-left: 6px solid var(--section-ink);
}

#view[data-section] input[type=search] {
    border-color: color-mix(in srgb, var(--section-ink) 25%, white);
}

#view[data-section] input[type=search]:focus {
    border-color: var(--section-ink);
}

.btn {
    min-height: 64px;
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 22px 34px;
    font-size: 30px;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 700;
    box-shadow: 0 5px 12px rgba(0, 79, 113, .16);
    cursor: pointer;
    touch-action: manipulation;
    transition: transform .18s cubic-bezier(.2, .8, .2, 1.2), box-shadow .18s ease, background-color .16s ease, filter .16s ease;
}

.btn.alt {
    border-color: #d9e3e3;
    background: #fffefa;
    color: var(--ink);
    box-shadow: 0 3px 9px rgba(23, 53, 67, .06);
}

.btn.on {
    background: var(--teal);
    color: #fff;
    box-shadow: 0 5px 14px rgba(8, 124, 120, .25);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(23, 53, 67, .14);
}

.btn:active {
    transform: translateY(2px) scale(.965);
    filter: brightness(1.08);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--section-ink, var(--accent)) 18%, transparent), inset 0 2px 5px rgba(0, 35, 48, .2);
}

.btn:focus-visible,
input[type=search]:focus-visible {
    outline: 4px solid #f2b36f;
    outline-offset: 3px;
}

.row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 24px 28px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 16px rgba(23, 53, 67, .065);
}

.card .main {
    font-size: 32px;
    font-weight: 600;
    color: var(--ink);
}

.card .sub {
    font-size: 26px;
    color: var(--muted);
    margin-top: 4px;
}

input[type=search] {
    width: 100%;
    font-size: 34px;
    padding: 20px 24px;
    border-radius: 20px;
    border: 2px solid #d5e0dd;
    margin-bottom: 20px;
    color: var(--ink);
    background: #fffefa;
    box-shadow: 0 4px 12px rgba(23, 53, 67, .04);
    user-select: text;
}

/* map */
.mapwrap {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 14px;
    box-shadow: 0 7px 22px rgba(23, 53, 67, .08);
}

svg.map {
    width: 100%;
    height: auto;
    display: block;
}

svg.map .room {
    fill: rgba(193, 230, 221, .48);
    stroke: rgba(0, 79, 113, .55);
    stroke-width: 1.8;
    vector-effect: non-scaling-stroke;
    transition: fill .16s ease, stroke .16s ease, stroke-width .16s ease;
}

svg.map .room-classroom {
    fill: rgba(199, 218, 249, .52);
    stroke: rgba(52, 94, 155, .6);
}

svg.map .room-restroom {
    fill: rgba(255, 231, 183, .58);
    stroke: rgba(155, 108, 24, .62);
}

svg.map g[data-room] {
    cursor: pointer;
    outline: none;
}

svg.map g[data-room]:hover .room,
svg.map g[data-room]:focus-visible .room {
    fill: rgba(155, 219, 205, .88);
    stroke: #006a72;
    stroke-width: 3;
}

svg.map .room.sel {
    fill: rgba(255, 218, 133, .9);
    stroke: #a96300;
    stroke-width: 3.5;
}

svg.map .rlabel {
    fill: #123543;
    paint-order: stroke;
    stroke: rgba(255, 255, 255, .96);
    stroke-width: 3.5px;
    stroke-linejoin: round;
    text-anchor: middle;
    dominant-baseline: central;
    font-weight: 700;
    pointer-events: none;
}

svg.map .path-underlay,
svg.map .path {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    pointer-events: none;
}

svg.map .path-underlay {
    stroke: rgba(255, 255, 255, .96);
    stroke-width: 13;
}

svg.map .path {
    stroke: var(--route);
    stroke-width: 7;
}

svg.map .route-destination-halo {
    fill: rgba(228, 87, 46, .22);
    pointer-events: none;
}

svg.map .route-destination {
    fill: var(--route);
    stroke: #fff;
    stroke-width: 3;
    vector-effect: non-scaling-stroke;
    pointer-events: none;
}

svg.map .kiosk-marker {
    pointer-events: none;
}

svg.map .kiosk-halo {
    fill: rgba(8, 124, 120, .18);
    transform-box: fill-box;
    transform-origin: center;
    animation: kiosk-location-pulse 2.2s ease-out infinite;
}

@keyframes kiosk-location-pulse {
    0% {
        opacity: .8;
        transform: scale(.65);
    }

    70%, 100% {
        opacity: 0;
        transform: scale(1.55);
    }
}

svg.map .you {
    fill: #087c78;
    stroke: #fff;
    stroke-width: 3;
    vector-effect: non-scaling-stroke;
}

svg.map .kiosk-center {
    fill: none;
    stroke: #fff;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

svg.map .youlabel-bg {
    fill: #075d66;
    stroke: #fff;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

svg.map .youlabel {
    fill: #fff;
    font-size: 10px;
    font-weight: 700;
    text-anchor: middle;
    letter-spacing: .3px;
    pointer-events: none;
}

@keyframes dash {
    to {
        stroke-dashoffset: -24;
    }
}

.steps {
    font-size: 30px;
    margin: 20px 0;
}

.detail {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 20px 28px;
    margin: 16px 0;
    font-size: 28px;
    box-shadow: 0 5px 16px rgba(23, 53, 67, .065);
}

.detail b {
    font-size: 34px;
}

.detail .sub {
    color: var(--muted);
}

/* QR */
.qrbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
}

.qrbox .qr {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
}

.qrbox .url {
    font-size: 24px;
    color: var(--muted);
    word-break: break-all;
    text-align: center; 
}

.qr-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.qr-link a {
    line-height: 1.25;
}

.qr-link .qr-mini {
    flex: 0 0 auto;
    width: 132px;
    height: 132px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.qr-link .qr-mini canvas,
.qr-link .qr-mini img {
    display: block;
    width: 118px !important;
    height: 118px !important;
}

/* live google map */
.campus-map-frame {
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 18px;
    background: #dde3e8;
}

.gmap {
    width: 100%;
    height: 680px;
    border: 0;
    display: block;
    background: #dde3e8;
}

.campus-map-zoom {
    position: absolute;
    top: 20px;
    right: 20px;
    display: grid;
    gap: 8px;
}

.campus-map-zoom button {
    width: 64px;
    height: 64px;
    padding: 0;
    border: 2px solid #d5e0dd;
    border-radius: 16px;
    color: var(--accent);
    background: #fffefa;
    font-size: 38px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(23, 53, 67, .18);
    cursor: pointer;
    touch-action: manipulation;
}

.campus-map-zoom button:active {
    background: #eaf5f1;
    transform: scale(.96);
}

.campus-map-zoom button:focus-visible {
    outline: 4px solid #f2b36f;
    outline-offset: 3px;
}

.campus-map-zoom button:disabled {
    opacity: .5;
    cursor: default;
}

.campus-screen {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    gap: 12px;
}

.campus-screen > h2 {
    margin-bottom: 0;
}

.campus-instructions {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.campus-map-content {
    display: grid;
    min-height: 360px;
    grid-template-columns: minmax(0, 1fr) 250px;
    align-items: stretch;
    gap: 16px;
}

.campus-map-frame {
    min-height: 0;
    height: 100%;
    margin: 0;
}

.campus-map-frame .gmap {
    height: 100%;
    min-height: 0;
}

.campus-full-map {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--card);
    box-shadow: 0 5px 16px rgba(23, 53, 67, .065);
}

.campus-full-map .qrbox {
    gap: 10px;
    margin: 0;
}

.campus-full-map .qrbox h2 {
    margin: 0;
    font-size: 22px;
    text-align: center;
}

.campus-full-map .qrbox .qr {
    padding: 8px;
}

.campus-full-map .qrbox .qr canvas,
.campus-full-map .qrbox .qr img {
    display: block;
    width: 176px !important;
    height: 176px !important;
}

.campus-full-map .qrbox .url {
    font-size: 14px;
}

.campus-buildings {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.campus-buildings .btn {
    min-width: 0;
    min-height: 58px;
    padding: 10px 14px;
    font-size: 18px;
    line-height: 1.2;
}

.campus-qr-modal {
    position: absolute;
    z-index: 1050;
    inset: 76px 0 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(8, 28, 38, .68);
}

#view[data-section="campus"] {
    position: relative;
}

#view[data-section="campus"] > .page-toolbar {
    position: relative;
    z-index: 1060;
}

.campus-qr-dialog {
    position: relative;
    width: min(100%, 520px);
    padding: 36px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--card);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}

.campus-qr-dialog .qrbox {
    gap: 12px;
    margin: 0;
}

.campus-qr-dialog .qrbox h2 {
    margin: 0;
    font-size: 26px;
    text-align: center;
}

.campus-qr-dialog .qrbox .qr {
    padding: 12px;
}

.campus-qr-dialog .qrbox .qr canvas,
.campus-qr-dialog .qrbox .qr img {
    display: block;
    width: 240px !important;
    height: 240px !important;
}

.campus-qr-dialog .qrbox .url {
    font-size: 16px;
}

.campus-qr-close {
    position: absolute;
    top: 10px;
    right: 12px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #eaf3ef;
    color: var(--accent);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.campus-qr-close:focus-visible {
    outline: 4px solid #f2b36f;
    outline-offset: 3px;
}

.business-programs-screen,
.job-opportunities-screen,
.feedback-screen {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    gap: 12px;
}

.business-programs-screen > h2,
.job-opportunities-screen > h2,
.feedback-screen > h2 {
    margin-bottom: 0;
}

.business-programs-intro,
.job-opportunities-intro {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.35;
}

.business-program-grid,
.job-opportunities-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 14px;
}

.business-program-card,
.job-opportunity-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--card);
    box-shadow: 0 5px 16px rgba(23, 53, 67, .065);
}

.business-program-card h3,
.job-opportunity-card h3 {
    margin: 0 0 8px;
    color: var(--section-ink, var(--accent));
    font-size: 21px;
    line-height: 1.25;
}

.business-program-card p {
    margin: 8px 0 12px;
    font-size: 16px;
    line-height: 1.4;
}

.business-program-card .business-program-credential {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.business-program-card a,
.job-opportunity-card a {
    color: var(--section-ink, var(--accent));
    font-size: 15px;
    font-weight: 700;
}

.job-opportunity-card ul {
    display: grid;
    gap: 5px;
    margin: 0 0 14px;
    padding-left: 20px;
    font-size: 15px;
    line-height: 1.3;
}

.live-jobs-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 18px;
    border: 1px solid #c8dfe9;
    border-radius: 18px;
    background: #f0f8fc;
}

.live-jobs-callout p {
    margin: 0;
    color: var(--ink);
    font-size: 16px;
}

.live-jobs-callout .btn {
    min-height: 48px;
    padding: 10px 18px;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.live-jobs-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.live-jobs-scan {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.live-jobs-scan .qr {
    width: 180px;
    height: 180px;
    padding: 8px;
    border: 2px solid #173543;
    border-radius: 12px;
    background: #fff;
}

.live-jobs-scan .qr canvas,
.live-jobs-scan .qr img {
    display: block;
    width: 164px !important;
    height: 164px !important;
    image-rendering: pixelated;
}

.feedback-screen {
    width: min(100%, 1000px);
    justify-content: center;
    margin: 0 auto;
}

.feedback-intro {
    margin: 0;
    color: var(--ink);
    font-size: 24px;
    font-weight: 700;
}

.feedback-welcome {
    margin: -6px 0 4px;
    color: var(--muted);
    font-size: 18px;
}

.feedback-topics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--card);
}

.feedback-topics legend {
    padding: 0 8px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 700;
}

.feedback-topics label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    font-size: 16px;
}

.feedback-topics input {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    margin: 0;
    accent-color: var(--teal);
}

.feedback-response-label {
    margin-top: 4px;
    font-size: 17px;
    font-weight: 700;
}

.feedback-screen textarea {
    min-height: 100px;
    margin: 0;
    resize: vertical;
    font-size: 18px;
}

.feedback-screen .btn:disabled {
    opacity: .58;
    cursor: not-allowed;
}

.feedback-status {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

body.splash-active {
    overflow: hidden;
}

.splash-screen {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: flex;
    overflow: hidden;
    color: #064b5d;
    background:
        radial-gradient(ellipse at 18% 22%, rgba(255, 255, 255, .96), transparent 48%),
        #fff8ed;
    isolation: isolate;
    opacity: 1;
    visibility: visible;
    transition: opacity .8s ease, visibility .8s ease;
}

.splash-screen::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 180'%3E%3Cfilter id='paper'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paper)' opacity='.34'/%3E%3C/svg%3E");
    content: "";
    opacity: .38;
    pointer-events: none;
    mix-blend-mode: multiply;
}

.splash-screen.is-exiting {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-screen[hidden] {
    display: none;
}

.splash-content {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(100%, 1680px);
    height: 100%;
    grid-template-rows: auto minmax(0, 1fr) auto;
    margin: 0 auto;
    padding: clamp(24px, 3.2vh, 42px) clamp(28px, 5vw, 82px) clamp(20px, 2.8vh, 36px);
}

.splash-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 0;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #084f61;
    box-shadow: none;
}

.splash-brand-mark {
    display: grid;
    width: 68px;
    height: 68px;
    flex: 0 0 auto;
    place-items: center;
    padding: 6px;
    border: 1px solid rgba(4, 79, 97, .12);
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 5px 12px rgba(4, 79, 97, .1);
}

.splash-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.splash-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.splash-brand-copy strong {
    font-size: 22px;
    line-height: 1.15;
}

.splash-brand-copy span {
    color: #52717a;
    font-size: 16px;
}

.splash-clock {
    margin-left: auto;
    color: #52717a;
    font-size: 20px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.splash-main {
    position: relative;
    display: grid;
    min-height: 0;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    align-items: center;
    gap: 0;
}

.splash-copy {
    position: relative;
    z-index: 2;
    padding: 14px 0 20px;
    text-align: center;
}

.splash-kicker {
    margin: 0 0 19px;
    color: #08718a;
    font-size: clamp(15px, 1.45vw, 21px);
    font-weight: 700;
    letter-spacing: .24em;
}

.splash-content h1 {
    margin: 0;
    color: #064b5d;
    font-size: clamp(52px, 5.2vw, 88px);
    font-weight: 700;
    letter-spacing: -.055em;
    line-height: .96;
}

.splash-intro {
    margin: 20px 0 0;
    color: #71858a;
    font-size: clamp(17px, 1.55vw, 23px);
    font-weight: 400;
    line-height: 1.3;
}

.splash-illustration {
    position: relative;
    display: grid;
    width: min(100%, 620px);
    min-width: 0;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    justify-self: center;
    place-items: center;
}

.splash-student {
    position: absolute;
    inset: 16px 0;
    display: block;
    width: 100%;
    height: calc(100% - 32px);
    transform-origin: 50% 92%;
    animation: student-greeting 6s ease-in-out infinite;
}

.splash-student-forearm {
    transform-box: fill-box;
    transform-origin: 26% 92%;
    animation: splash-forearm-wave 6.4s ease-in-out infinite;
}

@media (max-height: 760px) and (orientation: landscape) {
    .splash-content {
        padding-top: 20px;
        padding-bottom: 16px;
    }

    .splash-brand-mark {
        width: 52px;
        height: 52px;
        border-radius: 15px;
    }

    .splash-brand-copy strong {
        font-size: 19px;
    }

    .splash-brand-copy span {
        font-size: 12px;
    }

    .splash-content h1 {
        font-size: clamp(44px, 5vw, 68px);
    }

    .splash-kicker {
        margin-bottom: 12px;
    }

    .splash-intro {
        margin-top: 14px;
    }

    .splash-enter {
        min-height: 76px;
    }

    .splash-caption {
        margin-top: 10px;
    }
}

.splash-enter {
    position: relative;
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: min(560px, 100%);
    min-height: 100px;
    margin: 0 auto;
    padding: 14px 32px;
    border: 2px solid rgba(255, 255, 255, .68);
    border-radius: 999px;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .13), transparent 58%),
        linear-gradient(115deg, #0b8997, #00647b);
    box-shadow: 0 10px 24px rgba(0, 77, 95, .2), inset 0 1px 0 rgba(255, 255, 255, .24);
    font-size: clamp(27px, 3.1vw, 44px);
    font-weight: 700;
    cursor: pointer;
    touch-action: manipulation;
    user-select: none;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.splash-enter::before {
    position: absolute;
    z-index: 0;
    top: -50%;
    bottom: -50%;
    left: -55%;
    width: 38%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .42), transparent);
    content: "";
    pointer-events: none;
    transform: skewX(-22deg);
    animation: splash-button-shine 4.8s ease-in-out 1s infinite;
}

.splash-actions {
    width: min(760px, 100%);
    justify-self: center;
    padding-top: 6px;
    text-align: center;
}

.splash-tap-icon {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.splash-tap-icon-wrap {
    position: relative;
    z-index: 1;
    display: grid;
    width: 68px;
    height: 68px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, .18), 0 2px 6px rgba(0, 48, 62, .12);
    transition: transform .18s ease, background .18s ease;
}

.splash-enter-label {
    position: relative;
    z-index: 1;
    pointer-events: none;
    letter-spacing: -.02em;
}

.splash-enter:active {
    transform: translateY(3px) scale(.97);
    filter: brightness(1.08);
    box-shadow: 0 0 0 5px rgba(11, 137, 151, .2), 0 4px 10px rgba(0, 77, 95, .18), inset 0 2px 5px rgba(0, 48, 62, .2);
}

.splash-enter:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 15px 28px rgba(0, 77, 95, .24), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.splash-enter:hover .splash-tap-icon-wrap {
    transform: scale(1.04);
    background: rgba(255, 255, 255, .22);
}

.splash-enter:focus-visible {
    outline: 5px solid #e6a759;
    outline-offset: 5px;
}

@keyframes splash-button-shine {
    0%, 18% { left: -55%; }
    62%, 100% { left: 125%; }
}

.splash-caption {
    display: block;
    margin-top: 20px;
    color: #607981;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.7px;
    text-align: center;
}

.splash-caption span {
    padding: 0 5px;
    color: #2d9a9a;
}

.idle-warning {
    position: fixed;
    z-index: 1100;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 48px;
    background: rgba(3, 32, 45, .72);
}

.idle-warning[hidden] {
    display: none;
}

.idle-warning-card {
    width: min(100%, 760px);
    padding: 64px;
    border-radius: 30px;
    color: var(--ink);
    background: var(--card);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
    text-align: center;
}

.idle-warning-kicker {
    color: var(--accent);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.idle-warning-card h2 {
    margin: 22px 0 16px;
    font-size: 54px;
    letter-spacing: -1.5px;
}

.idle-warning-card p {
    margin: 0;
    color: var(--muted);
    font-size: 26px;
    line-height: 1.45;
}

.idle-warning-card p strong {
    color: var(--accent);
}

.idle-stay-button {
    min-width: 420px;
    min-height: 100px;
    margin-top: 36px;
    padding: 16px 30px;
    border: 0;
    border-radius: 20px;
    color: #fff;
    background: var(--accent);
    font-size: 30px;
    font-weight: 700;
    cursor: pointer;
    touch-action: manipulation;
    transition: transform .18s cubic-bezier(.2, .8, .2, 1.2), box-shadow .18s ease, filter .16s ease;
}

.idle-stay-button:active {
    transform: translateY(3px) scale(.97);
    filter: brightness(1.08);
    box-shadow: 0 0 0 5px rgba(0, 79, 113, .2), inset 0 2px 5px rgba(0, 35, 48, .2);
}

@keyframes student-greeting {
    0%, 100% { transform: translateY(0) rotate(-.35deg); }
    50% { transform: translateY(-4px) rotate(.35deg); }
}

@keyframes splash-forearm-wave {
    0%, 19%, 100% { transform: rotate(0); }
    4% { transform: rotate(-7deg); }
    9% { transform: rotate(7deg); }
    14% { transform: rotate(-7deg); }
}

@media (orientation: portrait) {
    .splash-content {
        padding: 24px clamp(22px, 5vw, 48px);
    }

    .splash-copy {
        padding: 28px 0 6px;
    }

    .splash-kicker {
        margin-bottom: 15px;
        font-size: clamp(14px, 2.7vw, 20px);
    }

    .splash-content h1 {
        font-size: clamp(48px, 9.4vw, 78px);
    }

    .splash-intro {
        margin-top: 15px;
        font-size: clamp(16px, 3.2vw, 21px);
    }

    .splash-illustration {
        position: relative;
        z-index: 1;
        width: 100vw;
        min-height: 0;
        height: 100%;
        max-height: 58vh;
        max-width: none;
        margin-left: calc(50% - 50vw);
        justify-self: center;
    }

    .splash-actions {
        width: min(100%, 760px);
        justify-self: center;
    }

    .splash-enter {
        min-height: clamp(72px, 10vh, 100px);
        font-size: clamp(26px, 5.3vw, 40px);
    }

    .splash-tap-icon-wrap {
        width: clamp(58px, 8vw, 68px);
        height: clamp(58px, 8vw, 68px);
    }

    .splash-tap-icon {
        width: clamp(42px, 6vw, 48px);
        height: clamp(42px, 6vw, 48px);
    }

}

@media (max-width: 720px) {
    .splash-content {
        padding: 18px 22px;
    }

    .splash-brand {
        gap: 11px;
    }

    .splash-brand-mark {
        width: 52px;
        height: 52px;
        border-radius: 15px;
    }

    .splash-brand-copy strong {
        font-size: 18px;
    }

    .splash-brand-copy span {
        font-size: 13px;
    }

    .splash-clock {
        font-size: 16px;
    }

    .idle-warning {
        padding: 24px;
    }

    .idle-warning-card {
        padding: 36px 24px;
        border-radius: 24px;
    }

    .idle-warning-kicker {
        font-size: 14px;
    }

    .idle-warning-card h2 {
        margin: 16px 0 12px;
        font-size: 32px;
        letter-spacing: -.5px;
    }

    .idle-warning-card p {
        font-size: 18px;
    }

    .idle-stay-button {
        min-width: 0;
        width: 100%;
        min-height: 76px;
        margin-top: 24px;
        font-size: 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn,
    .menu-card,
    .home-button,
    .idle-stay-button,
    .menu-card::before,
    .menu-card::after,
    .menu-icon,
    .menu-icon svg {
        transition: none;
    }

    .menu-card {
        animation: none;
    }

    .splash-enter,
    .splash-tap-icon-wrap {
        transition: none;
    }

    .splash-enter::before {
        animation: none;
    }

    .splash-student {
        animation: none;
    }

    .splash-student-forearm {
        animation: none;
    }

    svg.map .kiosk-halo {
        animation: none;
    }
}

body.kiosk-active main h2 {
    font-size: 30px;
}

body.kiosk-active .btn {
    padding: 16px 24px;
    font-size: 22px;
}

body.kiosk-active .card .main {
    font-size: 23px;
}

body.kiosk-active .card .sub {
    font-size: 19px;
}

body.kiosk-active #list .card {
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
    padding: 14px 18px;
}

body.kiosk-active #list .card > div {
    min-width: 0;
    flex: 1;
}

body.kiosk-active #list .directory-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

body.kiosk-active #list .directory-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px;
    align-items: start;
    gap: 10px;
}

body.kiosk-active #list .directory-meta .sub {
    margin: 0;
    line-height: 1.3;
}

body.kiosk-active #list .directory-room {
    color: var(--accent);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    text-align: right;
    white-space: nowrap;
}

body.kiosk-active #list .directory-contact {
    margin: 0;
    font-size: 17px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

body.kiosk-active #list .card .btn {
    flex: 0 0 130px;
    min-height: 56px;
    padding: 12px 8px;
    font-size: 19px;
    white-space: nowrap;
}

body.kiosk-active #view .schedule-card {
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
    padding: 14px 18px;
}

body.kiosk-active #view .schedule-info {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 4px;
}

body.kiosk-active #view .schedule-info .main {
    font-size: 22px;
    line-height: 1.25;
}

body.kiosk-active #view .schedule-instructor {
    font-weight: 400;
}

body.kiosk-active #view .schedule-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 104px;
    align-items: start;
    gap: 10px;
}

body.kiosk-active #view .schedule-meta .sub {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
}

body.kiosk-active #view .schedule-room {
    color: var(--accent);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    text-align: right;
    white-space: nowrap;
}

body.kiosk-active #view .schedule-card .btn {
    flex: 0 0 130px;
    min-height: 56px;
    padding: 12px 8px;
    font-size: 19px;
    white-space: nowrap;
}

body.kiosk-active input[type=search] {
    font-size: 25px;
}

.bottom-search-trigger {
    display: none;
    position: fixed;
    z-index: 60;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    min-width: 280px;
    min-height: 64px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 2px solid rgba(255, 255, 255, .72);
    border-radius: 32px;
    background: var(--accent);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    box-shadow: 0 10px 28px rgba(23, 53, 67, .28);
    cursor: pointer;
}

.bottom-search-trigger svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.kiosk-active:not(.splash-active) .bottom-search-trigger {
    display: flex;
}

body.kiosk-active main {
    padding-bottom: 105px;
}

.global-search {
    position: fixed;
    z-index: 90;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(12, 43, 55, .48);
    backdrop-filter: blur(8px);
}

.global-search[hidden] {
    display: none;
}

.global-search-panel {
    position: relative;
    width: min(920px, 100%);
    max-height: min(80vh, calc(100vh - 36px));
    max-height: min(80dvh, calc(100dvh - 36px));
    transform: translateY(-5vh);
    border-radius: 28px;
    background: var(--bg);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
    padding: 22px 28px 18px;
    overflow-y: auto;
}

.global-search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.global-search-header p {
    margin: 0 0 4px;
    color: var(--teal);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
}

.global-search-header h2 {
    margin: 0;
    font-size: 34px;
}

.global-search-close {
    min-height: 54px;
    border: 0;
    border-radius: 18px;
    background: #dde9e7;
    color: var(--ink);
    padding: 12px 22px;
    font-size: 20px;
    font-weight: 700;
}

.global-search input[type=search] {
    margin: 16px 0 12px;
    font-size: 26px;
    min-height: 64px;
}

.global-search-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-height: 260px;
    overflow-y: auto;
}

.global-search-placeholder,
.global-search-empty {
    grid-column: 1 / -1;
    margin: 10px 0 14px;
    color: var(--muted);
    font-size: 20px;
}

.global-search-result {
    display: flex;
    width: 100%;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    color: var(--ink);
    padding: 12px 16px;
    text-align: left;
    cursor: pointer;
}

.global-search-result strong,
.global-search-result span {
    display: block;
}

.global-search-result strong {
    font-size: 20px;
}

.global-search-result span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 15px;
}

.global-search-result em {
    flex: 0 0 auto;
    color: var(--teal);
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
}

body.kiosk-active svg.map .youlabel {
    font-size: 13px;
}

body.kiosk-active .steps {
    font-size: 21px;
}

body.kiosk-active .detail {
    font-size: 20px;
}

body.kiosk-active .detail b {
    font-size: 24px;
}

body.kiosk-active .qrbox .url {
    font-size: 17px;
}

body.kiosk-active #view .sub[style*="font-size"] {
    font-size: 21px !important;
}

body.kiosk-active .idle-warning-kicker {
    font-size: 15px;
}

body.kiosk-active .idle-warning-card h2 {
    font-size: 40px;
}

body.kiosk-active .idle-warning-card p {
    font-size: 19px;
}

body.kiosk-active .idle-stay-button {
    font-size: 22px;
}

body.kiosk-active .map-overview {
    display: block;
    margin-bottom: 8px;
}

body.kiosk-active .floor-controls {
    justify-content: center;
    gap: 8px;
    margin: 10px 0 14px;
}

body.kiosk-active .floor-controls .btn {
    min-height: 48px;
    padding: 12px 16px;
    font-size: 18px;
}

body.kiosk-active #view .mapwrap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    width: min(100%, 100vh);
    height: clamp(440px, 62vh, 700px);
    aspect-ratio: auto;
    padding: 14px;
    overflow: hidden;
}

body.kiosk-active #view .map-frame-heading {
    min-height: 48px;
    flex: 0 0 auto;
}

body.kiosk-active #view .map-legend {
    font-size: 12px;
}

body.kiosk-active #view svg.map {
    width: 100%;
    height: 100%;
    min-height: 0;
    flex: 1 1 auto;
    max-width: 100%;
}

body.kiosk-active #view svg.map .youlabel {
    font-size: 10px;
}

body.kiosk-active #view[data-section="map"] {
    display: flex;
    height: 100%;
    min-height: 0;
    flex-direction: column;
}

body.kiosk-active #view[data-section="map"] > .page-toolbar {
    flex: 0 0 auto;
    margin-bottom: 8px;
    padding-bottom: 8px;
}

body.kiosk-active #view .map-search {
    flex: 0 0 auto;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 6px 16px;
    margin: 0 auto 6px;
    padding: 10px 16px;
}

body.kiosk-active #view .map-search-copy h2 {
    font-size: 23px;
}

body.kiosk-active #view .map-search-copy > p:last-child {
    font-size: 14px;
}

body.kiosk-active #view .map-search input[type=search] {
    min-height: 50px;
    padding: 10px 14px;
    font-size: 20px;
}

body.kiosk-active #view .room-results {
    max-height: 96px;
    margin-top: 2px;
}

body.kiosk-active #view .floor-controls {
    flex: 0 0 auto;
    margin: 4px auto 8px;
    padding: 4px;
}

body.kiosk-active #view .floor-controls .btn {
    min-width: 130px;
    min-height: 42px;
    padding: 8px 14px;
}

body.kiosk-active #view .mapwrap {
    flex: 1 1 0;
    min-height: 180px;
    height: auto;
    margin: 0 auto;
    padding: 10px;
    gap: 6px;
}

body.kiosk-active #view .map-frame-heading {
    min-height: 0;
    padding: 2px 6px 6px;
}

body.kiosk-active #view .map-frame-title {
    min-width: 0;
    flex: 1 1 auto;
}

body.kiosk-active #view .map-frame-title strong {
    font-size: 16px;
    line-height: 1.2;
}

body.kiosk-active #view .map-frame-title small {
    font-size: 13px;
    line-height: 1.25;
}

body.kiosk-active #view .map-overview {
    flex: 0 0 auto;
    margin: 4px auto 0;
}

body.kiosk-active #view .map-room-detail {
    flex: 0 0 auto;
    margin: 4px auto 0;
    padding: 6px 12px;
    font-size: 14px;
}

body.kiosk-active #view .map-room-detail .sub {
    font-size: 13px;
    line-height: 1.25;
}

body.kiosk-active #view[data-section="campus"] {
    display: flex;
    height: 100%;
    min-height: 0;
    flex-direction: column;
}

body.kiosk-active #view[data-section="programs"],
body.kiosk-active #view[data-section="jobs"],
body.kiosk-active #view[data-section="feedback"] {
    display: flex;
    min-height: 0;
    flex-direction: column;
}

body.kiosk-active #view[data-section="programs"] .business-programs-screen,
body.kiosk-active #view[data-section="jobs"] .job-opportunities-screen,
body.kiosk-active #view[data-section="feedback"] .feedback-screen {
    min-height: 0;
    flex: 1 1 auto;
}

body.kiosk-active #view[data-section="campus"] > .page-toolbar {
    flex: 0 0 auto;
    margin-bottom: 8px;
    padding-bottom: 8px;
}

body.kiosk-active #view .campus-screen {
    flex: 1 1 auto;
    min-height: 0;
    gap: 8px;
}

body.kiosk-active #view .campus-screen > h2 {
    font-size: 26px;
}

body.kiosk-active #view .campus-instructions {
    font-size: 15px;
    line-height: 1.25;
}

body.kiosk-active #view .campus-map-content {
    flex: 1 1 0;
    height: auto;
    min-height: 180px;
    grid-template-columns: minmax(0, 1fr) clamp(160px, 17vw, 230px);
    gap: 10px;
}

body.kiosk-active #view .campus-full-map {
    padding: 10px;
}

body.kiosk-active #view .campus-full-map .qrbox h2 {
    font-size: 18px;
}

body.kiosk-active #view .campus-full-map .qrbox .qr canvas,
body.kiosk-active #view .campus-full-map .qrbox .qr img {
    width: 150px !important;
    height: 150px !important;
}

body.kiosk-active #view .campus-full-map .qrbox .url {
    font-size: 12px;
}

body.kiosk-active #view .campus-buildings {
    flex: 0 0 auto;
}

body.kiosk-active #view .campus-buildings .btn {
    min-height: 52px;
    padding: 8px 10px;
    font-size: 16px;
}

body.kiosk-active #view .campus-qr-dialog {
    width: min(100%, 400px);
    padding: 28px;
}

body.kiosk-active #view .campus-qr-dialog .qrbox h2 {
    font-size: 22px;
}

body.kiosk-active #view .campus-qr-dialog .qrbox .qr canvas,
body.kiosk-active #view .campus-qr-dialog .qrbox .qr img {
    width: 200px !important;
    height: 200px !important;
}

body.kiosk-active .class-status-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

body.kiosk-active .class-status-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    column-gap: 8px;
    min-width: 0;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-top: 4px solid #dc775b;
    border-radius: 16px;
    background: var(--card);
    box-shadow: 0 3px 9px rgba(23, 53, 67, .06);
}

body.kiosk-active .class-status-group.is-upcoming {
    border-top-color: #d49725;
}

body.kiosk-active .class-status-group h3 {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 4px;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.25;
}

body.kiosk-active .class-status-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
}

body.kiosk-active .class-status-dot.is-live {
    background: #d04438;
}

body.kiosk-active .class-status-dot.is-soon {
    background: #d49725;
}

body.kiosk-active .class-status-item {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 1px;
    padding: 4px 0;
    border-top: 1px solid #e8edf0;
    font-size: 13px;
    line-height: 1.2;
}

body.kiosk-active .class-status-item strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #172a3a;
    font-size: 14px;
}

body.kiosk-active .class-status-item small {
    color: var(--muted);
    font-size: 10px;
    white-space: nowrap;
}

body.kiosk-active .class-status-empty,
body.kiosk-active .class-status-more {
    grid-column: 1 / -1;
    margin: 0;
    padding-top: 5px;
    border-top: 1px solid #e8edf0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.3;
}

@media (max-width: 1100px) {
    .menu-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .menu-card {
        min-height: 145px;
        grid-column: auto;
        gap: 0;
        padding: 10px 8px;
    }

    .menu-card-map {
        min-height: 120px;
        grid-column: 1 / -1;
        flex-direction: row;
        gap: 16px;
        padding: 14px 20px;
        text-align: left;
    }

    .menu-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 6px;
        border-radius: 15px;
    }

    .menu-icon svg {
        width: 28px;
        height: 28px;
    }

    .menu-card-title {
        margin-bottom: 4px;
        font-size: 17px;
    }

    .menu-card-description {
        font-size: 12px;
        line-height: 1.2;
    }

    .menu-card-map .menu-icon {
        width: 66px;
        height: 66px;
        margin: 0;
        border-radius: 22px;
    }

    .menu-card-map .menu-icon svg {
        width: 40px;
        height: 40px;
    }

    .menu-card-map .menu-card-title {
        font-size: 26px;
    }

    .menu-card-map .menu-card-description {
        font-size: 14px;
    }

    .menu-card:nth-child(5) {
        width: auto;
        grid-column: auto;
    }

    body.kiosk-active main {
        padding: 18px 22px 105px;
    }

    body.kiosk-active .home-screen {
        gap: 10px;
        padding: 10px 0;
    }

    body.kiosk-active .home-heading .home-kicker {
        margin-bottom: 4px;
        font-size: 12px;
    }

    body.kiosk-active .home-heading h2 {
        font-size: 28px;
    }

    body.kiosk-active .home-heading > p:last-child {
        margin-top: 4px;
        font-size: 14px;
    }

    .business-program-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .job-opportunities-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .business-program-card,
    .job-opportunity-card {
        padding: 14px;
    }

    body.kiosk-active #view .business-program-card p {
        font-size: 15px;
    }

    body.kiosk-active #view .job-opportunity-card ul {
        font-size: 14px;
    }
}

@media (max-width: 720px) {
    header {
        min-height: 82px;
        padding: 12px 18px;
    }

    .brand-mark {
        width: 48px;
        height: 48px;
        border-radius: 15px;
    }

    .brand-copy strong {
        font-size: 19px;
    }

    .brand-copy span {
        font-size: 12px;
    }

    .open-label {
        font-size: 10px;
        letter-spacing: .8px;
    }

    #clock {
        font-size: 15px;
    }

    main {
        padding: 18px 16px;
    }

    .menu-grid {
        gap: 10px;
    }

    .menu-card {
        min-height: 190px;
        padding: 18px 14px;
        border-radius: 20px;
    }

    .home-screen {
        gap: 16px;
        padding: 16px 0;
    }

    .home-heading .home-kicker {
        font-size: 12px;
    }

    .home-heading h2 {
        font-size: 30px;
    }

    .home-heading > p:last-child {
        font-size: 16px;
    }

    .menu-card-map {
        min-height: 170px;
        flex-direction: column;
        gap: 12px;
        padding: 20px 16px;
        text-align: center;
    }

    .menu-card-map .menu-icon {
        width: 64px;
        height: 64px;
        border-radius: 21px;
    }

    .menu-card-map .menu-icon svg {
        width: 38px;
        height: 38px;
    }

    .menu-card-copy {
        align-items: center;
    }

    .menu-card-map .menu-card-title {
        margin-bottom: 5px;
        font-size: 22px;
    }

    .menu-card-map .menu-card-description {
        font-size: 14px;
    }

    .map-search {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        padding: 16px;
    }

    .room-results {
        grid-column: 1;
    }

    .floor-controls .btn {
        min-width: 0;
        flex: 1;
    }

    .menu-card-title {
        font-size: 19px;
    }

    .menu-card-description {
        font-size: 14px;
    }

    .map-frame-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .map-legend {
        justify-content: flex-start;
        gap: 7px 12px;
    }

    .page-toolbar {
        margin-bottom: 14px;
    }

    .campus-map-content {
        min-height: 300px;
        grid-template-columns: minmax(0, 1fr) 180px;
        gap: 10px;
    }

    .campus-buildings {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .campus-buildings .btn {
        min-height: 48px;
        padding: 8px;
        font-size: 14px;
    }

    body.kiosk-active #view .campus-map-content {
        min-height: 150px;
        grid-template-columns: minmax(0, 1fr) 140px;
        gap: 6px;
    }

    body.kiosk-active #view .campus-full-map {
        padding: 6px;
    }

    body.kiosk-active #view .campus-full-map .qrbox h2 {
        font-size: 14px;
    }

    body.kiosk-active #view .campus-full-map .qrbox .qr canvas,
    body.kiosk-active #view .campus-full-map .qrbox .qr img {
        width: 112px !important;
        height: 112px !important;
    }

    body.kiosk-active #view .campus-buildings .btn {
        min-height: 40px;
        padding: 6px;
        font-size: 13px;
    }

}

@media (max-width: 720px) {
    main {
        padding: 10px 10px;
    }

    .home-screen {
        gap: 8px;
        padding: 8px 0;
    }

    .home-heading .home-kicker {
        margin-bottom: 4px;
        font-size: 10px;
    }

    .home-heading h2 {
        font-size: 22px;
    }

    .home-heading > p:last-child {
        margin-top: 4px;
        font-size: 12px;
    }

    .menu-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .menu-card,
    .menu-card-map {
        min-height: 96px;
        grid-column: auto;
        gap: 4px;
        padding: 8px 5px;
        border-radius: 14px;
    }

    .menu-card-map {
        min-height: 100px;
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        padding: 10px 12px;
        text-align: left;
    }

    .menu-icon,
    .menu-card-map .menu-icon {
        width: 36px;
        height: 36px;
        margin: 0 0 4px;
        border-radius: 12px;
    }

    .menu-icon svg,
    .menu-card-map .menu-icon svg {
        width: 23px;
        height: 23px;
    }

    .menu-card-copy {
        align-items: center;
    }

    .menu-card-map .menu-card-copy {
        align-items: flex-start;
    }

    .menu-card-title,
    .menu-card-map .menu-card-title {
        margin-bottom: 3px;
        font-size: 14px;
    }

    .menu-card-description,
    .menu-card-map .menu-card-description {
        font-size: 10px;
        line-height: 1.2;
    }

    .business-programs-screen,
    .job-opportunities-screen,
    .feedback-screen {
        gap: 8px;
    }

    .business-program-grid,
    .job-opportunities-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .business-program-card,
    .job-opportunity-card {
        padding: 10px;
        border-radius: 14px;
    }

    .business-program-card h3,
    .job-opportunity-card h3 {
        font-size: 17px;
    }

    .business-program-card p,
    .job-opportunity-card ul {
        font-size: 13px;
    }

    .business-programs-intro,
    .job-opportunities-intro {
        font-size: 14px;
    }

    .live-jobs-callout {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 10px;
    }

    .live-jobs-callout p {
        font-size: 14px;
    }

    .feedback-intro {
        font-size: 19px;
    }

    .feedback-welcome {
        font-size: 15px;
    }

    .feedback-topics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px 8px;
        padding: 10px;
    }

    .feedback-topics label {
        font-size: 13px;
    }

    .feedback-screen textarea {
        min-height: 72px;
        font-size: 15px;
    }
}

@media (min-width: 1101px) {
    body.kiosk-active .home-screen {
        gap: 16px;
        padding: 16px 0;
    }

    body.kiosk-active .menu-card {
        min-height: 180px;
        padding: 16px 14px;
    }

    body.kiosk-active .menu-card-map {
        min-height: 170px;
        padding: 20px 28px;
    }
}

@media (max-width: 440px) {
    .topbar-right {
        gap: 3px;
    }

    .brand {
        gap: 9px;
    }

    .brand-copy span {
        max-width: 130px;
    }

    .menu-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .menu-card-map {
        grid-column: 1 / -1;
    }

    .menu-card:nth-child(5) {
        width: auto;
    }

    .page-breadcrumb {
        font-size: 12px;
    }

    body.kiosk-active .class-status-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.kiosk-active .class-status-group {
        grid-template-columns: minmax(0, 1fr);
    }

    body.kiosk-active .class-status-group h3 {
        grid-column: auto;
    }
}