#mw-popup {
    display: none !important;
}
.no-animation {
    animation: none !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}
.border-bottom {
    border-bottom: 2px #c7c5bd solid;
}

    .JNKonkurrence    h2 {
        font-size: 28px;
        letter-spacing: 3px;
    }
    .JNKonkurrence h3 {
        font-size: 28px;
        text-transform: none;
        letter-spacing: 0;
    }
    .JNKonkurrence p strong {
        font-size: 12px;
        letter-spacing: 3px;
        opacity: .5;
        text-transform: uppercase;
        margin-bottom: 25px;
        font-weight: bold;
    }


.konkurrence-header.konkurrence-header    .text-container {
        padding-block: 200px 280px;
        max-width: 800px;
        margin-inline: auto;
    }
.konkurrence-header.konkurrence-header    h1 {
        font-size: 40px;
        letter-spacing: 3px;
    }
.konkurrence-header.konkurrence-header    h3 {
        font-size: 22px;
        text-transform: none;
        letter-spacing: 0;
        max-width: 580px;
        margin: auto;
        text-transform: none;
        letter-spacing: 0;
    }
.konkurrence-header.konkurrence-header    p strong {
        font-size: 12px;
        letter-spacing: 3px;
    }
    /* buttons */
.konkurrence-header.konkurrence-header   ul {
        list-style-type: none !important;
        list-style: none;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
        align-items: center;
        justify-content: center;
        position: absolute;
        width: 100%;
        left: 0;
        bottom: 60px;
        margin: 0 !important;
    }
.konkurrence-header.konkurrence-header    li {
        margin: 0;
        padding: 0;
    }
.konkurrence-header.konkurrence-header    li a {
        display: inline-block;
        padding: 0.65rem 1.75rem;
        font: inherit;
        font-size: 1rem;
        font-weight: 700;
        text-decoration: none;
        cursor: pointer;
        transition: background 0.15s, color 0.15s, opacity 0.15s;
        white-space: nowrap;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        min-width: 280px;
        display: block;
        text-decoration: none;
        padding: 12px 0;
        text-transform: uppercase;
        font-weight: normal;
        line-height: 11px;
        position: relative;
        overflow: hidden;
        z-index: 0;
        -webkit-transition: 200ms linear;
        -ms-transition: 200ms linear;
        transition: 200ms linear;
        border-width: 1px !important;
        border-style: solid !important;
        font-size: 10px;
        letter-spacing: 2px;
        margin: 0 10px;
        flex: 1;

    }

.konkurrence-header.konkurrence-header    li a {
        /* dark filled button */
        background: #f4f1e6;
        color: #38352d;
        border: 1px solid #38352d;
    }
.konkurrence-header.konkurrence-header   li a:hover {
        background: var(--text-color);
        color: #f4f1e6;
    }


@media (max-width: 768px) {
    .konkurrence-header.konkurrence-header h1 {
        font-size: 26px;
    }
    .JNKonkurrence {
        h2 {
            font-size: 26px;
        }
    }
    .konkurrence-header.konkurrence-header {
        h3 {
            font-size: 20px;
        }
    }
}
:root {
    --text-color: #38352d;
    --page-background: #f4f1e6;
    --secondary-background: #edebe1;
    --button-background: var(--text-color);
    --button-text-color: var(--page-background);
    --button-border-color: var(--text-color);
    --button-hover-background: #38352d;

    color: var(--text-color);

    --form-field-background: #e3ded4;
}

/* --------------------------------------------------------------------------
   Shared container
   -------------------------------------------------------------------------- */

