:root {
    --unigraz-primary: #ffd400;
}

html {
    min-height: 100%;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.bg-unigraz {
    background-color: var(--unigraz-primary);
}

.navbar-brand {
    max-width: calc(100% - 5rem);
    white-space: normal;
    overflow-wrap: anywhere;
}

.navbar .nav-link.active {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: .3em;
}

.user-badge {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

.skip-link {
    position: absolute;
    z-index: 1100;
    padding: .75rem 1rem;
    background: white;
    color: #212529;
}

.footer {
    padding: 1rem 0;
    background-color: var(--unigraz-primary);
}

.footer a {
    color: #594a00;
}

.section-heading {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Auto-fit lets a small number of cards fill the available space. */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.card-grid-wide {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr));
}

.card-grid-item {
    display: flex;
    min-width: 0;
}

.card-grid .card {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
    border-radius: .5rem;
}

.card-grid .card-body {
    padding: 1.25rem;
}

.card-grid .card-footer {
    padding: 1rem 1.25rem;
    background-color: #f8f9fa;
    flex-wrap: wrap;
    gap: .75rem;
}

.card-grid .card-footer .btn {
    flex-shrink: 0;
}

.registration-list {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.registration-panel {
    padding: 1.25rem;
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    overflow-wrap: anywhere;
}

.task-list li + li {
    margin-top: .75rem;
}

.project-assignment {
    position: relative;
    min-width: 16rem;
}

.assignment-status {
    min-height: 1.5em;
    font-size: .875rem;
}

.table tr.htmx-added {
    animation: assignment-highlight 1.5s ease-out;
}

@keyframes assignment-highlight {
    from { background-color: #fff3cd; }
    to { background-color: transparent; }
}

@media (prefers-reduced-motion: reduce) {
    .table tr.htmx-added { animation: none; }
}
