/* Mini-Maxi style round: subtle UX upgrades */

.quick-nav {
    margin: 1.1rem auto 1.75rem auto;
    max-width: 72rem;
    padding: 0 2rem;
    position: relative;
    z-index: 3;
}

.quick-nav .box {
    margin: 0;
    padding: 1rem 1.25rem 0.75rem 1.25rem;
    border-radius: 0.55rem;
    border: 1px solid rgba(214, 226, 242, 0.78);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.74) 0%, rgba(236, 244, 255, 0.84) 100%);
    box-shadow: 0 10px 24px rgba(12, 24, 41, 0.12);
    backdrop-filter: blur(3px);
}

.quick-nav .actions {
    margin-bottom: 0;
}

.quick-nav .button {
    border-radius: 0.45rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #14283f !important;
    border-color: rgba(44, 74, 108, 0.34) !important;
    background: rgba(255, 255, 255, 0.62) !important;
}

.quick-nav .button.primary {
    background-color: #2d88bd !important;
    color: #ffffff !important;
    border-color: #2d88bd !important;
    box-shadow: 0 7px 16px rgba(33, 89, 138, 0.28);
}

.quick-nav .button:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(44, 74, 108, 0.46) !important;
}

.update-badge {
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.72rem;
    border: 1px solid rgba(24, 191, 239, 0.25);
    background: linear-gradient(120deg, rgba(24, 191, 239, 0.12) 0%, rgba(53, 198, 232, 0.22) 100%);
}

.post p {
    text-wrap: pretty;
}

/* Better reading rhythm on content-heavy pages */
body.page-informatie #main > .post,
body.page-competitie #main > .post,
body.page-resultaten #main > .post,
body.page-fundagen #main > .post {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

body.page-informatie #main .post.featured p,
body.page-competitie #main .post.featured p,
body.page-resultaten #main .post p,
body.page-fundagen #main .post p {
    max-width: 60rem;
    margin-left: auto;
    margin-right: auto;
}

/* Subtle card separation for all post grids */
#main .posts > article {
    border: 1px solid rgba(20, 36, 58, 0.22);
    border-top: 5px solid rgba(55, 123, 194, 0.7);
    border-radius: 0.6rem;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(10, 22, 40, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

#main .posts > article:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 40px rgba(10, 22, 40, 0.24);
    border-color: rgba(20, 36, 58, 0.32);
}

body.page-competitie #main .posts > article {
    border-top-color: rgba(99, 184, 71, 0.72);
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(248, 252, 246, 0.98) 100%);
    box-shadow: 0 18px 36px rgba(14, 32, 22, 0.2);
}

body.page-competitie #main .posts > article h2 {
    color: #1d2f21;
}

body.page-competitie #main .posts > article p,
body.page-competitie #main .posts > article li {
    color: rgba(25, 35, 32, 0.92);
}

body.page-fotos #main .posts > article {
    border-top-color: rgba(191, 120, 225, 0.74);
}

body.page-contact #main .posts > article {
    border-top-color: rgba(223, 107, 107, 0.72);
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(252, 244, 244, 0.98) 100%);
    box-shadow: 0 20px 40px rgba(46, 20, 20, 0.24);
}

body.page-contact #main .posts > article h2 {
    color: #3f1f1f;
}

body.page-contact #main .posts > article p,
body.page-contact #main .posts > article li {
    color: rgba(38, 24, 24, 0.95);
}

body.page-informatie .posts article header,
body.page-competitie .posts article header,
body.page-fundagen .posts article header {
    margin-bottom: 0.8rem;
}

body.page-informatie .posts article ul li,
body.page-competitie .posts article ul li,
body.page-resultaten .post ul li,
body.page-fundagen .post ul li {
    margin-bottom: 0.45rem;
}

body.page-resultaten .post .box {
    border-radius: 0.45rem;
    border: 1px solid rgba(31, 52, 74, 0.14);
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 249, 253, 0.95) 100%);
}