.JNKonkurrence .contest-share,
.JNKonkurrence .contest-form,
.JNKonkurrence .contest-list {
    font-family: inherit;
    color: inherit;
    line-height: 1.6;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* --------------------------------------------------------------------------
   Share block
   -------------------------------------------------------------------------- */

 .contest-share__card {
     border: 0px solid var(--text-color);
     border-radius: 0px;
     padding: 1.5rem;
     margin-bottom: 0rem;
 }
.contest-share__card p {
         font-size: 12px;
         letter-spacing: 3px;
         opacity: .5;
         text-transform: uppercase;
         margin-bottom: 25px;
         font-weight: bold;
     }


 .contest-share__success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #b5dfbe;
    border-radius: 0px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

 .contest-share__road {
    margin: 0;
    font-size: 28px;
    letter-spacing: 3px;
    line-height: 1.3;
    text-transform: uppercase;
     font-family: "Ethereal-Light", "Univers", sans-serif !important;
     font-weight: 300 !important;
}

 .contest-share__city {
    text-transform: uppercase;
}

 .contest-share__story {
    margin: 0 0 0.75rem;
    opacity: 0.85;
}
 .contest-list__votes {
    padding-top: 0.35rem;
}
.contest-list__city {
    color: #5A5A5A;
    font-size: 9px;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 3px;
    font-weight: 400;
}
.contest-list__road {
    color: #000000;
    font-size: 16px;
    margin: 0 0 5px;
    font-weight: 500;
    letter-spacing: 2px;
}

 .contest-share__meta {
    font-size: 0.875rem;
    /*opacity: 0.65;*/
    margin: 0 0 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #c7c5bd;
    border-bottom: 1px solid #c7c5bd;

}
.contest-share__vote-count, .contest-share__vote-placement {
    font-size: 4rem;
    letter-spacing: 0.1em;
    font-family: "Ethereal-Light", "Univers", sans-serif !important;
    font-weight: 300 !important;
}
.contest-share__meta-left {
    border-right: 1px solid #c7c5bd;
    margin-block: 1rem;
    text-align: center;
    span {
        display: block;
    }
}
.contest-share__meta-right {
    margin-block: 1rem;
    text-align: center;
    span {
        display: block;
    }
}

 .contest-share__vote-count {

}

 .contest-share__voted,
 .contest-share__closed {
    font-size: 0.9rem;
    opacity: 0.65;
    margin: 0 0 0.75rem;
}

 .contest-share__share-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 1rem;
}

 .contest-share__url-input {
    flex: 1 1 200px;
    min-width: 0;
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--text-color);
    border-radius: 0px;
    background: transparent;
    opacity: 0.6;
    font-family: inherit;
    color: var(--text-color);
}

 .contest-share__loading {
    padding: 1rem 0;
    opacity: 0.5;
    font-style: italic;
}

/* --------------------------------------------------------------------------
   Form
   -------------------------------------------------------------------------- */

/* Honeypot — visually hidden, screen-reader hidden */
.JNKonkurrence .contest-form__honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px;
}

.JNKonkurrence .contest-form__group {
    position: relative;
    margin-bottom: 4px;
}

.JNKonkurrence .contest-form__row {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
}

.JNKonkurrence .contest-form__row .contest-form__group {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

/* Floating label — sits inside the field by default */
.JNKonkurrence .contest-form__group label {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 400;
    font-size: 1rem;
    color: var(--text-color);
    pointer-events: none;
    transition: top 0.18s ease, font-size 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 1.5rem);
    z-index: 1;
}

/* Textarea: label anchors to top since field is tall */
.JNKonkurrence .contest-form__group:has(textarea) label {
    top: 1.1rem;
    transform: none;
}

/* Floated state — on focus or when field has a value */
.JNKonkurrence .contest-form__group:has(input:focus) label,
.JNKonkurrence .contest-form__group:has(input:not(:placeholder-shown)) label,
.JNKonkurrence .contest-form__group:has(textarea:focus) label,
.JNKonkurrence .contest-form__group:has(textarea:not(:placeholder-shown)) label {
    top: 0.35rem;
    transform: none;
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0.6;
}

.JNKonkurrence .contest-form__required {
    color: #c00;
}

.JNKonkurrence .contest-form__group input,
.JNKonkurrence .contest-form__group textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 1.55rem 0.75rem 0.5rem;
    border: none;
    border-radius: 0px;
    font: inherit;
    font-size: 1rem;
    background: var(--form-field-background);
    color: var(--text-color);
    transition: box-shadow 0.15s;
    /* remove browser autofill yellow */
    -webkit-box-shadow: 0 0 0 100px var(--form-field-background) inset;
}

.JNKonkurrence .contest-form__group input:focus,
.JNKonkurrence .contest-form__group textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(56, 53, 45, 0.18);
}

.JNKonkurrence .contest-form__char-count {
    display: block;
    text-align: right;
    font-size: 0.8rem;
    opacity: 0.55;
    margin-top: 0.1rem;
}

