﻿/* =========================================================
   VARIABLES
========================================================= */
:root {
    /* Brand palette */
    /* NAV BAR Original */
    --colorNavBar: #324b32;
    --colorNavBarRGB: 50, 75, 50;
    /* NAV BAR Alternative */
    /*--colorNavBar: #324b32;
    --colorNavBarRGB: 115, 125, 116;*/
    /* GREEN */
        --colorMain: #74923c;
    --colorMainRGB: 116, 146, 60;
    --colorMainLight: #a2a97a;
    --colorMainLightRGB: 162, 169, 122;
    --colorMainLighter: #cee385;
    --colorMainLighterRGB: 206, 227, 133;
    --colorMainDark: #54775b;
    --colorMainDarkRGB: 84, 119, 91;
    --colorMainDarker: #2d4622;
    --colorMainDarkerRGB: 45, 70, 34;
    /* GREEN - version 2 */
    /* --colorMain: #b0beb2;
    --colorMainRGB: 176, 190, 178;
    --colorMainLight: #eaf0e1;
    --colorMainLightRGB: 234, 240, 225;
    --colorMainLighter: #f9faf0;
    --colorMainLighterRGB: 249, 250, 240;
    --colorMainDark: #737d74;
    --colorMainDarkRGB: 115, 125, 116;
    --colorMainDarker: #3b4f3d;
    --colorMainDarkerRGB: 59, 79, 61;*/
    /* PINK - Version Miami 1970s */
    /*    --colorMain: #EDB4C1;
    --colorMainRGB: 237, 180, 193;
    --colorMainLight: #F5D6DD;
    --colorMainLightRGB: 245, 214, 221;
    --colorMainLighter: #FAE9ECC;
    --colorMainLighterRGB: 250, 233, 236;
    --colorMainDark: #E491A6;
    --colorMainDarkRGB: 228, 145, 166;
    --colorMainDarker: #a3566a;
    --colorMainDarkerRGB: 163, 86, 106;*/
    /* PINK - From Dusk til Dawn */
    /*    --colorMain: #dba7b3;
    --colorMainRGB: 219, 167, 179;
    --colorMainLight: #f5d6dd;
    --colorMainLightRGB: 245, 214, 221;
    --colorMainLighter: #fae9ec;
    --colorMainLighterRGB: 250, 233, 236;
    --colorMainDark: #bf8694;
    --colorMainDarkRGB: 191, 134, 148;
    --colorMainDarker: #8f6a73;
    --colorMainDarkerRGB: 143, 106, 115;*/
    /* Beige & Sage */
/*    --colorMain: #cedebd;
    --colorMainRGB: 206, 222, 189;
    --colorMainLight: #eadbc8;
    --colorMainLightRGB: 234, 219, 200;
    --colorMainLighter: #faf1e4;
    --colorMainLighterRGB: 250, 241, 228;
    --colorMainDark: #9eb384;
    --colorMainDarkRGB: 158, 179, 132;
    --colorMainDarker: #435334;
    --colorMainDarkerRGB: 67, 83, 52;*/
    /* Pink /Beige/Green - shite */
    /*--colorMain: #f4dbdb;
    --colorMainRGB: 244, 219, 219;
    --colorMainLight: #fbe3d1;
    --colorMainLightRGB: 251, 227, 209;
    --colorMainLighter: #d9cbc0;
    --colorMainLighterRGB: 217, 203, 192;
    --colorMainDark: #c8cbb6;
    --colorMainDarkRGB: 200, 203, 182;
    --colorMainDarker: #dfc2a9;
    --colorMainDarkerRGB: 223, 194, 169;*/
    /* Dark green/Browns - mental*/
/*    --colorMain: #5a9690;
    --colorMainRGB: 90, 150, 144;
    --colorMainLight: #ddc3c3;
    --colorMainLightRGB: 221, 195, 195;
    --colorMainLighter: #e0d9d9;
    --colorMainLighterRGB: 224, 217, 217;
    --colorMainDark: #2f5755;
    --colorMainDarkRGB: 47, 87, 85;
    --colorMainDarker: #432323;
    --colorMainDarkerRGB: 67, 35, 35;*/
    /* Cream/Olive - alright*/
/*    --colorMain: #e0e5b6;
    --colorMainRGB: 224, 229, 182;
    --colorMainLight: #faedce;
    --colorMainLightRGB: 250, 237, 206;
    --colorMainLighter: #fefae0;
    --colorMainLighterRGB: 254, 250, 224;
    --colorMainDark: #ccd5ae;
    --colorMainDarkRGB: 204, 213, 174;
    --colorMainDarker: #7a8260;
    --colorMainDarkerRGB: 122, 130, 96;*/
    /* OTHER */
    --colorOther: #c2b553;
    --colorOtherDark: #756d2d;
    --colorOtherLight: #f2e9b6;
    /* GREY - BLACK - WHITE */
    --colorGreyDark: #5e5e5e;
    --colorGreyLight: #bdbdbd;
    --colorBlack: #000000;
    --colorWhite: #ffffff;
    /* Global spacing helpers */
    --fullwidth: 100%;
    /* Background gradient (set both equal for a flat color) */
    --bg-top: #fcf5dc;
    --bg-bottom: #fcf8eb;
    /* Corner leaves: portrait sizes */
    --leaf-top-w-portrait: 350px;
    --leaf-top-h-portrait: 350px;
    --leaf-btm-w-portrait: 350px;
    --leaf-btm-h-portrait: 350px;
    /* Corner leaves: landscape sizes */
    --leaf-top-w-landscape: 500px;
    --leaf-top-h-landscape: 500px;
    --leaf-btm-w-landscape: 500px;
    --leaf-btm-h-landscape: 500px;
    /* Optional inward offsets */
    --leaf-top-offset-x: 0px;
    --leaf-top-offset-y: 0px;
    --leaf-btm-offset-x: 0px;
    --leaf-btm-offset-y: 0px;
    /* Active leaf sizes (swapped by orientation rule) */
    --leaf-top-w: var(--leaf-top-w-portrait);
    --leaf-top-h: var(--leaf-top-h-portrait);
    --leaf-btm-w: var(--leaf-btm-w-portrait);
    --leaf-btm-h: var(--leaf-btm-h-portrait);
    /* Card system (one card to rule them all) */
    --card-bg: rgba(255,255,255,0.95);
    --card-fg: #111;
    --card-border: rgba(0,0,0,0.08);
    --card-radius: 16px;
    --card-shadow: 0 10px 25px rgba(0,0,0,.08);
    --card-divider: rgba(0,0,0,0.10);
    /* Inputs */
    --input-bg: rgba(255,255,255,0.95);
    --input-fg: #111;
    --input-border: rgba(0,0,0,0.14);
    --placeholder-fg: rgba(0,0,0,0.45);
    /* Buttons (generic) */
    --btn-primary-bg: #1a73e8;
    --btn-primary-fg: #fff;
    --btn-secondary-bg: transparent;
    --btn-secondary-fg: #1a73e8;
    --btn-secondary-border: #cfe0fd;
    /* Timetable */
    --tt-card-bg: rgba(255,255,255,0.92);
    --tt-card-fg: #111;
    --tt-card-border: rgba(0,0,0,0.08);
    --tt-shadow: 0 10px 25px rgba(0,0,0,.08);
    --tt-muted: rgba(0,0,0,0.55);
    --tt-accent: #0ea5e9;
    --tt-divider: rgba(0,0,0,0.10);
}

