/* =========================================================
   ACADEMY CHALLENGE 2026
   ========================================================= */

.acv26-event {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.acv26-event-header {
    margin-bottom: 2rem;
}

.acv26-event-title {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.acv26-event-intro {
    line-height: 1.7;
}

.acv26-entries {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.acv26-entry {
    display: grid;
    grid-template-columns: 42px 130px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
    padding: 1.25rem;
    border: 1px solid rgba(128, 128, 128, 0.25);
    border-radius: 8px;
}

.acv26-rank {
    padding-top: 0.15rem;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
}

.acv26-cover {
    display: block;
    width: 130px;
    text-decoration: none;
}

.acv26-cover img,
.acv26-cover-placeholder {
    display: flex;
    width: 130px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 5px;
}

.acv26-cover-placeholder {
    align-items: center;
    justify-content: center;
    background: rgba(128, 128, 128, 0.12);
    text-align: center;
}

.acv26-entry-content {
    min-width: 0;
}

.acv26-entry-title {
    margin: 0 0 0.4rem;
}

.acv26-entry-title a {
    color: inherit;
    text-decoration: none;
}

.acv26-entry-title a:hover {
    text-decoration: underline;
}

.acv26-entry-author {
    margin-bottom: 0.9rem;
    opacity: 0.75;
}

.acv26-entry-description {
    line-height: 1.7;
}

.acv26-entry-description p:first-child {
    margin-top: 0;
}

.acv26-entry-description p:last-child {
    margin-bottom: 0;
}

.acv26-empty {
    padding: 1.5rem;
    border: 1px dashed rgba(128, 128, 128, 0.35);
    border-radius: 8px;
}

@media (max-width: 600px) {
    .acv26-entry {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 0.85rem;
        padding: 1rem;
    }

    .acv26-rank {
        grid-column: 1;
        grid-row: 1;
        font-size: 1.15rem;
    }

    .acv26-cover {
        grid-column: 2;
        width: 110px;
    }

    .acv26-cover img,
    .acv26-cover-placeholder {
        width: 110px;
    }

    .acv26-entry-content {
        grid-column: 2;
    }
}

/* =========================================================
   ACADEMY CHALLENGE VOTING
   ========================================================= */

.acv26-entry-action {
    margin-top: 1rem;
}

.acv26-vote-button {
    cursor: pointer;
}

.acv26-vote-button:disabled,
.acv26-vote-button.acv26-voting {
    cursor: wait;
    opacity: 0.6;
}

.acv26-vote-message {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.acv26-vote-message a {
    text-decoration: underline;
}

.acv26-vote-message.is-success {
    opacity: 0.8;
}

.acv26-vote-message.is-error {
    font-weight: 600;
}

.acv26-vote-gap {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.7;
    line-height: 1.4;
}

.acv26-vote-control {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
}

.acv26-vote-control .acv26-vote-message {
    max-width: 280px;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* =========================================================
   ACADEMY CHALLENGE
   CHALKBOARD VOTE BUTTON — CHAPTER BOTTOM
   ========================================================= */


/* ---------------------------------------------------------
   CENTER THE BUTTON
   --------------------------------------------------------- */

.acv26-vote-control--chapter-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;

    margin: 2rem auto 2.25rem;

    text-align: center;
}


/* ---------------------------------------------------------
   CHALKBOARD BUTTON
   --------------------------------------------------------- */

.acv26-vote-control--chapter-bottom .acv26-vote-button {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 170px;
    min-height: 58px;

    padding: 0.85rem 1.75rem;

    /* Chalkboard green */
    background-color: #274c43 !important;

    /* Warm brown frame */
    border: 4px double #b68757 !important;
    border-radius: 8px !important;

    /* Chalk lettering */
    color: #e7e7e7 !important;

    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;

    text-align: center;
    text-decoration: none !important;
    text-shadow: 0 0 1px rgba(231, 231, 231, 0.45);

    /* Raised wooden frame effect */
    box-shadow:
        0 4px 0 #855f3c,
        0 6px 10px rgba(0, 0, 0, 0.16),
        inset 0 0 0 1px rgba(231, 231, 231, 0.12);

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease,
        filter 0.2s ease;
}


/* ---------------------------------------------------------
   HOVER — GENTLE CHALKBOARD GLOW
   --------------------------------------------------------- */

.acv26-vote-control--chapter-bottom .acv26-vote-button:hover {
    background-color: #315c50 !important;

    border-color: #c99b6b !important;

    color: #ffffff !important;

    filter: brightness(1.08);

    transform: translateY(-2px);

    box-shadow:
        0 6px 0 #855f3c,
        0 8px 14px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(231, 231, 231, 0.2);
}


/* ---------------------------------------------------------
   PRESSED STATE
   --------------------------------------------------------- */

.acv26-vote-control--chapter-bottom .acv26-vote-button:active {
    transform: translateY(2px);

    box-shadow:
        0 1px 0 #855f3c,
        inset 0 0 0 1px rgba(231, 231, 231, 0.12);
}


/* ---------------------------------------------------------
   KEYBOARD FOCUS
   --------------------------------------------------------- */

.acv26-vote-control--chapter-bottom .acv26-vote-button:focus-visible {
    outline: 2px solid #b68757 !important;
    outline-offset: 4px;
}


/* ---------------------------------------------------------
   WHILE VOTING IS PROCESSING
   --------------------------------------------------------- */

.acv26-vote-control--chapter-bottom .acv26-vote-button:disabled,
.acv26-vote-control--chapter-bottom .acv26-vote-button.acv26-voting {
    opacity: 0.65;

    cursor: wait;

    transform: none;
}


/* ---------------------------------------------------------
   SUCCESS / ERROR MESSAGE
   --------------------------------------------------------- */

.acv26-vote-control--chapter-bottom .acv26-vote-message {
    max-width: 340px;

    margin: 0.85rem auto 0;

    color: inherit;

    font-size: 0.9rem;
    line-height: 1.6;

    text-align: center;
}