.JNKonkurrence .contest-form__error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f1b0b7;
    border-radius: 0px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.JNKonkurrence .contest-form__submit {
    font-family: "Ethereal-Light", "Univers", sans-serif !important;
    font-weight: 300 !important;
    display: inline-block;
    padding: 0.65rem 1.75rem;
    font: inherit;
    font-size: 1rem;
    letter-spacing: 3px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 0px;
    background: var(--button-background);
    color: var(--button-text-color);
    border: 2px solid var(--button-border-color);
    transition: opacity 0.15s, background 0.15s;
}

.JNKonkurrence .contest-form__submit:hover:not(:disabled) {
    background: var(--button-hover-background);
    opacity: 0.88;
}

.JNKonkurrence .contest-form__submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.JNKonkurrence .contest-form__closed {
    opacity: 0.65;
    font-style: italic;
}

.JNKonkurrence .contest-list__search-wrap {
    margin-bottom: 1.5rem;
}

.JNKonkurrence .contest-list__search {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.9rem;
    border: none;
    border-radius: 0px;
    font: inherit;
    font-size: 1rem;
    background: #fff;
    color: #474747;
    border: 1px solid #474747;
}

.JNKonkurrence .contest-list__search:focus {
    /*outline: none;
    box-shadow: 0 0 0 3px rgba(56, 53, 45, 0.18);*/
}

.JNKonkurrence .contest-list__search::placeholder {
    opacity: 0.8;
}

/* Hide the browser's native clear (×) button on search inputs */
/*.JNKonkurrence .contest-list__search::-webkit-search-cancel-button {
    -webkit-appearance: none;
}*/

/* --------------------------------------------------------------------------
   Leaderboard
   -------------------------------------------------------------------------- */

.JNKonkurrence .contest-list__items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.JNKonkurrence .contest-list__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(56, 53, 45, 0.3);
}

.JNKonkurrence .contest-list__item:last-child {
    border-bottom: none;
}

.JNKonkurrence .contest-list__rank {
    font-size: 2.8rem;
    font-family: "Ethereal-Light", "Univers", sans-serif !important;
    font-weight: 300 !important;
    line-height: 1;
    min-width: 2.75rem;
    text-align: right;
    opacity: 0.2;
    flex-shrink: 0;
    padding-top: 0.15rem;
    user-select: none;
}

.JNKonkurrence .contest-list__body {
    flex: 1;
    min-width: 0;
    color: #474747;
}