@media (orientation: landscape) {
    :root {
        --leaf-top-w: var(--leaf-top-w-landscape);
        --leaf-top-h: var(--leaf-top-h-landscape);
        --leaf-btm-w: var(--leaf-btm-w-landscape);
        --leaf-btm-h: var(--leaf-btm-h-landscape);
    }
}

/* =========================================================
   GLOBAL / BASE
========================================================= */
html, body {
    height: 100%;
}

    body.site-body {
        font-family: 'Lora', 'Poppins', 'Great Vibes', 'Times New Roman', serif;
    }

body {
    margin: 0;
    padding-top: 20px;
    padding-bottom: 20px;
    font-family: 'Great Vibes', cursive;
    overflow-x: hidden;
    /* Leaves over gradient */
    background-image: url("/Images/Background/LeafTopLeft.png"), url("/Images/Background/LeafBottomRight.png"), linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
    background-position: left var(--leaf-top-offset-x) top var(--leaf-top-offset-y), right var(--leaf-btm-offset-x) bottom var(--leaf-btm-offset-y), center;
    background-size: var(--leaf-top-w) var(--leaf-top-h), var(--leaf-btm-w) var(--leaf-btm-h), auto;
    background-repeat: no-repeat, no-repeat, no-repeat;
    /* Pin leaves/gradient to the viewport */
    background-attachment: fixed, fixed, fixed;
}

@supports (-webkit-touch-callout: none) {
    body {
        background-attachment: scroll, scroll, scroll;
    }
}

/* Utilities */
.hidden {
    display: none !important;
}

.page-wrap,
.rsvp-wrap,
.contact-wrap,
.timetable-wrap,
.venue-details-wrap,
.thanks-wrap,
.landing-wrap {
    padding: 1rem;
    position: relative;
    z-index: 5;
}

.mt-var {
    margin-top: var(--mt,0);
}

@media (max-width:900px) {
    .mt-var {
        margin-top: var(--mt-sm, var(--mt,0));
    }
}

.body-content {
    padding: 0 15px;
}

.dl-horizontal dt {
    white-space: normal;
}

input, select, textarea {
    max-width: 280px;
}

