.rally-programme {
    margin: 1rem 0;
    padding: 1rem;
    border: 2px solid #eb713e;
    border-radius: 16px;
    background: #fff9f3;
    color: #173f36;
}

.rally-programme__heading,
.programme-admin-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.rally-programme__heading small,
.programme-admin-hero small,
.programme-admin-panel-heading small {
    color: #9b4529;
    font-weight: 800;
    letter-spacing: .09em;
}

.rally-programme__heading h3,
.rally-programme__heading p,
.programme-admin-hero h1,
.programme-admin-hero h2,
.programme-admin-hero p,
.programme-admin-panel-heading h2 {
    margin: .2rem 0;
}

.rally-programme__official {
    flex: 0 0 auto;
    padding: .35rem .65rem;
    border-radius: 999px;
    background: #1c574b;
    color: #fff;
    font-size: .8rem;
    font-weight: 800;
}

.rally-programme__hint {
    margin: .65rem 0;
    color: #5a655f;
    font-size: .9rem;
}

.rally-programme__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
}

.rally-programme__item {
    margin: 0;
    overflow: hidden;
    border: 1px solid #b8d0c9;
    border-radius: 12px;
    background: #fff;
}

.rally-programme__item--primary,
.rally-programme__grid--single .rally-programme__item {
    grid-column: 1 / -1;
}

.rally-programme__item a {
    display: block;
    background: #e6f0ec;
}

.rally-programme__item img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 760px;
    object-fit: contain;
}

.rally-programme__item figcaption {
    padding: .7rem .8rem;
    font-weight: 800;
}

.programme-admin-page {
    margin: 0;
    background: #edf4f1;
    color: #173f36;
}

.programme-admin-shell {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.5rem 0 3rem;
}

.programme-admin-back {
    display: inline-block;
    margin-bottom: 1rem;
    color: #1c574b;
    font-weight: 800;
}

.programme-admin-hero,
.programme-admin-panel {
    margin-bottom: 1rem;
    padding: 1.25rem;
    border: 1px solid #a9c7bf;
    border-radius: 16px;
    background: #fff;
}

.programme-admin-hero {
    border-top: 6px solid #eb713e;
}

.programme-admin-flash {
    padding: .85rem 1rem;
    border: 1px solid #d9a43a;
    border-radius: 10px;
    background: #fff8df;
    font-weight: 700;
}

.programme-upload-form,
.programme-image-form {
    display: grid;
    gap: .65rem;
}

.programme-upload-form label,
.programme-image-form label {
    font-weight: 800;
}

.programme-upload-form input,
.programme-image-form input {
    box-sizing: border-box;
    width: 100%;
    margin-top: .25rem;
    padding: .7rem;
    border: 1px solid #9fbdb5;
    border-radius: 8px;
    background: #fff;
}

.programme-primary-button,
.programme-image-form button,
.programme-admin-link {
    display: inline-block;
    padding: .7rem 1rem;
    border: 1px solid #1c574b;
    border-radius: 8px;
    background: #1c574b;
    color: #fff;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.programme-admin-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.programme-admin-card {
    display: grid;
    align-content: start;
    gap: .75rem;
    padding: .8rem;
    border: 1px solid #bfd2cc;
    border-radius: 12px;
    background: #f8fbfa;
}

.programme-admin-card img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    border-radius: 8px;
    background: #e8f1ee;
}

.programme-delete-button {
    width: 100%;
    padding: .6rem;
    border: 1px solid #9d3d36;
    border-radius: 8px;
    background: #fff;
    color: #9d3d36;
    font-weight: 800;
    cursor: pointer;
}

.programme-empty {
    padding: 1rem;
    border: 1px dashed #9fbdb5;
    border-radius: 10px;
    background: #f4faf7;
}

@media (max-width: 760px) {
    .rally-programme__grid,
    .programme-admin-grid {
        grid-template-columns: 1fr;
    }

    .rally-programme__item--primary {
        grid-column: auto;
    }

    .rally-programme__heading {
        align-items: flex-start;
    }
}

