/* =====================================================================
   LTU Events Platform  |  site.css
   Design based on the "LTU Pulse" front-end demo.
   Works on top of Bootstrap 5.1 (loaded before this file in _Layout).

   Sections
     1. Design tokens (colors, radius, shadows)
     2. Base + Bootstrap overrides
     3. Header, logo and navigation
     4. Buttons
     5. Page hero + "Don't miss out" banner
     6. Event list rows (Index and My Events)
     7. Event popups (details, subscribe, delete confirm)
     8. Forms (Add Event, Edit Event, Log In)
     9. Footer
    10. Front-end demo page components (FrontEndDemo.cshtml)
    11. Responsive rules
   ===================================================================== */


/* ---------- 1. Design tokens ---------- */
:root {
    --navy: #10204b;
    --navy-2: #1b3270;
    --blue: #244a99;
    --blue-link: #31579a;
    --gold: #ffc629;
    --gold-hover: #ffd458;
    --gold-deep: #e8af00;
    --teal: #2e8c83;
    --purple: #7858b5;
    --danger: #c2392f;
    --bg: #f5f7fb;
    --surface: #ffffff;
    --ink: #13234a;
    --ink-soft: #263956;
    --muted: #5c6981;
    --line: #e0e6f0;
    --soft: #edf2fb;
    --soft-2: #f0f4fa;
    --radius: 17px;
    --radius-sm: 10px;
    --shadow: 0 5px 20px rgba(18, 39, 80, 0.06);
    --shadow-hover: 0 12px 30px rgba(18, 39, 80, 0.12);
    --max-width: 1180px;
    /* Re-point Bootstrap's own variables at our palette */
    --bs-body-bg: var(--bg);
    --bs-body-color: var(--ink);
    --bs-body-font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}


/* ---------- 2. Base + Bootstrap overrides ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column; /* keeps the footer at the bottom on short pages */
    background: var(--bg);
    color: var(--ink);
    font-family: var(--bs-body-font-family);
    -webkit-font-smoothing: antialiased;
}

    /* The page content wrapper in _Layout grows to push the footer down */
    body > .container {
        flex: 1 0 auto;
        padding-top: 32px;
        padding-bottom: 48px;
    }

.container {
    --bs-gutter-x: 1.5rem; /* 24px side padding, same as the demo (Bootstrap 5.1 uses the full value as padding) */
    max-width: var(--max-width);
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: var(--blue-link);
}

    a:hover {
        color: var(--navy);
    }

h1, h2, h3, h4 {
    color: var(--navy);
    letter-spacing: -0.035em;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    letter-spacing: -0.06em;
    line-height: 1.05;
    margin: 0;
}

h2 {
    font-size: 1.45rem;
    margin: 0;
}

p {
    line-height: 1.5;
}

.muted {
    color: var(--muted);
}

/* Keyboard focus ring that matches the brand */
:focus-visible {
    outline: 3px solid rgba(36, 74, 153, 0.45);
    outline-offset: 2px;
}


/* ---------- 3. Header, logo and navigation ---------- */
.site-header {
    background: var(--navy);
    color: #fff;
    box-shadow: 0 2px 14px rgba(16, 32, 75, 0.25);
}

.site-nav {
    min-height: 76px;
    padding: 0;
}

/* Logo (sits on a white plate because the PNG has a white background) */
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-right: 1rem;
    text-decoration: none;
}

    .brand:hover {
        color: #fff;
    }

.brand-logo {
    display: block;
    height: 34px;
    width: auto;
    padding: 6px 12px;
    box-sizing: content-box;
    background: #fff;
    border-radius: var(--radius-sm);
}

.brand-text {
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* Nav links (selectors are deliberately specific to beat Bootstrap 5.1) */
.site-nav .navbar-nav .nav-link {
    color: #d5def2;
    font-weight: 700;
    padding: 0.55rem 0.95rem;
    border-radius: var(--radius-sm);
    transition: background 0.15s ease, color 0.15s ease;
}

    .site-nav .navbar-nav .nav-link:hover,
    .site-nav .navbar-nav .nav-link:focus {
        color: #fff;
        background: rgba(255, 255, 255, 0.1);
    }

/* The last link (Log In / Change Account) becomes a gold pill, like "Get alerts" in the demo */
.site-nav .navbar-nav .nav-item:last-child .nav-link {
    background: var(--gold);
    color: var(--navy);
    margin-left: 8px;
}

    .site-nav .navbar-nav .nav-item:last-child .nav-link:hover,
    .site-nav .navbar-nav .nav-item:last-child .nav-link:focus {
        background: var(--gold-hover);
        color: var(--navy);
    }

.site-nav .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.35);
}

    .site-nav .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(255, 198, 41, 0.45);
    }