section.centered {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Table width helpers (kept) */
.col05 {
    width: 5%
}

.col07_5 {
    width: 7.5%
}

.col10 {
    width: 10%
}

.col10c {
    width: 10%;
    text-align: center;
    vertical-align: middle
}

.col12_5 {
    width: 12.5%
}

.col15 {
    width: 15%
}

.col17_5 {
    width: 17.5%
}

.col20 {
    width: 20%
}

.col22_5 {
    width: 22.5%
}

.col25 {
    width: 25%
}

.col30 {
    width: 30%
}

.col33 {
    width: 33%
}

.col35 {
    width: 35%
}

.col37_5 {
    width: 37.5%
}

.col40 {
    width: 40%
}

.col42_5 {
    width: 42.5%
}

.col45 {
    width: 45%
}

.col50 {
    width: 50%
}

.col55 {
    width: 55%
}

.col60 {
    width: 60%
}

.col65 {
    width: 65%
}

.col66 {
    width: 66%
}

.col70 {
    width: 70%
}

.col75 {
    width: 75%
}

.col80 {
    width: 80%
}

.col85 {
    width: 85%
}

.col90 {
    width: 90%
}

.col95 {
    width: 95%
}

.col100 {
    width: 100%
}

tr.noBorder td {
    border: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

th.lessPadding {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

tr.lessPadding td {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Jumbotron (legacy, kept) */
.jumbotron {
    background-color: var(--colorMainLight) !important;
    border-style: groove !important;
    border-width: 3px !important;
}

/* =========================================================
   ONE CARD SYSTEM (aliases included)
========================================================= */
.app-card,
.rsvp-card,
.timetable-card,
.contact-card,
.venue-card,
.venue-details-wrap .card,
.thanks-card,
.landing-card {
    background: var(--card-bg);
    color: var(--card-fg);
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 1rem;
}

.app-card__header {
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--card-divider);
    margin-bottom: .75rem;
}

.app-card__title {
    margin: 0;
    font-weight: 800;
    font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem);
}

.app-card__subtitle {
    margin: .35rem 0 0;
    opacity: .9;
}

/* Optional tinted “glass” variant */
.app-card--glass {
    background: linear-gradient(180deg, rgba(var(--colorMainRGB),0.22), rgba(var(--colorMainRGB),0.18));
    border-color: rgba(var(--colorMainRGB),0.65);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}


/* Back-compat: make `.coloured-glass` behave like the glass variant on any card */
.app-card--glass,
.app-card.coloured-glass,
.card.coloured-glass,
.venue-details-wrap .card.coloured-glass,
.rsvp-card.coloured-glass,
.timetable-card.coloured-glass,
.contact-card.coloured-glass,
.venue-card.coloured-glass,
.landing-card.coloured-glass {
    background: linear-gradient(180deg, rgba(var(--colorMainRGB),0.22), rgba(var(--colorMainRGB),0.18));
    border: 1px solid rgba(var(--colorMainRGB),0.65);
    color: #1a1a1a;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}



/* =========================================================
   NAV (hamburger/drawer)
========================================================= */
.hamburger {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 35px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 2000;
}

    .hamburger span {
        display: block;
        height: 5px;
        width: 100%;
        /*background: var(--colorNavBar);*/
        background: rgba(var(--colorMainDarkRGB),0.85);
        border-radius: 4px;
        transition: all .3s ease;
        transform-origin: center;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translateY(14px);
        background: var(--colorWhite);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-14px);
        background: var(--colorWhite);
    }

.nav-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: 50%;
    height: 100%;
    /*background: rgba(50,75,50,0.75);*/
    background: rgba(var(--colorNavBarRGB),0.85);
    transition: right .3s ease;
    z-index: 1999;
    padding: 2rem;
    pointer-events: none;
}

    .nav-drawer.active {
        right: 0;
        pointer-events: auto;
    }

@media (orientation:landscape) {
    .nav-drawer {
        width: 33%;
    }
}

.nav-drawer a {
    /*display: block;*/
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    color: var(--colorWhite);
    font-size: 1.5rem;
    text-decoration: none;
}


.nav-links {
    flex: 1 1 auto; /* take the available vertical space */
    display: flex;
    flex-direction: column;
    gap: .25rem; /* optional spacing between links */
}

.nav-logo {
    margin-top: auto; /* pushes logo to the bottom of the drawer */
    /*padding: 1rem;*/ /* give it some breathing room */
    padding-bottom: 5rem;
    text-align: center;
}

    .nav-logo img {
        max-width: 175px; /* adjust to suit your drawer width */
        height: auto;
        display: inline-block;
    }


/* =========================================================
   HOME header / slideshow (kept)
========================================================= */
.bg-slide {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: .5;
    transition: opacity 1s ease-in-out;
    z-index: -1;
}

.header-title {
    font-family: 'Great Vibes',cursive;
    font-size: 4rem;
    color: var(--colorMainDark);
    border: thin 2px;
    text-shadow: 2px 4px 3px rgba(var(--colorMainRGB),0.5);
    /*text-shadow: 2px 4px 3px rgba(0,0,0,0.5);*/
    /*text-shadow: 2px 4px 3px rgba(107,107,107,0.5);*/
    /*text-shadow: 0 0 5px #fff, 0 0 10px var(--colorMain), 0 0 20px var(--colorMainLight);*/
    /*animation: sparkle 1s infinite alternate;*/
}

.header-text {
    font-family: 'Great Vibes',cursive;
    font-size: 3rem;
    color: var(--colorMainDark);
    text-shadow: 2px 4px 3px rgba(var(--colorMainRGB),0.5);
    /*text-shadow: 2px 4px 3px rgba(0,0,0,0.5);*/
    /*text-shadow: 0 0 5px #fff, 0 0 10px var(--colorMain), 0 0 20px var(--colorMainLight);
    animation: sparkle 1s infinite alternate;*/
}

.header-info {
    font-family: 'Great Vibes',cursive;
    font-size: 2rem;
    color: var(--colorMainDarker);
}

@keyframes sparkle {
    0% {
        text-shadow: 0 0 5px #fff, 0 0 10px var(--colorMain), 0 0 20px var(--colorMain);
    }

    100% {
        text-shadow: 0 0 10px #fff, 0 0 20px var(--colorMainLight), 0 0 30px var(--colorMainLighter);
    }
}

/* =========================================================
   ADMIN LANDING (kept)
========================================================= */
.admin-landing-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 1rem;
    padding: 0 0.75rem;
}

@media (min-width:900px) {
    .admin-landing-grid {
        grid-template-columns: repeat(3,minmax(0,1fr));
        padding: 0 1rem;
    }
}

@media (min-width:1200px) {
    .admin-landing-grid {
        grid-template-columns: repeat(4,minmax(0,1fr));
        padding: 0 1.25rem;
    }
}

.landing-card {
    --card-bg: rgba(var(--colorMainRGB),0.5);
    --label-bg: rgba(var(--colorMainRGB),0.6);
    --label-fg: #fff;
    display: block;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--card-bg);
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0,0,0,.10);
    transition: transform .12s ease, box-shadow .12s ease;
}

    .landing-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 28px rgba(0,0,0,.14);
    }

    .landing-card .card-media {
        width: 100%;
        aspect-ratio: 1/1;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

        .landing-card .card-media::after {
            content: "";
            position: absolute;
            inset: 0;
            pointer-events: none;
            background: linear-gradient(180deg,transparent 60%,rgba(0,0,0,.08));
        }

    .landing-card .card-label {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: .55rem .75rem;
        background: var(--label-bg);
        color: var(--label-fg);
        font-weight: 600;
        letter-spacing: .2px;
        text-align: center;
        min-height: 2.4rem;
    }

    .landing-card.is-disabled {
        opacity: .5;
        filter: grayscale(.3);
        cursor: not-allowed;
        pointer-events: none;
    }

    .landing-card:focus {
        outline: 2px solid rgba(0,0,0,.25);
        outline-offset: 2px;
    }

/* =========================================================
   CONTACT PAGE (kept)
========================================================= */
.contact-hero {
    text-align: center;
    margin: 0 0 1.25rem 0;
}

    .contact-hero h1 {
        margin: 0 0 .25rem 0;
        font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
    }

    .contact-hero p {
        margin: 0;
        color: rgba(0,0,0,.55);
    }

.contact-section-title {
    margin: 1.25rem 0 .75rem 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1f2937;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(1,minmax(0,1fr));
    gap: 1rem;
}

@media (min-width:640px) {
    .contact-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (min-width:1100px) {
    .contact-grid {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
}

.contact-card {
    background: rgba(255,255,255,0.9);
    color: #111;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    padding: 1rem;
    transition: transform .12s ease, box-shadow .12s ease;
}

    .contact-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 28px rgba(0,0,0,.12);
    }

.contact-card__head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .75rem;
    align-items: center;
    padding-bottom: .6rem;
    border-bottom: 1px solid rgba(0,0,0,0.10);
}

.contact-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--colorMainLighter);
    display: grid;
    place-items: center;
    font-weight: 700;
    color: var(--colorMainDarker);
}