body.page-resultaten .post .box p {
    line-height: 1.65;
}

body.page-resultaten .actions .button.primary,
body.page-resultaten .actions button.button.primary {
    box-shadow: 0 6px 16px rgba(229, 150, 66, 0.22);
}

body.page-informatie .button,
body.page-competitie .button,
body.page-resultaten .button,
body.page-fundagen .button {
    border-radius: 0.4rem;
}

/* Micro-polish: consistent heading rhythm and button sizing */
body.page-informatie .posts article header .date,
body.page-competitie .posts article header .date,
body.page-fundagen .posts article header .date {
    display: inline-block;
    margin-bottom: 0.35rem;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: rgba(33, 56, 82, 0.96);
}

body.page-informatie .posts article h2,
body.page-competitie .posts article h2,
body.page-resultaten .post h2,
body.page-fundagen .post h2 {
    line-height: 1.2;
    margin-bottom: 0.85rem;
    text-wrap: balance;
}

body.page-informatie .actions .button,
body.page-competitie .actions .button,
body.page-resultaten .actions .button,
body.page-resultaten .actions button.button,
body.page-fundagen .actions .button {
    min-height: 2.85rem;
    line-height: 2.85rem;
    padding-top: 0;
    padding-bottom: 0;
}

body.page-informatie .actions.fit .button,
body.page-competitie .actions.fit .button,
body.page-resultaten .actions.fit .button,
body.page-fundagen .actions.fit .button {
    width: 100%;
}

body.page-informatie .post .actions,
body.page-competitie .post .actions,
body.page-resultaten .post .actions,
body.page-fundagen .post .actions {
    margin-top: 1.2rem;
}

body.page-informatie .posts article p,
body.page-competitie .posts article p,
body.page-resultaten .post p,
body.page-fundagen .post p {
    line-height: 1.68;
}

.page-updated {
    margin: 0 auto 1.2rem auto;
    max-width: 72rem;
    text-align: center;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

body.page-home .page-updated {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(24, 191, 239, 0.65);
    outline-offset: 2px;
}

/* Cleaner top transition on home page */
body.page-home #main {
    margin-top: 0;
}

body.page-home #main > .post.featured {
    padding-top: 4.5rem;
}

body.page-home #main > .post.featured header.major {
    margin-bottom: 1.5rem;
}

body.page-home #main > .post.featured .image.main {
    margin-top: 1.5rem;
}

.contact-form-shell {
    padding: 1.5rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(33, 41, 49, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 251, 252, 0.95) 100%);
}

.form-alert {
    margin: 0 0 1.25rem 0;
    padding: 0.8rem 1rem;
    border-radius: 0.45rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.form-alert.success {
    color: #1f6b35;
    background: rgba(55, 163, 96, 0.14);
    border: 1px solid rgba(55, 163, 96, 0.25);
}

.form-alert.error {
    color: #8d2b2b;
    background: rgba(223, 84, 84, 0.12);
    border: 1px solid rgba(223, 84, 84, 0.26);
}

.form-note {
    margin: 0.25rem 0 1.25rem 0;
    font-size: 0.88rem;
    color: rgba(33, 41, 49, 0.72);
}

body.page-contact input[type="text"],
body.page-contact input[type="email"],
body.page-contact textarea {
    border-radius: 0.45rem;
    background: #fff;
}

body.page-contact .actions input[type="submit"] {
    border-radius: 0.45rem;
}

/* Results page: extra width on desktop screens */
body.page-resultaten .grist-frame {
    border: 0;
    width: 100%;
    height: 78vh;
    min-height: 520px;
    border-radius: 0.35rem;
}

@media screen and (min-width: 1200px) {
    body.page-resultaten #main {
        max-width: 86rem;
    }

    body.page-resultaten #main > .post {
        padding-left: 4.5rem;
        padding-right: 4.5rem;
    }

    body.page-resultaten .quick-nav {
        max-width: 86rem;
    }
}

