:root {
    --meme-ink: #082131;
    --meme-night: #071b2a;
    --meme-night-soft: #0b2b3d;
    --meme-sky: #16a8c7;
    --meme-sky-deep: #087f9f;
    --meme-lime: #b9e83f;
    --meme-cloud: #f3f9fc;
    --meme-line: rgba(14, 81, 108, 0.16);
}

.weather-memes-main {
    padding-bottom: 5rem;
}

.weather-memes-hero,
.weather-meme-submit,
.weather-memes-feed,
.weather-meme-detail {
    width: min(100% - 2rem, 1120px);
    margin-inline: auto;
}

.weather-memes-hero {
    padding-top: 1.5rem;
}

.weather-memes-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
    color: #8faeba;
    font-size: 0.82rem;
    font-weight: 700;
}

.weather-memes-breadcrumbs a {
    color: #56c4d8;
    text-decoration: none;
}

.weather-memes-breadcrumbs a:hover,
.weather-memes-breadcrumbs a:focus-visible {
    text-decoration: underline;
}

.weather-memes-hero__panel {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2.5rem;
    overflow: hidden;
    padding: clamp(2rem, 5vw, 3.8rem);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    color: #f8fdff;
    background:
        radial-gradient(circle at 83% 18%, rgba(185, 232, 63, 0.18), transparent 22rem),
        linear-gradient(126deg, #061a29 0%, #0b3448 62%, #086d86 100%);
    box-shadow: 0 24px 55px rgba(8, 53, 74, 0.2);
}

.weather-memes-hero__panel::before,
.weather-memes-hero__panel::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 999px;
}

.weather-memes-hero__panel::before {
    width: 22rem;
    height: 6rem;
    right: 6rem;
    bottom: -3rem;
    background: rgba(255, 255, 255, 0.07);
    transform: rotate(-8deg);
}

.weather-memes-hero__panel::after {
    width: 11rem;
    height: 11rem;
    right: -3rem;
    top: -4rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.weather-memes-kicker {
    margin: 0 0 0.65rem;
    color: #0d7792;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.weather-memes-hero .weather-memes-kicker {
    color: #caf174;
}

.weather-memes-hero__copy h1 {
    margin: 0;
    color: #fff;
    font-family: "Newsreader", Georgia, serif;
    font-size: clamp(2.8rem, 7vw, 5.1rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 0.95;
}

.weather-memes-hero__copy > p:last-child {
    max-width: 680px;
    margin: 1rem 0 0;
    color: #cce6ef;
    font-size: clamp(1rem, 1.7vw, 1.14rem);
    line-height: 1.7;
}

.weather-memes-hero__signal {
    display: grid;
    min-width: 155px;
    place-items: center;
    padding: 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    background: rgba(1, 19, 31, 0.4);
    backdrop-filter: blur(8px);
}

.weather-memes-hero__signal span {
    color: #9fcbd7;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.weather-memes-hero__signal strong {
    margin: 0.25rem 0 0.7rem;
    color: var(--meme-lime);
    font-size: 2rem;
}

.weather-memes-hero__signal i {
    width: 100%;
    height: 5px;
    overflow: hidden;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.12);
}

.weather-memes-hero__signal i::after {
    content: "";
    display: block;
    width: 84%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--meme-sky), var(--meme-lime));
}

.weather-meme-submit {
    margin-top: 1.1rem;
}