.contact-card__name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--colorMainDarker);
}

.contact-card__role {
    color: var(--colorMainLight);
    font-size: .95rem;
    margin-top: .1rem;
}

.contact-card__meta {
    display: grid;
    gap: .5rem;
    padding-top: .6rem;
}

    .contact-card__meta .contact-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .75rem;
        padding: .5rem .6rem;
        border: 1px solid rgba(0,0,0,0.06);
        border-radius: 10px;
        text-decoration: none;
        color: inherit;
        background: rgba(255,255,255,0.6);
        transition: background .12s ease, border-color .12s ease;
        word-break: break-word;
    }

        .contact-card__meta .contact-link:hover {
            background: rgba(255,255,255,0.9);
            border-color: rgba(0,0,0,0.12);
        }

        .contact-card__meta .contact-link[href^="mailto:"]::before {
            content: "Email";
            color: rgba(0,0,0,.55);
            font-size: .9rem;
            margin-right: auto;
        }

        .contact-card__meta .contact-link[href^="tel:"]::before {
            content: "Phone";
            color: rgba(0,0,0,.55);
            font-size: .9rem;
            margin-right: auto;
        }

        .contact-card__meta .contact-link[href^="https://"]::before {
        content: "Website";
        color: rgba(0,0,0,.55);
        font-size: .9rem;
        margin-right: auto;
        }


@media (max-width:640px) {
    .contact-wrap {
        padding-left: .75rem;
        padding-right: .75rem;
    }
}

/* =========================================================
   TIMETABLE
========================================================= */
.timetable-hero {
    text-align: center;
    margin: 0 0 1rem 0;
}

    .timetable-hero h1 {
        margin: 0 0 .25rem;
        font-size: clamp(1.4rem,1.1rem + 1.2vw,2rem);
        color: var(--colorMainDarker);
    }

    .timetable-hero p {
        margin: 0;
        color: var(--tt-muted);
    }

.timetable-list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.timetable-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    align-items: center;
    gap: .75rem;
    padding: .65rem .25rem;
    border-bottom: 1px solid var(--tt-divider);
}

    .timetable-item:last-child {
        border-bottom: 0;
    }

.timetable-time {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    background: rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    padding: .35rem .5rem;
    text-align: center;
    min-width: 72px;
    justify-self: start;
}

.timetable-label {
    font-weight: 600;
}

@media (max-width:640px) {
    .timetable-wrap {
        padding-left: .75rem;
        padding-right: .75rem;
    }

    .timetable-item {
        grid-template-columns: 88px 1fr;
    }

    .timetable-time {
        min-width: 64px;
    }
}

.timetable-empty {
    margin: .25rem 0;
    color: var(--tt-muted);
    text-align: center;
}

/* =========================================================
   COUNTDOWN (boxed mini-cards)
========================================================= */
/* container breathing room */
#countdownCard {
    padding: .5rem;
    position: relative;
    display: flow-root;
    z-index: 0;
}

.countdown-section {
    clear: both;
    margin-top: 1.25rem;
}

@media (max-width:900px) {
    .countdown-section {
        margin-top: 1.5rem;
    }
}

.countdown-grid {
    display: grid;
    gap: .75rem;
    align-items: stretch;
}

@media (max-width:899.98px) {
    .countdown-grid.has-month {
        grid-template-columns: repeat(2, minmax(var(--cell-min,160px), 1fr));
    }

    .countdown-grid.no-month {
        grid-template-columns: repeat(2, minmax(var(--cell-min,160px), 1fr));
    }

    .span-2-narrow {
        grid-column: span 2;
    }
}

@media (min-width:900px) {
    .countdown-grid.has-month {
        grid-template-columns: repeat(5, minmax(var(--cell-min,160px), 1fr));
    }

    .countdown-grid.no-month {
        grid-template-columns: repeat(4, minmax(var(--cell-min,160px), 1fr));
    }

    .cd-months {
        grid-column: auto;
    }
}

.cd-item {
    /*background: rgba(255,255,255,0.70);*/
    background: rgba(var(--colorMainRGB), 0.15);
    color: var(--colorMainDarker);
    /*border: 1px solid rgba(0,0,0,0.08);*/
    border: 2px solid rgba(var(--colorMainDarkerRGB),0.45);
    border-radius: 14px;
    /*box-shadow: 0 8px 18px rgba(0,0,0,.08);*/
    box-shadow: 0 8px 18px rgba(0,0,0,.08);
    padding: .6rem .8rem;
    text-align: center;
}

    .cd-item h2 {
        margin: 0;
        line-height: 1.1;
        font-variant-numeric: tabular-nums;
        font-size: clamp(1.4rem, 1rem + 2.2vw, 2.4rem);
        font-weight: 800;
    }

    .cd-item p {
        margin: .15rem 0 0;
        font-weight: 600;
        letter-spacing: .4px;
        text-transform: uppercase;
        font-size: .8rem;
        opacity: .75;
    }