@media screen and (min-width: 1600px) {
    body.page-resultaten #main {
        width: calc(100% - 2rem);
        max-width: 92rem;
    }

    body.page-resultaten .quick-nav {
        max-width: 92rem;
    }
}

@media screen and (max-width: 1199px) {
    body.page-resultaten #main {
        width: calc(100% - 2rem);
        max-width: 72rem;
    }

    body.page-resultaten .quick-nav {
        max-width: 72rem;
    }

    body.page-resultaten #main > .post {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

@media screen and (max-width: 820px) {
    body.page-resultaten .grist-frame {
        height: 72vh;
        min-height: 440px;
    }
}

@media screen and (max-width: 600px) {
    body.page-resultaten .grist-frame {
        height: 68vh;
        min-height: 360px;
    }
}

body.page-home #intro h1,
body.page-home .logo {
    color: #2db4d4;
}

body.page-informatie #intro h1,
body.page-informatie .logo {
    color: #3d90df;
}

body.page-competitie #intro h1,
body.page-competitie .logo {
    color: #63b847;
}

body.page-resultaten #intro h1,
body.page-resultaten .logo {
    color: #e59642;
}

body.page-fotos #intro h1,
body.page-fotos .logo {
    color: #bf78e1;
}

body.page-fotos .atmosphere-slider-wrap {
    padding-top: 2rem;
}

body.page-fotos .atmosphere-slider {
    position: relative;
}

body.page-fotos .slider-viewport {
    position: relative;
    border-radius: 0.7rem;
    overflow: hidden;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.09);
}

body.page-fotos .slider-track {
    min-height: 28rem;
}

body.page-fotos .slider-item {
    display: none;
    position: relative;
    min-height: 28rem;
}

body.page-fotos .slider-item.is-active {
    display: block;
    animation: fadeInSlide 0.4s ease;
}

body.page-fotos .slider-item img {
    width: 100%;
    height: 100%;
    min-height: 28rem;
    object-fit: cover;
    display: block;
}

