:root {
    --portal-gold: #ceb888;
    --portal-ink: #2c2a29;
    --portal-muted: #64605e;
    --portal-canvas: #f7f6f4;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin-bottom: 0;
    color: var(--portal-ink);
    background-color: var(--portal-canvas);
    font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
}

.site-header {
    box-shadow: 0 .2rem .7rem rgba(44, 42, 41, .16);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
}

.navbar-brand img {
    object-fit: contain;
}

.portal-name {
    margin-left: .5rem;
    padding-left: 1rem;
    color: #f5ead3;
    border-left: 1px solid rgba(255, 255, 255, .4);
    font-size: .82rem;
    font-weight: 600;
}

.page-heading {
    padding-bottom: 1rem;
    border-bottom: 1px solid #dedbd7;
}

.request-navigation {
    border-color: #dedbd7;
}

.request-navigation .nav-link {
    font-weight: 600;
}

.bg-gold-2-canvas {
    background-color: #e7dcc4;
}

.bg-gold-2-canvas .text-secondary,
.bg-gold-2-canvas .text-muted {
    color: #495057 !important;
}

.custom-card {
    color: #782f40;
    background-color: #f1f1f1;
}

.custom-btn {
    color: white;
    background-color: #782f40;
}

.custom-btn:hover {
    color: white;
    background-color: #5f2835;
}

.msg-sender-role {
    color: #555;
}

.student-information-table th {
    width: 45%;
    color: var(--portal-muted);
    font-weight: 600;
}

.message-avatar {
    width: 40px;
    height: 40px;
}

.message-timestamp {
    padding: .25rem .5rem;
    color: var(--portal-muted);
    background: #f1efec;
    border-radius: .25rem;
    font-size: .78rem;
    white-space: nowrap;
}

.message-body {
    margin-bottom: 0;
    white-space: pre-wrap;
}

.centered-message {
    min-height: 60vh;
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--portal-gold);
    outline-offset: 3px;
}

@media (max-width: 575.98px) {
    .portal-name {
        display: none;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .message-timestamp {
        margin-left: .5rem;
        white-space: normal;
        text-align: right;
    }
}

@media print {
    body {
        background: white;
    }

    main,
    body > .container {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0 !important;
    }

    .card {
        border-color: #aaa !important;
        box-shadow: none !important;
        break-inside: avoid;
    }
}