.weather-meme-submit__details {
    overflow: hidden;
    border: 1px solid var(--meme-line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 35px rgba(11, 69, 91, 0.08);
}

.weather-meme-submit__details > summary {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-height: 76px;
    padding: 0.9rem 1.15rem;
    cursor: pointer;
    list-style: none;
}

.weather-meme-submit__details > summary::-webkit-details-marker {
    display: none;
}

.weather-meme-submit__summary-icon {
    display: grid;
    flex: 0 0 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, #0688a7, #16b4c9);
    font-size: 1.5rem;
    transition: transform 180ms ease;
}

.weather-meme-submit__details[open] .weather-meme-submit__summary-icon {
    transform: rotate(45deg);
}

.weather-meme-submit__details summary strong,
.weather-meme-submit__details summary small {
    display: block;
}

.weather-meme-submit__details summary strong {
    color: var(--meme-ink);
    font-size: 0.98rem;
}

.weather-meme-submit__details summary small {
    margin-top: 0.12rem;
    color: #68808b;
    font-size: 0.76rem;
}

.weather-meme-submit__summary-action {
    margin-left: auto;
    color: #087e9d;
    font-size: 0.78rem;
    font-weight: 800;
}

.weather-meme-submit__form {
    padding: 1.2rem;
    border-top: 1px solid var(--meme-line);
    background: #f7fbfd;
}

.weather-meme-submit__notice {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    color: #315b68;
    background: #e7f7f4;
    font-size: 0.85rem;
    font-weight: 700;
}

.weather-meme-submit__notice span {
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #159475;
}

.weather-meme-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.weather-meme-field,
.weather-meme-consent {
    min-width: 0;
}

.weather-meme-field--full,
.weather-meme-consent,
.weather-meme-field__error--full {
    grid-column: 1 / -1;
}

.weather-meme-field label {
    display: block;
    margin-bottom: 0.38rem;
    color: #173c4b;
    font-size: 0.78rem;
    font-weight: 800;
}

.weather-meme-field input,
.weather-meme-field textarea {
    width: 100%;
    border: 1px solid #c9dce4;
    border-radius: 11px;
    color: #143343;
    background: #fff;
    font: inherit;
}

.weather-meme-field input:not([type="file"]),
.weather-meme-field textarea {
    padding: 0.72rem 0.78rem;
}

.weather-meme-field input[type="file"] {
    padding: 0.45rem;
}

.weather-meme-field input[type="file"]::file-selector-button {
    margin-right: 0.7rem;
    padding: 0.55rem 0.7rem;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: #0b809e;
    font-weight: 800;
    cursor: pointer;
}

.weather-meme-field input:focus-visible,
.weather-meme-field textarea:focus-visible,
.weather-meme-consent input:focus-visible,
.weather-meme-submit__details summary:focus-visible {
    outline: 3px solid rgba(22, 168, 199, 0.28);
    outline-offset: 2px;
    border-color: #169fbd;
}

.weather-meme-field small {
    display: block;
    margin-top: 0.28rem;
    color: #69808b;
    font-size: 0.72rem;
}

.weather-meme-field__error {
    display: block;
    margin-top: 0.3rem;
    color: #ad2938;
    font-size: 0.76rem;
    font-weight: 700;
}

.weather-meme-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: #34515f;
    font-size: 0.8rem;
    line-height: 1.45;
}

.weather-meme-consent input {
    width: 18px;
    height: 18px;
    margin-top: 0.05rem;
    accent-color: #078ba8;
}

.weather-meme-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

.weather-meme-submit__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
}

.weather-meme-submit__footer p {
    margin: 0;
    color: #627b86;
    font-size: 0.78rem;
}

.weather-meme-primary {
    min-height: 44px;
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, #087d9c, #0fa9be);
    box-shadow: 0 9px 18px rgba(8, 126, 157, 0.2);
}

.weather-memes-feed {
    margin-top: 3.2rem;
}

.weather-memes-feed__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    width: min(100%, 880px);
    margin: 0 auto 1.2rem;
}

.weather-memes-feed__heading h2 {
    margin: 0;
    color: #eefbfe;
    font-family: "Newsreader", Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 2.65rem);
}

.weather-memes-feed__total {
    padding: 0.45rem 0.7rem;
    border: 1px solid #cce1e8;
    border-radius: 999px;
    color: #476874;
    background: #f6fbfc;
    font-size: 0.75rem;
    font-weight: 800;
}

.weather-memes-list {
    display: grid;
    gap: 2rem;
}

.weather-meme-card {
    width: min(100%, 880px);
    margin-inline: auto;
    overflow: hidden;
    border: 1px solid rgba(147, 195, 207, 0.24);
    border-radius: 24px;
    color: #eaf8fc;
    background:
        linear-gradient(145deg, rgba(22, 168, 199, 0.08), transparent 30%),
        var(--meme-night);
    box-shadow: 0 22px 50px rgba(6, 36, 52, 0.2);
}