/* "Logged in as ..." strip */
.login-flag {
    background: #0b1737;
}

    .login-flag p {
        max-width: var(--max-width);
        margin: 0 auto;
        padding: 6px 24px;
        text-align: right;
        font-size: 0.8rem;
        color: #cbd5eb;
    }


/* ---------- 4. Buttons ---------- */
.btn {
    border: 0;
    border-radius: var(--radius-sm);
    padding: 12px 17px;
    font-weight: 750;
    line-height: 1.2;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

    .btn:hover {
        transform: translateY(-1px);
    }

    .btn:disabled,
    .btn[disabled] {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
    }

    /* Primary action: gold */
    .btn.gold,
    .btn.btn-submit {
        background: var(--gold);
        color: var(--navy);
    }

        .btn.gold:hover,
        .btn.btn-submit:hover {
            background: var(--gold-hover);
            color: var(--navy);
        }

    /* Neutral action: Close */
    .btn.close-popup {
        background: var(--soft);
        color: #17376f;
    }

        .btn.close-popup:hover {
            background: #dfe8f7;
            color: #17376f;
        }

    .btn.edit {
        background: var(--navy);
        color: #fff;
    }

        .edit.btn:hover {
            background: var(--navy-2);
            color: #fff;
        }

/* Secondary action: Edit */
.edit .btn {
    background: var(--navy);
    color: #fff;
}

    .edit .btn:hover {
        background: var(--navy-2);
        color: #fff;
    }

/* Destructive action: Delete */
.btn.btn-delete {
    background: var(--danger);
    color: #fff;
}

    .btn.btn-delete:hover {
        background: #a82f26;
        color: #fff;
    }

.btn-container {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 22px;
}

    .btn-container .btn-submit,
    .edit,
    .delete-event {
        margin-left: auto;
    }

        .edit .btn {
            width: 100%;
        }


#filters-container {
    margin-top:  1em;
    margin-left: 1em;
    
}

    #filters-container form {
        display: flex;
        flex-wrap: wrap;
    }

    #filters-container .form-group {
        margin: 0px 5px;
        min-width: 160px;
        
    }

    #filters-container .form-group.col-1 {
        min-width: 75px;
    }

    #filters-container label {
        color: var(--ink-soft);
        font-weight: 700;
        margin-top: 5px
    }

    #filters-container .col-1.check {
        display: flex;
        flex-direction: column;
        text-align: center;
        min-width: 87px;
    }

        #filters-container .check .form-check {
            margin-left:auto;
            margin-right:auto;
        }

    #filters-container .submit {
       display: flex;
       margin-top:10px;
    }
        #filters-container .submit .btn {
           margin-top:auto;
        }


/* ---------- 5. Page hero + "Don't miss out" banner ---------- */
/* Welcome / My Events heading: left aligned like the demo */
main > .text-center {
    text-align: left !important;
    margin: 8px 0 12px;
}

.display-3 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1.05;
    color: var(--navy);
}

main > .text-center p {
    margin: 10px 0 30px;
    color: var(--muted);
}

.subscribe-btn-holder {
    display: flex;
    justify-content: flex-end; /* banner sits on the right instead of stretching */
    margin: 4px 0 10px;
}

    .subscribe-btn-holder > div {
        display: flex;
        align-items: center;
        gap: 16px;
        width: fit-content; /* only as wide as its content */
        padding: 14px 18px 14px 24px;
        background: #fff4d6;
        border: 1px solid #f2d782;
        border-radius: 18px;
    }

    .subscribe-btn-holder p {
        margin: 0;
        font-weight: 800;
        color: #5d521f;
    }


