.payouts-aside {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payouts-aside__count {
    margin: 0;
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.payouts-aside__count strong {
    color: var(--red);
}

.payouts-aside__total {
    background: var(--ink);
    color: var(--paper);
    padding: 16px;
}

.payouts-aside__total-label {
    margin: 0;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--yellow);
}

.payouts-aside__total-value {
    margin: 8px 0 0;
    font-family: var(--display);
    font-size: 28px;
    line-height: 1;
}

.card--payment {
    position: relative;
    display: flex;
    flex-direction: column;
}

.card--payment .card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
}

.card--payment .card__meta {
    margin: 0;
    letter-spacing: 0.08em;
}

.card--payment .card__amount {
    margin: 0;
    font-size: 34px;
}

.card--payment .card__title {
    margin: 12px 0 0;
    font-size: 20px;
}

.card--payment .card__badges {
    margin: 14px 0 0;
}

.card--payment .card__link {
    color: inherit;
    text-decoration: none;
}

.card--payment .card__link::after {
    content: "";
    position: absolute;
    inset: 0;
}

.card--payment .card__link:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: -3px;
}

.card--payment:has(.card__link:hover) .card__title, .card--payment:has(.card__link:focus-visible) .card__title {
    text-decoration: underline;
}

.card--payment .card__media img[data-default] {
    object-fit: contain;
}

.payout-show__facts {
    margin: 0 0 32px;
    padding: 16px 18px;
    border: 2px solid var(--ink);
    background: var(--surface);
}

.payout-show__amount {
    font-family: var(--display);
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1;
    color: var(--red);
    margin: 0;
}

.payout-show__stats {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.payout-show__stats li {
    white-space: nowrap;
}

.payout-show__figure--default {
    padding: 3rem;
}

.payout-show__figure--default .news-show__figure-image {
    height: auto;
    object-fit: contain;
}

.payout-show__figure:not(.payout-show__figure--default) {
    height: 100%;
}

.payout-show__figure:not(.payout-show__figure--default) .news-show__figure-image {
    height: 100%;
}

.payouts__more {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.payouts__more .btn[aria-busy="true"] {
    opacity: 0.6;
    pointer-events: none;
}

.support-messages {
    padding: 48px 0 0;
    background: linear-gradient(to bottom, transparent 0, var(--paper) 100px);
}

.support-messages__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.support-messages__gallery {
    border-top: 0;
    padding: 0;
}

/* Room around the track so tilted corners, tape and shadow are not clipped by the scroll box. */
.support-messages__gallery .news-gallery__track {
    gap: 28px;
    padding: 20px 12px 20px;
    align-items: flex-start;
}

.support-messages__slide {
    flex: 0 0 clamp(210px, (100% - 3 * 28px) / 4, 240px);
}

.support-messages__gallery .news-gallery__viewport:focus-within .news-gallery__arrow--available {
    opacity: 0;
    pointer-events: none;
}

.support-messages__gallery .news-gallery__viewport:hover .news-gallery__arrow--available, .support-messages__gallery .news-gallery__viewport:has(.news-gallery__arrow:focus-visible) .news-gallery__arrow--available {
    opacity: 1;
    pointer-events: auto;
}

.support-messages__gallery .news-gallery__arrow {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--paper);
    color: var(--muted);
    font-size: 22px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.14);
}

.support-messages__gallery .news-gallery__arrow:hover {
    background: var(--paper);
    color: var(--ink);
}

.postit {
    --postit-paper: #FFF1A8;
    --postit-tilt: -2.6deg;
    --postit-tape-tilt: 3.5deg;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 24px 22px 22px;
    max-width: 240px;
    aspect-ratio: 1 / 1;
    background: var(--postit-paper);
    box-shadow: 0 10px 18px -8px rgba(17, 17, 17, 0.35);
    transform: rotate(var(--postit-tilt));
}

/* Firefox snaps each glyph to the pixel grid along the tilted baseline and words
   come out stair-stepped. A filter rasterises the note flat in its own surface
   before the tilt, at the price of a slightly softer text — Firefox only, the
   other engines draw tilted text sharp natively. */
@supports (-moz-appearance: none) {
    .postit {
        box-shadow: none;
        filter: drop-shadow(0 8px 8px rgba(17, 17, 17, 0.3));
    }
}

.postit::before {
    content: "";
    position: absolute;
    top: -9px;
    left: 50%;
    width: 78px;
    height: 20px;
    background: rgba(255, 255, 255, 0.55);
    border-left: 1px solid rgba(17, 17, 17, 0.08);
    border-right: 1px solid rgba(17, 17, 17, 0.08);
    transform: translateX(-50%) rotate(var(--postit-tape-tilt));
}

/* Five papers and six tilts: neighbours never match in 1, 2 or 3 columns,
   and the pair only repeats every thirty notes. */
li:nth-child(5n + 2) > .postit {
    --postit-paper: #F9DCE4;
}

li:nth-child(5n + 3) > .postit {
    --postit-paper: #D8EBDA;
}

li:nth-child(5n + 4) > .postit {
    --postit-paper: #CFE4F5;
}

li:nth-child(5n + 5) > .postit {
    --postit-paper: #FBE1CB;
}

li:nth-child(6n + 2) > .postit {
    --postit-tilt: 1.8deg;
    --postit-tape-tilt: -2.2deg;
}

li:nth-child(6n + 3) > .postit {
    --postit-tilt: -0.7deg;
    --postit-tape-tilt: 1.4deg;
}

li:nth-child(6n + 4) > .postit {
    --postit-tilt: 2.9deg;
    --postit-tape-tilt: -4deg;
}

li:nth-child(6n + 5) > .postit {
    --postit-tilt: -1.9deg;
    --postit-tape-tilt: 2.8deg;
}

li:nth-child(6n + 6) > .postit {
    --postit-tilt: 0.6deg;
    --postit-tape-tilt: -1.1deg;
}

.postit__text {
    margin: 0;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.45;
}

.postit__more {
    font-size: 14px;
    font-weight: 600;
}

.postit__byline {
    margin-top: auto;
    font-family: var(--mono);
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.postit__author {
    color: var(--ink);
}

.support-messages .postit__text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    overflow: hidden;
}

.support-messages__more {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.support-messages__more .btn[aria-busy="true"] {
    opacity: 0.6;
    pointer-events: none;
}

@media (max-width: 767px) {
    .payouts__more .btn,
    .support-messages__more .btn {
        width: 100%;
    }
}

/* `1fr` tracks so auto-fill counts columns on the 210px minimum (a definite max
   would count on it instead); the list caps at four full-size notes. */
.support-messages-grid {
    list-style: none;
    margin: 0;
    padding: 12px 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 28px;
    align-items: start;
    max-width: calc(4 * 240px + 3 * 28px);
}

.support-messages-grid > li {
    width: 100%;
    max-width: 240px;
    scroll-margin-top: 90px;
}

@media (max-width: 560px) {
    .support-messages-grid {
        justify-items: center;
    }
}

.support-messages-grid > li:target > .postit {
    animation: message-target-flash 3s ease-out;
}

@keyframes message-target-flash {
    from {
        outline: 3px solid var(--ink);
        outline-offset: 3px;
    }
    to {
        outline: 3px solid transparent;
        outline-offset: 3px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .support-messages-grid > li:target > .postit {
        animation: none;
    }
}

.support-messages-page__empty {
    color: var(--muted);
    font-weight: 600;
}