.weather-meme-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.4rem 1rem;
}

.weather-meme-card__eyebrow {
    margin: 0 0 0.3rem;
    color: #7fd8e7;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.weather-meme-card__title {
    margin: 0;
    color: #fff;
    font-family: "Newsreader", Georgia, serif;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    line-height: 1.1;
}

.weather-meme-card__title a {
    color: inherit;
    text-decoration: none;
}

.weather-meme-card__title a:hover,
.weather-meme-card__title a:focus-visible {
    color: #c9f074;
}

.weather-meme-card__number {
    flex: 0 0 auto;
    padding: 0.35rem 0.5rem;
    border: 1px solid rgba(154, 221, 231, 0.18);
    border-radius: 8px;
    color: #7ba9b7;
    font-size: 0.7rem;
    font-weight: 800;
}

.weather-meme-card__image-link {
    position: relative;
    display: block;
    margin: 0 1rem;
    overflow: hidden;
    border: 1px solid rgba(202, 235, 241, 0.28);
    border-radius: 14px;
    background: #02090e;
}

.weather-meme-card__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 900px;
    object-fit: contain;
    background: #02090e;
}

.weather-meme-card__body {
    padding: 1.1rem 1.4rem 0.95rem;
}

.weather-meme-card__description {
    margin: 0 0 0.9rem;
    color: #d4e9ef;
    font-size: 1rem;
    line-height: 1.65;
}

.weather-meme-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.2rem;
    color: #88aeba;
    font-size: 0.76rem;
}

.weather-meme-card__meta strong {
    color: #e9f8fb;
}

.weather-meme-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1.4rem 1.2rem;
    border-top: 1px solid rgba(154, 221, 231, 0.1);
    background: rgba(0, 0, 0, 0.12);
}

.weather-meme-like {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.weather-meme-like__button {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0.65rem 0.9rem;
    border: 1px solid rgba(185, 232, 63, 0.38);
    border-radius: 11px;
    color: #d9f58e;
    background: rgba(185, 232, 63, 0.08);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 150ms ease, background 150ms ease;
}

.weather-meme-like__button:hover:not(:disabled) {
    transform: translateY(-1px);
    background: rgba(185, 232, 63, 0.15);
}

.weather-meme-like__button.is-liked,
.weather-meme-like__button:disabled {
    color: #c7dd8f;
    opacity: 0.78;
    cursor: default;
}

.weather-meme-like__button:focus-visible,
.weather-meme-share__button:focus-visible,
.weather-meme-card__permalink:focus-visible,
.weather-meme-card__image-link:focus-visible,
.weather-memes-pagination a:focus-visible,
.weather-meme-back:focus-visible {
    outline: 3px solid rgba(185, 232, 63, 0.5);
    outline-offset: 3px;
}

.weather-meme-like__count {
    display: grid;
    min-width: 52px;
    line-height: 1.05;
}

.weather-meme-like__count strong {
    color: #fff;
    font-size: 1.05rem;
}

.weather-meme-like__count span {
    color: #779ca8;
    font-size: 0.62rem;
}

.weather-meme-like__status {
    max-width: 210px;
    color: #9ec0ca;
    font-size: 0.7rem;
}

.weather-meme-share {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.weather-meme-share__button,
.weather-meme-card__permalink {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 42px;
    text-decoration: none;
}

.weather-meme-share__button {
    padding: 0.65rem 0.9rem;
    border-radius: 11px;
    color: #fff;
    background: #2365b1;
    font-size: 0.8rem;
    font-weight: 800;
}

.weather-meme-share__icon {
    display: grid;
    width: 21px;
    height: 21px;
    place-items: center;
    border-radius: 6px;
    color: #2365b1;
    background: #fff;
    font-family: Arial, sans-serif;
    font-weight: 900;
}

.weather-meme-card__permalink {
    color: #8fb7c3;
    font-size: 0.73rem;
    font-weight: 700;
}

.weather-meme-card__permalink:hover {
    color: #fff;
}

.weather-memes-empty {
    width: min(100%, 880px);
    margin-inline: auto;
    padding: 3.2rem 1.5rem;
    border: 1px dashed #b8d3dc;
    border-radius: 22px;
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
}

.weather-memes-empty > span {
    font-size: 2.7rem;
}

.weather-memes-empty h3 {
    margin: 0.75rem 0 0.4rem;
    color: var(--meme-ink);
    font-family: "Newsreader", Georgia, serif;
    font-size: 1.7rem;
}

.weather-memes-empty p {
    margin: 0;
    color: #607985;
}

.weather-memes-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: min(100%, 880px);
    margin: 2rem auto 0;
}

.weather-memes-pagination__edge,
.weather-memes-pagination__pages a,
.weather-memes-pagination__pages span {
    display: inline-grid;
    min-width: 40px;
    min-height: 40px;
    place-items: center;
    border: 1px solid #c7dce3;
    border-radius: 10px;
    color: #17647a;
    background: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
}

.weather-memes-pagination__edge {
    display: inline-flex;
    gap: 0.45rem;
    padding: 0 0.8rem;
}

.weather-memes-pagination__pages {
    display: flex;
    gap: 0.4rem;
}

.weather-memes-pagination__pages .is-current {
    border-color: #087f9f;
    color: #fff;
    background: #087f9f;
}

.weather-memes-pagination__pages .is-gap {
    border-color: transparent;
    background: transparent;
}

.weather-memes-pagination .is-disabled {
    opacity: 0.45;
}

.weather-meme-detail {
    padding-top: 1.5rem;
}

.weather-meme-detail__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(100%, 880px);
    margin: 0 auto 1rem;
    color: #718892;
    font-size: 0.75rem;
    font-weight: 700;
}