body.page-fotos .slider-caption {
    position: absolute;
    left: 1.4rem;
    right: 1.4rem;
    bottom: 1.4rem;
    color: #fff;
    padding: 1rem 1.1rem 0.8rem;
    border-radius: 0.5rem;
    background: linear-gradient(120deg, rgba(7, 13, 24, 0.95) 0%, rgba(18, 28, 51, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

body.page-fotos .slider-caption .date {
    color: rgba(208, 234, 255, 0.98);
    margin-bottom: 0.35rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

body.page-fotos .slider-caption h3 {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: 0.02em;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
}

body.page-fotos .slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(15, 23, 38, 0.55);
    color: #fff;
    padding: 0;
    line-height: 1;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

body.page-fotos .slider-control:hover {
    background: rgba(43, 129, 190, 0.72);
    border-color: rgba(255, 255, 255, 0.6);
}

body.page-fotos .slider-control span {
    font-size: 2rem;
    vertical-align: middle;
}

body.page-fotos .slider-control.prev {
    left: 1rem;
}

body.page-fotos .slider-control.next {
    right: 1rem;
}

body.page-fotos .slider-dots {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

body.page-fotos .slider-dot {
    border: 1px solid rgba(27, 39, 69, 0.24);
    background: rgba(255, 255, 255, 0.78);
    color: rgba(24, 38, 59, 0.88);
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    padding: 0.32rem 0.78rem;
    text-transform: none;
}

body.page-fotos .slider-dot.is-active {
    background: rgba(53, 126, 209, 0.19);
    border-color: rgba(53, 126, 209, 0.5);
    color: rgba(16, 40, 74, 0.95);
}

body.page-fotos .slider-dot span {
    pointer-events: none;
}

@keyframes fadeInSlide {
    from {
        opacity: 0.4;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body.page-contact #intro h1,
body.page-contact .logo {
    color: #df6b6b;
}

body.page-fundagen #intro h1,
body.page-fundagen .logo {
    color: #4eaec1;
}

@media screen and (max-width: 980px) {
    .quick-nav {
        padding: 0 1rem;
        margin-top: 0.9rem;
        margin-bottom: 1.2rem;
    }

    .contact-form-shell {
        padding: 1.1rem;
    }

    body.page-resultaten #main > .post {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    body.page-home #main > .post.featured {
        padding-top: 3.4rem;
    }

    body.page-informatie #main > .post,
    body.page-competitie #main > .post,
    body.page-resultaten #main > .post,
    body.page-fundagen #main > .post {
        padding-top: 2.7rem;
        padding-bottom: 2.7rem;
    }

    body.page-informatie .actions .button,
    body.page-competitie .actions .button,
    body.page-resultaten .actions .button,
    body.page-resultaten .actions button.button,
    body.page-fundagen .actions .button {
        min-height: 2.4rem;
        line-height: 2.4rem;
    }

    body.page-fotos .slider-track,
    body.page-fotos .slider-item,
    body.page-fotos .slider-item img {
        min-height: 22rem;
    }
}

@media screen and (max-width: 480px) {
    .quick-nav .box {
        padding: 0.9rem 0.9rem 0.6rem 0.9rem;
    }

    .quick-nav .actions.fit > * {
        margin-top: 0.45rem;
    }

    body.page-informatie .posts article,
    body.page-competitie .posts article,
    body.page-fundagen .posts article {
        padding-left: 1.45rem;
        padding-right: 1.45rem;
    }

    body.page-informatie .posts article h2,
    body.page-competitie .posts article h2,
    body.page-resultaten .post h2,
    body.page-fundagen .post h2 {
        font-size: 1.28rem;
        margin-bottom: 0.7rem;
    }

    body.page-resultaten .post .actions {
        margin-top: 0.9rem;
    }

    body.page-resultaten .post .box {
        padding: 1rem 0.9rem;
    }

    body.page-fotos .slider-track,
    body.page-fotos .slider-item,
    body.page-fotos .slider-item img {
        min-height: 17rem;
    }

    body.page-fotos .slider-caption {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
        padding: 0.75rem 0.75rem 0.6rem;
    }

    body.page-fotos .slider-caption h3 {
        font-size: 1rem;
    }

    body.page-fotos .slider-control {
        width: 2.35rem;
        height: 2.35rem;
    }

    body.page-fotos .slider-control.prev {
        left: 0.5rem;
    }

    body.page-fotos .slider-control.next {
        right: 0.5rem;
    }
}

/* Home footer: readable contact panel */
body.page-home #footer {
    margin-top: 2rem;
}

body.page-home #footer .home-contact-panel {
    border: 1px solid rgba(30, 50, 73, 0.14);
    background: rgba(255, 255, 255, 0.96);
    border-radius: 0.5rem;
    padding: 1.4rem 1.6rem 1.1rem;
}

body.page-home #footer .home-contact-panel h3 {
    margin: 0 0 0.65rem 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: none;
    color: #1a2f49;
}

body.page-home #footer .home-contact-panel p {
    margin: 0 0 0.9rem 0;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(20, 33, 50, 0.88);
}

body.page-home #footer .home-contact-panel .actions {
    margin: 0.1rem 0 0.85rem 0;
}

body.page-home #footer .home-contact-panel .actions .button {
    min-width: 11.5rem;
    border-radius: 0.4rem;
    font-weight: 700;
}

body.page-home #footer .home-contact-panel .page-updated {
    margin: 0;
    text-align: left;
    font-size: 0.88rem;
    color: rgba(20, 33, 50, 0.6);
}

@media screen and (max-width: 640px) {
    body.page-home #footer .home-contact-panel {
        padding: 1.1rem 1rem 0.9rem;
    }

    body.page-home #footer .home-contact-panel h3 {
        font-size: 0.98rem;
    }

    body.page-home #footer .home-contact-panel p {
        font-size: 0.92rem;
        line-height: 1.5;
    }
}