/* ---------- 6. Event list rows (Index and My Events) ---------- */
/* Date group heading */
h2.date-header {
    margin: 34px 0 12px;
    padding-left: 12px;
    border-left: 5px solid var(--gold);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--navy);
}

/* Each <table class="event-entry"> is displayed as a card.
   The markup is unchanged: the table is just restyled. */
table.event-entry {
    display: block;
    width: 100%;
    margin: 0 0 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 5px solid var(--blue);
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-left-color 0.15s ease;
}

    table.event-entry:hover,
    table.event-entry:focus-visible {
        transform: translateY(-2px);
        box-shadow: var(--shadow-hover);
        border-left-color: var(--gold-deep);
    }

    table.event-entry thead {
        display: none; /* the header cells are empty, so they are hidden */
    }

    table.event-entry tbody {
        display: block;
    }

    table.event-entry tr {
        display: grid;
        grid-template-columns: 2fr 1.3fr 1.3fr 1.3fr;
        gap: 12px;
        align-items: center;
        padding: 16px 20px;
    }

    table.event-entry td {
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        color: var(--muted);
        font-size: 0.92rem;
        font-weight: 600;
        overflow-wrap: anywhere;
    }

        table.event-entry td:first-child {
            color: var(--navy);
            font-size: 1.05rem;
            font-weight: 800;
            letter-spacing: -0.02em;
        }

    /* Events that are not visible yet (My Events page) */
    table.event-entry tr.hidden-event {
        background: #eceff5;
    }

        table.event-entry tr.hidden-event td {
            color: #7a869c;
        }


/* ---------- 7. Event popups (details, subscribe, delete confirm) ---------- */
[popover] {
    width: min(92vw, 680px);
    max-height: 90vh;
    padding: 28px;
    border: 0;
    border-radius: 20px;
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 25px 90px rgba(7, 21, 44, 0.42);
}

    [popover]::backdrop {
        background: rgba(11, 23, 55, 0.68);
        backdrop-filter: blur(2px);
    }

    [popover]:popover-open {
        animation: pop-in 0.18s ease;
    }

@keyframes pop-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

[popover] h4 {
    margin: 0 0 16px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--navy);
}

#subscribe-popup,
#confirm-popup {
    width: min(92vw, 460px);
}