.weather-meme-back {
    color: #126f88;
    font-weight: 800;
    text-decoration: none;
}

.weather-meme-card--detail {
    margin-bottom: 1rem;
}

@media (max-width: 760px) {
    .weather-memes-hero,
    .weather-meme-submit,
    .weather-memes-feed,
    .weather-meme-detail {
        width: min(100% - 1rem, 1120px);
    }

    .weather-memes-hero {
        padding-top: 0.75rem;
    }

    .weather-memes-hero__panel {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1.6rem 1.2rem;
        border-radius: 20px;
    }

    .weather-memes-hero__signal {
        display: none;
    }

    .weather-meme-submit__summary-action {
        display: none;
    }

    .weather-meme-form-grid {
        grid-template-columns: 1fr;
    }

    .weather-meme-field--full,
    .weather-meme-consent,
    .weather-meme-field__error--full {
        grid-column: auto;
    }

    .weather-meme-submit__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .weather-meme-submit__footer .button {
        width: 100%;
    }

    .weather-memes-feed {
        margin-top: 2.3rem;
    }

    .weather-memes-feed__heading {
        align-items: flex-start;
    }

    .weather-meme-card {
        border-radius: 18px;
    }

    .weather-meme-card__header,
    .weather-meme-card__body {
        padding-inline: 1rem;
    }

    .weather-meme-card__image-link {
        margin-inline: 0.5rem;
        border-radius: 10px;
    }

    .weather-meme-card__actions {
        align-items: stretch;
        flex-direction: column;
        padding-inline: 1rem;
    }

    .weather-meme-like,
    .weather-meme-share {
        justify-content: space-between;
    }

    .weather-meme-like__status {
        display: none;
    }

    .weather-meme-share__button {
        justify-content: center;
        flex: 1;
    }

    .weather-memes-pagination {
        flex-wrap: wrap;
        gap: 0.6rem;
    }

    .weather-memes-pagination__pages {
        order: -1;
        width: 100%;
        justify-content: center;
    }

    .weather-memes-pagination__edge {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .weather-memes-breadcrumbs {
        overflow: hidden;
        white-space: nowrap;
    }

    .weather-meme-submit__details > summary {
        padding-inline: 0.8rem;
    }

    .weather-meme-submit__form {
        padding: 0.9rem;
    }

    .weather-memes-feed__total,
    .weather-meme-card__number,
    .weather-meme-card__permalink {
        display: none;
    }

    .weather-meme-like__button,
    .weather-meme-share__button {
        min-height: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .weather-meme-submit__summary-icon,
    .weather-meme-like__button {
        transition: none;
    }
}