@media (max-width:480px) {
    #countdownCard {
        padding-left: .25rem;
        padding-right: .25rem;
    }
}

/* Legacy countdown typography (kept) */
.cdCard {
    margin: 0;
    box-sizing: border-box;
    font-family: 'Poppins';
    height: 20vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--colorBlack);
}

.timebox {
    margin: 0;
    display: flex;
    gap: 90px;
    font-family: 'Poppins';
}

.time {
    text-align: center;
    font-family: 'Poppins';
}

    .time h2 {
        margin: 0;
        font-size: 5rem;
        font-weight: 100;
    }

/* =========================================================
   RSVP FORM + BUTTON
========================================================= */
.rsvp-title {
    font-family: 'Great Vibes',cursive;
    font-size: 3rem;
    margin: 1rem 0;
    color: var(--colorMain) !important;
    text-align: center;
}

.val-summary {
    color: #ffb3b3;
    margin-bottom: 1rem;
}

.val-msg {
    color: #ffb3b3;
    font-size: .9rem;
    margin-top: .25rem;
}

.rsvp-form {
    width: 100%;
}

.form-row {
    margin-bottom: 1rem;
}

.q-label {
    display: block;
    font-weight: 600;
    margin-bottom: .5rem;
    color: var(--colorMainDarker);
}

.req {
    color: var(--colorMainDarker);
}

.text-input, .text-area {
    width: 100%;
    background: rgba(255,255,255,0.50);
    border: 1px solid rgba(var(--colorMainRGB),0.50);
    color: rgba(var(--colorMainDarkRGB),0.95);
    border-radius: 10px;
    padding: .8rem 1rem;
    outline: none;
}

    .text-input::placeholder, .text-area::placeholder {
        color: rgba(var(--colorMainDarkerRGB),0.50);
    }

    .text-input:focus, .text-area:focus {
        border-color: var(--colorMainDark);
        box-shadow: 0 0 0 3px rgba(var(--colorMainDarkRGB),0.15);
    }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width:720px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* radio “pills” */
.radio-pill, .chip {
    position: relative;
    display: inline-block;
    margin-right: .5rem;
    cursor: pointer;
}

    .radio-pill input[type="radio"], .chip input[type="radio"] {
        position: absolute;
        opacity: 0;
        inset: 0;
        cursor: pointer;
    }

    .radio-pill > span, .chip > span {
        display: block;
        padding: .55rem 1rem;
        border: 1px solid var(--colorMainDarker);
        border-radius: 999px;
        background: rgba(255,255,255,.08);
        color: rgba(var(--colorMainDarkerRGB),0.90);
        transition: background .2s, color .2s, transform .15s, border-color .2s, box-shadow .2s;
    }

    .radio-pill:hover > span, .radio-pill input[type="radio"]:focus + span,
    .chip:hover > span, .chip input[type="radio"]:focus + span {
        border-color: rgba(var(--colorMainDarkRGB),0.80);
        background: rgba(var(--colorMainLightRGB),0.25);
        box-shadow: 0 0 0 2px rgba(var(--colorMainRGB),0.55);
    }

    .radio-pill input[type="radio"]:checked + span, .chip input[type="radio"]:checked + span {
        background: var(--colorMainDarker);
        color: var(--colorMainLighter);
        border-color: var(--colorMain);
        transform: translateY(-1px);
    }

.chip-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    /* row gap | column gap (tweak to taste) */
    gap: .5rem .6rem;
    /* optional: a touch of top breathing room under the label */
    margin-top: .25rem;
}

/* override older margins so gap controls spacing */
.chip {
    margin: 0; /* was margin-bottom: .5rem */
}

    /* keep each chip on one line so it doesn't break mid-word */
    .chip > span {
        white-space: nowrap;
    }

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .6rem;
}

.section-head {
    margin: .25rem 0 .75rem;
    padding: .25rem 0 .5rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(var(--colorMainDarkRGB),0.35);
    color: var(--colorMainDarker) !important;
}

.guest2 {
    margin-top: .5rem;
}

.actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

/* Generic buttons used on RSVP page too */
.btn {
    padding: .6rem .9rem;
    border-radius: 10px;
    border: none;
    background: #1a73e8;
    color: #fff;
    cursor: pointer;
}

    .btn:hover {
        filter: brightness(.95);
    }

    .btn.outline {
        background: #fff;
        color: #1a73e8;
        border: 1px solid #cfe0fd;
    }

    .btn.primary {
        background: var(--colorMainDark);
        color: var(--colorMainLighter);
        border: none;
    }

        .btn.primary:hover {
            filter: brightness(.95);
        }

    .btn.secondary {
        background: rgba(var(--colorMainLighterRGB),0.45);
        color: var(--colorMainDarker);
        border: 1px solid var(--colorMainDarker);
    }

        .btn.secondary:hover {
            filter: brightness(.90);
        }

.input {
    background: rgba(var(--colorMainLighterRGB),0.45);
    color: var(--colorMainDark);
    border: 2px solid var(--colorMainDarker);
    flex: 1;
    min-width: 180px;
    padding: .6rem .75rem;
    border-radius: 10px;
}

    .input::placeholder {
        color: rgba(var(--colorMainDarkRGB),0.85);
    }

.text-input.disabled[disabled] {
    background: #f2f2f2;
    color: #666;
}

/* Thanks page */
.thanks-wrap {
    min-height: calc(var(--vh, 1vh) * 100);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem;
}

.thanks-card {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(2px);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.18);
    padding: 2rem 1.75rem;
    max-width: 720px;
    width: 100%;
    text-align: center;
}

.thanks-header {
    font-family: 'Great Vibes',cursive;
    font-size: 2.6rem;
    line-height: 1.1;
    margin-bottom: .75rem;
    color: var(--colorMainDark);
    text-shadow: 0 0 5px #fff, 0 0 10px var(--colorMain), 0 0 20px gold;
}

.thanks-text {
    font-size: 1.05rem;
    color: #222;
    margin: 0 auto 1.25rem;
}

