@import url("shc-tokens.css");

html,
body {
    min-height: 100%;
}

nav.navbar {
    height: 64px;
    padding: 12px 24px;
    justify-content: flex-start;
    gap: 16px;
    background-color: var(--shc-bg-nav) !important;
    border-bottom: 1px solid var(--shc-hairline);
}

nav.navbar a {
    display: inline-flex;
    align-items: center;
}

nav.navbar img.portal-logo {
    height: 26px;
    width: auto;
    margin: 0;
    padding: 0;
    image-rendering: pixelated;
}

nav.navbar .text-white {
    color: var(--shc-text-accent) !important;
    font-family: var(--shc-font-mono);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jumbotron,
.jumbotron.bg-light {
    background: transparent !important;
    padding-top: 40px;
    padding-bottom: 40px;
}

.jumbotron > .container {
    max-width: 1100px;
}

/* The catalog's title in the website's large-title register: the word, then
   its blinking block cursor in accent ink, placed after the nine mono
   characters of "Workshops". */
.jumbotron.bg-light > .container {
    position: relative;
}

.jumbotron.bg-light > .container::before,
.jumbotron.bg-light > .container::after {
    font-family: var(--shc-font-mono);
    font-size: clamp(2rem, 1.35rem + 2.4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.jumbotron.bg-light > .container::before {
    content: "Workshops";
    display: block;
    margin: 0 0 24px;
    font-weight: 600;
    color: var(--shc-white);
}

.jumbotron.bg-light > .container::after {
    content: "\258B";
    position: absolute;
    top: 0;
    left: calc(var(--bs-gutter-x, 1.5rem) * 0.5 + 9ch - 0.08em);
    font-weight: 400;
    color: var(--shc-text-accent);
    text-shadow: 0 0 8px var(--shc-glow);
    animation: shc-title-blink 1.15s steps(1) infinite;
}

@keyframes shc-title-blink {
    50% {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jumbotron.bg-light > .container::after {
        animation: none;
    }
}

@media (min-width: 768px) {
    .jumbotron .row > .col {
        flex: 0 0 auto;
        width: 50%;
    }
}

.card {
    background-color: var(--shc-gray-7);
    border: 1px solid var(--shc-hairline-light);
    border-radius: var(--shc-radius);
    color: var(--shc-text);
}

.card:hover {
    border-color: var(--shc-accent);
    box-shadow: 0 0 16px -8px var(--shc-glow);
}

.card-title {
    font-family: var(--shc-font-mono);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--shc-white);
    line-height: 1.35;
}

.card-text {
    color: var(--shc-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

.green-light,
.orange-light,
.red-light {
    width: 10px;
    height: 10px;
    margin: 6px 0 0 12px;
    border-radius: var(--shc-radius);
}

.green-light {
    background-color: var(--shc-green);
    box-shadow: 0 0 8px rgba(61, 220, 132, 0.6);
}

.orange-light {
    background-color: #ffce4a;
    box-shadow: 0 0 8px rgba(255, 206, 74, 0.5);
}

.red-light {
    background-color: #ff7d8a;
    box-shadow: 0 0 8px rgba(255, 77, 94, 0.5);
}

.start-workshop {
    min-height: 44px;
    margin-top: 16px;
}

div#notification.alert {
    border: 1px solid var(--shc-note);
    border-inline-start-width: 3px;
    border-radius: var(--shc-radius);
    background-color: var(--shc-note-bg);
    color: var(--shc-note-ink);
}

div#notification.alert-warning {
    border-color: var(--shc-caution);
    background-color: var(--shc-caution-bg);
    color: var(--shc-caution-ink);
}

div#notification.alert-danger {
    border-color: var(--shc-danger);
    background-color: var(--shc-danger-bg);
    color: var(--shc-danger-ink);
}

div#notification.alert-success {
    border-color: var(--shc-tip);
    background-color: var(--shc-tip-bg);
    color: var(--shc-tip-ink);
}

.login,
.register,
.finished,
.registration-closed {
    max-width: 560px;
}

.login h1,
.register h1,
.finished h1,
.registration-closed h1 {
    font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem);
    font-weight: 600;
    margin-bottom: 24px;
}

/* Educates prints "Don't have an account, register first" on the sign-in
   page whatever the portal's registration setting, and no portal here
   takes a registration. */
.login > .font-italic {
    display: none;
}

.form-control,
.form-select {
    background-color: var(--shc-gray-7);
    border: 1px solid var(--shc-hairline-light);
    border-radius: var(--shc-radius);
    color: var(--shc-white);
    font-family: var(--shc-font-mono);
}

.form-control:focus,
.form-select:focus {
    background-color: var(--shc-gray-7);
    border-color: var(--shc-accent);
    color: var(--shc-white);
    box-shadow: 0 0 0 1px var(--shc-accent), 0 0 16px -8px var(--shc-glow);
}

.form-label,
label {
    font-family: var(--shc-font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--shc-gray-3);
}