.JNKonkurrence .contest-list__road {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.JNKonkurrence .contest-list__story {
    margin: 0 0 0.25rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.JNKonkurrence .contest-list__submitter {
    font-size: 0.8rem;
    opacity: 0.5;
    margin: 0;
}

.JNKonkurrence .contest-list__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    flex-shrink: 0;
    min-width: 72px;
    text-align: right;
}

.JNKonkurrence .contest-list__vote-count {
    font-family: "Ethereal-Light", "Univers", sans-serif !important;
    font-weight: 300 !important;
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1;
    transition: opacity 0.2s;
}

.JNKonkurrence .contest-list__vote-label {
    font-size: 0.72rem;
    opacity: 0.55;
    margin-top: -0.15rem;
}

.JNKonkurrence .contest-list__voted {
    font-size: 0.8rem;
    color: green;
}

.JNKonkurrence .contest-list__share-link {
    font-size: 0.78rem;
    opacity: 0.5;
    cursor: pointer;
    background: transparent;
    color: var(--text-color);
    opacity: 1;
    text-decoration: underline;
    padding: 0;
    margin-top: 5px;
}

.JNKonkurrence .contest-list__share-link:hover {
    opacity: 0.85;
}

.JNKonkurrence .contest-list__empty,
.JNKonkurrence .contest-list__error {
    padding: 2rem 0;
    opacity: 0.55;
    text-align: center;
    list-style: none;
}

.JNKonkurrence .contest-list__loading {
    padding: 1rem 0;
    opacity: 0.5;
    font-style: italic;
}

.JNKonkurrence .contest-list__load-more-item {
    list-style: none;
    text-align: center;
    padding: 1.25rem 0 0.5rem;
}

.JNKonkurrence .contest-list__load-more {
    font-family: "Ethereal-Light", "Univers", sans-serif !important;
    font-weight: 300 !important;
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 0.55rem 1.5rem;
    border-radius: 0px;
    cursor: pointer;
    background: var(--button-background);
    color: var(--button-text-color);
    background: var(--text-color);
    border: 2px solid var(--text-color);
    transition: background 0.15s, color 0.15s;
    width: 100%;
}

.JNKonkurrence .contest-list__load-more:hover {
    background: var(--text-color);
    color: var(--page-background);
    opacity: 0.88;
}

/* --------------------------------------------------------------------------
   Vote buttons — shared across share and list blocks
   -------------------------------------------------------------------------- */

.JNKonkurrence .contest-vote-btn {
    font-family: "Ethereal-Light", "Univers", sans-serif !important;
    font-weight: 300 !important;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    padding: 0.35rem 0.85rem;
    border-radius: 0px;
    cursor: pointer;
    background: var(--button-background);
    color: var(--button-text-color);
    border: 2px solid var(--button-border-color);
    transition: opacity 0.15s, background 0.15s;
    white-space: nowrap;
    min-width: 100px;
}

.JNKonkurrence .contest-vote-btn:hover:not(:disabled) {
    background: var(--button-hover-background);
    opacity: 0.88;
}

.JNKonkurrence .contest-vote-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Share-block vote button — slightly larger */
 .contest-share__vote-btn {
     font-family: "Ethereal-Light", "Univers", sans-serif !important;
     font-weight: 300 !important;
     text-transform: uppercase;
    padding: 0.6rem 1.25rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
     font: inherit;
     font-size: 0.85rem;
     font-weight: 400;
     border-radius: 0px;
     cursor: pointer;
     background: var(--button-background);
     color: var(--button-text-color);
     border: 2px solid var(--button-border-color);
     transition: opacity 0.15s, background 0.15s;
     white-space: nowrap;
     min-width: 90px;
     width: 100%;
     margin-top: 30px;
     letter-spacing: 3px;
     font-size: 0.9rem;

}
.contest-share__vote-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
/* Copy / native share buttons */
.contest-share__copy-btn,
.contest-share__native-btn {
    font: inherit;
    font-size: 0.85rem;
    padding: 0.35rem 0.85rem;
    border-radius: 0px;
    cursor: pointer;
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--button-border-color);
    transition: background 0.15s;
    flex-shrink: 0;
}

 .contest-share__copy-btn:hover,
 .contest-share__native-btn:hover {
    background: var(--secondary-background);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Share modal overlay
   -------------------------------------------------------------------------- */

body.contest-modal-open {
    overflow: hidden;
}

.contest-share-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    overflow-y: auto;
    padding: 2rem 1rem;
    box-sizing: border-box;
    align-items: flex-start;
    justify-content: center;
}

.contest-share-overlay--open {
    display: flex;
}

.contest-share-modal {
    position: relative;
    background: var(--page-background, #f4f1e6);
    color: var(--text-color, #38352d);
    width: 100%;
    max-width: 680px;
    margin: auto;
    padding: 2.5rem 2rem 2rem;
    box-sizing: border-box;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.28);
    animation: contest-modal-in 0.2s ease;
}

@keyframes contest-modal-in {
    from { opacity: 0; transform: translateY(-18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.contest-share-modal__close {
    position: absolute;
    top: 0.9rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-color, #38352d);
    opacity: 0.5;
    padding: 0.25rem 0.4rem;
    transition: opacity 0.15s;
}

.contest-share-modal__close:hover {
    opacity: 1;
}

/* Inside the modal the share block needs no extra margin */
.contest-share-modal .contest-share {
    max-width: none;
    margin: 0;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 520px) {
    .JNKonkurrence .contest-form__row {
        flex-direction: column;
        gap: 0;
    }

    .JNKonkurrence .contest-form__row .contest-form__group {
        margin-bottom: 4px;
    }

    .JNKonkurrence .contest-list__item {
        flex-wrap: wrap;
    }

    .JNKonkurrence .contest-list__actions {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: wrap;
        width: 100%;
        gap: 0.5rem;
    }

    .JNKonkurrence .contest-list__rank {
        font-size: 1.5rem;
        min-width: 2rem;
    }

    .JNKonkurrence .contest-share__share-row {
        flex-direction: column;
        align-items: stretch;
    }
}