.thanks-actions {
    margin-top: 1rem;
}

/* Modern RSVP CTA button (anchor) */
.rsvp-btn {
    --btn-bg: var(--colorMainDark);
    --btn-bg2: var(--colorMainDarker);
    --btn-fg: var(--colorMainLighter);
    --btn-border: rgba(0,0,0,.25);
    --btn-accent: var(--colorMain);
    --btn-accent-rgb: var(--colorMainRGB);
    --btn-radius: 16px;
    --btn-pad-y: 0.95rem;
    --btn-pad-x: 2.25rem;
    --btn-shadow: 0 14px 30px rgba(0,0,0,.18), 0 6px 10px rgba(0,0,0,.12);
    position: relative;
    display: inline-grid;
    place-items: center;
    padding: var(--btn-pad-y) var(--btn-pad-x);
    border-radius: var(--btn-radius);
    background: linear-gradient(180deg, var(--btn-bg), var(--btn-bg2));
    color: var(--btn-fg);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: .04em;
    font-size: clamp(1.05rem, 0.9rem + 1.2vw, 1.5rem);
    border: 1px solid var(--btn-border);
    box-shadow: var(--btn-shadow);
    isolation: isolate;
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}

    .rsvp-btn::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: radial-gradient(120% 60% at 50% -10%, rgba(255,255,255,.25), transparent 60%), linear-gradient(90deg, transparent 35%, rgba(255,255,255,.12) 50%, transparent 65%);
        mix-blend-mode: soft-light;
        opacity: .65;
        pointer-events: none;
        transition: opacity .2s ease, transform .4s ease;
        transform: translateX(-4%);
    }

    .rsvp-btn::before {
        content: "";
        position: absolute;
        inset: -2px;
        border-radius: inherit;
        background: radial-gradient(80% 70% at 50% 0%, rgba(var(--btn-accent-rgb), .28), transparent 70%);
        filter: blur(10px);
        opacity: .25;
        z-index: -1;
        transition: opacity .2s ease;
    }

    .rsvp-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 18px 38px rgba(0,0,0,.22), 0 8px 16px rgba(0,0,0,.16);
    }

        .rsvp-btn:hover::after {
            transform: translateX(0%);
            opacity: .8;
        }

    .rsvp-btn:active {
        transform: translateY(0);
        box-shadow: 0 10px 22px rgba(0,0,0,.20), 0 6px 12px rgba(0,0,0,.14);
        filter: brightness(.98);
    }

    .rsvp-btn:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(var(--btn-accent-rgb), .6), 0 14px 30px rgba(0,0,0,.18), 0 6px 10px rgba(0,0,0,.12);
    }

    .rsvp-btn.is-xl {
        --btn-pad-y: 1.1rem;
        --btn-pad-x: 2.75rem;
        font-size: clamp(1.2rem,1rem + 1.6vw,1.8rem);
    }

    .rsvp-btn.is-lg {
        --btn-pad-y: 1rem;
        --btn-pad-x: 2.4rem;
    }

    .rsvp-btn.is-sm {
        --btn-pad-y: .7rem;
        --btn-pad-x: 1.4rem;
        font-size: 1rem;
    }

@media (prefers-reduced-motion: reduce) {
    .rsvp-btn, .rsvp-btn::after {
        transition: none;
    }
}

/* =========================================================
   MAP + DIRECTIONS
========================================================= */
#map {
    width: 100%;
    height: 60vh;
}

html, body { /* Map.css heights (kept) */
}

.map-and-panel {
    display: grid;
    grid-template-columns: 2fr 1fr;
    min-height: 60vh;
    gap: 0;
}

@media (max-width:900px) {
    .map-and-panel {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }

    .map {
        height: 48vh;
    }
}

.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.22);
}

.title {
    margin: 0 0 .25rem;
    font-size: 1.4rem;
}

.subtitle {
    margin: 0;
    font-size: .95rem;
    opacity: .9;
}

.controls {
    padding: .75rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.18);
}

.dir-form {
    display: flex;
    gap: .5rem;
    align-items: center;
}

/* Directions pane */
.panel.modern-directions {
    background: rgba(var(--colorMainRGB),0.95);
    color: var(--colorMainDarker);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    margin: 1rem;
    padding: 1rem;
    overflow-y: auto;
    max-height: 56vh;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    font-size: .95rem;
    line-height: 1.35rem;
}

.panel.is-hidden {
    display: none;
}

.panel.modern-directions .adp,
.panel.modern-directions .adp-placemark,
.panel.modern-directions .adp-directions {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.panel.modern-directions .adp-placemark,
.panel.modern-directions .adp-summary {
    padding: .5rem .5rem !important;
    margin: 0 0 .75rem 0 !important;
    border-radius: 10px;
    background: rgba(0,0,0,0.035) !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
}

.panel.modern-directions .adp-step,
.panel.modern-directions .adp-text,
.panel.modern-directions .adp-substep {
    margin: .4rem 0 !important;
}

.panel.modern-directions .adp-list {
    margin: 0;
    padding: 0 .25rem;
}

.panel.modern-directions .adp-legal {
    opacity: .6;
    font-size: .8rem;
    margin-top: .75rem;
}

@media (max-width:900px) {
    .panel.modern-directions {
        max-height: 38vh;
        margin: .75rem;
    }

        .panel.modern-directions .dir-summary {
            padding-bottom: .5rem;
            margin-bottom: .75rem;
            border-bottom: 1px solid rgba(0,0,0,.08);
        }

        .panel.modern-directions .dir-steps {
            list-style: none;
            padding-left: 0;
            margin: 0;
            counter-reset: step;
        }

            .panel.modern-directions .dir-steps li {
                position: relative;
                padding: .5rem .25rem .5rem 2.25rem;
                border-bottom: 1px solid rgba(0,0,0,.08);
                line-height: 1.35rem;
            }

                .panel.modern-directions .dir-steps li:last-child {
                    border-bottom: 0;
                }

                .panel.modern-directions .dir-steps li::before {
                    counter-increment: step;
                    content: counter(step);
                    position: absolute;
                    left: 0;
                    top: .6rem;
                    width: 1.4rem;
                    height: 1.4rem;
                    display: inline-flex;
                    align-items: center;
                    justify-content: center;
                    font-size: .8rem;
                    border-radius: 999px;
                    border: 1px solid rgba(0,0,0,.18);
                    background: rgba(255,255,255,.75);
                    color: rgba(0,0,0,.8);
                }

            .panel.modern-directions .dir-steps span {
                opacity: .7;
                font-size: .9em;
                color: var(--colorMainDark);
            }
}

/* Keep map card looking like the unified card when wrapped */
.coloured-glass > .card {
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    margin: 0;
}

.coloured-glass .subtitle code {
    background: rgba(var(--colorMainRGB),0.15);
    padding: .1rem .35rem;
    border-radius: 6px;
}

/* Z-order safety for background slides */
#bgA, #bgB, .bg-slide {
    z-index: -1 !important;
    pointer-events: none !important;
}