.event-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

    .event-details div {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .event-details span {
        padding: 11px 13px;
        background: var(--soft-2);
        border-radius: var(--radius-sm);
        color: var(--ink-soft);
        font-size: 0.9rem;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    .event-details b {
        color: var(--blue-link);
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

.subscribe-settings input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    margin-left: 6px;
    vertical-align: middle;
    accent-color: var(--blue);
}


/* ---------- 8. Forms (Add Event, Edit Event, Log In) ---------- */
/* Any form placed directly in <main> becomes a white card */
main > form {
    max-width: 760px;
    margin: 8px auto 0;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

main > h3 {
    max-width: 760px;
    margin: 24px auto 14px;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

main > p {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.form-group {
    margin-bottom: 18px;
}

main > form label {
    display: block;
    margin-bottom: 6px;
    color: var(--ink-soft);
    font-weight: 700;
}

/* The old Bootstrap col-sm-* widths leave fields at 80%; make them fill the card */
main > form [class*="col-sm-"] {
    width: 100%;
    max-width: 100%;
    flex: 1 1 0;
    padding-left: 0;
    padding-right: 0;
}

/* Date/time pairs sit side by side */
.input-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-control {
    padding: 12px 14px;
    border: 1px solid #cbd5e5;
    border-radius: var(--radius-sm);
    background: #fff;
    color: #172748;
}

    .form-control:focus {
        border-color: var(--blue);
        box-shadow: 0 0 0 4px rgba(36, 74, 153, 0.15);
        outline: 0;
    }

/* Validation */
.input-validation-error {
    border-color: var(--danger) !important;
    background: #fff6f5;
}

.field-validation-error,
.text-danger {
    display: block;
    margin-top: 5px;
    font-size: 0.86rem;
    font-weight: 650;
    color: var(--danger) !important;
}

.field-validation-valid {
    display: none;
}

/* Edit Event: keep Submit and Delete on one row */
main > form .btn-container {
    margin-top: 8px;
}


/* ---------- 9. Footer ---------- */
.site-footer {
    margin-top: auto;
    background: var(--surface);
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.86rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;
    padding-top: 22px;
    padding-bottom: 22px;
}

.site-footer p {
    margin: 0;
}

.footer-badge {
    display: inline-block;
    margin-right: 8px;
    padding: 3px 9px;
    background: var(--gold);
    border-radius: 100px;
    color: var(--navy);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    vertical-align: 1px;
}

.footer-note {
    color: var(--ink-soft);
    font-weight: 600;
}


/* ---------- 10. Front-end demo page components (FrontEndDemo.cshtml) ---------- */
/* That page carries its own copy of the header/footer markup, so these keep it tidy
   when it is shown inside the real layout. */
main > header {
    margin-bottom: 24px;
    background: var(--navy);
    border-radius: var(--radius);
    color: #fff;
}

    main > header nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        padding: 16px 24px;
    }

main > footer {
    padding: 20px 0 0;
    color: #697790;
    font-size: 0.82rem;
}

.mark {
    padding: 5px 9px;
    background: var(--gold);
    border-radius: var(--radius-sm);
    color: var(--navy);
    font-weight: 900;
    letter-spacing: -0.07em;
}

.navright {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .navright button {
        border: 0;
        border-radius: var(--radius-sm);
        padding: 12px 17px;
        font-weight: 750;
    }

.outline {
    background: transparent;
    color: #fff;
    border: 1px solid #66759a !important;
}

.gold {
    background: var(--gold);
    color: var(--navy);
}

.shell {
    max-width: var(--max-width);
    margin: auto;
    padding: 8px 0 40px;
}

.top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

    .top p {
        margin: 10px 0 0;
    }

.eyebrow {
    margin: 0 0 6px;
    color: var(--blue-link);
    font-size: 0.8rem;
    font-weight: 850;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.live {
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e2e7f1;
    border-radius: 12px;
    color: #304364;
    font-weight: 700;
    white-space: nowrap;
}

    .live span {
        display: inline-block;
        width: 9px;
        height: 9px;
        margin-right: 8px;
        background: var(--gold-deep);
        border-radius: 50%;
    }

/* Note: Bootstrap also has an .alert class, so every property is set explicitly */
.alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 30px;
    padding: 20px 24px;
    background: #fff4d6;
    border: 1px solid #f2d782;
    border-radius: 18px;
    color: var(--ink);
}

    .alert strong {
        font-size: 1.05rem;
    }

    .alert p {
        margin: 5px 0 0;
        color: #5d521f;
    }

.sectionhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 26px 0 16px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.filter {
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #dce3ee;
    border-radius: 100px;
    color: #334567;
    font-weight: 700;
    transition: background 0.15s ease, color 0.15s ease;
}

    .filter:hover {
        background: var(--soft);
    }

    .filter.active {
        background: var(--navy);
        border-color: var(--navy);
        color: #fff;
    }

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 24px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.cardtop {
    height: 7px;
    background: var(--blue);
}

.card.food .cardtop {
    background: var(--gold-deep);
}

.card.career .cardtop {
    background: var(--teal);
}

.card.social .cardtop {
    background: var(--purple);
}

.cardbody {
    padding: 20px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 14px;
}

.tag {
    padding: 5px 8px;
    background: var(--soft);
    border-radius: 5px;
    color: #284a88;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.food .tag:first-child {
    background: #fff1c8;
    color: #735500;
}

.date {
    margin: 0 0 7px;
    color: #5b6983;
    font-size: 0.87rem;
    font-weight: 750;
}

.card h3 {
    margin: 0;
    font-size: 1.25rem;
}

.card p {
    margin: 10px 0 18px;
    color: #52617a;
    font-size: 0.94rem;
}

.where {
    padding-top: 13px;
    border-top: 1px solid #edf0f5;
    color: #344768;
    font-size: 0.9rem;
    font-weight: 650;
}

.side {
    display: grid;
    gap: 16px;
    align-content: start;
}

.panel {
    padding: 23px;
    background: var(--navy);
    border-radius: 18px;
    color: #fff;
}

    .panel h2 {
        font-size: 1.4rem;
        color: #fff;
    }

    .panel p {
        margin: 9px 0 18px;
        color: #cbd5eb;
        font-size: 0.92rem;
    }

    .panel .gold {
        width: 100%;
    }

.note {
    margin: 12px 0 0 !important;
    color: #aebcda !important;
    font-size: 0.8rem !important;
}

.lightpanel {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--navy);
}

    .lightpanel h2 {
        color: var(--navy);
    }

    .lightpanel p {
        color: var(--muted);
    }

    .lightpanel .btn {
        width: 100%;
        background: #edf2fa;
        color: #17376f;
    }

.empty {
    grid-column: 1 / -1;
    padding: 36px;
    background: #fff;
    border: 1px dashed #cdd7e7;
    border-radius: 16px;
    color: #596882;
}

/* Dialogs.
   Bootstrap also defines a .modal class (display:none, fixed, full screen), which
   would hide the demo's dialog content, so it is reset here. */
dialog {
    width: min(95vw, 510px);
    padding: 0;
    border: 0;
    border-radius: 20px;
    box-shadow: 0 25px 90px rgba(7, 21, 44, 0.42);
}

    dialog::backdrop {
        background: rgba(11, 23, 55, 0.68);
    }

    dialog .modal,
    form.modal {
        position: static;
        display: block;
        width: auto;
        height: auto;
        overflow: visible;
        padding: 27px;
    }

.modalhead {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

    .modalhead h2 {
        font-size: 1.6rem;
    }

.close {
    padding: 7px 11px;
    background: #edf1f8;
    border: 0;
    border-radius: 8px;
    font-size: 1.2rem;
}

.field {
    display: grid;
    gap: 7px;
    margin: 17px 0;
    color: var(--ink-soft);
    font-weight: 700;
}

    .field input,
    .field select,
    .field textarea {
        width: 100%;
        padding: 12px;
        background: #fff;
        border: 1px solid #cbd5e5;
        border-radius: 9px;
        color: #172748;
    }

    .field textarea {
        min-height: 90px;
        resize: vertical;
    }

.checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .checks label {
        padding: 9px 11px;
        border: 1px solid #dae1ec;
        border-radius: 9px;
        font-size: 0.9rem;
    }

    .checks input {
        accent-color: #193e83;
    }

.modal .gold {
    width: 100%;
    margin-top: 15px;
}

.fine {
    color: #66758f;
    font-size: 0.82rem;
}

.status {
    min-height: 24px;
    margin: 10px 0 0;
    color: #146057;
    font-weight: 700;
}

.smalllink {
    padding: 0;
    background: none;
    border: 0;
    color: var(--blue-link);
    font-weight: 700;
    text-decoration: underline;
}

.demo {
    padding: 12px;
    background: var(--soft-2);
    border-radius: var(--radius-sm);
    color: #52617b;
    font-size: 0.86rem;
    line-height: 1.45;
}


/* ---------- 11. Responsive rules ---------- */
@media (max-width: 850px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .side {
        grid-template-columns: repeat(2, 1fr);
    }

    .event-details {
        grid-template-columns: 1fr;
    }

    table.event-entry tr {
        grid-template-columns: 1fr 1fr;
    }

    table.event-entry td:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    /* Collapsed hamburger menu */
    .site-nav .navbar-collapse {
        padding-bottom: 14px;
    }

    .site-nav .navbar-nav .nav-item:last-child .nav-link {
        margin: 8px 0 0;
        text-align: center;
    }
}

@media (max-width: 620px) {
    .brand-text {
        display: none;
    }

    .brand-logo {
        height: 28px;
    }

    body > .container {
        padding-top: 22px;
    }

    .top {
        display: block;
    }

    .live {
        display: inline-block;
        margin-top: 17px;
    }

    .alert,
    .subscribe-btn-holder > div {
        flex-direction: column;
        align-items: flex-start;
    }

    .subscribe-btn-holder {
        justify-content: flex-end;
    }

        /*.subscribe-btn-holder > div {
            width: 100%;
        }*/

    .cards,
    .side {
        grid-template-columns: 1fr;
    }

    .sectionhead {
        flex-direction: column;
        align-items: flex-start;
    }

    table.event-entry tr {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .input-pair {
        grid-template-columns: 1fr;
    }

    main > form {
        padding: 20px;
    }

    .navright {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