/* =========================================================
   BUTTONS
========================================================= */
.btn-primary {
    /*background: linear-gradient(135deg, #ffd700, #e6b800);*/
    background: linear-gradient(135deg, var(--colorMainLight), var(--colorMain));
    color: #111;
    font-weight: 800;
    padding: .9rem 1.6rem;
    border: 0;
    border-radius: 12px;
    transform: skewX(-10deg);
    cursor: pointer;
    transition: filter .2s ease, transform .08s ease;
}

    .btn-primary:hover {
        filter: brightness(1.05);
    }

    .btn-primary:active {
        transform: skewX(-10deg) translateY(1px);
    }

/* Reuse your primary button look */
.btn-primary {
    display: inline-block;
    background: var(--colorMainDarker);
    color: var(--colorWhite);
    padding: .85rem 1.5rem;
    font-weight: 700;
    transform: skewX(-10deg);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background .25s ease;
}

    .btn-primary:hover {
        background: var(--colorMain);
        color: var(--colorMainDarker);
        border: 1px thin var(--colorMainDarker);
    }

/* Compact modern location button (no icon by default) */
.btn-location {
    /* theme (override per-button if you like) */
    --loc-bg: var(--colorMainDark);
    --loc-bg2: var(--colorMainDarker);
    --loc-fg: var(--colorMainLighter);
    --loc-border: rgba(0,0,0,.22);
    --loc-accent-rgb: var(--colorMainRGB);
    /* sizing */
    --loc-radius: 10px;
    --loc-font: .9rem;
    --loc-pad-y: .45rem;
    --loc-pad-x: .8rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: var(--loc-pad-y) var(--loc-pad-x);
    border-radius: var(--loc-radius);
    border: 1px solid var(--loc-border);
    background: linear-gradient(180deg, var(--loc-bg), var(--loc-bg2));
    color: var(--loc-fg);
    font: 700 var(--loc-font)/1 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    letter-spacing: .02em;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 10px 18px rgba(0,0,0,.16), 0 4px 10px rgba(0,0,0,.10);
    transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
    -webkit-tap-highlight-color: transparent;
}

    .btn-location:hover {
        transform: translateY(-1px);
        box-shadow: 0 14px 26px rgba(0,0,0,.20), 0 6px 12px rgba(0,0,0,.14);
    }

    .btn-location:active {
        transform: translateY(0);
        box-shadow: 0 10px 18px rgba(0,0,0,.18), 0 5px 10px rgba(0,0,0,.12);
        filter: brightness(.98);
    }

    .btn-location:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(var(--loc-accent-rgb), .6), 0 10px 18px rgba(0,0,0,.16), 0 4px 10px rgba(0,0,0,.10);
    }

    .btn-location:disabled,
    .btn-location[aria-disabled="true"] {
        opacity: .55;
        filter: grayscale(.15);
        cursor: not-allowed;
        transform: none;
    }

    /* Add an icon: same compact size, minimal padding increase */
    .btn-location.with-icon {
        /* icon knobs */
        --icon-size: .95rem; /* SVG box size */
        --icon-gap: .45rem; /* space between icon and text */
        --icon-pad-l: .55rem; /* left inset for the icon */

        padding-left: calc(var(--icon-pad-l) + var(--icon-size) + var(--icon-gap));
    }

        /* Simple centered target icon (SVG), no extra bubble (bulletproof alignment) */
        .btn-location.with-icon::before {
            --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='6'/%3E%3Cpath d='M12 3v3m0 12v3M3 12h3m12 0h3'/%3E%3C/g%3E%3Ccircle cx='12' cy='12' r='2' fill='%23FFFFFF'/%3E%3C/svg%3E");
            content: "";
            position: absolute;
            left: var(--icon-pad-l);
            top: 50%;
            transform: translateY(-50%);
            width: var(--icon-size);
            height: var(--icon-size);
            background-image: var(--svg);
            background-repeat: no-repeat;
            background-size: contain;
            background-position: center;
            opacity: .95;
        }

    /* Icon-only chip: perfect circle with centered icon (great for tight UIs) */
    .btn-location.icon-only {
        --chip: 2.1rem; /* overall button size */
        width: var(--chip);
        height: var(--chip);
        padding: 0;
        border-radius: 999px;
    }

        .btn-location.icon-only.with-icon {
            /* center the same SVG exactly in the middle */
            padding: 0; /* override left padding */
        }

            .btn-location.icon-only.with-icon::before {
                left: 50%;
                top: 50%;
                transform: translate(-50%, -50%);
                --icon-size: 1.05rem; /* slightly larger inside the round chip */
            }


/* Center and constrain only TOP-LEVEL page cards on wider screens */
@media (min-width: 900px) {
    .page-wrap > .app-card,
    .rsvp-wrap > .app-card,
    .timetable-wrap > .app-card,
    .thanks-wrap > .app-card,
    /* venue page kept as alias of the unified card */
    .venue-details-wrap > .card {
        --card-wide-frac: 66vw;
        --card-wide-max: 1100px;
        width: min(var(--card-wide-frac), var(--card-wide-max));
        margin-left: auto;
        margin-right: auto;
        padding: 1.25rem 1.75rem;
    }
}


/* ===== Page card sizing on wide screens (centered, ~two-thirds) ===== */
:root {
    --page-card-frac: 100vw; /* tweak to 60vw / 70vw if you prefer */
    --page-card-max: 1500px; /* cap for ultra-wide displays */
    --page-card-pad-y: 1.25rem;
    --page-card-pad-x: 1.75rem;
}

@media (min-width: 900px) {
    /* Direct page-card children across your wrappers (no :is) */
    .page-wrap > .app-card,
    .page-wrap > .rsvp-card,
    .page-wrap > .contact-card,
    .page-wrap > .timetable-card,
    .page-wrap > .thanks-card,
    .page-wrap > .venue-card,
    .page-wrap > .card,
    .rsvp-wrap > .app-card,
    .rsvp-wrap > .rsvp-card,
    .rsvp-wrap > .contact-card,
    .rsvp-wrap > .timetable-card,
    .rsvp-wrap > .thanks-card,
    .rsvp-wrap > .venue-card,
    .rsvp-wrap > .card,
    .contact-wrap > .app-card,
    .contact-wrap > .rsvp-card,
    .contact-wrap > .contact-card,
    .contact-wrap > .timetable-card,
    .contact-wrap > .thanks-card,
    .contact-wrap > .venue-card,
    .contact-wrap > .card,
    .timetable-wrap > .app-card,
    .timetable-wrap > .rsvp-card,
    .timetable-wrap > .contact-card,
    .timetable-wrap > .timetable-card,
    .timetable-wrap > .thanks-card,
    .timetable-wrap > .venue-card,
    .timetable-wrap > .card,
    .thanks-wrap > .app-card,
    .thanks-wrap > .rsvp-card,
    .thanks-wrap > .contact-card,
    .thanks-wrap > .timetable-card,
    .thanks-wrap > .thanks-card,
    .thanks-wrap > .venue-card,
    .thanks-wrap > .card,
    .venue-details-wrap > .app-card,
    .venue-details-wrap > .rsvp-card,
    .venue-details-wrap > .contact-card,
    .venue-details-wrap > .timetable-card,
    .venue-details-wrap > .thanks-card,
    .venue-details-wrap > .venue-card,
    .venue-details-wrap > .card {
        box-sizing: border-box;
        width: min(var(--page-card-frac), var(--page-card-max));
        margin-left: auto;
        margin-right: auto;
        padding: var(--page-card-pad-y) var(--page-card-pad-x);
    }

        /* Venue: wrapper .card.coloured-glass → inner .card */
        .venue-details-wrap > .card.coloured-glass > .card {
            box-sizing: border-box;
            width: min(var(--page-card-frac), var(--page-card-max));
            margin-left: auto;
            margin-right: auto;
            padding: var(--page-card-pad-y) var(--page-card-pad-x);
        }
}



/* ===== Center all page wrappers on wide screens (no :is) ===== */
:root {
    /* Global defaults; override per page if needed */
    --section-frac: 100vw; /* e.g., 60vw / 70vw */
    --section-max: 1500px; /* cap for ultra-wide displays */
    --section-pad-x: 1rem; /* inner side padding on desktop */
}

@media (min-width: 900px) {
    .page-wrap,
    .rsvp-wrap,
    .contact-wrap,
    .timetable-wrap,
    .venue-details-wrap,
    .thanks-wrap {
        box-sizing: border-box;
        /* safe fallbacks + modern width */
        width: 100%;
        max-width: var(--section-max);
        width: min(var(--section-frac), var(--section-max));
        margin-left: auto;
        margin-right: auto;
        padding-left: var(--section-pad-x);
        padding-right: var(--section-pad-x);
    }
}


/* Keep contact cards a comfortable width on wide screens */
:root {
    --contact-card-min: 500px; /* tweak to taste: 320–380px works well */
}

@media (min-width: 900px) {
    .contact-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(var(--contact-card-min), 1fr));
        gap: 1rem;
        justify-content: start; /* left-align tracks inside the centered wrapper */
        justify-items: stretch;
    }
}


/* ===== VenueDetails-specific theming knobs ===== */
.venue-details-wrap {
    /* tweak these per page if you like (or inline on the section) */
    --venue-input-bg: rgba(255,255,255,0.96);
    --venue-input-fg: #222;
    --venue-input-border: rgba(0,0,0,0.18);
    --venue-input-placeholder: rgba(0,0,0,0.45);
    --venue-pane-bg: rgba(255,255,255,0.94); /* make this near-white to avoid “double glass” */
    --venue-pane-fg: #222;
    --venue-pane-border: rgba(0,0,0,0.08);
    --venue-pane-shadow: 0 8px 24px rgba(0,0,0,0.10);
}

    /* Soften the origin input only on the VenueDetails page */
    .venue-details-wrap .controls .input {
        background: var(--venue-input-bg);
        color: var(--venue-input-fg);
        border: 1px solid var(--venue-input-border);
        box-shadow: none;
    }

        .venue-details-wrap .controls .input::placeholder {
            color: var(--venue-input-placeholder);
        }

    /* Make the directions panel a clean, light card (no heavy tint) */
    .venue-details-wrap .panel.modern-directions {
        background: var(--venue-pane-bg);
        color: var(--venue-pane-fg);
        border: 1px solid var(--venue-pane-border);
        box-shadow: var(--venue-pane-shadow);
    }

    /* If you ever had an older rule forcing tinted panel under coloured-glass, neutralize it here */
    .venue-details-wrap .coloured-glass .panel.modern-directions {
        background: var(--venue-pane-bg);
    }
